<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>Hong Cheung — 프로그래밍 (한국어)</title><description>Jotting down what I&apos;ve learnt.</description><link>https://hongcheung.com/</link><item><title>제가 더 이상 Hermes Agent를 사용하지 않는 이유</title><link>https://hongcheung.com/ko/post/why-I-dont-use-hermes-agent-anymore/</link><guid isPermaLink="true">https://hongcheung.com/ko/post/why-I-dont-use-hermes-agent-anymore/</guid><description>제가 Hermes Agent를 어떻게 설정했고, 무엇에 사용했으며, 왜 더 이상 사용하지 않는지에 대한 이야기입니다.</description><pubDate>Fri, 03 Jul 2026 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/89bcdece-b930-40bc-96b0-ffcebfdf6f8e&quot; alt=&quot;제가 더 이상 Hermes Agent를 사용하지 않는 이유&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;hermes-agent-설정-방법&quot;&gt;Hermes Agent 설정 방법&lt;/h2&gt;
&lt;p&gt;제가 한 일은 Hetzner&lt;sup&gt;&lt;a href=&quot;#user-content-fn-1&quot; id=&quot;user-content-fnref-1&quot; data-footnote-ref=&quot;&quot; aria-describedby=&quot;footnote-label&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;를 통해 직접 호스팅한 VPS 서버에서 Hermes Agent를 실행하는 것이었습니다. Telegram을 게이트웨이로 사용해 휴대폰에서 제 GPT와 대화했습니다. 그리고 당시 무료였고 1M 토큰 제한이 있는 OpenRouter Owl Alpha 모델을 사용했습니다. 어떤 용도로든 충분했습니다.&lt;/p&gt;
&lt;h3 id=&quot;장기-기억과-참조-자료&quot;&gt;장기 기억과 참조 자료&lt;/h3&gt;
&lt;p&gt;VPS에 기억을 로컬로 저장하기 위해 &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://github.com/michael-denyer/memory-mcp/tree/main&quot;&gt;MCP-Memory&lt;/a&gt;도 설정해서, 새 세션을 시작할 때마다 같은 말을 반복할 필요가 없었습니다. 그리고 질문에 참조할 로컬 도서 컬렉션을 위해 &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://github.com/shinpr/mcp-local-rag&quot;&gt;MCP-Local-Rag&lt;/a&gt;도 설정했습니다. 비즈니스, 건강, 과학 등 다양한 주제를 다룹니다.&lt;/p&gt;
&lt;h2 id=&quot;hermes-agent의-최고-활용-사례-제-기준&quot;&gt;Hermes Agent의 최고 활용 사례 (제 기준)&lt;/h2&gt;
&lt;h3 id=&quot;언어-학습&quot;&gt;언어 학습&lt;/h3&gt;
&lt;p&gt;제게 가장 좋은 활용 사례는 언어 학습이었습니다. 방식은 Fiona라는 언어 학습 에이전트를 만드는 것이었습니다. 그리고 매 세션마다 “Hey Fiona”로 시작하면 모든 언어 학습 스킬과 컨텍스트를 세션에 불러와서, 우리가 무엇을 하려는지 알 수 있게 했습니다.&lt;/p&gt;
&lt;p&gt;언어 부분에서는 스페인어와 일본어를 배우고 있었습니다. 이 워크플로에서의 언어 학습은 대부분 제가 GPT로 설정한 단어와 의미를 묻는 퀴즈 정도였습니다.&lt;/p&gt;
&lt;h4 id=&quot;목표-언어의-단어-찾기&quot;&gt;목표 언어의 단어 찾기&lt;/h4&gt;
&lt;p&gt;두 언어 모두에 대해 github에서 csv/md 파일을 찾아 다운로드하고, 로컬 폴더 /vocabs/Spanish 등에 분류하도록 요청했습니다. 파일 이름은 레벨에 따라 N1-N5, A1-C2로 붙였습니다. 그래서 N1.csv, A1.md 같은 파일이 있었는데, 파일 형식이 섞여 있었습니다.&lt;/p&gt;
&lt;h4 id=&quot;퀴즈&quot;&gt;퀴즈&lt;/h4&gt;
&lt;p&gt;Fiona에게 목표 언어 단어의 의미를 한 번에 5개씩 묻는 규칙을 설정했고, 틀릴 때마다 이 단어를 몇 번 틀렸는지 wrong-N1.csv 파일에 기록했습니다. 맞힌 경우에는 원본 파일을 수정해서 해당 행에 1점을 추가했습니다. 점수가 높을수록 퀴즈에 나올 가능성이 낮아집니다. 그래서 퀴즈 단어는 무작위이면서도 저에게 최적화되어 있습니다.&lt;/p&gt;
&lt;h4 id=&quot;단어-복습-챌린지&quot;&gt;단어 복습 챌린지&lt;/h4&gt;
&lt;p&gt;이것은 유용하다고 느낀 기능입니다. 매일 하루 종일 자동으로 퀴즈를 보내도록 몇 가지 cronjob을 설정했습니다. 보통 오전 8시쯤 직장에서 쉬는 시간에 두 개의 퀴즈를 받았습니다. 점심시간 직전인 오전 11시에 또 두 개를 받았습니다. 그리고 잠들기 전에 또 두 개를 받았는데, 이상적으로는 오후 8시였습니다.&lt;/p&gt;
&lt;h3 id=&quot;언어-학습에-사용한-전반적인-경험&quot;&gt;언어 학습에 사용한 전반적인 경험&lt;/h3&gt;
&lt;p&gt;좋기도 하고 나쁘기도 했습니다. 제가 설정을 충분히 정교하게 하지 못했거나, LLM이 스스로 반복적으로 작업을 수행하도록 의존하는 것이 그다지 안정적이지 않았기 때문일 수 있습니다. 때로는 “시킨 대로 작동”하는 괜찮은 경험도 있었지만, 환각에 빠지거나 이따금 온갖 이상한 bash 명령을 실행하며 궤도를 벗어나기도 했습니다. 그래서 전체 경험이 그리 쾌적하지는 않았습니다.&lt;/p&gt;
&lt;h3 id=&quot;다른-활용-사례&quot;&gt;다른 활용 사례&lt;/h3&gt;
&lt;p&gt;그냥 대화용으로도 사용해 보았습니다. 제 모든 것을 기억하고, 제 모든 야망과 습관, 상황을 고려해 저에게 맞춘 답변을 해 주는 개인 비서를 갖는 것이죠. 하지만 결국 가치 있는 대화에서 인간을 대체할 수는 없었습니다. &lt;em&gt;모르는 것은 모르는 것입니다&lt;/em&gt;. 저는 &lt;em&gt;제가 원하는 방식으로&lt;/em&gt; 설정할 수 있는데, 그것이 단점이라고 생각합니다.&lt;/p&gt;
&lt;p&gt;사람들이 GPT를 AI 파트너로 사용하려는 것과 비슷합니다. 원하는 방식으로 설정할 수 있죠. 그것은 너무 이상적이고, 기분, 자신만의 비전, 나에 대한 감정, 사람들 사이의 연결 같은 핵심적인 인간적 요소가 빠져 있습니다. 그래서 GPT와 친구처럼 대화하는 것은 잘 통하지 않습니다. 저는 메아리 방이나 영원한 위로자가 필요하지 않습니다. 저는 실제 삶의 경험을 듣고 싶습니다.&lt;/p&gt;
&lt;p&gt;그렇긴 해도, GPT나 AI가 어느 정도 유용하다고 느낀 유일한 방법은 그냥 검색 엔진으로 사용하는 것입니다. 거의 그게 전부입니다. 웹페이지에 광고도 없고, 여기저기 클릭할 필요도 없습니다. 그리고 저는 텍스트로 시작하는 것을 선호합니다.&lt;/p&gt;
&lt;h2 id=&quot;hermes-agent의-대안-openclaw-아님&quot;&gt;Hermes Agent의 대안 (OpenClaw 아님)&lt;/h2&gt;
&lt;p&gt;흥미롭게도 OpenCode나 어떤 프로그래밍 IDE를 사용하는 것이, 즉 AI 프로그래밍을 위해 만들어진 도구들이 일반적으로 Hermes Agent보다 더 유용하다는 것을 알게 되었습니다.&lt;/p&gt;
&lt;p&gt;그들과 Hermes Agent의 주요 차이는 대부분 프로젝트 범위로 한정된다는 점입니다. 즉, 선언한 각 프로젝트의 폴더 안에서만 작업할 수 있습니다. 반면 Hermes Agent / OpenClaw의 모든 기능을 활용하려면 보통 기본적으로 전체 권한을 부여하는데, 이는 기기의 다른 파일과 설정을 망칠 수 있고 실제로 망칩니다.&lt;/p&gt;
&lt;p&gt;프로그래밍 IDE, 에이전트마다 새 폴더를 두는 것이 제가 지금 일하는 방식입니다. 이제 언어 학습 에이전트는 그 폴더 안에서만 작업하고, 투자 연구원과 어드바이저는 또 다른 폴더 안에서만 작업합니다. 각각 서로 다른 규칙과 가드레일을 가지고 있습니다. Hermes Agent를 사용하는 것과 달리, 서로 다른 주제를 작업하기 위해 이들 사이를 쉽게 전환할 수 있고 파일 자체를 조정할 수도 있습니다.&lt;/p&gt;
&lt;h2 id=&quot;결론&quot;&gt;결론&lt;/h2&gt;
&lt;p&gt;Hermes Agent는 혁신적으로 들리고, 실제로 그럴 수도 있습니다. 하지만 저는 그것이 그다지 필요하지도 않은 요구를 해결하기 위해 과도하게 설계된 느낌이 듭니다. 언어 학습에 사용하던 어느 시점에, 이쯤 되면 그냥 내 플래시카드 앱을 직접 만들었으면 리소스도 더 적게 쓰고, 가장 중요하게는 매우 안정적이었을 텐데, 하는 생각이 들었기 때문입니다.&lt;/p&gt;
&lt;p&gt;하지만 누가 알겠습니까, 언젠가 Hermes Agent가 로봇에서 실행되어 로봇 OS가 될지도 모르죠. Nvidia가 Hermes Agent를 내장한 새 AI 컴퓨터를 출시하며 얼마나 큰 밀어붙이기를 하는지 생각해 보면요.&lt;/p&gt;
&lt;p&gt;하지만 지금은 이미 삭제했고 일상적으로 OpenCode와 KiloCode를 계속 사용하고 있으며, 잘 되고 있습니다.&lt;/p&gt;
&lt;p&gt;아, 개인정보 보호 문제 때문에 유료 모델도 사용하기 시작했습니다.&lt;/p&gt;
&lt;section data-footnotes=&quot;&quot; class=&quot;footnotes&quot;&gt;&lt;h2 class=&quot;sr-only&quot; id=&quot;footnote-label&quot;&gt;Footnotes&lt;/h2&gt;
&lt;ol&gt;
&lt;li id=&quot;user-content-fn-1&quot;&gt;
&lt;p&gt;Hetzner는 제가 가장 좋아하는 VPS 서버입니다. 저렴하고, 유럽에 위치하며 매우 안정적입니다. 두 개의 VPS 서버로 2년 넘게 사용해 왔습니다. &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://hetzner.cloud/?ref=ybCDonttXx99&quot;&gt;이 링크&lt;/a&gt;를 통해 가입하면 €20의 클라우드 크레딧을 받을 수 있습니다. 서버 비용 첫 두세 달치는 거의 충당됩니다. &lt;a href=&quot;#user-content-fnref-1&quot; data-footnote-backref=&quot;&quot; aria-label=&quot;Back to reference 1&quot; class=&quot;data-footnote-backref&quot;&gt;↩&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/section&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/89bcdece-b930-40bc-96b0-ffcebfdf6f8e"/><enclosure url="https://cms.hongct.com/assets/89bcdece-b930-40bc-96b0-ffcebfdf6f8e" length="14030" type="image/webp"/></item><item><title>App Store 심사에서 NSUserTrackingUsageDescription 거부를 해결하는 방법</title><link>https://hongcheung.com/ko/post/how-to-fix-nsusertrackingusagedescription-rejection-from-app-store-review/</link><guid isPermaLink="true">https://hongcheung.com/ko/post/how-to-fix-nsusertrackingusagedescription-rejection-from-app-store-review/</guid><description>최근에 앱에서 모든 Google Ads를 제거하기로 했습니다. 그런데 트래커를 제거한 새 버전을 App Review 팀에 제출했더니 거부당했습니다. 사유는 다음과 같았습니다.</description><pubDate>Thu, 26 Jun 2025 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/10f1c00b-5027-4533-82e4-8de39487a05d&quot; alt=&quot;App Store 심사에서 NSUserTrackingUsageDescription 거부를 해결하는 방법&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;p&gt;최근에 앱에서 모든 Google Ads를 제거하기로 했습니다. 그런데 트래커를 제거한 새 버전을 App Review 팀에 제출했더니 거부당했습니다. 사유는 다음과 같았습니다:&lt;/p&gt;
&lt;h2 id=&quot;문제&quot;&gt;문제&lt;/h2&gt;
&lt;hr&gt;
&lt;blockquote&gt;
&lt;h3 id=&quot;가이드라인-21---정보-필요&quot;&gt;가이드라인 2.1 - 정보 필요&lt;/h3&gt;
&lt;p&gt;앱의 전체 또는 일부에 성공적으로 접근할 수 없습니다. 심사를 계속하려면 모든 계정 유형에 대해 앱의 모든 기능을 확인할 수 있는 방법이 필요합니다. 일반적으로는 앱의 모든 기능에 접근할 수 있는 데모 계정을 제공하여 이를 수행합니다.&lt;/p&gt;
&lt;p&gt;구체적으로, 모든 구독 옵션을 검토할 수 있도록 활성 구독이 없는 데모 계정을 제공해 주시기 바랍니다.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;다음 단계&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;이 문제를 해결하려면 App Store Connect의 App Review Information 섹션에 사용자 이름과 비밀번호를 제공하세요. 앱의 전체 기능을 보여주는 데모 모드를 포함하는 것도 허용됩니다. 앱 사용 모습을 보여주는 데모 영상만으로는 심사를 계속하기에 충분하지 않다는 점에 유의하세요.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;리소스&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;App Store Connect에서 정보를 제공하는 방법에 대해 자세히 알아보려면 &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://developer.apple.com/help/app-store-connect/reference/app-review-information/&quot;&gt;App Store Connect Help&lt;/a&gt;를 참조하세요.&lt;/p&gt;
&lt;h3 id=&quot;가이드라인-21---정보-필요-1&quot;&gt;가이드라인 2.1 - 정보 필요&lt;/h3&gt;
&lt;p&gt;앱이 AppTrackingTransparency 프레임워크를 사용하지만, iPadOS 18.5에서 심사할 때 App Tracking Transparency 권한 요청을 찾을 수 없습니다.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;다음 단계&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;앱에서 App Tracking Transparency 권한 요청을 어디서 찾을 수 있는지 설명해 주세요. 이 요청은 사용자를 추적하는 데 사용될 수 있는 데이터가 수집되기 전에 표시되어야 합니다.&lt;/p&gt;
&lt;p&gt;App Tracking Transparency가 구현되어 있지만 최신 운영 체제를 실행하는 기기에서 권한 요청이 표시되지 않는 경우, &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://developer.apple.com/documentation/apptrackingtransparency/attrackingmanager/3547037-requesttrackingauthorization&quot;&gt;사용 가능한 문서&lt;/a&gt;를 검토하고 App Tracking Transparency가 올바르게 구현되었는지 확인하세요.&lt;/p&gt;
&lt;p&gt;앱이 사용자를 추적하지 않는 경우, &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://help.apple.com/app-store-connect/#/dev1b4647c5b&quot;&gt;App Store Connect의 앱 개인정보 정보&lt;/a&gt;를 추적을 선언하지 않도록 업데이트하세요. 앱 개인정보 정보를 업데이트하려면 &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://developer.apple.com/support/roles/&quot;&gt;Account Holder 또는 Admin 역할&lt;/a&gt;이 있어야 합니다.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;리소스&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;추적이란 광고 목적으로 앱에서 수집한 데이터를 제3자 데이터와 연결하거나, 수집한 데이터를 데이터 브로커와 공유하는 것을 의미합니다. &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://developer.apple.com/app-store/app-privacy-details/#user-tracking&quot;&gt;추적&lt;/a&gt;에 대해 자세히 알아보세요.&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://developer.apple.com/app-store/user-privacy-and-data-use/#permission-to-track&quot;&gt;사용자를 추적하는 앱의 요구 사항&lt;/a&gt;에 대한 자주 묻는 질문을 참조하세요.&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://developer.apple.com/documentation/apptrackingtransparency&quot;&gt;App Tracking Transparency&lt;/a&gt; 개발자 문서를 검토하세요.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;지원&quot;&gt;지원&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;도움이 필요하면 원하는 언어로 이 메시지에 답장하세요. 추가 지원이 필요하면 &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://developer.apple.com/contact/topic/#!/topic/select&quot;&gt;Contact Us 모듈&lt;/a&gt;을 이용하세요.&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://developer.apple.com/forums/&quot;&gt;Apple Developer Forums&lt;/a&gt;에서 동료 개발자 및 Apple 엔지니어와 상담하세요.&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://essentials.applesurveys.com/jfe/form/SV_esVePfih7uqt4NM?campaignid=0001&quot;&gt;짧은 설문조사 작성&lt;/a&gt;을 통해 이 메시지와 심사 경험에 대한 피드백을 제공하세요.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;h2 id=&quot;해당-문제의-실제-원인&quot;&gt;해당 문제의 실제 원인&lt;/h2&gt;
&lt;h3 id=&quot;구버전으로-자동-검사하고-있음&quot;&gt;구버전으로 자동 검사하고 있음&lt;/h3&gt;
&lt;p&gt;Apple이 한때 데이터 수집 고지가 있었지만 새 버전에서 앱 내 추적 고지가 누락된 모든 앱을 자동으로 거부하기 때문이라는 추측이 있습니다. 현재 스토어에 있는 버전을 기준으로 삼고 있다는 것입니다.&lt;/p&gt;
&lt;p&gt;따라서 문제는 새 앱 버전에 트래커가 포함되어 있다는 것이 아니라, 앱의 마지막 버전을 기준으로 판단하고 있다는 점입니다.&lt;/p&gt;
&lt;h3 id=&quot;프로젝트에-정말로-nsusertrackingusagedescription-바이너리가-있는-경우&quot;&gt;프로젝트에 정말로 NSUserTrackingUsageDescription 바이너리가 있는 경우&lt;/h3&gt;
&lt;p&gt;저에게도 일어난 일인데, SDK와 info.plist의 관련 설정을 제거해야 합니다. 하지만 저는 추적 경고에 대한 현지화 문자열을 표시하기 위한 localizedStrings를 간과했습니다. infoPlist.localizedstrings(대략 이런 이름)라는 파일이 있었는데, 여기에는 앱 실행 시 “Google이 맞춤 광고를 제공하도록 허용하시겠습니까?”라고 묻는 팝업의 여러 언어 현지화가 들어 있었습니다.&lt;/p&gt;
&lt;p&gt;왼쪽에서 해당 파일이 있는지 확인하면 됩니다. 또는 프로젝트 &gt; Build Phases &gt; Copy Bundle Resources를 펼쳐서 Infoplist.localsedString이 있는지 확인하세요.&lt;/p&gt;
&lt;p&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/9135a8ec-d7f8-44e3-95ac-f4a17c091a52&quot; alt=&quot;&quot;&gt;
확인해 보니 이 파일 안에 “NSUserTrackingUsageDescription”이 있었습니다. 그리고 사이드바에서 “NSUserTrackingUsageDescription”이라는 검색어로 전체 검색을 해도 나타나지 않았습니다.&lt;/p&gt;
&lt;p&gt;남아 있는 잔여물이 없는지 꼼꼼히 확인해야 합니다.&lt;/p&gt;
&lt;h2 id=&quot;해결-시도&quot;&gt;해결 시도&lt;/h2&gt;
&lt;p&gt;App Store Connect 페이지에서 내 앱의 App Privacy 페이지로 이동하라는 안내를 따랐습니다. 그런 다음 데이터 수집 고지를 ‘아니요’로 변경하려 했습니다. 그때 이런 장애물에 부딪혔습니다:&lt;/p&gt;
&lt;p&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/40399f7c-222b-45be-9179-7f2ef393ee46&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;앱에 NSUserTrackingUsageDescription이 포함되어 있어 사용자 추적 권한을 요청할 것임을 나타냅니다. 어떤 데이터 유형이 사용자를 추적하는지 명시해야 합니다. 이것이 올바르지 않다면 앱 바이너리를 업데이트하고 새 빌드를 App Store Connect에 업로드하세요.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;이상하군요.&lt;/p&gt;
&lt;p&gt;저는 이미 모든 Google SDK를 제거했고 info.plist의 모든 앱 트래커도 확실히 제거했습니다. 또한 빌드 캐시를 정리하여 깨끗한 상태로 새 버전을 다시 빌드했습니다.&lt;/p&gt;
&lt;p&gt;알고 보니 많은 개발자들이 같은 문제를 겪고 있었습니다. (&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://developer.apple.com/forums/thread/679585&quot;&gt;Apple 개발자 포럼 링크&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;다행히 이런 거부를 받은 것이 처음은 아닙니다. 기존 앱에서 Google AdMob SDK를 제거한 후 다른 앱에서도 겪은 적이 있습니다. 그리고 다음과 같이 하여 해결했습니다.&lt;/p&gt;
&lt;h2 id=&quot;해결책&quot;&gt;해결책&lt;/h2&gt;
&lt;p&gt;이것이 제가 두 번이나 심사를 통과한 방법입니다.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;사용자를 추적하는 모든 것을 반드시 제거하세요.&lt;/li&gt;
&lt;li&gt;빌드하고 새 버전을 업로드하세요.&lt;/li&gt;
&lt;li&gt;자동 출시가 켜져 있다면 설정을 개발자 출시로 변경하세요.&lt;/li&gt;
&lt;li&gt;새 버전을 제출하세요.&lt;/li&gt;
&lt;li&gt;거부당하면 메시지에 간단히 답장하세요:
&lt;ul&gt;
&lt;li&gt;모든 트래커를 이미 제거했다고.&lt;/li&gt;
&lt;li&gt;같은 문제를 겪는 사람들이 있는 Apple 개발자 포럼 토론 링크를 첨부하세요.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;하루나 이틀 정도 인내심을 가지고 기다리세요.&lt;/li&gt;
&lt;li&gt;앱 심사를 통과하면 그때 데이터 수집 고지를 ‘아니요’로 변경할 수 있습니다.&lt;/li&gt;
&lt;li&gt;“게시”를 누르세요!&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;보시다시피 흥미롭게도 심사가 통과된 후에는 데이터 수집 설정을 변경할 수 있지만, 그 전에는 변경할 수 없습니다.&lt;/p&gt;
&lt;h2 id=&quot;다음번을-위한-최선의-해결책&quot;&gt;&lt;strong&gt;다음번을 위한 최선의 해결책&lt;/strong&gt;?&lt;/h2&gt;
&lt;p&gt;애초에 사용자를 추적하지 마세요.&lt;/p&gt;
&lt;p&gt;좋은 교훈을 얻었습니다.&lt;/p&gt;
&lt;p&gt;행운을 빕니다!&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;참고&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://developer.apple.com/forums/thread/679585&quot;&gt;https://developer.apple.com/forums/thread/679585&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://developer.apple.com/forums/thread/679585&quot;&gt;https://developer.apple.com/forums/thread/679585&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://community.thunkable.com/t/solved-can-not-publish-to-ios-problem-with-nsusertrackingusagedescription-which-is-not-used/1553223?page=4&quot;&gt;https://community.thunkable.com/t/solved-can-not-publish-to-ios-problem-with-nsusertrackingusagedescription-which-is-not-used/1553223?page=4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Reddit&lt;/li&gt;
&lt;/ol&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/10f1c00b-5027-4533-82e4-8de39487a05d"/><enclosure url="https://cms.hongct.com/assets/10f1c00b-5027-4533-82e4-8de39487a05d" length="82548" type="image/webp"/></item><item><title>브라우저에서 깨진 JSON 응답을 수정하는 방법</title><link>https://hongcheung.com/ko/post/how-to-fix-gibberish-json-return-in-the-browser/</link><guid isPermaLink="true">https://hongcheung.com/ko/post/how-to-fix-gibberish-json-return-in-the-browser/</guid><description>의미 없는 JSON 응답을 수정하는 방법.</description><pubDate>Mon, 26 May 2025 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/b9c41563-4083-4d57-9841-dbfdfaeab1e8&quot; alt=&quot;브라우저에서 깨진 JSON 응답을 수정하는 방법&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;p&gt;Flask API 서버에서 브라우저로 반환되는 응답이 깨져서 하루 종일 원인을 찾아 헤맸습니다. 흥미롭게도 다른 엔드포인트들은 잘 작동하는데, 새로 추가한 이 라우트만 문제가 있었습니다. 이 문제를 해결하면서 알게 된 내용을 정리해 봅니다.&lt;/p&gt;
&lt;h2 id=&quot;원인-파악하기&quot;&gt;&lt;strong&gt;원인 파악하기&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;이 문제를 일으키는 주요 원인이 세 가지 있다는 것을 알게 되었습니다.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Content-Type - charset이 UTF-8로 설정되지 않았거나, JSON으로 인식조차 되지 않는 경우&lt;/li&gt;
&lt;li&gt;Content-Encoding - JSON에 대한 브라우저의 기본 자동 압축이 API의 인코딩 방식과 충돌하는 경우&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&quot;확인하는-두-가지-방법&quot;&gt;확인하는 두 가지 방법&lt;/h3&gt;
&lt;h4 id=&quot;curl&quot;&gt;cURL&lt;/h4&gt;
&lt;p&gt;터미널을 열고 cURL을 사용하세요&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;style&gt;.expressive-code{font-family:var(--ec-uiFontFml);font-size:var(--ec-uiFontSize);font-weight:var(--ec-uiFontWg);line-height:var(--ec-uiLineHt);text-size-adjust:none;-webkit-text-size-adjust:none}.expressive-code *:not(:is(svg, svg *)){all:revert;box-sizing:border-box}.expressive-code pre{display:flex;margin:0;padding:0;border:var(--ec-brdWd) solid var(--ec-brdCol);border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));background:var(--ec-codeBg)}.expressive-code pre:focus-visible{outline:3px solid var(--ec-focusBrd);outline-offset:-3px}.expressive-code pre &gt; code{all:unset;display:block;flex:1 0 100%;padding:var(--ec-codePadBlk) 0;color:var(--ec-codeFg);font-family:var(--ec-codeFontFml);font-size:var(--ec-codeFontSize);font-weight:var(--ec-codeFontWg);line-height:var(--ec-codeLineHt)}.expressive-code pre{overflow-x:auto}.expressive-code pre.wrap .ec-line .code{white-space:pre-wrap;overflow-wrap:break-word;min-width:min(20ch, var(--ecMaxLine, 20ch))}.expressive-code pre.wrap .ec-line .code span.indent{white-space:pre}.expressive-code pre::-webkit-scrollbar,.expressive-code pre::-webkit-scrollbar-track{background-color:inherit;border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));border-top-left-radius:0;border-top-right-radius:0}.expressive-code pre::-webkit-scrollbar-thumb{background-color:var(--ec-sbThumbCol);border:4px solid transparent;background-clip:content-box;border-radius:10px}.expressive-code pre::-webkit-scrollbar-thumb:hover{background-color:var(--ec-sbThumbHoverCol)}.expressive-code pre::-webkit-scrollbar-corner{background:transparent}.expressive-code .ec-line{direction:ltr;unicode-bidi:isolate;display:grid;grid-template-areas:&apos;gutter code&apos;;grid-template-columns:auto 1fr;position:relative}.expressive-code .ec-line .gutter{grid-area:gutter;color:var(--ec-gtrFg)}.expressive-code .ec-line .gutter &gt; *{pointer-events:none;user-select:none;-webkit-user-select:none}.expressive-code .ec-line .gutter ~ .code{--ecLineBrdCol:var(--ec-gtrBrdCol)}.expressive-code .ec-line.highlight .gutter{color:var(--ec-gtrHlFg)}.expressive-code .ec-line .code{grid-area:code;position:relative;box-sizing:content-box;padding-inline-start:calc(var(--ecIndent, 0ch) + var(--ec-codePadInl) - var(--ecGtrBrdWd));padding-inline-end:var(--ec-codePadInl);text-indent:calc(var(--ecIndent, 0ch) * -1)}.expressive-code .ec-line .code::before,.expressive-code .ec-line .code::after,.expressive-code .ec-line .code :where(*){text-indent:0}.expressive-code .ec-line .code{--ecGtrBrdWd:var(--ec-gtrBrdWd);border-inline-start:var(--ecGtrBrdWd) solid var(--ecLineBrdCol, transparent)}.expressive-code .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.expressive-code .ec-line.mark{--tmLineBgCol:var(--ec-tm-markBg)}.expressive-code .ec-line.mark .code{--ecLineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line.ins{--tmLineBgCol:var(--ec-tm-insBg);--tmLabel:var(--ec-tm-insDiffIndContent)}.expressive-code .ec-line.ins .code{--ecLineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line.ins .code::before{color:var(--ec-tm-insDiffIndCol)}.expressive-code .ec-line.del{--tmLineBgCol:var(--ec-tm-delBg);--tmLabel:var(--ec-tm-delDiffIndContent)}.expressive-code .ec-line.del .code{--ecLineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line.del .code::before{color:var(--ec-tm-delDiffIndCol)}.expressive-code .ec-line.mark,.expressive-code .ec-line.ins,.expressive-code .ec-line.del{background:var(--tmLineBgCol)}.expressive-code .ec-line.mark .code,.expressive-code .ec-line.ins .code,.expressive-code .ec-line.del .code{--ecGtrBrdWd:var(--ec-tm-lineMarkerAccentWd)}.expressive-code .ec-line.mark .code::before,.expressive-code .ec-line.ins .code::before,.expressive-code .ec-line.del .code::before{display:block;position:absolute;left:0;box-sizing:border-box;content:var(--tmLabel, &apos; &apos;);padding-inline-start:var(--ec-tm-lineDiffIndMargLeft);text-align:center;white-space:pre}.expressive-code .ec-line.mark.tm-label .code::before,.expressive-code .ec-line.ins.tm-label .code::before,.expressive-code .ec-line.del.tm-label .code::before{background:var(--ecLineBrdCol);padding:0 calc(var(--ec-tm-lineMarkerLabelPadInl) + var(--ec-tm-lineMarkerAccentWd)) 0 var(--ec-tm-lineMarkerLabelPadInl);color:var(--ec-tm-lineMarkerLabelCol)}.expressive-code .ec-line mark{--tmInlineBgCol:var(--ec-tm-markBg);--tmInlineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line ins{--tmInlineBgCol:var(--ec-tm-insBg);--tmInlineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line del{--tmInlineBgCol:var(--ec-tm-delBg);--tmInlineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line mark,.expressive-code .ec-line ins,.expressive-code .ec-line del{all:unset;display:inline-block;position:relative;--tmBrdL:var(--ec-tm-inlMarkerBrdWd);--tmBrdR:var(--ec-tm-inlMarkerBrdWd);--tmRadL:var(--ec-tm-inlMarkerBrdRad);--tmRadR:var(--ec-tm-inlMarkerBrdRad);margin-inline:0.025rem;padding-inline:var(--ec-tm-inlMarkerPad);border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);background:var(--tmInlineBgCol);background-clip:padding-box}.expressive-code .ec-line mark.open-start,.expressive-code .ec-line ins.open-start,.expressive-code .ec-line del.open-start{margin-inline-start:0;padding-inline-start:0;--tmBrdL:0px;--tmRadL:0}.expressive-code .ec-line mark.open-end,.expressive-code .ec-line ins.open-end,.expressive-code .ec-line del.open-end{margin-inline-end:0;padding-inline-end:0;--tmBrdR:0px;--tmRadR:0}.expressive-code .ec-line mark::before,.expressive-code .ec-line ins::before,.expressive-code .ec-line del::before{content:&apos;&apos;;position:absolute;pointer-events:none;display:inline-block;inset:0;border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);border:var(--ec-tm-inlMarkerBrdWd) solid var(--tmInlineBrdCol);border-inline-width:var(--tmBrdL) var(--tmBrdR)}.expressive-code .frame{all:unset;position:relative;display:block;--header-border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));--tab-border-radius:calc(var(--ec-frm-edTabBrdRad) + var(--ec-brdWd));--button-spacing:0.4rem;--code-background:var(--ec-frm-edBg);border-radius:var(--header-border-radius);box-shadow:var(--ec-frm-frameBoxShdCssVal)}.expressive-code .frame .header{display:none;z-index:1;position:relative;border-radius:var(--header-border-radius) var(--header-border-radius) 0 0}.expressive-code .frame.has-title pre,.expressive-code .frame.has-title code,.expressive-code .frame.is-terminal pre,.expressive-code .frame.is-terminal code{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.expressive-code .frame .title:empty:before{content:&apos;\a0&apos;}.expressive-code .frame.has-title:not(.is-terminal){--button-spacing:calc(1.9rem + 2 * (var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)))}.expressive-code .frame.has-title:not(.is-terminal) .title{position:relative;color:var(--ec-frm-edActTabFg);background:var(--ec-frm-edActTabBg);background-clip:padding-box;margin-block-start:var(--ec-frm-edTabsMargBlkStart);padding:calc(var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)) var(--ec-uiPadInl);border:var(--ec-brdWd) solid var(--ec-frm-edActTabBrdCol);border-radius:var(--tab-border-radius) var(--tab-border-radius) 0 0;border-bottom:none;overflow:hidden}.expressive-code .frame.has-title:not(.is-terminal) .title::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-top:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndTopCol);border-bottom:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndBtmCol)}.expressive-code .frame.has-title:not(.is-terminal) .header{display:flex;background:linear-gradient(to top, var(--ec-frm-edTabBarBrdBtmCol) var(--ec-brdWd), transparent var(--ec-brdWd)),linear-gradient(var(--ec-frm-edTabBarBg), var(--ec-frm-edTabBarBg));background-repeat:no-repeat;padding-inline-start:var(--ec-frm-edTabsMargInlStart)}.expressive-code .frame.has-title:not(.is-terminal) .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border:var(--ec-brdWd) solid var(--ec-frm-edTabBarBrdCol);border-radius:inherit;border-bottom:none}.expressive-code .frame.is-terminal{--button-spacing:calc(1.9rem + var(--ec-brdWd) + 2 * var(--ec-uiPadBlk));--code-background:var(--ec-frm-trmBg)}.expressive-code .frame.is-terminal .header{display:flex;align-items:center;justify-content:center;padding-block:var(--ec-uiPadBlk);padding-block-end:calc(var(--ec-uiPadBlk) + var(--ec-brdWd));position:relative;font-weight:500;letter-spacing:0.025ch;color:var(--ec-frm-trmTtbFg);background:var(--ec-frm-trmTtbBg);border:var(--ec-brdWd) solid var(--ec-brdCol);border-bottom:none}.expressive-code .frame.is-terminal .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;left:var(--ec-uiPadInl);width:2.1rem;height:0.56rem;line-height:0;background-color:var(--ec-frm-trmTtbDotsFg);opacity:var(--ec-frm-trmTtbDotsOpa);-webkit-mask-image:var(--ec-frm-trmIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-trmIcon);mask-repeat:no-repeat}.expressive-code .frame.is-terminal .header::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-bottom:var(--ec-brdWd) solid var(--ec-frm-trmTtbBrdBtmCol)}.expressive-code .frame pre{background:var(--code-background)}.expressive-code .copy{display:flex;gap:0.25rem;flex-direction:row;position:absolute;inset-block-start:calc(var(--ec-brdWd) + var(--button-spacing));inset-inline-end:calc(var(--ec-brdWd) + var(--ec-uiPadInl) / 2)}@media (scripting: none){.expressive-code .copy{display:none}}.expressive-code .copy{direction:ltr;unicode-bidi:isolate}.expressive-code .copy button{position:relative;align-self:flex-end;margin:0;padding:0;border:none;border-radius:0.2rem;z-index:1;cursor:pointer;transition-property:opacity, background, border-color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94);width:2.5rem;height:2.5rem;background:var(--code-background);opacity:0.75}.expressive-code .copy button div{position:absolute;inset:0;border-radius:inherit;background:var(--ec-frm-inlBtnBg);opacity:var(--ec-frm-inlBtnBgIdleOpa);transition-property:inherit;transition-duration:inherit;transition-timing-function:inherit}.expressive-code .copy button::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-radius:inherit;border:var(--ec-brdWd) solid var(--ec-frm-inlBtnBrd);opacity:var(--ec-frm-inlBtnBrdOpa)}.expressive-code .copy button::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-frm-inlBtnFg);-webkit-mask-image:var(--ec-frm-copyIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-copyIcon);mask-repeat:no-repeat;margin:0.475rem;line-height:0}.expressive-code .copy button:hover,.expressive-code .copy button:focus:focus-visible{opacity:1}.expressive-code .copy button:hover div,.expressive-code .copy button:focus:focus-visible div{opacity:var(--ec-frm-inlBtnBgHoverOrFocusOpa)}.expressive-code .copy button:active{opacity:1}.expressive-code .copy button:active div{opacity:var(--ec-frm-inlBtnBgActOpa)}.expressive-code .copy .feedback{--tooltip-arrow-size:0.35rem;--tooltip-bg:var(--ec-frm-tooltipSuccessBg);color:var(--ec-frm-tooltipSuccessFg);pointer-events:none;user-select:none;-webkit-user-select:none;position:relative;align-self:center;background-color:var(--tooltip-bg);z-index:99;padding:0.125rem 0.75rem;border-radius:0.2rem;margin-inline-end:var(--tooltip-arrow-size);opacity:0;transition-property:opacity, transform;transition-duration:0.2s;transition-timing-function:ease-in-out;transform:translate3d(0, 0.25rem, 0)}.expressive-code .copy .feedback::after{content:&apos;&apos;;position:absolute;pointer-events:none;top:calc(50% - var(--tooltip-arrow-size));inset-inline-end:calc(-2 * (var(--tooltip-arrow-size) - 0.5px));border:var(--tooltip-arrow-size) solid transparent;border-inline-start-color:var(--tooltip-bg)}.expressive-code .copy .feedback.show{opacity:1;transform:translate3d(0, 0, 0)}@media (hover: hover){.expressive-code{}.expressive-code .copy button{opacity:0;width:2rem;height:2rem}.expressive-code .frame:hover .copy button:not(:hover),.expressive-code .frame:focus-within :focus-visible ~ .copy button:not(:hover),.expressive-code .frame .copy .feedback.show ~ button:not(:hover){opacity:0.75}}.expressive-code :nth-child(1 of .ec-line) .code{padding-inline-end:calc(2rem + var(--ec-codePadInl))}.expressive-code .gutter .ln{display:inline-flex;justify-content:flex-end;align-items:flex-start;box-sizing:content-box;min-width:var(--lnWidth, 2ch);padding-inline:2ch;color:var(--ec-lineNumbers-fg)}.highlight .expressive-code .gutter .ln{color:var(--ec-lineNumbers-hlFg)}.expressive-code .ec-section{position:relative}.expressive-code .ec-section summary{position:relative;font-family:var(--ec-cs-closedFontFml);font-size:var(--ec-cs-closedFontSize);line-height:var(--ec-cs-closedLineHt);user-select:none;-webkit-user-select:none;cursor:pointer;color:var(--ec-cs-closedTextCol);background-color:var(--ec-cs-closedBgCol);--border-color:var(--ec-cs-closedBrdCol);--border-width:var(--ec-cs-closedBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);margin:var(--ec-cs-closedMarg);padding:0}.expressive-code .ec-section summary::marker{display:inline-block;content:&quot;&quot;;width:16px;height:16px}.expressive-code .ec-section summary::-webkit-details-marker{display:none}.expressive-code .ec-section summary :is(.expand, .collapse){position:relative;display:inline-block;width:16px;height:16px;vertical-align:text-bottom;opacity:0.75}.expressive-code .ec-section summary :is(.expand, .collapse)::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-cs-closedTextCol);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;line-height:0}.expressive-code .ec-section summary .expand::after{-webkit-mask-image:var(--ec-cs-expandIcon);mask-image:var(--ec-cs-expandIcon);-webkit-print-color-adjust:exact;print-color-adjust:exact}.expressive-code .ec-section summary .collapse{display:none}.expressive-code .ec-section summary .collapse::after{-webkit-mask-image:var(--ec-cs-collapseIcon);mask-image:var(--ec-cs-collapseIcon)}.expressive-code .ec-section summary .text{margin-left:1em}.expressive-code .ec-section summary .ec-line .code{padding-block:var(--ec-cs-closedPadBlk);text-indent:0}.expressive-code .ec-section[open],.expressive-code .ec-section details[open] + .content-lines{--border-color:var(--ec-cs-openBrdCol);--border-width:var(--ec-cs-openBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);padding-inline:var(--ec-cs-openPad);margin-inline:var(--ec-cs-openMarg)}.expressive-code .ec-section.github[open] summary{display:none}.expressive-code .ec-section.github[open]{background-color:var(--ec-cs-openBgCol)}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end){display:flex;flex-direction:column}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) .content-lines{display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] .collapse{display:inline-block}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] :is(.expand, .text){display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] + .content-lines{display:block;background-color:var(--ec-cs-openBgColCollapsible)}@media print{.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open]{display:none}}.expressive-code .ec-section.collapsible-end{flex-direction:column-reverse}:root,:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;]{--ec-brdRad:0.3rem;--ec-brdWd:1.5px;--ec-brdCol:#1b1f23;--ec-codeFontFml:jetbrains-mono;--ec-codeFontSize:0.85rem;--ec-codeFontWg:400;--ec-codeLineHt:1.65;--ec-codePadBlk:1rem;--ec-codePadInl:1.35rem;--ec-codeBg:#24292e;--ec-codeFg:#e1e4e8;--ec-codeSelBg:#3392ff44;--ec-gtrFg:#727980;--ec-gtrBrdCol:#72798033;--ec-gtrBrdWd:1.5px;--ec-gtrHlFg:#e1e4e896;--ec-uiFontFml:jetbrains-mono;--ec-uiFontSize:0.9rem;--ec-uiFontWg:400;--ec-uiLineHt:1.65;--ec-uiPadBlk:0.25rem;--ec-uiPadInl:1rem;--ec-uiSelBg:#39414a;--ec-uiSelFg:#e1e4e8;--ec-focusBrd:#005cc5;--ec-sbThumbCol:#6a737d33;--ec-sbThumbHoverCol:#6a737dd1;--ec-tm-lineMarkerAccentMarg:0rem;--ec-tm-lineMarkerAccentWd:0.15rem;--ec-tm-lineMarkerLabelPadInl:0.2rem;--ec-tm-lineMarkerLabelCol:white;--ec-tm-lineDiffIndMargLeft:0.3rem;--ec-tm-inlMarkerBrdWd:1.5px;--ec-tm-inlMarkerBrdRad:0.2rem;--ec-tm-inlMarkerPad:0.15rem;--ec-tm-insDiffIndContent:&apos;+&apos;;--ec-tm-delDiffIndContent:&apos;-&apos;;--ec-tm-markBg:#264a8980;--ec-tm-markBrdCol:#5570b3d0;--ec-tm-insBg:#26561c80;--ec-tm-insBrdCol:#4e7e41d0;--ec-tm-insDiffIndCol:#7eb070d0;--ec-tm-delBg:#81322b80;--ec-tm-delBrdCol:#ae594fd0;--ec-tm-delDiffIndCol:#e68a7ed0;--ec-frm-shdCol:#0000005b;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #0000005b;--ec-frm-edActTabBg:#24292e;--ec-frm-edActTabFg:#e1e4e8;--ec-frm-edActTabBrdCol:transparent;--ec-frm-edActTabIndHt:1.5px;--ec-frm-edActTabIndTopCol:#f9826c;--ec-frm-edActTabIndBtmCol:#24292e;--ec-frm-edTabsMargInlStart:0;--ec-frm-edTabsMargBlkStart:0;--ec-frm-edTabBrdRad:0.3rem;--ec-frm-edTabBarBg:#1f2428;--ec-frm-edTabBarBrdCol:#1b1f23;--ec-frm-edTabBarBrdBtmCol:#1b1f23;--ec-frm-edBg:#24292e;--ec-frm-trmTtbFg:#e1e4e8;--ec-frm-trmTtbDotsFg:#e1e4e8;--ec-frm-trmTtbDotsOpa:0.15;--ec-frm-trmTtbBg:#24292e;--ec-frm-trmTtbBrdBtmCol:#1b1f23;--ec-frm-trmBg:#1f2428;--ec-frm-inlBtnFg:#e1e4e8;--ec-frm-inlBtnBg:#e1e4e8;--ec-frm-inlBtnBgIdleOpa:0;--ec-frm-inlBtnBgHoverOrFocusOpa:0.2;--ec-frm-inlBtnBgActOpa:0.3;--ec-frm-inlBtnBrd:#e1e4e8;--ec-frm-inlBtnBrdOpa:0.4;--ec-frm-tooltipSuccessBg:#228739;--ec-frm-tooltipSuccessFg:white;--ec-frm-copyIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2024%2024&apos;%20fill%3D&apos;none&apos;%20stroke%3D&apos;black&apos;%20stroke-width%3D&apos;1.75&apos;%3E%3Cpath%20d%3D&apos;M3%2019a2%202%200%200%201-1-2V2a2%202%200%200%201%201-1h13a2%202%200%200%201%202%201&apos;%2F%3E%3Crect%20x%3D&apos;6&apos;%20y%3D&apos;5&apos;%20width%3D&apos;16&apos;%20height%3D&apos;18&apos;%20rx%3D&apos;1.5&apos;%20ry%3D&apos;1.5&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-frm-trmIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2060%2016&apos;%20preserveAspectRatio%3D&apos;xMidYMid%20meet&apos;%3E%3Ccircle%20cx%3D&apos;8&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;30&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;52&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-lineNumbers-fg:inherit;--ec-lineNumbers-hlFg:inherit;--ec-cs-closedBrdWd:0px;--ec-cs-closedPadBlk:4px;--ec-cs-closedMarg:0;--ec-cs-closedFontFml:inherit;--ec-cs-closedFontSize:inherit;--ec-cs-closedLineHt:inherit;--ec-cs-closedTextCol:#e1e4e8;--ec-cs-closedBgCol:#58606933;--ec-cs-closedBrdCol:#58606980;--ec-cs-openBrdWd:1px;--ec-cs-openPad:0;--ec-cs-openMarg:0;--ec-cs-openBgCol:transparent;--ec-cs-openBgColCollapsible:#5860691a;--ec-cs-openBrdCol:transparent;--ec-cs-expandIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;m8.177.677%202.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25a.75.75%200%200%201-1.5%200V4H5.104a.25.25%200%200%201-.177-.427L7.823.677a.25.25%200%200%201%20.354%200ZM7.25%2010.75a.75.75%200%200%201%201.5%200V12h2.146a.25.25%200%200%201%20.177.427l-2.896%202.896a.25.25%200%200%201-.354%200l-2.896-2.896A.25.25%200%200%201%205.104%2012H7.25v-1.25Zm-5-2a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-cs-collapseIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;M10.896%202H8.75V.75a.75.75%200%200%200-1.5%200V2H5.104a.25.25%200%200%200-.177.427l2.896%202.896a.25.25%200%200%200%20.354%200l2.896-2.896A.25.25%200%200%200%2010.896%202ZM8.75%2015.25a.75.75%200%200%201-1.5%200V14H5.104a.25.25%200%200%201-.177-.427l2.896-2.896a.25.25%200%200%201%20.354%200l2.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25Zm-6.5-6.5a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;)}.expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])),:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--0, inherit);background-color:var(--0bg, transparent);font-style:var(--0fs, inherit);font-weight:var(--0fw, inherit);text-decoration:var(--0td, inherit)}@media (prefers-color-scheme: light){:root:not([data-theme=&quot;dark&quot;]){--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root:not([data-theme=&quot;dark&quot;]) .expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]),.expressive-code[data-theme=&quot;light&quot;]{--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]) .ec-line :where(span[style^=&apos;--&apos;]:not([class])),.expressive-code[data-theme=&quot;light&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}&lt;/style&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function a(e){if(!e)return;let t=e.getAttribute(&quot;tabindex&quot;)!==null,r=e.scrollWidth&gt;e.clientWidth;r&amp;&amp;!t?(e.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),e.setAttribute(&quot;role&quot;,&quot;region&quot;)):!r&amp;&amp;t&amp;&amp;(e.removeAttribute(&quot;tabindex&quot;),e.removeAttribute(&quot;role&quot;))}var u=window.requestIdleCallback||(e=&gt;setTimeout(e,1)),s=window.cancelIdleCallback||clearTimeout;function l(e){let t=new Set,r,n;return new ResizeObserver(c=&gt;{c.forEach(o=&gt;t.add(o.target)),r&amp;&amp;clearTimeout(r),n&amp;&amp;s(n),r=setTimeout(()=&gt;{n&amp;&amp;s(n),n=u(()=&gt;{t.forEach(o=&gt;e(o)),t.clear()})},250)})}function i(e,t){e.querySelectorAll?.(&quot;.expressive-code pre &gt; code&quot;).forEach(r=&gt;{let n=r.parentElement;n&amp;&amp;t.observe(n)})}var d=l(a);i(document,d);var b=new MutationObserver(e=&gt;e.forEach(t=&gt;t.addedNodes.forEach(r=&gt;{i(r,d)})));b.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document,d)});})();}catch(e){console.error(&quot;[EC] tabindex-js-module failed:&quot;,e)}&lt;/script&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function l(o){let e=document.createElement(&quot;pre&quot;);Object.assign(e.style,{opacity:&quot;0&quot;,pointerEvents:&quot;none&quot;,position:&quot;absolute&quot;,overflow:&quot;hidden&quot;,left:&quot;0&quot;,top:&quot;0&quot;,width:&quot;20px&quot;,height:&quot;20px&quot;,webkitUserSelect:&quot;auto&quot;,userSelect:&quot;all&quot;}),e.ariaHidden=&quot;true&quot;,e.textContent=o,document.body.appendChild(e);let a=document.createRange();a.selectNode(e);let n=getSelection();if(!n)return!1;n.removeAllRanges(),n.addRange(a);let r=!1;try{r=document.execCommand(&quot;copy&quot;)}finally{n.removeAllRanges(),document.body.removeChild(e)}return r}async function u(o){let e=o.currentTarget,a=e.dataset,n=!1,r=a.code.replace(/\u007f/g,`
`);try{await navigator.clipboard.writeText(r),n=!0}catch{n=l(r)}if(!n||e.parentNode?.querySelector(&quot;.feedback&quot;))return;let c=e.parentNode?.querySelector(&quot;[aria-live]&quot;),t=document.createElement(&quot;div&quot;);t.classList.add(&quot;feedback&quot;),t.append(a.copied),c.append(t),t.offsetWidth,requestAnimationFrame(()=&gt;t?.classList.add(&quot;show&quot;));let s=()=&gt;!t||t.classList.remove(&quot;show&quot;),d=()=&gt;{!t||parseFloat(getComputedStyle(t).opacity)&gt;0||(t.remove(),t=void 0)};setTimeout(s,1500),setTimeout(d,2500),e.addEventListener(&quot;blur&quot;,s),t.addEventListener(&quot;transitioncancel&quot;,d),t.addEventListener(&quot;transitionend&quot;,d)}function i(o){o.querySelectorAll?.(&quot;.expressive-code .copy button&quot;).forEach(e=&gt;e.addEventListener(&quot;click&quot;,u))}i(document);var m=new MutationObserver(o=&gt;o.forEach(e=&gt;e.addedNodes.forEach(a=&gt;{i(a)})));m.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document)});})();}catch(e){console.error(&quot;[EC] copy-js-module failed:&quot;,e)}&lt;/script&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;curl -v &quot;https://yourdomain.com/endpoint?&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;curl -v &amp;#x22;https://yourdomain.com/endpoint?&amp;#x22;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;JSON이 올바르게 표시된다면, 문제를 일으키는 것은 대부분 브라우저일 가능성이 높습니다.&lt;/p&gt;
&lt;p&gt;깨져서 표시된다면, Flask 앱에서 charset이 UTF-8로 설정되어 있는지 확인하세요. 이는 전송 과정의 문제가 아니라 근본적으로 Flask 내부에서 제대로 처리되지 않았다는 뜻이며, 객체 타입이나 인코딩 문제일 수 있습니다.&lt;/p&gt;
&lt;h4 id=&quot;브라우저의-개발자-도구&quot;&gt;브라우저의 개발자 도구&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Network 탭으로 이동해 엔드포인트 페이지를 새로고침하세요&lt;/li&gt;
&lt;li&gt;Content-Type이 ‘application/json; charset=UTF-8’인지 확인하세요&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;해결-방법&quot;&gt;해결 방법&lt;/h2&gt;
&lt;h3 id=&quot;content-type&quot;&gt;Content-Type&lt;/h3&gt;
&lt;p&gt;application/json 또는 charset=UTF-8 중 하나라도 빠져 있다면, Flask API 앱의 해당 엔드포인트에 다음 response.header를 추가하세요:&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;response.headers[&apos;Content-Type&apos;] = &apos;application/json; charset=UTF-8&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;response.headers[&amp;#x27;Content-Type&amp;#x27;] = &amp;#x27;application/json; charset=UTF-8&amp;#x27;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;이제 앱을 재시작하고 다시 시도해서 작동하는지 확인하세요. 그래도 안 된다면 다음 단계로 넘어가세요.&lt;/p&gt;
&lt;h3 id=&quot;content-encoding&quot;&gt;Content-Encoding&lt;/h3&gt;
&lt;p&gt;이제 Content-Type이 문제가 아니라는 것을 확인했습니다. application/json; charset=UTF-8로 올바르게 표시되니까요. 두 번째 원인인 인코딩 오류로 넘어가 봅시다.&lt;/p&gt;
&lt;p&gt;기본적으로 Flask API가 브라우저로 응답을 보낼 때 콘텐츠를 자동으로 압축합니다. 그러면 브라우저가 이를 디코딩하려고 시도합니다. 하지만 어떤 이유에서인지 제대로 디코딩하지 못합니다.&lt;/p&gt;
&lt;p&gt;완벽한 예시가 바로 cURL -v에서는 올바른 응답을 받지만 브라우저에서는 깨지는 경우입니다. (제 경우가 바로 이랬습니다.) cURL은 기본적으로 압축되거나 인코딩된 응답을 받지 않기 때문에 cURL에서는 작동하고 브라우저에서는 작동하지 않는 것입니다.&lt;/p&gt;
&lt;p&gt;이를 해결하려면 Flask API 앱 응답에 다음을 추가해야 합니다:&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;response.headers[&apos;Content-Encoding&apos;] = &apos;identity&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;response.headers[&amp;#x27;Content-Encoding&amp;#x27;] = &amp;#x27;identity&amp;#x27;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;이렇게 하면 기본적으로 압축이 비활성화되어, 브라우저도 cURL이 받는 것과 동일한 응답을 받을 수 있습니다.&lt;/p&gt;
&lt;p&gt;이렇게 하면 해결될 것입니다.&lt;/p&gt;
&lt;p&gt;행운을 빕니다.&lt;/p&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/b9c41563-4083-4d57-9841-dbfdfaeab1e8"/><enclosure url="https://cms.hongct.com/assets/b9c41563-4083-4d57-9841-dbfdfaeab1e8" length="75134" type="image/webp"/></item><item><title>GitHub에서 웹사이트 호스팅하는 방법 (초보자 가이드)</title><link>https://hongcheung.com/ko/post/how-to-host-a-website-on-github-beginners-guide/</link><guid isPermaLink="true">https://hongcheung.com/ko/post/how-to-host-a-website-on-github-beginners-guide/</guid><description>GitHub Pages를 이용한 무료 웹사이트 호스팅 초보자 가이드입니다.</description><pubDate>Sat, 15 Mar 2025 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/0090d3fd-8466-49d4-89f2-47b351bb3531&quot; alt=&quot;GitHub에서 웹사이트 호스팅하는 방법 (초보자 가이드)&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;왜-github-웹사이트를-원하시나요&quot;&gt;왜 GitHub 웹사이트를 원하시나요?&lt;/h2&gt;
&lt;p&gt;간편하고 무료이기 때문입니다. 시작하기 전에 장단점을 살펴보고 이것이 여러분의 필요에 적합한지 확인해 봅시다.&lt;/p&gt;
&lt;h3 id=&quot;장점&quot;&gt;장점&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;도메인 이름을 알아서 관리&lt;/strong&gt;해 주며, &lt;strong&gt;저장 공간이나 높은 트래픽에 대한 요금을 걱정할 필요가 없습니다&lt;/strong&gt;. 무료 GitHub 계정만 있으면 됩니다.&lt;/p&gt;
&lt;h3 id=&quot;단점&quot;&gt;단점&lt;/h3&gt;
&lt;p&gt;GitHub Pages에서는 동적 사이트를 호스팅할 수 없고 &lt;strong&gt;정적 사이트&lt;/strong&gt;만 가능합니다. 즉, express.js나 flask를 사용하듯 들어오는 트래픽을 처리하는 &lt;strong&gt;서버를 호스팅할 수 없으며&lt;/strong&gt;, &lt;strong&gt;정적&lt;/strong&gt; 사이트만 호스팅할 수 있습니다. 다만 &lt;strong&gt;동적 정적 사이트&lt;/strong&gt;는 가능합니다. 스크립트를 실행할 수는 있지만, 그 스크립트는 미리 로드되어 있어야 합니다.&lt;/p&gt;
&lt;p&gt;또 다른 단점은 무료 계정으로 GitHub 페이지를 운영하는 경우 &lt;strong&gt;GitHub 저장소(웹사이트 파일과 디렉터리)가 공개된다&lt;/strong&gt;는 것입니다. 즉, 누구나 여러분의 파일을 보고 방문할 수 있습니다. 따라서 웹사이트 폴더에 기밀 정보를 포함하지 않는 것이 좋습니다.&lt;/p&gt;
&lt;p&gt;그렇긴 하지만, 코드를 공유해도 괜찮은 간단한 웹사이트를 호스팅하기에는 여전히 좋습니다. 개인 이력서, 간단한 회사 웹사이트, 간단한 블로그 같은 것이죠. 또는 자신만의 동적 정적 웹 앱을 테스트하고 싶을 때도 좋습니다.&lt;/p&gt;
&lt;h2 id=&quot;사전-준비-사항&quot;&gt;사전 준비 사항&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;인터넷이 연결된 컴퓨터.&lt;/li&gt;
&lt;li&gt;기본적인 컴퓨터 활용 능력.&lt;/li&gt;
&lt;li&gt;무료 GitHub 계정.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;무료-github-페이지를-만드는-단계별-가이드&quot;&gt;무료 GitHub 페이지를 만드는 단계별 가이드&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://github.com/signup?source=login&quot;&gt;GitHub 계정&lt;/a&gt;을 만드세요.&lt;/li&gt;
&lt;li&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/777ac5fd-ae95-47fb-9ae1-55434745d338&quot; alt=&quot;새 GitHub 페이지 만들기&quot;&gt;
로그인한 후 &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://github.com/new&quot;&gt;새 저장소를 만드세요&lt;/a&gt;. “Public”을 선택해야 합니다.&lt;/li&gt;
&lt;li&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/ac0489fe-2d99-4d66-85e4-47f8e47cd282&quot; alt=&quot;GitHub에서 새 파일 만들기&quot;&gt;
빈 저장소를 만들었다면 “create new file”을 누르세요.&lt;/li&gt;
&lt;li&gt;아래의 &lt;a href=&quot;#sample_code&quot;&gt;샘플 코드&lt;/a&gt;를 복사하여 붙여넣고, 파일 이름을 index.html로 지정하여 이 파일을 만드세요.&lt;/li&gt;
&lt;li&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/31f525f3-9927-4b42-8bb5-945e89c4555b&quot; alt=&quot;index.html 샘플 코드&quot;&gt;
이렇게 보일 것입니다. commit changes를 클릭하세요.&lt;/li&gt;
&lt;li&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/2aafd9be-1a0d-4175-b4ad-53defdcf1465&quot; alt=&quot;GitHub 페이지용 main 브랜치 선택&quot;&gt;
Settings 탭 &gt; 측면의 Pages &gt; Branches로 이동하여 main을 선택하고 save를 클릭하세요.&lt;/li&gt;
&lt;li&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/72fbb2af-cb7a-4b50-869b-fb8bc36173d2&quot; alt=&quot;&quot;&gt;
이제 저장소로 돌아가 몇 분 기다리세요.&lt;/li&gt;
&lt;li&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/a7ff08d8-d455-4757-b6c5-15e22804cae4&quot; alt=&quot;GitHub 페이지 게시됨&quot;&gt;
페이지를 새로 고치면 GitHub 페이지가 성공적으로 게시된 것을 볼 수 있습니다.&lt;/li&gt;
&lt;li&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/2ab504d0-7906-46cf-9c71-15e6b0b9978a&quot; alt=&quot;GitHub 페이지가 라이브 상태임&quot;&gt;
잘하셨습니다! 이제 이 링크를 통해 GitHub 페이지를 사용할 수 있습니다!&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;샘플 코드:&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;style&gt;.expressive-code{font-family:var(--ec-uiFontFml);font-size:var(--ec-uiFontSize);font-weight:var(--ec-uiFontWg);line-height:var(--ec-uiLineHt);text-size-adjust:none;-webkit-text-size-adjust:none}.expressive-code *:not(:is(svg, svg *)){all:revert;box-sizing:border-box}.expressive-code pre{display:flex;margin:0;padding:0;border:var(--ec-brdWd) solid var(--ec-brdCol);border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));background:var(--ec-codeBg)}.expressive-code pre:focus-visible{outline:3px solid var(--ec-focusBrd);outline-offset:-3px}.expressive-code pre &gt; code{all:unset;display:block;flex:1 0 100%;padding:var(--ec-codePadBlk) 0;color:var(--ec-codeFg);font-family:var(--ec-codeFontFml);font-size:var(--ec-codeFontSize);font-weight:var(--ec-codeFontWg);line-height:var(--ec-codeLineHt)}.expressive-code pre{overflow-x:auto}.expressive-code pre.wrap .ec-line .code{white-space:pre-wrap;overflow-wrap:break-word;min-width:min(20ch, var(--ecMaxLine, 20ch))}.expressive-code pre.wrap .ec-line .code span.indent{white-space:pre}.expressive-code pre::-webkit-scrollbar,.expressive-code pre::-webkit-scrollbar-track{background-color:inherit;border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));border-top-left-radius:0;border-top-right-radius:0}.expressive-code pre::-webkit-scrollbar-thumb{background-color:var(--ec-sbThumbCol);border:4px solid transparent;background-clip:content-box;border-radius:10px}.expressive-code pre::-webkit-scrollbar-thumb:hover{background-color:var(--ec-sbThumbHoverCol)}.expressive-code pre::-webkit-scrollbar-corner{background:transparent}.expressive-code .ec-line{direction:ltr;unicode-bidi:isolate;display:grid;grid-template-areas:&apos;gutter code&apos;;grid-template-columns:auto 1fr;position:relative}.expressive-code .ec-line .gutter{grid-area:gutter;color:var(--ec-gtrFg)}.expressive-code .ec-line .gutter &gt; *{pointer-events:none;user-select:none;-webkit-user-select:none}.expressive-code .ec-line .gutter ~ .code{--ecLineBrdCol:var(--ec-gtrBrdCol)}.expressive-code .ec-line.highlight .gutter{color:var(--ec-gtrHlFg)}.expressive-code .ec-line .code{grid-area:code;position:relative;box-sizing:content-box;padding-inline-start:calc(var(--ecIndent, 0ch) + var(--ec-codePadInl) - var(--ecGtrBrdWd));padding-inline-end:var(--ec-codePadInl);text-indent:calc(var(--ecIndent, 0ch) * -1)}.expressive-code .ec-line .code::before,.expressive-code .ec-line .code::after,.expressive-code .ec-line .code :where(*){text-indent:0}.expressive-code .ec-line .code{--ecGtrBrdWd:var(--ec-gtrBrdWd);border-inline-start:var(--ecGtrBrdWd) solid var(--ecLineBrdCol, transparent)}.expressive-code .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.expressive-code .ec-line.mark{--tmLineBgCol:var(--ec-tm-markBg)}.expressive-code .ec-line.mark .code{--ecLineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line.ins{--tmLineBgCol:var(--ec-tm-insBg);--tmLabel:var(--ec-tm-insDiffIndContent)}.expressive-code .ec-line.ins .code{--ecLineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line.ins .code::before{color:var(--ec-tm-insDiffIndCol)}.expressive-code .ec-line.del{--tmLineBgCol:var(--ec-tm-delBg);--tmLabel:var(--ec-tm-delDiffIndContent)}.expressive-code .ec-line.del .code{--ecLineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line.del .code::before{color:var(--ec-tm-delDiffIndCol)}.expressive-code .ec-line.mark,.expressive-code .ec-line.ins,.expressive-code .ec-line.del{background:var(--tmLineBgCol)}.expressive-code .ec-line.mark .code,.expressive-code .ec-line.ins .code,.expressive-code .ec-line.del .code{--ecGtrBrdWd:var(--ec-tm-lineMarkerAccentWd)}.expressive-code .ec-line.mark .code::before,.expressive-code .ec-line.ins .code::before,.expressive-code .ec-line.del .code::before{display:block;position:absolute;left:0;box-sizing:border-box;content:var(--tmLabel, &apos; &apos;);padding-inline-start:var(--ec-tm-lineDiffIndMargLeft);text-align:center;white-space:pre}.expressive-code .ec-line.mark.tm-label .code::before,.expressive-code .ec-line.ins.tm-label .code::before,.expressive-code .ec-line.del.tm-label .code::before{background:var(--ecLineBrdCol);padding:0 calc(var(--ec-tm-lineMarkerLabelPadInl) + var(--ec-tm-lineMarkerAccentWd)) 0 var(--ec-tm-lineMarkerLabelPadInl);color:var(--ec-tm-lineMarkerLabelCol)}.expressive-code .ec-line mark{--tmInlineBgCol:var(--ec-tm-markBg);--tmInlineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line ins{--tmInlineBgCol:var(--ec-tm-insBg);--tmInlineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line del{--tmInlineBgCol:var(--ec-tm-delBg);--tmInlineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line mark,.expressive-code .ec-line ins,.expressive-code .ec-line del{all:unset;display:inline-block;position:relative;--tmBrdL:var(--ec-tm-inlMarkerBrdWd);--tmBrdR:var(--ec-tm-inlMarkerBrdWd);--tmRadL:var(--ec-tm-inlMarkerBrdRad);--tmRadR:var(--ec-tm-inlMarkerBrdRad);margin-inline:0.025rem;padding-inline:var(--ec-tm-inlMarkerPad);border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);background:var(--tmInlineBgCol);background-clip:padding-box}.expressive-code .ec-line mark.open-start,.expressive-code .ec-line ins.open-start,.expressive-code .ec-line del.open-start{margin-inline-start:0;padding-inline-start:0;--tmBrdL:0px;--tmRadL:0}.expressive-code .ec-line mark.open-end,.expressive-code .ec-line ins.open-end,.expressive-code .ec-line del.open-end{margin-inline-end:0;padding-inline-end:0;--tmBrdR:0px;--tmRadR:0}.expressive-code .ec-line mark::before,.expressive-code .ec-line ins::before,.expressive-code .ec-line del::before{content:&apos;&apos;;position:absolute;pointer-events:none;display:inline-block;inset:0;border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);border:var(--ec-tm-inlMarkerBrdWd) solid var(--tmInlineBrdCol);border-inline-width:var(--tmBrdL) var(--tmBrdR)}.expressive-code .frame{all:unset;position:relative;display:block;--header-border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));--tab-border-radius:calc(var(--ec-frm-edTabBrdRad) + var(--ec-brdWd));--button-spacing:0.4rem;--code-background:var(--ec-frm-edBg);border-radius:var(--header-border-radius);box-shadow:var(--ec-frm-frameBoxShdCssVal)}.expressive-code .frame .header{display:none;z-index:1;position:relative;border-radius:var(--header-border-radius) var(--header-border-radius) 0 0}.expressive-code .frame.has-title pre,.expressive-code .frame.has-title code,.expressive-code .frame.is-terminal pre,.expressive-code .frame.is-terminal code{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.expressive-code .frame .title:empty:before{content:&apos;\a0&apos;}.expressive-code .frame.has-title:not(.is-terminal){--button-spacing:calc(1.9rem + 2 * (var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)))}.expressive-code .frame.has-title:not(.is-terminal) .title{position:relative;color:var(--ec-frm-edActTabFg);background:var(--ec-frm-edActTabBg);background-clip:padding-box;margin-block-start:var(--ec-frm-edTabsMargBlkStart);padding:calc(var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)) var(--ec-uiPadInl);border:var(--ec-brdWd) solid var(--ec-frm-edActTabBrdCol);border-radius:var(--tab-border-radius) var(--tab-border-radius) 0 0;border-bottom:none;overflow:hidden}.expressive-code .frame.has-title:not(.is-terminal) .title::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-top:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndTopCol);border-bottom:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndBtmCol)}.expressive-code .frame.has-title:not(.is-terminal) .header{display:flex;background:linear-gradient(to top, var(--ec-frm-edTabBarBrdBtmCol) var(--ec-brdWd), transparent var(--ec-brdWd)),linear-gradient(var(--ec-frm-edTabBarBg), var(--ec-frm-edTabBarBg));background-repeat:no-repeat;padding-inline-start:var(--ec-frm-edTabsMargInlStart)}.expressive-code .frame.has-title:not(.is-terminal) .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border:var(--ec-brdWd) solid var(--ec-frm-edTabBarBrdCol);border-radius:inherit;border-bottom:none}.expressive-code .frame.is-terminal{--button-spacing:calc(1.9rem + var(--ec-brdWd) + 2 * var(--ec-uiPadBlk));--code-background:var(--ec-frm-trmBg)}.expressive-code .frame.is-terminal .header{display:flex;align-items:center;justify-content:center;padding-block:var(--ec-uiPadBlk);padding-block-end:calc(var(--ec-uiPadBlk) + var(--ec-brdWd));position:relative;font-weight:500;letter-spacing:0.025ch;color:var(--ec-frm-trmTtbFg);background:var(--ec-frm-trmTtbBg);border:var(--ec-brdWd) solid var(--ec-brdCol);border-bottom:none}.expressive-code .frame.is-terminal .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;left:var(--ec-uiPadInl);width:2.1rem;height:0.56rem;line-height:0;background-color:var(--ec-frm-trmTtbDotsFg);opacity:var(--ec-frm-trmTtbDotsOpa);-webkit-mask-image:var(--ec-frm-trmIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-trmIcon);mask-repeat:no-repeat}.expressive-code .frame.is-terminal .header::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-bottom:var(--ec-brdWd) solid var(--ec-frm-trmTtbBrdBtmCol)}.expressive-code .frame pre{background:var(--code-background)}.expressive-code .copy{display:flex;gap:0.25rem;flex-direction:row;position:absolute;inset-block-start:calc(var(--ec-brdWd) + var(--button-spacing));inset-inline-end:calc(var(--ec-brdWd) + var(--ec-uiPadInl) / 2)}@media (scripting: none){.expressive-code .copy{display:none}}.expressive-code .copy{direction:ltr;unicode-bidi:isolate}.expressive-code .copy button{position:relative;align-self:flex-end;margin:0;padding:0;border:none;border-radius:0.2rem;z-index:1;cursor:pointer;transition-property:opacity, background, border-color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94);width:2.5rem;height:2.5rem;background:var(--code-background);opacity:0.75}.expressive-code .copy button div{position:absolute;inset:0;border-radius:inherit;background:var(--ec-frm-inlBtnBg);opacity:var(--ec-frm-inlBtnBgIdleOpa);transition-property:inherit;transition-duration:inherit;transition-timing-function:inherit}.expressive-code .copy button::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-radius:inherit;border:var(--ec-brdWd) solid var(--ec-frm-inlBtnBrd);opacity:var(--ec-frm-inlBtnBrdOpa)}.expressive-code .copy button::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-frm-inlBtnFg);-webkit-mask-image:var(--ec-frm-copyIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-copyIcon);mask-repeat:no-repeat;margin:0.475rem;line-height:0}.expressive-code .copy button:hover,.expressive-code .copy button:focus:focus-visible{opacity:1}.expressive-code .copy button:hover div,.expressive-code .copy button:focus:focus-visible div{opacity:var(--ec-frm-inlBtnBgHoverOrFocusOpa)}.expressive-code .copy button:active{opacity:1}.expressive-code .copy button:active div{opacity:var(--ec-frm-inlBtnBgActOpa)}.expressive-code .copy .feedback{--tooltip-arrow-size:0.35rem;--tooltip-bg:var(--ec-frm-tooltipSuccessBg);color:var(--ec-frm-tooltipSuccessFg);pointer-events:none;user-select:none;-webkit-user-select:none;position:relative;align-self:center;background-color:var(--tooltip-bg);z-index:99;padding:0.125rem 0.75rem;border-radius:0.2rem;margin-inline-end:var(--tooltip-arrow-size);opacity:0;transition-property:opacity, transform;transition-duration:0.2s;transition-timing-function:ease-in-out;transform:translate3d(0, 0.25rem, 0)}.expressive-code .copy .feedback::after{content:&apos;&apos;;position:absolute;pointer-events:none;top:calc(50% - var(--tooltip-arrow-size));inset-inline-end:calc(-2 * (var(--tooltip-arrow-size) - 0.5px));border:var(--tooltip-arrow-size) solid transparent;border-inline-start-color:var(--tooltip-bg)}.expressive-code .copy .feedback.show{opacity:1;transform:translate3d(0, 0, 0)}@media (hover: hover){.expressive-code{}.expressive-code .copy button{opacity:0;width:2rem;height:2rem}.expressive-code .frame:hover .copy button:not(:hover),.expressive-code .frame:focus-within :focus-visible ~ .copy button:not(:hover),.expressive-code .frame .copy .feedback.show ~ button:not(:hover){opacity:0.75}}.expressive-code :nth-child(1 of .ec-line) .code{padding-inline-end:calc(2rem + var(--ec-codePadInl))}.expressive-code .gutter .ln{display:inline-flex;justify-content:flex-end;align-items:flex-start;box-sizing:content-box;min-width:var(--lnWidth, 2ch);padding-inline:2ch;color:var(--ec-lineNumbers-fg)}.highlight .expressive-code .gutter .ln{color:var(--ec-lineNumbers-hlFg)}.expressive-code .ec-section{position:relative}.expressive-code .ec-section summary{position:relative;font-family:var(--ec-cs-closedFontFml);font-size:var(--ec-cs-closedFontSize);line-height:var(--ec-cs-closedLineHt);user-select:none;-webkit-user-select:none;cursor:pointer;color:var(--ec-cs-closedTextCol);background-color:var(--ec-cs-closedBgCol);--border-color:var(--ec-cs-closedBrdCol);--border-width:var(--ec-cs-closedBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);margin:var(--ec-cs-closedMarg);padding:0}.expressive-code .ec-section summary::marker{display:inline-block;content:&quot;&quot;;width:16px;height:16px}.expressive-code .ec-section summary::-webkit-details-marker{display:none}.expressive-code .ec-section summary :is(.expand, .collapse){position:relative;display:inline-block;width:16px;height:16px;vertical-align:text-bottom;opacity:0.75}.expressive-code .ec-section summary :is(.expand, .collapse)::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-cs-closedTextCol);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;line-height:0}.expressive-code .ec-section summary .expand::after{-webkit-mask-image:var(--ec-cs-expandIcon);mask-image:var(--ec-cs-expandIcon);-webkit-print-color-adjust:exact;print-color-adjust:exact}.expressive-code .ec-section summary .collapse{display:none}.expressive-code .ec-section summary .collapse::after{-webkit-mask-image:var(--ec-cs-collapseIcon);mask-image:var(--ec-cs-collapseIcon)}.expressive-code .ec-section summary .text{margin-left:1em}.expressive-code .ec-section summary .ec-line .code{padding-block:var(--ec-cs-closedPadBlk);text-indent:0}.expressive-code .ec-section[open],.expressive-code .ec-section details[open] + .content-lines{--border-color:var(--ec-cs-openBrdCol);--border-width:var(--ec-cs-openBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);padding-inline:var(--ec-cs-openPad);margin-inline:var(--ec-cs-openMarg)}.expressive-code .ec-section.github[open] summary{display:none}.expressive-code .ec-section.github[open]{background-color:var(--ec-cs-openBgCol)}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end){display:flex;flex-direction:column}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) .content-lines{display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] .collapse{display:inline-block}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] :is(.expand, .text){display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] + .content-lines{display:block;background-color:var(--ec-cs-openBgColCollapsible)}@media print{.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open]{display:none}}.expressive-code .ec-section.collapsible-end{flex-direction:column-reverse}:root,:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;]{--ec-brdRad:0.3rem;--ec-brdWd:1.5px;--ec-brdCol:#1b1f23;--ec-codeFontFml:jetbrains-mono;--ec-codeFontSize:0.85rem;--ec-codeFontWg:400;--ec-codeLineHt:1.65;--ec-codePadBlk:1rem;--ec-codePadInl:1.35rem;--ec-codeBg:#24292e;--ec-codeFg:#e1e4e8;--ec-codeSelBg:#3392ff44;--ec-gtrFg:#727980;--ec-gtrBrdCol:#72798033;--ec-gtrBrdWd:1.5px;--ec-gtrHlFg:#e1e4e896;--ec-uiFontFml:jetbrains-mono;--ec-uiFontSize:0.9rem;--ec-uiFontWg:400;--ec-uiLineHt:1.65;--ec-uiPadBlk:0.25rem;--ec-uiPadInl:1rem;--ec-uiSelBg:#39414a;--ec-uiSelFg:#e1e4e8;--ec-focusBrd:#005cc5;--ec-sbThumbCol:#6a737d33;--ec-sbThumbHoverCol:#6a737dd1;--ec-tm-lineMarkerAccentMarg:0rem;--ec-tm-lineMarkerAccentWd:0.15rem;--ec-tm-lineMarkerLabelPadInl:0.2rem;--ec-tm-lineMarkerLabelCol:white;--ec-tm-lineDiffIndMargLeft:0.3rem;--ec-tm-inlMarkerBrdWd:1.5px;--ec-tm-inlMarkerBrdRad:0.2rem;--ec-tm-inlMarkerPad:0.15rem;--ec-tm-insDiffIndContent:&apos;+&apos;;--ec-tm-delDiffIndContent:&apos;-&apos;;--ec-tm-markBg:#264a8980;--ec-tm-markBrdCol:#5570b3d0;--ec-tm-insBg:#26561c80;--ec-tm-insBrdCol:#4e7e41d0;--ec-tm-insDiffIndCol:#7eb070d0;--ec-tm-delBg:#81322b80;--ec-tm-delBrdCol:#ae594fd0;--ec-tm-delDiffIndCol:#e68a7ed0;--ec-frm-shdCol:#0000005b;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #0000005b;--ec-frm-edActTabBg:#24292e;--ec-frm-edActTabFg:#e1e4e8;--ec-frm-edActTabBrdCol:transparent;--ec-frm-edActTabIndHt:1.5px;--ec-frm-edActTabIndTopCol:#f9826c;--ec-frm-edActTabIndBtmCol:#24292e;--ec-frm-edTabsMargInlStart:0;--ec-frm-edTabsMargBlkStart:0;--ec-frm-edTabBrdRad:0.3rem;--ec-frm-edTabBarBg:#1f2428;--ec-frm-edTabBarBrdCol:#1b1f23;--ec-frm-edTabBarBrdBtmCol:#1b1f23;--ec-frm-edBg:#24292e;--ec-frm-trmTtbFg:#e1e4e8;--ec-frm-trmTtbDotsFg:#e1e4e8;--ec-frm-trmTtbDotsOpa:0.15;--ec-frm-trmTtbBg:#24292e;--ec-frm-trmTtbBrdBtmCol:#1b1f23;--ec-frm-trmBg:#1f2428;--ec-frm-inlBtnFg:#e1e4e8;--ec-frm-inlBtnBg:#e1e4e8;--ec-frm-inlBtnBgIdleOpa:0;--ec-frm-inlBtnBgHoverOrFocusOpa:0.2;--ec-frm-inlBtnBgActOpa:0.3;--ec-frm-inlBtnBrd:#e1e4e8;--ec-frm-inlBtnBrdOpa:0.4;--ec-frm-tooltipSuccessBg:#228739;--ec-frm-tooltipSuccessFg:white;--ec-frm-copyIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2024%2024&apos;%20fill%3D&apos;none&apos;%20stroke%3D&apos;black&apos;%20stroke-width%3D&apos;1.75&apos;%3E%3Cpath%20d%3D&apos;M3%2019a2%202%200%200%201-1-2V2a2%202%200%200%201%201-1h13a2%202%200%200%201%202%201&apos;%2F%3E%3Crect%20x%3D&apos;6&apos;%20y%3D&apos;5&apos;%20width%3D&apos;16&apos;%20height%3D&apos;18&apos;%20rx%3D&apos;1.5&apos;%20ry%3D&apos;1.5&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-frm-trmIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2060%2016&apos;%20preserveAspectRatio%3D&apos;xMidYMid%20meet&apos;%3E%3Ccircle%20cx%3D&apos;8&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;30&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;52&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-lineNumbers-fg:inherit;--ec-lineNumbers-hlFg:inherit;--ec-cs-closedBrdWd:0px;--ec-cs-closedPadBlk:4px;--ec-cs-closedMarg:0;--ec-cs-closedFontFml:inherit;--ec-cs-closedFontSize:inherit;--ec-cs-closedLineHt:inherit;--ec-cs-closedTextCol:#e1e4e8;--ec-cs-closedBgCol:#58606933;--ec-cs-closedBrdCol:#58606980;--ec-cs-openBrdWd:1px;--ec-cs-openPad:0;--ec-cs-openMarg:0;--ec-cs-openBgCol:transparent;--ec-cs-openBgColCollapsible:#5860691a;--ec-cs-openBrdCol:transparent;--ec-cs-expandIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;m8.177.677%202.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25a.75.75%200%200%201-1.5%200V4H5.104a.25.25%200%200%201-.177-.427L7.823.677a.25.25%200%200%201%20.354%200ZM7.25%2010.75a.75.75%200%200%201%201.5%200V12h2.146a.25.25%200%200%201%20.177.427l-2.896%202.896a.25.25%200%200%201-.354%200l-2.896-2.896A.25.25%200%200%201%205.104%2012H7.25v-1.25Zm-5-2a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-cs-collapseIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;M10.896%202H8.75V.75a.75.75%200%200%200-1.5%200V2H5.104a.25.25%200%200%200-.177.427l2.896%202.896a.25.25%200%200%200%20.354%200l2.896-2.896A.25.25%200%200%200%2010.896%202ZM8.75%2015.25a.75.75%200%200%201-1.5%200V14H5.104a.25.25%200%200%201-.177-.427l2.896-2.896a.25.25%200%200%201%20.354%200l2.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25Zm-6.5-6.5a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;)}.expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])),:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--0, inherit);background-color:var(--0bg, transparent);font-style:var(--0fs, inherit);font-weight:var(--0fw, inherit);text-decoration:var(--0td, inherit)}@media (prefers-color-scheme: light){:root:not([data-theme=&quot;dark&quot;]){--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root:not([data-theme=&quot;dark&quot;]) .expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]),.expressive-code[data-theme=&quot;light&quot;]{--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]) .ec-line :where(span[style^=&apos;--&apos;]:not([class])),.expressive-code[data-theme=&quot;light&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}&lt;/style&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function a(e){if(!e)return;let t=e.getAttribute(&quot;tabindex&quot;)!==null,r=e.scrollWidth&gt;e.clientWidth;r&amp;&amp;!t?(e.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),e.setAttribute(&quot;role&quot;,&quot;region&quot;)):!r&amp;&amp;t&amp;&amp;(e.removeAttribute(&quot;tabindex&quot;),e.removeAttribute(&quot;role&quot;))}var u=window.requestIdleCallback||(e=&gt;setTimeout(e,1)),s=window.cancelIdleCallback||clearTimeout;function l(e){let t=new Set,r,n;return new ResizeObserver(c=&gt;{c.forEach(o=&gt;t.add(o.target)),r&amp;&amp;clearTimeout(r),n&amp;&amp;s(n),r=setTimeout(()=&gt;{n&amp;&amp;s(n),n=u(()=&gt;{t.forEach(o=&gt;e(o)),t.clear()})},250)})}function i(e,t){e.querySelectorAll?.(&quot;.expressive-code pre &gt; code&quot;).forEach(r=&gt;{let n=r.parentElement;n&amp;&amp;t.observe(n)})}var d=l(a);i(document,d);var b=new MutationObserver(e=&gt;e.forEach(t=&gt;t.addedNodes.forEach(r=&gt;{i(r,d)})));b.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document,d)});})();}catch(e){console.error(&quot;[EC] tabindex-js-module failed:&quot;,e)}&lt;/script&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function l(o){let e=document.createElement(&quot;pre&quot;);Object.assign(e.style,{opacity:&quot;0&quot;,pointerEvents:&quot;none&quot;,position:&quot;absolute&quot;,overflow:&quot;hidden&quot;,left:&quot;0&quot;,top:&quot;0&quot;,width:&quot;20px&quot;,height:&quot;20px&quot;,webkitUserSelect:&quot;auto&quot;,userSelect:&quot;all&quot;}),e.ariaHidden=&quot;true&quot;,e.textContent=o,document.body.appendChild(e);let a=document.createRange();a.selectNode(e);let n=getSelection();if(!n)return!1;n.removeAllRanges(),n.addRange(a);let r=!1;try{r=document.execCommand(&quot;copy&quot;)}finally{n.removeAllRanges(),document.body.removeChild(e)}return r}async function u(o){let e=o.currentTarget,a=e.dataset,n=!1,r=a.code.replace(/\u007f/g,`
`);try{await navigator.clipboard.writeText(r),n=!0}catch{n=l(r)}if(!n||e.parentNode?.querySelector(&quot;.feedback&quot;))return;let c=e.parentNode?.querySelector(&quot;[aria-live]&quot;),t=document.createElement(&quot;div&quot;);t.classList.add(&quot;feedback&quot;),t.append(a.copied),c.append(t),t.offsetWidth,requestAnimationFrame(()=&gt;t?.classList.add(&quot;show&quot;));let s=()=&gt;!t||t.classList.remove(&quot;show&quot;),d=()=&gt;{!t||parseFloat(getComputedStyle(t).opacity)&gt;0||(t.remove(),t=void 0)};setTimeout(s,1500),setTimeout(d,2500),e.addEventListener(&quot;blur&quot;,s),t.addEventListener(&quot;transitioncancel&quot;,d),t.addEventListener(&quot;transitionend&quot;,d)}function i(o){o.querySelectorAll?.(&quot;.expressive-code .copy button&quot;).forEach(e=&gt;e.addEventListener(&quot;click&quot;,u))}i(document);var m=new MutationObserver(o=&gt;o.forEach(e=&gt;e.addedNodes.forEach(a=&gt;{i(a)})));m.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document)});})();}catch(e){console.error(&quot;[EC] copy-js-module failed:&quot;,e)}&lt;/script&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;!DOCTYPE html&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;html lang=&quot;en&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;head&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;4&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;meta charset=&quot;UTF-8&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;5&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;6&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;ie=edge&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;7&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;title&gt;My Website&amp;#x3C;/title&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;8&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;link rel=&quot;stylesheet&quot; href=&quot;./style.css&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;9&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;link rel=&quot;icon&quot; href=&quot;./favicon.ico&quot; type=&quot;image/x-icon&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;10&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;/head&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;11&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;body&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;12&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;main&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;13&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;h1&gt;Welcome to My Website&amp;#x3C;/h1&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;14&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;/main&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;15&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;script src=&quot;index.js&quot;&gt;&amp;#x3C;/script&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;details class=&quot;ec-section github&quot;&gt;&lt;summary&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;expand&quot;&gt;&lt;/span&gt;&lt;span class=&quot;collapse&quot;&gt;&lt;/span&gt;&lt;span class=&quot;text&quot;&gt;2 collapsed lines&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/summary&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;16&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;/body&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;17&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;&amp;#x3C;/html&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/details&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;&lt;!DOCTYPE html&gt;&lt;html lang=&amp;#x22;en&amp;#x22;&gt;  &lt;head&gt;    &lt;meta charset=&amp;#x22;UTF-8&amp;#x22;&gt;    &lt;meta name=&amp;#x22;viewport&amp;#x22; content=&amp;#x22;width=device-width, initial-scale=1.0&amp;#x22;&gt;    &lt;meta http-equiv=&amp;#x22;X-UA-Compatible&amp;#x22; content=&amp;#x22;ie=edge&amp;#x22;&gt;    &lt;title&gt;My Website&lt;/title&gt;    &lt;link rel=&amp;#x22;stylesheet&amp;#x22; href=&amp;#x22;./style.css&amp;#x22;&gt;    &lt;link rel=&amp;#x22;icon&amp;#x22; href=&amp;#x22;./favicon.ico&amp;#x22; type=&amp;#x22;image/x-icon&amp;#x22;&gt;  &lt;/head&gt;  &lt;body&gt;    &lt;main&gt;        &lt;h1&gt;Welcome to My Website&lt;/h1&gt;    &lt;/main&gt;    &lt;script src=&amp;#x22;index.js&amp;#x22;&gt;&lt;/script&gt;  &lt;/body&gt;&lt;/html&gt;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2 id=&quot;다음은-무엇인가요&quot;&gt;다음은 무엇인가요?&lt;/h2&gt;
&lt;p&gt;초보자라면 &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;http://freeCodeCamp.org&quot;&gt;freeCodeCamp.org&lt;/a&gt;의 무료 강좌를 수강하시길 적극 권장합니다. 웹 개발을 시작하는 데 필요한 거의 모든 것을 다룹니다.&lt;/p&gt;
&lt;p&gt;GitHub 페이지는 설정하기 쉽지만 몇 가지 제한이 있어 웹 개발을 더 진행할수록 할 수 있는 일이 제한될 수 있습니다. 진지하게 임한다면 React, Next, Flask, Express.js 등 다양한 개발 기술을 알아두는 것이 중요합니다. 그런 점에서 GitHub Page로는 부족합니다. Netlify, Digital Ocean, 그리고 궁극적으로는 Docker 인스턴스를 갖춘 자체 호스팅 VPS를 찾아 웹사이트의 모든 부분을 직접 호스팅해야 합니다.&lt;/p&gt;
&lt;h2 id=&quot;cloudflare-vs-github-pages&quot;&gt;Cloudflare vs GitHub Pages&lt;/h2&gt;
&lt;p&gt;GitHub 페이지는 설정하기 쉽고 초보자에게 좋지만, 요즘 저는 &lt;strong&gt;Cloudflare pages&lt;/strong&gt;를 사용하는 경향이 있습니다. 무료이면서 트래픽이 무제한일 뿐만 아니라, Cloudflare를 통해 도메인을 구매했다면 사용자 지정 도메인 설정도 처리해 줍니다. 게다가 저장소를 비공개로 둘 수도 있습니다. 사실상 GitHub 페이지의 더 나은 버전입니다. 이것도 확인해 보시길 권합니다.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;이 가이드가 이해하기 어렵다면 GitHub의 공식 가이드를 &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://pages.github.com/&quot;&gt;여기&lt;/a&gt;에서 따라 하실 수 있습니다.&lt;/em&gt;&lt;/p&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/0090d3fd-8466-49d4-89f2-47b351bb3531"/><enclosure url="https://cms.hongct.com/assets/0090d3fd-8466-49d4-89f2-47b351bb3531" length="7570" type="image/webp"/></item><item><title>Appwrite VS Supabase</title><link>https://hongcheung.com/ko/post/appwrite-vs-supabase/</link><guid isPermaLink="true">https://hongcheung.com/ko/post/appwrite-vs-supabase/</guid><description>어떤 걸 선택해야 할까요? 제 생각을 정리해 봤습니다.</description><pubDate>Thu, 06 Mar 2025 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/9d25914e-1f5f-4ccf-901a-998d0b454ed9&quot; alt=&quot;Appwrite VS Supabase&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;서론&quot;&gt;서론&lt;/h2&gt;
&lt;p&gt;저는 주로 인디 iOS 개발자지만, 크로스 플랫폼 앱도 만들어 보고 싶다는 생각을 해 왔습니다. Firebase를 시도해 봤지만, 사용자들이 Firebase를 쓰다가 어마어마한 청구서를 받았다는 안 좋은 사례를 읽고 회의적이 되었습니다. 게다가 지금까지도 Google은 예산 한도를 설정할 수 있게 해 주지 않습니다. 그래서 Firebase 대안, 아니 쉽게 쓸 수 있는 크로스 플랫폼 데이터베이스 서비스를 찾기 시작했습니다.&lt;/p&gt;
&lt;p&gt;그렇게 도착한 곳이 Appwrite와 Supabase입니다. 백엔드 경험이 초보 수준인 제가 둘 다 써 보고 느낀 점을 공유합니다.&lt;/p&gt;
&lt;p&gt;요약하자면:&lt;br&gt;
셀프 호스팅을 하고 관계형 데이터를 저장할 필요가 없다면 Appwrite를 쓰세요. 비용을 지불해도 괜찮고 번거로움 없이 장기적으로 탄탄하게 개발하고 싶다면 클라우드 버전인 Supabase를 쓰세요. 그 이유도 함께 설명하겠습니다.&lt;/p&gt;
&lt;h2 id=&quot;supabase-vs-appwrite의-주요-차이점&quot;&gt;Supabase VS Appwrite의 주요 차이점&lt;/h2&gt;
&lt;h3 id=&quot;데이터베이스-기술&quot;&gt;데이터베이스 기술&lt;/h3&gt;
&lt;p&gt;Appwrite는 NoSQL을, Supabase는 PostgresSQL을 사용합니다.&lt;/p&gt;
&lt;p&gt;Firebase에 익숙하다면 Appwrite가 편하게 느껴질 것입니다. 하지만 관계형 DB를 원한다면 Supabase입니다.&lt;/p&gt;
&lt;h3 id=&quot;클라우드-가격&quot;&gt;클라우드 가격&lt;/h3&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://supabase.com/pricing&quot;&gt;Supabase&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://appwrite.io/pricing&quot;&gt;Appwrite&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2025년 3월 기준으로 두 서비스 모두 제한이 있는 무료 티어를 제공합니다. 예를 들어 프로젝트 1~2개, 제한된 대역폭, 동시 접속 사용자 수 등입니다. 최신 가격은 위 링크에서 확인할 수 있습니다. 현재 무료 티어를 넘어서면 Supabase는 월 $25부터, Appwrite는 월 $15부터 시작합니다.&lt;/p&gt;
&lt;h3 id=&quot;사용자-인터페이스&quot;&gt;사용자 인터페이스&lt;/h3&gt;
&lt;p&gt;Appwrite&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;패널 항목이 적고 개요가 더 깔끔합니다.
&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/2d67c07b-a435-4db6-88f4-b316e0f406b5&quot; alt=&quot;&quot;&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Supabase&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;옵션은 더 많지만 조금 복잡해 보입니다.
&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/90ba61ff-b320-4098-9807-51b5fabc847b&quot; alt=&quot;&quot;&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;셀프-호스팅&quot;&gt;셀프 호스팅&lt;/h3&gt;
&lt;p&gt;둘 다 배포가 쉽습니다. 하지만 Supabase의 셀프 호스트 버전은 상당히 제한적이며, 클라우드 버전에서 기능을 덜어낸 축소판입니다. 반면 Appwrite는 셀프 호스트 버전에서도 모든 기능을 사용할 수 있습니다. Supabase를 셀프 호스팅하면서 겪은 문제들은 다음과 같습니다:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Supabase 셀프 호스트 버전은 인스턴스당 프로젝트를 하나만 허용합니다. 플랫폼을 통해 사용하는 클라우드 버전에서는 프로젝트를 여러 개 만들 수 있는 것과 다릅니다.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;인증용 URL 리다이렉트를 찾아 수정하려고 했는데, 클라우드 버전처럼 메뉴에 버튼이 없었습니다. 그래서 클라우드 서버에 접속해 해당 페이지로 이동한 뒤 링크를 복사해서 제 인스턴스로 가도록 변경했습니다. 그제서야 옵션이 보였지만 수정할 수는 없었습니다. 축소판의 제한 중 하나인 것 같습니다.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;문서는 대부분 클라우드 버전을 위한 것이라 셀프 호스트 버전에 매끄럽게 적용할 수 없습니다. 일부 설정과 옵션이 빠져 있기 때문입니다.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;반면 Appwrite는 아주 빠르게 실행할 수 있었습니다. 문서도 따라 하기 쉬웠습니다.&lt;/p&gt;
&lt;h3 id=&quot;오프라인-동기화&quot;&gt;오프라인 동기화&lt;/h3&gt;
&lt;p&gt;앱이 웹사이트에만 국한되지 않는다면 언젠가는 오프라인 동기화를 관리해야 할 가능성이 높습니다. 이 점에서는 Supabase가 더 관리하기 쉽습니다. 함께 사용할 수 있는 라이브러리와 서드파티 서비스가 있기 때문입니다. Powersync나 Brick 같은 옵션이 흔합니다. Appwrite의 경우에는 직접 동기화 로직을 작성해야 합니다. 오프라인 동기화를 관리할 만한 사용하기 쉬운 라이브러리를 찾지 못했기 때문입니다.&lt;/p&gt;
&lt;h2 id=&quot;마지막으로&quot;&gt;마지막으로&lt;/h2&gt;
&lt;p&gt;저는 현재 셀프 호스팅 Appwrite를 사용하고 있습니다. 이유는 다음과 같습니다:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;하나의 인스턴스, 여러 프로젝트 - 제한과 청구서 걱정 없이 여러 프로젝트를 가지고 놀 수 있습니다&lt;/li&gt;
&lt;li&gt;모든 기능 제공 - 클라우드 버전과 차이가 없습니다 (아마도요? 적어도 필요한데 없었던 것은 아직 없었습니다)&lt;/li&gt;
&lt;li&gt;따라 하기 쉬운 문서&lt;/li&gt;
&lt;li&gt;Supabase는 많은 기능을 축소해서 클라우드 요금제를 쓰도록 유도하는 것 같고, 저는 그게 마음에 들지 않습니다&lt;/li&gt;
&lt;li&gt;NoSQL 시험 삼아 사용 - Supabase 클라우드 버전을 사용하는 프로젝트가 있고 좋습니다. 하지만 결국 셀프 호스트 대안이 필요할 텐데, 지금은 Appwrite가 더 나은 선택지를 제공하는 것 같습니다.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;비용을 지불해도 괜찮다면 Supabase는 훌륭합니다. 직접 부딪혀 보거나 NoSQL에 더 익숙해지고 싶다면 Appwrite 셀프 호스팅도 충분히 재미있습니다.&lt;/p&gt;
&lt;p&gt;참고:&lt;/p&gt;
&lt;p&gt;조사하면서 읽은 &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://www.reddit.com/r/appwrite/comments/1c6xjm5/appwrite_vs_supabase_vs_pocektbase/&quot;&gt;이 Reddit 게시글&lt;/a&gt;입니다.&lt;/p&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/9d25914e-1f5f-4ccf-901a-998d0b454ed9"/><enclosure url="https://cms.hongct.com/assets/9d25914e-1f5f-4ccf-901a-998d0b454ed9" length="7420" type="image/webp"/></item><item><title>Google AdMob에서 &apos;광고 게재 제한&apos;을 해결하는 방법</title><link>https://hongcheung.com/ko/post/how-to-fix-ad-serving-is-limited-on-google-admob/</link><guid isPermaLink="true">https://hongcheung.com/ko/post/how-to-fix-ad-serving-is-limited-on-google-admob/</guid><description>AdMob 광고 게재 제한을 올바르게 해제하는 방법.</description><pubDate>Thu, 01 Feb 2024 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/500a3437-bb1a-4ec5-a415-7bcf137176f8&quot; alt=&quot;Google AdMob에서 &apos;광고 게재 제한&apos;을 해결하는 방법&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;서론&quot;&gt;서론&lt;/h2&gt;
&lt;p&gt;예전에 제 계정에서 이 메시지를 받은 적이 있는데, 정말 답답하고 짜증났습니다. 이 문제를 없애는 데 몇 달이 걸렸는데, 제가 한 일과 결국 어떻게 해결했는지 정리해 보겠습니다.&lt;/p&gt;
&lt;h2 id=&quot;왜-발생하는가&quot;&gt;왜 발생하는가&lt;/h2&gt;
&lt;h3 id=&quot;신규-계정&quot;&gt;신규 계정&lt;/h3&gt;
&lt;p&gt;아무 잘못도 하지 않았고 광고 배치 정책을 신중히 따랐더라도, 계정이 새롭다는 이유만으로 이 짜증나는 경고를 받을 수 있습니다.&lt;/p&gt;
&lt;h3 id=&quot;트래픽-급증&quot;&gt;트래픽 급증&lt;/h3&gt;
&lt;p&gt;평소에 이 정도 트래픽이 없는 앱이 갑자기 비정상적으로 많은 노출 수를 기록하면(예: 하루 10회에서 일주일 만에 1만 회), Google은 무조건 이 광고 게재 제한을 걸어버립니다.&lt;/p&gt;
&lt;h3 id=&quot;잘못된-배치-위치&quot;&gt;잘못된 배치 위치&lt;/h3&gt;
&lt;p&gt;광고를 앱 내 버튼 바로 옆에 두거나, 편법으로 사용자가 광고를 클릭하게 만들려는 의도가 보이면 Google도 이를 알아챕니다.&lt;/p&gt;
&lt;h3 id=&quot;자신의-광고를-클릭하는-경우&quot;&gt;자신의 광고를 클릭하는 경우&lt;/h3&gt;
&lt;p&gt;어떤 상황에서도 자신의 광고를 클릭해서는 안 됩니다.&lt;/p&gt;
&lt;h3 id=&quot;개발-중-데모-광고를-사용하지-않은-경우&quot;&gt;개발 중 데모 광고를 사용하지 않은 경우&lt;/h3&gt;
&lt;p&gt;초보자가 흔히 하는 실수인데, 이렇게 하면 한 기기에서 노출 수가 많이 발생하고 Google은 이를 좋아하지 않습니다. 개발 단계에서는 반드시 데모 광고를 사용하세요.&lt;/p&gt;
&lt;h2 id=&quot;해결하는-방법&quot;&gt;해결하는 방법&lt;/h2&gt;
&lt;h3 id=&quot;정책을-꼼꼼히-검토하기&quot;&gt;정책을 꼼꼼히 검토하기&lt;/h3&gt;
&lt;p&gt;Google 문서의 가이드라인을 따르세요.&lt;/p&gt;
&lt;p&gt;예를 들어 배너 광고를 배치할 때 흔히 권장되는 방식은 화면 맨 아래나 맨 위에만 배치하는 것이며, 콘텐츠 안에 넣거나 사용자가 혼동할 만한 방식으로 배치해서는 안 됩니다. 그래야 실수로 클릭하는 일 없이 의도적인 클릭만 발생합니다.&lt;/p&gt;
&lt;h3 id=&quot;노출-제한-설정하기&quot;&gt;노출 제한 설정하기&lt;/h3&gt;
&lt;p&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/29bde5a5-540a-41ed-88a6-c4e5802c9ac1&quot; alt=&quot;Google AdMob 빈도 제한&quot;&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;AdMob 계정 페이지로 이동합니다.&lt;/li&gt;
&lt;li&gt;광고가 있는 앱을 선택합니다.&lt;/li&gt;
&lt;li&gt;사이드바에서 앱 설정을 클릭합니다.&lt;/li&gt;
&lt;li&gt;“빈도 제한(Frequency capping)“을 설정합니다.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;저는 광고 게재 제한이 해제되기 전까지 20분에 1회 노출로 설정했습니다.&lt;/p&gt;
&lt;h3 id=&quot;기다리기&quot;&gt;기다리기&lt;/h3&gt;
&lt;p&gt;모든 것을 꼼꼼히 검토했고 앱이 정책을 준수한다고 확신한다면, 그저 기다리는 수밖에 없습니다.&lt;/p&gt;
&lt;p&gt;네, 이게 최종 답이며 제가 결국 문제를 해결한 방법입니다. Google은 계정과 트래픽을 평가하고 검증하는 데 시간이 필요할 뿐입니다.&lt;/p&gt;
&lt;p&gt;저도 계정의 모든 광고를 제거하고 경고가 사라지길 기다린 뒤 광고를 다시 만들어 앱에 배치하는 편법을 써봤습니다. 하지만 이 방법은 하루까지만 통했습니다. Google이 계정에 광고 활동이 있다는 것을 확인하는 순간 경고가 다시 나타났습니다. 그러니 그런 시도는 하지 마세요. 광고 제한 기간만 늘어날 뿐입니다.&lt;/p&gt;
&lt;p&gt;대신 Google 문서의 모든 지침을 최대한 읽고 따르면서 광고 게재 제한 기간이 지나가도록 두세요. 저는 이 문제를 없애는 데 약 한 달이 걸렸습니다.&lt;/p&gt;
&lt;p&gt;행운을 빕니다.&lt;/p&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/500a3437-bb1a-4ec5-a415-7bcf137176f8"/><enclosure url="https://cms.hongct.com/assets/500a3437-bb1a-4ec5-a415-7bcf137176f8" length="116843" type="image/jpeg"/></item><item><title>SwiftyJSON으로 JSON 파싱하는 방법</title><link>https://hongcheung.com/ko/post/how-to-parse-a-json-with-swiftyjson/</link><guid isPermaLink="true">https://hongcheung.com/ko/post/how-to-parse-a-json-with-swiftyjson/</guid><description>Xcode에서 동적 JSON을 디코딩할 때 매우 유용한 라이브러리입니다.</description><pubDate>Sun, 28 Jan 2024 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/6642e0c4-c790-436c-ad0d-720c8ddfa54f&quot; alt=&quot;SwiftyJSON으로 JSON 파싱하는 방법&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;swiftyjson이란&quot;&gt;SwiftyJSON이란?&lt;/h2&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://github.com/SwiftyJSON/SwiftyJSON&quot; title=&quot;SwiftyJSON&quot;&gt;SwiftyJSON&lt;/a&gt;은 Xcode 프로젝트에서 JSON 파일을 더 쉽게 디코딩할 수 있게 해 주는 서드파티 라이브러리입니다.&lt;/p&gt;
&lt;h3 id=&quot;왜-필요한가&quot;&gt;왜 필요한가?&lt;/h3&gt;
&lt;p&gt;미리 정의된 타입으로 JSON을 인코딩하고 디코딩하는 것이 모범 사례(best practice)로 여겨집니다. 하지만 내장된 JSONDecoder를 사용할 때의 단점은 동적 JSON을 다루기가 번거롭다는 점입니다. 설령 해낸다고 해도 제대로 처리하기 위해서는 여전히 많은 작업이 필요하므로 이상적이지 않습니다.&lt;/p&gt;
&lt;h3 id=&quot;동적-json-예시&quot;&gt;동적 JSON 예시&lt;/h3&gt;
&lt;p&gt;다음과 같은 JSON이 있다고 상상해 보세요:&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;style&gt;.expressive-code{font-family:var(--ec-uiFontFml);font-size:var(--ec-uiFontSize);font-weight:var(--ec-uiFontWg);line-height:var(--ec-uiLineHt);text-size-adjust:none;-webkit-text-size-adjust:none}.expressive-code *:not(:is(svg, svg *)){all:revert;box-sizing:border-box}.expressive-code pre{display:flex;margin:0;padding:0;border:var(--ec-brdWd) solid var(--ec-brdCol);border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));background:var(--ec-codeBg)}.expressive-code pre:focus-visible{outline:3px solid var(--ec-focusBrd);outline-offset:-3px}.expressive-code pre &gt; code{all:unset;display:block;flex:1 0 100%;padding:var(--ec-codePadBlk) 0;color:var(--ec-codeFg);font-family:var(--ec-codeFontFml);font-size:var(--ec-codeFontSize);font-weight:var(--ec-codeFontWg);line-height:var(--ec-codeLineHt)}.expressive-code pre{overflow-x:auto}.expressive-code pre.wrap .ec-line .code{white-space:pre-wrap;overflow-wrap:break-word;min-width:min(20ch, var(--ecMaxLine, 20ch))}.expressive-code pre.wrap .ec-line .code span.indent{white-space:pre}.expressive-code pre::-webkit-scrollbar,.expressive-code pre::-webkit-scrollbar-track{background-color:inherit;border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));border-top-left-radius:0;border-top-right-radius:0}.expressive-code pre::-webkit-scrollbar-thumb{background-color:var(--ec-sbThumbCol);border:4px solid transparent;background-clip:content-box;border-radius:10px}.expressive-code pre::-webkit-scrollbar-thumb:hover{background-color:var(--ec-sbThumbHoverCol)}.expressive-code pre::-webkit-scrollbar-corner{background:transparent}.expressive-code .ec-line{direction:ltr;unicode-bidi:isolate;display:grid;grid-template-areas:&apos;gutter code&apos;;grid-template-columns:auto 1fr;position:relative}.expressive-code .ec-line .gutter{grid-area:gutter;color:var(--ec-gtrFg)}.expressive-code .ec-line .gutter &gt; *{pointer-events:none;user-select:none;-webkit-user-select:none}.expressive-code .ec-line .gutter ~ .code{--ecLineBrdCol:var(--ec-gtrBrdCol)}.expressive-code .ec-line.highlight .gutter{color:var(--ec-gtrHlFg)}.expressive-code .ec-line .code{grid-area:code;position:relative;box-sizing:content-box;padding-inline-start:calc(var(--ecIndent, 0ch) + var(--ec-codePadInl) - var(--ecGtrBrdWd));padding-inline-end:var(--ec-codePadInl);text-indent:calc(var(--ecIndent, 0ch) * -1)}.expressive-code .ec-line .code::before,.expressive-code .ec-line .code::after,.expressive-code .ec-line .code :where(*){text-indent:0}.expressive-code .ec-line .code{--ecGtrBrdWd:var(--ec-gtrBrdWd);border-inline-start:var(--ecGtrBrdWd) solid var(--ecLineBrdCol, transparent)}.expressive-code .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.expressive-code .ec-line.mark{--tmLineBgCol:var(--ec-tm-markBg)}.expressive-code .ec-line.mark .code{--ecLineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line.ins{--tmLineBgCol:var(--ec-tm-insBg);--tmLabel:var(--ec-tm-insDiffIndContent)}.expressive-code .ec-line.ins .code{--ecLineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line.ins .code::before{color:var(--ec-tm-insDiffIndCol)}.expressive-code .ec-line.del{--tmLineBgCol:var(--ec-tm-delBg);--tmLabel:var(--ec-tm-delDiffIndContent)}.expressive-code .ec-line.del .code{--ecLineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line.del .code::before{color:var(--ec-tm-delDiffIndCol)}.expressive-code .ec-line.mark,.expressive-code .ec-line.ins,.expressive-code .ec-line.del{background:var(--tmLineBgCol)}.expressive-code .ec-line.mark .code,.expressive-code .ec-line.ins .code,.expressive-code .ec-line.del .code{--ecGtrBrdWd:var(--ec-tm-lineMarkerAccentWd)}.expressive-code .ec-line.mark .code::before,.expressive-code .ec-line.ins .code::before,.expressive-code .ec-line.del .code::before{display:block;position:absolute;left:0;box-sizing:border-box;content:var(--tmLabel, &apos; &apos;);padding-inline-start:var(--ec-tm-lineDiffIndMargLeft);text-align:center;white-space:pre}.expressive-code .ec-line.mark.tm-label .code::before,.expressive-code .ec-line.ins.tm-label .code::before,.expressive-code .ec-line.del.tm-label .code::before{background:var(--ecLineBrdCol);padding:0 calc(var(--ec-tm-lineMarkerLabelPadInl) + var(--ec-tm-lineMarkerAccentWd)) 0 var(--ec-tm-lineMarkerLabelPadInl);color:var(--ec-tm-lineMarkerLabelCol)}.expressive-code .ec-line mark{--tmInlineBgCol:var(--ec-tm-markBg);--tmInlineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line ins{--tmInlineBgCol:var(--ec-tm-insBg);--tmInlineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line del{--tmInlineBgCol:var(--ec-tm-delBg);--tmInlineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line mark,.expressive-code .ec-line ins,.expressive-code .ec-line del{all:unset;display:inline-block;position:relative;--tmBrdL:var(--ec-tm-inlMarkerBrdWd);--tmBrdR:var(--ec-tm-inlMarkerBrdWd);--tmRadL:var(--ec-tm-inlMarkerBrdRad);--tmRadR:var(--ec-tm-inlMarkerBrdRad);margin-inline:0.025rem;padding-inline:var(--ec-tm-inlMarkerPad);border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);background:var(--tmInlineBgCol);background-clip:padding-box}.expressive-code .ec-line mark.open-start,.expressive-code .ec-line ins.open-start,.expressive-code .ec-line del.open-start{margin-inline-start:0;padding-inline-start:0;--tmBrdL:0px;--tmRadL:0}.expressive-code .ec-line mark.open-end,.expressive-code .ec-line ins.open-end,.expressive-code .ec-line del.open-end{margin-inline-end:0;padding-inline-end:0;--tmBrdR:0px;--tmRadR:0}.expressive-code .ec-line mark::before,.expressive-code .ec-line ins::before,.expressive-code .ec-line del::before{content:&apos;&apos;;position:absolute;pointer-events:none;display:inline-block;inset:0;border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);border:var(--ec-tm-inlMarkerBrdWd) solid var(--tmInlineBrdCol);border-inline-width:var(--tmBrdL) var(--tmBrdR)}.expressive-code .frame{all:unset;position:relative;display:block;--header-border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));--tab-border-radius:calc(var(--ec-frm-edTabBrdRad) + var(--ec-brdWd));--button-spacing:0.4rem;--code-background:var(--ec-frm-edBg);border-radius:var(--header-border-radius);box-shadow:var(--ec-frm-frameBoxShdCssVal)}.expressive-code .frame .header{display:none;z-index:1;position:relative;border-radius:var(--header-border-radius) var(--header-border-radius) 0 0}.expressive-code .frame.has-title pre,.expressive-code .frame.has-title code,.expressive-code .frame.is-terminal pre,.expressive-code .frame.is-terminal code{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.expressive-code .frame .title:empty:before{content:&apos;\a0&apos;}.expressive-code .frame.has-title:not(.is-terminal){--button-spacing:calc(1.9rem + 2 * (var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)))}.expressive-code .frame.has-title:not(.is-terminal) .title{position:relative;color:var(--ec-frm-edActTabFg);background:var(--ec-frm-edActTabBg);background-clip:padding-box;margin-block-start:var(--ec-frm-edTabsMargBlkStart);padding:calc(var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)) var(--ec-uiPadInl);border:var(--ec-brdWd) solid var(--ec-frm-edActTabBrdCol);border-radius:var(--tab-border-radius) var(--tab-border-radius) 0 0;border-bottom:none;overflow:hidden}.expressive-code .frame.has-title:not(.is-terminal) .title::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-top:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndTopCol);border-bottom:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndBtmCol)}.expressive-code .frame.has-title:not(.is-terminal) .header{display:flex;background:linear-gradient(to top, var(--ec-frm-edTabBarBrdBtmCol) var(--ec-brdWd), transparent var(--ec-brdWd)),linear-gradient(var(--ec-frm-edTabBarBg), var(--ec-frm-edTabBarBg));background-repeat:no-repeat;padding-inline-start:var(--ec-frm-edTabsMargInlStart)}.expressive-code .frame.has-title:not(.is-terminal) .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border:var(--ec-brdWd) solid var(--ec-frm-edTabBarBrdCol);border-radius:inherit;border-bottom:none}.expressive-code .frame.is-terminal{--button-spacing:calc(1.9rem + var(--ec-brdWd) + 2 * var(--ec-uiPadBlk));--code-background:var(--ec-frm-trmBg)}.expressive-code .frame.is-terminal .header{display:flex;align-items:center;justify-content:center;padding-block:var(--ec-uiPadBlk);padding-block-end:calc(var(--ec-uiPadBlk) + var(--ec-brdWd));position:relative;font-weight:500;letter-spacing:0.025ch;color:var(--ec-frm-trmTtbFg);background:var(--ec-frm-trmTtbBg);border:var(--ec-brdWd) solid var(--ec-brdCol);border-bottom:none}.expressive-code .frame.is-terminal .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;left:var(--ec-uiPadInl);width:2.1rem;height:0.56rem;line-height:0;background-color:var(--ec-frm-trmTtbDotsFg);opacity:var(--ec-frm-trmTtbDotsOpa);-webkit-mask-image:var(--ec-frm-trmIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-trmIcon);mask-repeat:no-repeat}.expressive-code .frame.is-terminal .header::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-bottom:var(--ec-brdWd) solid var(--ec-frm-trmTtbBrdBtmCol)}.expressive-code .frame pre{background:var(--code-background)}.expressive-code .copy{display:flex;gap:0.25rem;flex-direction:row;position:absolute;inset-block-start:calc(var(--ec-brdWd) + var(--button-spacing));inset-inline-end:calc(var(--ec-brdWd) + var(--ec-uiPadInl) / 2)}@media (scripting: none){.expressive-code .copy{display:none}}.expressive-code .copy{direction:ltr;unicode-bidi:isolate}.expressive-code .copy button{position:relative;align-self:flex-end;margin:0;padding:0;border:none;border-radius:0.2rem;z-index:1;cursor:pointer;transition-property:opacity, background, border-color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94);width:2.5rem;height:2.5rem;background:var(--code-background);opacity:0.75}.expressive-code .copy button div{position:absolute;inset:0;border-radius:inherit;background:var(--ec-frm-inlBtnBg);opacity:var(--ec-frm-inlBtnBgIdleOpa);transition-property:inherit;transition-duration:inherit;transition-timing-function:inherit}.expressive-code .copy button::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-radius:inherit;border:var(--ec-brdWd) solid var(--ec-frm-inlBtnBrd);opacity:var(--ec-frm-inlBtnBrdOpa)}.expressive-code .copy button::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-frm-inlBtnFg);-webkit-mask-image:var(--ec-frm-copyIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-copyIcon);mask-repeat:no-repeat;margin:0.475rem;line-height:0}.expressive-code .copy button:hover,.expressive-code .copy button:focus:focus-visible{opacity:1}.expressive-code .copy button:hover div,.expressive-code .copy button:focus:focus-visible div{opacity:var(--ec-frm-inlBtnBgHoverOrFocusOpa)}.expressive-code .copy button:active{opacity:1}.expressive-code .copy button:active div{opacity:var(--ec-frm-inlBtnBgActOpa)}.expressive-code .copy .feedback{--tooltip-arrow-size:0.35rem;--tooltip-bg:var(--ec-frm-tooltipSuccessBg);color:var(--ec-frm-tooltipSuccessFg);pointer-events:none;user-select:none;-webkit-user-select:none;position:relative;align-self:center;background-color:var(--tooltip-bg);z-index:99;padding:0.125rem 0.75rem;border-radius:0.2rem;margin-inline-end:var(--tooltip-arrow-size);opacity:0;transition-property:opacity, transform;transition-duration:0.2s;transition-timing-function:ease-in-out;transform:translate3d(0, 0.25rem, 0)}.expressive-code .copy .feedback::after{content:&apos;&apos;;position:absolute;pointer-events:none;top:calc(50% - var(--tooltip-arrow-size));inset-inline-end:calc(-2 * (var(--tooltip-arrow-size) - 0.5px));border:var(--tooltip-arrow-size) solid transparent;border-inline-start-color:var(--tooltip-bg)}.expressive-code .copy .feedback.show{opacity:1;transform:translate3d(0, 0, 0)}@media (hover: hover){.expressive-code{}.expressive-code .copy button{opacity:0;width:2rem;height:2rem}.expressive-code .frame:hover .copy button:not(:hover),.expressive-code .frame:focus-within :focus-visible ~ .copy button:not(:hover),.expressive-code .frame .copy .feedback.show ~ button:not(:hover){opacity:0.75}}.expressive-code :nth-child(1 of .ec-line) .code{padding-inline-end:calc(2rem + var(--ec-codePadInl))}.expressive-code .gutter .ln{display:inline-flex;justify-content:flex-end;align-items:flex-start;box-sizing:content-box;min-width:var(--lnWidth, 2ch);padding-inline:2ch;color:var(--ec-lineNumbers-fg)}.highlight .expressive-code .gutter .ln{color:var(--ec-lineNumbers-hlFg)}.expressive-code .ec-section{position:relative}.expressive-code .ec-section summary{position:relative;font-family:var(--ec-cs-closedFontFml);font-size:var(--ec-cs-closedFontSize);line-height:var(--ec-cs-closedLineHt);user-select:none;-webkit-user-select:none;cursor:pointer;color:var(--ec-cs-closedTextCol);background-color:var(--ec-cs-closedBgCol);--border-color:var(--ec-cs-closedBrdCol);--border-width:var(--ec-cs-closedBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);margin:var(--ec-cs-closedMarg);padding:0}.expressive-code .ec-section summary::marker{display:inline-block;content:&quot;&quot;;width:16px;height:16px}.expressive-code .ec-section summary::-webkit-details-marker{display:none}.expressive-code .ec-section summary :is(.expand, .collapse){position:relative;display:inline-block;width:16px;height:16px;vertical-align:text-bottom;opacity:0.75}.expressive-code .ec-section summary :is(.expand, .collapse)::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-cs-closedTextCol);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;line-height:0}.expressive-code .ec-section summary .expand::after{-webkit-mask-image:var(--ec-cs-expandIcon);mask-image:var(--ec-cs-expandIcon);-webkit-print-color-adjust:exact;print-color-adjust:exact}.expressive-code .ec-section summary .collapse{display:none}.expressive-code .ec-section summary .collapse::after{-webkit-mask-image:var(--ec-cs-collapseIcon);mask-image:var(--ec-cs-collapseIcon)}.expressive-code .ec-section summary .text{margin-left:1em}.expressive-code .ec-section summary .ec-line .code{padding-block:var(--ec-cs-closedPadBlk);text-indent:0}.expressive-code .ec-section[open],.expressive-code .ec-section details[open] + .content-lines{--border-color:var(--ec-cs-openBrdCol);--border-width:var(--ec-cs-openBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);padding-inline:var(--ec-cs-openPad);margin-inline:var(--ec-cs-openMarg)}.expressive-code .ec-section.github[open] summary{display:none}.expressive-code .ec-section.github[open]{background-color:var(--ec-cs-openBgCol)}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end){display:flex;flex-direction:column}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) .content-lines{display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] .collapse{display:inline-block}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] :is(.expand, .text){display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] + .content-lines{display:block;background-color:var(--ec-cs-openBgColCollapsible)}@media print{.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open]{display:none}}.expressive-code .ec-section.collapsible-end{flex-direction:column-reverse}:root,:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;]{--ec-brdRad:0.3rem;--ec-brdWd:1.5px;--ec-brdCol:#1b1f23;--ec-codeFontFml:jetbrains-mono;--ec-codeFontSize:0.85rem;--ec-codeFontWg:400;--ec-codeLineHt:1.65;--ec-codePadBlk:1rem;--ec-codePadInl:1.35rem;--ec-codeBg:#24292e;--ec-codeFg:#e1e4e8;--ec-codeSelBg:#3392ff44;--ec-gtrFg:#727980;--ec-gtrBrdCol:#72798033;--ec-gtrBrdWd:1.5px;--ec-gtrHlFg:#e1e4e896;--ec-uiFontFml:jetbrains-mono;--ec-uiFontSize:0.9rem;--ec-uiFontWg:400;--ec-uiLineHt:1.65;--ec-uiPadBlk:0.25rem;--ec-uiPadInl:1rem;--ec-uiSelBg:#39414a;--ec-uiSelFg:#e1e4e8;--ec-focusBrd:#005cc5;--ec-sbThumbCol:#6a737d33;--ec-sbThumbHoverCol:#6a737dd1;--ec-tm-lineMarkerAccentMarg:0rem;--ec-tm-lineMarkerAccentWd:0.15rem;--ec-tm-lineMarkerLabelPadInl:0.2rem;--ec-tm-lineMarkerLabelCol:white;--ec-tm-lineDiffIndMargLeft:0.3rem;--ec-tm-inlMarkerBrdWd:1.5px;--ec-tm-inlMarkerBrdRad:0.2rem;--ec-tm-inlMarkerPad:0.15rem;--ec-tm-insDiffIndContent:&apos;+&apos;;--ec-tm-delDiffIndContent:&apos;-&apos;;--ec-tm-markBg:#264a8980;--ec-tm-markBrdCol:#5570b3d0;--ec-tm-insBg:#26561c80;--ec-tm-insBrdCol:#4e7e41d0;--ec-tm-insDiffIndCol:#7eb070d0;--ec-tm-delBg:#81322b80;--ec-tm-delBrdCol:#ae594fd0;--ec-tm-delDiffIndCol:#e68a7ed0;--ec-frm-shdCol:#0000005b;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #0000005b;--ec-frm-edActTabBg:#24292e;--ec-frm-edActTabFg:#e1e4e8;--ec-frm-edActTabBrdCol:transparent;--ec-frm-edActTabIndHt:1.5px;--ec-frm-edActTabIndTopCol:#f9826c;--ec-frm-edActTabIndBtmCol:#24292e;--ec-frm-edTabsMargInlStart:0;--ec-frm-edTabsMargBlkStart:0;--ec-frm-edTabBrdRad:0.3rem;--ec-frm-edTabBarBg:#1f2428;--ec-frm-edTabBarBrdCol:#1b1f23;--ec-frm-edTabBarBrdBtmCol:#1b1f23;--ec-frm-edBg:#24292e;--ec-frm-trmTtbFg:#e1e4e8;--ec-frm-trmTtbDotsFg:#e1e4e8;--ec-frm-trmTtbDotsOpa:0.15;--ec-frm-trmTtbBg:#24292e;--ec-frm-trmTtbBrdBtmCol:#1b1f23;--ec-frm-trmBg:#1f2428;--ec-frm-inlBtnFg:#e1e4e8;--ec-frm-inlBtnBg:#e1e4e8;--ec-frm-inlBtnBgIdleOpa:0;--ec-frm-inlBtnBgHoverOrFocusOpa:0.2;--ec-frm-inlBtnBgActOpa:0.3;--ec-frm-inlBtnBrd:#e1e4e8;--ec-frm-inlBtnBrdOpa:0.4;--ec-frm-tooltipSuccessBg:#228739;--ec-frm-tooltipSuccessFg:white;--ec-frm-copyIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2024%2024&apos;%20fill%3D&apos;none&apos;%20stroke%3D&apos;black&apos;%20stroke-width%3D&apos;1.75&apos;%3E%3Cpath%20d%3D&apos;M3%2019a2%202%200%200%201-1-2V2a2%202%200%200%201%201-1h13a2%202%200%200%201%202%201&apos;%2F%3E%3Crect%20x%3D&apos;6&apos;%20y%3D&apos;5&apos;%20width%3D&apos;16&apos;%20height%3D&apos;18&apos;%20rx%3D&apos;1.5&apos;%20ry%3D&apos;1.5&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-frm-trmIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2060%2016&apos;%20preserveAspectRatio%3D&apos;xMidYMid%20meet&apos;%3E%3Ccircle%20cx%3D&apos;8&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;30&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;52&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-lineNumbers-fg:inherit;--ec-lineNumbers-hlFg:inherit;--ec-cs-closedBrdWd:0px;--ec-cs-closedPadBlk:4px;--ec-cs-closedMarg:0;--ec-cs-closedFontFml:inherit;--ec-cs-closedFontSize:inherit;--ec-cs-closedLineHt:inherit;--ec-cs-closedTextCol:#e1e4e8;--ec-cs-closedBgCol:#58606933;--ec-cs-closedBrdCol:#58606980;--ec-cs-openBrdWd:1px;--ec-cs-openPad:0;--ec-cs-openMarg:0;--ec-cs-openBgCol:transparent;--ec-cs-openBgColCollapsible:#5860691a;--ec-cs-openBrdCol:transparent;--ec-cs-expandIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;m8.177.677%202.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25a.75.75%200%200%201-1.5%200V4H5.104a.25.25%200%200%201-.177-.427L7.823.677a.25.25%200%200%201%20.354%200ZM7.25%2010.75a.75.75%200%200%201%201.5%200V12h2.146a.25.25%200%200%201%20.177.427l-2.896%202.896a.25.25%200%200%201-.354%200l-2.896-2.896A.25.25%200%200%201%205.104%2012H7.25v-1.25Zm-5-2a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-cs-collapseIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;M10.896%202H8.75V.75a.75.75%200%200%200-1.5%200V2H5.104a.25.25%200%200%200-.177.427l2.896%202.896a.25.25%200%200%200%20.354%200l2.896-2.896A.25.25%200%200%200%2010.896%202ZM8.75%2015.25a.75.75%200%200%201-1.5%200V14H5.104a.25.25%200%200%201-.177-.427l2.896-2.896a.25.25%200%200%201%20.354%200l2.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25Zm-6.5-6.5a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;)}.expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])),:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--0, inherit);background-color:var(--0bg, transparent);font-style:var(--0fs, inherit);font-weight:var(--0fw, inherit);text-decoration:var(--0td, inherit)}@media (prefers-color-scheme: light){:root:not([data-theme=&quot;dark&quot;]){--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root:not([data-theme=&quot;dark&quot;]) .expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]),.expressive-code[data-theme=&quot;light&quot;]{--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]) .ec-line :where(span[style^=&apos;--&apos;]:not([class])),.expressive-code[data-theme=&quot;light&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}&lt;/style&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function a(e){if(!e)return;let t=e.getAttribute(&quot;tabindex&quot;)!==null,r=e.scrollWidth&gt;e.clientWidth;r&amp;&amp;!t?(e.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),e.setAttribute(&quot;role&quot;,&quot;region&quot;)):!r&amp;&amp;t&amp;&amp;(e.removeAttribute(&quot;tabindex&quot;),e.removeAttribute(&quot;role&quot;))}var u=window.requestIdleCallback||(e=&gt;setTimeout(e,1)),s=window.cancelIdleCallback||clearTimeout;function l(e){let t=new Set,r,n;return new ResizeObserver(c=&gt;{c.forEach(o=&gt;t.add(o.target)),r&amp;&amp;clearTimeout(r),n&amp;&amp;s(n),r=setTimeout(()=&gt;{n&amp;&amp;s(n),n=u(()=&gt;{t.forEach(o=&gt;e(o)),t.clear()})},250)})}function i(e,t){e.querySelectorAll?.(&quot;.expressive-code pre &gt; code&quot;).forEach(r=&gt;{let n=r.parentElement;n&amp;&amp;t.observe(n)})}var d=l(a);i(document,d);var b=new MutationObserver(e=&gt;e.forEach(t=&gt;t.addedNodes.forEach(r=&gt;{i(r,d)})));b.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document,d)});})();}catch(e){console.error(&quot;[EC] tabindex-js-module failed:&quot;,e)}&lt;/script&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function l(o){let e=document.createElement(&quot;pre&quot;);Object.assign(e.style,{opacity:&quot;0&quot;,pointerEvents:&quot;none&quot;,position:&quot;absolute&quot;,overflow:&quot;hidden&quot;,left:&quot;0&quot;,top:&quot;0&quot;,width:&quot;20px&quot;,height:&quot;20px&quot;,webkitUserSelect:&quot;auto&quot;,userSelect:&quot;all&quot;}),e.ariaHidden=&quot;true&quot;,e.textContent=o,document.body.appendChild(e);let a=document.createRange();a.selectNode(e);let n=getSelection();if(!n)return!1;n.removeAllRanges(),n.addRange(a);let r=!1;try{r=document.execCommand(&quot;copy&quot;)}finally{n.removeAllRanges(),document.body.removeChild(e)}return r}async function u(o){let e=o.currentTarget,a=e.dataset,n=!1,r=a.code.replace(/\u007f/g,`
`);try{await navigator.clipboard.writeText(r),n=!0}catch{n=l(r)}if(!n||e.parentNode?.querySelector(&quot;.feedback&quot;))return;let c=e.parentNode?.querySelector(&quot;[aria-live]&quot;),t=document.createElement(&quot;div&quot;);t.classList.add(&quot;feedback&quot;),t.append(a.copied),c.append(t),t.offsetWidth,requestAnimationFrame(()=&gt;t?.classList.add(&quot;show&quot;));let s=()=&gt;!t||t.classList.remove(&quot;show&quot;),d=()=&gt;{!t||parseFloat(getComputedStyle(t).opacity)&gt;0||(t.remove(),t=void 0)};setTimeout(s,1500),setTimeout(d,2500),e.addEventListener(&quot;blur&quot;,s),t.addEventListener(&quot;transitioncancel&quot;,d),t.addEventListener(&quot;transitionend&quot;,d)}function i(o){o.querySelectorAll?.(&quot;.expressive-code .copy button&quot;).forEach(e=&gt;e.addEventListener(&quot;click&quot;,u))}i(document);var m=new MutationObserver(o=&gt;o.forEach(e=&gt;e.addedNodes.forEach(a=&gt;{i(a)})));m.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document)});})();}catch(e){console.error(&quot;[EC] copy-js-module failed:&quot;,e)}&lt;/script&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;json&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;&quot;data&quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;&quot;variable_1&quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;some text&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;4&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;5&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;{  &amp;#x22;data&amp;#x22;: {    &amp;#x22;variable_1&amp;#x22;: &amp;#x22;some text&amp;#x22;  }}&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;variable_1 키가 동적으로 변경되는 상황에서는 data.title을 사용해 단순히 데이터를 디코딩할 수 없습니다. 다음번에 data.description이라면 어떨까요?&lt;/p&gt;
&lt;h4 id=&quot;javascript에서는-이렇게-쉽게-할-수-있습니다&quot;&gt;JavaScript에서는 이렇게 쉽게 할 수 있습니다:&lt;/h4&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;javascript&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; dynamicKey &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&apos;variable&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;const&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;json&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;JSON&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;parse&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(JSONObejct)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;console.&lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;log&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(json.data[&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;`${&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;dynamicKey&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;}_1`&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;])&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;let dynamicKey = &amp;#x27;variable&amp;#x27;const json = JSON.parse(JSONObejct)console.log(json.data[&amp;#x60;${dynamicKey}_1&amp;#x60;])&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;data 뒤의 [] 안에 동적 문자열을 넣기만 하면 값에 접근할 수 있습니다. 하지만 Swift에서는 이렇게 할 수 없습니다.&lt;/p&gt;
&lt;p&gt;그래서 SwiftyJSON이 등장합니다.&lt;/p&gt;
&lt;h2 id=&quot;swiftyjson을-사용하여-json-파싱하기&quot;&gt;SwiftyJSON을 사용하여 JSON 파싱하기&lt;/h2&gt;
&lt;p&gt;SwiftyJSON의 도움을 받으면 다음과 같이 할 수 있습니다:&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;swift&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; json &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;JSON&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;data&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: JSONObejct)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; dynamicVar &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;variable_1&quot;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; extracted &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; json[&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;data&quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;][&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;\(dynamicVar)&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;].string { &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// It&apos;s wrapped with Optional automatically&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;4&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;//Now you got your value inside data.variable_1, just change your variable value for dynamicVar as needed.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;5&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(extracted) &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// some text&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;6&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;let json = JSON(data: JSONObejct)let dynamicVar = &amp;#x22;variable_1&amp;#x22;if let extracted = json[0][&amp;#x22;data&amp;#x22;][&amp;#x22;\(dynamicVar)&amp;#x22;].string { // It&amp;#x27;s wrapped with Optional automatically  //Now you got your value inside data.variable_1, just change your variable value for dynamicVar as needed.  print(extracted) // some text}&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;JavaScript에서 하는 방식과 거의 같습니다.&lt;/p&gt;
&lt;p&gt;직관적이고 간단합니다.&lt;/p&gt;
&lt;h2 id=&quot;마무리&quot;&gt;마무리&lt;/h2&gt;
&lt;p&gt;이 라이브러리는 여전히 동작하지만, 더 이상 유지보수되지 않습니다. 마지막 커밋은 2년 전이었습니다.&lt;/p&gt;
&lt;p&gt;그래도 저는 시간과 번거로움을 많이 줄여 주기 때문에 제 프로젝트에서 계속 사용할 것입니다.&lt;/p&gt;
&lt;p&gt;JSON을 다룰 때 거의 필수에 가까운 라이브러리입니다.&lt;/p&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/6642e0c4-c790-436c-ad0d-720c8ddfa54f"/><enclosure url="https://cms.hongct.com/assets/6642e0c4-c790-436c-ad0d-720c8ddfa54f" length="32728" type="image/png"/></item><item><title>SwiftUI를 사용하여 iOS용 AdMob GDPR 동의 메시지 추가하기</title><link>https://hongcheung.com/ko/post/Adding-AdMob-GDPR-Consent-Message-for-iOS-Using-SwiftUI/</link><guid isPermaLink="true">https://hongcheung.com/ko/post/Adding-AdMob-GDPR-Consent-Message-for-iOS-Using-SwiftUI/</guid><description>SwiftUI를 사용하여 EEA 사용자를 위한 GDPR 동의 양식을 추가하는 간단한 가이드입니다.</description><pubDate>Thu, 18 Jan 2024 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/755d740d-459a-4f2c-b911-8599ad293c8c&quot; alt=&quot;SwiftUI를 사용하여 iOS용 AdMob GDPR 동의 메시지 추가하기&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;왜&quot;&gt;왜?&lt;/h2&gt;
&lt;p&gt;2024년 1월 16일 이후부터는 유럽 사용자에게 광고를 표시하기 위한 EEA 요구 사항 때문에 앱에 GDPR 동의 메시지를 추가해야 합니다.&lt;/p&gt;
&lt;p&gt;이를 하지 않으면 광고 수익에 큰 영향을 받게 됩니다.&lt;/p&gt;
&lt;h2 id=&quot;어떻게&quot;&gt;어떻게?&lt;/h2&gt;
&lt;p&gt;Google AdMob의 공식 영상을 보면 구현 방법을 배울 수 있습니다.&lt;/p&gt;
&lt;figure style=&quot;width: 600px; max-width: 100%; margin: auto; padding:3px; border-radius:0.5rem;&quot;&gt;
  &lt;lite-youtube style=&quot;border-radius: 1rem; &quot; videoid=&quot;EwcrESnAYEI&quot; params=&quot;start=0&quot;&gt;
  &lt;figcaption style=&quot;opacity: 0.6; padding: 5px;&quot;&gt; User Messaging Platform (UMP) SDK를 사용하여 GDPR 사용자 동의를 수집하는 방법을 보여주는 공식 영상 &lt;/figcaption&gt;
&lt;/lite-youtube&gt;&lt;/figure&gt;
&lt;p&gt;하지만 언제나 그렇듯이, Google 문서는 UIKit 방식만 보여줄 뿐 SwiftUI 방식은 보여주지 않습니다.&lt;/p&gt;
&lt;h2 id=&quot;swiftui-예제&quot;&gt;SwiftUI 예제&lt;/h2&gt;
&lt;p&gt;하루 동안 탐구한 끝에, 마침내 순수 SwiftUI로 작동하게 만들었습니다.&lt;/p&gt;
&lt;p&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/98c5d852-034c-4bad-bb42-c487ab3ee976&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
&lt;p&gt;사실 꽤 간단합니다:&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;style&gt;.expressive-code{font-family:var(--ec-uiFontFml);font-size:var(--ec-uiFontSize);font-weight:var(--ec-uiFontWg);line-height:var(--ec-uiLineHt);text-size-adjust:none;-webkit-text-size-adjust:none}.expressive-code *:not(:is(svg, svg *)){all:revert;box-sizing:border-box}.expressive-code pre{display:flex;margin:0;padding:0;border:var(--ec-brdWd) solid var(--ec-brdCol);border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));background:var(--ec-codeBg)}.expressive-code pre:focus-visible{outline:3px solid var(--ec-focusBrd);outline-offset:-3px}.expressive-code pre &gt; code{all:unset;display:block;flex:1 0 100%;padding:var(--ec-codePadBlk) 0;color:var(--ec-codeFg);font-family:var(--ec-codeFontFml);font-size:var(--ec-codeFontSize);font-weight:var(--ec-codeFontWg);line-height:var(--ec-codeLineHt)}.expressive-code pre{overflow-x:auto}.expressive-code pre.wrap .ec-line .code{white-space:pre-wrap;overflow-wrap:break-word;min-width:min(20ch, var(--ecMaxLine, 20ch))}.expressive-code pre.wrap .ec-line .code span.indent{white-space:pre}.expressive-code pre::-webkit-scrollbar,.expressive-code pre::-webkit-scrollbar-track{background-color:inherit;border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));border-top-left-radius:0;border-top-right-radius:0}.expressive-code pre::-webkit-scrollbar-thumb{background-color:var(--ec-sbThumbCol);border:4px solid transparent;background-clip:content-box;border-radius:10px}.expressive-code pre::-webkit-scrollbar-thumb:hover{background-color:var(--ec-sbThumbHoverCol)}.expressive-code pre::-webkit-scrollbar-corner{background:transparent}.expressive-code .ec-line{direction:ltr;unicode-bidi:isolate;display:grid;grid-template-areas:&apos;gutter code&apos;;grid-template-columns:auto 1fr;position:relative}.expressive-code .ec-line .gutter{grid-area:gutter;color:var(--ec-gtrFg)}.expressive-code .ec-line .gutter &gt; *{pointer-events:none;user-select:none;-webkit-user-select:none}.expressive-code .ec-line .gutter ~ .code{--ecLineBrdCol:var(--ec-gtrBrdCol)}.expressive-code .ec-line.highlight .gutter{color:var(--ec-gtrHlFg)}.expressive-code .ec-line .code{grid-area:code;position:relative;box-sizing:content-box;padding-inline-start:calc(var(--ecIndent, 0ch) + var(--ec-codePadInl) - var(--ecGtrBrdWd));padding-inline-end:var(--ec-codePadInl);text-indent:calc(var(--ecIndent, 0ch) * -1)}.expressive-code .ec-line .code::before,.expressive-code .ec-line .code::after,.expressive-code .ec-line .code :where(*){text-indent:0}.expressive-code .ec-line .code{--ecGtrBrdWd:var(--ec-gtrBrdWd);border-inline-start:var(--ecGtrBrdWd) solid var(--ecLineBrdCol, transparent)}.expressive-code .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.expressive-code .ec-line.mark{--tmLineBgCol:var(--ec-tm-markBg)}.expressive-code .ec-line.mark .code{--ecLineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line.ins{--tmLineBgCol:var(--ec-tm-insBg);--tmLabel:var(--ec-tm-insDiffIndContent)}.expressive-code .ec-line.ins .code{--ecLineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line.ins .code::before{color:var(--ec-tm-insDiffIndCol)}.expressive-code .ec-line.del{--tmLineBgCol:var(--ec-tm-delBg);--tmLabel:var(--ec-tm-delDiffIndContent)}.expressive-code .ec-line.del .code{--ecLineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line.del .code::before{color:var(--ec-tm-delDiffIndCol)}.expressive-code .ec-line.mark,.expressive-code .ec-line.ins,.expressive-code .ec-line.del{background:var(--tmLineBgCol)}.expressive-code .ec-line.mark .code,.expressive-code .ec-line.ins .code,.expressive-code .ec-line.del .code{--ecGtrBrdWd:var(--ec-tm-lineMarkerAccentWd)}.expressive-code .ec-line.mark .code::before,.expressive-code .ec-line.ins .code::before,.expressive-code .ec-line.del .code::before{display:block;position:absolute;left:0;box-sizing:border-box;content:var(--tmLabel, &apos; &apos;);padding-inline-start:var(--ec-tm-lineDiffIndMargLeft);text-align:center;white-space:pre}.expressive-code .ec-line.mark.tm-label .code::before,.expressive-code .ec-line.ins.tm-label .code::before,.expressive-code .ec-line.del.tm-label .code::before{background:var(--ecLineBrdCol);padding:0 calc(var(--ec-tm-lineMarkerLabelPadInl) + var(--ec-tm-lineMarkerAccentWd)) 0 var(--ec-tm-lineMarkerLabelPadInl);color:var(--ec-tm-lineMarkerLabelCol)}.expressive-code .ec-line mark{--tmInlineBgCol:var(--ec-tm-markBg);--tmInlineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line ins{--tmInlineBgCol:var(--ec-tm-insBg);--tmInlineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line del{--tmInlineBgCol:var(--ec-tm-delBg);--tmInlineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line mark,.expressive-code .ec-line ins,.expressive-code .ec-line del{all:unset;display:inline-block;position:relative;--tmBrdL:var(--ec-tm-inlMarkerBrdWd);--tmBrdR:var(--ec-tm-inlMarkerBrdWd);--tmRadL:var(--ec-tm-inlMarkerBrdRad);--tmRadR:var(--ec-tm-inlMarkerBrdRad);margin-inline:0.025rem;padding-inline:var(--ec-tm-inlMarkerPad);border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);background:var(--tmInlineBgCol);background-clip:padding-box}.expressive-code .ec-line mark.open-start,.expressive-code .ec-line ins.open-start,.expressive-code .ec-line del.open-start{margin-inline-start:0;padding-inline-start:0;--tmBrdL:0px;--tmRadL:0}.expressive-code .ec-line mark.open-end,.expressive-code .ec-line ins.open-end,.expressive-code .ec-line del.open-end{margin-inline-end:0;padding-inline-end:0;--tmBrdR:0px;--tmRadR:0}.expressive-code .ec-line mark::before,.expressive-code .ec-line ins::before,.expressive-code .ec-line del::before{content:&apos;&apos;;position:absolute;pointer-events:none;display:inline-block;inset:0;border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);border:var(--ec-tm-inlMarkerBrdWd) solid var(--tmInlineBrdCol);border-inline-width:var(--tmBrdL) var(--tmBrdR)}.expressive-code .frame{all:unset;position:relative;display:block;--header-border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));--tab-border-radius:calc(var(--ec-frm-edTabBrdRad) + var(--ec-brdWd));--button-spacing:0.4rem;--code-background:var(--ec-frm-edBg);border-radius:var(--header-border-radius);box-shadow:var(--ec-frm-frameBoxShdCssVal)}.expressive-code .frame .header{display:none;z-index:1;position:relative;border-radius:var(--header-border-radius) var(--header-border-radius) 0 0}.expressive-code .frame.has-title pre,.expressive-code .frame.has-title code,.expressive-code .frame.is-terminal pre,.expressive-code .frame.is-terminal code{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.expressive-code .frame .title:empty:before{content:&apos;\a0&apos;}.expressive-code .frame.has-title:not(.is-terminal){--button-spacing:calc(1.9rem + 2 * (var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)))}.expressive-code .frame.has-title:not(.is-terminal) .title{position:relative;color:var(--ec-frm-edActTabFg);background:var(--ec-frm-edActTabBg);background-clip:padding-box;margin-block-start:var(--ec-frm-edTabsMargBlkStart);padding:calc(var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)) var(--ec-uiPadInl);border:var(--ec-brdWd) solid var(--ec-frm-edActTabBrdCol);border-radius:var(--tab-border-radius) var(--tab-border-radius) 0 0;border-bottom:none;overflow:hidden}.expressive-code .frame.has-title:not(.is-terminal) .title::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-top:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndTopCol);border-bottom:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndBtmCol)}.expressive-code .frame.has-title:not(.is-terminal) .header{display:flex;background:linear-gradient(to top, var(--ec-frm-edTabBarBrdBtmCol) var(--ec-brdWd), transparent var(--ec-brdWd)),linear-gradient(var(--ec-frm-edTabBarBg), var(--ec-frm-edTabBarBg));background-repeat:no-repeat;padding-inline-start:var(--ec-frm-edTabsMargInlStart)}.expressive-code .frame.has-title:not(.is-terminal) .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border:var(--ec-brdWd) solid var(--ec-frm-edTabBarBrdCol);border-radius:inherit;border-bottom:none}.expressive-code .frame.is-terminal{--button-spacing:calc(1.9rem + var(--ec-brdWd) + 2 * var(--ec-uiPadBlk));--code-background:var(--ec-frm-trmBg)}.expressive-code .frame.is-terminal .header{display:flex;align-items:center;justify-content:center;padding-block:var(--ec-uiPadBlk);padding-block-end:calc(var(--ec-uiPadBlk) + var(--ec-brdWd));position:relative;font-weight:500;letter-spacing:0.025ch;color:var(--ec-frm-trmTtbFg);background:var(--ec-frm-trmTtbBg);border:var(--ec-brdWd) solid var(--ec-brdCol);border-bottom:none}.expressive-code .frame.is-terminal .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;left:var(--ec-uiPadInl);width:2.1rem;height:0.56rem;line-height:0;background-color:var(--ec-frm-trmTtbDotsFg);opacity:var(--ec-frm-trmTtbDotsOpa);-webkit-mask-image:var(--ec-frm-trmIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-trmIcon);mask-repeat:no-repeat}.expressive-code .frame.is-terminal .header::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-bottom:var(--ec-brdWd) solid var(--ec-frm-trmTtbBrdBtmCol)}.expressive-code .frame pre{background:var(--code-background)}.expressive-code .copy{display:flex;gap:0.25rem;flex-direction:row;position:absolute;inset-block-start:calc(var(--ec-brdWd) + var(--button-spacing));inset-inline-end:calc(var(--ec-brdWd) + var(--ec-uiPadInl) / 2)}@media (scripting: none){.expressive-code .copy{display:none}}.expressive-code .copy{direction:ltr;unicode-bidi:isolate}.expressive-code .copy button{position:relative;align-self:flex-end;margin:0;padding:0;border:none;border-radius:0.2rem;z-index:1;cursor:pointer;transition-property:opacity, background, border-color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94);width:2.5rem;height:2.5rem;background:var(--code-background);opacity:0.75}.expressive-code .copy button div{position:absolute;inset:0;border-radius:inherit;background:var(--ec-frm-inlBtnBg);opacity:var(--ec-frm-inlBtnBgIdleOpa);transition-property:inherit;transition-duration:inherit;transition-timing-function:inherit}.expressive-code .copy button::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-radius:inherit;border:var(--ec-brdWd) solid var(--ec-frm-inlBtnBrd);opacity:var(--ec-frm-inlBtnBrdOpa)}.expressive-code .copy button::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-frm-inlBtnFg);-webkit-mask-image:var(--ec-frm-copyIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-copyIcon);mask-repeat:no-repeat;margin:0.475rem;line-height:0}.expressive-code .copy button:hover,.expressive-code .copy button:focus:focus-visible{opacity:1}.expressive-code .copy button:hover div,.expressive-code .copy button:focus:focus-visible div{opacity:var(--ec-frm-inlBtnBgHoverOrFocusOpa)}.expressive-code .copy button:active{opacity:1}.expressive-code .copy button:active div{opacity:var(--ec-frm-inlBtnBgActOpa)}.expressive-code .copy .feedback{--tooltip-arrow-size:0.35rem;--tooltip-bg:var(--ec-frm-tooltipSuccessBg);color:var(--ec-frm-tooltipSuccessFg);pointer-events:none;user-select:none;-webkit-user-select:none;position:relative;align-self:center;background-color:var(--tooltip-bg);z-index:99;padding:0.125rem 0.75rem;border-radius:0.2rem;margin-inline-end:var(--tooltip-arrow-size);opacity:0;transition-property:opacity, transform;transition-duration:0.2s;transition-timing-function:ease-in-out;transform:translate3d(0, 0.25rem, 0)}.expressive-code .copy .feedback::after{content:&apos;&apos;;position:absolute;pointer-events:none;top:calc(50% - var(--tooltip-arrow-size));inset-inline-end:calc(-2 * (var(--tooltip-arrow-size) - 0.5px));border:var(--tooltip-arrow-size) solid transparent;border-inline-start-color:var(--tooltip-bg)}.expressive-code .copy .feedback.show{opacity:1;transform:translate3d(0, 0, 0)}@media (hover: hover){.expressive-code{}.expressive-code .copy button{opacity:0;width:2rem;height:2rem}.expressive-code .frame:hover .copy button:not(:hover),.expressive-code .frame:focus-within :focus-visible ~ .copy button:not(:hover),.expressive-code .frame .copy .feedback.show ~ button:not(:hover){opacity:0.75}}.expressive-code :nth-child(1 of .ec-line) .code{padding-inline-end:calc(2rem + var(--ec-codePadInl))}.expressive-code .gutter .ln{display:inline-flex;justify-content:flex-end;align-items:flex-start;box-sizing:content-box;min-width:var(--lnWidth, 2ch);padding-inline:2ch;color:var(--ec-lineNumbers-fg)}.highlight .expressive-code .gutter .ln{color:var(--ec-lineNumbers-hlFg)}.expressive-code .ec-section{position:relative}.expressive-code .ec-section summary{position:relative;font-family:var(--ec-cs-closedFontFml);font-size:var(--ec-cs-closedFontSize);line-height:var(--ec-cs-closedLineHt);user-select:none;-webkit-user-select:none;cursor:pointer;color:var(--ec-cs-closedTextCol);background-color:var(--ec-cs-closedBgCol);--border-color:var(--ec-cs-closedBrdCol);--border-width:var(--ec-cs-closedBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);margin:var(--ec-cs-closedMarg);padding:0}.expressive-code .ec-section summary::marker{display:inline-block;content:&quot;&quot;;width:16px;height:16px}.expressive-code .ec-section summary::-webkit-details-marker{display:none}.expressive-code .ec-section summary :is(.expand, .collapse){position:relative;display:inline-block;width:16px;height:16px;vertical-align:text-bottom;opacity:0.75}.expressive-code .ec-section summary :is(.expand, .collapse)::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-cs-closedTextCol);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;line-height:0}.expressive-code .ec-section summary .expand::after{-webkit-mask-image:var(--ec-cs-expandIcon);mask-image:var(--ec-cs-expandIcon);-webkit-print-color-adjust:exact;print-color-adjust:exact}.expressive-code .ec-section summary .collapse{display:none}.expressive-code .ec-section summary .collapse::after{-webkit-mask-image:var(--ec-cs-collapseIcon);mask-image:var(--ec-cs-collapseIcon)}.expressive-code .ec-section summary .text{margin-left:1em}.expressive-code .ec-section summary .ec-line .code{padding-block:var(--ec-cs-closedPadBlk);text-indent:0}.expressive-code .ec-section[open],.expressive-code .ec-section details[open] + .content-lines{--border-color:var(--ec-cs-openBrdCol);--border-width:var(--ec-cs-openBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);padding-inline:var(--ec-cs-openPad);margin-inline:var(--ec-cs-openMarg)}.expressive-code .ec-section.github[open] summary{display:none}.expressive-code .ec-section.github[open]{background-color:var(--ec-cs-openBgCol)}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end){display:flex;flex-direction:column}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) .content-lines{display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] .collapse{display:inline-block}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] :is(.expand, .text){display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] + .content-lines{display:block;background-color:var(--ec-cs-openBgColCollapsible)}@media print{.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open]{display:none}}.expressive-code .ec-section.collapsible-end{flex-direction:column-reverse}:root,:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;]{--ec-brdRad:0.3rem;--ec-brdWd:1.5px;--ec-brdCol:#1b1f23;--ec-codeFontFml:jetbrains-mono;--ec-codeFontSize:0.85rem;--ec-codeFontWg:400;--ec-codeLineHt:1.65;--ec-codePadBlk:1rem;--ec-codePadInl:1.35rem;--ec-codeBg:#24292e;--ec-codeFg:#e1e4e8;--ec-codeSelBg:#3392ff44;--ec-gtrFg:#727980;--ec-gtrBrdCol:#72798033;--ec-gtrBrdWd:1.5px;--ec-gtrHlFg:#e1e4e896;--ec-uiFontFml:jetbrains-mono;--ec-uiFontSize:0.9rem;--ec-uiFontWg:400;--ec-uiLineHt:1.65;--ec-uiPadBlk:0.25rem;--ec-uiPadInl:1rem;--ec-uiSelBg:#39414a;--ec-uiSelFg:#e1e4e8;--ec-focusBrd:#005cc5;--ec-sbThumbCol:#6a737d33;--ec-sbThumbHoverCol:#6a737dd1;--ec-tm-lineMarkerAccentMarg:0rem;--ec-tm-lineMarkerAccentWd:0.15rem;--ec-tm-lineMarkerLabelPadInl:0.2rem;--ec-tm-lineMarkerLabelCol:white;--ec-tm-lineDiffIndMargLeft:0.3rem;--ec-tm-inlMarkerBrdWd:1.5px;--ec-tm-inlMarkerBrdRad:0.2rem;--ec-tm-inlMarkerPad:0.15rem;--ec-tm-insDiffIndContent:&apos;+&apos;;--ec-tm-delDiffIndContent:&apos;-&apos;;--ec-tm-markBg:#264a8980;--ec-tm-markBrdCol:#5570b3d0;--ec-tm-insBg:#26561c80;--ec-tm-insBrdCol:#4e7e41d0;--ec-tm-insDiffIndCol:#7eb070d0;--ec-tm-delBg:#81322b80;--ec-tm-delBrdCol:#ae594fd0;--ec-tm-delDiffIndCol:#e68a7ed0;--ec-frm-shdCol:#0000005b;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #0000005b;--ec-frm-edActTabBg:#24292e;--ec-frm-edActTabFg:#e1e4e8;--ec-frm-edActTabBrdCol:transparent;--ec-frm-edActTabIndHt:1.5px;--ec-frm-edActTabIndTopCol:#f9826c;--ec-frm-edActTabIndBtmCol:#24292e;--ec-frm-edTabsMargInlStart:0;--ec-frm-edTabsMargBlkStart:0;--ec-frm-edTabBrdRad:0.3rem;--ec-frm-edTabBarBg:#1f2428;--ec-frm-edTabBarBrdCol:#1b1f23;--ec-frm-edTabBarBrdBtmCol:#1b1f23;--ec-frm-edBg:#24292e;--ec-frm-trmTtbFg:#e1e4e8;--ec-frm-trmTtbDotsFg:#e1e4e8;--ec-frm-trmTtbDotsOpa:0.15;--ec-frm-trmTtbBg:#24292e;--ec-frm-trmTtbBrdBtmCol:#1b1f23;--ec-frm-trmBg:#1f2428;--ec-frm-inlBtnFg:#e1e4e8;--ec-frm-inlBtnBg:#e1e4e8;--ec-frm-inlBtnBgIdleOpa:0;--ec-frm-inlBtnBgHoverOrFocusOpa:0.2;--ec-frm-inlBtnBgActOpa:0.3;--ec-frm-inlBtnBrd:#e1e4e8;--ec-frm-inlBtnBrdOpa:0.4;--ec-frm-tooltipSuccessBg:#228739;--ec-frm-tooltipSuccessFg:white;--ec-frm-copyIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2024%2024&apos;%20fill%3D&apos;none&apos;%20stroke%3D&apos;black&apos;%20stroke-width%3D&apos;1.75&apos;%3E%3Cpath%20d%3D&apos;M3%2019a2%202%200%200%201-1-2V2a2%202%200%200%201%201-1h13a2%202%200%200%201%202%201&apos;%2F%3E%3Crect%20x%3D&apos;6&apos;%20y%3D&apos;5&apos;%20width%3D&apos;16&apos;%20height%3D&apos;18&apos;%20rx%3D&apos;1.5&apos;%20ry%3D&apos;1.5&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-frm-trmIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2060%2016&apos;%20preserveAspectRatio%3D&apos;xMidYMid%20meet&apos;%3E%3Ccircle%20cx%3D&apos;8&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;30&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;52&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-lineNumbers-fg:inherit;--ec-lineNumbers-hlFg:inherit;--ec-cs-closedBrdWd:0px;--ec-cs-closedPadBlk:4px;--ec-cs-closedMarg:0;--ec-cs-closedFontFml:inherit;--ec-cs-closedFontSize:inherit;--ec-cs-closedLineHt:inherit;--ec-cs-closedTextCol:#e1e4e8;--ec-cs-closedBgCol:#58606933;--ec-cs-closedBrdCol:#58606980;--ec-cs-openBrdWd:1px;--ec-cs-openPad:0;--ec-cs-openMarg:0;--ec-cs-openBgCol:transparent;--ec-cs-openBgColCollapsible:#5860691a;--ec-cs-openBrdCol:transparent;--ec-cs-expandIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;m8.177.677%202.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25a.75.75%200%200%201-1.5%200V4H5.104a.25.25%200%200%201-.177-.427L7.823.677a.25.25%200%200%201%20.354%200ZM7.25%2010.75a.75.75%200%200%201%201.5%200V12h2.146a.25.25%200%200%201%20.177.427l-2.896%202.896a.25.25%200%200%201-.354%200l-2.896-2.896A.25.25%200%200%201%205.104%2012H7.25v-1.25Zm-5-2a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-cs-collapseIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;M10.896%202H8.75V.75a.75.75%200%200%200-1.5%200V2H5.104a.25.25%200%200%200-.177.427l2.896%202.896a.25.25%200%200%200%20.354%200l2.896-2.896A.25.25%200%200%200%2010.896%202ZM8.75%2015.25a.75.75%200%200%201-1.5%200V14H5.104a.25.25%200%200%201-.177-.427l2.896-2.896a.25.25%200%200%201%20.354%200l2.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25Zm-6.5-6.5a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;)}.expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])),:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--0, inherit);background-color:var(--0bg, transparent);font-style:var(--0fs, inherit);font-weight:var(--0fw, inherit);text-decoration:var(--0td, inherit)}@media (prefers-color-scheme: light){:root:not([data-theme=&quot;dark&quot;]){--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root:not([data-theme=&quot;dark&quot;]) .expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]),.expressive-code[data-theme=&quot;light&quot;]{--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]) .ec-line :where(span[style^=&apos;--&apos;]:not([class])),.expressive-code[data-theme=&quot;light&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}&lt;/style&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function a(e){if(!e)return;let t=e.getAttribute(&quot;tabindex&quot;)!==null,r=e.scrollWidth&gt;e.clientWidth;r&amp;&amp;!t?(e.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),e.setAttribute(&quot;role&quot;,&quot;region&quot;)):!r&amp;&amp;t&amp;&amp;(e.removeAttribute(&quot;tabindex&quot;),e.removeAttribute(&quot;role&quot;))}var u=window.requestIdleCallback||(e=&gt;setTimeout(e,1)),s=window.cancelIdleCallback||clearTimeout;function l(e){let t=new Set,r,n;return new ResizeObserver(c=&gt;{c.forEach(o=&gt;t.add(o.target)),r&amp;&amp;clearTimeout(r),n&amp;&amp;s(n),r=setTimeout(()=&gt;{n&amp;&amp;s(n),n=u(()=&gt;{t.forEach(o=&gt;e(o)),t.clear()})},250)})}function i(e,t){e.querySelectorAll?.(&quot;.expressive-code pre &gt; code&quot;).forEach(r=&gt;{let n=r.parentElement;n&amp;&amp;t.observe(n)})}var d=l(a);i(document,d);var b=new MutationObserver(e=&gt;e.forEach(t=&gt;t.addedNodes.forEach(r=&gt;{i(r,d)})));b.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document,d)});})();}catch(e){console.error(&quot;[EC] tabindex-js-module failed:&quot;,e)}&lt;/script&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function l(o){let e=document.createElement(&quot;pre&quot;);Object.assign(e.style,{opacity:&quot;0&quot;,pointerEvents:&quot;none&quot;,position:&quot;absolute&quot;,overflow:&quot;hidden&quot;,left:&quot;0&quot;,top:&quot;0&quot;,width:&quot;20px&quot;,height:&quot;20px&quot;,webkitUserSelect:&quot;auto&quot;,userSelect:&quot;all&quot;}),e.ariaHidden=&quot;true&quot;,e.textContent=o,document.body.appendChild(e);let a=document.createRange();a.selectNode(e);let n=getSelection();if(!n)return!1;n.removeAllRanges(),n.addRange(a);let r=!1;try{r=document.execCommand(&quot;copy&quot;)}finally{n.removeAllRanges(),document.body.removeChild(e)}return r}async function u(o){let e=o.currentTarget,a=e.dataset,n=!1,r=a.code.replace(/\u007f/g,`
`);try{await navigator.clipboard.writeText(r),n=!0}catch{n=l(r)}if(!n||e.parentNode?.querySelector(&quot;.feedback&quot;))return;let c=e.parentNode?.querySelector(&quot;[aria-live]&quot;),t=document.createElement(&quot;div&quot;);t.classList.add(&quot;feedback&quot;),t.append(a.copied),c.append(t),t.offsetWidth,requestAnimationFrame(()=&gt;t?.classList.add(&quot;show&quot;));let s=()=&gt;!t||t.classList.remove(&quot;show&quot;),d=()=&gt;{!t||parseFloat(getComputedStyle(t).opacity)&gt;0||(t.remove(),t=void 0)};setTimeout(s,1500),setTimeout(d,2500),e.addEventListener(&quot;blur&quot;,s),t.addEventListener(&quot;transitioncancel&quot;,d),t.addEventListener(&quot;transitionend&quot;,d)}function i(o){o.querySelectorAll?.(&quot;.expressive-code .copy button&quot;).forEach(e=&gt;e.addEventListener(&quot;click&quot;,u))}i(document);var m=new MutationObserver(o=&gt;o.forEach(e=&gt;e.addedNodes.forEach(a=&gt;{i(a)})));m.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document)});})();}catch(e){console.error(&quot;[EC] copy-js-module failed:&quot;,e)}&lt;/script&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;swift&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;SwiftUI&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;UserMessagingPlatform&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;4&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;struct&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;ContentView&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;View &lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;5&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;@AppStorage&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;gdprConsentShown&quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; gdprConsentShown &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;false&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;6&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;7&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; body: &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;some&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; View {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;8&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;VStack&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;9&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;10&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;onAppear&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;11&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;          &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;gdprConsentCheck&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;12&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;13&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;14&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;15&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;gdprConsentCheck&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;() {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;details class=&quot;ec-section github&quot;&gt;&lt;summary&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;expand&quot;&gt;&lt;/span&gt;&lt;span class=&quot;collapse&quot;&gt;&lt;/span&gt;&lt;span class=&quot;text&quot;&gt;55 collapsed lines&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/summary&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;16&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;guard&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;gdprConsentShown &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; { &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; }&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;17&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;18&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// Create a UMPRequestParameters object.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;19&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; parameters &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;UMPRequestParameters&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;20&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; debugSettings &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;UMPDebugSettings&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; ()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;21&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// - This is for mimicking EEA users when you&apos;re outside the EU.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;22&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// - Use a simulator so you can read the consent form.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;23&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;debugSettings.geography &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; .EEA&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;24&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;parameters.debugSettings &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; debugSettings&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;25&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;26&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// Set tag for under age of consent. false means users are not under the age of consent. If you turn this on, no consent form is presented.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;27&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;parameters.tagForUnderAgeOfConsent &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;false&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;28&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;29&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// Request an update for the consent information.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;30&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;UMPConsentInformation.sharedInstance.&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;requestConsentInfoUpdate&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;with&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: parameters) { (requestConsentError) &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;in&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;31&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; consentError &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; requestConsentError {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;32&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// Consent gathering failed.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;33&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;Error: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;\(consentError.&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;localizedDescription&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;34&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;35&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// Load and present the consent form.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;36&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;loadAndPresentConsentForm&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;37&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;38&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;39&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;40&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;loadAndPresentConsentForm&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;() {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;41&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;UMPConsentForm.&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;load&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; { (form, loadError) &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;in&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;42&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; error &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; loadError {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;43&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// Consent form could not be loaded.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;44&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;Error: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;\(error.&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;localizedDescription&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;45&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;46&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;47&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; form &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; form {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;48&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; windowScene &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; UIApplication.shared.connectedScenes.&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;first&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;as?&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; UIWindowScene {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;49&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                    &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; window &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; windowScene.windows.&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;first&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;50&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                        &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; rootViewController &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; window.rootViewController {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;51&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;                            &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;form.&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;present&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: rootViewController) { (dismissError) &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;in&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;52&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                                &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; error &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; dismissError {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;53&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                                    &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// Consent form could not be dismissed.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;54&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                                    &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;Error: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;\(error.&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;localizedDescription&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;55&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;                                    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;gdprConsentShown &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;false&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;56&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;                                &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;} &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;57&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                                    &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// Consent form was dismissed.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;58&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                                    &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// Check the consent status.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;59&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                                    &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; status &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; UMPConsentInformation.sharedInstance.consentStatus&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;60&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                                    &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;Consent status: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;\(status)&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;61&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;                                    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;gdprConsentShown &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;true&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;62&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;                                &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;63&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;                            &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;64&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;                        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;65&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;                    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;66&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;67&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;68&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;69&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;70&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/details&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;import SwiftUIimport UserMessagingPlatformstruct ContentView: View {  @AppStorage(&amp;#x22;gdprConsentShown&amp;#x22;) var gdprConsentShown = false  var body: some View {      VStack {      }        .onAppear {          gdprConsentCheck()        }  }    func gdprConsentCheck() {        guard !gdprConsentShown else { return }        // Create a UMPRequestParameters object.        let parameters = UMPRequestParameters()        let debugSettings = UMPDebugSettings ()        // - This is for mimicking EEA users when you&amp;#x27;re outside the EU.        // - Use a simulator so you can read the consent form.        debugSettings.geography = .EEA        parameters.debugSettings = debugSettings        // Set tag for under age of consent. false means users are not under the age of consent. If you turn this on, no consent form is presented.        parameters.tagForUnderAgeOfConsent = false        // Request an update for the consent information.        UMPConsentInformation.sharedInstance.requestConsentInfoUpdate(with: parameters) { (requestConsentError) in            if let consentError = requestConsentError {                // Consent gathering failed.                return print(&amp;#x22;Error: \(consentError.localizedDescription)&amp;#x22;)            }            // Load and present the consent form.            loadAndPresentConsentForm()        }    }    func loadAndPresentConsentForm() {        UMPConsentForm.load { (form, loadError) in            if let error = loadError {                // Consent form could not be loaded.                return print(&amp;#x22;Error: \(error.localizedDescription)&amp;#x22;)            }            if let form = form {                if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene {                    if let window = windowScene.windows.first {                        if let rootViewController = window.rootViewController {                            form.present(from: rootViewController) { (dismissError) in                                if let error = dismissError {                                    // Consent form could not be dismissed.                                    print(&amp;#x22;Error: \(error.localizedDescription)&amp;#x22;)                                    gdprConsentShown = false                                } else {                                    // Consent form was dismissed.                                    // Check the consent status.                                    let status = UMPConsentInformation.sharedInstance.consentStatus                                    print(&amp;#x22;Consent status: \(status)&amp;#x22;)                                    gdprConsentShown = true                                }                            }                        }                    }                }            }        }    }}&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;네, if let이 절반쯤 ChatGPT로 만든 거라 못생겼지만, 요점은 이해하실 겁니다. 저는 이를 수정해서 모든 것을 다른 뷰에 넣었습니다.&lt;/p&gt;
&lt;p&gt;그래서 제가 만드는 모든 앱에서 그 뷰를 복사해서 붙여넣기만 합니다. 제 메인 뷰에서 사용하는 방법은 다음과 같습니다:&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;swift&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;//for ads and consent form&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;@State&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; readyToShow &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;false&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;@State&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; bannerView: BannerView&lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;nil&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;4&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;/////&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;5&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;context&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;6&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;onAppear&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;() {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;7&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// create the banner onAppear, readyToShow is false by default&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;8&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;bannerView &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;BannerView&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;readyToShow&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: $readyToShow, &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;adUnitID&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;ca-app-pub-yourKeyHere&quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;9&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// This performs the consent form logic inside the bannerView, if everything goes well, toggle readyToShow to true.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;10&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;bannerView&lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;gdprConsentCheck&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;11&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;12&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;toolbar&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;13&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;ToolbarItem&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;placement&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: .bottomBar) {&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;14&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// So only users who passed the consent form will see this banner ad.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;15&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;adRemoved &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;&amp;#x26;&amp;#x26;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; readyToShow{&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;details class=&quot;ec-section github&quot;&gt;&lt;summary&gt;&lt;div class=&quot;ec-line&quot; style=&quot;--ecIndent:8ch&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;expand&quot;&gt;&lt;/span&gt;&lt;span class=&quot;collapse&quot;&gt;&lt;/span&gt;&lt;span class=&quot;text&quot;&gt;6 collapsed lines&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/summary&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;16&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;                    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;bannerView&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;17&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;                        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;frame&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: GADAdSizeBanner.&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;size&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;.width, &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: GADAdSizeBanner.&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;size&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;.height)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;18&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;                &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;19&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;20&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;            &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;21&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;        &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/details&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;    //for ads and consent form    @State var readyToShow = false    @State private var bannerView: BannerView? = nil    /////    context        .onAppear() {            // create the banner onAppear, readyToShow is false by default            bannerView = BannerView(readyToShow: $readyToShow, adUnitID: &amp;#x22;ca-app-pub-yourKeyHere&amp;#x22;)            // This performs the consent form logic inside the bannerView, if everything goes well, toggle readyToShow to true.            bannerView?.gdprConsentCheck()        }        .toolbar {            ToolbarItem(placement: .bottomBar) {                // So only users who passed the consent form will see this banner ad.                if !adRemoved &amp;#x26;&amp;#x26; readyToShow{                    bannerView                        .frame(width: GADAdSizeBanner.size.width, height: GADAdSizeBanner.size.height)                }            }        }&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;h2 id=&quot;맞춤형-광고&quot;&gt;맞춤형 광고&lt;/h2&gt;
&lt;p&gt;맞춤형 광고를 표시할지 여부를 제어하기 위해, 예전에는 광고 요청 옵션을 다음과 같이 설정했습니다:&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;swift&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;GoogleMobileAds&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; request &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;GADRequest&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;4&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; extras &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;GADExtras&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;5&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;extras.additionalParameters &lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;npa&quot;&lt;/span&gt;&lt;span style=&quot;--0:#F97583;--1:#BF3441&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;1&quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;--0:#99A0A6;--1:#616972&quot;&gt;// This means no personalized ads are shown&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;6&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;request.&lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;register&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;(extras)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;import GoogleMobileAdslet request = GADRequest()let extras = GADExtras()extras.additionalParameters = [&amp;#x22;npa&amp;#x22;: &amp;#x22;1&amp;#x22;] // This means no personalized ads are shownrequest.register(extras)&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;기억하세요, App Store 규정 준수를 위해 ATT를 설정해야 합니다.&lt;/p&gt;
&lt;p&gt;하지만 이제는 Google AdMob과 상호작용하는 것이 아무 소용이 없습니다. UserMessagingPlatform을 사용하면 Google이 자사 플랫폼에서 “개인화”를 관리하기 때문입니다.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;“혹시 아직도 누군가에게 도움이 될까 해서 확인차 말씀드리면, Android에서 UMP SDK를 사용하면 npa=1을 설정할 필요가 없습니다. UMP SDK는 TCF 문자열을 shared preferences에 기록하며(관련 정보: &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://support.google.com/admob/answer/9760862&quot;&gt;https://support.google.com/admob/answer/9760862&lt;/a&gt;), Google Mobile Ads SDK는 광고 요청 시 TCF 문자열을 읽습니다.” - Eric, Mobile Ads SDK 팀 - &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://groups.google.com/g/google-admob-ads-sdk/c/I6j0Pr-_ziY/m/Qf3pNezGBAAJ&quot; title=&quot;Google AdMob npa 1 usage&quot;&gt;더 보기&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;이것이 제가 Google AdMob 포럼에서 읽은 내용입니다.&lt;/p&gt;
&lt;p&gt;Android용이라고 했지만, iOS에서도 같은 방식으로 작동한다고 생각합니다.&lt;/p&gt;
&lt;p&gt;그래도 어차피 Apple을 위해 ATT를 구현해야 하므로, 지금은 유지하고 있습니다.&lt;/p&gt;
&lt;p&gt;이 가이드가 상황을 조금이나마 단순하게 만들고 도움이 되었으면 합니다.&lt;/p&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/755d740d-459a-4f2c-b911-8599ad293c8c"/><enclosure url="https://cms.hongct.com/assets/755d740d-459a-4f2c-b911-8599ad293c8c" length="1134047" type="image/png"/></item><item><title>Xcode 업데이트 방법 - 3가지 간단한 방법</title><link>https://hongcheung.com/ko/post/how-to-update-xcode--3-easy-ways/</link><guid isPermaLink="true">https://hongcheung.com/ko/post/how-to-update-xcode--3-easy-ways/</guid><description>Xcode를 업데이트하는 세 가지 간단한 방법.</description><pubDate>Thu, 11 Jan 2024 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/ea8cabf9-b8fd-4c6c-a18c-33d124d79b20&quot; alt=&quot;Xcode 업데이트 방법 - 3가지 간단한 방법&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;p&gt;제가 알고 있는 방법은 세 가지입니다.&lt;/p&gt;
&lt;h2 id=&quot;1-app-store&quot;&gt;1. App Store&lt;/h2&gt;
&lt;p&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/5ab439c8-be22-42f5-99e9-5bfe3276f465&quot; alt=&quot;App Store를 사용하여 Xcode 업데이트&quot; title=&quot;App Store에서 Xcode 찾기&quot;&gt;&lt;/p&gt;
&lt;p&gt;응용 프로그램 폴더로 이동하여 Xcode를 검색하고 업데이트를 누르세요. “열기”라는 단어만 보인다면, 현재 macOS 버전에서 사용할 수 있는 최신 버전의 Xcode를 이미 보유하고 있다는 뜻입니다.&lt;/p&gt;
&lt;h2 id=&quot;2-apple-developer-웹사이트&quot;&gt;2. Apple Developer 웹사이트&lt;/h2&gt;
&lt;p&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/f0e898fe-5012-431d-8bf5-e5c46674c282&quot; alt=&quot;Apple Developer 다운로드 페이지&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://developer.apple.com/download/all/?q=xcode&quot; title=&quot;Apple Developer 다운로드 페이지&quot;&gt;Apple 공식 개발자 웹사이트&lt;/a&gt;로 이동하여 개발자 계정으로 로그인하세요. 그런 다음 Xcode를 검색하세요. 이전 버전도 다운로드할 수 있습니다.&lt;/p&gt;
&lt;h2 id=&quot;3-xcodes&quot;&gt;3. Xcodes&lt;/h2&gt;
&lt;p&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/7cd2b80f-de68-404c-855b-96a049fa95d0&quot; alt=&quot;Xcodes&quot;&gt;&lt;/p&gt;
&lt;p&gt;Xcodes는 다운로드할 수 있는 다양한 버전의 Xcode 목록을 제공하는 오픈 소스 소프트웨어입니다. &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://github.com/XcodesOrg/XcodesApp&quot; title=&quot;Xcode를 업데이트하는 Xcodes GitHub 저장소&quot;&gt;이 GitHub 저장소&lt;/a&gt;에서 앱을 다운로드할 수 있습니다. 목록에서 Xcodes를 보려면 먼저 설정으로 이동하여 개발자 계정을 입력해 로그인해야 합니다.&lt;/p&gt;
&lt;p&gt;이 프로그램의 특별한 점은 여러 버전의 Xcode를 설치하고 실행할 수 있다는 것입니다. 예를 들어, 저는 지금 14.2와 15.1을 함께 가지고 있습니다. 아주 잘 작동합니다. 강력히 추천합니다.&lt;/p&gt;
&lt;h3 id=&quot;참고&quot;&gt;참고&lt;/h3&gt;
&lt;p&gt;App Store를 통한 업데이트는 권장하지 않습니다. 보시다시피 Xcode는 별점이 2점밖에 되지 않습니다. 프로그램 자체 때문이 아니라 App Store를 통한 다운로드와 설치에 버그가 있기 때문입니다.&lt;/p&gt;
&lt;p&gt;개인적으로 저는 App Store를 사용해 Xcode를 두 번 업데이트해 보았습니다. 첫 번째는 다운로드와 설치를 완료하는 데 몇 시간이 걸렸습니다. 두 번째는 “업데이트”를 클릭하고 다운로드 및 설치를 했는데도 여전히 이전 버전으로 표시되고 작동했습니다. 그래서 결국 Xcodes를 사용했습니다.&lt;/p&gt;
&lt;p&gt;도움이 되었기를 바랍니다.&lt;/p&gt;
&lt;p&gt;코딩하세요, 친구.&lt;/p&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/ea8cabf9-b8fd-4c6c-a18c-33d124d79b20"/><enclosure url="https://cms.hongct.com/assets/ea8cabf9-b8fd-4c6c-a18c-33d124d79b20" length="91986" type="image/png"/></item><item><title>프로그래밍을 위한 Linux VS Mac</title><link>https://hongcheung.com/ko/post/linux-vs-mac-for-programming/</link><guid isPermaLink="true">https://hongcheung.com/ko/post/linux-vs-mac-for-programming/</guid><description>어떤 것을 선택해야 할까요?</description><pubDate>Thu, 04 Jan 2024 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/e28a3b16-2426-46b5-b1ac-ea3105443786&quot; alt=&quot;프로그래밍을 위한 Linux VS Mac&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;서론&quot;&gt;서론&lt;/h2&gt;
&lt;p&gt;최근에 Linux Mint와 Ubuntu를 사용해 보았고, 몇 년 전에도 몇 가지 Linux 배포판을 사용해 본 적이 있습니다. 그때는 프로그래밍에 관심이 없었고 그저 이것저것 만져보는 걸 좋아했으며, 항상 Puppy Linux USB를 가지고 다녔습니다. 정말로 노력하고 있습니다. 지금은 프로그래밍을 더 잘할 수 있게 되었으니 한 번 더 도전해 보지만, 결국 항상 Mac이나 Windows로 돌아오게 되더군요.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;2025년 5월 6일 업데이트:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;첫 번째 부분은 프로그래밍 초보자를 위한 것입니다. 프로그래밍에 익숙하다면 &lt;a href=&quot;#Advanced&quot;&gt;이 섹션&lt;/a&gt;으로 건너뛰어 동료 프로그래머의 의견을 읽어 보세요.&lt;/strong&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h1 id=&quot;프로그래밍-학습-시작하기&quot;&gt;프로그래밍 학습 시작하기&lt;/h1&gt;
&lt;h2 id=&quot;결론&quot;&gt;결론&lt;/h2&gt;
&lt;p&gt;Mac을 사용하세요. 제 경험을 바탕으로 그 이유를 알려드리겠습니다.&lt;/p&gt;
&lt;h2 id=&quot;linux를-쓰지-말아야-하는-이유&quot;&gt;Linux를 쓰지 말아야 하는 이유&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;난이도&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Mac은 소비자용 운영 체제이기 때문에 많은 기능과 사용자 인터페이스가 매우 사용자 친화적입니다. 대부분의 애플리케이션은 설치 파일을 다운로드하고 클릭해서 설치하면 바로 사용할 수 있습니다.&lt;/p&gt;
&lt;p&gt;반면 Linux는 PC로 무언가를 하려면 대부분 텍스트 기반입니다. Linux Mint가 Windows와 매우 비슷하다는 말을 믿지 마세요. 어느 정도는 맞지만, 기본 내장되어 있거나 소프트웨어 관리자에서 제공되지 않는 무언가를 설치하려고 하면(그럴 일이 분명히 생깁니다), macOS와 Windows에서는 클릭 한 번이면 되는 간단한 프로그램을 설치하기 위해 모든 방법을 알아내고, 검색하고, 다른 사람에게는 통했다는 명령어를 시도해 봐야 하는데 그것이 당신에게는 통하지 않을 수도 있습니다.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;시간 소모&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;앞의 내용에 이어서, 무언가를 설치하려고 하면 이것저것 만지작거리며 많은 시간을 써야 합니다. 특히 Windows나 Mac에서 익숙했던 것 중 Linux에서 사용할 수 없는 대안을 찾아야 합니다. 대부분의 시간을 Terminal로 코드를 작성하기 때문에 그 자체로는 좋아 보이지만, 문제는 그 시간에 이미 JavaScript, React, SQL, Python 등으로 무언가를 만들 수 있다는 것입니다. 직장에서 쓰거나 웹사이트나 애플리케이션을 만드는 데 쓰는 코드 말입니다. bash를 쓰지 말라는 게 아니라, 꼭 필요하지 않다는 것입니다.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;OS 문제&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Linux가 기본으로 설치된 기기를 샀다면 좋습니다. 원래 Windows나 Mac을 실행하던 기기에 Linux 배포판을 설치하면, OS를 실행할 때 문제가 생길 가능성이 높습니다. OS가 잘 작동할 수도 있지만, 항상 여기저기 고쳐야 할 것들이 있습니다. 몇 가지 예를 들면, Zoom이 가끔 멈추거나, 노트북에서 키보드 밝기가 작동하지 않거나, Wi-Fi가 느려지는 등입니다. Linux 커널과 드라이버는 대부분 커뮤니티에서 기여하기 때문에 좋은 점이지만, 동시에 당신의 노트북에 대한 책임이 없다는 뜻이기도 하므로 왜 그런지, 어떻게 해야 하는지를 코드를 사용해 스스로 알아내야 합니다. 대부분의 경우 이러한 문제는 Linux 배포판과 하드웨어의 호환성 문제로 발생합니다.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;커뮤니티&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Ubuntu와 Linux Mint 같은 주요 Linux 배포판은 사용자 기반이 가장 큽니다. Linux를 막 시작했다면 이 둘 중 하나를 선택하는 것을 강력히 권장합니다. 사용자가 많을수록 문제에 대한 해결책도 많기 때문입니다. 하지만 Mac은 Linux보다 지원이 훨씬 많습니다. Apple 웹사이트에서든, 당신의 MacBook 모델에 맞는 정확한 해결책을 훨씬 쉽게 찾을 수 있습니다.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;프로그래밍 학습&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;많은 프로그래밍 튜토리얼은 Mac과 Windows를 기준으로 만들어졌습니다. 대부분의 경우 VSCode에서 작업하겠지만, 몇 가지 조정을 위해 OS 터미널과 상호작용해야 할 때가 있고 Linux는 조금 다르게 작동합니다. 항상 해결책과 대안을 찾을 수 있지만, 예를 들어 프런트엔드 개발자가 되고 싶을 뿐이라면 이런 것들을 알 필요는 없습니다.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;개인용 PC&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;저에게 Mac은 개인용 PC이고 Linux는 아닙니다. Mac의 많은 기본 기능은 사용하기 매우 쉽고 높은 평가를 받습니다. 특히 iPhone이 있다면 Apple 기기 간에 복사하여 붙여넣기, AirDrop 등을 할 수 있습니다.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;올라운드성&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Linux에서 하는 모든 것을 Mac에서 할 수 있지만, 그 반대는 아닙니다. 예를 들어 iOS용 모바일 앱을 만들고 싶다면 Xcode가 있습니다. VSCode를 쓰고 싶다면 물론 둘 다 제공합니다. 명령줄을 선호한다면 Mac도 터미널을 제공합니다.&lt;/p&gt;
&lt;h3 id=&quot;초보자를-위한-결론&quot;&gt;초보자를 위한 결론&lt;/h3&gt;
&lt;p&gt;Mac은 틀림없이 더 견고하고, 올라운드이며, 만지작거리지 않아도 믿을 수 있고, 프로그래밍 요구 사항과 개인적 요구 사항 모두에 있어 직관적입니다. Apple을 단순히 싫어하거나 비싼 기기가 부담스럽다면 Linux를 사용하라고밖에 말씀드릴 수 없습니다. 하지만 다시 말하지만, 중고 MacBook을 구할 수는 있습니다. Linux를 쓰지 않으려면 MacBook을 구하는 것만으로도 가치가 있습니다. 하하, 제가 편향되어 있다는 걸 압니다.&lt;/p&gt;
&lt;p&gt;그럼에도 불구하고, 성공을 기원합니다.&lt;/p&gt;
&lt;p&gt;코딩하세요.&lt;/p&gt;
&lt;hr&gt;
&lt;h1 id=&quot;숙련된-프로그래머를-위한-추가-문단&quot;&gt;숙련된 프로그래머를 위한 추가 문단&lt;/h1&gt;
&lt;p&gt;위에 쓴 내용은 프로그래밍 경험이 전혀 없거나 적은 사람들을 위한 것입니다. 그리고 제 요점은 macOS가 프로그래밍을 배우는 누구든 더 직관적으로 시작할 수 있게 해 주며, 동시에 Mac이 개인적 요구 사항도 처리해 줄 수 있다는 것입니다. 장애물이 너무 많으면 학습자에게 의욕을 꺾을 수 있고, 이는 포기로 이어질 수 있습니다.&lt;/p&gt;
&lt;p&gt;하지만 프로그래밍에 익숙하다면 상황이 다를 수 있습니다.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;다음 부분은 더 기술적입니다…&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;h2 id=&quot;프로그래밍에-익숙하고-linux에-익숙하다면-정말로-무엇을-선택해야-할까요&quot;&gt;프로그래밍에 익숙하고 Linux에 익숙하다면, 정말로 무엇을 선택해야 할까요?&lt;/h2&gt;
&lt;p&gt;개인적으로 저는 여전히 다른 기기보다 M 시리즈 MacBook을 선호하며, 지난 몇 년 동안 이 M2 MacBook Air로 정말 많은 일을 해냈습니다.&lt;/p&gt;
&lt;p&gt;하드웨어 측면에서 이 기기는 빠르고 안정적이며 배터리 수명이 뛰어나고, 트랙패드가 훌륭하고, 키보드가 조용하며, 화면이 괜찮고, 조용하고 내장 오디오 스피커가 있습니다.&lt;/p&gt;
&lt;p&gt;소프트웨어 측면에서는 번거로움 없이 원활하게 작동하며, 단순 다운로드든 brew든 Mac에서 어떤 소프트웨어든 매우 쉽게 구할 수 있습니다.&lt;/p&gt;
&lt;p&gt;저는 오래된 2015년 MacBook Air로 프로그래밍 학습을 시작했고 그 이후로 계속 MacBook을 사용해 왔다고 인정합니다. 하지만 그것은 주로 iOS 앱을 만들기 위해서입니다. 네이티브 Apple 앱을 만들지 않는다면 Mac을 살 필요가 없습니다. 이는 다음 첫 번째 요점으로 이어집니다.&lt;/p&gt;
&lt;h2 id=&quot;어떤-종류의-프로그래밍을-하시나요&quot;&gt;어떤 종류의 프로그래밍을 하시나요?&lt;/h2&gt;
&lt;h3 id=&quot;모바일-앱-apple-앱&quot;&gt;모바일 앱; Apple 앱&lt;/h3&gt;
&lt;p&gt;Apple 기기용 네이티브 앱을 만들고 싶으신가요? 그렇다면 Mac을 구하세요. 여기서 ‘네이티브’라는 단어가 중요합니다. 기술적으로는 Expo와 함께 React Native를 사용해 Apple 기기용 앱을 작성할 수 있고, Xcode 컴파일을 대신 해 주는 클라우드 컴파일러도 있습니다. 따라서 Linux나 Windows 기기로 프로그래밍하고 Expo 클라우드에 제출해 컴파일할 수 있습니다. 하지만 현실적으로는 오래된 것이라도 Mac을 구하는 것이 항상 훨씬 좋습니다. 로컬에서 빌드하면 코드를 직접 살펴볼 수 있어 변경이 훨씬 쉽고 직관적입니다.&lt;/p&gt;
&lt;p&gt;주로 웹사이트나 백엔드 서버를 만든다면 원하는 컴퓨터를 구해도 됩니다. Windows라도 괜찮습니다. 이런 프로그래밍 작업에는 그래픽 요구 사항이 없으므로 오래된 Lenovo ThinkPad로도 충분합니다.&lt;/p&gt;
&lt;p&gt;Android 앱은 걱정할 필요가 없습니다. 어차피 어떤 플랫폼에서든 프로그래밍할 수 있습니다.&lt;/p&gt;
&lt;h3 id=&quot;게임&quot;&gt;게임&lt;/h3&gt;
&lt;p&gt;하지만 게임 프로그래밍을 하거나 언어/머신러닝 모델을 실행하거나 빌드해야 한다면, Mac보다 Windows/Linux가 설치된 강력한 PC를 구하는 것이 좋습니다. 가성비가 더 좋습니다. 제가 마지막으로 확인했을 때 Unreal Engine 5 성능이 Windows 컴퓨터에 비해 떨어졌는데, 이는 아직 Apple Silicon에 최적화되지 않았기 때문입니다.&lt;/p&gt;
&lt;p&gt;Godot이나 Unity로 프로그래밍하는 경우는 예외입니다. MacBook도 이런 가벼운 게임 엔진에는 충분합니다.&lt;/p&gt;
&lt;h2 id=&quot;소프트웨어&quot;&gt;소프트웨어&lt;/h2&gt;
&lt;h3 id=&quot;docker&quot;&gt;Docker&lt;/h3&gt;
&lt;p&gt;Docker 사용은 쉽습니다. macOS용 Docker Desktop을 .dmg로 받을 수 있습니다. 더블클릭해서 설치하면 바로 사용할 수 있습니다.&lt;/p&gt;
&lt;h3 id=&quot;로컬-postgres&quot;&gt;로컬 Postgres&lt;/h3&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://postgresapp.com/&quot;&gt;Postgres.app&lt;/a&gt;도 마찬가지로 아주 쉽습니다.&lt;/p&gt;
&lt;h3 id=&quot;시뮬레이터&quot;&gt;시뮬레이터&lt;/h3&gt;
&lt;p&gt;프로그래밍 프레임워크에 관계없이 MacBook에서 iPhone 또는 iPad 시뮬레이터를 사용할 수 있습니다. Flutter, React Native, SwiftUI 등 무엇이든 MacBook에서 작동합니다. UTM에 Linux를 설치해 Mac에서 Ubuntu를 실행할 수도 있지만, 그 반대는 안 됩니다.&lt;/p&gt;
&lt;h3 id=&quot;코드-편집기&quot;&gt;코드 편집기&lt;/h3&gt;
&lt;p&gt;요즘은 모든 IDE가 모든 플랫폼에 있습니다.&lt;/p&gt;
&lt;h2 id=&quot;최종-결론&quot;&gt;최종 결론&lt;/h2&gt;
&lt;p&gt;그래서 스스로에게 물어야 할 핵심 질문은 이것입니다. Apple 기기용 모바일 앱을 만들고 싶은가, 아닌가?&lt;/p&gt;
&lt;p&gt;크로스 플랫폼 프레임워크를 사용하더라도 완전한 Apple 앱 개발 경험을 얻으려면 MacBook을 구해야 합니다. 그것이 삶을 훨씬 편하게 만들어 줄 것입니다.&lt;/p&gt;
&lt;p&gt;저는 Apple의 폐쇄적인 생태계와 추가 저장 공간에 대한 불필요한 가격 인상이 마음에 들지 않지만, 그들은 훌륭한 제품을 만듭니다.&lt;/p&gt;
&lt;p&gt;제가 제안하는 것은, 지금 Windows PC만 있다면 Ubuntu나 Linux Mint를 설치해 마음에 드는지 확인해 보라는 것입니다. 마음에 든다면 정말로 Mac이 필요해질 때까지 계속 사용하세요.&lt;/p&gt;
&lt;p&gt;저는 또한 정말로 원하는 컴퓨터를 구하는 것을 지지합니다. 기기 자체가 사용하기 즐겁다는 이유만으로도 일하고 싶어질 수 있기 때문입니다.&lt;/p&gt;
&lt;h4 id=&quot;참고-사항&quot;&gt;참고 사항&lt;/h4&gt;
&lt;h5 id=&quot;apple-앱에-대해-더-알아보기&quot;&gt;Apple 앱에 대해 더 알아보기&lt;/h5&gt;
&lt;p&gt;결정하기 전에 기억해야 할 몇 가지 사항:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;최신 OS를 실행하는 MacBook만 최신 Apple API로 개발할 수 있습니다.
&lt;ul&gt;
&lt;li&gt;예를 들어 AI 같은 것은 Apple Silicon Mac에서만 개발할 수 있습니다.&lt;/li&gt;
&lt;li&gt;Vision OS는 Apple Silicon Mac에서만 개발할 수 있습니다.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;머신러닝은 시뮬레이터가 아닌 실제 기기에서만 실행할 수 있습니다. - 기기 내 머신러닝 모델을 구현했다면 앱을 테스트하려면 iPhone/iPad가 필요합니다. iPhone 시뮬레이터에서 실행하려고 하면 그냥 충돌할 것입니다.&lt;/li&gt;
&lt;/ul&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/e28a3b16-2426-46b5-b1ac-ea3105443786"/><enclosure url="https://cms.hongct.com/assets/e28a3b16-2426-46b5-b1ac-ea3105443786" length="165412" type="image/jpeg"/></item><item><title>FullyQualifiedErrorId : UnauthorizedAccess - PowerShell 오류 해결 방법</title><link>https://hongcheung.com/ko/post/how-to-fix-fullyqualifiederrorid-unauthorizedaccess-a-powershell-error/</link><guid isPermaLink="true">https://hongcheung.com/ko/post/how-to-fix-fullyqualifiederrorid-unauthorizedaccess-a-powershell-error/</guid><description>Windows PowerShell에서 스크립트를 실행하려 할 때 발생하는 이 오류에 대한 해결 방법입니다.</description><pubDate>Wed, 03 Jan 2024 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/5a7f8c11-e4d3-42cf-a936-a2dc5c59c90c&quot; alt=&quot;FullyQualifiedErrorId : UnauthorizedAccess - PowerShell 오류 해결 방법&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;문제&quot;&gt;문제&lt;/h2&gt;
&lt;p&gt;Windows 11의 VSCode에서 터미널을 사용해 express 스크립트를 실행하려 했더니, 다음과 같은 PowerShell 오류가 발생했습니다:&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;style&gt;.expressive-code{font-family:var(--ec-uiFontFml);font-size:var(--ec-uiFontSize);font-weight:var(--ec-uiFontWg);line-height:var(--ec-uiLineHt);text-size-adjust:none;-webkit-text-size-adjust:none}.expressive-code *:not(:is(svg, svg *)){all:revert;box-sizing:border-box}.expressive-code pre{display:flex;margin:0;padding:0;border:var(--ec-brdWd) solid var(--ec-brdCol);border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));background:var(--ec-codeBg)}.expressive-code pre:focus-visible{outline:3px solid var(--ec-focusBrd);outline-offset:-3px}.expressive-code pre &gt; code{all:unset;display:block;flex:1 0 100%;padding:var(--ec-codePadBlk) 0;color:var(--ec-codeFg);font-family:var(--ec-codeFontFml);font-size:var(--ec-codeFontSize);font-weight:var(--ec-codeFontWg);line-height:var(--ec-codeLineHt)}.expressive-code pre{overflow-x:auto}.expressive-code pre.wrap .ec-line .code{white-space:pre-wrap;overflow-wrap:break-word;min-width:min(20ch, var(--ecMaxLine, 20ch))}.expressive-code pre.wrap .ec-line .code span.indent{white-space:pre}.expressive-code pre::-webkit-scrollbar,.expressive-code pre::-webkit-scrollbar-track{background-color:inherit;border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));border-top-left-radius:0;border-top-right-radius:0}.expressive-code pre::-webkit-scrollbar-thumb{background-color:var(--ec-sbThumbCol);border:4px solid transparent;background-clip:content-box;border-radius:10px}.expressive-code pre::-webkit-scrollbar-thumb:hover{background-color:var(--ec-sbThumbHoverCol)}.expressive-code pre::-webkit-scrollbar-corner{background:transparent}.expressive-code .ec-line{direction:ltr;unicode-bidi:isolate;display:grid;grid-template-areas:&apos;gutter code&apos;;grid-template-columns:auto 1fr;position:relative}.expressive-code .ec-line .gutter{grid-area:gutter;color:var(--ec-gtrFg)}.expressive-code .ec-line .gutter &gt; *{pointer-events:none;user-select:none;-webkit-user-select:none}.expressive-code .ec-line .gutter ~ .code{--ecLineBrdCol:var(--ec-gtrBrdCol)}.expressive-code .ec-line.highlight .gutter{color:var(--ec-gtrHlFg)}.expressive-code .ec-line .code{grid-area:code;position:relative;box-sizing:content-box;padding-inline-start:calc(var(--ecIndent, 0ch) + var(--ec-codePadInl) - var(--ecGtrBrdWd));padding-inline-end:var(--ec-codePadInl);text-indent:calc(var(--ecIndent, 0ch) * -1)}.expressive-code .ec-line .code::before,.expressive-code .ec-line .code::after,.expressive-code .ec-line .code :where(*){text-indent:0}.expressive-code .ec-line .code{--ecGtrBrdWd:var(--ec-gtrBrdWd);border-inline-start:var(--ecGtrBrdWd) solid var(--ecLineBrdCol, transparent)}.expressive-code .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.expressive-code .ec-line.mark{--tmLineBgCol:var(--ec-tm-markBg)}.expressive-code .ec-line.mark .code{--ecLineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line.ins{--tmLineBgCol:var(--ec-tm-insBg);--tmLabel:var(--ec-tm-insDiffIndContent)}.expressive-code .ec-line.ins .code{--ecLineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line.ins .code::before{color:var(--ec-tm-insDiffIndCol)}.expressive-code .ec-line.del{--tmLineBgCol:var(--ec-tm-delBg);--tmLabel:var(--ec-tm-delDiffIndContent)}.expressive-code .ec-line.del .code{--ecLineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line.del .code::before{color:var(--ec-tm-delDiffIndCol)}.expressive-code .ec-line.mark,.expressive-code .ec-line.ins,.expressive-code .ec-line.del{background:var(--tmLineBgCol)}.expressive-code .ec-line.mark .code,.expressive-code .ec-line.ins .code,.expressive-code .ec-line.del .code{--ecGtrBrdWd:var(--ec-tm-lineMarkerAccentWd)}.expressive-code .ec-line.mark .code::before,.expressive-code .ec-line.ins .code::before,.expressive-code .ec-line.del .code::before{display:block;position:absolute;left:0;box-sizing:border-box;content:var(--tmLabel, &apos; &apos;);padding-inline-start:var(--ec-tm-lineDiffIndMargLeft);text-align:center;white-space:pre}.expressive-code .ec-line.mark.tm-label .code::before,.expressive-code .ec-line.ins.tm-label .code::before,.expressive-code .ec-line.del.tm-label .code::before{background:var(--ecLineBrdCol);padding:0 calc(var(--ec-tm-lineMarkerLabelPadInl) + var(--ec-tm-lineMarkerAccentWd)) 0 var(--ec-tm-lineMarkerLabelPadInl);color:var(--ec-tm-lineMarkerLabelCol)}.expressive-code .ec-line mark{--tmInlineBgCol:var(--ec-tm-markBg);--tmInlineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line ins{--tmInlineBgCol:var(--ec-tm-insBg);--tmInlineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line del{--tmInlineBgCol:var(--ec-tm-delBg);--tmInlineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line mark,.expressive-code .ec-line ins,.expressive-code .ec-line del{all:unset;display:inline-block;position:relative;--tmBrdL:var(--ec-tm-inlMarkerBrdWd);--tmBrdR:var(--ec-tm-inlMarkerBrdWd);--tmRadL:var(--ec-tm-inlMarkerBrdRad);--tmRadR:var(--ec-tm-inlMarkerBrdRad);margin-inline:0.025rem;padding-inline:var(--ec-tm-inlMarkerPad);border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);background:var(--tmInlineBgCol);background-clip:padding-box}.expressive-code .ec-line mark.open-start,.expressive-code .ec-line ins.open-start,.expressive-code .ec-line del.open-start{margin-inline-start:0;padding-inline-start:0;--tmBrdL:0px;--tmRadL:0}.expressive-code .ec-line mark.open-end,.expressive-code .ec-line ins.open-end,.expressive-code .ec-line del.open-end{margin-inline-end:0;padding-inline-end:0;--tmBrdR:0px;--tmRadR:0}.expressive-code .ec-line mark::before,.expressive-code .ec-line ins::before,.expressive-code .ec-line del::before{content:&apos;&apos;;position:absolute;pointer-events:none;display:inline-block;inset:0;border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);border:var(--ec-tm-inlMarkerBrdWd) solid var(--tmInlineBrdCol);border-inline-width:var(--tmBrdL) var(--tmBrdR)}.expressive-code .frame{all:unset;position:relative;display:block;--header-border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));--tab-border-radius:calc(var(--ec-frm-edTabBrdRad) + var(--ec-brdWd));--button-spacing:0.4rem;--code-background:var(--ec-frm-edBg);border-radius:var(--header-border-radius);box-shadow:var(--ec-frm-frameBoxShdCssVal)}.expressive-code .frame .header{display:none;z-index:1;position:relative;border-radius:var(--header-border-radius) var(--header-border-radius) 0 0}.expressive-code .frame.has-title pre,.expressive-code .frame.has-title code,.expressive-code .frame.is-terminal pre,.expressive-code .frame.is-terminal code{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.expressive-code .frame .title:empty:before{content:&apos;\a0&apos;}.expressive-code .frame.has-title:not(.is-terminal){--button-spacing:calc(1.9rem + 2 * (var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)))}.expressive-code .frame.has-title:not(.is-terminal) .title{position:relative;color:var(--ec-frm-edActTabFg);background:var(--ec-frm-edActTabBg);background-clip:padding-box;margin-block-start:var(--ec-frm-edTabsMargBlkStart);padding:calc(var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)) var(--ec-uiPadInl);border:var(--ec-brdWd) solid var(--ec-frm-edActTabBrdCol);border-radius:var(--tab-border-radius) var(--tab-border-radius) 0 0;border-bottom:none;overflow:hidden}.expressive-code .frame.has-title:not(.is-terminal) .title::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-top:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndTopCol);border-bottom:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndBtmCol)}.expressive-code .frame.has-title:not(.is-terminal) .header{display:flex;background:linear-gradient(to top, var(--ec-frm-edTabBarBrdBtmCol) var(--ec-brdWd), transparent var(--ec-brdWd)),linear-gradient(var(--ec-frm-edTabBarBg), var(--ec-frm-edTabBarBg));background-repeat:no-repeat;padding-inline-start:var(--ec-frm-edTabsMargInlStart)}.expressive-code .frame.has-title:not(.is-terminal) .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border:var(--ec-brdWd) solid var(--ec-frm-edTabBarBrdCol);border-radius:inherit;border-bottom:none}.expressive-code .frame.is-terminal{--button-spacing:calc(1.9rem + var(--ec-brdWd) + 2 * var(--ec-uiPadBlk));--code-background:var(--ec-frm-trmBg)}.expressive-code .frame.is-terminal .header{display:flex;align-items:center;justify-content:center;padding-block:var(--ec-uiPadBlk);padding-block-end:calc(var(--ec-uiPadBlk) + var(--ec-brdWd));position:relative;font-weight:500;letter-spacing:0.025ch;color:var(--ec-frm-trmTtbFg);background:var(--ec-frm-trmTtbBg);border:var(--ec-brdWd) solid var(--ec-brdCol);border-bottom:none}.expressive-code .frame.is-terminal .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;left:var(--ec-uiPadInl);width:2.1rem;height:0.56rem;line-height:0;background-color:var(--ec-frm-trmTtbDotsFg);opacity:var(--ec-frm-trmTtbDotsOpa);-webkit-mask-image:var(--ec-frm-trmIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-trmIcon);mask-repeat:no-repeat}.expressive-code .frame.is-terminal .header::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-bottom:var(--ec-brdWd) solid var(--ec-frm-trmTtbBrdBtmCol)}.expressive-code .frame pre{background:var(--code-background)}.expressive-code .copy{display:flex;gap:0.25rem;flex-direction:row;position:absolute;inset-block-start:calc(var(--ec-brdWd) + var(--button-spacing));inset-inline-end:calc(var(--ec-brdWd) + var(--ec-uiPadInl) / 2)}@media (scripting: none){.expressive-code .copy{display:none}}.expressive-code .copy{direction:ltr;unicode-bidi:isolate}.expressive-code .copy button{position:relative;align-self:flex-end;margin:0;padding:0;border:none;border-radius:0.2rem;z-index:1;cursor:pointer;transition-property:opacity, background, border-color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94);width:2.5rem;height:2.5rem;background:var(--code-background);opacity:0.75}.expressive-code .copy button div{position:absolute;inset:0;border-radius:inherit;background:var(--ec-frm-inlBtnBg);opacity:var(--ec-frm-inlBtnBgIdleOpa);transition-property:inherit;transition-duration:inherit;transition-timing-function:inherit}.expressive-code .copy button::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-radius:inherit;border:var(--ec-brdWd) solid var(--ec-frm-inlBtnBrd);opacity:var(--ec-frm-inlBtnBrdOpa)}.expressive-code .copy button::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-frm-inlBtnFg);-webkit-mask-image:var(--ec-frm-copyIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-copyIcon);mask-repeat:no-repeat;margin:0.475rem;line-height:0}.expressive-code .copy button:hover,.expressive-code .copy button:focus:focus-visible{opacity:1}.expressive-code .copy button:hover div,.expressive-code .copy button:focus:focus-visible div{opacity:var(--ec-frm-inlBtnBgHoverOrFocusOpa)}.expressive-code .copy button:active{opacity:1}.expressive-code .copy button:active div{opacity:var(--ec-frm-inlBtnBgActOpa)}.expressive-code .copy .feedback{--tooltip-arrow-size:0.35rem;--tooltip-bg:var(--ec-frm-tooltipSuccessBg);color:var(--ec-frm-tooltipSuccessFg);pointer-events:none;user-select:none;-webkit-user-select:none;position:relative;align-self:center;background-color:var(--tooltip-bg);z-index:99;padding:0.125rem 0.75rem;border-radius:0.2rem;margin-inline-end:var(--tooltip-arrow-size);opacity:0;transition-property:opacity, transform;transition-duration:0.2s;transition-timing-function:ease-in-out;transform:translate3d(0, 0.25rem, 0)}.expressive-code .copy .feedback::after{content:&apos;&apos;;position:absolute;pointer-events:none;top:calc(50% - var(--tooltip-arrow-size));inset-inline-end:calc(-2 * (var(--tooltip-arrow-size) - 0.5px));border:var(--tooltip-arrow-size) solid transparent;border-inline-start-color:var(--tooltip-bg)}.expressive-code .copy .feedback.show{opacity:1;transform:translate3d(0, 0, 0)}@media (hover: hover){.expressive-code{}.expressive-code .copy button{opacity:0;width:2rem;height:2rem}.expressive-code .frame:hover .copy button:not(:hover),.expressive-code .frame:focus-within :focus-visible ~ .copy button:not(:hover),.expressive-code .frame .copy .feedback.show ~ button:not(:hover){opacity:0.75}}.expressive-code :nth-child(1 of .ec-line) .code{padding-inline-end:calc(2rem + var(--ec-codePadInl))}.expressive-code .gutter .ln{display:inline-flex;justify-content:flex-end;align-items:flex-start;box-sizing:content-box;min-width:var(--lnWidth, 2ch);padding-inline:2ch;color:var(--ec-lineNumbers-fg)}.highlight .expressive-code .gutter .ln{color:var(--ec-lineNumbers-hlFg)}.expressive-code .ec-section{position:relative}.expressive-code .ec-section summary{position:relative;font-family:var(--ec-cs-closedFontFml);font-size:var(--ec-cs-closedFontSize);line-height:var(--ec-cs-closedLineHt);user-select:none;-webkit-user-select:none;cursor:pointer;color:var(--ec-cs-closedTextCol);background-color:var(--ec-cs-closedBgCol);--border-color:var(--ec-cs-closedBrdCol);--border-width:var(--ec-cs-closedBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);margin:var(--ec-cs-closedMarg);padding:0}.expressive-code .ec-section summary::marker{display:inline-block;content:&quot;&quot;;width:16px;height:16px}.expressive-code .ec-section summary::-webkit-details-marker{display:none}.expressive-code .ec-section summary :is(.expand, .collapse){position:relative;display:inline-block;width:16px;height:16px;vertical-align:text-bottom;opacity:0.75}.expressive-code .ec-section summary :is(.expand, .collapse)::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-cs-closedTextCol);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;line-height:0}.expressive-code .ec-section summary .expand::after{-webkit-mask-image:var(--ec-cs-expandIcon);mask-image:var(--ec-cs-expandIcon);-webkit-print-color-adjust:exact;print-color-adjust:exact}.expressive-code .ec-section summary .collapse{display:none}.expressive-code .ec-section summary .collapse::after{-webkit-mask-image:var(--ec-cs-collapseIcon);mask-image:var(--ec-cs-collapseIcon)}.expressive-code .ec-section summary .text{margin-left:1em}.expressive-code .ec-section summary .ec-line .code{padding-block:var(--ec-cs-closedPadBlk);text-indent:0}.expressive-code .ec-section[open],.expressive-code .ec-section details[open] + .content-lines{--border-color:var(--ec-cs-openBrdCol);--border-width:var(--ec-cs-openBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);padding-inline:var(--ec-cs-openPad);margin-inline:var(--ec-cs-openMarg)}.expressive-code .ec-section.github[open] summary{display:none}.expressive-code .ec-section.github[open]{background-color:var(--ec-cs-openBgCol)}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end){display:flex;flex-direction:column}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) .content-lines{display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] .collapse{display:inline-block}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] :is(.expand, .text){display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] + .content-lines{display:block;background-color:var(--ec-cs-openBgColCollapsible)}@media print{.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open]{display:none}}.expressive-code .ec-section.collapsible-end{flex-direction:column-reverse}:root,:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;]{--ec-brdRad:0.3rem;--ec-brdWd:1.5px;--ec-brdCol:#1b1f23;--ec-codeFontFml:jetbrains-mono;--ec-codeFontSize:0.85rem;--ec-codeFontWg:400;--ec-codeLineHt:1.65;--ec-codePadBlk:1rem;--ec-codePadInl:1.35rem;--ec-codeBg:#24292e;--ec-codeFg:#e1e4e8;--ec-codeSelBg:#3392ff44;--ec-gtrFg:#727980;--ec-gtrBrdCol:#72798033;--ec-gtrBrdWd:1.5px;--ec-gtrHlFg:#e1e4e896;--ec-uiFontFml:jetbrains-mono;--ec-uiFontSize:0.9rem;--ec-uiFontWg:400;--ec-uiLineHt:1.65;--ec-uiPadBlk:0.25rem;--ec-uiPadInl:1rem;--ec-uiSelBg:#39414a;--ec-uiSelFg:#e1e4e8;--ec-focusBrd:#005cc5;--ec-sbThumbCol:#6a737d33;--ec-sbThumbHoverCol:#6a737dd1;--ec-tm-lineMarkerAccentMarg:0rem;--ec-tm-lineMarkerAccentWd:0.15rem;--ec-tm-lineMarkerLabelPadInl:0.2rem;--ec-tm-lineMarkerLabelCol:white;--ec-tm-lineDiffIndMargLeft:0.3rem;--ec-tm-inlMarkerBrdWd:1.5px;--ec-tm-inlMarkerBrdRad:0.2rem;--ec-tm-inlMarkerPad:0.15rem;--ec-tm-insDiffIndContent:&apos;+&apos;;--ec-tm-delDiffIndContent:&apos;-&apos;;--ec-tm-markBg:#264a8980;--ec-tm-markBrdCol:#5570b3d0;--ec-tm-insBg:#26561c80;--ec-tm-insBrdCol:#4e7e41d0;--ec-tm-insDiffIndCol:#7eb070d0;--ec-tm-delBg:#81322b80;--ec-tm-delBrdCol:#ae594fd0;--ec-tm-delDiffIndCol:#e68a7ed0;--ec-frm-shdCol:#0000005b;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #0000005b;--ec-frm-edActTabBg:#24292e;--ec-frm-edActTabFg:#e1e4e8;--ec-frm-edActTabBrdCol:transparent;--ec-frm-edActTabIndHt:1.5px;--ec-frm-edActTabIndTopCol:#f9826c;--ec-frm-edActTabIndBtmCol:#24292e;--ec-frm-edTabsMargInlStart:0;--ec-frm-edTabsMargBlkStart:0;--ec-frm-edTabBrdRad:0.3rem;--ec-frm-edTabBarBg:#1f2428;--ec-frm-edTabBarBrdCol:#1b1f23;--ec-frm-edTabBarBrdBtmCol:#1b1f23;--ec-frm-edBg:#24292e;--ec-frm-trmTtbFg:#e1e4e8;--ec-frm-trmTtbDotsFg:#e1e4e8;--ec-frm-trmTtbDotsOpa:0.15;--ec-frm-trmTtbBg:#24292e;--ec-frm-trmTtbBrdBtmCol:#1b1f23;--ec-frm-trmBg:#1f2428;--ec-frm-inlBtnFg:#e1e4e8;--ec-frm-inlBtnBg:#e1e4e8;--ec-frm-inlBtnBgIdleOpa:0;--ec-frm-inlBtnBgHoverOrFocusOpa:0.2;--ec-frm-inlBtnBgActOpa:0.3;--ec-frm-inlBtnBrd:#e1e4e8;--ec-frm-inlBtnBrdOpa:0.4;--ec-frm-tooltipSuccessBg:#228739;--ec-frm-tooltipSuccessFg:white;--ec-frm-copyIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2024%2024&apos;%20fill%3D&apos;none&apos;%20stroke%3D&apos;black&apos;%20stroke-width%3D&apos;1.75&apos;%3E%3Cpath%20d%3D&apos;M3%2019a2%202%200%200%201-1-2V2a2%202%200%200%201%201-1h13a2%202%200%200%201%202%201&apos;%2F%3E%3Crect%20x%3D&apos;6&apos;%20y%3D&apos;5&apos;%20width%3D&apos;16&apos;%20height%3D&apos;18&apos;%20rx%3D&apos;1.5&apos;%20ry%3D&apos;1.5&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-frm-trmIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2060%2016&apos;%20preserveAspectRatio%3D&apos;xMidYMid%20meet&apos;%3E%3Ccircle%20cx%3D&apos;8&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;30&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;52&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-lineNumbers-fg:inherit;--ec-lineNumbers-hlFg:inherit;--ec-cs-closedBrdWd:0px;--ec-cs-closedPadBlk:4px;--ec-cs-closedMarg:0;--ec-cs-closedFontFml:inherit;--ec-cs-closedFontSize:inherit;--ec-cs-closedLineHt:inherit;--ec-cs-closedTextCol:#e1e4e8;--ec-cs-closedBgCol:#58606933;--ec-cs-closedBrdCol:#58606980;--ec-cs-openBrdWd:1px;--ec-cs-openPad:0;--ec-cs-openMarg:0;--ec-cs-openBgCol:transparent;--ec-cs-openBgColCollapsible:#5860691a;--ec-cs-openBrdCol:transparent;--ec-cs-expandIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;m8.177.677%202.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25a.75.75%200%200%201-1.5%200V4H5.104a.25.25%200%200%201-.177-.427L7.823.677a.25.25%200%200%201%20.354%200ZM7.25%2010.75a.75.75%200%200%201%201.5%200V12h2.146a.25.25%200%200%201%20.177.427l-2.896%202.896a.25.25%200%200%201-.354%200l-2.896-2.896A.25.25%200%200%201%205.104%2012H7.25v-1.25Zm-5-2a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-cs-collapseIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;M10.896%202H8.75V.75a.75.75%200%200%200-1.5%200V2H5.104a.25.25%200%200%200-.177.427l2.896%202.896a.25.25%200%200%200%20.354%200l2.896-2.896A.25.25%200%200%200%2010.896%202ZM8.75%2015.25a.75.75%200%200%201-1.5%200V14H5.104a.25.25%200%200%201-.177-.427l2.896-2.896a.25.25%200%200%201%20.354%200l2.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25Zm-6.5-6.5a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;)}.expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])),:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--0, inherit);background-color:var(--0bg, transparent);font-style:var(--0fs, inherit);font-weight:var(--0fw, inherit);text-decoration:var(--0td, inherit)}@media (prefers-color-scheme: light){:root:not([data-theme=&quot;dark&quot;]){--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root:not([data-theme=&quot;dark&quot;]) .expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]),.expressive-code[data-theme=&quot;light&quot;]{--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]) .ec-line :where(span[style^=&apos;--&apos;]:not([class])),.expressive-code[data-theme=&quot;light&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}&lt;/style&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function a(e){if(!e)return;let t=e.getAttribute(&quot;tabindex&quot;)!==null,r=e.scrollWidth&gt;e.clientWidth;r&amp;&amp;!t?(e.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),e.setAttribute(&quot;role&quot;,&quot;region&quot;)):!r&amp;&amp;t&amp;&amp;(e.removeAttribute(&quot;tabindex&quot;),e.removeAttribute(&quot;role&quot;))}var u=window.requestIdleCallback||(e=&gt;setTimeout(e,1)),s=window.cancelIdleCallback||clearTimeout;function l(e){let t=new Set,r,n;return new ResizeObserver(c=&gt;{c.forEach(o=&gt;t.add(o.target)),r&amp;&amp;clearTimeout(r),n&amp;&amp;s(n),r=setTimeout(()=&gt;{n&amp;&amp;s(n),n=u(()=&gt;{t.forEach(o=&gt;e(o)),t.clear()})},250)})}function i(e,t){e.querySelectorAll?.(&quot;.expressive-code pre &gt; code&quot;).forEach(r=&gt;{let n=r.parentElement;n&amp;&amp;t.observe(n)})}var d=l(a);i(document,d);var b=new MutationObserver(e=&gt;e.forEach(t=&gt;t.addedNodes.forEach(r=&gt;{i(r,d)})));b.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document,d)});})();}catch(e){console.error(&quot;[EC] tabindex-js-module failed:&quot;,e)}&lt;/script&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function l(o){let e=document.createElement(&quot;pre&quot;);Object.assign(e.style,{opacity:&quot;0&quot;,pointerEvents:&quot;none&quot;,position:&quot;absolute&quot;,overflow:&quot;hidden&quot;,left:&quot;0&quot;,top:&quot;0&quot;,width:&quot;20px&quot;,height:&quot;20px&quot;,webkitUserSelect:&quot;auto&quot;,userSelect:&quot;all&quot;}),e.ariaHidden=&quot;true&quot;,e.textContent=o,document.body.appendChild(e);let a=document.createRange();a.selectNode(e);let n=getSelection();if(!n)return!1;n.removeAllRanges(),n.addRange(a);let r=!1;try{r=document.execCommand(&quot;copy&quot;)}finally{n.removeAllRanges(),document.body.removeChild(e)}return r}async function u(o){let e=o.currentTarget,a=e.dataset,n=!1,r=a.code.replace(/\u007f/g,`
`);try{await navigator.clipboard.writeText(r),n=!0}catch{n=l(r)}if(!n||e.parentNode?.querySelector(&quot;.feedback&quot;))return;let c=e.parentNode?.querySelector(&quot;[aria-live]&quot;),t=document.createElement(&quot;div&quot;);t.classList.add(&quot;feedback&quot;),t.append(a.copied),c.append(t),t.offsetWidth,requestAnimationFrame(()=&gt;t?.classList.add(&quot;show&quot;));let s=()=&gt;!t||t.classList.remove(&quot;show&quot;),d=()=&gt;{!t||parseFloat(getComputedStyle(t).opacity)&gt;0||(t.remove(),t=void 0)};setTimeout(s,1500),setTimeout(d,2500),e.addEventListener(&quot;blur&quot;,s),t.addEventListener(&quot;transitioncancel&quot;,d),t.addEventListener(&quot;transitionend&quot;,d)}function i(o){o.querySelectorAll?.(&quot;.expressive-code .copy button&quot;).forEach(e=&gt;e.addEventListener(&quot;click&quot;,u))}i(document);var m=new MutationObserver(o=&gt;o.forEach(e=&gt;e.addedNodes.forEach(a=&gt;{i(a)})));m.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document)});})();}catch(e){console.error(&quot;[EC] copy-js-module failed:&quot;,e)}&lt;/script&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;cannot be loaded because running scripts is disabled on this system.For more information, see&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;about_Execution_Policies at https: /go.microsoft.com/fwlink /? LinkID = 135170.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;At line: 1 char: 1&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;4&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;  &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;+ nodemon server&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;5&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;+ ~~~~~~~&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;6&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;    &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;+ CategoryInfo          : SecurityError: (:)[], PSSecurityException&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;7&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;      &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;+ FullyQualifiedErrorId : UnauthorizedAccess&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;cannot be loaded because running scripts is disabled on this system.For more information, seeabout_Execution_Policies at https: /go.microsoft.com/fwlink /? LinkID = 135170.At line: 1 char: 1  + nodemon server    + ~~~~~~~    + CategoryInfo          : SecurityError: (:)[], PSSecurityException      + FullyQualifiedErrorId : UnauthorizedAccess&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;해당 링크는 저에게는 작동하지 않았습니다.&lt;/p&gt;
&lt;p&gt;다행히도 간단한 해결 방법이 있습니다.&lt;/p&gt;
&lt;h2 id=&quot;해결-방법&quot;&gt;해결 방법&lt;/h2&gt;
&lt;p&gt;설정 &gt; 시스템 &gt; 개발자용으로 이동합니다.&lt;/p&gt;
&lt;p&gt;PowerShell 항목을 찾은 다음, 이 옵션을 켭니다:&lt;/p&gt;
&lt;p&gt;실행 정책 변경. -&gt; 켜기&lt;/p&gt;
&lt;p&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/dccfefa4-72b7-4ebf-9224-e1cf72e57705&quot; alt=&quot;powershell-changeExecutionPolicy&quot; title=&quot;이 옵션을 켜세요&quot;&gt;&lt;/p&gt;
&lt;p&gt;이제 스크립트를 다시 실행하면 정상적으로 작동할 것입니다. 처음 실행할 때는 실행 권한을 요청하는 메시지가 표시될 수 있습니다.&lt;/p&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/5a7f8c11-e4d3-42cf-a936-a2dc5c59c90c"/><enclosure url="https://cms.hongct.com/assets/5a7f8c11-e4d3-42cf-a936-a2dc5c59c90c" length="8065" type="image/png"/></item><item><title>헤드리스 CMS VS 전통적인 CMS</title><link>https://hongcheung.com/ko/post/headless-cms-vs-traditional-cms/</link><guid isPermaLink="true">https://hongcheung.com/ko/post/headless-cms-vs-traditional-cms/</guid><description>헤드리스 CMS와 전통적인 CMS의 차이</description><pubDate>Mon, 01 Jan 2024 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/d3c89c82-a706-4916-91af-a64c931bf57d&quot; alt=&quot;헤드리스 CMS VS 전통적인 CMS&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;cms란-무엇인가요&quot;&gt;CMS란 무엇인가요?&lt;/h2&gt;
&lt;p&gt;WordPress, Medium, Blogspot, Ghost 등이 아닌 다른 것을 원하시거나, 다른 블로그 플랫폼을 원하시거나, 아니면 그냥 더 알고 싶으신가요? 그렇다면 CMS라는 용어를 알게 되실 겁니다 - 콘텐츠 관리 시스템(Content Management System)이죠.&lt;/p&gt;
&lt;p&gt;CMS가 하는 일은 콘텐츠를 관리할 수 있는 구조적인 방법을 제공하는 것뿐입니다. 수만 개의 블로그 글이 있다고 상상해 보세요. 그것들을 어떻게 잘 정리된 순서로 저장하고 관리할 수 있을까요? 그래야 나중에 효과적으로 편집하고 다시 찾아볼 수 있겠죠.&lt;/p&gt;
&lt;p&gt;관리 기능은 다음과 같습니다:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;작성자 - 작성자가 몇 명인지 관리하고, 그들의 글을 검토하는 등의 작업을 합니다.&lt;/li&gt;
&lt;li&gt;콘텐츠 - 글을 카테고리로 분류하고, 태그 시스템을 추가하고, 테마를 체계적인 순서로 배치할 수 있습니다.&lt;/li&gt;
&lt;li&gt;플러그인 - WordPress에는 SEO 개선부터 구독 섹션 추가까지 다양한 플러그인이 있습니다.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;이러한 기능들은 오래 지속되는 블로그나 웹사이트를 원한다면 거의 필수적입니다. 하지만 단순히 몇 개의 페이지로 구성된 웹사이트를 만드는 것이라면, 정말 필요하지 않습니다.&lt;/p&gt;
&lt;h2 id=&quot;전통적인-cms란-무엇인가요&quot;&gt;전통적인 CMS란 무엇인가요?&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;글이 Markdown으로 저장됩니다&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;전통적인 CMS는 모든 블로그 글을 별도의 파일로 저장하며, 보통 .md 또는 .mdx 확장자를 가집니다. 이는 Markdown 파일의 줄임말입니다. 그래서 다음과 같이 작성할 수 있습니다:&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;style&gt;.expressive-code{font-family:var(--ec-uiFontFml);font-size:var(--ec-uiFontSize);font-weight:var(--ec-uiFontWg);line-height:var(--ec-uiLineHt);text-size-adjust:none;-webkit-text-size-adjust:none}.expressive-code *:not(:is(svg, svg *)){all:revert;box-sizing:border-box}.expressive-code pre{display:flex;margin:0;padding:0;border:var(--ec-brdWd) solid var(--ec-brdCol);border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));background:var(--ec-codeBg)}.expressive-code pre:focus-visible{outline:3px solid var(--ec-focusBrd);outline-offset:-3px}.expressive-code pre &gt; code{all:unset;display:block;flex:1 0 100%;padding:var(--ec-codePadBlk) 0;color:var(--ec-codeFg);font-family:var(--ec-codeFontFml);font-size:var(--ec-codeFontSize);font-weight:var(--ec-codeFontWg);line-height:var(--ec-codeLineHt)}.expressive-code pre{overflow-x:auto}.expressive-code pre.wrap .ec-line .code{white-space:pre-wrap;overflow-wrap:break-word;min-width:min(20ch, var(--ecMaxLine, 20ch))}.expressive-code pre.wrap .ec-line .code span.indent{white-space:pre}.expressive-code pre::-webkit-scrollbar,.expressive-code pre::-webkit-scrollbar-track{background-color:inherit;border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));border-top-left-radius:0;border-top-right-radius:0}.expressive-code pre::-webkit-scrollbar-thumb{background-color:var(--ec-sbThumbCol);border:4px solid transparent;background-clip:content-box;border-radius:10px}.expressive-code pre::-webkit-scrollbar-thumb:hover{background-color:var(--ec-sbThumbHoverCol)}.expressive-code pre::-webkit-scrollbar-corner{background:transparent}.expressive-code .ec-line{direction:ltr;unicode-bidi:isolate;display:grid;grid-template-areas:&apos;gutter code&apos;;grid-template-columns:auto 1fr;position:relative}.expressive-code .ec-line .gutter{grid-area:gutter;color:var(--ec-gtrFg)}.expressive-code .ec-line .gutter &gt; *{pointer-events:none;user-select:none;-webkit-user-select:none}.expressive-code .ec-line .gutter ~ .code{--ecLineBrdCol:var(--ec-gtrBrdCol)}.expressive-code .ec-line.highlight .gutter{color:var(--ec-gtrHlFg)}.expressive-code .ec-line .code{grid-area:code;position:relative;box-sizing:content-box;padding-inline-start:calc(var(--ecIndent, 0ch) + var(--ec-codePadInl) - var(--ecGtrBrdWd));padding-inline-end:var(--ec-codePadInl);text-indent:calc(var(--ecIndent, 0ch) * -1)}.expressive-code .ec-line .code::before,.expressive-code .ec-line .code::after,.expressive-code .ec-line .code :where(*){text-indent:0}.expressive-code .ec-line .code{--ecGtrBrdWd:var(--ec-gtrBrdWd);border-inline-start:var(--ecGtrBrdWd) solid var(--ecLineBrdCol, transparent)}.expressive-code .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.expressive-code .ec-line.mark{--tmLineBgCol:var(--ec-tm-markBg)}.expressive-code .ec-line.mark .code{--ecLineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line.ins{--tmLineBgCol:var(--ec-tm-insBg);--tmLabel:var(--ec-tm-insDiffIndContent)}.expressive-code .ec-line.ins .code{--ecLineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line.ins .code::before{color:var(--ec-tm-insDiffIndCol)}.expressive-code .ec-line.del{--tmLineBgCol:var(--ec-tm-delBg);--tmLabel:var(--ec-tm-delDiffIndContent)}.expressive-code .ec-line.del .code{--ecLineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line.del .code::before{color:var(--ec-tm-delDiffIndCol)}.expressive-code .ec-line.mark,.expressive-code .ec-line.ins,.expressive-code .ec-line.del{background:var(--tmLineBgCol)}.expressive-code .ec-line.mark .code,.expressive-code .ec-line.ins .code,.expressive-code .ec-line.del .code{--ecGtrBrdWd:var(--ec-tm-lineMarkerAccentWd)}.expressive-code .ec-line.mark .code::before,.expressive-code .ec-line.ins .code::before,.expressive-code .ec-line.del .code::before{display:block;position:absolute;left:0;box-sizing:border-box;content:var(--tmLabel, &apos; &apos;);padding-inline-start:var(--ec-tm-lineDiffIndMargLeft);text-align:center;white-space:pre}.expressive-code .ec-line.mark.tm-label .code::before,.expressive-code .ec-line.ins.tm-label .code::before,.expressive-code .ec-line.del.tm-label .code::before{background:var(--ecLineBrdCol);padding:0 calc(var(--ec-tm-lineMarkerLabelPadInl) + var(--ec-tm-lineMarkerAccentWd)) 0 var(--ec-tm-lineMarkerLabelPadInl);color:var(--ec-tm-lineMarkerLabelCol)}.expressive-code .ec-line mark{--tmInlineBgCol:var(--ec-tm-markBg);--tmInlineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line ins{--tmInlineBgCol:var(--ec-tm-insBg);--tmInlineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line del{--tmInlineBgCol:var(--ec-tm-delBg);--tmInlineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line mark,.expressive-code .ec-line ins,.expressive-code .ec-line del{all:unset;display:inline-block;position:relative;--tmBrdL:var(--ec-tm-inlMarkerBrdWd);--tmBrdR:var(--ec-tm-inlMarkerBrdWd);--tmRadL:var(--ec-tm-inlMarkerBrdRad);--tmRadR:var(--ec-tm-inlMarkerBrdRad);margin-inline:0.025rem;padding-inline:var(--ec-tm-inlMarkerPad);border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);background:var(--tmInlineBgCol);background-clip:padding-box}.expressive-code .ec-line mark.open-start,.expressive-code .ec-line ins.open-start,.expressive-code .ec-line del.open-start{margin-inline-start:0;padding-inline-start:0;--tmBrdL:0px;--tmRadL:0}.expressive-code .ec-line mark.open-end,.expressive-code .ec-line ins.open-end,.expressive-code .ec-line del.open-end{margin-inline-end:0;padding-inline-end:0;--tmBrdR:0px;--tmRadR:0}.expressive-code .ec-line mark::before,.expressive-code .ec-line ins::before,.expressive-code .ec-line del::before{content:&apos;&apos;;position:absolute;pointer-events:none;display:inline-block;inset:0;border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);border:var(--ec-tm-inlMarkerBrdWd) solid var(--tmInlineBrdCol);border-inline-width:var(--tmBrdL) var(--tmBrdR)}.expressive-code .frame{all:unset;position:relative;display:block;--header-border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));--tab-border-radius:calc(var(--ec-frm-edTabBrdRad) + var(--ec-brdWd));--button-spacing:0.4rem;--code-background:var(--ec-frm-edBg);border-radius:var(--header-border-radius);box-shadow:var(--ec-frm-frameBoxShdCssVal)}.expressive-code .frame .header{display:none;z-index:1;position:relative;border-radius:var(--header-border-radius) var(--header-border-radius) 0 0}.expressive-code .frame.has-title pre,.expressive-code .frame.has-title code,.expressive-code .frame.is-terminal pre,.expressive-code .frame.is-terminal code{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.expressive-code .frame .title:empty:before{content:&apos;\a0&apos;}.expressive-code .frame.has-title:not(.is-terminal){--button-spacing:calc(1.9rem + 2 * (var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)))}.expressive-code .frame.has-title:not(.is-terminal) .title{position:relative;color:var(--ec-frm-edActTabFg);background:var(--ec-frm-edActTabBg);background-clip:padding-box;margin-block-start:var(--ec-frm-edTabsMargBlkStart);padding:calc(var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)) var(--ec-uiPadInl);border:var(--ec-brdWd) solid var(--ec-frm-edActTabBrdCol);border-radius:var(--tab-border-radius) var(--tab-border-radius) 0 0;border-bottom:none;overflow:hidden}.expressive-code .frame.has-title:not(.is-terminal) .title::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-top:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndTopCol);border-bottom:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndBtmCol)}.expressive-code .frame.has-title:not(.is-terminal) .header{display:flex;background:linear-gradient(to top, var(--ec-frm-edTabBarBrdBtmCol) var(--ec-brdWd), transparent var(--ec-brdWd)),linear-gradient(var(--ec-frm-edTabBarBg), var(--ec-frm-edTabBarBg));background-repeat:no-repeat;padding-inline-start:var(--ec-frm-edTabsMargInlStart)}.expressive-code .frame.has-title:not(.is-terminal) .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border:var(--ec-brdWd) solid var(--ec-frm-edTabBarBrdCol);border-radius:inherit;border-bottom:none}.expressive-code .frame.is-terminal{--button-spacing:calc(1.9rem + var(--ec-brdWd) + 2 * var(--ec-uiPadBlk));--code-background:var(--ec-frm-trmBg)}.expressive-code .frame.is-terminal .header{display:flex;align-items:center;justify-content:center;padding-block:var(--ec-uiPadBlk);padding-block-end:calc(var(--ec-uiPadBlk) + var(--ec-brdWd));position:relative;font-weight:500;letter-spacing:0.025ch;color:var(--ec-frm-trmTtbFg);background:var(--ec-frm-trmTtbBg);border:var(--ec-brdWd) solid var(--ec-brdCol);border-bottom:none}.expressive-code .frame.is-terminal .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;left:var(--ec-uiPadInl);width:2.1rem;height:0.56rem;line-height:0;background-color:var(--ec-frm-trmTtbDotsFg);opacity:var(--ec-frm-trmTtbDotsOpa);-webkit-mask-image:var(--ec-frm-trmIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-trmIcon);mask-repeat:no-repeat}.expressive-code .frame.is-terminal .header::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-bottom:var(--ec-brdWd) solid var(--ec-frm-trmTtbBrdBtmCol)}.expressive-code .frame pre{background:var(--code-background)}.expressive-code .copy{display:flex;gap:0.25rem;flex-direction:row;position:absolute;inset-block-start:calc(var(--ec-brdWd) + var(--button-spacing));inset-inline-end:calc(var(--ec-brdWd) + var(--ec-uiPadInl) / 2)}@media (scripting: none){.expressive-code .copy{display:none}}.expressive-code .copy{direction:ltr;unicode-bidi:isolate}.expressive-code .copy button{position:relative;align-self:flex-end;margin:0;padding:0;border:none;border-radius:0.2rem;z-index:1;cursor:pointer;transition-property:opacity, background, border-color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94);width:2.5rem;height:2.5rem;background:var(--code-background);opacity:0.75}.expressive-code .copy button div{position:absolute;inset:0;border-radius:inherit;background:var(--ec-frm-inlBtnBg);opacity:var(--ec-frm-inlBtnBgIdleOpa);transition-property:inherit;transition-duration:inherit;transition-timing-function:inherit}.expressive-code .copy button::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-radius:inherit;border:var(--ec-brdWd) solid var(--ec-frm-inlBtnBrd);opacity:var(--ec-frm-inlBtnBrdOpa)}.expressive-code .copy button::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-frm-inlBtnFg);-webkit-mask-image:var(--ec-frm-copyIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-copyIcon);mask-repeat:no-repeat;margin:0.475rem;line-height:0}.expressive-code .copy button:hover,.expressive-code .copy button:focus:focus-visible{opacity:1}.expressive-code .copy button:hover div,.expressive-code .copy button:focus:focus-visible div{opacity:var(--ec-frm-inlBtnBgHoverOrFocusOpa)}.expressive-code .copy button:active{opacity:1}.expressive-code .copy button:active div{opacity:var(--ec-frm-inlBtnBgActOpa)}.expressive-code .copy .feedback{--tooltip-arrow-size:0.35rem;--tooltip-bg:var(--ec-frm-tooltipSuccessBg);color:var(--ec-frm-tooltipSuccessFg);pointer-events:none;user-select:none;-webkit-user-select:none;position:relative;align-self:center;background-color:var(--tooltip-bg);z-index:99;padding:0.125rem 0.75rem;border-radius:0.2rem;margin-inline-end:var(--tooltip-arrow-size);opacity:0;transition-property:opacity, transform;transition-duration:0.2s;transition-timing-function:ease-in-out;transform:translate3d(0, 0.25rem, 0)}.expressive-code .copy .feedback::after{content:&apos;&apos;;position:absolute;pointer-events:none;top:calc(50% - var(--tooltip-arrow-size));inset-inline-end:calc(-2 * (var(--tooltip-arrow-size) - 0.5px));border:var(--tooltip-arrow-size) solid transparent;border-inline-start-color:var(--tooltip-bg)}.expressive-code .copy .feedback.show{opacity:1;transform:translate3d(0, 0, 0)}@media (hover: hover){.expressive-code{}.expressive-code .copy button{opacity:0;width:2rem;height:2rem}.expressive-code .frame:hover .copy button:not(:hover),.expressive-code .frame:focus-within :focus-visible ~ .copy button:not(:hover),.expressive-code .frame .copy .feedback.show ~ button:not(:hover){opacity:0.75}}.expressive-code :nth-child(1 of .ec-line) .code{padding-inline-end:calc(2rem + var(--ec-codePadInl))}.expressive-code .gutter .ln{display:inline-flex;justify-content:flex-end;align-items:flex-start;box-sizing:content-box;min-width:var(--lnWidth, 2ch);padding-inline:2ch;color:var(--ec-lineNumbers-fg)}.highlight .expressive-code .gutter .ln{color:var(--ec-lineNumbers-hlFg)}.expressive-code .ec-section{position:relative}.expressive-code .ec-section summary{position:relative;font-family:var(--ec-cs-closedFontFml);font-size:var(--ec-cs-closedFontSize);line-height:var(--ec-cs-closedLineHt);user-select:none;-webkit-user-select:none;cursor:pointer;color:var(--ec-cs-closedTextCol);background-color:var(--ec-cs-closedBgCol);--border-color:var(--ec-cs-closedBrdCol);--border-width:var(--ec-cs-closedBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);margin:var(--ec-cs-closedMarg);padding:0}.expressive-code .ec-section summary::marker{display:inline-block;content:&quot;&quot;;width:16px;height:16px}.expressive-code .ec-section summary::-webkit-details-marker{display:none}.expressive-code .ec-section summary :is(.expand, .collapse){position:relative;display:inline-block;width:16px;height:16px;vertical-align:text-bottom;opacity:0.75}.expressive-code .ec-section summary :is(.expand, .collapse)::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-cs-closedTextCol);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;line-height:0}.expressive-code .ec-section summary .expand::after{-webkit-mask-image:var(--ec-cs-expandIcon);mask-image:var(--ec-cs-expandIcon);-webkit-print-color-adjust:exact;print-color-adjust:exact}.expressive-code .ec-section summary .collapse{display:none}.expressive-code .ec-section summary .collapse::after{-webkit-mask-image:var(--ec-cs-collapseIcon);mask-image:var(--ec-cs-collapseIcon)}.expressive-code .ec-section summary .text{margin-left:1em}.expressive-code .ec-section summary .ec-line .code{padding-block:var(--ec-cs-closedPadBlk);text-indent:0}.expressive-code .ec-section[open],.expressive-code .ec-section details[open] + .content-lines{--border-color:var(--ec-cs-openBrdCol);--border-width:var(--ec-cs-openBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);padding-inline:var(--ec-cs-openPad);margin-inline:var(--ec-cs-openMarg)}.expressive-code .ec-section.github[open] summary{display:none}.expressive-code .ec-section.github[open]{background-color:var(--ec-cs-openBgCol)}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end){display:flex;flex-direction:column}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) .content-lines{display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] .collapse{display:inline-block}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] :is(.expand, .text){display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] + .content-lines{display:block;background-color:var(--ec-cs-openBgColCollapsible)}@media print{.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open]{display:none}}.expressive-code .ec-section.collapsible-end{flex-direction:column-reverse}:root,:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;]{--ec-brdRad:0.3rem;--ec-brdWd:1.5px;--ec-brdCol:#1b1f23;--ec-codeFontFml:jetbrains-mono;--ec-codeFontSize:0.85rem;--ec-codeFontWg:400;--ec-codeLineHt:1.65;--ec-codePadBlk:1rem;--ec-codePadInl:1.35rem;--ec-codeBg:#24292e;--ec-codeFg:#e1e4e8;--ec-codeSelBg:#3392ff44;--ec-gtrFg:#727980;--ec-gtrBrdCol:#72798033;--ec-gtrBrdWd:1.5px;--ec-gtrHlFg:#e1e4e896;--ec-uiFontFml:jetbrains-mono;--ec-uiFontSize:0.9rem;--ec-uiFontWg:400;--ec-uiLineHt:1.65;--ec-uiPadBlk:0.25rem;--ec-uiPadInl:1rem;--ec-uiSelBg:#39414a;--ec-uiSelFg:#e1e4e8;--ec-focusBrd:#005cc5;--ec-sbThumbCol:#6a737d33;--ec-sbThumbHoverCol:#6a737dd1;--ec-tm-lineMarkerAccentMarg:0rem;--ec-tm-lineMarkerAccentWd:0.15rem;--ec-tm-lineMarkerLabelPadInl:0.2rem;--ec-tm-lineMarkerLabelCol:white;--ec-tm-lineDiffIndMargLeft:0.3rem;--ec-tm-inlMarkerBrdWd:1.5px;--ec-tm-inlMarkerBrdRad:0.2rem;--ec-tm-inlMarkerPad:0.15rem;--ec-tm-insDiffIndContent:&apos;+&apos;;--ec-tm-delDiffIndContent:&apos;-&apos;;--ec-tm-markBg:#264a8980;--ec-tm-markBrdCol:#5570b3d0;--ec-tm-insBg:#26561c80;--ec-tm-insBrdCol:#4e7e41d0;--ec-tm-insDiffIndCol:#7eb070d0;--ec-tm-delBg:#81322b80;--ec-tm-delBrdCol:#ae594fd0;--ec-tm-delDiffIndCol:#e68a7ed0;--ec-frm-shdCol:#0000005b;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #0000005b;--ec-frm-edActTabBg:#24292e;--ec-frm-edActTabFg:#e1e4e8;--ec-frm-edActTabBrdCol:transparent;--ec-frm-edActTabIndHt:1.5px;--ec-frm-edActTabIndTopCol:#f9826c;--ec-frm-edActTabIndBtmCol:#24292e;--ec-frm-edTabsMargInlStart:0;--ec-frm-edTabsMargBlkStart:0;--ec-frm-edTabBrdRad:0.3rem;--ec-frm-edTabBarBg:#1f2428;--ec-frm-edTabBarBrdCol:#1b1f23;--ec-frm-edTabBarBrdBtmCol:#1b1f23;--ec-frm-edBg:#24292e;--ec-frm-trmTtbFg:#e1e4e8;--ec-frm-trmTtbDotsFg:#e1e4e8;--ec-frm-trmTtbDotsOpa:0.15;--ec-frm-trmTtbBg:#24292e;--ec-frm-trmTtbBrdBtmCol:#1b1f23;--ec-frm-trmBg:#1f2428;--ec-frm-inlBtnFg:#e1e4e8;--ec-frm-inlBtnBg:#e1e4e8;--ec-frm-inlBtnBgIdleOpa:0;--ec-frm-inlBtnBgHoverOrFocusOpa:0.2;--ec-frm-inlBtnBgActOpa:0.3;--ec-frm-inlBtnBrd:#e1e4e8;--ec-frm-inlBtnBrdOpa:0.4;--ec-frm-tooltipSuccessBg:#228739;--ec-frm-tooltipSuccessFg:white;--ec-frm-copyIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2024%2024&apos;%20fill%3D&apos;none&apos;%20stroke%3D&apos;black&apos;%20stroke-width%3D&apos;1.75&apos;%3E%3Cpath%20d%3D&apos;M3%2019a2%202%200%200%201-1-2V2a2%202%200%200%201%201-1h13a2%202%200%200%201%202%201&apos;%2F%3E%3Crect%20x%3D&apos;6&apos;%20y%3D&apos;5&apos;%20width%3D&apos;16&apos;%20height%3D&apos;18&apos;%20rx%3D&apos;1.5&apos;%20ry%3D&apos;1.5&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-frm-trmIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2060%2016&apos;%20preserveAspectRatio%3D&apos;xMidYMid%20meet&apos;%3E%3Ccircle%20cx%3D&apos;8&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;30&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;52&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-lineNumbers-fg:inherit;--ec-lineNumbers-hlFg:inherit;--ec-cs-closedBrdWd:0px;--ec-cs-closedPadBlk:4px;--ec-cs-closedMarg:0;--ec-cs-closedFontFml:inherit;--ec-cs-closedFontSize:inherit;--ec-cs-closedLineHt:inherit;--ec-cs-closedTextCol:#e1e4e8;--ec-cs-closedBgCol:#58606933;--ec-cs-closedBrdCol:#58606980;--ec-cs-openBrdWd:1px;--ec-cs-openPad:0;--ec-cs-openMarg:0;--ec-cs-openBgCol:transparent;--ec-cs-openBgColCollapsible:#5860691a;--ec-cs-openBrdCol:transparent;--ec-cs-expandIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;m8.177.677%202.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25a.75.75%200%200%201-1.5%200V4H5.104a.25.25%200%200%201-.177-.427L7.823.677a.25.25%200%200%201%20.354%200ZM7.25%2010.75a.75.75%200%200%201%201.5%200V12h2.146a.25.25%200%200%201%20.177.427l-2.896%202.896a.25.25%200%200%201-.354%200l-2.896-2.896A.25.25%200%200%201%205.104%2012H7.25v-1.25Zm-5-2a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-cs-collapseIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;M10.896%202H8.75V.75a.75.75%200%200%200-1.5%200V2H5.104a.25.25%200%200%200-.177.427l2.896%202.896a.25.25%200%200%200%20.354%200l2.896-2.896A.25.25%200%200%200%2010.896%202ZM8.75%2015.25a.75.75%200%200%201-1.5%200V14H5.104a.25.25%200%200%201-.177-.427l2.896-2.896a.25.25%200%200%201%20.354%200l2.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25Zm-6.5-6.5a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;)}.expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])),:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--0, inherit);background-color:var(--0bg, transparent);font-style:var(--0fs, inherit);font-weight:var(--0fw, inherit);text-decoration:var(--0td, inherit)}@media (prefers-color-scheme: light){:root:not([data-theme=&quot;dark&quot;]){--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root:not([data-theme=&quot;dark&quot;]) .expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]),.expressive-code[data-theme=&quot;light&quot;]{--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]) .ec-line :where(span[style^=&apos;--&apos;]:not([class])),.expressive-code[data-theme=&quot;light&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}&lt;/style&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function a(e){if(!e)return;let t=e.getAttribute(&quot;tabindex&quot;)!==null,r=e.scrollWidth&gt;e.clientWidth;r&amp;&amp;!t?(e.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),e.setAttribute(&quot;role&quot;,&quot;region&quot;)):!r&amp;&amp;t&amp;&amp;(e.removeAttribute(&quot;tabindex&quot;),e.removeAttribute(&quot;role&quot;))}var u=window.requestIdleCallback||(e=&gt;setTimeout(e,1)),s=window.cancelIdleCallback||clearTimeout;function l(e){let t=new Set,r,n;return new ResizeObserver(c=&gt;{c.forEach(o=&gt;t.add(o.target)),r&amp;&amp;clearTimeout(r),n&amp;&amp;s(n),r=setTimeout(()=&gt;{n&amp;&amp;s(n),n=u(()=&gt;{t.forEach(o=&gt;e(o)),t.clear()})},250)})}function i(e,t){e.querySelectorAll?.(&quot;.expressive-code pre &gt; code&quot;).forEach(r=&gt;{let n=r.parentElement;n&amp;&amp;t.observe(n)})}var d=l(a);i(document,d);var b=new MutationObserver(e=&gt;e.forEach(t=&gt;t.addedNodes.forEach(r=&gt;{i(r,d)})));b.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document,d)});})();}catch(e){console.error(&quot;[EC] tabindex-js-module failed:&quot;,e)}&lt;/script&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function l(o){let e=document.createElement(&quot;pre&quot;);Object.assign(e.style,{opacity:&quot;0&quot;,pointerEvents:&quot;none&quot;,position:&quot;absolute&quot;,overflow:&quot;hidden&quot;,left:&quot;0&quot;,top:&quot;0&quot;,width:&quot;20px&quot;,height:&quot;20px&quot;,webkitUserSelect:&quot;auto&quot;,userSelect:&quot;all&quot;}),e.ariaHidden=&quot;true&quot;,e.textContent=o,document.body.appendChild(e);let a=document.createRange();a.selectNode(e);let n=getSelection();if(!n)return!1;n.removeAllRanges(),n.addRange(a);let r=!1;try{r=document.execCommand(&quot;copy&quot;)}finally{n.removeAllRanges(),document.body.removeChild(e)}return r}async function u(o){let e=o.currentTarget,a=e.dataset,n=!1,r=a.code.replace(/\u007f/g,`
`);try{await navigator.clipboard.writeText(r),n=!0}catch{n=l(r)}if(!n||e.parentNode?.querySelector(&quot;.feedback&quot;))return;let c=e.parentNode?.querySelector(&quot;[aria-live]&quot;),t=document.createElement(&quot;div&quot;);t.classList.add(&quot;feedback&quot;),t.append(a.copied),c.append(t),t.offsetWidth,requestAnimationFrame(()=&gt;t?.classList.add(&quot;show&quot;));let s=()=&gt;!t||t.classList.remove(&quot;show&quot;),d=()=&gt;{!t||parseFloat(getComputedStyle(t).opacity)&gt;0||(t.remove(),t=void 0)};setTimeout(s,1500),setTimeout(d,2500),e.addEventListener(&quot;blur&quot;,s),t.addEventListener(&quot;transitioncancel&quot;,d),t.addEventListener(&quot;transitionend&quot;,d)}function i(o){o.querySelectorAll?.(&quot;.expressive-code .copy button&quot;).forEach(e=&gt;e.addEventListener(&quot;click&quot;,u))}i(document);var m=new MutationObserver(o=&gt;o.forEach(e=&gt;e.addedNodes.forEach(a=&gt;{i(a)})));m.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document)});})();}catch(e){console.error(&quot;[EC] copy-js-module failed:&quot;,e)}&lt;/script&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;markdown&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#79B8FF;--0fw:bold;--1:#005CC5;--1fw:bold&quot;&gt;## Happy New Year&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--0fw:bold;--1:#24292E;--1fw:bold&quot;&gt;**Hello**&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; mum.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;## Happy New Year**Hello** mum.&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;위의 입력은 CMS에 의해 변환됩니다: “##를 사용하면 제목 2, **를 사용하면 굵게”로 해석한 다음 HTML로 출력해 줍니다. 따라서 “&amp;#x3C;h2&gt;Happy New Year&amp;#x3C;/h2&gt;&amp;#x3C;p&gt;&amp;#x3C;b&gt;Hello&amp;#x3C;/b&gt; mum&amp;#x3C;/p&gt;“와 같은 코드를 작성할 필요 없이 콘텐츠 작성에만 집중할 수 있습니다.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Markdown에서 게시 URL로&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Markdown 파일은 보통 blog 또는 posts라는 폴더 안에 위치하며, 원하는 방식에 따라 다릅니다. Markdown 파일을 배치하는 방식은 보통 게시 URL에도 반영됩니다. 파일을 root/posts/hello-mum.md에 넣으면, 게시 URL은 example.com/posts/hello-mum처럼 됩니다. 하지만 이는 설정 방식이나 사용하는 CMS에 따라 다릅니다.&lt;/p&gt;
&lt;p&gt;새 글을 원한다면, 새로운 .md 파일을 만들면 됩니다. 파일 이름을 peter-parker.md로 지정하면, URL은 posts/peter-parker로 끝나게 됩니다.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Markdown을 위한 스키마&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;스키마는 CMS를 위해 정의하는 변수들의 집합입니다. 예시 Markdown 파일은 다음과 같습니다:&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;markdown&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;---&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;2&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#85E89D;--1:#1E7734&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&apos;Hello Mum&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;3&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#85E89D;--1:#1E7734&quot;&gt;date&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;--0:#79B8FF;--1:#005CC5&quot;&gt;2023-11-10&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;4&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#85E89D;--1:#1E7734&quot;&gt;tags&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: [&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&apos;Parenting&apos;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&apos;Mum&apos;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&apos;Family&apos;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;5&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#85E89D;--1:#1E7734&quot;&gt;summary&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&apos;Say hi to your mum instead of hello world&apos;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;6&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#85E89D;--1:#1E7734&quot;&gt;image&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;7&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;--0:#85E89D;--1:#1E7734&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;/images/mumSmiling.jpg&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;8&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;indent&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;--0:#85E89D;--1:#1E7734&quot;&gt;alt&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;myMum&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;9&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#85E89D;--1:#1E7734&quot;&gt;authors&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;: [&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&apos;default&apos;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;10&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;---&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;11&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;12&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;--0:#85E89D;--1:#1E7734&quot;&gt;img&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;../../../public/images/omelet.jpg&quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt; &lt;/span&gt;&lt;span style=&quot;--0:#B392F0;--1:#6F42C1&quot;&gt;alt&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;--0:#9ECBFF;--1:#032F62&quot;&gt;&quot;omelet&quot;&lt;/span&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;/&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;13&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;or&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;14&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;![omelet](../../../public/images/omelet.jpg)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;15&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;details class=&quot;ec-section github&quot;&gt;&lt;summary&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span class=&quot;expand&quot;&gt;&lt;/span&gt;&lt;span class=&quot;collapse&quot;&gt;&lt;/span&gt;&lt;span class=&quot;text&quot;&gt;3 collapsed lines&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/summary&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;16&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;## Breakfast&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;17&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;18&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#E1E4E8;--1:#24292E&quot;&gt;I usually make omelet for her....... (continue on your article)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/details&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;---title: &amp;#x27;Hello Mum&amp;#x27;date: 2023-11-10tags: [&amp;#x27;Parenting&amp;#x27;, &amp;#x27;Mum&amp;#x27;, &amp;#x27;Family&amp;#x27;]summary: &amp;#x27;Say hi to your mum instead of hello world&amp;#x27;image:  src: /images/mumSmiling.jpg  alt: myMumauthors: [&amp;#x27;default&amp;#x27;]---&lt;img src=&amp;#x22;../../../public/images/omelet.jpg&amp;#x22; alt=&amp;#x22;omelet&amp;#x22;/&gt;or![omelet](../../../public/images/omelet.jpg)## BreakfastI usually make omelet for her....... (continue on your article)&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;title, date, tags, summary, image src &amp;#x26; alt, authors와 같은 필드들은 미리 정의되어 있습니다. 각 필드에 맞게 값만 변경하면 됩니다. 하지만 개발자라면, 원하는 대로 필드를 쉽게 편집할 수 있습니다.&lt;/p&gt;
&lt;p&gt;보시다시피, Markdown 안에 HTML 코드를 삽입할 수도 있습니다. 얼마나 편리한가요?&lt;/p&gt;
&lt;h2 id=&quot;헤드리스-cms란-무엇인가요&quot;&gt;헤드리스 CMS란 무엇인가요?&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;데이터베이스를 사용하여 웹페이지와 블로그 글을 분리합니다.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;헤드리스 CMS는 전통적인 CMS와 비슷하게 작동하며, Markdown으로 작성할 수도 있습니다. 하지만 블로그 글을 웹사이트의 Markdown으로 저장하지 않습니다. 대신 콘텐츠를 웹사이트로부터 분리합니다. 설명해 드리겠습니다.&lt;/p&gt;
&lt;p&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/eac40a1a-34cf-4ae8-87e1-45b0a0b7df6f&quot; alt=&quot;Headless-CMS-VS-Traditional-CMS&quot;&gt;&lt;/p&gt;
&lt;p&gt;헤드리스 CMS는 콘텐츠가 프런트엔드로부터 분리된다는 것을 의미합니다. 블로그 글은 다른 곳의 백엔드 서버에 저장됩니다.&lt;/p&gt;
&lt;p&gt;전통적인 CMS로 웹사이트를 구축할 때, 우리는 보통 이를 정적 사이트 생성이라고 부릅니다. 이는 작성한 글, 웹사이트 디자인, CMS 시스템을 포함한 모든 것을 같은 폴더에 넣는다는 의미입니다. 그런 다음 준비가 되면 생성하여 모든 것이 포함된 폴더를 출력합니다 - 그것이 방문자들이 보게 되는 것입니다.&lt;/p&gt;
&lt;p&gt;하지만 헤드리스 CMS는 원래 웹사이트 디자인 폴더 안에 블로그 글이나 작성자 정보를 포함하지 않습니다.&lt;/p&gt;
&lt;p&gt;대신, 콘텐츠는 데이터베이스 안의 클라우드 서버에 저장됩니다. 웹사이트를 구축할 때, 웹사이트에는 클라우드 서버에 저장된 모든 글을 검색하기 위해 쿼리(클라우드의 데이터베이스와 통신)하는 로직이 있습니다. 따라서 웹사이트를 게시하면, 클라우드에서 자동으로 데이터를 가져와 웹사이트의 일부로 통합한 다음, 블로그 글이 포함된 완전한 웹사이트를 출력합니다.&lt;/p&gt;
&lt;h2 id=&quot;헤드리스-cms의-단점&quot;&gt;헤드리스 CMS의 단점&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;비용&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;전통적인 CMS는 보통 무료이며, 웹사이트 호스팅 비용만 지불하면 됩니다. GitHub를 사용한다면 기본적으로 무료입니다. 반면, 헤드리스 CMS는 보통 월 요금에 좌석(작성자)당 추가 비용이 부과됩니다. 즉, 팀 규모에 따라 비용을 지불하는 것입니다.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;대역폭 제한 (비용)&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;웹사이트에 콘텐츠와 에셋(이미지)이 많으면 헤드리스 CMS 서버의 대역폭을 많이 사용할 수 있습니다. 해당 서비스도 선택한 요금제마다 대역폭 제한이 있습니다. 하지만 전통적인 CMS의 경우 호스팅 비용과 웹사이트 대역폭만 신경 쓰면 됩니다. 그리고 Cloudflare Pages를 사용한다면 무제한 대역폭을 무료로 제공합니다.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;구축에 더 많은 노력이 필요합니다&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;정적 사이트 생성기(전통적인 CMS)는 헤드리스 CMS보다 구현하기 쉽습니다. 전통적인 CMS는 스키마와 Markdown 작성만 신경 쓰면 되고, 많은 전통적인 CMS에서 작동할 가능성이 높기 때문입니다. 하지만 헤드리스 CMS는 약간의 API 가져오기 로직이 필요하고, 각 헤드리스 CMS 제공업체마다 특정 쿼리 방법을 배워야 합니다.&lt;/p&gt;
&lt;h2 id=&quot;언제-무엇을-사용해야-할까요&quot;&gt;언제 무엇을 사용해야 할까요?&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;전통적인 CMS&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;예: Hugo, 11ty, Jekyll, Gatsby 등&lt;/p&gt;
&lt;p&gt;소규모 팀이거나 혼자일 때.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;헤드리스 CMS&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;예: Sanity, WordPress, Strapi, Drupal, Payload, Prismic 등&lt;/p&gt;
&lt;p&gt;큰 팀이거나 향후 확장성을 위해.&lt;/p&gt;
&lt;p&gt;소규모 팀이라고 해서 헤드리스 CMS를 사용하면 안 된다는 의미는 아니며, 단지 일반적인 가이드라인일 뿐입니다.&lt;/p&gt;
&lt;p&gt;또한, 블로그 글을 로컬에서 관리하고 작성하고 싶지 않다면, 헤드리스 CMS 사용을 고려해야 합니다.&lt;/p&gt;
&lt;h2 id=&quot;글쓰기만-신경-쓰거나-개발자가-아니라면&quot;&gt;글쓰기만 신경 쓰거나 개발자가 아니라면&lt;/h2&gt;
&lt;p&gt;그냥 WordPress를 사용하세요. 다른 CMS는 신경 쓰지 마세요.&lt;/p&gt;
&lt;p&gt;필요할 때 확장성을 제공하며, 가장 중요한 것은 코드를 만질 필요가 없다는 것입니다.&lt;/p&gt;
&lt;p&gt;이것은 제 연구와 경험에서 나온 것입니다.&lt;/p&gt;
&lt;p&gt;행운을 빕니다.&lt;/p&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/d3c89c82-a706-4916-91af-a64c931bf57d"/><enclosure url="https://cms.hongct.com/assets/d3c89c82-a706-4916-91af-a64c931bf57d" length="181775" type="image/jpeg"/></item><item><title>&quot;iPhone에서 공유 캐시 심볼 복사 중&quot;이 너무 오래 걸릴 때 해결하는 방법</title><link>https://hongcheung.com/ko/post/how-to-fix-copying-shared-cache-symbols-from-iphone-taking-too-long/</link><guid isPermaLink="true">https://hongcheung.com/ko/post/how-to-fix-copying-shared-cache-symbols-from-iphone-taking-too-long/</guid><description>iOS 기기를 Xcode와 연결할 때 발생하는 문제에 대한 해결책입니다.</description><pubDate>Thu, 28 Dec 2023 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/1e7aff28-fa4f-4634-aa8d-1dcd4832b669&quot; alt=&quot;&amp;quot;iPhone에서 공유 캐시 심볼 복사 중&amp;quot;이 너무 오래 걸릴 때 해결하는 방법&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;문제&quot;&gt;문제&lt;/h2&gt;
&lt;p&gt;대부분의 iOS 개발자는 이미 Xcode 15를 사용하고 있을 것이라고 생각합니다.&lt;/p&gt;
&lt;p&gt;최근에 바뀐 점 중 하나는 iOS 기기에 연결하는 기본 방식이 Wi-Fi를 통한 연결이라는 것입니다.&lt;/p&gt;
&lt;p&gt;좋아 보이긴 하지만, 많은 사람에게 케이블을 사용할 때보다 빌드 시간이 느려지는 등의 문제를 일으킵니다.&lt;/p&gt;
&lt;p&gt;특히 저 같은 경우에는 iOS 기기에 처음 연결하려고 할 때 연결에만 한없이 오래 걸리는 이 성가신 문제가 있었습니다. (스크린샷에서 볼 수 있듯이 15분이 넘도록 45%에서 멈춰 있었습니다)&lt;/p&gt;
&lt;h2 id=&quot;해결책&quot;&gt;해결책&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;컴퓨터의 Wi-Fi를 끕니다.&lt;/li&gt;
&lt;li&gt;전통적인 방식으로 케이블을 사용해 iPhone을 연결합니다.\&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/c27d0742-9cbc-4e96-8f86-27a4a79a51ce&quot; alt=&quot;xcode-problem&quot;&gt;&lt;/p&gt;
&lt;ol start=&quot;3&quot;&gt;
&lt;li&gt;“Manage Run Destinations”를 클릭해 연결을 시작할 수 있습니다.\&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img loading=&quot;lazy&quot; decoding=&quot;async&quot; referrerpolicy=&quot;no-referrer&quot; src=&quot;https://cms.hongct.com/assets/5141ff76-0850-41c4-944d-99ec722eec37&quot; alt=&quot;xcode-problem-2&quot;&gt;&lt;/p&gt;
&lt;ol start=&quot;4&quot;&gt;
&lt;li&gt;옆에 있는 기기를 클릭하고, 작업이 시작될 때까지 그냥 기다립니다.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;저의 경우 이 방법으로 전체 복사 과정을 시작부터 끝까지 마치는 데 몇 분도 걸리지 않았습니다.&lt;/p&gt;
&lt;p&gt;VS&lt;/p&gt;
&lt;p&gt;기존 방식은 15분이 지나도 27%밖에 진행되지 않았으니, 정말 말도 안 되는 일이었습니다.&lt;/p&gt;
&lt;p&gt;let happyCoding = true&lt;/p&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/1e7aff28-fa4f-4634-aa8d-1dcd4832b669"/><enclosure url="https://cms.hongct.com/assets/1e7aff28-fa4f-4634-aa8d-1dcd4832b669" length="151017" type="image/png"/></item><item><title>헤드리스 CMS와 비헤드리스 CMS 사이의 딜레마</title><link>https://hongcheung.com/ko/post/the-dilemma-between-headless-cms-and-non-headless-cms/</link><guid isPermaLink="true">https://hongcheung.com/ko/post/the-dilemma-between-headless-cms-and-non-headless-cms/</guid><description>CMS의 차이점을 간단히 살펴봅니다</description><pubDate>Sun, 24 Dec 2023 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/6438f070-fd31-48fb-a545-77e0164a108e&quot; alt=&quot;헤드리스 CMS와 비헤드리스 CMS 사이의 딜레마&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;cms란-무엇인가&quot;&gt;CMS란 무엇인가&lt;/h2&gt;
&lt;p&gt;CMS - 콘텐츠 관리 시스템, 기본적으로 웹사이트를 관리하는 시스템이며, WordPress가 가장 잘 알려져 있습니다.&lt;/p&gt;
&lt;h3 id=&quot;wordpress를-쓰지-않는-이유&quot;&gt;WordPress를 쓰지 않는 이유&lt;/h3&gt;
&lt;p&gt;UI 개발 경험이 마음에 들지 않아서 WordPress를 쓰고 싶지 않습니다. 저는 코딩 방식으로 하는 것을 더 선호합니다. 그렇지만 WordPress로 블로그 글을 쓰는 단순함과 수많은 플러그인으로 얻을 수 있는 강력함은 좋아합니다. 하지만 많은 기능이 필요 없다면 간단한 무료 정적 사이트만으로 충분합니다. 서버 없이 연 $9 USD면 됩니다.&lt;/p&gt;
&lt;p&gt;이제 오픈 소스 CMS를 더하면 준비 끝입니다.&lt;/p&gt;
&lt;h3 id=&quot;cms-찾기&quot;&gt;CMS 찾기&lt;/h3&gt;
&lt;p&gt;지난 몇 달 동안 Tina, Netlify, Sanity 같은 여러 CMS를 전전했습니다.&lt;/p&gt;
&lt;p&gt;지금 사용하고 있는 CMS는 Tina이고, 괜찮다고 생각합니다. 다만 Astro와 함께 사용한 템플릿에 여기저기 문제가 좀 있습니다. 그렇게 순탄하지는 않았지만, 적어도 작동은 합니다.&lt;/p&gt;
&lt;p&gt;본질적으로 저는 단순한 정적 사이트 블로그를 원했습니다. 11ty 사이트와 함께 Netlify(Decap)를 사용하고 있었는데 새로운 것을 시도해 보고 싶어서, 지금은 Astro와 Tina를 사용하며 경험해 보고 있습니다.&lt;/p&gt;
&lt;h3 id=&quot;미리-알았더라면-좋았을-것&quot;&gt;미리 알았더라면 좋았을 것&lt;/h3&gt;
&lt;p&gt;Reddit에서 사람들이 추천한 모든 CMS를 살펴보다가 Sanity와 Payload를 접하게 되었습니다.&lt;/p&gt;
&lt;p&gt;헤드리스 CMS와 비헤드리스 CMS의 차이를 미리 알았더라면 좋았을 텐데요.&lt;/p&gt;
&lt;h2 id=&quot;헤드리스-cms-vs-비헤드리스-cms&quot;&gt;헤드리스 CMS VS 비헤드리스 CMS&lt;/h2&gt;
&lt;p&gt;Sanity와 Payload가 다르게 동작하는 점은 이들이 헤드리스라는 것입니다.&lt;/p&gt;
&lt;p&gt;헤드리스 CMS는 콘텐츠(예: 블로그 글, 페이지)가 프런트엔드와 분리되어 있다는 뜻입니다. 데이터는 자체 호스팅하거나 그들의 클라우드에 호스팅된 서버에 저장됩니다. 그리고 프런트엔드는 API를 호출해 JSON 형식으로 그 데이터를 가져오기만 하면 됩니다.&lt;/p&gt;
&lt;p&gt;제가 사용했던 Netlify나 Tina CMS 같은 헤드 CMS는 서버 없이 작동합니다. “관리자” 시스템이 웹사이트의 데이터를 보여주고 직접 변경한 다음, 프로덕션을 위해 프로젝트 전체를 다시 빌드합니다. 또한 블로그 글은 마크다운으로 작성되므로, 새 글을 쓸 때마다 소스 폴더에 새로운 .md 파일이 생깁니다.&lt;/p&gt;
&lt;p&gt;즉 하나는 서버가 있고, 하나는 없습니다. 하나는 JSON을 사용한다고 할 수 있고, 다른 하나는 Markdown을 사용합니다.&lt;/p&gt;
&lt;p&gt;그리고 물론 서버가 없는 쪽이 대부분의 경우 설정하기 더 쉽고 운영 비용도 더 낮습니다.&lt;/p&gt;
&lt;h3 id=&quot;이해가-안-되는-점&quot;&gt;이해가 안 되는 점&lt;/h3&gt;
&lt;p&gt;세상에는 CMS가 정말 많아서 이미 수많은 것을 생략했습니다. 각각 조금씩 다르게 작동하지만 대부분은 비슷합니다.&lt;/p&gt;
&lt;p&gt;사람들이 그냥 WordPress로 가는 이유를 알 것 같습니다. 오랜 역사가 있고, 누구나 사용법을 알며, 좋든 싫든 강력하고 확장 가능합니다.&lt;/p&gt;
&lt;p&gt;대안으로는 Sanity가 좋습니다. 자체 백엔드를 호스팅하지 않아도 넉넉한 무료 티어를 제공하기 때문입니다. 사용 편의성만 따지면 Netlify와 Tina면 충분할지도 모릅니다. 하지만 확장하고 싶을 때는 Sanity가 더 나은 선택으로 보입니다. 아니면 다시 WordPress로 돌아가도 됩니다.&lt;/p&gt;
&lt;p&gt;그런데 제가 이해가 안 되는 것은 헤드리스든 아니든, 마크다운이든 아니든, 그것이 장기적으로 무슨 상관이 있느냐는 것입니다.&lt;/p&gt;
&lt;p&gt;아마도 자체 호스팅 헤드리스 CMS 백엔드는 오랫동안 작동할 수 있고, 벤더 종속도 없습니다. 하지만 데이터를 저장하고 가져오기 위해 여전히 누군가의 헤드리스 CMS 시스템을 사용하는 데 자신을 맞춰야 합니다.&lt;/p&gt;
&lt;p&gt;반면 Markdown은 기본적으로 모든 비헤드리스 CMS에서 작동합니다. 다만 사이트에 수천 개, 아니 그 이상의 마크다운 파일을 저장해야 할 수도 있는데, 그것은 장기적인 해결책으로 보이지 않습니다.&lt;/p&gt;
&lt;h2 id=&quot;결론&quot;&gt;결론&lt;/h2&gt;
&lt;p&gt;그래서 이제는 신경 쓰지 않습니다.&lt;/p&gt;
&lt;p&gt;그냥 좋아하는 것을 사용하고, 블로그 글이 수만 개에 도달할 때까지 기다리면 됩니다. 그쯤이면 그때 멋진 새 CMS로 마이그레이션할 개발자를 고용할 돈을 벌고 있을 테니까요. 별로 스트레스 받고 싶지 않습니다.&lt;/p&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/6438f070-fd31-48fb-a545-77e0164a108e"/><enclosure url="https://cms.hongct.com/assets/6438f070-fd31-48fb-a545-77e0164a108e" length="195473" type="image/jpeg"/></item><item><title>초보자로서 지난 6개월 동안 무료로 프로그래밍을 배운 방법</title><link>https://hongcheung.com/ko/post/how-i-learn-programming-for-free-in-the-past-6-months-as-a-beginner/</link><guid isPermaLink="true">https://hongcheung.com/ko/post/how-i-learn-programming-for-free-in-the-past-6-months-as-a-beginner/</guid><description>프로그래밍을 배우는 초보자에게 읽을 만한 글.</description><pubDate>Wed, 13 Dec 2023 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/75e9b75e-26c5-4bd2-9584-6a3974f879c9&quot; alt=&quot;초보자로서 지난 6개월 동안 무료로 프로그래밍을 배운 방법&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;배경&quot;&gt;배경&lt;/h2&gt;
&lt;p&gt;저는 항상 무언가를 만드는 데 관심이 많았습니다. 프로그래밍은 바로 그 일을 가능하게 해 줍니다.&lt;/p&gt;
&lt;p&gt;올해 4월부터 &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://www.hackingwithswift.com/100/swiftui&quot; title=&quot;100 Days Of SwiftUI&quot;&gt;100 Days Of SwiftUI&lt;/a&gt;를 통해 Swift(iOS)를 배우기 시작했고, 7x일 차까지 따라가며 몇 개의 앱을 만들어 앱스토어에 출시했습니다. Swift는 UI와 로직을 같은 언어로 처리할 수 있어서 좋습니다.&lt;/p&gt;
&lt;p&gt;그런데 문득 웹의 잠재력이 더 클 수도 있겠다는 생각이 들었습니다. 웹은 자유도가 더 높으니까요. 앱을 심사받을 필요도 없고, 개발자 계정에 비용을 낼 필요도 없으며, 원하는 스택을 자유롭게 고를 수 있습니다. 특히 애플리케이션을 크로스 플랫폼으로 만들고 싶다면 더욱 그렇습니다.&lt;/p&gt;
&lt;h2 id=&quot;웹-개발-학습&quot;&gt;웹 개발 학습&lt;/h2&gt;
&lt;p&gt;iPhone용 작은 앱 몇 개를 만든 뒤, 지난 3~4개월 동안 freeCodeCamp와 Odin Project를 조금씩 활용해 웹 개발을 배우기 시작했습니다.&lt;/p&gt;
&lt;p&gt;웹 개발이 필요한 이유는 모바일 프로젝트를 위한 앱 랜딩 페이지를 만들고, 모바일 앱에서 사용할 REST API도 만들고 싶기 때문입니다.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://www.freecodecamp.org/&quot; title=&quot;freeCodeCamp&quot;&gt;FreeCodeCamp&lt;/a&gt;&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;실습이 많습니다. 다만 실제로 해 보니 조금 부담스럽고 반복적이라는 느낌이 들었습니다.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://www.theodinproject.com/&quot; title=&quot;The Odin Project&quot;&gt;The Odin project &lt;/a&gt;&lt;/strong&gt;
&lt;ul&gt;
&lt;li&gt;이론이 더 많고, 프로그래밍이 왜 그리고 어떻게 작동하는지에 대한 깊은 이해를 얻을 수 있습니다.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;그래서 두 가지를 동시에 하는 것을 추천합니다. 하나가 다른 하나에 도움이 됩니다.&lt;/p&gt;
&lt;p&gt;저는 freeCodeCamp에서 “Responsive Web”, “Basic JavaScript”, 그리고 “React”의 절반만 끝낸 상태입니다 - 지금까지는요.&lt;/p&gt;
&lt;p&gt;제 학습은 주로 텍스트 정보와 공식 문서에 기반했습니다. React와 NextJS 공식 튜토리얼은 정말 즐겁게 했습니다.&lt;/p&gt;
&lt;p&gt;유료 온라인 강의에는 전혀 돈을 쓰지 않았습니다.&lt;/p&gt;
&lt;p&gt;대부분 과제 중심 학습이었습니다 - 하고 싶은 그 한 가지를 배우고, 다음 것으로 계속 넘어가는 방식입니다.&lt;/p&gt;
&lt;h2 id=&quot;지금까지의-나의-프로그래밍-여정&quot;&gt;지금까지의 나의 프로그래밍 여정&lt;/h2&gt;
&lt;p&gt;Swift &amp;#x26; 약간의 로컬 SQLite &gt; 간단한 Flask REST API &gt; HTML/CSS &gt; JavaScript &gt; 11ty (정적 사이트 생성기) &gt; React (공식 튜토리얼) &amp;#x26; NodeJS &gt; Next.js (공식 튜토리얼) &gt; ExpressJS &gt; REST API 보안 (CORS &amp;#x26; 환경 변수) &gt; React 복습 (freeCodeCamp) &gt; …&lt;/p&gt;
&lt;h3 id=&quot;모두가-프로젝트를-만드는-것이-중요하다고-말했고-저도-매우-동의합니다&quot;&gt;모두가 프로젝트를 만드는 것이 중요하다고 말했고, 저도 매우 동의합니다&lt;/h3&gt;
&lt;p&gt;만들고 싶은 것이 아니었다면 흥미를 잃었을 것입니다. 한 프로젝트를 오래 하다 지치면, 다른 언어로 된 또 다른 프로젝트로 바꿔서 자극을 받곤 했습니다. 과제 중심 학습이 저에게 가장 잘 맞습니다.&lt;/p&gt;
&lt;h3 id=&quot;제가-사용한-초보자-친화적인-무료-호스팅-몇-가지&quot;&gt;제가 사용한 초보자 친화적인 무료 호스팅 몇 가지&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;GitHub page&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;무료 요금제에서는 저장소를 공개해야 게시할 수 있습니다. 그래도 도메인은 연결할 수 있습니다.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://www.netlify.com/&quot; title=&quot;Netlify&quot;&gt;Netlify&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;GitHub와 연결하기가 매우 쉽고, 문의 양식 지원이 내장되어 있어 자체 서버가 필요 없습니다. Netlify CMS 인증과 연동하면 정적 블로그에 로그인할 수도 있으며, 모두 무료입니다. (단점은 Next Image 지원이 없다는 것 - 즉 &amp;#x3C;Image&gt; 최적화를 활용할 수 없습니다. 이를 위해서는 Vercel을 쓸 수 있지만 문의 양식 지원을 잃게 되니 선택은 본인 몫입니다. 제가 이걸 아는 이유는 NextJS 사이트를 Netlify에 배포하다가 오류를 겪었기 때문입니다.)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://CloudFlare.com&quot; title=&quot;Cloud Flare&quot;&gt;CloudFlare&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;UI는 Netlify에 비해 멋지거나 초보자 친화적이지는 않지만, 무제한 대역폭, 무료 호스팅, 심지어 제한적이지만 사용할 수 있는 클라우드 함수도 제공합니다. Netlify만큼 초보자 친화적이지는 않았지만 그렇게 어렵지도 않았습니다. 기본적으로 필요하고 원하는 모든 것을 무료로 제공합니다. 그리고 도메인도 여기서 구입했기 때문에 지금은 제가 주로 쓰는 정적 호스트입니다.&lt;/p&gt;
&lt;h3 id=&quot;무료-백엔드-호스트&quot;&gt;무료 백엔드 호스트&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://www.pythonanywhere.com/&quot; title=&quot;PythonAnywhere&quot;&gt;PythonAnywhere&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;제 첫 백엔드였습니다. 기본적인 용도로는 사용하기 매우 쉽습니다. CPU 계산 시간이 제한되어 있어 무료로 큰 처리 작업을 돌리기는 어렵습니다. 하지만 항상 실행 중이기 때문에 RESTful API에는 아주 좋습니다.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://render.com&quot; title=&quot;Render&quot;&gt;Render&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Express.js 호스팅을 위한 제 새로운 선택지입니다 - 단점은 15분 동안 비활성 상태이면 자동으로 중지된다는 것입니다. JavaScript 서버를 호스팅할 수 있는 무료 상시 서버는 아직 찾지 못했습니다. 다만 중지되지 않는 서버는 월 약 $7로 그렇게 비싸지 않고, 직불 카드를 받는다는 점이 마음에 듭니다. UI도 쉽습니다.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://aws.amazon.com/&quot; title=&quot;AWS&quot;&gt;AWS&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;아니요, 저에게는 너무 부담스러웠습니다. 하지만 합리적인 가격에 확장성이 가장 뛰어난 서비스 중 하나인 것 같습니다. 웹사이트 UI가 초보자 친화적이지 않고 VPS에 대해 잘 모르기 때문에 아직 손대지 못했습니다.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://cloud.google.com/&quot; title=&quot;Google Cloud&quot;&gt;Google Cloud&lt;/a&gt; / &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://firebase.google.com/&quot; title=&quot;Firebase&quot;&gt;Firebase&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Google Cloud는 무료 요금제라도 시작하려면 신용카드가 필요해서, 마침 없었습니다. Firebase는 인증 시스템을 무료로 쉽게 구축하기에 좋습니다. 나중에 살펴볼 예정입니다.&lt;/p&gt;
&lt;h2 id=&quot;웹사이트-게시-전-과정을-배우기-위해&quot;&gt;웹사이트 게시 전 과정을 배우기 위해&lt;/h2&gt;
&lt;p&gt;HTML/CSS와 기본 JS로 간단한 웹사이트 몇 개를 만든 뒤, 블로그를 만들고 싶었습니다. 정적 사이트 생성기가 정말 많다는 것을 알게 되었습니다. Hugo, 11ty 등으로 템플릿을 검색했습니다. NodeJS를 어떻게 다루는지 이해하는 데 매우 좋았습니다. 이런 템플릿을 다루려면 약간의 코딩 로직만 필요하지만, 웹사이트를 만드는 전 과정을 연습할 수 있기 때문입니다:&lt;/p&gt;
&lt;div class=&quot;expressive-code&quot;&gt;&lt;style&gt;.expressive-code{font-family:var(--ec-uiFontFml);font-size:var(--ec-uiFontSize);font-weight:var(--ec-uiFontWg);line-height:var(--ec-uiLineHt);text-size-adjust:none;-webkit-text-size-adjust:none}.expressive-code *:not(:is(svg, svg *)){all:revert;box-sizing:border-box}.expressive-code pre{display:flex;margin:0;padding:0;border:var(--ec-brdWd) solid var(--ec-brdCol);border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));background:var(--ec-codeBg)}.expressive-code pre:focus-visible{outline:3px solid var(--ec-focusBrd);outline-offset:-3px}.expressive-code pre &gt; code{all:unset;display:block;flex:1 0 100%;padding:var(--ec-codePadBlk) 0;color:var(--ec-codeFg);font-family:var(--ec-codeFontFml);font-size:var(--ec-codeFontSize);font-weight:var(--ec-codeFontWg);line-height:var(--ec-codeLineHt)}.expressive-code pre{overflow-x:auto}.expressive-code pre.wrap .ec-line .code{white-space:pre-wrap;overflow-wrap:break-word;min-width:min(20ch, var(--ecMaxLine, 20ch))}.expressive-code pre.wrap .ec-line .code span.indent{white-space:pre}.expressive-code pre::-webkit-scrollbar,.expressive-code pre::-webkit-scrollbar-track{background-color:inherit;border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));border-top-left-radius:0;border-top-right-radius:0}.expressive-code pre::-webkit-scrollbar-thumb{background-color:var(--ec-sbThumbCol);border:4px solid transparent;background-clip:content-box;border-radius:10px}.expressive-code pre::-webkit-scrollbar-thumb:hover{background-color:var(--ec-sbThumbHoverCol)}.expressive-code pre::-webkit-scrollbar-corner{background:transparent}.expressive-code .ec-line{direction:ltr;unicode-bidi:isolate;display:grid;grid-template-areas:&apos;gutter code&apos;;grid-template-columns:auto 1fr;position:relative}.expressive-code .ec-line .gutter{grid-area:gutter;color:var(--ec-gtrFg)}.expressive-code .ec-line .gutter &gt; *{pointer-events:none;user-select:none;-webkit-user-select:none}.expressive-code .ec-line .gutter ~ .code{--ecLineBrdCol:var(--ec-gtrBrdCol)}.expressive-code .ec-line.highlight .gutter{color:var(--ec-gtrHlFg)}.expressive-code .ec-line .code{grid-area:code;position:relative;box-sizing:content-box;padding-inline-start:calc(var(--ecIndent, 0ch) + var(--ec-codePadInl) - var(--ecGtrBrdWd));padding-inline-end:var(--ec-codePadInl);text-indent:calc(var(--ecIndent, 0ch) * -1)}.expressive-code .ec-line .code::before,.expressive-code .ec-line .code::after,.expressive-code .ec-line .code :where(*){text-indent:0}.expressive-code .ec-line .code{--ecGtrBrdWd:var(--ec-gtrBrdWd);border-inline-start:var(--ecGtrBrdWd) solid var(--ecLineBrdCol, transparent)}.expressive-code .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.expressive-code .ec-line.mark{--tmLineBgCol:var(--ec-tm-markBg)}.expressive-code .ec-line.mark .code{--ecLineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line.ins{--tmLineBgCol:var(--ec-tm-insBg);--tmLabel:var(--ec-tm-insDiffIndContent)}.expressive-code .ec-line.ins .code{--ecLineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line.ins .code::before{color:var(--ec-tm-insDiffIndCol)}.expressive-code .ec-line.del{--tmLineBgCol:var(--ec-tm-delBg);--tmLabel:var(--ec-tm-delDiffIndContent)}.expressive-code .ec-line.del .code{--ecLineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line.del .code::before{color:var(--ec-tm-delDiffIndCol)}.expressive-code .ec-line.mark,.expressive-code .ec-line.ins,.expressive-code .ec-line.del{background:var(--tmLineBgCol)}.expressive-code .ec-line.mark .code,.expressive-code .ec-line.ins .code,.expressive-code .ec-line.del .code{--ecGtrBrdWd:var(--ec-tm-lineMarkerAccentWd)}.expressive-code .ec-line.mark .code::before,.expressive-code .ec-line.ins .code::before,.expressive-code .ec-line.del .code::before{display:block;position:absolute;left:0;box-sizing:border-box;content:var(--tmLabel, &apos; &apos;);padding-inline-start:var(--ec-tm-lineDiffIndMargLeft);text-align:center;white-space:pre}.expressive-code .ec-line.mark.tm-label .code::before,.expressive-code .ec-line.ins.tm-label .code::before,.expressive-code .ec-line.del.tm-label .code::before{background:var(--ecLineBrdCol);padding:0 calc(var(--ec-tm-lineMarkerLabelPadInl) + var(--ec-tm-lineMarkerAccentWd)) 0 var(--ec-tm-lineMarkerLabelPadInl);color:var(--ec-tm-lineMarkerLabelCol)}.expressive-code .ec-line mark{--tmInlineBgCol:var(--ec-tm-markBg);--tmInlineBrdCol:var(--ec-tm-markBrdCol)}.expressive-code .ec-line ins{--tmInlineBgCol:var(--ec-tm-insBg);--tmInlineBrdCol:var(--ec-tm-insBrdCol)}.expressive-code .ec-line del{--tmInlineBgCol:var(--ec-tm-delBg);--tmInlineBrdCol:var(--ec-tm-delBrdCol)}.expressive-code .ec-line mark,.expressive-code .ec-line ins,.expressive-code .ec-line del{all:unset;display:inline-block;position:relative;--tmBrdL:var(--ec-tm-inlMarkerBrdWd);--tmBrdR:var(--ec-tm-inlMarkerBrdWd);--tmRadL:var(--ec-tm-inlMarkerBrdRad);--tmRadR:var(--ec-tm-inlMarkerBrdRad);margin-inline:0.025rem;padding-inline:var(--ec-tm-inlMarkerPad);border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);background:var(--tmInlineBgCol);background-clip:padding-box}.expressive-code .ec-line mark.open-start,.expressive-code .ec-line ins.open-start,.expressive-code .ec-line del.open-start{margin-inline-start:0;padding-inline-start:0;--tmBrdL:0px;--tmRadL:0}.expressive-code .ec-line mark.open-end,.expressive-code .ec-line ins.open-end,.expressive-code .ec-line del.open-end{margin-inline-end:0;padding-inline-end:0;--tmBrdR:0px;--tmRadR:0}.expressive-code .ec-line mark::before,.expressive-code .ec-line ins::before,.expressive-code .ec-line del::before{content:&apos;&apos;;position:absolute;pointer-events:none;display:inline-block;inset:0;border-radius:var(--tmRadL) var(--tmRadR) var(--tmRadR) var(--tmRadL);border:var(--ec-tm-inlMarkerBrdWd) solid var(--tmInlineBrdCol);border-inline-width:var(--tmBrdL) var(--tmBrdR)}.expressive-code .frame{all:unset;position:relative;display:block;--header-border-radius:calc(var(--ec-brdRad) + var(--ec-brdWd));--tab-border-radius:calc(var(--ec-frm-edTabBrdRad) + var(--ec-brdWd));--button-spacing:0.4rem;--code-background:var(--ec-frm-edBg);border-radius:var(--header-border-radius);box-shadow:var(--ec-frm-frameBoxShdCssVal)}.expressive-code .frame .header{display:none;z-index:1;position:relative;border-radius:var(--header-border-radius) var(--header-border-radius) 0 0}.expressive-code .frame.has-title pre,.expressive-code .frame.has-title code,.expressive-code .frame.is-terminal pre,.expressive-code .frame.is-terminal code{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.expressive-code .frame .title:empty:before{content:&apos;\a0&apos;}.expressive-code .frame.has-title:not(.is-terminal){--button-spacing:calc(1.9rem + 2 * (var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)))}.expressive-code .frame.has-title:not(.is-terminal) .title{position:relative;color:var(--ec-frm-edActTabFg);background:var(--ec-frm-edActTabBg);background-clip:padding-box;margin-block-start:var(--ec-frm-edTabsMargBlkStart);padding:calc(var(--ec-uiPadBlk) + var(--ec-frm-edActTabIndHt)) var(--ec-uiPadInl);border:var(--ec-brdWd) solid var(--ec-frm-edActTabBrdCol);border-radius:var(--tab-border-radius) var(--tab-border-radius) 0 0;border-bottom:none;overflow:hidden}.expressive-code .frame.has-title:not(.is-terminal) .title::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-top:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndTopCol);border-bottom:var(--ec-frm-edActTabIndHt) solid var(--ec-frm-edActTabIndBtmCol)}.expressive-code .frame.has-title:not(.is-terminal) .header{display:flex;background:linear-gradient(to top, var(--ec-frm-edTabBarBrdBtmCol) var(--ec-brdWd), transparent var(--ec-brdWd)),linear-gradient(var(--ec-frm-edTabBarBg), var(--ec-frm-edTabBarBg));background-repeat:no-repeat;padding-inline-start:var(--ec-frm-edTabsMargInlStart)}.expressive-code .frame.has-title:not(.is-terminal) .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border:var(--ec-brdWd) solid var(--ec-frm-edTabBarBrdCol);border-radius:inherit;border-bottom:none}.expressive-code .frame.is-terminal{--button-spacing:calc(1.9rem + var(--ec-brdWd) + 2 * var(--ec-uiPadBlk));--code-background:var(--ec-frm-trmBg)}.expressive-code .frame.is-terminal .header{display:flex;align-items:center;justify-content:center;padding-block:var(--ec-uiPadBlk);padding-block-end:calc(var(--ec-uiPadBlk) + var(--ec-brdWd));position:relative;font-weight:500;letter-spacing:0.025ch;color:var(--ec-frm-trmTtbFg);background:var(--ec-frm-trmTtbBg);border:var(--ec-brdWd) solid var(--ec-brdCol);border-bottom:none}.expressive-code .frame.is-terminal .header::before{content:&apos;&apos;;position:absolute;pointer-events:none;left:var(--ec-uiPadInl);width:2.1rem;height:0.56rem;line-height:0;background-color:var(--ec-frm-trmTtbDotsFg);opacity:var(--ec-frm-trmTtbDotsOpa);-webkit-mask-image:var(--ec-frm-trmIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-trmIcon);mask-repeat:no-repeat}.expressive-code .frame.is-terminal .header::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-bottom:var(--ec-brdWd) solid var(--ec-frm-trmTtbBrdBtmCol)}.expressive-code .frame pre{background:var(--code-background)}.expressive-code .copy{display:flex;gap:0.25rem;flex-direction:row;position:absolute;inset-block-start:calc(var(--ec-brdWd) + var(--button-spacing));inset-inline-end:calc(var(--ec-brdWd) + var(--ec-uiPadInl) / 2)}@media (scripting: none){.expressive-code .copy{display:none}}.expressive-code .copy{direction:ltr;unicode-bidi:isolate}.expressive-code .copy button{position:relative;align-self:flex-end;margin:0;padding:0;border:none;border-radius:0.2rem;z-index:1;cursor:pointer;transition-property:opacity, background, border-color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94);width:2.5rem;height:2.5rem;background:var(--code-background);opacity:0.75}.expressive-code .copy button div{position:absolute;inset:0;border-radius:inherit;background:var(--ec-frm-inlBtnBg);opacity:var(--ec-frm-inlBtnBgIdleOpa);transition-property:inherit;transition-duration:inherit;transition-timing-function:inherit}.expressive-code .copy button::before{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;border-radius:inherit;border:var(--ec-brdWd) solid var(--ec-frm-inlBtnBrd);opacity:var(--ec-frm-inlBtnBrdOpa)}.expressive-code .copy button::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-frm-inlBtnFg);-webkit-mask-image:var(--ec-frm-copyIcon);-webkit-mask-repeat:no-repeat;mask-image:var(--ec-frm-copyIcon);mask-repeat:no-repeat;margin:0.475rem;line-height:0}.expressive-code .copy button:hover,.expressive-code .copy button:focus:focus-visible{opacity:1}.expressive-code .copy button:hover div,.expressive-code .copy button:focus:focus-visible div{opacity:var(--ec-frm-inlBtnBgHoverOrFocusOpa)}.expressive-code .copy button:active{opacity:1}.expressive-code .copy button:active div{opacity:var(--ec-frm-inlBtnBgActOpa)}.expressive-code .copy .feedback{--tooltip-arrow-size:0.35rem;--tooltip-bg:var(--ec-frm-tooltipSuccessBg);color:var(--ec-frm-tooltipSuccessFg);pointer-events:none;user-select:none;-webkit-user-select:none;position:relative;align-self:center;background-color:var(--tooltip-bg);z-index:99;padding:0.125rem 0.75rem;border-radius:0.2rem;margin-inline-end:var(--tooltip-arrow-size);opacity:0;transition-property:opacity, transform;transition-duration:0.2s;transition-timing-function:ease-in-out;transform:translate3d(0, 0.25rem, 0)}.expressive-code .copy .feedback::after{content:&apos;&apos;;position:absolute;pointer-events:none;top:calc(50% - var(--tooltip-arrow-size));inset-inline-end:calc(-2 * (var(--tooltip-arrow-size) - 0.5px));border:var(--tooltip-arrow-size) solid transparent;border-inline-start-color:var(--tooltip-bg)}.expressive-code .copy .feedback.show{opacity:1;transform:translate3d(0, 0, 0)}@media (hover: hover){.expressive-code{}.expressive-code .copy button{opacity:0;width:2rem;height:2rem}.expressive-code .frame:hover .copy button:not(:hover),.expressive-code .frame:focus-within :focus-visible ~ .copy button:not(:hover),.expressive-code .frame .copy .feedback.show ~ button:not(:hover){opacity:0.75}}.expressive-code :nth-child(1 of .ec-line) .code{padding-inline-end:calc(2rem + var(--ec-codePadInl))}.expressive-code .gutter .ln{display:inline-flex;justify-content:flex-end;align-items:flex-start;box-sizing:content-box;min-width:var(--lnWidth, 2ch);padding-inline:2ch;color:var(--ec-lineNumbers-fg)}.highlight .expressive-code .gutter .ln{color:var(--ec-lineNumbers-hlFg)}.expressive-code .ec-section{position:relative}.expressive-code .ec-section summary{position:relative;font-family:var(--ec-cs-closedFontFml);font-size:var(--ec-cs-closedFontSize);line-height:var(--ec-cs-closedLineHt);user-select:none;-webkit-user-select:none;cursor:pointer;color:var(--ec-cs-closedTextCol);background-color:var(--ec-cs-closedBgCol);--border-color:var(--ec-cs-closedBrdCol);--border-width:var(--ec-cs-closedBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);margin:var(--ec-cs-closedMarg);padding:0}.expressive-code .ec-section summary::marker{display:inline-block;content:&quot;&quot;;width:16px;height:16px}.expressive-code .ec-section summary::-webkit-details-marker{display:none}.expressive-code .ec-section summary :is(.expand, .collapse){position:relative;display:inline-block;width:16px;height:16px;vertical-align:text-bottom;opacity:0.75}.expressive-code .ec-section summary :is(.expand, .collapse)::after{content:&apos;&apos;;position:absolute;pointer-events:none;inset:0;background-color:var(--ec-cs-closedTextCol);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;line-height:0}.expressive-code .ec-section summary .expand::after{-webkit-mask-image:var(--ec-cs-expandIcon);mask-image:var(--ec-cs-expandIcon);-webkit-print-color-adjust:exact;print-color-adjust:exact}.expressive-code .ec-section summary .collapse{display:none}.expressive-code .ec-section summary .collapse::after{-webkit-mask-image:var(--ec-cs-collapseIcon);mask-image:var(--ec-cs-collapseIcon)}.expressive-code .ec-section summary .text{margin-left:1em}.expressive-code .ec-section summary .ec-line .code{padding-block:var(--ec-cs-closedPadBlk);text-indent:0}.expressive-code .ec-section[open],.expressive-code .ec-section details[open] + .content-lines{--border-color:var(--ec-cs-openBrdCol);--border-width:var(--ec-cs-openBrdWd);box-shadow:inset 0 calc(-1 * var(--border-width)) var(--border-color), inset 0 var(--border-width) var(--border-color);padding-inline:var(--ec-cs-openPad);margin-inline:var(--ec-cs-openMarg)}.expressive-code .ec-section.github[open] summary{display:none}.expressive-code .ec-section.github[open]{background-color:var(--ec-cs-openBgCol)}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end){display:flex;flex-direction:column}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) .content-lines{display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] .collapse{display:inline-block}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] :is(.expand, .text){display:none}.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open] + .content-lines{display:block;background-color:var(--ec-cs-openBgColCollapsible)}@media print{.expressive-code .ec-section:is(.collapsible-start, .collapsible-end) details[open]{display:none}}.expressive-code .ec-section.collapsible-end{flex-direction:column-reverse}:root,:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;]{--ec-brdRad:0.3rem;--ec-brdWd:1.5px;--ec-brdCol:#1b1f23;--ec-codeFontFml:jetbrains-mono;--ec-codeFontSize:0.85rem;--ec-codeFontWg:400;--ec-codeLineHt:1.65;--ec-codePadBlk:1rem;--ec-codePadInl:1.35rem;--ec-codeBg:#24292e;--ec-codeFg:#e1e4e8;--ec-codeSelBg:#3392ff44;--ec-gtrFg:#727980;--ec-gtrBrdCol:#72798033;--ec-gtrBrdWd:1.5px;--ec-gtrHlFg:#e1e4e896;--ec-uiFontFml:jetbrains-mono;--ec-uiFontSize:0.9rem;--ec-uiFontWg:400;--ec-uiLineHt:1.65;--ec-uiPadBlk:0.25rem;--ec-uiPadInl:1rem;--ec-uiSelBg:#39414a;--ec-uiSelFg:#e1e4e8;--ec-focusBrd:#005cc5;--ec-sbThumbCol:#6a737d33;--ec-sbThumbHoverCol:#6a737dd1;--ec-tm-lineMarkerAccentMarg:0rem;--ec-tm-lineMarkerAccentWd:0.15rem;--ec-tm-lineMarkerLabelPadInl:0.2rem;--ec-tm-lineMarkerLabelCol:white;--ec-tm-lineDiffIndMargLeft:0.3rem;--ec-tm-inlMarkerBrdWd:1.5px;--ec-tm-inlMarkerBrdRad:0.2rem;--ec-tm-inlMarkerPad:0.15rem;--ec-tm-insDiffIndContent:&apos;+&apos;;--ec-tm-delDiffIndContent:&apos;-&apos;;--ec-tm-markBg:#264a8980;--ec-tm-markBrdCol:#5570b3d0;--ec-tm-insBg:#26561c80;--ec-tm-insBrdCol:#4e7e41d0;--ec-tm-insDiffIndCol:#7eb070d0;--ec-tm-delBg:#81322b80;--ec-tm-delBrdCol:#ae594fd0;--ec-tm-delDiffIndCol:#e68a7ed0;--ec-frm-shdCol:#0000005b;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #0000005b;--ec-frm-edActTabBg:#24292e;--ec-frm-edActTabFg:#e1e4e8;--ec-frm-edActTabBrdCol:transparent;--ec-frm-edActTabIndHt:1.5px;--ec-frm-edActTabIndTopCol:#f9826c;--ec-frm-edActTabIndBtmCol:#24292e;--ec-frm-edTabsMargInlStart:0;--ec-frm-edTabsMargBlkStart:0;--ec-frm-edTabBrdRad:0.3rem;--ec-frm-edTabBarBg:#1f2428;--ec-frm-edTabBarBrdCol:#1b1f23;--ec-frm-edTabBarBrdBtmCol:#1b1f23;--ec-frm-edBg:#24292e;--ec-frm-trmTtbFg:#e1e4e8;--ec-frm-trmTtbDotsFg:#e1e4e8;--ec-frm-trmTtbDotsOpa:0.15;--ec-frm-trmTtbBg:#24292e;--ec-frm-trmTtbBrdBtmCol:#1b1f23;--ec-frm-trmBg:#1f2428;--ec-frm-inlBtnFg:#e1e4e8;--ec-frm-inlBtnBg:#e1e4e8;--ec-frm-inlBtnBgIdleOpa:0;--ec-frm-inlBtnBgHoverOrFocusOpa:0.2;--ec-frm-inlBtnBgActOpa:0.3;--ec-frm-inlBtnBrd:#e1e4e8;--ec-frm-inlBtnBrdOpa:0.4;--ec-frm-tooltipSuccessBg:#228739;--ec-frm-tooltipSuccessFg:white;--ec-frm-copyIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2024%2024&apos;%20fill%3D&apos;none&apos;%20stroke%3D&apos;black&apos;%20stroke-width%3D&apos;1.75&apos;%3E%3Cpath%20d%3D&apos;M3%2019a2%202%200%200%201-1-2V2a2%202%200%200%201%201-1h13a2%202%200%200%201%202%201&apos;%2F%3E%3Crect%20x%3D&apos;6&apos;%20y%3D&apos;5&apos;%20width%3D&apos;16&apos;%20height%3D&apos;18&apos;%20rx%3D&apos;1.5&apos;%20ry%3D&apos;1.5&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-frm-trmIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2060%2016&apos;%20preserveAspectRatio%3D&apos;xMidYMid%20meet&apos;%3E%3Ccircle%20cx%3D&apos;8&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;30&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3Ccircle%20cx%3D&apos;52&apos;%20cy%3D&apos;8&apos;%20r%3D&apos;8&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-lineNumbers-fg:inherit;--ec-lineNumbers-hlFg:inherit;--ec-cs-closedBrdWd:0px;--ec-cs-closedPadBlk:4px;--ec-cs-closedMarg:0;--ec-cs-closedFontFml:inherit;--ec-cs-closedFontSize:inherit;--ec-cs-closedLineHt:inherit;--ec-cs-closedTextCol:#e1e4e8;--ec-cs-closedBgCol:#58606933;--ec-cs-closedBrdCol:#58606980;--ec-cs-openBrdWd:1px;--ec-cs-openPad:0;--ec-cs-openMarg:0;--ec-cs-openBgCol:transparent;--ec-cs-openBgColCollapsible:#5860691a;--ec-cs-openBrdCol:transparent;--ec-cs-expandIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;m8.177.677%202.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25a.75.75%200%200%201-1.5%200V4H5.104a.25.25%200%200%201-.177-.427L7.823.677a.25.25%200%200%201%20.354%200ZM7.25%2010.75a.75.75%200%200%201%201.5%200V12h2.146a.25.25%200%200%201%20.177.427l-2.896%202.896a.25.25%200%200%201-.354%200l-2.896-2.896A.25.25%200%200%201%205.104%2012H7.25v-1.25Zm-5-2a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;);--ec-cs-collapseIcon:url(&quot;data:image/svg+xml,%3Csvg%20xmlns%3D&apos;http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg&apos;%20viewBox%3D&apos;0%200%2016%2016&apos;%3E%3Cpath%20d%3D&apos;M10.896%202H8.75V.75a.75.75%200%200%200-1.5%200V2H5.104a.25.25%200%200%200-.177.427l2.896%202.896a.25.25%200%200%200%20.354%200l2.896-2.896A.25.25%200%200%200%2010.896%202ZM8.75%2015.25a.75.75%200%200%201-1.5%200V14H5.104a.25.25%200%200%201-.177-.427l2.896-2.896a.25.25%200%200%201%20.354%200l2.896%202.896a.25.25%200%200%201-.177.427H8.75v1.25Zm-6.5-6.5a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM6%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%206%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5ZM12%208a.75.75%200%200%201-.75.75h-.5a.75.75%200%200%201%200-1.5h.5A.75.75%200%200%201%2012%208Zm2.25.75a.75.75%200%200%200%200-1.5h-.5a.75.75%200%200%200%200%201.5h.5Z&apos;%2F%3E%3C%2Fsvg%3E&quot;)}.expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])),:root:not([data-theme=&quot;dark&quot;]) .expressive-code[data-theme=&quot;dark&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--0, inherit);background-color:var(--0bg, transparent);font-style:var(--0fs, inherit);font-weight:var(--0fw, inherit);text-decoration:var(--0td, inherit)}@media (prefers-color-scheme: light){:root:not([data-theme=&quot;dark&quot;]){--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root:not([data-theme=&quot;dark&quot;]) .expressive-code .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]),.expressive-code[data-theme=&quot;light&quot;]{--ec-brdCol:#e1e4e8;--ec-codeBg:#fff;--ec-codeFg:#24292e;--ec-codeSelBg:#0366d625;--ec-gtrFg:#1b1f2381;--ec-gtrBrdCol:#1b1f2333;--ec-gtrHlFg:#24292eab;--ec-uiSelBg:#e2e5e9;--ec-uiSelFg:#2f363d;--ec-focusBrd:#2188ff;--ec-sbThumbCol:#959da533;--ec-sbThumbHoverCol:#959da5eb;--ec-tm-markBg:#9fb6ff80;--ec-tm-insBg:#94c68480;--ec-tm-insDiffIndCol:#3a692fd0;--ec-tm-delBg:#fea09280;--ec-tm-delDiffIndCol:#97453dd0;--ec-frm-shdCol:#00000028;--ec-frm-frameBoxShdCssVal:0.1rem 0.1rem 0.2rem #00000028;--ec-frm-edActTabBg:#fff;--ec-frm-edActTabFg:#2f363d;--ec-frm-edActTabIndBtmCol:#fff;--ec-frm-edTabBarBg:#f6f8fa;--ec-frm-edTabBarBrdCol:#e1e4e8;--ec-frm-edTabBarBrdBtmCol:#e1e4e8;--ec-frm-edBg:#fff;--ec-frm-trmTtbFg:#2f363d;--ec-frm-trmTtbDotsFg:#2f363d;--ec-frm-trmTtbBg:#fff;--ec-frm-trmTtbBrdBtmCol:#e1e4e8;--ec-frm-trmBg:#f6f8fa;--ec-frm-inlBtnFg:#24292e;--ec-frm-inlBtnBg:#24292e;--ec-frm-inlBtnBrd:#24292e;--ec-frm-tooltipSuccessBg:#208638;--ec-cs-closedTextCol:#24292e;--ec-cs-closedBgCol:#d1d5da33;--ec-cs-closedBrdCol:#d1d5da80;--ec-cs-openBgColCollapsible:#d1d5da1a}:root[data-theme=&quot;light&quot;] .expressive-code:not([data-theme=&quot;dark&quot;]) .ec-line :where(span[style^=&apos;--&apos;]:not([class])),.expressive-code[data-theme=&quot;light&quot;] .ec-line :where(span[style^=&apos;--&apos;]:not([class])){color:var(--1, inherit);background-color:var(--1bg, transparent);font-style:var(--1fs, inherit);font-weight:var(--1fw, inherit);text-decoration:var(--1td, inherit)}&lt;/style&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function a(e){if(!e)return;let t=e.getAttribute(&quot;tabindex&quot;)!==null,r=e.scrollWidth&gt;e.clientWidth;r&amp;&amp;!t?(e.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),e.setAttribute(&quot;role&quot;,&quot;region&quot;)):!r&amp;&amp;t&amp;&amp;(e.removeAttribute(&quot;tabindex&quot;),e.removeAttribute(&quot;role&quot;))}var u=window.requestIdleCallback||(e=&gt;setTimeout(e,1)),s=window.cancelIdleCallback||clearTimeout;function l(e){let t=new Set,r,n;return new ResizeObserver(c=&gt;{c.forEach(o=&gt;t.add(o.target)),r&amp;&amp;clearTimeout(r),n&amp;&amp;s(n),r=setTimeout(()=&gt;{n&amp;&amp;s(n),n=u(()=&gt;{t.forEach(o=&gt;e(o)),t.clear()})},250)})}function i(e,t){e.querySelectorAll?.(&quot;.expressive-code pre &gt; code&quot;).forEach(r=&gt;{let n=r.parentElement;n&amp;&amp;t.observe(n)})}var d=l(a);i(document,d);var b=new MutationObserver(e=&gt;e.forEach(t=&gt;t.addedNodes.forEach(r=&gt;{i(r,d)})));b.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document,d)});})();}catch(e){console.error(&quot;[EC] tabindex-js-module failed:&quot;,e)}&lt;/script&gt;&lt;script type=&quot;module&quot;&gt;try{(()=&gt;{function l(o){let e=document.createElement(&quot;pre&quot;);Object.assign(e.style,{opacity:&quot;0&quot;,pointerEvents:&quot;none&quot;,position:&quot;absolute&quot;,overflow:&quot;hidden&quot;,left:&quot;0&quot;,top:&quot;0&quot;,width:&quot;20px&quot;,height:&quot;20px&quot;,webkitUserSelect:&quot;auto&quot;,userSelect:&quot;all&quot;}),e.ariaHidden=&quot;true&quot;,e.textContent=o,document.body.appendChild(e);let a=document.createRange();a.selectNode(e);let n=getSelection();if(!n)return!1;n.removeAllRanges(),n.addRange(a);let r=!1;try{r=document.execCommand(&quot;copy&quot;)}finally{n.removeAllRanges(),document.body.removeChild(e)}return r}async function u(o){let e=o.currentTarget,a=e.dataset,n=!1,r=a.code.replace(/\u007f/g,`
`);try{await navigator.clipboard.writeText(r),n=!0}catch{n=l(r)}if(!n||e.parentNode?.querySelector(&quot;.feedback&quot;))return;let c=e.parentNode?.querySelector(&quot;[aria-live]&quot;),t=document.createElement(&quot;div&quot;);t.classList.add(&quot;feedback&quot;),t.append(a.copied),c.append(t),t.offsetWidth,requestAnimationFrame(()=&gt;t?.classList.add(&quot;show&quot;));let s=()=&gt;!t||t.classList.remove(&quot;show&quot;),d=()=&gt;{!t||parseFloat(getComputedStyle(t).opacity)&gt;0||(t.remove(),t=void 0)};setTimeout(s,1500),setTimeout(d,2500),e.addEventListener(&quot;blur&quot;,s),t.addEventListener(&quot;transitioncancel&quot;,d),t.addEventListener(&quot;transitionend&quot;,d)}function i(o){o.querySelectorAll?.(&quot;.expressive-code .copy button&quot;).forEach(e=&gt;e.addEventListener(&quot;click&quot;,u))}i(document);var m=new MutationObserver(o=&gt;o.forEach(e=&gt;e.addedNodes.forEach(a=&gt;{i(a)})));m.observe(document.body,{childList:!0,subtree:!0});document.addEventListener(&quot;astro:page-load&quot;,()=&gt;{i(document)});})();}catch(e){console.error(&quot;[EC] copy-js-module failed:&quot;,e)}&lt;/script&gt;&lt;figure class=&quot;frame&quot;&gt;&lt;figcaption class=&quot;header&quot;&gt;&lt;/figcaption&gt;&lt;pre data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;div class=&quot;ec-line&quot;&gt;&lt;div class=&quot;gutter&quot;&gt;&lt;div class=&quot;ln&quot; aria-hidden=&quot;true&quot;&gt;1&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;span style=&quot;--0:#e1e4e8;--1:#24292e&quot;&gt;Creating a new git repository &gt; create the site with NodeJS &gt; connect &amp;#x26; auto push to 3rd party host &gt; manage your domain &gt; compare the features &amp;#x26; price for each web host to best suits your objective or language.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;copy&quot;&gt;&lt;div aria-live=&quot;polite&quot;&gt;&lt;/div&gt;&lt;button title=&quot;Copy to clipboard&quot; data-copied=&quot;Copied!&quot; data-code=&quot;Creating a new git repository &gt; create the site with NodeJS &gt; connect &amp;#x26; auto push to 3rd party host &gt; manage your domain &gt; compare the features &amp;#x26; price for each web host to best suits your objective or language.&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/button&gt;&lt;/div&gt;&lt;/figure&gt;&lt;/div&gt;
&lt;p&gt;대부분의 프로젝트에서 다른 부분은 “create the site with NodeJS”뿐이며, 여기서는 Python을 써도 되지만 배운 다른 것들은 여전히 적용됩니다.&lt;/p&gt;
&lt;h3 id=&quot;블로그-만들기에-대해-더&quot;&gt;블로그 만들기에 대해 더&lt;/h3&gt;
&lt;p&gt;가장 큰 어려움은 블로그 기능 자체가 아닙니다. 바로 댓글 섹션입니다. 초보자로서 블로그를 쓰고 콘텐츠에 집중하고 싶다면, 그냥 WordPress를 쓰는 것을 추천합니다. 모든 것이 제공되고 번거로움이 없습니다.&lt;/p&gt;
&lt;p&gt;그렇지 않다면 정적 블로그에 댓글 섹션을 통합하기 위해 Disqus를 사용할 수 있습니다(프라이버시 문제와 메모리를 많이 잡아먹는 로딩으로 평판이 좋지 않습니다). 또는 GitHub 로그인을 지원하는 오픈 소스 대안을 사용할 수도 있습니다. 하지만 제가 아는 한 무료이면서 Google 로그인을 허용하는 것은 하나도 없습니다. 아니면 자체 백엔드 댓글 서버를 만들 수도 있지만, 그러면 스팸 필터링 같은 것도 처리해야 합니다. 저에게는 그다지 이상적이지 않았습니다. 결국 그냥 Disqus를 사용했지만, 로딩 시간을 절약하기 위해 사용자가 “Show comments”를 클릭할 때까지 자동 로드되지 않게 했습니다.&lt;/p&gt;
&lt;h3 id=&quot;chatgpt에-대해&quot;&gt;ChatGPT에 대해&lt;/h3&gt;
&lt;p&gt;어느 정도까지만 도움이 됩니다. 복잡한 로직에는 사용하지 마세요. 보통 문제가 생깁니다. 짜증나는 문제 중 하나는 코드를 변경하면서 그 사실을 알려주지 않는 것입니다. 초안에는 도움이 됩니다. 버그 없는 코드를 원한다면 적합하지 않습니다. 절대 그렇게 해 주지 않습니다. 또한 코드를 다시 검토해 달라고 요청할수록 오류가 더 많이 생긴다는 것도 깨달았습니다. 그냥 직접 배워서 작성하는 것보다 짜증나고 시간이 많이 걸렸습니다.&lt;/p&gt;
&lt;h3 id=&quot;다음은&quot;&gt;다음은&lt;/h3&gt;
&lt;p&gt;회원가입/로그인 인증과 SQL 데이터베이스 서버를 갖춘 실제 백엔드를 구축하는 방법을 배우려고 합니다. 이번에는 Django를 시도해서 크로스 플랫폼 앱에서 작동하는 백엔드를 만들어 볼지도 모르겠습니다.&lt;/p&gt;
&lt;h2 id=&quot;목표&quot;&gt;목표&lt;/h2&gt;
&lt;p&gt;계속 배우고 흥미로운 프로젝트를 만드는 것.&lt;/p&gt;
&lt;p&gt;읽어 주셔서 감사합니다!&lt;/p&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/75e9b75e-26c5-4bd2-9584-6a3974f879c9"/><enclosure url="https://cms.hongct.com/assets/75e9b75e-26c5-4bd2-9584-6a3974f879c9" length="457560" type="image/jpeg"/></item><item><title>지원되지 않는 macOS에서 Xcode 15를 설치하는 방법</title><link>https://hongcheung.com/ko/post/how-to-get-xcode-15-on-unsupported-macos/</link><guid isPermaLink="true">https://hongcheung.com/ko/post/how-to-get-xcode-15-on-unsupported-macos/</guid><description>Apple은 항상 OS 요구 사항으로 Mac을 제한하지만, 이를 우회할 방법이 있습니다.</description><pubDate>Sat, 04 Nov 2023 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;img src=&quot;https://cms.hongct.com/assets/b02ab264-b26d-4f30-bb88-2bd843b771f6&quot; alt=&quot;지원되지 않는 macOS에서 Xcode 15를 설치하는 방법&quot; referrerpolicy=&quot;no-referrer&quot; loading=&quot;lazy&quot;/&gt;&lt;/p&gt;&lt;p&gt;제가 아는 한, 두 가지 방법이 있습니다.&lt;/p&gt;
&lt;h2 id=&quot;1-macos-업데이트하기&quot;&gt;1. macOS 업데이트하기&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Monterey(또는 그 이전 버전)를 사용 중이라면, 지원되지 않는 Mac에서 OpenCore Legacy Patcher를 사용해 macOS를 업데이트해 보세요. &lt;a href=&quot;how-to-update-your-old-macbook-to-ventura-using-opencore-legacy-patcher&quot;&gt;여기 가이드를 따라 하세요&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;2-지원-파일을-xcode-디렉터리에-복사하기&quot;&gt;2. 지원 파일을 Xcode 디렉터리에 복사하기&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;지원 파일을 Xcode 폴더에 복사하면 iOS16 개발까지 지원하도록 Xcode를 업데이트하는 쉬운 방법입니다. GitHub 저장소는 &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://github.com/filsv/iOSDeviceSupport&quot;&gt;여기&lt;/a&gt;에 있습니다.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;하지만 iOS17에서는 Apple이 몇 가지를 변경했기 때문에 지원하기가 더 어려워졌고, &lt;a rel=&quot;nofollow noopener noreferrer&quot; target=&quot;_blank&quot; href=&quot;https://github.com/filsv/iOSDeviceSupport/issues/178&quot;&gt;다른 방법&lt;/a&gt;이 필요합니다.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;저는 OCLP로 macOS 업그레이드에 성공했기 때문에, 어쨌든 번거로움이 적은 python 방법은 아직 시도해 보지 않았습니다. 행운을 빕니다.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;</content:encoded><media:thumbnail url="https://cms.hongct.com/assets/b02ab264-b26d-4f30-bb88-2bd843b771f6"/><enclosure url="https://cms.hongct.com/assets/b02ab264-b26d-4f30-bb88-2bd843b771f6" length="35370" type="image/jpeg"/></item></channel></rss>