diff --git a/Administration.adoc b/Administration.adoc index 4d368283076..6dfa43771b8 100644 --- a/Administration.adoc +++ b/Administration.adoc @@ -151,19 +151,19 @@ With the cross-compare fork feature of GitHub, you can easily update to the late .How To Update Your HubPress Instance to the Latest Version . Click the `Compare` button in your HubPress repository. + -image::maintain_the_latest_hubpress_01.png[Click Compare button] +image::https://raw.githubusercontent.com/HubPress/dev.hubpress.io/e57b221/docs/images/maintain_the_latest_hubpress_01.png[Click Compare button] + . Change the base fork to your repository, and set the branch according to your repository configuration (`master` or `gh-pages`). + -image::maintain_the_latest_hubpress_02.png[Set the base fork] +image::https://raw.githubusercontent.com/HubPress/dev.hubpress.io/e57b221/docs/images/maintain_the_latest_hubpress_02.png[Set the base fork] + . Select `Compare across forks`. + -image::maintain_the_latest_hubpress_03.png[Click compare across forks] +image::https://raw.githubusercontent.com/HubPress/dev.hubpress.io/e57b221/docs/images/maintain_the_latest_hubpress_03.png[Click compare across forks] + . Change the head fork to the `HubPress/hubpress.io` repository. + -image::maintain_the_latest_hubpress_04.png[Set the head fork] +image::https://raw.githubusercontent.com/HubPress/dev.hubpress.io/e57b221/docs/images/maintain_the_latest_hubpress_04.png[Set the head fork] + . Create the Pull Request. . Apply the Pull Request to your instance of HubPress. diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index a20f7f577dd..58fb65864ce 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -1,3 +1,59 @@ +## 0.9.2 + +* fix(content): fix the smap removed with the upgrade to asciidoctor 1.5.6. Fix HubPress/hubpress.io#538 + +## 0.9.1 + +* fix(navigation): add GA in casper, change the url of the logo and replace gratipay with opencollective + +## 0.9.0 + +* feat(post): add a new preview with the target result with the template +* feat(template): update casper to the last version +* feat(settings): add navigation, a paypal and a opencollective entry +* feat(page): add support of page +* feat(blog): we can now specify a target directory for the pagination +* fix(theme): fix the date in the theme ghostium +* tech(pouchdb): remove pouchdb and use lokijs now +* tech(nuxt): now hubpress use nuxt + +## 0.8.1 + +* fix(github): add a cached commit to avoid browser cache when getting the current commit of the branch - fix #496, #505, #515 +* fix(post): reset the number of elements to publish before each publish actions +* fix(post): change the MathJax CDN and add the rendering of MathJax in the preview - fix #267 + +## 0.8.0 + +* feat(startup): add a panel to define the username, the repositoryName, the branch and the CNAME before login +* fix(tag): fix the tag generation by removing useless space with a trim +* fix(theme): add the highlightjs css and upgrade to the last version, fix all themes to have a correct rendering +* feat(theme): add a new (black) theme The Shell + +## 0.7.3 + +* fix(init): fix a typo when initiliazing with a element in localStorage for hubpress:sync +* feat(chat): add the sidecar chat linked with gitter.im/hubpress/hubpress.io + +## 0.7.2 + +* fix(rss): rss was not reseted when no post +* fix(theme): report themes omitted during the release 0.7.1 :( + +## 0.7.1 + +* fix(theme): Error with http request (and not https) for included stylesheet HubPress/hubpress.io#475 +* fix(post): Problem to show all content of a blog post HubPress/hubpress.io#483 +* fix(theme): ld+json is null HubPress/hubpress.io#488 + +## 0.7.0 + +* technical release, move from react/redux to vue/vuex +* remove material design and use semanticUI now +* feat(posts): add filter +* feat(post): add a popup to display basic asciidoc syntax +* feat(team): add a team page + ## 0.6.0 * feat(rss): add the generation of the RSS feed diff --git a/README-es.adoc b/README-es.adoc index 12a3f777678..641f3c12eba 100644 --- a/README-es.adoc +++ b/README-es.adoc @@ -53,7 +53,7 @@ Si deseas tener tu blog en un dominio personalizado, o si ya estás usando tu do . En la configuración del Repositorio, establece la rama por defecto a `gh-pages`: + -image:http://hubpress.io/img/settings-gh-pages.png[Settings gh-pages,400] +image::https://cloud.githubusercontent.com/assets/8563047/13872457/28d53c9a-ed2e-11e5-9d13-65f5bf2cbbf9.png[Settings gh-pages,400] . cambia tu repositorio a la rama *gh-pages* + image:http://hubpress.io/img/switch-gh-pages.png[Install complete,300] diff --git a/README-ja.adoc b/README-ja.adoc index 646b1466834..48a44fb6256 100644 --- a/README-ja.adoc +++ b/README-ja.adoc @@ -57,7 +57,7 @@ image:http://hubpress.io/img/home-install.png[Install complete,300] . リポジトリの設定からデフォルトのブランチを `gh-pages` に設定 + -image:http://hubpress.io/img/settings-gh-pages.png[Settings gh-pages,400] +image::https://cloud.githubusercontent.com/assets/8563047/13872457/28d53c9a-ed2e-11e5-9d13-65f5bf2cbbf9.png[Settings gh-pages,400] . *gh-pages* ブランチに移動。 + image:http://hubpress.io/img/switch-gh-pages.png[Install complete,300] diff --git a/README-ko.adoc b/README-ko.adoc index cc3ac2fc97d..9b844cc9651 100644 --- a/README-ko.adoc +++ b/README-ko.adoc @@ -1,48 +1,52 @@ += HubPress :toc: macro :toclevels: 4 :sectnums: -= HubPress - toc::[] -HubPress는 GitHub Pages와 http://asciidoctor.org/docs/user-manual/[AsciiDoc] 를 이용해 블로그를 만들 수 있는 무료 오픈 소스 도구입니다. - -https://gratipay.com/hubpress/[HubPress] on Gratipay image:https://avatars1.githubusercontent.com/u/1744073?v=3&s=24[]. +HubPress는 GitHub Pages와 http://asciidoctor.org/docs/user-manual/[AsciiDoc] 을 이용해 블로그를 만들 수 있는 무료 오픈 소스 도구입니다. == HubPress란? -image::http://hubpress.io/img/editor.png[] +image::https://cloud.githubusercontent.com/assets/2006548/23680524/d7cbf68e-038b-11e7-8465-5c70abd852e1.gif[] -HubPress는 블로그를 쉽게 관리할 수 있도록 도와주는 웹 애플리케이션입니다. HubPress는 다음과 같은 기능들을 제공합니다: +HubPress는 쉽게 블로그를 관리할 수 있게 도와주는 웹 애플리케이션입니다. HubPress는 다음과 같은 기능들을 제공합니다: * 블로그 포스트 작성을 위한 WYSIWYG 에디터. -* 콘텐츠를 원하는 형태로 표현하기 위한 http://asciidoctor.org/docs/user-manual/[AsciiDoc markup]. -* 블로그 콘텐츠를 커스터마이징할 수 있는 관리자 콘솔. +* http://asciidoctor.org/docs/user-manual/[AsciiDoc] 을 이용한 컨텐츠 구성. +* 블로그 컨텐츠를 관리할 수 있는 관리자 콘솔. * 블로그 댓글 기능을 지원하는 Disqus 플랫폼. * 방문자 활동을 추적할 수 있는 구글 분석기. -* 즉시 사용가능한 각종 테마. - -블로그 호스팅은 GitHub Pages에 의해 제공됩니다. +* 각종 테마. -만약 이 문서에서 잘못 기재된 사항을 발견했다면 issue를 생성하여 우리에게 알려주길 바랍니다. HubPress를 향상시키기 위한 당신의 노력에 항상 감사드립니다. Pull Requests는 *언제나* 환영합니다. +블로그 호스팅은 GitHub Pages 에 의해 제공됩니다. -성공적인 HubPress 기여자가 되기 위한 추가 정보는 link:CONTRIBUTING.adoc[Contributors Guide]에서 확인하세요. +HubPress를 향상시키기 위한 당신의 노력에 항상 감사드립니다. +Pull Requests는 *언제나* 환영합니다. +프로젝트에 공헌하기 위한 자세한 방법은 HubPress Knowledgebase 에서 제공하는 https://hubpress.gitbooks.io/hubpress-knowledgebase/content/develop/contribute_pr.html[How do I contribute a PR] 문서를 참조하시기 바랍니다. == 브라우저 호환성 -HubPress는 Chrome Desktop, Firefox Desktop, 안드로이드용 Chrome과 호환됩니다. +HubPress는 Chrome Desktop, Firefox Desktop, 안드로이드용 Chrome 과 호환됩니다. == 시작하기 === 저장소 Fork -당신의 GitHub 계정 안에 이 저장소(repository)에 대한 복사본을 만들려면 Fork 아이콘 image:http://hubpress.io/img/fork-icon.png[Fork,80]을 클릭하세요. +당신의 GitHub 계정에서 이 저장소(repository)에 대한 복사본을 만들려면 Fork 아이콘 image:http://hubpress.io/img/fork-icon.png[Fork,80]을 클릭하세요. -=== github.io 도메인 사용 +=== 정확한 브랜치 설정 -만약 당신이 GitHub Pages 도메인을 사용한 적이 없다면, 이 방법을 이용해 HubPress 를 빠르게 설치할 수 있을 것입니다. 이 방법을 통해, HubPress를 배포하기 위해 필요한 몇가지 절차만 마치면 HubPress를 이용한 블로그 서비스를 바로 시작할 수 있습니다. +주 의: GitHub 브랜치 설정은 중요합니다. 잘못된 브랜치 설정시 HubPress 에 처음 로그인할 때 문제가 발생할 수 있습니다. -IMPORTANT: 만약 현재 다른 프로젝트를 위해 `username.github.io` GitHub Pages 도메인을 사용 중이거나 커스텀 도메인 네임을 사용하길 원한다면 다음 단계를 참조하길 바랍니다. +아래 2개 섹션을 *자세히* 읽은 다음, 브랜치를 선택 또는 `config.json` 파일을 편집하기 바랍니다. + +==== GitHub Pages 도메인을 다른 프로젝트에 사용하고 있지 않은 경우 +github.io Pages 도메인을 사용하지 않고 있는 상태라면 이 도메인을 이용해 HubPress 를 빠르게 설정할 수 있습니다. + +HubPress를 배포하기 위해 필요한 몇가지 절차만 마치면 HubPress를 이용한 블로그 서비스를 바로 시작할 수 있습니다. + +IMPORTANT: 현재 다른 프로젝트를 위해 `[username].github.io` GitHub Pages 도메인을 사용 중이거나, 커스텀 도메인 네임을 사용하고 싶다면 다음 섹션으로 건너뛰세요. . 당신의 저장소 이름을 `.github.io` 로 변경합니다. @@ -50,45 +54,55 @@ IMPORTANT: 만약 현재 다른 프로젝트를 위해 `username.github.io` GitH + image:http://hubpress.io/img/edit-config.png[Edit config] + -아래의 파라미터들은 필수 항목입니다 : +아래의 파라미터들은 필수 항목입니다: + -* `username`, 당신의 GitHub 사용자 이름, -* `repositoryName`, fork한 저장소의 새로운 이름, 즉 `.github.io`. -. 변경사항을 Commit 한 뒤, 브라우저에 아래의 GitHub Pages 도메인을 입력하세요 : `https://.github.io/`. +* `username`, 당신의 GitHub 사용자 이름. 예를 들면, `janesmith`. +* `repositoryName`, fork한 저장소의 이름. 예를 들면, `janesmith.github.io`. +. 변경사항을 Commit 한 뒤, 브라우저에서 `https://janesmith.github.io/` GitHub Pages 도메인을 입력하세요. . HubPress를 제대로 설정하였다면 아래의 화면이 나타날 것입니다. + image:http://hubpress.io/img/home-install.png[Install complete,300] -=== 커스텀 도메인 또는 이미 사용하고 있는 GitHub Page 도메인 사용 +==== 커스텀 도메인을 사용하고 싶거나 또는 GitHub Pages 도메인을 사용 중인 경우 -만약 블로그에 커스텀 도메인을 사용하고 싶거나, 다른 프로젝트에서 GitHub Pages 도메인을 이미 사용하고 있는 경우에는 추가적인 설정이 필요합니다. +만약 커스텀 도메인을 사용하고 싶거나, 다른 프로젝트에서 GitHub Pages 도메인을 사용하고 있는 경우라면 추가적인 설정이 필요한데, 그것은 GitHub Pages 사이트의 서브 도메인으로 블로그를 설정하는 것입니다. . 저장소(repository) 설정에서 default branch 를 `gh-pages`로 설정합니다. : + -image:http://hubpress.io/img/settings-gh-pages.png[Settings gh-pages,400] -. 당신의 저장소 브랜치를 `gh-pages`로 변경합니다. +image::https://cloud.githubusercontent.com/assets/8563047/13872457/28d53c9a-ed2e-11e5-9d13-65f5bf2cbbf9.png[Settings gh-pages, 400] +. 저장소 브랜치를 `gh-pages`로 변경합니다. + image:http://hubpress.io/img/switch-gh-pages.png[Install complete,300] + -. `hubpress/config.json` 파일을 설정합니다. +. `hubpress/config.json` 파일의 값들을 설정합니다. + image:http://hubpress.io/img/edit-config-gh-pages.png[Edit config] + 아래의 파라미터들은 필수 항목입니다 : + -* `username`, 당신의 GitHub 사용자 이름, -* `repositoryName`, fork한 저장소의 이름. 예시) `hubpress.io`. -. 변경사항을 Commit 한 뒤, 브라우저에 아래의 GitHub Pages 도메인을 입력하세요: -`https://.github.io//`. +* `username`, 당신의 GitHub 사용자 이름. 예를 들면, `janesmith`. +* `repositoryName`, fork한 저장소의 이름. 예를 들면, `janesmith.github.io`. +. 변경사항을 Commit 한 뒤, 브라우저에서 `https://janesmith.github.io//` GitHub Pages 도메인을 입력하세요. . HubPress를 제대로 설정하였다면 아래의 화면이 나타날 것입니다. + image:http://hubpress.io/img/home-install.png[Install complete,300] -당신은 이제 HubPress를 성공적으로 설정하였으며, 소셜 네트워크 정보, 각종 테마 등을 적용하여 블로그를 커스터마이징함으로써 당신 고유의 블로그를 만들 수 있습니다. +== 문제 해결하기 + +위의 설명을 따라 HubPress 를 설치/설정했는데도 로그인 화면이 나오지 않은 경우, 위의 설명들을 다시 한번 주의깊게 읽어보시길 바랍니다. + +이 문제는 주로 잘못된 브랜치 설정때문에 발생하기 때문에 HubPress 를 시작하기 전에 이 부분부터 확인해보시길 바랍니다. + +IMPORTANT: HubPress 에 처음 로그인 할 때 발생하는 대부분의 문제는 잘못된 설정때문에 발생합니다. + +설정 과정을 다시 한번 확인했음에도 불구하고, 여전히 문제를 해결하지 못했다면 우선 https://hubpress.gitbooks.io/hubpress-knowledgebase/content/[HubPress Knowledgebase] 를 참조하여 이와 유사한 문제가 있는지 검색해보세요. -HubPress 블로그 관리에 관한 추가 정보는 link:Administration.adoc[Administration Guide]를 참조하세요. +만약 Knowledgebase 에서도 해결책을 찾지 못했다면, https://hubpressio.slack.com[HubPress Slack] 에 접속하여 #general 채널에 관련된 이슈를 보고해주시기 바랍니다. -설정을 마쳤으니 당신의 블로그에 첫번째 포스팅을 할 수 있습니다. link:Writers_Guide.adoc[Writer's Guide]를 참조하여 to write 첫번째 블로그 포스트를 성공적으로 작성해보세요. +== 블로그 시작하기 +당신은 이제 HubPress를 성공적으로 설정하였으며, 소셜 네트워크 정보, 각종 테마 등을 적용하여 자신만의 특색있는 블로그를 만들 수 있습니다. + +HubPress 사용법에 대한 추가 정보는 https://hubpress.gitbooks.io/hubpress-knowledgebase/content/[HubPress Knowledgebase] 에서 얻을 수 있습니다. == HubPress 팀 @@ -96,21 +110,12 @@ HubPress 블로그 관리에 관한 추가 정보는 link:Administration.adoc[Ad 영문 문서 http://github.com/jaredmorgs[Jared Morgan] (Twitter - http://twitter.com/jaredmorgs[@jaredmorgs]). -일본어 문서 번역: - -* https://github.com/takkyuuplayer[takkyuuplayer], -* https://github.com/hinaloe[hinaloe]. - 한글 문서 번역 * https://github.com/dakeshi[sangjoon moon]. -== 기 부 - -https://gratipay.com/hubpress/[Gratipay]를 통해 HubPress에 도움을 줄 수 있습니다! +== 프로젝트 후원하기 -image::https://cloud.githubusercontent.com/assets/2006548/12901016/7b09da22-ceb9-11e5-93f7-16ab135b2e2e.png[] -이것은 우리에게 도움을 줄 수 있는 유일한 방법은 아니지만 매우 환영하는 방법입니다. -기부는 플랫폼에 대한 당신의 고마움을 표현할 수 있는 좋은 방법입니다. 이러한 기부는 우리를 하루 일과와 가족과 함께 있는 시간을 쪼개 HubPress를 더 멋진 블로깅 플랫폼으로 만들기 위해 헌신할 수 있게 합니다. +HubPress 는 :beer:, :coffee:, :pizza: 의 도움으로 운영됩니다. -image::https://cloud.githubusercontent.com/assets/2006548/12901085/cc5ee908-ceb9-11e5-9d8b-c526f081f1e9.png[] +HubPress Settings 메뉴에 있는 donation 메뉴를 클릭해서 감사함을 전하세요: 여러분의 성원에 항상 감사드립니다. diff --git a/README-pt.adoc b/README-pt.adoc index e50e33d7637..2d9328a5c6e 100644 --- a/README-pt.adoc +++ b/README-pt.adoc @@ -53,8 +53,8 @@ Se você deseja ter o seu blog em um domínio personalizado, ou se você já est . Nas configurações do repositório, defina a branch padrão para `gh-pages`: + -image:http://hubpress.io/img/settings-gh-pages.png[Settings gh-pages,400] -. Mude o seu repositório para a branch *gh-pages*. +image::https://cloud.githubusercontent.com/assets/8563047/13872457/28d53c9a-ed2e-11e5-9d13-65f5bf2cbbf9.png[Settings gh-pages,400] +. Mude o seu repositório para a branch *gh-pages*. + image:http://hubpress.io/img/switch-gh-pages.png[Install complete,300] + diff --git a/README-zh.adoc b/README-zh.adoc index 95a46b8c84c..d0abc0e1f13 100644 --- a/README-zh.adoc +++ b/README-zh.adoc @@ -53,7 +53,7 @@ image:http://hubpress.io/img/home-install.png[Install complete,300] . 在repository的settings选项中, 把默认branch设为 `gh-pages` : + -image:http://hubpress.io/img/settings-gh-pages.png[Settings gh-pages,400] +image::https://cloud.githubusercontent.com/assets/8563047/13872457/28d53c9a-ed2e-11e5-9d13-65f5bf2cbbf9.png[Settings gh-pages,400] . 现在设定当前repository的branch为 *gh-pages* + image:http://hubpress.io/img/switch-gh-pages.png[Install complete,300] diff --git a/README.adoc b/README.adoc index 9a4e4b0fc61..cce1eb5d7ab 100644 --- a/README.adoc +++ b/README.adoc @@ -1,17 +1,17 @@ += HubPress :toc: macro :toclevels: 4 :sectnums: -= HubPress - toc::[] A free, open source tool you can use to build a blog using GitHub Pages and http://asciidoctor.org/docs/user-manual/[AsciiDoc]. -https://gratipay.com/hubpress/[HubPress] on Gratipay image:https://avatars1.githubusercontent.com/u/1744073?v=3&s=24[]. + +WARNING: The project is not actively maintained anymore. == What Is HubPress? -image::http://hubpress.io/img/editor.png[] +image::https://cloud.githubusercontent.com/assets/2006548/23680524/d7cbf68e-038b-11e7-8465-5c70abd852e1.gif[] HubPress is a web application that makes it easy for you to maintain a blog. It provides the following features: @@ -19,30 +19,38 @@ HubPress is a web application that makes it easy for you to maintain a blog. It * Backed by the power of http://asciidoctor.org/docs/user-manual/[AsciiDoc markup] for tight control of content presentation to your requirements. * Administration console to customise many aspect of your blog's content. * Disqus integration for blog comments. -* Google Analytics integration to track visitor activity. +* Google Analytics integration to track visitor activity. * A number of different themes shipped with the product, ready to use. Hosting for your blog is provided by GitHub Pages. -If you see something wrong with the documentation, please raise an issue. Your help with improving every aspect of HubPress is greatly appreciated. Pull Requests are *always* welcome. - -See the link:CONTRIBUTING.adoc[Contributors Guide] for more information about being a successful HubPress contributor. +Your help with improving every aspect of HubPress is greatly appreciated. +Pull Requests are *always* welcome. +See https://hubpress.gitbooks.io/hubpress-knowledgebase/content/develop/contribute_pr.html[How do I contribute a PR] on the HubPress Knowledgebase to learn more about contributing. -== Browser Compatibility +== Browser compatibility HubPress is compatible with Chrome Desktop, Firefox Desktop, and Chrome for Android. -== Getting Started +== Getting started -=== Fork the Repository +=== Fork the repository Click the Fork icon image:http://hubpress.io/img/fork-icon.png[Fork,80] to create a copy of this repository within your GitHub account. -=== Use the github.io Domain +=== Configure the correct branch -If you have never used your GitHub Pages domain before, you can use this procedure to quickly set up HubPress. With this method, only a few steps are required to get HubPress deployed and ready for use. +IMPORTANT: The GitHub branch you select is important, and choosing the incorrect one will cause issues with logging onto HubPress for the first time. -IMPORTANT: If you are currently using your `username.github.io` GitHub Pages domain for another project, or if you want to use a custom domain name, skip to the next procedure for instructions. +Read the next two sections *carefully* *_before_* choosing which branch and `config.json` file to edit. + +==== I am not using my GitHub Pages domain for any other project + +If you are not using your github.io Pages domain you can use it to quickly set up HubPress. + +With this method, only a few steps are required to get HubPress deployed and ready for use. + +IMPORTANT: If you are currently using your `[username].github.io` GitHub Pages domain for another project, or if you want to use a custom domain name, skip to the next procedure for instructions. . Rename your repository to `.github.io` @@ -52,20 +60,22 @@ image:http://hubpress.io/img/edit-config.png[Edit config] + The following parameters are mandatory: + -* `username`, which is your GitHub user name, -* `repositoryName`, which is the new name of the repository fork, `.github.io`. -. Commit the changes, and open the GitHub Pages domain: `https://.github.io/`. +* `username`, which is your GitHub user name. For example `janesmith`. +* `repositoryName`, which is the new name of the repository fork using the pattern `janesmith.github.io`. +. Commit the changes, and open the GitHub Pages domain: `https://janesmith.github.io/`. . The following screen indicates you have correctly configured HubPress + image:http://hubpress.io/img/home-install.png[Install complete,300] -=== Use a Custom Domain or GitHub Page Domain Already In Use +==== I am using my GitHub Pages domain already, or I want to use a custom domain + +If you want your blog to be available on a custom domain, or you are _already using your GitHub Pages domain_ to host another project, some extra configuration is required. -If you want your blog to be available on a custom domain, or you are already using your GitHub Pages domain to host another project, some extra configuration is required. +You need to set your blog up on a sub-domain of your GitHub Pages site. . In the repository settings, set the default branch to `gh-pages`: + -image:http://hubpress.io/img/settings-gh-pages.png[Settings gh-pages,400] +image::https://cloud.githubusercontent.com/assets/8563047/13872457/28d53c9a-ed2e-11e5-9d13-65f5bf2cbbf9.png[Settings gh-pages, 400] . Switch your repository to the `gh-pages` branch. + image:http://hubpress.io/img/switch-gh-pages.png[Install complete,300] @@ -76,37 +86,46 @@ image:http://hubpress.io/img/edit-config-gh-pages.png[Edit config] + The following parameters are mandatory: + -* `username`, which is your GitHub user name, -* `repositoryName`, which is the repository fork. For example, `hubpress.io` if you did not rename it. -. Commit the changes, and open the GitHub Pages domain: `https://.github.io//`. +* `username`, which is your GitHub user name. For example `janesmith`. +* `repositoryName`, which is the new name of the repository fork. For example, `janesmith.github.io`. +. Commit the changes, and open the GitHub Pages domain: `https://janesmith.github.io//`. . The following screen indicates you have correctly configured HubPress + image:http://hubpress.io/img/home-install.png[Install complete,300] -Now you have successfully configured HubPress, you can customise it by adding social network information, experiment with different themes, and make your HubPress blog your own. +== Getting first-run help -See the link:Administration.adoc[Administration Guide] for the next steps you need to take in setting up your HubPress blog. +If you can't get past the login screen, re-read the instructions above. +You most likely have configured the wrong branch and will need to fix this before you can begin using HubPress. -Once you've completed the configuration aspects, you can write your first blog post. Follow the guidelines in the link:Writers_Guide.adoc[Writer's Guide] to write a sucessful first blog post. +IMPORTANT: Misconfiguration is the most common issue for folks when trying to log onto HubPress for the first time. -== HubPress Team +If you have double-checked the setup procedure, you can move to the next step: support. + +First check https://hubpress.gitbooks.io/hubpress-knowledgebase/content/[HubPress Knowledgebase] and use the search function to see if your problem has already been documented as an article. + +If your issue is not covered by the Knowledgebase, join https://hubpressio.slack.com[HubPress Slack] and report the issue in #general. + +== How do I start blogging? + +Now you have successfully configured HubPress, you can customise it by adding social network information, experiment with different themes, and make your HubPress blog your own. + + +You can find out how to use HubPress by reading the https://hubpress.gitbooks.io/hubpress-knowledgebase/content/[HubPress Knowledgebase], which is hosted by the team at https://gitbook.com[GitBook.com]. + +== The HubPress team Code by http://github.com/anthonny[Anthonny Quérouil] (Twitter - http://twitter.com/anthonny_q[@anthonny_q]). -English Docs by http://github.com/jaredmorgs[Jared Morgan] (Twitter - http://twitter.com/jaredmorgs[@jaredmorgs]). +English docs by http://github.com/jaredmorgs[Jared Morgan] (Twitter - http://twitter.com/jaredmorgs[@jaredmorgs]). Translations (Japanese) by: -* https://github.com/takkyuuplayer[takkyuuplayer], +* https://github.com/takkyuuplayer[takkyuuplayer], * https://github.com/hinaloe[hinaloe]. -== Donations - -HubPress is now on https://gratipay.com/hubpress/[Gratipay]! - -image::https://cloud.githubusercontent.com/assets/2006548/12901016/7b09da22-ceb9-11e5-93f7-16ab135b2e2e.png[] +== Supporting the project -It's not the only way you can help us, but it is certainly a welcome one. -Donations are a great way to show your appreciation for the platform: it inspires us to dedicate extra time away from our families and day jobs to make HubPress an awesome blogging platform for you. +HubPress is powered by :beer:, :coffee: and :pizza:. -image::https://cloud.githubusercontent.com/assets/2006548/12901085/cc5ee908-ceb9-11e5-9d8b-c526f081f1e9.png[] +Use the donation options in the HubPress Settings menu to say thanks: we really appreciate it. diff --git a/_nuxt/LICENSES b/_nuxt/LICENSES new file mode 100644 index 00000000000..7a87a8d2b73 --- /dev/null +++ b/_nuxt/LICENSES @@ -0,0 +1,315 @@ +/**! + + @license + handlebars v4.0.11 + +Copyright (C) 2011-2017 by Yehuda Katz + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +*/ + +/*! + * + * Copyright 2009-2017 Kris Kowal under the terms of the MIT + * license found at https://github.com/kriskowal/q/blob/v1/LICENSE + * + * With parts by Tyler Close + * Copyright 2007-2009 Tyler Close under the terms of the MIT X license found + * at http://www.opensource.org/licenses/mit-license.html + * Forked at ref_send.js version: 2009-05-11 + * + * With parts by Mark Miller + * Copyright (C) 2011 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +/*! https://mths.be/utf8js v2.1.2 by @mathias */ + +/*! + * Platform.js + * Copyright 2014-2018 Benjamin Tan + * Copyright 2011-2013 John-David Dalton + * Available under MIT license + */ + +/** + * @file + * @copyright 2013 Michael Aufreiter (Development Seed) and 2016 Yahoo Inc. + * @license Licensed under {@link https://spdx.org/licenses/BSD-3-Clause-Clear.html BSD-3-Clause-Clear}. + * Github.js is freely distributable. + */ + +/** + * @file + * @copyright 2013 Michael Aufreiter (Development Seed) and 2016 Yahoo Inc. + * @license Licensed under {@link https://spdx.org/licenses/BSD-3-Clause-Clear.html BSD-3-Clause-Clear}. + * Github.js is freely distributable. + */ + +/*! + * jQuery JavaScript Library v3.3.1 + * https://jquery.com/ + * + * Includes Sizzle.js + * https://sizzlejs.com/ + * + * Copyright JS Foundation and other contributors + * Released under the MIT license + * https://jquery.org/license + * + * Date: 2018-01-20T17:24Z + */ + +/*! + * jQuery JavaScript Library v3.3.1 + * https://jquery.com/ + * + * Includes Sizzle.js + * https://sizzlejs.com/ + * + * Copyright JS Foundation and other contributors + * Released under the MIT license + * https://jquery.org/license + * + * Date: 2018-01-20T17:24Z + */ + +/*! + * Sizzle CSS Selector Engine v2.3.3 + * https://sizzlejs.com/ + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license + * http://jquery.org/license + * + * Date: 2016-08-08 + */ + +/** + * @file + * @copyright 2016 Matt Smith (Development Seed) + * @license Licensed under {@link https://spdx.org/licenses/BSD-3-Clause-Clear.html BSD-3-Clause-Clear}. + * Github.js is freely distributable. + */ + +/*! + * mime-db + * Copyright(c) 2014 Jonathan Ong + * MIT Licensed + */ + +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ + +/** + * @file + * @copyright 2013 Michael Aufreiter (Development Seed) and 2016 Yahoo Inc. + * @license Licensed under {@link https://spdx.org/licenses/BSD-3-Clause-Clear.html BSD-3-Clause-Clear}. + * Github.js is freely distributable. + */ + +/*! + * Vue.js v2.5.16 + * (c) 2014-2018 Evan You + * Released under the MIT License. + */ + +/** + * @license + * Lodash + * Copyright JS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ + +/** + * vuex v3.0.1 + * (c) 2017 Evan You + * @license MIT + */ + +//! moment.js + +/*! + * Determine if an object is a Buffer + * + * @author Feross Aboukhadijeh + * @license MIT + */ + +/** + * @file + * @copyright 2013 Michael Aufreiter (Development Seed) and 2016 Yahoo Inc. + * @license Licensed under {@link https://spdx.org/licenses/BSD-3-Clause-Clear.html BSD-3-Clause-Clear}. + * Github.js is freely distributable. + */ + +/** + * @file + * @copyright 2013 Michael Aufreiter (Development Seed) and 2016 Yahoo Inc. + * @license Licensed under {@link https://spdx.org/licenses/BSD-3-Clause-Clear.html BSD-3-Clause-Clear}. + * Github.js is freely distributable. + */ + +/** + * @file + * @copyright 2013 Michael Aufreiter (Development Seed) and 2016 Yahoo Inc. + * @license Licensed under {@link https://spdx.org/licenses/BSD-3-Clause-Clear.html BSD-3-Clause-Clear}. + * Github.js is freely distributable. + */ + +/** + * @file + * @copyright 2013 Michael Aufreiter (Development Seed) and 2016 Yahoo Inc. + * @license Licensed under {@link https://spdx.org/licenses/BSD-3-Clause-Clear.html BSD-3-Clause-Clear}. + * Github.js is freely distributable. + */ + +/** + * @file + * @copyright 2013 Michael Aufreiter (Development Seed) and 2016 Yahoo Inc. + * @license Licensed under {@link https://spdx.org/licenses/BSD-3-Clause-Clear.html BSD-3-Clause-Clear}. + * Github.js is freely distributable. + */ + +/*! + * mime-types + * Copyright(c) 2014 Jonathan Ong + * Copyright(c) 2015 Douglas Christopher Wilson + * MIT Licensed + */ + +/** + * @file + * @copyright 2013 Michael Aufreiter (Development Seed) and 2016 Yahoo Inc. + * @license Licensed under {@link https://spdx.org/licenses/BSD-3-Clause-Clear.html BSD-3-Clause-Clear}. + * Github.js is freely distributable. + */ + +/*! + * @overview es6-promise - a tiny implementation of Promises/A+. + * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) + * @license Licensed under MIT license + * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE + * @version v4.2.4+314e4831 + */ + +/** + * @file + * @copyright 2013 Michael Aufreiter (Development Seed) and 2016 Yahoo Inc. + * @license Licensed under {@link https://spdx.org/licenses/BSD-3-Clause-Clear.html BSD-3-Clause-Clear}. + * Github.js is freely distributable. + */ + +/** + * vue-meta v1.5.0 + * (c) 2018 Declan de Wet & Atinux + * @license MIT + */ + +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/ + +/*! + * XRegExp v2.0.0 + * (c) 2007-2012 Steven Levithan + * MIT License + */ + +/*! + * XRegExp Unicode Base v1.0.0 + * (c) 2008-2012 Steven Levithan + * MIT License + * Uses Unicode 6.1 + */ + +/*! + * XRegExp Unicode Categories v1.2.0 + * (c) 2010-2012 Steven Levithan + * MIT License + * Uses Unicode 6.1 + */ + +/*! + * XRegExp Unicode Scripts v1.2.0 + * (c) 2010-2012 Steven Levithan + * MIT License + * Uses Unicode 6.1 + */ + +/*! + * XRegExp Unicode Blocks v1.2.0 + * (c) 2010-2012 Steven Levithan + * MIT License + * Uses Unicode 6.1 + */ + +/*! + * XRegExp Unicode Properties v1.0.0 + * (c) 2012 Steven Levithan + * MIT License + * Uses Unicode 6.1 + */ + +/*! + * XRegExp.matchRecursive v0.2.0 + * (c) 2009-2012 Steven Levithan + * MIT License + */ + +/*! + * XRegExp.build v0.1.0 + * (c) 2012 Steven Levithan + * MIT License + * Inspired by RegExp.create by Lea Verou + */ + +/*! + * XRegExp Prototype Methods v1.0.0 + * (c) 2012 Steven Levithan + * MIT License + */ + +/** + * @file + * @copyright 2016 Yahoo Inc. + * @license Licensed under {@link https://spdx.org/licenses/BSD-3-Clause-Clear.html BSD-3-Clause-Clear}. + * Github.js is freely distributable. + */ diff --git a/_nuxt/app.0858676fdacf8833849c.js b/_nuxt/app.0858676fdacf8833849c.js new file mode 100644 index 00000000000..55c384d44e9 --- /dev/null +++ b/_nuxt/app.0858676fdacf8833849c.js @@ -0,0 +1 @@ +webpackJsonp([2],{"/NKE":function(e,t,n){"use strict";var i=n("wQtD"),o=n("SHkU");var r=function(e){n("r6qT")},a=n("VU/8")(i.a,o.a,!1,r,"data-v-0536f20d",null);t.a=a.exports},0:function(e,t){},"0F0d":function(e,t,n){"use strict";t.a={name:"no-ssr",props:["placeholder"],data:function(){return{canRender:!1}},mounted:function(){this.canRender=!0},render:function(e){return this.canRender?this.$slots.default&&this.$slots.default[0]:e("div",{class:["no-ssr-placeholder"]},this.$slots.placeholder||this.placeholder)}}},"0rCp":function(e,t,n){"use strict";var i=n("Dd8w"),o=n.n(i),r=n("YMuy"),a=n("LB67"),s=n("JtYm"),c=n("HUXV");t.a=o()({},r.a,a.a,s.a,c.a)},"0xYM":function(e,t,n){var i=n("vXEZ");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("34fa0f4a",i,!0,{sourceMap:!1})},1:function(e,t){},"1AqL":function(e,t,n){"use strict";t.a=function(e){return e.on("hubpress:request-local-synchronization",function(e){console.info("lokijsPlugin - hubpress:request-local-synchronization"),console.log("lokijsPlugin - hubpress:request-local-synchronization",e);var t=l.getCollection("content"),n=e.nextState.posts||[];return e.nextState.posts=n.map(function(e){e.type=e.type||"post";var n=t.findOne({"original.name":e.name}),i=void 0;return n?(console.log("lokijsPlugin - post found",e.name),n.original&&n.original.content!==e.content||n.published!==e.published?(console.log("lokijsPlugin - post have changed",e.name),e.$loki=n.$loki,e.meta=n.meta,i=t.update(e)):(console.log("lokijsPlugin - post have not changed",e.name),i=n)):(console.log("lokijsPlugin - post not found",e.name),e._id=s.a.v4(),i=t.insert(e)),l.saveDatabase(),i}),e}),e.on("application:receive-config",function(e){if(console.info("lokijsPlugin - application:receive-config"),console.log("lokijsPlugin - application:receive-config",e),l)return e;var t=new u("hubpress");return console.log("lokijs indexed",t),(l=new c("hubpress-"+e.nextState.config.meta.username+"-"+e.nextState.config.meta.repositoryName,{adapter:t})).loadDatabase(),l.getCollection("content")||l.addCollection("content",{unique:["name"]}),window.lokiDb=l,e}),e.on("hubpress:request-local-posts",function(e){console.info("lokijsPlugin - hubpress:request-local-posts"),console.log("lokijsPlugin - hubpress:request-local-posts",e);var t=l.getCollection("content").chain().find({}).simplesort("name",{desc:!0}).data();return e.nextState.posts=t,e}),e.on("requestSelectedPost",function(e){console.info("lokijsPlugin - requestSelectedPost"),console.log("lokijsPlugin - requestSelectedPost",e);var t=l.getCollection("content").findOne({_id:e.data.post._id});return e.data.selectedPost=t,e}),e.on("hubpress:request-local-post",function(e){console.info("lokijsPlugin - hubpress:request-local-post"),console.log("lokijsPlugin - hubpress:request-local-post",e);var t=l.getCollection("content").findOne({_id:e.nextState.post._id});return e.nextState.post=t||{_id:e.nextState.post._id},e}),e.on("requestSaveLocalPost",function(e){console.info("lokijsPlugin - requestSaveLocalPost"),console.log("lokijsPlugin - requestSaveLocalPost",e);var t=l.getCollection("content");if(t.findOne({_id:{$ne:e.nextState.post._id},name:e.nextState.post.name}))throw new Error("Post with the name "+e.nextState.post.name+" already exist");var n=t.findOne({_id:e.nextState.post._id});if(n){var i=o()(n,e.nextState.post);i.type=e.nextState.post.type||n.type||"post",e.nextState.post=t.update(i)}else e.nextState.post=t.insert(e.nextState.post);return l.saveDatabase(),e}),e.on("requestLocalPublishedPosts",function(e){console.info("lokijsPlugin - requestLocalPublishedPosts"),console.log("lokijsPlugin - requestLocalPublishedPosts",e);var t=l.getCollection("content").chain().find({"original.name":{$ne:null},published:{$eq:1},type:{$eq:"post"}}).simplesort("name",{desc:!0}).data();return e.nextState.publishedPosts=t,e}),e.on("requestLocalPublishedPages",function(e){console.info("lokijsPlugin - requestLocalPublishedPages"),console.log("lokijsPlugin - requestLocalPublishedPages",e);var t=l.getCollection("content").chain().find({"original.name":{$ne:null},published:{$eq:1},type:{$eq:"page"}}).simplesort("name",{desc:!0}).data();return e.nextState.publishedPages=t,e}),e.on("requestDeleteLocalPost",function(e){return console.info("lokijsPlugin - requestDeleteLocalPost"),console.log("lokijsPlugin - requestDeleteLocalPost",e),l.getCollection("content").findAndRemove({_id:e.nextState.post._id}),l.saveDatabase(),e}),{getName:function(){return"lokijsPlugin"}}};var i=n("woOf"),o=n.n(i),r=n("M4fF"),a=(n.n(r),n("RJtx")),s=n.n(a),c=n("7WZj"),u=(n.n(c),n("nM7d")),l=(n.n(u),void 0)},"1H2/":function(e,t,n){var i={"./index.ts":"fbRD"};function o(e){return n(r(e))}function r(e){var t=i[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}o.keys=function(){return Object.keys(i)},o.resolve=r,e.exports=o,o.id="1H2/"},2:function(e,t){},3:function(e,t){},"3fVB":function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"ui.top.attached.tabular.menu tab{height:100%}.settings-container{height:100%;overflow:auto}.settings-content{margin-top:60px}.settings-content .menu .item:hover{cursor:pointer}",""])},"3oxy":function(e,t,n){"use strict";t.a=function(e){return e.on("application:routes",function(e){return console.info("dashboardPlugin - application:routes"),console.log("dashboardPlugin - application:routes",e),e.nextState.routes.push({id:"dashboard",entries:[{path:"dashboard",name:"dashboard",component:i.a}]}),console.log("dashboardPlugin - application:routes - return",e),e}),{getName:function(){return"dashboardPlugin"}}};var i=n("ThI1")},"4/hK":function(e,t,n){var i=n("cOI0");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("4a61b6b0",i,!0,{sourceMap:!1})},"6+Pt":function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{},[n("h4",{staticClass:"ui dividing header"},[e._v("Informations")]),n("div",{staticClass:"field"},[n("label",[e._v("Title")]),n("input",{attrs:{type:"text",name:"hubpress-title",placeholder:"Title"},domProps:{value:e.site.title}})]),n("div",{staticClass:"field"},[n("label",[e._v("Description")]),n("input",{attrs:{type:"text",name:"hubpress-description",placeholder:"Description"},domProps:{value:e.site.description}})]),n("div",{staticClass:"field"},[n("label",[e._v("Logo")]),n("input",{attrs:{type:"text",name:"hubpress-logo",placeholder:"Logo"},domProps:{value:e.site.logo}})]),n("div",{staticClass:"field"},[n("label",[e._v("Cover image")]),n("input",{attrs:{type:"text",name:"hubpress-cover-image",placeholder:"Cover image"},domProps:{value:e.site.cover}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Rendering")]),n("div",{staticClass:"field"},[n("label",[e._v("Live preview render delay (ms)")]),n("input",{attrs:{type:"text",name:"hubpress-render-delay",placeholder:"300"},domProps:{value:e.meta.delay}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Generation")]),n("div",{staticClass:"field"},[n("label",[e._v("Theme")]),n("input",{attrs:{type:"text",name:"hubpress-theme",placeholder:"Theme"},domProps:{value:e.theme.name}})]),n("div",{staticClass:"field"},[n("label",[e._v("Posts per page")]),n("input",{attrs:{type:"text",name:"hubpress-posts-per-page",placeholder:"Posts per page"},domProps:{value:e.site.postsPerPage}})]),n("div",{staticClass:"field"},[n("label",[e._v('Blog path (the pagination of your posts will be available under this path). You must create a page with a the title "index"')]),n("input",{attrs:{type:"text",name:"hubpress-blog-path",placeholder:"Blog path (default: '', ex: 'blog/')"},domProps:{value:e.site.blogPath}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Services")]),n("div",{staticClass:"field"},[n("label",[e._v("Google analytics")]),n("input",{attrs:{type:"text",name:"hubpress-ga",placeholder:"Google analytics"},domProps:{value:e.site.googleAnalytics}})]),n("div",{staticClass:"field"},[n("label",[e._v("Disqus shortname")]),n("input",{attrs:{type:"text",name:"hubpress-disqus",placeholder:"Disqus shortname"},domProps:{value:e.site.disqus}})])])},staticRenderFns:[]};t.a=i},"6Ndi":function(e,t,n){"use strict";var i=n("LEOq"),o=n.n(i);t.a={fireRequestConfig:function(e){return o.a.fire("requestConfig",e)},fireReceiveConfig:function(e){return o.a.fire("receiveConfig",e)},fireRequestSaveConfig:function(e){return o.a.fire("requestSaveConfig",e)},fireReceiveSaveConfig:function(e){return o.a.fire("receiveSaveConfig",e)},fireRequestTheme:function(e){return o.a.fire("hubpress:request-theme",e)},fireReceiveTheme:function(e){return o.a.fire("hubpress:receive-theme",e)},fireRequestSavedAuth:function(e){return o.a.fire("requestSavedAuth",e)},fireReceiveSavedAuth:function(e){return o.a.fire("receiveSavedAuth",e)},fireRequestRemoteSynchronization:function(e){return o.a.fire("hubpress:request-remote-synchronization",e)},fireReceiveRemoteSynchronization:function(e){return o.a.fire("hubpress:receive-remote-synchronization",e)},fireRequestRenderingDocuments:function(e){return o.a.fire("hubpress:request-rendering-documents",e)},fireReceiveRenderingDocuments:function(e){return o.a.fire("hubpress:receive-rendering-documents",e)},fireRequestRenderingPost:function(e){return o.a.fire("requestRenderingPost",e)},fireReceiveRenderingPost:function(e){return o.a.fire("receiveRenderingPost",e)},fireRequestLocalSynchronization:function(e){return o.a.fire("hubpress:request-local-synchronization",e)},fireReceiveLocalSynchronization:function(e){return o.a.fire("hubpress:receive-local-synchronization",e)},fireRequestLocalPosts:function(e){return o.a.fire("hubpress:request-local-posts",e)},fireReceiveLocalPosts:function(e){return o.a.fire("hubpress:receive-local-posts",e)},fireRequestLocalPost:function(e){return o.a.fire("hubpress:request-local-post",e)},fireReceiveLocalPost:function(e){return o.a.fire("hubpress:receive-local-post",e)},fireRequestDeleteLocalPost:function(e){return o.a.fire("requestDeleteLocalPost",e)},fireReceiveDeleteLocalPost:function(e){return o.a.fire("receiveDeleteLocalPost",e)},fireRequestSaveLocalPost:function(e){return o.a.fire("requestSaveLocalPost",e)},fireReceiveSaveLocalPost:function(e){return o.a.fire("receiveSaveLocalPost",e)},fireRequestSaveRemotePost:function(e){return o.a.fire("requestSaveRemotePost",e)},fireReceiveSaveRemotePost:function(e){return o.a.fire("receiveSaveRemotePost",e)},fireRequestPublishPost:function(e){return o.a.fire("requestPublishPost",e)},fireReceivePublishPost:function(e){return o.a.fire("receivePublishPost",e)},fireRequestLocalPublishedPosts:function(e){return o.a.fire("requestLocalPublishedPosts",e)},fireReceiveLocalPublishedPosts:function(e){return o.a.fire("receiveLocalPublishedPosts",e)},fireRequestLocalPublishedPages:function(e){return o.a.fire("requestLocalPublishedPages",e)},fireReceiveLocalPublishedPages:function(e){return o.a.fire("receiveLocalPublishedPages",e)},fireRequestSelectedPost:function(e){return o.a.fire("requestSelectedPost",e)},fireReceiveSelectedPost:function(e){return o.a.fire("receiveSelectedPost",e)},fireRequestAuthentication:function(e){return o.a.fire("requestAuthentication",e)},fireReceiveAuthentication:function(e){return e.nextState.twoFactorRequired?payload:o.a.fire("receiveAuthentication",e)},fireRequestLogout:function(e){return o.a.fire("requestLogout",e)},fireReceiveLogout:function(e){return o.a.fire("receiveLogout",e)},fireRequestGenerateIndex:function(e){return o.a.fire("requestGenerateIndex",e)},fireReceiveGenerateIndex:function(e){return o.a.fire("receiveGenerateIndex",e)},fireRequestGeneratePost:function(e){return o.a.fire("requestGeneratePost",e)},fireReceiveGeneratePost:function(e){return o.a.fire("receiveGeneratePost",e)},fireRequestGeneratePosts:function(e){return o.a.fire("requestGeneratePosts",e)},fireReceiveGeneratePosts:function(e){return o.a.fire("receiveGeneratePosts",e)},fireRequestGenerateTags:function(e){return o.a.fire("requestGenerateTags",e)},fireReceiveGenerateTags:function(e){return o.a.fire("receiveGenerateTags",e)},fireRequestGenerateAuthors:function(e){return o.a.fire("requestGenerateAuthors",e)},fireReceiveGenerateAuthors:function(e){return o.a.fire("receiveGenerateAuthors",e)},fireRequestGeneratePages:function(e){return o.a.fire("requestGeneratePages",e)},fireReceiveGeneratePages:function(e){return o.a.fire("receiveGeneratePages",e)},fireRequestSaveRemotePublishedElements:function(e){return o.a.fire("requestSaveRemotePublishedElements",e)},fireReceiveSaveRemotePublishedElements:function(e){return o.a.fire("receiveSaveRemotePublishedElements",e)},fireRequestDeleteRemotePublishedPost:function(e){return o.a.fire("requestDeleteRemotePublishedPost",e)},fireReceiveDeleteRemotePublishedPost:function(e){return o.a.fire("receiveDeleteRemotePublishedPost",e)},fireRequestDeleteRemotePost:function(e){return o.a.fire("requestDeleteRemotePost",e)},fireReceiveDeleteRemotePost:function(e){return o.a.fire("receiveDeleteRemotePost",e)}}},"6hdJ":function(e,t,n){"use strict";var i=n("X5n4");t.a=function(e){var t=e.store,n=e.app;console.log("3000 ",n.router.routes),t.commit(i.e,n.router.routes)}},"6yLl":function(e,t,n){"use strict";var i=n("Dd8w"),o=n.n(i),r=n("NYxO"),a=n("Pm0L");t.a={name:"login",beforeMount:function(){this.requireInitilisation&&this.$store.state.application.config&&this.$store.state.application.config.initialisationConfigComponent&&(this.$options.components["initialisation-component"]=this.$store.state.application.config.initialisationConfigComponent)},computed:o()({},Object(r.mapState)({email:function(e){return e.authentication.credentials.email},password:function(e){return e.authentication.credentials.password},twoFactorCode:function(e){return e.authentication.credentials.twoFactorCode},isTwoFactorCodeRequired:function(e){return e.authentication.isTwoFactorCodeRequired},requireInitilisation:function(e){return e.application.requireInitilisation}})),methods:{updateEmail:function(e){this.$store.commit(a.f,e.target.value)},updatePassword:function(e){this.$store.commit(a.g,e.target.value)},updateTwoFactorCode:function(e){this.$store.commit(a.h,e.target.value)},login:function(){this.$store.dispatch(a.e,this.$router)}}}},"7HE4":function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".grid[data-v-a450654c]{margin:0;height:100%;background-color:#dadada}#loginForm.column[data-v-a450654c]{max-width:450px;text-align:center}.column[data-v-a450654c]{max-width:750px}",""])},"7Rt3":function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".opencollective{padding-top:12px}.opencollective svg{width:14px;height:14px}",""])},"7XxQ":function(e,t,n){var i=n("7HE4");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("586f2e74",i,!0,{sourceMap:!1})},"7cn8":function(e,t,n){"use strict";var i=n("LEOq");n.n(i)},"7og9":function(e,t,n){"use strict";(function(e){n("Q7NK"),n("dCDI");var i=n("NpFX"),o=n("lYDI"),r=n("7Xsf"),a=(n.n(r),n("4/hK"));n.n(a);t.a={name:"posts",data:function(){return{content:void 0,timeout:void 0,isDark:!0,isPreviewVisible:!1,isIFrame:!1,isFullScreen:!1,editorOption:{tabSize:4,mode:"asciidoc",theme:"zenburn",lineNumbers:!1,line:!0,lineWrapping:!0,fixedGutter:!0,keyMap:"sublime",extraKeys:{Ctrl:"autocomplete"},foldGutter:!0,gutters:["CodeMirror-linenumbers"],styleSelectedText:!0,highlightSelectionMatches:{showToken:/\w/,annotateScrollbar:!0}}}},methods:{contentChange:function(e){var t=this;if(this.post.content!==e){var n=this.$store.state.application.config.meta.delay?this.$store.state.application.config.meta.delay:200;this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(function(){t.$store.dispatch(o.c,{_id:t.post._id,content:e})},n||200)}},showAsciidocHelp:function(){e("#asciidoc-help").modal("show")},switchLight:function(){this.isDark=!this.isDark,this.$refs.codeEditor.codemirror.setOption("theme",this.isDark?"zenburn":"base16-light")},switchPreview:function(e){this.isPreviewVisible?this.isIFrame!==e?(this.isIFrame=e,e&&this.$store.dispatch(o.c,{_id:this.post._id,content:this.post.content})):(this.isIFrame=!1,this.isFullScreen=!1,this.isPreviewVisible=!this.isPreviewVisible):(e&&this.$store.dispatch(o.c,{_id:this.post._id,content:this.post.content}),this.isIFrame=e,this.isPreviewVisible=!this.isPreviewVisible,this.isFullScreen=!1)},switchPreviewSize:function(){this.isFullScreen=!this.isFullScreen},remoteSave:function(){this.post.published?this.$store.dispatch(o.f,this.post._id):this.$store.dispatch(o.g,this.post._id)},publish:function(){this.post.published?this.$store.dispatch(o.h,this.post._id):this.$store.dispatch(o.f,this.post._id)},unpublish:function(){this.$store.dispatch(o.h,this.post._id)}},beforeMount:function(){this.$store.dispatch(o.e,this.$route.params.id)},mounted:function(){e(".ui.dropdown.item.themes").dropdown(),e("#asciidoc-help").modal({closable:!0})},beforeUpdate:function(){this.content&&this.content===this.post.content||(this.content=this.post.content)},computed:{id:function(){return this.$route.params.id},post:function(){return this.$store.state.hubpress.post},previewLabel:function(){return this.isPreviewVisible?"Hide fast preview":"Show fast preview"},previewLabelIFrame:function(){return this.isPreviewVisible?"Hide real preview":"Show real preview"},resizeLabel:function(){return this.isFullScreen?"Compact the preview":"Expand the preview"},lightLabel:function(){return this.isDark?"Light mode":"Dark mode"},publishLabel:function(){return this.$store.state.hubpress.post.published?"Unpublish post":"Publish post"},isRemoteActionVisible:function(){return!!this.$store.state.hubpress.post.title},isPostPublished:function(){return!!this.post.published}},beforeCreate:function(){},created:function(){},components:{Preview:i.a}}}).call(t,n("7t+N"))},"8wK+":function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"posts-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("div",{staticClass:"ui right aligned category search item"},[n("div",{staticClass:"ui transparent icon input inverted"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.filterValue,expression:"filterValue"}],attrs:{type:"text",placeholder:"Filter by title or tag..."},domProps:{value:e.filterValue},on:{input:function(t){t.target.composing||(e.filterValue=t.target.value)}}}),n("i",{staticClass:"filter link icon"})]),n("div",{staticClass:"results"})]),n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.synchronize()}}},[e._m(0)]),n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.newPost()}}},[e._m(1)])])]),n("div",{staticClass:"ui basic modal"},[n("div",{staticClass:"ui icon header"},[n("i",{staticClass:"trash icon"}),e._v(' Delete the post "'+e._s(e.postToDelete.title)+'"\n ')]),e._m(2),e._m(3)]),n("div",{staticClass:"posts ui container centered"},[n("h2",{staticClass:"ui center aligned icon header"},[n("i",{staticClass:"circular unordered list icon"}),e._v("\n "+e._s(e.posts.length)+" post(s)\n "),e.filterValue.trim().length?n("span",{},[e._v("\n filtered by "),n("span",{staticClass:"ui tiny header orange"},[e._v(e._s(e.filterValue))])]):e._e()]),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"ui cards centered aligned"},e._l(e.posts,function(t){return n("div",{key:t.id,staticClass:"ui card",class:e.getPostStatusColor(t)},[n("div",{staticClass:"content"},[n("div",{staticClass:"header"},[e._v(e._s(t.title))]),n("div",{staticClass:"meta"},[n("span",{staticClass:"right floated time"},[e._v(e._s(e.publishedAt(t)))]),n("span",{staticClass:"status"},[e._v(e._s(e.type(t))+" - "+e._s(e.status(t)))])])]),n("div",{staticClass:"image cover"},[n("div",{style:"background-image: url('"+e.postCoverUrl(t)+"')"})]),n("div",{staticClass:"extra content"},[n("i",{staticClass:"right floated large edit link icon",on:{click:function(n){e.navigateToPost(t)}}}),n("i",{staticClass:"right floated large trash link icon",on:{click:function(n){e.displayConfirmMessage(t)}}}),n("div",{staticClass:"author"},[n("img",{staticClass:"ui avatar image",attrs:{src:e.getPostAuthor(t).avatar_url}}),e._v(" "+e._s(e.getPostAuthor(t).name||e.getPostAuthor(t).login)+"\n ")])]),n("div",{staticClass:"extra content"},[e._l(t.tags,function(t){return n("a",{key:t,staticClass:"ui tiny label"},[n("i",{staticClass:"tag icon"}),e._v(" "+e._s(t)+"\n ")])}),t.tags&&t.tags.length?e._e():n("div",{},[e._v("\n No tag\n ")])],2)])}))])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Synchronize content","data-position":"bottom right"}},[t("i",{staticClass:"refresh large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Create a post","data-position":"bottom right"}},[t("i",{staticClass:"add large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"content"},[t("p",[this._v("Are you sure you want to delete this post?")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"actions"},[t("div",{staticClass:"ui red basic cancel inverted button"},[t("i",{staticClass:"remove icon"}),this._v(" No\n ")]),t("div",{staticClass:"ui green ok inverted button"},[t("i",{staticClass:"checkmark icon"}),this._v(" Yes\n ")])])}]};t.a=i},"90+m":function(e,t,n){"use strict";t.a={name:"hubpress-settings",computed:{meta:function(){return this.$store.state.application.config.meta||{}},site:function(){return this.$store.state.application.config.site||{}},theme:function(){return this.$store.state.application.config.theme||{}}}}},A07x:function(e,t,n){var i=n("TGFm");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("dcf5624a",i,!0,{sourceMap:!1})},APUd:function(e,t,n){"use strict";var i=n("Zrlr"),o=n.n(i),r=n("wxAW"),a=n.n(r),s=n("M4fF"),c=n.n(s),u=n("j+6P"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=function(){function e(){o()(this,e)}return a()(e,[{key:"generate",value:function(e){console.info("PaginationGenerator - generate"),console.log("PaginationGenerator - generate",e);var t=e.posts,n=e.opts.rootState.application.config,i=n.site||{};i.url=n.urls.site;var o=1,r=(e.path||"")+"index.html",a=[],s=[],u=parseInt(i.postsPerPage||10,10),p=(e.opts.nextState.theme.name,e.opts.nextState.version,n.urls.theme,n.urls,n.socialnetwork);if(!t||!t.length){var f=l.a.template(e.template,{pagination:{prev:0,next:0,page:0,pages:0,total:0,limit:u},posts:[],tag:e.tag,author:e.author,socialnetwork:p,title:i.title,relativeUrl:""},{config:n,theme:e.opts.nextState.theme});return s.push({name:"page-"+o,path:r,content:f,message:"Publish page-"+o+" "+e.template}),e.opts.nextState.elementsToPublish=(e.opts.nextState.elementsToPublish||[]).concat(s),e.opts}var h=Math.ceil(t.length/u);return c.a.each(t,function(f,g){var m=0,v=0;o>1&&(r=(e.path||"")+"page/"+o+"/index.html"),o>1&&(v=o-1),oo-1||g+1===t.length){var w=l.a.template(e.template,{pagination:{prev:v,next:m,page:o,pages:h,total:t.length,limit:u},context:"index"===e.template&&0===v?"home":e.template,posts:a,tag:e.tag,author:e.author,title:i.title,description:i.description,socialnetwork:p,relativeUrl:""},{config:n,theme:e.opts.nextState.theme});s.push({name:"page-"+o,path:r,content:w,message:"Publish page-"+o+" "+e.template}),a=[],o++}}),e.opts.nextState.elementsToPublish=(e.opts.nextState.elementsToPublish||[]).concat(s),e.opts}}]),e}();t.a=new f},BdWi:function(e,t,n){"use strict";t.a=function(e){console.info("PagesGenerator - generate"),console.log("PagesGenerator - generate",e);var t=e;return e.nextState.publishedPages.forEach(function(e){t=Object(o.a)(t,e)}),t};n("APUd");var i=n("j+6P"),o=(n.n(i),n("KgKs"))},E1SC:function(e,t,n){"use strict";var i=n("SUis"),o=n("8wK+");var r=function(e){n("Etq3")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},"ET/a":function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui center aligned grid"},[n("div",{staticClass:"ui middle aligned grid"},[e.requireInitilisation?n("div",{staticClass:"column"},[n("div",{staticClass:"ui segment"},[n("initialisation-component",{tag:"component"})],1)]):e._e(),e.requireInitilisation?e._e():n("div",{staticClass:"column",attrs:{id:"loginForm"}},[n("div",{staticClass:"ui segment"},[n("img",{staticClass:"image",attrs:{src:"https://hubpress.github.io/images/logo.png"}}),n("h2",{staticClass:"ui header"},[e._v("\n Welcome!\n ")]),n("div",{staticClass:"content"}),n("form",{staticClass:"ui medium form",on:{submit:function(t){t.preventDefault(),e.login({email:e.email,password:e.password})}}},[n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"user icon"}),n("input",{attrs:{type:"text",name:"email",placeholder:"Username or e-mail address"},domProps:{value:e.email},on:{input:e.updateEmail}})])]),n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"lock icon"}),n("input",{attrs:{type:"password",name:"password",placeholder:"Password"},domProps:{value:e.password},on:{input:e.updatePassword}})])]),e.isTwoFactorCodeRequired?n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"key icon"}),n("input",{attrs:{type:"text",name:"twoFactorCode",placeholder:"Two factor code"},domProps:{value:e.twoFactorCode},on:{input:e.updateTwoFactorCode}})])]):e._e(),n("button",{staticClass:"ui fluid large submit button",attrs:{type:"submit",name:"button"}},[e._v("Login")])]),e._m(0)])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui message"},[this._v("\n If you have questions about how to use HubPress, "),t("a",{attrs:{href:"https://hubpress.gitbooks.io/hubpress-knowledgebase/content/"}},[this._v("here is the right place.")])])}]};t.a=i},Etq3:function(e,t,n){var i=n("L9Re");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("3d34d550",i,!0,{sourceMap:!1})},F6eF:function(e,t,n){"use strict";var i=n("7t+N"),o=n.n(i);t.a={name:"initialise-configuration",data:function(){return{username:"",repositoryName:"hubpress.io",branch:"master",cname:void 0}},mounted:function(){o()("div.dropdown").dropdown()},computed:{isValid:function(){return""!=this.username.trim()&&""!=this.repositoryName.trim()}},methods:{submit:function(){var e={username:this.username,repositoryName:this.repositoryName,branch:this.branch,cname:this.cname};this.$store.dispatch("application:save-startup-config",e)}}}},F88d:function(e,t,n){"use strict";var i=n("yUYC"),o=n("cmzl");var r=function(e){n("0xYM")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},FIB3:function(e,t,n){"use strict";t.a={name:"nuxt-error",props:["error"],head:function(){return{title:this.message,meta:[{name:"viewport",content:"width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"}]}},computed:{statusCode:function(){return this.error&&this.error.statusCode||500},message:function(){return this.error.message||"Error"}}}},FdPX:function(e,t,n){"use strict";var i={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"__nuxt-error-page"},[t("div",{staticClass:"error"},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"90",height:"90",fill:"#DBE1EC",viewBox:"0 0 48 48"}},[t("path",{attrs:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}})]),t("div",{staticClass:"title"},[this._v(this._s(this.message))]),404===this.statusCode?t("p",{staticClass:"description"},[t("nuxt-link",{staticClass:"error-link",attrs:{to:"/"}},[this._v("Back to the home page")])],1):this._e(),this._m(0)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"logo"},[t("a",{attrs:{href:"https://nuxtjs.org",target:"_blank",rel:"noopener"}},[this._v("Nuxt.js")])])}]};t.a=i},FoP8:function(module,__webpack_exports__,__webpack_require__){"use strict";function applyScript(hasChanged){if(hasChanged){for(var element=document.getElementById("html-content"),scripts=element.getElementsByTagName("script"),addedScripts=[],i=0;i.menu[data-v-0536f20d]{height:47px}",""])},HUXV:function(e,t,n){"use strict";var i=n("6Ndi");t.a={refreshAfterSavedConfig:function(e){return i.a.fireRequestTheme(e).then(function(t){return i.a.fireReceiveTheme(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return console.time("Build content"),e}).then(function(e){return i.a.fireRequestGenerateIndex(e)}).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGeneratePosts(e)}).then(function(e){return i.a.fireReceiveGeneratePosts(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)}).then(function(e){return i.a.fireRequestLocalPublishedPages(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPages(e)}).then(function(e){return i.a.fireRequestGeneratePages(e)}).then(function(e){return i.a.fireReceiveGeneratePages(e)}).then(function(e){return console.timeEnd("Build content"),e}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})}}},"Hot+":function(e,t,n){"use strict";var i=n("I3G/"),o=n.n(i),r=n("HBB+"),a=n("ct3O"),s=n("YLfZ");t.a={name:"nuxt",props:["nuxtChildKey","keepAlive"],render:function(e){return this.nuxt.err?e("nuxt-error",{props:{error:this.nuxt.err}}):e("nuxt-child",{key:this.routerViewKey,props:this.$props})},beforeCreate:function(){o.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(s.b)(this.$route.matched[0].path)(this.$route.params);var e=this.$route.matched[0]&&this.$route.matched[0].components.default;return e&&e.options&&e.options.key?"function"==typeof e.options.key?e.options.key(this.$route):e.options.key:this.$route.path}},components:{NuxtChild:r.a,NuxtError:a.a}}},IBrK:function(e,t,n){"use strict";var i=n("F6eF"),o=n("N3Gg");var r=function(e){n("XkEn")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Ie2b:function(e,t){},Irdm:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"settings-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.submit(t)}}},[e._m(0)])])]),n("div",{staticClass:"ui container settings-content"},[e._m(1),n("div",{staticClass:"ui divider"}),n("form",{staticClass:"ui form",attrs:{id:"mainForm"}},[n("div",{staticClass:"ui secondary pointing menu"},[n("div",{staticClass:"item active",attrs:{"data-tab":"application",id:"application-tab"}},[e._v("Application")]),e._l(e.tabs,function(t){return n("div",{key:t.id,staticClass:"item",attrs:{"data-tab":t.id}},[e._v(e._s(t.label))])})],2),n("div",{staticClass:"ui bottom attached tab segment active",attrs:{"data-tab":"application"}},[n("h4",{staticClass:"ui dividing header"},[e._v("Domain")]),n("div",{staticClass:"field"},[n("label",[e._v("CNAME")]),n("input",{attrs:{type:"text",name:"application-cname",placeholder:"CNAME"},domProps:{value:e.config.meta.cname}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Metadata (set in config.json)")]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub username")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-username",placeholder:"Github username"},domProps:{value:e.config.meta.username}})]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub repository name")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-repository-name",placeholder:"GitHub repository name"},domProps:{value:e.config.meta.repositoryName}})]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub branch")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-branch",placeholder:"GitHub branch"},domProps:{value:e.config.meta.branch}})]),e._m(2)]),e._l(e.tabs,function(e){return n("div",{key:e.id,staticClass:"ui bottom attached tab segment ",attrs:{"data-tab":e.id}},[n(e.id,{tag:"component"})],1)})],2)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Save your settings","data-position":"bottom right"}},[t("i",{staticClass:"save large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"ui center aligned icon header"},[t("i",{staticClass:"circular settings icon"}),this._v("\n Settings\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"disabled field"},[t("label",[this._v("Blog URL")]),t("input",{attrs:{type:"text",disabled:"",name:"application-blog-url",placeholder:"Blog URL"}})])}]};t.a=i},J2Ti:function(e,t,n){"use strict";n.d(t,"a",function(){return y});var i=n("woOf"),o=n.n(i),r=n("BO1k"),a=n.n(r),s=n("I3G/"),c=n.n(s),u=n("NYxO");c.a.use(u.default);var l=n("1H2/"),p=l.keys(),d={},f=void 0;if(p.forEach(function(e){-1!==e.indexOf("./index.")&&(f=e)}),f&&(d=P(f)),"function"!=typeof d){d.modules||(d.modules={});var h=!0,g=!1,m=void 0;try{for(var v,b=a()(p);!(h=(v=b.next()).done);h=!0){var x=v.value,C=x.replace(/^\.\//,"").replace(/\.(js|ts)$/,"");if("index"!==C){var w=C.split(/\//);(e=k(d,w))[C=w.pop()]=P(x),e[C].namespaced=!0}}}catch(e){g=!0,m=e}finally{try{!h&&b.return&&b.return()}finally{if(g)throw m}}}var y=d instanceof Function?d:function(){return new u.default.Store(o()({strict:!1},d,{state:d.state instanceof Function?d.state():{}}))};function P(e){var t=l(e),n=t.default||t;if(n.commit)throw new Error("[nuxt] store/"+e.replace("./","")+" should export a method which returns a Vuex instance.");if(n.state&&"function"!=typeof n.state)throw new Error("[nuxt] state should be a function in store/"+e.replace("./",""));return n}function k(e,t){if(1===t.length)return e.modules;var n=t.shift();return e.modules[n]=e.modules[n]||{},e.modules[n].namespaced=!0,e.modules[n].modules=e.modules[n].modules||{},k(e.modules[n],t)}},JtYm:function(e,t,n){"use strict";var i=n("6Ndi");function o(e){return i.a.fireRequestLocalPosts(e).then(function(e){return i.a.fireReceiveLocalPosts(e)})}t.a={deletePost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=t,e}).then(function(e){return e.nextState.post.original?i.a.fireRequestDeleteRemotePost(e).then(function(e){return i.a.fireReceiveDeleteRemotePost(e)}):e}).then(function(e){return i.a.fireRequestDeleteLocalPost(e)}).then(function(e){return i.a.fireReceiveDeleteLocalPost(e)}).then(function(e){return e.nextState.post.published?i.a.fireRequestDeleteRemotePublishedPost(e).then(function(e){return i.a.fireReceiveDeleteRemotePublishedPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return i.a.fireRequestGenerateIndex(e)}).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)}):e}).then(o)},getLocalPost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)})},getLocalPosts:o,remoteSavePost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){return i.a.fireRequestSaveRemotePost(e)}).then(function(e){return i.a.fireReceiveSaveRemotePost(e)}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)})},renderAndSavePost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){return e.nextState.post.content=e.payload.post.content,e}).then(function(e){return i.a.fireRequestRenderingPost(e)}).then(function(e){return i.a.fireReceiveRenderingPost(e)}).then(function(e){return e.nextState.post&&e.nextState.post.title?i.a.fireRequestSaveLocalPost(e).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}):e}).then(function(e){var t=e.nextState.post.original;return e.nextState.post.original=e.nextState.post,e.nextState.post.original.author=e.nextState.post.original.author||e.rootState.authentication.userInformations,i.a.fireRequestGeneratePost(e).then(function(e){return i.a.fireReceiveGeneratePost(e)}).then(function(e){var n=e.nextState.elementsToPublish[0]||{};return e.nextState.post.publishedContent=n.content,e.nextState.post.original=t,e})})},publishPost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=_.union(e.nextState.post.tags,t),e}).then(function(e){return i.a.fireRequestSaveRemotePost(e)}).then(function(e){return i.a.fireReceiveSaveRemotePost(e)}).then(function(e){return e.nextState.post.original.author=e.nextState.post.original.author||e.nextState.post.author,e.nextState.post.published=1,e}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return i.a.fireRequestGeneratePost(e)}).then(function(e){return i.a.fireReceiveGeneratePost(e)}).then(function(e){return"post"!==e.nextState.post.type?e:i.a.fireRequestGenerateIndex(e).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)})}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})},unpublishPost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=t,e}).then(function(e){return i.a.fireRequestDeleteRemotePublishedPost(e)}).then(function(e){return i.a.fireReceiveDeleteRemotePublishedPost(e)}).then(function(e){return e.nextState.post.published=0,e}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return"post"!==e.nextState.post.type?e:i.a.fireRequestGenerateIndex(e).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)})}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})}}},KMrN:function(e,t,n){"use strict";var i=n("LEOq"),o=n.n(i);t.a={authenticate:function(e){return function(e){return o.a.fire("requestAuthentication",e)}(e).then(function(e){return(t=e).nextState.twoFactorRequired?payload:o.a.fire("receiveAuthentication",t);var t})},initialize:function(e){return function(e){return o.a.fire("requestSavedAuth",e)}(e).then(function(e){return t=e,o.a.fire("receiveSavedAuth",t);var t})}}},KOTd:function(e,t,n){"use strict";t.a=function(e){console.info("AuthorGenerator - generate"),console.log("AuthorGenerator - generate",e);var t=void 0;if(!s.a.isTemplateAvailable("author"))return e;t=e.nextState.author?e.nextState.publishedPosts.filter(function(t){return t.author.login===e.nextState.author.login}):e.nextState.publishedPosts;var n=r.a.reduce(t,function(e,t){return e[t.author.login]=e[t.author.login]||[],e[t.author.login].push(t),e},{}),o=e;return r.a.each(n,function(e,t){var n=e[0].author;n.name=n.name||n.login,n.slug=t,n.website=n.blog,n.status="",o=i.a.generate({opts:o,posts:e,author:n,template:"author",path:"author/"+t+"/"})}),o};var i=n("APUd"),o=n("M4fF"),r=n.n(o),a=n("j+6P"),s=n.n(a),c=n("n+xr");n.n(c)},KgKs:function(e,t,n){"use strict";t.a=function(e,t){console.info("PostGenerator - generate"),console.log("PostGenerator - generate",e);var n=t,i=o()({},n.original);i.tags=a.a.map(i.tags,function(e){return{name:e,slug:l()(e)}});var r=i.author;i.author={id:r.id,name:r.name||r.login,location:r.location,website:r.blog,image:r.avatar_url,profile_image:r.avatar_url,bio:r.bio,status:"",slug:r.login};var s=e.rootState.application.config,u=s.urls;e.nextState.theme.name,e.nextState.theme.version,s.urls.theme;i.urls=u,i.status="published",i.feature_image=i.image;var p="index.adoc"===n.name?"home":n.type||"post";if(!c.a.isTemplateAvailable(p))return e;var d=c.a.template(p,{context:n.type||"post",socialnetwork:s.socialnetwork,relativeUrl:n.url,post:i,author:i.author},{config:s,theme:e.nextState.theme}),f=[];return f.push({title:n.title,image:n.image,name:n.name,path:s.urls.getContentGhPath(n.name,n.type),url:s.urls.getContentGhPath(n.name,n.type),content:d,message:"Publish "+n.name,published_at:n.published_at}),e.nextState.elementsToPublish=(e.nextState.elementsToPublish||[]).concat(f),e};var i=n("woOf"),o=n.n(i),r=n("M4fF"),a=n.n(r),s=n("j+6P"),c=n.n(s),u=n("n+xr"),l=n.n(u)},L9Re:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".posts-container .menu{min-height:47px}.posts-container{height:100%;overflow:auto}.posts.ui.container{padding-top:60px}.image.cover>div{width:100%;height:200px;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}@media screen and (max-width:622px){.posts.ui.container .ui.card .image.cover{display:none}}",""])},LB67:function(e,t,n){"use strict";var i=n("6Ndi");t.a={authenticate:function(e){return i.a.fireRequestAuthentication(e).then(function(e){return i.a.fireReceiveAuthentication(e)})}}},MHN4:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".about-content{padding-top:60px}",""])},N3Gg:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"initialise-configuration"},[e._m(0),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"content"},[e._v("\n We need to initialize your configuration before a first use.\n ")]),n("div",{staticClass:"ui divider"}),n("form",{staticClass:"ui form",attrs:{id:"configurationForm"},on:{submit:function(t){t.preventDefault(),e.submit()}}},[n("div",{staticClass:"required field"},[n("label",[e._v("Username")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.username,expression:"username"}],attrs:{type:"text",name:"configuration-username",placeholder:"Your github username"},domProps:{value:e.username},on:{input:function(t){t.target.composing||(e.username=t.target.value)}}})]),n("div",{staticClass:"required field"},[n("label",[e._v("Repository name")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.repositoryName,expression:"repositoryName"}],attrs:{type:"text",name:"configuration-cname",placeholder:"The name of your repository"},domProps:{value:e.repositoryName},on:{input:function(t){t.target.composing||(e.repositoryName=t.target.value)}}})]),n("div",{staticClass:"required field"},[n("label",[e._v("Branch")]),n("div",{staticClass:"ui selection dropdown"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.branch,expression:"branch"}],attrs:{type:"hidden",name:"branch"},domProps:{value:e.branch},on:{input:function(t){t.target.composing||(e.branch=t.target.value)}}}),n("i",{staticClass:"dropdown icon"}),n("div",{staticClass:"default text"},[e._v("master")]),e._m(1)])]),n("div",{staticClass:"field"},[n("label",[e._v("Domain name")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.cname,expression:"cname"}],attrs:{type:"text",name:"configuration-cname",placeholder:"Your domain name if you have one"},domProps:{value:e.cname},on:{input:function(t){t.target.composing||(e.cname=t.target.value)}}})]),n("button",{staticClass:"ui fluid large submit button",attrs:{type:"submit",name:"button",disabled:!e.isValid}},[e._v("Ok, let's go!")])]),e._m(2)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"ui center aligned icon header"},[t("i",{staticClass:"circular configure icon"}),this._v("\n Configuration\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"menu"},[t("div",{staticClass:"item",attrs:{"data-value":"master"}},[this._v("master")]),t("div",{staticClass:"item",attrs:{"data-value":"gh-pages"}},[this._v("gh-pages")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui message"},[this._v("\n If you have questions about how to use HubPress, "),t("a",{attrs:{href:"https://hubpress.gitbooks.io/hubpress-knowledgebase/content/"}},[this._v("here is the right place.")])])}]};t.a=i},NpFX:function(e,t,n){"use strict";var i=n("FoP8"),o=n("XO7e");var r=function(e){n("YDvP")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Pm0L:function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"f",function(){return o}),n.d(t,"g",function(){return r}),n.d(t,"h",function(){return a}),n.d(t,"d",function(){return s}),n.d(t,"c",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"a",function(){return l});var i="login:submit",o="login:updateEmail",r="login:updatePassword",a="login:updateTwoFactorCode",s="authorisation:request-login",c="authorisation:receive-login",u="authorisation:failure-login",l="authorisation:authentication-done"},Q7NK:function(e,t,n){"use strict";(function(e,t){var i,o=n("pFYg"),r=n.n(o);i=function(e){e.defineMode("asciidoc",function(e,t){var n=1e3,i=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],i=[],o=0,r=this.matchMappings[t]={defaultToken:"text"},a="g",s=[],c=0;c1?this.$applyToken:u.token);p>1&&(/\\\d/.test(u.regex)?l=u.regex.replace(/\\([0-9]+)/g,function(e,t){return"\\"+(parseInt(t,10)+o+1)}):(p=1,l=this.removeCapturingGroups(u.regex)),u.splitRegex||"string"==typeof u.token||s.push(u)),r[o]=c,o+=p,i.push(l),u.onMatch||(u.onMatch=null)}}s.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)},this),this.regExps[t]=new RegExp("("+i.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(e){n=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var i=[],o=0,r=n.length;ol){var m=e.substring(l,g-h.length);p.type==d?p.value+=m:(p.type&&u.push(p),p={type:d,value:m})}for(var v=0;vn){for(;l1&&i[0]!==o&&i.unshift(o),{tokens:u,state:i.length?i:o}}}).call(i.prototype);var o={empty:null,text:null,keyword:"keyword",control:"keyword",operator:"operator",constant:"atom",numeric:"number",character:"atom",escape:"atom",variable:"variable",parameter:"variable-3",language:"variable-2",comment:"comment",line:"comment","double-slash":"comment","double-dash":"comment","number-sign":"comment",percentage:"comment",block:"comment",doc:"comment",string:"string",quoted:"string",single:"string",double:"string",triple:"string",unquoted:"string",interpolated:"string",regexp:"string-2",meta:"keyword",literal:"qualifier",support:"builtin",markup:"tag",underline:"link",link:"link",strong:"strong",heading:"header",heading2:"header-2",heading3:"header-3",heading4:"header-4",heading5:"header-5",heading6:"header-6",em:"em",list:"variable-2",numbered:"variable-2",unnumbered:"variable-2",quote:"quote",raw:"variable-2",invalid:"error",illegal:"invalidchar",deprecated:"error"},r=function(e,t){var n=t.plannedTokens.shift();return void 0===n?null:(e.match(n.value),function(e){for(var t=null,n=0;n0)return r(e,t);var n=t.current,i=e.match(/.*$/,!1)[0],o=s.getLineTokens(i,n);return t.plannedTokens=o.tokens,t.current=o.state,r(e,t)},s=new i((new function(){function e(e){return(/\w/.test(e)?"\\b":"(?:\\B|^)")+e+"[^"+e+"].*?"+e+"(?![\\w*])"}this.$rules={start:[{token:"empty",regex:/$/},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"literal",regex:/^-{4,}\s*$/,next:"literalBlock"},{token:"literal",regex:/^\+{4,}\s*$/,next:"passthroughBlock"},{token:"keyword",regex:/^={4,}\s*$/},{token:"text",regex:/^\s*$/},{token:"empty",regex:"",next:"dissallowDelimitedBlock"}],dissallowDelimitedBlock:[{include:"paragraphEnd"},{token:"comment",regex:"^//.+$"},{token:"keyword",regex:"^(?:NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s"},{include:"listStart"},{token:"literal",regex:/^\s+.+$/,next:"indentedBlock"},{token:"empty",regex:"",next:"text"}],paragraphEnd:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"commentBlock"},{token:"tableBlock",regex:/^\s*[|!]=+\s*$/,next:"tableBlock"},{token:"keyword",regex:/^(?:--|''')\s*$/,next:"start"},{token:"option",regex:/^\[.*\]\s*$/,next:"start"},{token:"pageBreak",regex:/^>{3,}$/,next:"start"},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"titleUnderline",regex:/^(?:={2,}|-{2,}|~{2,}|\^{2,}|\+{2,})\s*$/,next:"start"},{token:"singleLineTitle",regex:/^={1}\s+\S.*$/,next:"start"},{token:"singleLineTitle2",regex:/^={2}\s+\S.*$/,next:"start"},{token:"singleLineTitle3",regex:/^={3}\s+\S.*$/,next:"start"},{token:"singleLineTitle4",regex:/^={4}\s+\S.*$/,next:"start"},{token:"singleLineTitle5",regex:/^={5}\s+\S.*$/,next:"start"},{token:"singleLineTitle6",regex:/^={6}\s+\S.*$/,next:"start"},{token:"otherBlock",regex:/^(?:\*{2,}|_{2,})\s*$/,next:"start"},{token:"optionalTitle",regex:/^\.[^.\s].+$/,next:"start"}],listStart:[{token:"keyword",regex:/^\s*(?:\d+\.|[a-zA-Z]\.|[ixvmIXVM]+\)|\*{1,5}|-|\.{1,5})\s/,next:"listText"},{token:"meta.tag",regex:/^.+(?::{2,4}|;;)(?: |$)/,next:"listText"},{token:"keyword",regex:/^\+\s*$/,next:"start"}],text:[{token:["link","link"],regex:/((?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+)(\[.*?\])/},{token:["link","link"],regex:/(?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+/},{token:"link",regex:/\b[\w\.\/\-]+@[\w\.\/\-]+\b/},{include:"macros"},{include:"paragraphEnd"},{token:"literal",regex:/\+{3,}/,next:"smallPassthrough"},{token:"escape",regex:/\((?:C|TM|R)\)|\.{3}|->|<-|=>|<=|&#(?:\d+|x[a-fA-F\d]+);|(?: |^)--(?=\s+\S)/},{token:"escape",regex:/\\[_*'`+#]|\\{2}[_*'`+#]{2}/},{token:"keyword",regex:/\s\+$/},{token:"text",regex:"[a-zA-Z¡-￿]+\\b"},{token:["keyword","string","keyword"],regex:/(<<[\w\d\-$]+,)(.*?)(>>|$)/},{token:"keyword",regex:/<<[\w\d\-$]+,?|>>/},{token:"constant.character",regex:/\({2,3}.*?\){2,3}/},{token:"support.function.list.callout",regex:/^(?:<\d+>|\d+>|>) /,next:"text"},{token:"keyword",regex:/\[\[.+?\]\]/},{token:"support",regex:/^\[{3}[\w\d =\-]+\]{3}/},{include:"quotes"},{token:"empty",regex:/^\s*$/,next:"start"}],listText:[{include:"listStart"},{include:"text"}],indentedBlock:[{token:"literal",regex:/^[\s\w].+$/,next:"indentedBlock"},{token:"literal",regex:"",next:"start"}],listingBlock:[{token:"literal",regex:/^\.{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],literalBlock:[{token:"literal",regex:/^-{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],passthroughBlock:[{token:"literal",regex:/^\+{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:"[a-zA-Z¡-￿]+\\b|\\d+"},{include:"macros"},{token:"literal",regex:"."}],smallPassthrough:[{token:"literal",regex:/[+]{3,}/,next:"dissallowDelimitedBlock"},{token:"literal",regex:/^\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:"[a-zA-Z¡-￿]+\\b|\\d+"},{include:"macros"}],commentBlock:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"doc.comment",regex:"^.*$"}],tableBlock:[{token:"tableBlock",regex:/^\s*\|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"innerTableBlock"},{token:"tableBlock",regex:/\|/},{include:"text",noEscape:!0}],innerTableBlock:[{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"tableBlock"},{token:"tableBlock",regex:/^\s*|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/\!/}],macros:[{token:"macro",regex:/{[\w\-$]+}/},{token:["text","string","text","constant.character","text"],regex:/({)([\w\-$]+)(:)?(.+)?(})/},{token:["text","markup.list.macro","keyword","string"],regex:/(\w+)(footnote(?:ref)?::?)([^\s\[]+)?(\[.*?\])?/},{token:["markup.list.macro","keyword","string"],regex:/([a-zA-Z\-][\w\.\/\-]*::?)([^\s\[]+)(\[.*?\])?/},{token:["markup.list.macro","keyword"],regex:/([a-zA-Z\-][\w\.\/\-]+::?)(\[.*?\])/},{token:"keyword",regex:/^:.+?:(?= |$)/}],quotes:[{token:"string.italic",regex:/__[^_\s].*?__/},{token:"string.italic",regex:e("_")},{token:"keyword.bold",regex:/\*\*[^*\s].*?\*\*/},{token:"keyword.bold",regex:e("\\*")},{token:"literal",regex:/\+\+[^+\s].*?\+\+/},{token:"literal",regex:e("\\+")},{token:"literal",regex:/\$\$.+?\$\$/},{token:"literal",regex:e("\\$")},{token:"literal",regex:/``[^`\s].*?``/},{token:"literal",regex:e("`")},{token:"keyword",regex:/\^[^\^].*?\^/},{token:"keyword",regex:e("\\^")},{token:"keyword",regex:/~[^~].*?~/},{token:"keyword",regex:e("~")},{token:"keyword",regex:/##?/},{token:"keyword",regex:/(?:\B|^)``|\b''/}]};var t={macro:"constant.character",tableBlock:"doc.comment",titleUnderline:"markup.heading",singleLineTitle:"markup.heading",singleLineTitle2:"markup.heading2",singleLineTitle3:"markup.heading3",singleLineTitle4:"markup.heading4",singleLineTitle5:"markup.heading5",singleLineTitle6:"markup.heading6",pageBreak:"string",option:"string.regexp",otherBlock:"markup.list",literal:"support.function",optionalTitle:"constant.numeric",escape:"constant.language.escape",link:"markup.underline.list"};for(var n in this.$rules)for(var i=this.$rules[n],o=i.length;o--;){var r=i[o];if(r.include||"string"==typeof r){var a=[o,1].concat(this.$rules[r.include||r]);r.noEscape&&(a=a.filter(function(e){return!e.next})),i.splice.apply(i,a)}else r.token in t&&(r.token=t[r.token])}}).$rules);return{startState:function(){return{current:"start",plannedTokens:[]}},blankLine:function(e){a("",e)},token:a}}),e.defineMIME("text/x-asciidoc","asciidoc")},"object"==("undefined"==typeof exports?"undefined":r()(exports))&&"object"==r()(e)?i(n("8U58")):"object"==("undefined"==typeof brackets?"undefined":r()(brackets))&&brackets.getModule?i(brackets.getModule("thirdparty/CodeMirror2/lib/codemirror")):"function"==typeof define&&n("nErl")?define(["codemirror"],i):i(t)}).call(t,n("f1Eh")(e),n("8U58"))},QMmS:function(e,t,n){"use strict";t.b=function(e){return e.on("application:stores",function(e){var t;console.info("authenticationPlugin - application:stores"),console.log("authenticationPlugin - application:stores",e);var n={state:{isAuthenticated:!1,isTwoFactorCodeRequired:!1,credentials:{email:void 0,password:void 0,twoFactorCode:void 0}},mutations:(t={},o()(t,u.f,function(e,t){e.credentials.email=t}),o()(t,u.g,function(e,t){e.credentials.password=t}),o()(t,u.h,function(e,t){e.credentials.twoFactorCode=t}),o()(t,u.d,function(e){e.isLoading=!0}),o()(t,u.c,function(e,t){a.a.merge(e,t)}),o()(t,u.b,function(e,t){e.isAuthenticated=!1}),o()(t,l,function(e,t){a.a.merge(e,t.authentication)}),t),actions:o()({},u.e,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,r=e.state;i(u.d);var c={rootState:a.a.cloneDeep(o),currentState:a.a.cloneDeep(r)};n("application:loading").then(function(e){return s.a.authenticate(c)}).then(function(e){i(u.c,e.nextState)}).then(function(e){return r.isAuthenticated?n(p,!0).then(function(e){return n(u.a)}):r.isTwoFactorCodeRequired?n("application:notify",{icon:"unlock",header:"Two factor code",message:"A code is required to complete your authentication.",level:"warning"}):n("application:notify",{icon:"warning circle",header:"Authentication failed",message:"A error occured during the authentication.",level:"error"})}).then(function(e){return n("application:loaded")}).then(function(e){return t.push(t.currentRoute.query.redirect||"/")}).catch(function(e){n("application:loaded").then(function(e){return n("application:notify",{icon:"warning circle",header:"Authentication failed",message:"A error occured during the authentication.",level:"error"})})})}),getters:{}};return e.nextState.stores.authentication=n,console.log("authenticationPlugin - application:stores - return",e),e}),e.on("application:routes",function(e){return e}),e.on("application:initialize-app",function(e){return console.info("authenticationPlugin - application:initialize-app"),console.log("authenticationPlugin - application:initialize-app",e),s.a.initialize(e).then(function(e){return e})}),e.on("authentication:authenticate",function(e){return console.info("authenticationPlugin - authentication:authenticate"),console.log("authenticationPlugin - authentication:authenticate",e,s.a),s.a.authenticate(e)}),{getName:function(){return"authenticationPlugin"}}},n.d(t,"a",function(){return d});var i=n("bOdI"),o=n.n(i),r=n("M4fF"),a=n.n(r),s=n("KMrN"),c=n("RUoO"),u=n("Pm0L"),l="application:initialize-app",p="application:save-config";var d=c.a},RUoO:function(e,t,n){"use strict";var i=n("6yLl"),o=n("ET/a");var r=function(e){n("7XxQ")},a=n("VU/8")(i.a,o.a,!1,r,"data-v-a450654c",null);t.a=a.exports},RsIG:function(e,t,n){"use strict";var i=n("woOf"),o=n.n(i),r=n("LEOq"),a=n.n(r);function s(e){return a.a.fire("application:receive-config",e)}t.a={initializeRoutes:function(e){return a.a.fire("application:routes",e)},initializeApp:function(e,t){return a.a.fire("application:initialize-app",e,t)},initializePlugins:function(e,t){return a.a.fire("application:initialize-plugins",e,t)},initializeConfig:function(e){return console.log("application - initializeConfig",e),function(e){return a.a.fire("application:request-config",e)}(e).then(s)},startUpConfig:function(e){return console.log("application - startUpConfig",e),s(e)},prepareConfig:function(e){return a.a.fire("application:prepare-config",e)},saveConfig:function(e){return function(e){return console.log("application - fireRequestSaveConfig",e),a.a.fire("application:request-save-config",e)}(e).then(function(t){return o()({},e,{nextState:t.nextState.application})}).then(s).then(function(t){return e.nextState.application=t.nextState,o()({},e)}).catch(function(e){console.log(e)})},saveConfigDone:function(e){return a.a.fire("application:save-config-done",e)}}},SDLk:function(e,t,n){"use strict";var i={render:function(){this.$createElement;this._self._c;return this._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"about-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",attrs:{href:"https://twitter.com/HubPressIO",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Follow us on twitter","data-position":"bottom right"}},[n("i",{staticClass:"twitter large icon"})])]),n("a",{staticClass:"item",attrs:{href:"https://gitter.im/HubPress/hubpress.io",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Wanna chat with us?","data-position":"bottom right"}},[n("i",{staticClass:"gitter large icon"})])]),n("a",{staticClass:"item",attrs:{href:"https://github.com/HubPress",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"HubPress is opensource :)","data-position":"bottom right"}},[n("i",{staticClass:"github large icon"})])])])]),n("div",{staticClass:"about-content"},[n("div",{staticClass:"ui container"},[n("h2",{staticClass:"ui center aligned icon header"},[n("i",{staticClass:"circular users icon"}),e._v("\n The HubPress Team\n ")]),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"row"},[n("div",{staticClass:"ui items divided"},[n("div",{staticClass:"item"},[n("div",{staticClass:"image"},[n("img",{attrs:{src:"https://avatars1.githubusercontent.com/u/2006548?v=3&s=460"}})]),n("div",{staticClass:"content"},[n("a",{staticClass:"header"},[e._v("Anthonny Quérouil")]),n("div",{staticClass:"meta"},[n("span",[e._v("The creator of HubPress")])]),n("div",{staticClass:"description"},[n("p",[e._v("Anthonny is a freelance developer and the creator of HubPress")]),n("p",[e._v("He started HubPress two years ago")])]),n("div",{staticClass:"extra"},[n("a",{staticClass:"ui label",attrs:{href:"https://twitter.com/anthonny_q",target:"_blank"}},[n("i",{staticClass:"twitter icon"}),e._v(" Twitter\n ")]),n("a",{staticClass:"ui label",attrs:{href:"https://github.com/anthonny",target:"_blank"}},[n("i",{staticClass:"github icon"}),e._v(" GitHub\n ")]),n("a",{staticClass:"ui label",attrs:{href:"http://anthonnyquerouil.fr/",target:"_blank"}},[n("i",{staticClass:"home icon"}),e._v(" Website\n ")])])])]),n("div",{staticClass:"item"},[n("div",{staticClass:"image"},[n("img",{attrs:{src:"https://avatars0.githubusercontent.com/u/952793?v=3&s=460"}})]),n("div",{staticClass:"content"},[n("a",{staticClass:"header"},[e._v("Jared Morgan")]),n("div",{staticClass:"meta"},[n("span",[e._v("The Docs guy")])]),n("div",{staticClass:"description"},[n("p",[e._v("By day, Jared is a Certified Scrum Product Owner (CSPO) and Technical Writer for Ladbrokes in Brisbane, Australia.")]),n("p",[e._v("By night, he uses his craft to improve open source software products one README at a time.")]),n("p",[e._v("In between, he uses his expertise in Pinball machines and knowledge of Android beta testing to improve digital pinball apps.")])]),n("div",{staticClass:"extra"},[n("a",{staticClass:"ui label",attrs:{href:"https://twitter.com/jaredmorgs",target:"_blank"}},[n("i",{staticClass:"twitter icon"}),e._v(" Twitter\n ")]),n("a",{staticClass:"ui label",attrs:{href:"https://github.com/jaredmorgs",target:"_blank"}},[n("i",{staticClass:"github icon"}),e._v(" GitHub\n ")]),n("a",{staticClass:"ui label",attrs:{href:"http://jaredleonmorgan.net/",target:"_blank"}},[n("i",{staticClass:"home icon"}),e._v(" Website\n ")])])])])])])])])])}]};t.a=i},SHkU:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._l(e.navigation,function(t,i){return n("div",{key:t.label,staticClass:"fields"},[n("div",{staticClass:"four wide field"},[n("input",{attrs:{type:"text",placeholder:"Label",name:"navigation-label-"+i},domProps:{value:t.label}})]),n("div",{staticClass:"eleven wide field"},[n("input",{attrs:{type:"text",placeholder:"http://www.mysite.com",name:"navigation-url-"+i},domProps:{value:t.url}})]),n("div",{staticClass:"one wide field"},[n("button",{staticClass:"ui icon button",on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.remove(i)}}},[n("i",{staticClass:"trash icon"})])])])}),n("div",{staticClass:"fields"},[n("div",{staticClass:"four wide field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNav.label,expression:"newNav.label"}],attrs:{type:"text",placeholder:"Label"},domProps:{value:e.newNav.label},on:{input:function(t){t.target.composing||e.$set(e.newNav,"label",t.target.value)}}})]),n("div",{staticClass:"eleven wide field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNav.url,expression:"newNav.url"}],attrs:{type:"text",placeholder:"http://www.mysite.com"},domProps:{value:e.newNav.url},on:{input:function(t){t.target.composing||e.$set(e.newNav,"url",t.target.value)}}})]),n("div",{staticClass:"one wide field"},[n("button",{staticClass:"ui icon button",attrs:{disabled:e.isNotValid},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.add(e.newNav)}}},[n("i",{staticClass:"add icon"})])])])],2)},staticRenderFns:[]};t.a=i},SUis:function(e,t,n){"use strict";(function(e){var i=n("PJh5"),o=n.n(i),r=n("RJtx"),a=n.n(r),s=n("lYDI");t.a={name:"posts",data:function(){return{postToDelete:{},filterValue:""}},beforeCreate:function(){},beforeMount:function(){this.$store.dispatch(s.a)},beforeDestroy:function(){e(".ui.basic.modal").remove()},mounted:function(){var t=this;e(".ui.basic.modal").modal({closable:!1,onDeny:function(){},onApprove:function(){t.$store.dispatch(s.d,t.postToDelete._id)}})},methods:{status:function(e){return!e.published?"Draft":"Published"},type:function(e){return e.type.replace(/\b\w/g,function(e){return e.toUpperCase()})},publishedAt:function(e){return!!e.published&&e.published_at&&o()(e.published_at).fromNow()||""},postCoverUrl:function(e){var t=e.image||"https://hubpress.github.io/img/logo.png";return t=t.startsWith("http")?t:this.$store.state.application.config.urls.site+"/"+t},getPostStatusColor:function(e){return e.original?e.original.content!==e.content?"orange":"green":"red"},displayConfirmMessage:function(t){this.postToDelete=t,e(".ui.basic.modal").modal("show")},navigateToPost:function(e){this.$router.push({name:"post",params:{id:e._id}})},newPost:function(){this.$router.push({name:"post",params:{id:a.a.v4()}})},getPostTags:function(e){return e.tags||[]},getPostAuthor:function(e){return e.author||this.$store.state.authentication.userInformations},synchronize:function(){this.$store.dispatch(s.b)}},computed:{posts:function(){var e=this.filterValue.trim();return""===e?this.$store.state.hubpress.posts:this.$store.state.hubpress.posts.filter(function(t){return t.title.toLowerCase().indexOf(e.toLowerCase())>=0||t.tags&&t.tags.filter(function(t){return t.toLowerCase().indexOf(e.toLowerCase())>=0}).length})}}}}).call(t,n("7t+N"))},SjaB:function(e,t,n){var i=n("3fVB");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("2d76ba14",i,!0,{sourceMap:!1})},T23V:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,r,a=n("pFYg"),s=n.n(a),c=n("mvHQ"),u=n.n(c),l=n("fZjL"),p=n.n(l),d=n("woOf"),f=n.n(d),h=n("Zzip"),g=n.n(h),m=n("5QVw"),v=n.n(m),b=n("//Fk"),x=n.n(b),C=n("I3G/"),w=n.n(C),y=n("unZF"),P=n("qcny"),k=n("YLfZ"),S=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=x.a))(function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,s)}c((i=i.apply(e,t||[])).next())})},_=this&&this.__generator||function(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof v.a&&(r[g.a]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=i[2&r[0]?"return":r[0]?"throw":"next"])&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[0,o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1].row{padding-top:0;padding-bottom:0}.post-editor .ui.grid.light>.row{background-color:#f5f5f5;color:#202020}.post-editor .ui.grid.light>.row .ui.header{color:#202020}.post-editor .ui.grid.light>.row a{color:#aa759f}.post-editor .ui.grid.dark>.row,.post-editor .ui.grid.dark>.row .ui.header{background-color:#3f3f3f;color:#dcdccc}.post-editor .ui.grid.dark>.row .ui.header{color:#dcdccc}.post-editor .ui.grid.dark>.row a{color:#dcdcaa}.post-editor .ui.grid{padding-top:0;padding-bottom:0;margin:0}.post-editor .ui.grid .column{padding-top:0;margin-top:0;padding-bottom:0;margin-bottom:0}.vue-codemirror.container{min-height:100%;height:100%}#asciidoc-content,#asciidoc-preview{height:calc(100vh - 47px);min-height:calc(100vh - 47px)}#asciidoc-content.is-hidden{display:none}#asciidoc-preview{overflow-y:auto;padding-top:2em;font-size:1.2em;font-family:Menlo,Monaco,Consolas,Courier New,monospace;word-wrap:break-word}#asciidoc-preview.is-iframe{padding:0}#asciidoc-preview>div{max-width:750px!important;margin:auto}#asciidoc-preview.is-iframe>div{min-width:100%;margin:auto}#asciidoc-preview.is-fullscreen{width:100%!important}#asciidoc-preview>div .ui.header{font-family:Menlo,Monaco,Consolas,Courier New,monospace}#asciidoc-preview .content pre{background-color:#dcdccc;color:#2e2e2e;padding:10px;border-radius:5px;overflow:auto}#asciidoc-preview .paragraph{padding:.75em 0}#asciidoc-preview img{width:100%;max-width:100%}@media screen and (max-width:992px){#asciidoc-content{display:block}#asciidoc-content.is-preview-visible,#asciidoc-preview{display:none}#asciidoc-preview.is-preview-visible{display:block}}.item .ui.icon .rocket.unpublish{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.cm-s-zenburn.CodeMirror .CodeMirror-gutters{background:#3f3f3f!important}.cm-s-zenburn.CodeMirror .CodeMirror-foldgutter-open,.CodeMirror-foldgutter-folded{color:#999}.cm-s-zenburn.CodeMirror .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-zenburn.CodeMirror{background-color:#3f3f3f;color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-builtin{color:#dcdccc;font-weight:700}.cm-s-zenburn.CodeMirror span.cm-comment{color:#7f9f7f}.cm-s-zenburn.CodeMirror span.cm-keyword{color:#f0dfaf;font-weight:700}.cm-s-zenburn.CodeMirror span.cm-atom{color:#bfebbf}.cm-s-zenburn.CodeMirror span.cm-def{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-variable{color:#dfaf8f}.cm-s-zenburn.CodeMirror span.cm-variable-2{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-string,.cm-s-zenburn.CodeMirror span.cm-string-2{color:#cc9393}.cm-s-zenburn.CodeMirror span.cm-number{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-tag{color:#93e0e3}.cm-s-zenburn.CodeMirror span.cm-attribute,.cm-s-zenburn.CodeMirror span.cm-property{color:#dfaf8f}.cm-s-zenburn.CodeMirror span.cm-qualifier{color:#7cb8bb}.cm-s-zenburn.CodeMirror span.cm-meta{color:#f0dfaf}.cm-s-zenburn.CodeMirror span.cm-header,.cm-s-zenburn.CodeMirror span.cm-operator{color:#f0efd0}.cm-s-zenburn.CodeMirror span.CodeMirror-matchingbracket{-webkit-box-sizing:border-box;box-sizing:border-box;background:transparent;border-bottom:1px solid}.cm-s-zenburn.CodeMirror span.CodeMirror-nonmatchingbracket{border-bottom:1px solid;background:none}.cm-s-zenburn.CodeMirror .CodeMirror-activeline,.cm-s-zenburn.CodeMirror .CodeMirror-activeline-background{background:#000}.cm-s-zenburn.CodeMirror div.CodeMirror-selected{background:#545454}.cm-s-zenburn.CodeMirror .CodeMirror-focused div.CodeMirror-selected{background:#4f4f4f}.cm-s-base16-light.CodeMirror{background:#f5f5f5;color:#202020}.cm-s-base16-light.CodeMirror div.CodeMirror-selected{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-line::selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span::selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span>span::selection{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-line::-moz-selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span::-moz-selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span>span::-moz-selection{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-gutters{background:#f5f5f5;border-right:0}.cm-s-base16-light.CodeMirror .CodeMirror-guttermarker{color:#ac4142}.cm-s-base16-light.CodeMirror .CodeMirror-guttermarker-subtle,.cm-s-base16-light.CodeMirror .CodeMirror-linenumber{color:#b0b0b0}.cm-s-base16-light.CodeMirror .CodeMirror-cursor{border-left:1px solid #505050}.cm-s-base16-light.CodeMirror span.cm-comment{color:#8f5536}.cm-s-base16-light.CodeMirror span.cm-atom,.cm-s-base16-light.CodeMirror span.cm-number{color:#aa759f}.cm-s-base16-light.CodeMirror span.cm-attribute,.cm-s-base16-light.CodeMirror span.cm-property{color:#90a959}.cm-s-base16-light.CodeMirror span.cm-keyword{color:#ac4142}.cm-s-base16-light.CodeMirror span.cm-string{color:#f4bf75}.cm-s-base16-light.CodeMirror span.cm-variable{color:#90a959}.cm-s-base16-light.CodeMirror span.cm-variable-2{color:#6a9fb5}.cm-s-base16-light.CodeMirror span.cm-def{color:#d28445}.cm-s-base16-light.CodeMirror span.cm-bracket{color:#202020}.cm-s-base16-light.CodeMirror span.cm-tag{color:#ac4142}.cm-s-base16-light.CodeMirror span.cm-link{color:#aa759f}.cm-s-base16-light.CodeMirror span.cm-error{background:#ac4142;color:#505050}.cm-s-base16-light.CodeMirror .CodeMirror-activeline-background{background:#dddcdc}.cm-s-base16-light.CodeMirror .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}",""])},THns:function(e,t,n){"use strict";t.a=function(e){console.info("PostsGenerator - generate"),console.log("PostsGenerator - generate",e);var t=e;return e.nextState.publishedPosts.forEach(function(e){t=Object(o.a)(t,e)}),t};n("APUd");var i=n("j+6P"),o=(n.n(i),n("KgKs"))},ThI1:function(e,t,n){"use strict";var i=n("oz2E"),o=n("mBSI");var r=function(e){n("yJpT")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Tknw:function(e,t,n){"use strict";var i=n("wrAo"),o=n("zfI2");var r=function(e){n("YoMZ")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},WRRc:function(e,t,n){"use strict";t.a={name:"nuxt-link",functional:!0,render:function(e,t){return e("router-link",t.data,t.children)}}},WiUJ:function(e,t,n){"use strict";t.a=function(e){e.on("hubpress:request-theme",function(e){console.info("templatePlugin - hubpress:request-theme"),console.log("templatePlugin - hubpress:request-theme",e);var t,n,i,r,s,u=e.rootState.application.config.theme.name.toLowerCase(),p=e.rootState.application.config;return(t=u,n=p,i=a.a.defer(),r=[],s=n.urls.hubpress,c.a.get(s+"/themes/"+t+"/theme.json?dt="+Date.now()).end(function(e,n){if(e)i.reject(e);else{var o=n.body,u=o.version,p=!1,d=!1,f=!1;if(l.a.toPairs(o.files).forEach(function(e){var n=a.a.defer();r.push(n.promise),p=p||"pagination"===e[0],d=d||"nav"===e[0],f=f||"navigation"===e[0],c.a.get(s+"/themes/"+t+"/"+e[1]+"?v="+u).end(function(t,i){t?n.reject(t):n.resolve({name:e[0],path:e[1],content:i.text})})}),!p){var h=a.a.defer();r.push(h.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/pagination.hbs").end(function(e,t){e?h.reject(e):h.resolve({name:"pagination",path:"partials/pagination",content:t.text})})}if(!d){var g=a.a.defer();r.push(g.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/nav.hbs").end(function(e,t){e?g.reject(e):g.resolve({name:"nav",path:"partials/nav",content:t.text})})}if(!f){var m=a.a.defer();r.push(m.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/navigation.hbs").end(function(e,t){e?m.reject(e):m.resolve({name:"navigation",path:"partials/navigation",content:t.text})})}a.a.all(r).then(function(e){i.resolve({version:u,files:e})}).catch(function(e){console.log(e),i.reject(e)})}}),i.promise).then(function(t){var n={name:u,files:t.files,version:t.version};b.a.registerTheme(p,n),b.a.registerFiles(n.files);var i=o()({},n);return e.nextState=o()({},e.nextState,{theme:i}),e})}),e.on("requestGenerateIndex",function(e){console.info("templatePlugin - requestGenerateIndex"),console.log("templatePlugin - requestGenerateIndex",e);var t=Object(p.a)(e);return console.log("templatePlugin - requestGenerateIndex return",t),t}),e.on("requestGeneratePost",function(e){console.info("templatePlugin - requestGeneratePost"),console.log("templatePlugin - requestGeneratePost",e);var t=Object(d.a)(e,e.nextState.post);return console.log("templatePlugin - requestGeneratePost return",t),t}),e.on("requestGeneratePosts",function(e){console.info("templatePlugin - requestGeneratePosts"),console.log("templatePlugin - requestGeneratePosts",e);var t=Object(f.a)(e);return console.log("templatePlugin - requestGeneratePosts return",t),t}),e.on("requestGeneratePages",function(e){console.info("templatePlugin - requestGeneratePages"),console.log("templatePlugin - requestGeneratePages",e);var t=Object(h.a)(e);return console.log("templatePlugin - requestGeneratePages return",t),t}),e.on("requestGenerateTags",function(e){console.info("templatePlugin - requestGenerateTags"),console.log("templatePlugin - requestGenerateTags",e);var t=Object(g.a)(e);return console.log("templatePlugin - requestGenerateTags return",t),t}),e.on("requestGenerateAuthors",function(e){console.info("templatePlugin - requestGenerateAuthors"),console.log("templatePlugin - requestGenerateAuthors",e);var t=Object(m.a)(e);return console.log("templatePlugin - requestGenerateAuthors return",t),t})};var i=n("woOf"),o=n.n(i),r=n("/Luh"),a=n.n(r),s=n("GG98"),c=n.n(s),u=n("M4fF"),l=n.n(u),p=n("e3+D"),d=n("KgKs"),f=n("THns"),h=n("BdWi"),g=n("dZ6u"),m=n("KOTd"),v=n("j+6P"),b=n.n(v)},X5n4:function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"l",function(){return r}),n.d(t,"i",function(){return a}),n.d(t,"j",function(){return s}),n.d(t,"k",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"d",function(){return l}),n.d(t,"h",function(){return p}),n.d(t,"a",function(){return d}),n.d(t,"g",function(){return f}),n.d(t,"f",function(){return h});var i="application:initialize-routes",o="application:initialize-config",r="application:save-startup-config",a="application:prepare-config",s="application:save-config",c="application:save-config-done",u="application:initialize-app",l="application:initialize-plugins",p="application:notify",d="application:close-notification",f="application:loading",h="application:loaded"},X8TR:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"post-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.showAsciidocHelp()}}},[e._m(0)]),n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchLight()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.lightLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{sun:e.isDark,moon:!e.isDark}})])]),n("a",{staticClass:"item html-preview",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreview(!1)}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.previewLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{unhide:!e.isPreviewVisible||e.isIFrame,hide:e.isPreviewVisible&&!e.isIFrame}})])]),n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreview(!0)}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.previewLabelIFrame,"data-position":"bottom right"}},[n("i",{staticClass:"large icon globe"})])]),e.isPreviewVisible?n("a",{staticClass:"item preview-resize",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreviewSize()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.resizeLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{expand:!e.isFullScreen,compress:e.isFullScreen}})])]):e._e(),e.isRemoteActionVisible?n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.remoteSave()}}},[e._m(1)]):e._e(),e.isRemoteActionVisible?n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.publish()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.publishLabel,"data-position":"bottom right"}},[n("i",{staticClass:"icons"},[n("i",{staticClass:"cloud large icon",class:{download:e.isPostPublished,upload:!e.isPostPublished}})])])]):e._e()])]),e._m(2),n("div",{staticClass:"post-editor"},[n("div",{staticClass:"ui grid",class:{dark:e.isDark,light:!e.isDark}},[n("div",{staticClass:"row"},[n("div",{staticClass:"column",class:{"sixteen wide mobile height wide computer is-preview-visible":e.isPreviewVisible,"sixteen wide":!e.isPreviewVisible,"is-hidden":e.isFullScreen},attrs:{id:"asciidoc-content"}},[n("codemirror",{ref:"codeEditor",staticClass:"container",attrs:{code:e.content,options:e.editorOption},on:{input:e.contentChange}})],1),e.isPreviewVisible?n("div",{staticClass:"column",class:{"sixteen wide mobile height wide computer is-preview-visible":e.isPreviewVisible,"is-iframe":e.isIFrame,"is-fullscreen":e.isFullScreen},attrs:{id:"asciidoc-preview"}},[n("preview",{attrs:{post:e.post,iframe:e.isIFrame}})],1):e._e()])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Need some help?","data-position":"bottom right"}},[t("i",{staticClass:"help large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Save your post remotely","data-position":"bottom right"}},[t("i",{staticClass:"save large icon"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui modal",attrs:{id:"asciidoc-help"}},[n("i",{staticClass:"close icon"}),n("div",{staticClass:"header"},[e._v("\n Asciidoc syntax help\n ")]),n("div",{staticClass:"content"},[n("table",{staticClass:"ui table"},[n("thead",[n("tr",[n("th",{staticClass:"heigth wide"},[e._v("Result")]),n("th",{staticClass:"heigth wide"},[e._v("Asciidoc")])])]),n("tbody",[n("tr",[n("td",[e._v("H1")]),n("td",[e._v("= Title")])]),n("tr",[n("td",[e._v("H2")]),n("td",[e._v("== Title")])]),n("tr",[n("td",[e._v("H3")]),n("td",[e._v("=== Title")])]),n("tr",[n("td",[n("strong",[e._v("Bold")])]),n("td",[e._v("*content*")])]),n("tr",[n("td",[n("i",[e._v("Emphasize")])]),n("td",[e._v("_content_")])]),n("tr",[n("td",[n("a",{attrs:{href:"#"}},[e._v("Link")])]),n("td",[e._v("http://asciidoctor.org[Asciidoctor]")])]),n("tr",[n("td",[e._v("Image Block")]),n("td",[e._v("image::sunset.jpg[]")])]),n("tr",[n("td",[e._v("Image Inline")]),n("td",[e._v('Click image:icons/pause.png[title="Pause"] when you need a break.')])]),n("tr",[n("td",[e._v("Video")]),n("td",[e._v("video::video_file.mp4[]")])]),n("tr",[n("td",[e._v("Unordered list")]),n("td",[e._v("* item")])]),n("tr",[n("td",[e._v("Ordered list")]),n("td",[e._v(". item")])]),n("tr",[n("td",[n("code",[e._v("Inline code")])]),n("td",[e._v("`code`")])])])]),n("p",[e._v("\n More informations about the Asciidoc syntax here: "),n("a",{attrs:{href:"http://asciidoctor.org/docs/asciidoc-syntax-quick-reference/",target:"_blank"}},[e._v("AsciiDoc Syntax Quick Reference")])])])])}]};t.a=i},XO7e:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.iframe?e._e():n("div",{staticClass:"html-rendering"},[n("h1",{staticClass:"ui header"},[e._v(e._s(e.post.title))]),n("div",{staticClass:"content",attrs:{id:"html-content"},domProps:{innerHTML:e._s(e.post.html)}})]),e.iframe?n("div",{staticClass:"iframe-rendering"},[n("iframe",{staticClass:"published-preview",attrs:{srcdoc:e.post.publishedContent,frameborder:"0"}})]):e._e()])},staticRenderFns:[]};t.a=i},XSDV:function(e,t,n){var i=n("jAb+");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("5bd01218",i,!0,{sourceMap:!1})},XkEn:function(e,t,n){var i=n("dd07");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("1ce06800",i,!0,{sourceMap:!1})},Y2j8:function(e,t,n){"use strict";var i=n("woOf"),o=(n.n(i),n("/Luh")),r=(n.n(o),n("M4fF")),a=(n.n(r),n("RJtx")),s=(n.n(a),n("Wa/L")),c=n("tCkb");s.a.plugin(c.a),window.PouchDB=s.a},YDvP:function(e,t,n){var i=n("qZPA");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("3ecfbf5a",i,!0,{sourceMap:!1})},YG9q:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),t.a=function(e){return e.on("application:routes",function(e){return console.info("applicationPlugin - application:routes"),console.log("applicationPlugin - application:routes",e),e.nextState.routes.push({id:"application",entries:[{path:"settings",name:"settings",component:s.a}]}),console.log("applicationPlugin - application:routes - return",e),e}),e.on("application:stores",function(e){var t,n;console.info("applicationPlugin - application:stores"),console.log("applicationPlugin - application:stores",e);var i={state:{isInitialized:!1,isFetching:!1,isLoading:!1,requireInitilisation:!1,notification:{icon:"save",header:"My Header",message:"A message",level:"default",isVisible:!1},routes:[],settingsTabs:[]},mutations:(t={},o()(t,a.b,function(e,t){_.merge(e,t.application)}),o()(t,a.d,function(e,t){_.merge(e,t.application)}),o()(t,a.e,function(e,t){e.routes=t}),o()(t,a.c,function(e,t){_.merge(e,t)}),o()(t,a.i,function(e,t){_.merge(e,t)}),o()(t,a.l,function(e,t){_.merge(e,t)}),o()(t,a.j,function(e,t){_.merge(e,t.application)}),o()(t,a.k,function(e,t){_.merge(e,t.application)}),o()(t,a.h,function(e,t){t.isVisible=!0,_.merge(e.notification,t)}),o()(t,a.a,function(e,t){e.notification.isVisible=!1}),o()(t,a.g,function(e,t){e.isLoading=!0}),o()(t,a.f,function(e,t){e.isLoading=!1}),t),actions:(n={},o()(n,a.c,function(e){var t=e.commit,n=e.rootState,i=e.state,o={rootState:_.cloneDeep(n),currentState:_.cloneDeep(i)};return r.a.initializeConfig(o).then(function(e){t(a.c,e.nextState)})}),o()(n,a.b,function(e){var t=e.commit,n=e.rootState,i=(e.state,{rootState:_.cloneDeep(n),currentState:_.cloneDeep(n)});return r.a.initializeApp(i).then(function(e){console.log("helllllllo",e),t(a.b,e.nextState)})}),o()(n,a.d,function(e){var t=e.commit,n=e.rootState,i=(e.state,{rootState:_.cloneDeep(n),currentState:_.cloneDeep(n)});return r.a.initializePlugins(i).then(function(e){e.nextState.application.isInitialized=!0,t(a.d,e.nextState)})}),o()(n,a.i,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,s=e.state,c={rootState:_.cloneDeep(o),currentState:_.cloneDeep(s),nextState:_.cloneDeep(s),payload:{formData:t}};return c.currentState.isLoading=!0,c.nextState.isLoading=!0,n(a.g).then(function(e){return r.a.prepareConfig(c)}).then(function(e){return i(a.i,e.nextState),n(a.j)})}),o()(n,a.l,function(e,t){e.dispatch;var n=e.commit,i=e.rootState,o=e.state,s={rootState:_.cloneDeep(i),currentState:_.cloneDeep(o),nextState:_.cloneDeep(o)};return s.nextState.config.meta.username=t.username,s.nextState.config.meta.repositoryName=t.repositoryName,s.nextState.config.meta.branch=t.branch,s.nextState.config.meta.cname=t.cname,s.nextState.requireInitilisation=!1,r.a.startUpConfig(s).then(function(e){n(a.l,e.nextState)})}),o()(n,a.j,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,s=(e.state,{rootState:_.cloneDeep(o),currentState:_.cloneDeep(o),nextState:_.cloneDeep(o)});return console.log(s),r.a.saveConfig(s).then(function(e){if(console.log("testsettesse",e),i(a.j,e.nextState),!t)return n(a.k)})}),o()(n,a.k,function(e){var t=e.dispatch,n=e.commit,i=e.rootState,o=(e.state,{rootState:_.cloneDeep(i),currentState:_.cloneDeep(i),nextState:_.cloneDeep(i)});return r.a.saveConfigDone(o).then(function(e){n(a.k,e.nextState)}).then(function(e){return t("application:loaded")}).then(function(e){return t("application:notify",{icon:"save",header:"Settings saved",message:"Your settings have been saved and your blog was rebuild with success. ",level:"success"})})}),o()(n,a.h,function(e,t){e.dispatch;var n=e.commit;e.rootState,e.state,n(a.h,t)}),o()(n,a.a,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.a)}),o()(n,a.g,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.g)}),o()(n,a.f,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.f)}),n),getters:{navigations:function(e){return e.routes.filter(function(e){return e.label})}}};return e.nextState.stores.application=i,console.log("applicationPlugin - application:stores - return",e),e}),e.on("application:prepare-config",function(e){return console.info("applicationPlugin - application:prepare-config"),console.log("applicationPlugin - application:prepare-config",e),e.nextState.config.meta.cname=e.payload.formData.get("application-cname"),console.log("applicationPlugin - application:prepare-config - return",e),e}),e.on("application:save-config",function(e){return console.info("applicationPlugin - application:save-config"),console.log("applicationPlugin - application:save-config",e),console.log("applicationPlugin - application:save-config - return",e),e}),{getName:function(){return"applicationPlugin"}}};var i=n("bOdI"),o=n.n(i),r=n("RsIG"),a=n("X5n4"),s=n("kMyt"),c={APPLICATION_PREPARE_CONFIG:a.i}},YLfZ:function(e,t,n){"use strict";t.a=function(e,t){var n=e.options.data||x;if(!t&&e.options.hasAsyncData)return;e.options.hasAsyncData=!0,e.options.data=function(){var i=n.call(this);return this.$ssrContext&&(t=this.$ssrContext.asyncData[e.cid]),m()({},i,t)},e._Ctor&&e._Ctor.options&&(e._Ctor.options.data=e.options.data)},t.l=C,t.e=w,t.f=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],e.matched.map(function(e,n){return h()(e.instances).map(function(i){return t&&t.push(n),e.instances[i]})}))},t.c=y,t.k=P,n.d(t,"h",function(){return _}),n.d(t,"m",function(){return R}),t.i=function e(t,n){if(!t.length||n._redirected||n._errored)return d.a.resolve();return q(t[0],n).then(function(){return e(t.slice(1),n)})},t.j=q,t.d=function(e,t){var n=window.location.pathname;if("hash"===t)return window.location.hash.replace(/^#\//,"");e&&0===n.indexOf(e)&&(n=n.slice(e.length));return(n||"/")+window.location.search+window.location.hash},t.b=function(e,t){return function(e){for(var t=new Array(e.length),n=0;n1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],e.matched.map(function(e,n){return h()(e.components).map(function(i){return t&&t.push(n),e.components[i]})}))}function y(e,t){return Array.prototype.concat.apply([],e.matched.map(function(e,n){return h()(e.components).map(function(i){return t(e.components[i],e.instances[i],e,i,n)})}))}function P(e){var t,n=this;return d.a.all(y(e,(t=l()(c.a.mark(function e(t,i,o,r){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof t||t.options){e.next=4;break}return e.next=3,t();case 3:t=e.sent;case 4:return e.abrupt("return",o.components[r]=C(t));case 5:case"end":return e.stop()}},e,n)})),function(e,n,i,o){return t.apply(this,arguments)})))}window._nuxtReadyCbs=[],window.onNuxtReady=function(e){window._nuxtReadyCbs.push(e)};var k,S,_=(k=l()(c.a.mark(function e(t){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P(t);case 2:return e.abrupt("return",m()({},t,{meta:w(t).map(function(e){return e.options.meta||{}})}));case 3:case"end":return e.stop()}},e,this)})),function(e){return k.apply(this,arguments)}),R=(S=l()(c.a.mark(function e(t,n){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n.to?n.to:n.route,t.context){e.next=14;break}e.t0=!0,e.t1=t,e.t2=t.store,e.t3=n.payload,e.t4=n.error,e.t5={hubpressVersion:"0.9.2",baseUrl:"http://localhost:3000"},t.context={get isServer(){return console.warn("context.isServer has been deprecated, please use process.server instead."),!1},get isClient(){return console.warn("context.isClient has been deprecated, please use process.client instead."),!0},isStatic:e.t0,isDev:!1,isHMR:!1,app:e.t1,store:e.t2,payload:e.t3,error:e.t4,base:"..",env:e.t5},n.req&&(t.context.req=n.req),n.res&&(t.context.res=n.res),t.context.redirect=function(e,n,i){if(e){t.context._redirected=!0;var o=void 0===n?"undefined":a()(n);if("number"==typeof e||"undefined"!==o&&"object"!==o||(i=n||{},o=void 0===(n=e)?"undefined":a()(n),e=302),"object"===o&&(n=t.router.resolve(n).href),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(n))throw n=j(n,i),window.location.replace(n),new Error("ERR_REDIRECT");t.context.next({path:n,query:i,status:e})}},t.context.nuxtState=window.__NUXT__;case 14:if(t.context.next=n.next,t.context._redirected=!1,t.context._errored=!1,t.context.isHMR=!!n.isHMR,!n.route){e.next=22;break}return e.next=21,_(n.route);case 21:t.context.route=e.sent;case 22:if(t.context.params=t.context.route.params||{},t.context.query=t.context.route.query||{},!n.from){e.next=28;break}return e.next=27,_(n.from);case 27:t.context.from=e.sent;case 28:case"end":return e.stop()}},e,this)})),function(e,t){return S.apply(this,arguments)});function q(e,t){var n=void 0;return(n=2===e.length?new d.a(function(n){e(t,function(e,i){e&&t.error(e),n(i=i||{})})}):e(t))&&(n instanceof d.a||"function"==typeof n.then)||(n=d.a.resolve(n)),n}var M=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function $(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function D(e){return e.replace(/([.+*?=^!:()[\]|\/\\])/g,"\\$1")}function L(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function j(e,t){var n=void 0,i=e.indexOf("://");-1!==i?(n=e.substring(0,i),e=e.substring(i+3)):0===e.indexOf("//")&&(e=e.substring(2));var r=e.split("/"),a=(n?n+"://":"//")+r.shift(),s=r.filter(Boolean).join("/"),c=void 0;return 2===(r=s.split("#")).length&&(s=r[0],c=r[1]),a+=s?"/"+s:"",t&&"{}"!==o()(t)&&(a+=(2===e.split("?").length?"&":"?")+function(e){return h()(e).sort().map(function(t){var n=e[t];return null==n?"":Array.isArray(n)?n.slice().map(function(e){return[t,"=",e].join("")}).join("&"):t+"="+n}).filter(Boolean).join("&")}(t)),a+=c?"#"+c:""}},YMuy:function(e,t,n){"use strict";var i=n("6Ndi"),o=n("PJh5"),r=n.n(o);function a(e){return i.a.fireRequestRemoteSynchronization(e).then(function(e){return i.a.fireReceiveRemoteSynchronization(e)}).then(function(e){return i.a.fireRequestRenderingDocuments(e)}).then(function(e){return i.a.fireReceiveRenderingDocuments(e)}).then(function(e){return i.a.fireRequestLocalSynchronization(e)}).then(function(e){return i.a.fireReceiveLocalSynchronization(e)}).then(function(e){return i.a.fireRequestLocalPosts(e)}).then(function(e){return i.a.fireReceiveLocalPosts(e)}).then(function(e){return localStorage.setItem("hubpress:sync",r()().format()),e})}t.a={initialize:function(e){return i.a.fireRequestTheme(e).then(function(e){return i.a.fireReceiveTheme(e)}).then(function(e){return localStorage.getItem("hubpress:sync")?i.a.fireRequestLocalPosts(e).then(function(e){return i.a.fireReceiveLocalPosts(e)}):a(e)})},synchronize:a}},YoMZ:function(e,t,n){var i=n("7Rt3");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("9418214c",i,!0,{sourceMap:!1})},"bN/m":function(e,t,n){"use strict";function i(e,t){var n=void 0;return e.cname&&""!==e.cname?n=(!1===t?"":"http:")+"//"+e.cname:(n=(!1===t?"":"https:")+"//"+e.username+".github.io","master"!==e.branch&&(n=n+"/"+e.repositoryName)),n}function o(e,t){var n=e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"/$1/$2/$3/$4.html");return"page"===t&&(n=e.replace(/([\w-]*)\.adoc/,"/$1.html")),n}function r(e,t){var n=e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"$1/$2/$3/$4.html");return"page"===t&&(n=e.replace(/([\w-]*)\.adoc/,"$1.html")),n}function a(e){return e.match(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/)?"post":"page"}t.a=function(e){return{site:i(e.meta),hubpress:function(e,t){var n=t.protocol+"//"+t.host;if("localhost"===t.hostname)return n;t.host===e.username+".github.io"||t.host===e.username+".github.com"?"master"!==e.branch&&(n=n+"/"+e.repositoryName):"master"===e.branch||e.cname&&""!==e.cname||(n=n+"/"+e.repositoryName);return n}(e.meta,window.location),theme:i(e.meta,!1)+"/themes/"+e.theme.name,images:i(e.meta)+"/images",getContentUrl:o,getContentGhPath:r,getContentType:a,getPostUrl:function(e){return e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"/$1/$2/$3/$4.html")},getPostGhPath:function(e){return e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"$1/$2/$3/$4.html")},getPageUrl:function(e){return e.replace(/([\w-]*)\.adoc/,"/$1.html")},getPageGhPath:function(e){return e.replace(/([\w-]*)\.adoc/,"$1.html")},getSiteUrl:i}}},bxJ0:function(e,t,n){"use strict";t.a=function(e){e.on("application:request-config",function(e){return console.info("githubPlugin - application:request-config"),console.log("githubPlugin - application:request-config",e),l()("config.json?dt="+Date.now()).then(function(e){return e.json()}).then(function(t){return e.nextState.config=a()({},e.nextState.config,t),e.nextState.config.theme.name=e.nextState.config.theme.name.toLowerCase(),e})}),e.on("application:receive-config",function(e){console.info("githubPlugin - application:receive-config"),console.log("githubPlugin - application:receive-config",e);var t=Object(w.a)(e.nextState.config);return e.nextState.config=a()({},e.nextState.config,{urls:t}),e}),e.on("requestAuthentication",function(e){return console.info("githubPlugin - requestAuthentication"),console.log("githubPlugin - requestAuthentication",e),function(e){console.log("githubPlugin - login",e);var t=m.a.defer(),n=e.nextState.credentials,i=e.rootState.application.config.meta,o=(q=new h.a({auth:"basic",username:n.email,password:n.password,twoFactorCode:n.twoFactorCode})).getRepo(i.username,i.repositoryName),r=q.getAuthorization(),a=q.getUser(),s=void 0,c=void 0;return function(e){var t=m.a.defer();return e.getDetails(function(e,n){e?t.reject(e):t.resolve(n)}),t.promise}(o).then(function(e){s=e}).then(S(a)).then(function(e){return c=e,function(e){var t=m.a.defer();return console.log("getAuthorizations",e),e.listAuthorizations({},function(e,n){e?t.reject(e):(console.log("getAuthorizations list",n),t.resolve(n))}),t.promise}(r)}).then(function(e){return function(e,t,n){var i=m.a.defer(),o=-1,r=_(e);return t.forEach(function(e){e.note===r&&(o=e.id)}),-1!==o?n.deleteAuthorization(o,function(e,t){e?i.reject(e):i.resolve()}):i.resolve(),i.promise}(i.repositoryName,e,r)}).then(function(){return R(i.repositoryName,r)}).then(function(e){q=new h.a({auth:"oauth",token:e.token}),t.resolve({isAuthenticated:!0,credentials:{token:e.token},permissions:s.permissions,userInformations:c})}).catch(function(e){console.error("githubPlugin - login error",e,e.response);var n,o={type:"error",title:"Authentication"};e.response&&(n="required"===(e.response.headers&&e.response.headers["x-github-otp"]||"").split(";")[0]),n?(R(i.repositoryName,r),console.log("githubPlugin - OTP required : ",n),o.type="warning",o.content="A two-factor authentication code is needed.",o.otp=!0,t.resolve({isAuthenticated:!1,isTwoFactorCodeRequired:!0})):(console.error("githubPlugin - login error",e),t.reject({error:{code:e.error,message:"Unable to authenticate, check your credentials."}}))}),t.promise}(e).then(function(t){var n=a()({},e.nextState.credentials,t.credentials);return e.nextState=a()({},e.nextState,t,{credentials:n}),e})}),e.on("receiveSavedAuth",function(e){return console.info("githubPlugin - receiveSavedAuth"),console.log("githubPlugin - receiveSavedAuth",e),e.nextState.authentication.isAuthenticated&&(q=new h.a({auth:"oauth",token:e.nextState.authentication.credentials.token})),e}),e.on("hubpress:request-remote-synchronization",function(e){return console.info("githubPlugin - hubpress:request-remote-synchronization"),console.log("githubPlugin - hubpress:request-remote-synchronization",e),e.rootState.authentication.isAuthenticated?function(e){var t=e.application.config;console.log("Get posts",t);var n=t.meta,i=q.getRepo(n.username,n.repositoryName);return function(e,t){var n=m.a.defer();return e.getContents(t.meta.branch,"",!0,function(e,t){if(e)n.reject(e);else{var i=void 0;t.forEach(function(e){"_posts"===e.name&&(i=e.sha)}),n.resolve(i)}}),n.promise}(i,t).then(function(e){return function(e,t,n){var i=void 0;if(n===localStorage.postsSha)i=m.a.fcall(function(){return[]});else{var o=m.a.defer();e.getContents(t.meta.branch,"_posts",!0,function(e,t){e?o.reject(e):o.resolve(t)}),i=o.promise}return i}(i,t,e)}).then(function(e){return e.map(function(e){return b.a.pick(e,["name","path","sha","size"])})}).then(function(e){return function(e,t,n){var i=b.a.compact(n).map(function(e){return function(e,t){var n=m.a.defer(),i=e.meta,o=q.getRepo(i.username,i.repositoryName),r=e.urls.getContentType(t.name);return o.getSha(e.meta.branch,e.urls.getContentGhPath(t.name,r),function(e,i){if(e&&e.response&&404!==e.response.status)n.reject(e);else{var o=i?1:0,r=a()({},t,{published:o});n.resolve(r)}}),n.promise}(t,e)});return m.a.all(i)}(0,t,e)}).then(function(n){return function(e,t,n,i){var o=n.map(function(e){return M(t,e,i)});return m.a.all(o)}(0,t,n,e.authentication.userInformations)}).then(function(e){return function(e,t,n){var i=[];return n.forEach(function(n){var o=m.a.defer();i.push(o.promise),e.getContents(t.meta.branch,n.path,!0,function(e,t){var i;e?o.reject(e):(i=a()({},n,{content:t}),o.resolve(i))})}),m.a.all(i)}(i,t,e)})}(e.rootState).then(function(t){return e.nextState=a()({},e.nextState,{posts:t}),e}):e}),e.on("requestSaveRemotePost",function(e){console.info("githubPlugin - requestSaveRemotePost"),console.log("githubPlugin - requestSaveRemotePost",e);var t=e.rootState.application.config,n=e.nextState.post;return function(e,t){var n=e.meta,i=q.getRepo(n.username,n.repositoryName),o=void 0;if(t.original&&t.name!==t.original.name){var r=m.a.defer();o=r.promise;var a=e.meta.branch,s="_posts/"+t.original.name,c="_posts/"+t.name;i.move(a,s,c,function(n,o){if(n)r.reject(n);else if(t.published){var s=e.urls.getContentGhPath(t.original.name,t.original.type);(function(e,t,n){return function(e,t,n){var i=m.a.defer();return e.deleteFile(t,n,function(e,t){e?i.reject(e):(console.error(t),k=t.commit,i.resolve(t))}),i.promise}(e,t,n)})(i,a,s).then(function(e){r.resolve({post:t,sha:e})}).catch(function(e){r.reject(e)}).done()}else r.resolve({post:t,sha:o})})}else o=m()({post:t});return o}(t,n).then(function(e){return function(e,t){console.log("Write post",e,t);var n=e.meta,i=q.getRepo(n.username,n.repositoryName),o=n.branch,r="_posts/"+t.name,a="Update "+t.name,s=m.a.defer();return i.writeFile(o,r,t.content,a,function(n,i){n?s.reject(n):(t.original=b.a.omit(t,["original"]),t.original.url=e.urls.getContentUrl(t.original.name,t.original.type),t.original.path="_posts/"+t.original.name,t.original.sha=i,k=i.commit,console.info("Update lastCacheCommit",k),s.resolve(t))}),s.promise}(t,e.post)}).then(function(n){return M(t,n,e.rootState.authentication.userInformations)}).then(function(t){return e.nextState.post=t,e})}),e.on("requestSaveRemotePublishedElements",function(e){console.info("githubPlugin - requestSaveRemotePublishedElements"),console.log("githubPlugin - requestSaveRemotePublishedElements",e);var t=e.rootState.application.config.meta,n=q.getRepo(t.username,t.repositoryName),i=e.nextState.elementsToPublish.length,o=b.a.chunk(e.nextState.elementsToPublish,P);console.log("Writeall",e.nextState.elementsToPublish);var r=m.a.defer();return n.getBranch(t.branch,function(a,s){if(a){var c=m.a.defer();return r=c.promise,c.reject(a)}var u=0,l=o.reduce(function(e,o){return e.then(function(e){var r=m.a.defer(),a=o.map(function(e){return{path:e.path,mode:"100644",type:"blob",content:e.content}});return n.createTree(a,e,function(a,s){if(a)return r.reject(a);n.commit(e,s.sha,"Published "+(u+o.length)+"/"+i+" elements",function(e,i){if(e)return r.reject(e);u+=o.length,k=i,n.updateHead("heads/"+t.branch,i.sha,!1,function(e,t){if(console.log("updateHead",e,t),e)return r.reject(e);r.resolve(i.sha)})})}),r.promise})},m()(function(e,t){if(console.error(e,t),!t)return e.sha;var n=C()(e.committer.date);return C()(t.committer.date).isAfter(n)?t.sha:e.sha}({committer:s.commit.commit.committer,sha:s.commit.sha},k)));l.then(function(t){r.resolve(e)}).catch(function(e){r.reject(e)})}),r.promise}),e.on("requestDeleteRemotePost",function(e){console.info("githubPlugin - requestDeleteRemotePost"),console.log("githubPlugin - requestDeleteRemotePost",e);var t=m.a.defer(),n=e.rootState.application.config,i=n.meta,o=q.getRepo(i.username,i.repositoryName),r=e.nextState.post.original.path;return o.deleteFile(i.branch,r,function(n,i){n&&n.response&&404!==n.response.status?t.reject(n):(console.error("requestDeleteRemotePost",i),k=i.commit,t.resolve(e))}).catch(function(n){n&&n.response&&404===n.response.status&&t.resolve(e)}),t.promise}),e.on("requestDeleteRemotePublishedPost",function(e){console.info("githubPlugin - requestDeleteRemotePublishedPost"),console.log("githubPlugin - requestDeleteRemotePublishedPost",e);var t=m.a.defer(),n=e.rootState.application.config,i=n.meta,o=q.getRepo(i.username,i.repositoryName),r=n.urls.getContentGhPath(e.nextState.post.original.name,e.nextState.post.original.type);return o.deleteFile(i.branch,r,function(n,i){n?t.reject(n):(console.error("requestDeleteRemotePublishedPost",i),k=i.commit,t.resolve(e))}),t.promise}),e.on("application:request-save-config",function(e){console.info("githubPlugin - application:request-save-config"),console.log("githubPlugin - application:request-save-config",e);var t=e.nextState.application;return function(e){console.log("Write config",e);var t=m.a.defer(),n=e.meta,i=q.getRepo(n.username,n.repositoryName),r=n.branch;return i.writeFile(r,"hubpress/config.json",o()(e,null,2),"Update configuration file",function(e,n){e?t.reject(e):(k=n.commit,console.info("Update lastCacheCommit",k),t.resolve(n))}),t.promise}(t.config).then(function(e){return function(e){console.log("Github manageCname - ",e);var t=e.meta,n=q.getRepo(t.username,t.repositoryName),i=m.a.defer();t.cname&&""!==t.cname?(console.info("SettingsService - saveAndPublish save CNAME"),n.writeFile(t.branch,"CNAME",t.cname,"Update CNAME with "+t.cname,function(e,t){e?i.reject(e):(k=t.commit,console.info("Update lastCacheCommit",k),i.resolve(t))})):(console.info("SettingsService - saveAndPublish delete CNAME"),n.deleteFile(t.branch,"CNAME",function(e,t){e&&"not found"!==e?i.reject(e):i.resolve(t)}).then(function(e){console.log("SHA after delete",e),i.resolve(e)}).catch(function(e){404!==e.response.status?i.reject(e):i.resolve()}));return i.promise}(t.config)}).then(function(t){return e})}),e.on("receiveRenderingPost",function(e){return console.info("githubPlugin - receiveRenderingPost"),console.log("githubPlugin - receiveRenderingPost",e),e}),e.on("application:initialize-plugins",function(e){console.info("githubPlugin - application:initialize-plugins"),console.log("githubPlugin - application:initialize-plugins",e);var t="put your repository name here"===e.rootState.application.config.meta.repositoryName||"put your username here"===e.rootState.application.config.meta.username;return e.nextState.application.requireInitilisation=t,e.nextState.application.config.initialisationConfigComponent=y.a,e})};var i=n("mvHQ"),o=n.n(i),r=n("woOf"),a=n.n(r),s=n("6ltY"),c=n.n(s),u=n("j9g7"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=n("73D8"),h=n.n(f),g=n("/Luh"),m=n.n(g),v=n("M4fF"),b=n.n(v),x=n("PJh5"),C=n.n(x),w=n("bN/m"),y=n("IBrK"),P=50,k=null;function S(e){return function(){var t=m.a.defer();return e.getProfile(function(e,n){e?t.reject(e):t.resolve(b.a.pick(n,["login","id","name","location","blog","avatar_url","bio"]))}),t.promise}}function _(e){return d()(e+"-"+c.a.name+"-"+c.a.os)}function R(e,t){var n=m.a.defer(),i={scopes:["public_repo"],note:_(e)};return t.createAuthorization(i,function(e,t){e?n.reject(e):n.resolve(t)}),n.promise}var q=void 0;function M(e,t,n){var i=m.a.defer(),o=e.meta,r=q.getRepo(o.username,o.repositoryName);return console.log("getPostAuthor",t),r.listCommits({sha:e.meta.branch,path:t.original&&t.original.path||t.path},function(e,o){if(e&&404!==e.error)i.reject(e);else{var r=o[o.length-1].author;if(r&&r.login!==n.login){S(q.getUser(r.login))().then(function(e){r=a()({},e);var n=a()({},t,{author:r});i.resolve(n)}).catch(function(e){return i.reject(e)})}else{r=a()({},n);var s=a()({},t,{author:r});i.resolve(s)}}}),i.promise}},cOI0:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,'.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,.5)}.cm-animate-fat-cursor,.cm-fat-cursor-mark{-webkit-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;background-color:#7e7}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;-webkit-font-feature-settings:"calt";font-feature-settings:"calt";font-variant-ligatures:contextual}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-webkit-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}',""])},cmzl:function(e,t,n){"use strict";var i={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"nuxt-progress",style:{width:this.percent+"%",height:this.height,"background-color":this.canSuccess?this.color:this.failedColor,opacity:this.show?1:0}})},staticRenderFns:[]};t.a=i},ct3O:function(e,t,n){"use strict";var i=n("FIB3"),o=n("FdPX");var r=function(e){n("wGIl")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},"d/OL":function(e,t,n){"use strict";t.a=function(e){e.on("hubpress:request-rendering-documents",function(e){console.info("asciidocPlugin - hubpress:request-rendering-documents"),console.log("asciidocPlugin - hubpress:request-rendering-documents",e);var t=e.rootState.application.config,n=(e.nextState.posts||[]).map(function(e){var n=o()({},e,h(t,e.content),{content:e.content}),i=c.a.pick(n,"attributes","author","html","tags","content","name","path","sha");n.title=i.title=i.attributes.doctitle,n.image=i.image=i.attributes["hp-image"],n.type=i.type=i.attributes["hp-type"],n.tags=i.tags=g(i.attributes),n.url=i.url=m(t,n.type,i.name);var r=o()({},n,{original:i});return n.type&&"post"!==n.type||(r.original.published_at=r.published_at=i.name.split("-").slice(0,3).join("-")),r});return e.nextState.posts=n,e}),e.on("requestRenderingPost",function(e){console.info("asciidocPlugin - requestRenderingPost"),console.log("asciidocPlugin - requestRenderingPost",e);var t=h(e.rootState.application.config,e.nextState.post.content);e.nextState.post=o()({},e.nextState.post,t),e.nextState.post.title=t.attributes.doctitle,e.nextState.post.image=t.attributes["hp-image"],e.nextState.post.type=t.attributes["hp-type"],e.nextState.post.tags=g(t.attributes),e.nextState.post.published_at=t.attributes.published_at||e.nextState.post.published_at||l()().format("YYYY-MM-DD");var n=t.attributes["hp-alt-title"];return e.nextState.post.type&&"post"!==e.nextState.post.type?e.nextState.post.name=d()(""+(n||e.nextState.post.title))+".adoc":e.nextState.post.name=d()(e.nextState.post.published_at+"-"+(n||e.nextState.post.title))+".adoc",e.nextState.post.url=m(e.rootState.application.config,e.nextState.post.type,e.nextState.post.name),e})};var i=n("woOf"),o=n.n(i),r=n("rzLr"),a=n.n(r),s=n("M4fF"),c=n.n(s),u=n("PJh5"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=a()(!1,window.XMLHttpRequest);function h(e,t){var n={doctype:"article",backend:"html5",safe:"unsafe",attributes:["showtitle!","allow-uri-read","imagesdir="+e.urls.site+"/images","icons=font"]},i=function(e){var t=e.split("pass::[more]");return{excerpt:t[0],full:t.join("")}}(t.replace(/gist::([0-9]*)\[(lines=[0-9]*\.\.[0-9]*)?,?(type=([\w.]*))?,?(file=([\w.]*))?\]/g,"[source,$4]\n----\ninclude::https://gist.githubusercontent.com/raw/$1/$6[$2]\n----\n")),o=f.load(i.excerpt,n),r=f.load(i.full,n);return{attributes:r.getAttributes(),excerpt:o.$convert(),html:r.$convert()}}function g(e){return e["hp-tags"]&&e["hp-tags"].split(",").map(function(e){return e.trim()}).filter(function(e){return""!==e})}function m(e,t,n){return e.urls.getContentUrl(n,t)}},dCDI:function(e,t,n){"use strict";(function(e,t){var i,o=n("pFYg"),r=n.n(o);i=function(e){var t;(t=e).overlayMode=function(e,n,i){return{startState:function(){return{base:t.startState(e),overlay:t.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(i){return{base:t.copyState(e,i.base),overlay:t.copyState(n,i.overlay),basePos:i.basePos,baseCur:null,overlayPos:i.overlayPos,overlayCur:null}},token:function(t,o){return(t!=o.streamSeen||Math.min(o.basePos,o.overlayPos)"},redirect:"/content",meta:{auth:!0},children:t.nextState.routes.map(function(e){return console.log(e),e.entries}).reduce(function(e,t){return e.concat(t)},[])}]},i=new r.default(n);return i.routes=t.nextState.routes,i.beforeEach(function(e,t,n){var i=Object(a.default)();e.matched.some(function(e){return e.meta.auth})?i.state.authentication.isAuthenticated?n():n({path:"/login",query:{redirect:e.fullPath}}):n()}),i};var i=n("I3G/"),o=n.n(i),r=n("/ocq"),a=n("fbRD"),s=n("LEOq"),c=n.n(s),u=(n("7cn8"),n("YG9q")),l=n("QMmS"),p=n("3oxy"),d=n("H8Oa"),f=n("bxJ0"),h=n("WiUJ"),g=n("H1PK"),m=n("d/OL"),v=(n("Y2j8"),n("1AqL")),b=n("tLh+");console.log("router =============="),console.log("Router"),o.a.use(r.default),c.a.register(u.a,l.b,p.a,d.a,f.a,h.a,g.a,m.a,v.a,b.a),console.log("Registered plugins",c.a.list())},oz2E:function(e,t,n){"use strict";t.a={name:"dashboard",beforeCreate:function(){console.log("dashboard beforeCreate")},created:function(){console.log("dashboard created")}}},qZPA:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".html-rendering,.published-preview{min-width:100%;height:calc(100vh - 47px);min-height:calc(100vh - 47px)}",""])},qcny:function(e,t,n){"use strict";n.d(t,"b",function(){return D});var i=n("Xxa5"),o=n.n(i),r=n("//Fk"),a=(n.n(r),n("C4MV")),s=n.n(a),c=n("woOf"),u=n.n(c),l=n("Dd8w"),p=n.n(l),d=n("exGp"),f=n.n(d),h=n("MU8w"),g=(n.n(h),n("I3G/")),m=n.n(g),v=n("p3jY"),b=n.n(v),x=n("mtxM"),C=n("0F0d"),w=n("HBB+"),y=n("WRRc"),P=n("ct3O"),k=n("Hot+"),S=n("yTq1"),_=n("YLfZ"),R=n("J2Ti"),q=n("zQW4"),M=n("6hdJ");n.d(t,"a",function(){return P.a});var $,D=($=f()(o.a.mark(function e(t){var n,i,r,a,c,l,d;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(x.a)(t),(i=Object(R.a)(t)).$router=n,r=p()({router:n,store:i,nuxt:{defaultTransition:L,transitions:[L],setTransitions:function(e){return Array.isArray(e)||(e=[e]),e=e.map(function(e){return e=e?"string"==typeof e?u()({},L,{name:e}):u()({},L,e):L}),this.$options.nuxt.transitions=e,e},err:null,dateErr:null,error:function(e){e=e||null,r.context._errored=!!e,"string"==typeof e&&(e={statusCode:500,message:e});var n=this.nuxt||this.$options.nuxt;return n.dateErr=Date.now(),n.err=e,t&&(t.nuxt.error=e),e}}},S.a),i.app=r,a=t?t.next:function(e){return r.router.push(e)},c=void 0,t?c=n.resolve(t.url).route:(l=Object(_.d)(n.options.base),c=n.resolve(l).route),e.next=10,Object(_.m)(r,{route:c,next:a,error:r.nuxt.error.bind(r),store:i,payload:t?t.payload:void 0,req:t?t.req:void 0,res:t?t.res:void 0,beforeRenderFns:t?t.beforeRenderFns:void 0});case 10:if(d=function(e,t){if(!e)throw new Error("inject(key, value) has no key provided");if(!t)throw new Error("inject(key, value) has no value provided");r[e="$"+e]=t,i[e]=r[e];var n="__nuxt_"+e+"_installed__";m.a[n]||(m.a[n]=!0,m.a.use(function(){m.a.prototype.hasOwnProperty(e)||s()(m.a.prototype,e,{get:function(){return this.$root.$options[e]}})}))},window.__NUXT__&&window.__NUXT__.state&&i.replaceState(window.__NUXT__.state),"function"!=typeof q.a){e.next=15;break}return e.next=15,Object(q.a)(r.context,d);case 15:if("function"!=typeof M.a){e.next=18;break}return e.next=18,Object(M.a)(r.context,d);case 18:e.next=21;break;case 21:return e.abrupt("return",{app:r,router:n,store:i});case 22:case"end":return e.stop()}},e,this)})),function(e){return $.apply(this,arguments)});m.a.component(C.a.name,C.a),m.a.component(w.a.name,w.a),m.a.component(y.a.name,y.a),m.a.component(k.a.name,k.a),m.a.use(b.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var L={name:"page",mode:"out-in",appear:!0,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"}},r6qT:function(e,t,n){var i=n("HEYa");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("2b9275f1",i,!0,{sourceMap:!1})},"tLh+":function(e,t,n){"use strict";t.a=function(e){e.on("requestGenerateIndex",function(e){console.info("rssPlugin - requestGenerateIndex"),console.log("rssPlugin - requestGenerateIndex",e);var t=e.rootState.application.config.site||{},n=e.rootState.application.config.urls.site||"",i=e.nextState.publishedPosts||[],r=new o.a({title:t.title||"",description:t.description||"",feed_url:n+"/rss/",site_url:n,image_url:t.cover,ttl:"60"});i.forEach(function(e){r.item({title:e.title,description:e.html,url:""+n+e.url,categories:e.tags,author:e.author.name,date:e.published_at})});var a=r.xml(),s=[];return s.push({name:"RSS",path:"rss/index.xml",content:a,message:"Publish rss feed"}),e.nextState.elementsToPublish=(e.nextState.elementsToPublish||[]).concat(s),e})};var i=n("DVIz"),o=n.n(i)},u8s0:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"",""])},unZF:function(e,t,n){"use strict";var i=n("BO1k"),o=n.n(i),r=n("GfDd"),a=r.keys();function s(e){var t=r(e);return t.default?t.default:t}var c={},u=!0,l=!1,p=void 0;try{for(var d,f=o()(a);!(u=(d=f.next()).done);u=!0){var h=d.value;c[h.replace(/^\.\//,"").replace(/\.(js|ts)$/,"")]=s(h)}}catch(e){l=!0,p=e}finally{try{!u&&f.return&&f.return()}finally{if(l)throw p}}t.a=c},vXEZ:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".nuxt-progress{position:fixed;top:0;left:0;right:0;height:2px;width:0;-webkit-transition:width .2s,opacity .4s;transition:width .2s,opacity .4s;opacity:1;background-color:#efc14e;z-index:999999}",""])},wGIl:function(e,t,n){var i=n("m8kW");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("6bc7b368",i,!0,{sourceMap:!1})},wQtD:function(e,t,n){"use strict";t.a={name:"navigation-settings",data:function(){return{newNav:{label:"",url:""},navigation:this.$store.state.application.config.navigation||[]}},computed:{isNotValid:function(){return""===this.newNav.label.trim()||""===this.newNav.url.trim()}},methods:{remove:function(e){this.navigation.splice(e,1)},clear:function(){this.newNav={label:"",url:""}},add:function(e){this.navigation.push(e),this.clear()}}}},wrAo:function(e,t,n){"use strict";t.a={name:"hubpress-settings-social",computed:{social:function(){return this.$store.state.application.config.socialnetwork||{}}}}},yJpT:function(e,t,n){var i=n("j9sj");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("33615082",i,!0,{sourceMap:!1})},yTq1:function(e,t,n){"use strict";var i=n("//Fk"),o=n.n(i),r=n("I3G/"),a=n.n(r),s=n("F88d"),c=n("XSDV"),u=(n.n(c),{_default:function(){return n.e(0).then(n.bind(null,"Ma2J")).then(function(e){return e.default||e})}}),l={};t.a={head:{title:"Hubpress: A web application to build your Blog",meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{hid:"description",name:"description",content:"Nuxt.js project"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"},{rel:"stylesheet",href:"../static/semantic/semantic.min.css"}],style:[],script:[]},render:function(e,t){var n=e("nuxt-loading",{ref:"loading"}),i=e(this.layout||"nuxt");return e("div",{domProps:{id:"__nuxt"}},[n,e("transition",{props:{name:"layout",mode:"out-in"}},[e("div",{domProps:{id:"__layout"},key:this.layoutName},[i])])])},data:function(){return{layout:null,layoutName:""}},beforeCreate:function(){a.a.util.defineReactive(this,"nuxt",this.$options.nuxt)},created:function(){a.a.prototype.$nuxt=this,"undefined"!=typeof window&&(window.$nuxt=this),this.error=this.nuxt.error},mounted:function(){this.$loading=this.$refs.loading},watch:{"nuxt.err":"errorChanged"},methods:{errorChanged:function(){this.nuxt.err&&this.$loading&&(this.$loading.fail&&this.$loading.fail(),this.$loading.finish&&this.$loading.finish())},setLayout:function(e){e&&l["_"+e]||(e="default"),this.layoutName=e;var t="_"+e;return this.layout=l[t],this.layout},loadLayout:function(e){var t=this;e&&(u["_"+e]||l["_"+e])||(e="default");var n="_"+e;return l[n]?o.a.resolve(l[n]):u[n]().then(function(e){return l[n]=e,delete u[n],l[n]}).catch(function(e){if(t.$nuxt)return t.$nuxt.error({statusCode:500,message:e.message})})}},components:{NuxtLoading:s.a}}},yUYC:function(e,t,n){"use strict";var i=n("I3G/"),o=n.n(i);t.a={name:"nuxt-loading",data:function(){return{percent:0,show:!1,canSuccess:!0,duration:5e3,height:"2px",color:"#3B8070",failedColor:"red"}},methods:{start:function(){var e=this;return this.show=!0,this.canSuccess=!0,this._timer&&(clearInterval(this._timer),this.percent=0),this._cut=1e4/Math.floor(this.duration),this._timer=setInterval(function(){e.increase(e._cut*Math.random()),e.percent>95&&e.finish()},100),this},set:function(e){return this.show=!0,this.canSuccess=!0,this.percent=Math.floor(e),this},get:function(){return Math.floor(this.percent)},increase:function(e){return this.percent=this.percent+Math.floor(e),this},decrease:function(e){return this.percent=this.percent-Math.floor(e),this},finish:function(){return this.percent=100,this.hide(),this},pause:function(){return clearInterval(this._timer),this},hide:function(){var e=this;return clearInterval(this._timer),this._timer=null,setTimeout(function(){e.show=!1,o.a.nextTick(function(){setTimeout(function(){e.percent=0},200)})},500),this},fail:function(){return this.canSuccess=!1,this}}}},zQW4:function(e,t,n){"use strict";for(var i=n("woOf"),o=n.n(i),r=n("//Fk"),a=n.n(r),s=n("BO1k"),c=n.n(s),u=n("mtWM"),l=n.n(u),p={setHeader:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",i=!0,o=!1,r=void 0;try{for(var a,s=c()(Array.isArray(n)?n:[n]);!(i=(a=s.next()).done);i=!0){var u=a.value;if(!t)return void delete this.defaults.headers[u][e];this.defaults.headers[u][e]=t}}catch(e){o=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw r}}},setToken:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",i=e?(t?t+" ":"")+e:null;this.setHeader("Authorization",i,n)},onRequest:function(e){this.interceptors.request.use(function(t){return e(t)||t})},onResponse:function(e){this.interceptors.response.use(function(t){return e(t)||t})},onRequestError:function(e){this.interceptors.request.use(void 0,function(t){return e(t)||a.a.reject(t)})},onResponseError:function(e){this.interceptors.response.use(void 0,function(t){return e(t)||a.a.reject(t)})},onError:function(e){this.onRequestError(e),this.onResponseError(e)}},d=function(e){p["$"+e]=function(){return this[e].apply(this,arguments).then(function(e){return e&&e.data})}},f=["request","delete","get","head","options","post","put","patch"],h=0;h1&&(r=(e.path||"")+"page/"+o+"/index.html"),o>1&&(v=o-1),oo-1||g+1===t.length){var w=l.a.template(e.template,{pagination:{prev:v,next:m,page:o,pages:h,total:t.length,limit:u},context:"index"===e.template&&0===v?"home":e.template,posts:a,tag:e.tag,author:e.author,title:i.title,description:i.description,socialnetwork:p,relativeUrl:""},{config:n,theme:e.opts.nextState.theme});s.push({name:"page-"+o,path:r,content:w,message:"Publish page-"+o+" "+e.template}),a=[],o++}}),e.opts.nextState.elementsToPublish=(e.opts.nextState.elementsToPublish||[]).concat(s),e.opts}}]),e}();t.a=new f},BdWi:function(e,t,n){"use strict";t.a=function(e){console.info("PagesGenerator - generate"),console.log("PagesGenerator - generate",e);var t=e;return e.nextState.publishedPages.forEach(function(e){t=Object(o.a)(t,e)}),t};n("APUd");var i=n("j+6P"),o=(n.n(i),n("KgKs"))},E1SC:function(e,t,n){"use strict";var i=n("SUis"),o=n("7Fxy");var r=function(e){n("vKgl")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},EgsU:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".posts-container .menu{min-height:47px}.posts-container{height:100%;overflow:auto}.posts.ui.container{padding-top:60px}.image.cover>div{width:100%;height:200px;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}@media screen and (max-width:622px){.posts.ui.container .ui.card .image.cover{display:none}}",""])},F6eF:function(e,t,n){"use strict";var i=n("7t+N"),o=n.n(i);t.a={name:"initialise-configuration",data:function(){return{username:"",repositoryName:"hubpress.io",branch:"master",cname:void 0}},mounted:function(){o()("div.dropdown").dropdown()},computed:{isValid:function(){return""!=this.username.trim()&&""!=this.repositoryName.trim()}},methods:{submit:function(){var e={username:this.username,repositoryName:this.repositoryName,branch:this.branch,cname:this.cname};this.$store.dispatch("application:save-startup-config",e)}}}},F88d:function(e,t,n){"use strict";var i=n("yUYC"),o=n("cmzl");var r=function(e){n("0xYM")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},FIB3:function(e,t,n){"use strict";t.a={name:"nuxt-error",props:["error"],head:function(){return{title:this.message,meta:[{name:"viewport",content:"width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"}]}},computed:{statusCode:function(){return this.error&&this.error.statusCode||500},message:function(){return this.error.message||"Error"}}}},FdPX:function(e,t,n){"use strict";var i={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"__nuxt-error-page"},[t("div",{staticClass:"error"},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"90",height:"90",fill:"#DBE1EC",viewBox:"0 0 48 48"}},[t("path",{attrs:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}})]),t("div",{staticClass:"title"},[this._v(this._s(this.message))]),404===this.statusCode?t("p",{staticClass:"description"},[t("nuxt-link",{staticClass:"error-link",attrs:{to:"/"}},[this._v("Back to the home page")])],1):this._e(),this._m(0)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"logo"},[t("a",{attrs:{href:"https://nuxtjs.org",target:"_blank",rel:"noopener"}},[this._v("Nuxt.js")])])}]};t.a=i},FoP8:function(module,__webpack_exports__,__webpack_require__){"use strict";function applyScript(hasChanged){if(hasChanged){for(var element=document.getElementById("html-content"),scripts=element.getElementsByTagName("script"),addedScripts=[],i=0;i.menu[data-v-0536f20d]{height:47px}",""])},HUXV:function(e,t,n){"use strict";var i=n("6Ndi");t.a={refreshAfterSavedConfig:function(e){return i.a.fireRequestTheme(e).then(function(t){return i.a.fireReceiveTheme(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return console.time("Build content"),e}).then(function(e){return i.a.fireRequestGenerateIndex(e)}).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGeneratePosts(e)}).then(function(e){return i.a.fireReceiveGeneratePosts(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)}).then(function(e){return i.a.fireRequestLocalPublishedPages(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPages(e)}).then(function(e){return i.a.fireRequestGeneratePages(e)}).then(function(e){return i.a.fireReceiveGeneratePages(e)}).then(function(e){return console.timeEnd("Build content"),e}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})}}},"Hot+":function(e,t,n){"use strict";var i=n("I3G/"),o=n.n(i),r=n("HBB+"),a=n("ct3O"),s=n("YLfZ");t.a={name:"nuxt",props:["nuxtChildKey","keepAlive"],render:function(e){return this.nuxt.err?e("nuxt-error",{props:{error:this.nuxt.err}}):e("nuxt-child",{key:this.routerViewKey,props:this.$props})},beforeCreate:function(){o.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(s.b)(this.$route.matched[0].path)(this.$route.params);var e=this.$route.matched[0]&&this.$route.matched[0].components.default;return e&&e.options&&e.options.key?"function"==typeof e.options.key?e.options.key(this.$route):e.options.key:this.$route.path}},components:{NuxtChild:r.a,NuxtError:a.a}}},IBrK:function(e,t,n){"use strict";var i=n("F6eF"),o=n("N3Gg");var r=function(e){n("XkEn")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Ie2b:function(e,t){},Irdm:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"settings-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.submit(t)}}},[e._m(0)])])]),n("div",{staticClass:"ui container settings-content"},[e._m(1),n("div",{staticClass:"ui divider"}),n("form",{staticClass:"ui form",attrs:{id:"mainForm"}},[n("div",{staticClass:"ui secondary pointing menu"},[n("div",{staticClass:"item active",attrs:{"data-tab":"application",id:"application-tab"}},[e._v("Application")]),e._l(e.tabs,function(t){return n("div",{key:t.id,staticClass:"item",attrs:{"data-tab":t.id}},[e._v(e._s(t.label))])})],2),n("div",{staticClass:"ui bottom attached tab segment active",attrs:{"data-tab":"application"}},[n("h4",{staticClass:"ui dividing header"},[e._v("Domain")]),n("div",{staticClass:"field"},[n("label",[e._v("CNAME")]),n("input",{attrs:{type:"text",name:"application-cname",placeholder:"CNAME"},domProps:{value:e.config.meta.cname}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Metadata (set in config.json)")]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub username")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-username",placeholder:"Github username"},domProps:{value:e.config.meta.username}})]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub repository name")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-repository-name",placeholder:"GitHub repository name"},domProps:{value:e.config.meta.repositoryName}})]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub branch")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-branch",placeholder:"GitHub branch"},domProps:{value:e.config.meta.branch}})]),e._m(2)]),e._l(e.tabs,function(e){return n("div",{key:e.id,staticClass:"ui bottom attached tab segment ",attrs:{"data-tab":e.id}},[n(e.id,{tag:"component"})],1)})],2)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Save your settings","data-position":"bottom right"}},[t("i",{staticClass:"save large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"ui center aligned icon header"},[t("i",{staticClass:"circular settings icon"}),this._v("\n Settings\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"disabled field"},[t("label",[this._v("Blog URL")]),t("input",{attrs:{type:"text",disabled:"",name:"application-blog-url",placeholder:"Blog URL"}})])}]};t.a=i},J2Ti:function(e,t,n){"use strict";n.d(t,"a",function(){return y});var i=n("woOf"),o=n.n(i),r=n("BO1k"),a=n.n(r),s=n("I3G/"),c=n.n(s),u=n("NYxO");c.a.use(u.default);var l=n("1H2/"),p=l.keys(),d={},f=void 0;if(p.forEach(function(e){-1!==e.indexOf("./index.")&&(f=e)}),f&&(d=P(f)),"function"!=typeof d){d.modules||(d.modules={});var h=!0,g=!1,m=void 0;try{for(var v,b=a()(p);!(h=(v=b.next()).done);h=!0){var x=v.value,C=x.replace(/^\.\//,"").replace(/\.(js|ts)$/,"");if("index"!==C){var w=C.split(/\//);(e=k(d,w))[C=w.pop()]=P(x),e[C].namespaced=!0}}}catch(e){g=!0,m=e}finally{try{!h&&b.return&&b.return()}finally{if(g)throw m}}}var y=d instanceof Function?d:function(){return new u.default.Store(o()({strict:!1},d,{state:d.state instanceof Function?d.state():{}}))};function P(e){var t=l(e),n=t.default||t;if(n.commit)throw new Error("[nuxt] store/"+e.replace("./","")+" should export a method which returns a Vuex instance.");if(n.state&&"function"!=typeof n.state)throw new Error("[nuxt] state should be a function in store/"+e.replace("./",""));return n}function k(e,t){if(1===t.length)return e.modules;var n=t.shift();return e.modules[n]=e.modules[n]||{},e.modules[n].namespaced=!0,e.modules[n].modules=e.modules[n].modules||{},k(e.modules[n],t)}},JtYm:function(e,t,n){"use strict";var i=n("6Ndi");function o(e){return i.a.fireRequestLocalPosts(e).then(function(e){return i.a.fireReceiveLocalPosts(e)})}t.a={deletePost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=t,e}).then(function(e){return e.nextState.post.original?i.a.fireRequestDeleteRemotePost(e).then(function(e){return i.a.fireReceiveDeleteRemotePost(e)}):e}).then(function(e){return i.a.fireRequestDeleteLocalPost(e)}).then(function(e){return i.a.fireReceiveDeleteLocalPost(e)}).then(function(e){return e.nextState.post.published?i.a.fireRequestDeleteRemotePublishedPost(e).then(function(e){return i.a.fireReceiveDeleteRemotePublishedPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return i.a.fireRequestGenerateIndex(e)}).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)}):e}).then(o)},getLocalPost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)})},getLocalPosts:o,remoteSavePost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){return i.a.fireRequestSaveRemotePost(e)}).then(function(e){return i.a.fireReceiveSaveRemotePost(e)}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)})},renderAndSavePost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){return e.nextState.post.content=e.payload.post.content,e}).then(function(e){return i.a.fireRequestRenderingPost(e)}).then(function(e){return i.a.fireReceiveRenderingPost(e)}).then(function(e){return e.nextState.post&&e.nextState.post.title?i.a.fireRequestSaveLocalPost(e).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}):e}).then(function(e){var t=e.nextState.post.original;return e.nextState.post.original=e.nextState.post,e.nextState.post.original.author=e.nextState.post.original.author||e.rootState.authentication.userInformations,i.a.fireRequestGeneratePost(e).then(function(e){return i.a.fireReceiveGeneratePost(e)}).then(function(e){var n=e.nextState.elementsToPublish[0]||{};return e.nextState.post.publishedContent=n.content,e.nextState.post.original=t,e})})},publishPost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=_.union(e.nextState.post.tags,t),e}).then(function(e){return i.a.fireRequestSaveRemotePost(e)}).then(function(e){return i.a.fireReceiveSaveRemotePost(e)}).then(function(e){return e.nextState.post.original.author=e.nextState.post.original.author||e.nextState.post.author,e.nextState.post.published=1,e}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return i.a.fireRequestGeneratePost(e)}).then(function(e){return i.a.fireReceiveGeneratePost(e)}).then(function(e){return"post"!==e.nextState.post.type?e:i.a.fireRequestGenerateIndex(e).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)})}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})},unpublishPost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=t,e}).then(function(e){return i.a.fireRequestDeleteRemotePublishedPost(e)}).then(function(e){return i.a.fireReceiveDeleteRemotePublishedPost(e)}).then(function(e){return e.nextState.post.published=0,e}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return"post"!==e.nextState.post.type?e:i.a.fireRequestGenerateIndex(e).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)})}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})}}},KMrN:function(e,t,n){"use strict";var i=n("LEOq"),o=n.n(i);t.a={authenticate:function(e){return function(e){return o.a.fire("requestAuthentication",e)}(e).then(function(e){return(t=e).nextState.twoFactorRequired?payload:o.a.fire("receiveAuthentication",t);var t})},initialize:function(e){return function(e){return o.a.fire("requestSavedAuth",e)}(e).then(function(e){return t=e,o.a.fire("receiveSavedAuth",t);var t})}}},KOTd:function(e,t,n){"use strict";t.a=function(e){console.info("AuthorGenerator - generate"),console.log("AuthorGenerator - generate",e);var t=void 0;if(!s.a.isTemplateAvailable("author"))return e;t=e.nextState.author?e.nextState.publishedPosts.filter(function(t){return t.author.login===e.nextState.author.login}):e.nextState.publishedPosts;var n=r.a.reduce(t,function(e,t){return e[t.author.login]=e[t.author.login]||[],e[t.author.login].push(t),e},{}),o=e;return r.a.each(n,function(e,t){var n=e[0].author;n.name=n.name||n.login,n.slug=t,n.website=n.blog,n.status="",o=i.a.generate({opts:o,posts:e,author:n,template:"author",path:"author/"+t+"/"})}),o};var i=n("APUd"),o=n("M4fF"),r=n.n(o),a=n("j+6P"),s=n.n(a),c=n("n+xr");n.n(c)},KgKs:function(e,t,n){"use strict";t.a=function(e,t){console.info("PostGenerator - generate"),console.log("PostGenerator - generate",e);var n=t,i=o()({},n.original);i.tags=a.a.map(i.tags,function(e){return{name:e,slug:l()(e)}});var r=i.author;i.author={id:r.id,name:r.name||r.login,location:r.location,website:r.blog,image:r.avatar_url,profile_image:r.avatar_url,bio:r.bio,status:"",slug:r.login};var s=e.rootState.application.config,u=s.urls;e.nextState.theme.name,e.nextState.theme.version,s.urls.theme;i.urls=u,i.status="published",i.feature_image=i.image;var p="index.adoc"===n.name?"home":n.type||"post";if(!c.a.isTemplateAvailable(p))return e;var d=c.a.template(p,{context:n.type||"post",socialnetwork:s.socialnetwork,relativeUrl:n.url,post:i,author:i.author},{config:s,theme:e.nextState.theme}),f=[];return f.push({title:n.title,image:n.image,name:n.name,path:s.urls.getContentGhPath(n.name,n.type),url:s.urls.getContentGhPath(n.name,n.type),content:d,message:"Publish "+n.name,published_at:n.published_at}),e.nextState.elementsToPublish=(e.nextState.elementsToPublish||[]).concat(f),e};var i=n("woOf"),o=n.n(i),r=n("M4fF"),a=n.n(r),s=n("j+6P"),c=n.n(s),u=n("n+xr"),l=n.n(u)},LB67:function(e,t,n){"use strict";var i=n("6Ndi");t.a={authenticate:function(e){return i.a.fireRequestAuthentication(e).then(function(e){return i.a.fireReceiveAuthentication(e)})}}},MHN4:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".about-content{padding-top:60px}",""])},Mha6:function(e,t,n){var i=n("ys1n");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("4942fa76",i,!0,{sourceMap:!1})},N3Gg:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"initialise-configuration"},[e._m(0),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"content"},[e._v("\n We need to initialize your configuration before a first use.\n ")]),n("div",{staticClass:"ui divider"}),n("form",{staticClass:"ui form",attrs:{id:"configurationForm"},on:{submit:function(t){t.preventDefault(),e.submit()}}},[n("div",{staticClass:"required field"},[n("label",[e._v("Username")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.username,expression:"username"}],attrs:{type:"text",name:"configuration-username",placeholder:"Your github username"},domProps:{value:e.username},on:{input:function(t){t.target.composing||(e.username=t.target.value)}}})]),n("div",{staticClass:"required field"},[n("label",[e._v("Repository name")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.repositoryName,expression:"repositoryName"}],attrs:{type:"text",name:"configuration-cname",placeholder:"The name of your repository"},domProps:{value:e.repositoryName},on:{input:function(t){t.target.composing||(e.repositoryName=t.target.value)}}})]),n("div",{staticClass:"required field"},[n("label",[e._v("Branch")]),n("div",{staticClass:"ui selection dropdown"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.branch,expression:"branch"}],attrs:{type:"hidden",name:"branch"},domProps:{value:e.branch},on:{input:function(t){t.target.composing||(e.branch=t.target.value)}}}),n("i",{staticClass:"dropdown icon"}),n("div",{staticClass:"default text"},[e._v("master")]),e._m(1)])]),n("div",{staticClass:"field"},[n("label",[e._v("Domain name")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.cname,expression:"cname"}],attrs:{type:"text",name:"configuration-cname",placeholder:"Your domain name if you have one"},domProps:{value:e.cname},on:{input:function(t){t.target.composing||(e.cname=t.target.value)}}})]),n("button",{staticClass:"ui fluid large submit button",attrs:{type:"submit",name:"button",disabled:!e.isValid}},[e._v("Ok, let's go!")])]),e._m(2)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"ui center aligned icon header"},[t("i",{staticClass:"circular configure icon"}),this._v("\n Configuration\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"menu"},[t("div",{staticClass:"item",attrs:{"data-value":"master"}},[this._v("master")]),t("div",{staticClass:"item",attrs:{"data-value":"gh-pages"}},[this._v("gh-pages")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui message"},[this._v("\n If you have questions about how to use HubPress, "),t("a",{attrs:{href:"https://hubpress.gitbooks.io/hubpress-knowledgebase/content/"}},[this._v("here is the right place.")])])}]};t.a=i},NpFX:function(e,t,n){"use strict";var i=n("FoP8"),o=n("XO7e");var r=function(e){n("YDvP")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Pm0L:function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"f",function(){return o}),n.d(t,"g",function(){return r}),n.d(t,"h",function(){return a}),n.d(t,"d",function(){return s}),n.d(t,"c",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"a",function(){return l});var i="login:submit",o="login:updateEmail",r="login:updatePassword",a="login:updateTwoFactorCode",s="authorisation:request-login",c="authorisation:receive-login",u="authorisation:failure-login",l="authorisation:authentication-done"},Q7NK:function(e,t,n){"use strict";(function(e,t){var i,o=n("pFYg"),r=n.n(o);i=function(e){e.defineMode("asciidoc",function(e,t){var n=1e3,i=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],i=[],o=0,r=this.matchMappings[t]={defaultToken:"text"},a="g",s=[],c=0;c1?this.$applyToken:u.token);p>1&&(/\\\d/.test(u.regex)?l=u.regex.replace(/\\([0-9]+)/g,function(e,t){return"\\"+(parseInt(t,10)+o+1)}):(p=1,l=this.removeCapturingGroups(u.regex)),u.splitRegex||"string"==typeof u.token||s.push(u)),r[o]=c,o+=p,i.push(l),u.onMatch||(u.onMatch=null)}}s.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)},this),this.regExps[t]=new RegExp("("+i.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(e){n=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var i=[],o=0,r=n.length;ol){var m=e.substring(l,g-h.length);p.type==d?p.value+=m:(p.type&&u.push(p),p={type:d,value:m})}for(var v=0;vn){for(;l1&&i[0]!==o&&i.unshift(o),{tokens:u,state:i.length?i:o}}}).call(i.prototype);var o={empty:null,text:null,keyword:"keyword",control:"keyword",operator:"operator",constant:"atom",numeric:"number",character:"atom",escape:"atom",variable:"variable",parameter:"variable-3",language:"variable-2",comment:"comment",line:"comment","double-slash":"comment","double-dash":"comment","number-sign":"comment",percentage:"comment",block:"comment",doc:"comment",string:"string",quoted:"string",single:"string",double:"string",triple:"string",unquoted:"string",interpolated:"string",regexp:"string-2",meta:"keyword",literal:"qualifier",support:"builtin",markup:"tag",underline:"link",link:"link",strong:"strong",heading:"header",heading2:"header-2",heading3:"header-3",heading4:"header-4",heading5:"header-5",heading6:"header-6",em:"em",list:"variable-2",numbered:"variable-2",unnumbered:"variable-2",quote:"quote",raw:"variable-2",invalid:"error",illegal:"invalidchar",deprecated:"error"},r=function(e,t){var n=t.plannedTokens.shift();return void 0===n?null:(e.match(n.value),function(e){for(var t=null,n=0;n0)return r(e,t);var n=t.current,i=e.match(/.*$/,!1)[0],o=s.getLineTokens(i,n);return t.plannedTokens=o.tokens,t.current=o.state,r(e,t)},s=new i((new function(){function e(e){return(/\w/.test(e)?"\\b":"(?:\\B|^)")+e+"[^"+e+"].*?"+e+"(?![\\w*])"}this.$rules={start:[{token:"empty",regex:/$/},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"literal",regex:/^-{4,}\s*$/,next:"literalBlock"},{token:"literal",regex:/^\+{4,}\s*$/,next:"passthroughBlock"},{token:"keyword",regex:/^={4,}\s*$/},{token:"text",regex:/^\s*$/},{token:"empty",regex:"",next:"dissallowDelimitedBlock"}],dissallowDelimitedBlock:[{include:"paragraphEnd"},{token:"comment",regex:"^//.+$"},{token:"keyword",regex:"^(?:NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s"},{include:"listStart"},{token:"literal",regex:/^\s+.+$/,next:"indentedBlock"},{token:"empty",regex:"",next:"text"}],paragraphEnd:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"commentBlock"},{token:"tableBlock",regex:/^\s*[|!]=+\s*$/,next:"tableBlock"},{token:"keyword",regex:/^(?:--|''')\s*$/,next:"start"},{token:"option",regex:/^\[.*\]\s*$/,next:"start"},{token:"pageBreak",regex:/^>{3,}$/,next:"start"},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"titleUnderline",regex:/^(?:={2,}|-{2,}|~{2,}|\^{2,}|\+{2,})\s*$/,next:"start"},{token:"singleLineTitle",regex:/^={1}\s+\S.*$/,next:"start"},{token:"singleLineTitle2",regex:/^={2}\s+\S.*$/,next:"start"},{token:"singleLineTitle3",regex:/^={3}\s+\S.*$/,next:"start"},{token:"singleLineTitle4",regex:/^={4}\s+\S.*$/,next:"start"},{token:"singleLineTitle5",regex:/^={5}\s+\S.*$/,next:"start"},{token:"singleLineTitle6",regex:/^={6}\s+\S.*$/,next:"start"},{token:"otherBlock",regex:/^(?:\*{2,}|_{2,})\s*$/,next:"start"},{token:"optionalTitle",regex:/^\.[^.\s].+$/,next:"start"}],listStart:[{token:"keyword",regex:/^\s*(?:\d+\.|[a-zA-Z]\.|[ixvmIXVM]+\)|\*{1,5}|-|\.{1,5})\s/,next:"listText"},{token:"meta.tag",regex:/^.+(?::{2,4}|;;)(?: |$)/,next:"listText"},{token:"keyword",regex:/^\+\s*$/,next:"start"}],text:[{token:["link","link"],regex:/((?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+)(\[.*?\])/},{token:["link","link"],regex:/(?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+/},{token:"link",regex:/\b[\w\.\/\-]+@[\w\.\/\-]+\b/},{include:"macros"},{include:"paragraphEnd"},{token:"literal",regex:/\+{3,}/,next:"smallPassthrough"},{token:"escape",regex:/\((?:C|TM|R)\)|\.{3}|->|<-|=>|<=|&#(?:\d+|x[a-fA-F\d]+);|(?: |^)--(?=\s+\S)/},{token:"escape",regex:/\\[_*'`+#]|\\{2}[_*'`+#]{2}/},{token:"keyword",regex:/\s\+$/},{token:"text",regex:"[a-zA-Z¡-￿]+\\b"},{token:["keyword","string","keyword"],regex:/(<<[\w\d\-$]+,)(.*?)(>>|$)/},{token:"keyword",regex:/<<[\w\d\-$]+,?|>>/},{token:"constant.character",regex:/\({2,3}.*?\){2,3}/},{token:"support.function.list.callout",regex:/^(?:<\d+>|\d+>|>) /,next:"text"},{token:"keyword",regex:/\[\[.+?\]\]/},{token:"support",regex:/^\[{3}[\w\d =\-]+\]{3}/},{include:"quotes"},{token:"empty",regex:/^\s*$/,next:"start"}],listText:[{include:"listStart"},{include:"text"}],indentedBlock:[{token:"literal",regex:/^[\s\w].+$/,next:"indentedBlock"},{token:"literal",regex:"",next:"start"}],listingBlock:[{token:"literal",regex:/^\.{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],literalBlock:[{token:"literal",regex:/^-{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],passthroughBlock:[{token:"literal",regex:/^\+{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:"[a-zA-Z¡-￿]+\\b|\\d+"},{include:"macros"},{token:"literal",regex:"."}],smallPassthrough:[{token:"literal",regex:/[+]{3,}/,next:"dissallowDelimitedBlock"},{token:"literal",regex:/^\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:"[a-zA-Z¡-￿]+\\b|\\d+"},{include:"macros"}],commentBlock:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"doc.comment",regex:"^.*$"}],tableBlock:[{token:"tableBlock",regex:/^\s*\|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"innerTableBlock"},{token:"tableBlock",regex:/\|/},{include:"text",noEscape:!0}],innerTableBlock:[{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"tableBlock"},{token:"tableBlock",regex:/^\s*|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/\!/}],macros:[{token:"macro",regex:/{[\w\-$]+}/},{token:["text","string","text","constant.character","text"],regex:/({)([\w\-$]+)(:)?(.+)?(})/},{token:["text","markup.list.macro","keyword","string"],regex:/(\w+)(footnote(?:ref)?::?)([^\s\[]+)?(\[.*?\])?/},{token:["markup.list.macro","keyword","string"],regex:/([a-zA-Z\-][\w\.\/\-]*::?)([^\s\[]+)(\[.*?\])?/},{token:["markup.list.macro","keyword"],regex:/([a-zA-Z\-][\w\.\/\-]+::?)(\[.*?\])/},{token:"keyword",regex:/^:.+?:(?= |$)/}],quotes:[{token:"string.italic",regex:/__[^_\s].*?__/},{token:"string.italic",regex:e("_")},{token:"keyword.bold",regex:/\*\*[^*\s].*?\*\*/},{token:"keyword.bold",regex:e("\\*")},{token:"literal",regex:/\+\+[^+\s].*?\+\+/},{token:"literal",regex:e("\\+")},{token:"literal",regex:/\$\$.+?\$\$/},{token:"literal",regex:e("\\$")},{token:"literal",regex:/``[^`\s].*?``/},{token:"literal",regex:e("`")},{token:"keyword",regex:/\^[^\^].*?\^/},{token:"keyword",regex:e("\\^")},{token:"keyword",regex:/~[^~].*?~/},{token:"keyword",regex:e("~")},{token:"keyword",regex:/##?/},{token:"keyword",regex:/(?:\B|^)``|\b''/}]};var t={macro:"constant.character",tableBlock:"doc.comment",titleUnderline:"markup.heading",singleLineTitle:"markup.heading",singleLineTitle2:"markup.heading2",singleLineTitle3:"markup.heading3",singleLineTitle4:"markup.heading4",singleLineTitle5:"markup.heading5",singleLineTitle6:"markup.heading6",pageBreak:"string",option:"string.regexp",otherBlock:"markup.list",literal:"support.function",optionalTitle:"constant.numeric",escape:"constant.language.escape",link:"markup.underline.list"};for(var n in this.$rules)for(var i=this.$rules[n],o=i.length;o--;){var r=i[o];if(r.include||"string"==typeof r){var a=[o,1].concat(this.$rules[r.include||r]);r.noEscape&&(a=a.filter(function(e){return!e.next})),i.splice.apply(i,a)}else r.token in t&&(r.token=t[r.token])}}).$rules);return{startState:function(){return{current:"start",plannedTokens:[]}},blankLine:function(e){a("",e)},token:a}}),e.defineMIME("text/x-asciidoc","asciidoc")},"object"==("undefined"==typeof exports?"undefined":r()(exports))&&"object"==r()(e)?i(n("8U58")):"object"==("undefined"==typeof brackets?"undefined":r()(brackets))&&brackets.getModule?i(brackets.getModule("thirdparty/CodeMirror2/lib/codemirror")):"function"==typeof define&&n("nErl")?define(["codemirror"],i):i(t)}).call(t,n("f1Eh")(e),n("8U58"))},QMmS:function(e,t,n){"use strict";t.b=function(e){return e.on("application:stores",function(e){var t;console.info("authenticationPlugin - application:stores"),console.log("authenticationPlugin - application:stores",e);var n={state:{isAuthenticated:!1,isTwoFactorCodeRequired:!1,credentials:{email:void 0,password:void 0,twoFactorCode:void 0}},mutations:(t={},o()(t,u.f,function(e,t){e.credentials.email=t}),o()(t,u.g,function(e,t){e.credentials.password=t}),o()(t,u.h,function(e,t){e.credentials.twoFactorCode=t}),o()(t,u.d,function(e){e.isLoading=!0}),o()(t,u.c,function(e,t){a.a.merge(e,t)}),o()(t,u.b,function(e,t){e.isAuthenticated=!1}),o()(t,l,function(e,t){a.a.merge(e,t.authentication)}),t),actions:o()({},u.e,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,r=e.state;i(u.d);var c={rootState:a.a.cloneDeep(o),currentState:a.a.cloneDeep(r)};n("application:loading").then(function(e){return s.a.authenticate(c)}).then(function(e){i(u.c,e.nextState)}).then(function(e){return r.isAuthenticated?n(p,!0).then(function(e){return n(u.a)}):r.isTwoFactorCodeRequired?n("application:notify",{icon:"unlock",header:"Two factor code",message:"A code is required to complete your authentication.",level:"warning"}):n("application:notify",{icon:"warning circle",header:"Authentication failed",message:"A error occured during the authentication.",level:"error"})}).then(function(e){return n("application:loaded")}).then(function(e){return t.push(t.currentRoute.query.redirect||"/")}).catch(function(e){n("application:loaded").then(function(e){return n("application:notify",{icon:"warning circle",header:"Authentication failed",message:"A error occured during the authentication.",level:"error"})})})}),getters:{}};return e.nextState.stores.authentication=n,console.log("authenticationPlugin - application:stores - return",e),e}),e.on("application:routes",function(e){return e}),e.on("application:initialize-app",function(e){return console.info("authenticationPlugin - application:initialize-app"),console.log("authenticationPlugin - application:initialize-app",e),s.a.initialize(e).then(function(e){return e})}),e.on("authentication:authenticate",function(e){return console.info("authenticationPlugin - authentication:authenticate"),console.log("authenticationPlugin - authentication:authenticate",e,s.a),s.a.authenticate(e)}),{getName:function(){return"authenticationPlugin"}}},n.d(t,"a",function(){return d});var i=n("bOdI"),o=n.n(i),r=n("M4fF"),a=n.n(r),s=n("KMrN"),c=n("RUoO"),u=n("Pm0L"),l="application:initialize-app",p="application:save-config";var d=c.a},RUoO:function(e,t,n){"use strict";var i=n("6yLl"),o=n("oS0V");var r=function(e){n("Mha6")},a=n("VU/8")(i.a,o.a,!1,r,"data-v-94154cf6",null);t.a=a.exports},RsIG:function(e,t,n){"use strict";var i=n("woOf"),o=n.n(i),r=n("LEOq"),a=n.n(r);function s(e){return a.a.fire("application:receive-config",e)}t.a={initializeRoutes:function(e){return a.a.fire("application:routes",e)},initializeApp:function(e,t){return a.a.fire("application:initialize-app",e,t)},initializePlugins:function(e,t){return a.a.fire("application:initialize-plugins",e,t)},initializeConfig:function(e){return console.log("application - initializeConfig",e),function(e){return a.a.fire("application:request-config",e)}(e).then(s)},startUpConfig:function(e){return console.log("application - startUpConfig",e),s(e)},prepareConfig:function(e){return a.a.fire("application:prepare-config",e)},saveConfig:function(e){return function(e){return console.log("application - fireRequestSaveConfig",e),a.a.fire("application:request-save-config",e)}(e).then(function(t){return o()({},e,{nextState:t.nextState.application})}).then(s).then(function(t){return e.nextState.application=t.nextState,o()({},e)}).catch(function(e){console.log(e)})},saveConfigDone:function(e){return a.a.fire("application:save-config-done",e)}}},SDLk:function(e,t,n){"use strict";var i={render:function(){this.$createElement;this._self._c;return this._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"about-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",attrs:{href:"https://twitter.com/HubPressIO",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Follow us on twitter","data-position":"bottom right"}},[n("i",{staticClass:"twitter large icon"})])]),n("a",{staticClass:"item",attrs:{href:"https://gitter.im/HubPress/hubpress.io",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Wanna chat with us?","data-position":"bottom right"}},[n("i",{staticClass:"gitter large icon"})])]),n("a",{staticClass:"item",attrs:{href:"https://github.com/HubPress",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"HubPress is opensource :)","data-position":"bottom right"}},[n("i",{staticClass:"github large icon"})])])])]),n("div",{staticClass:"about-content"},[n("div",{staticClass:"ui container"},[n("h2",{staticClass:"ui center aligned icon header"},[n("i",{staticClass:"circular users icon"}),e._v("\n The HubPress Team\n ")]),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"row"},[n("div",{staticClass:"ui items divided"},[n("div",{staticClass:"item"},[n("div",{staticClass:"image"},[n("img",{attrs:{src:"https://avatars1.githubusercontent.com/u/2006548?v=3&s=460"}})]),n("div",{staticClass:"content"},[n("a",{staticClass:"header"},[e._v("Anthonny Quérouil")]),n("div",{staticClass:"meta"},[n("span",[e._v("The creator of HubPress")])]),n("div",{staticClass:"description"},[n("p",[e._v("Anthonny is a freelance developer and the creator of HubPress")]),n("p",[e._v("He started HubPress two years ago")])]),n("div",{staticClass:"extra"},[n("a",{staticClass:"ui label",attrs:{href:"https://twitter.com/anthonny_q",target:"_blank"}},[n("i",{staticClass:"twitter icon"}),e._v(" Twitter\n ")]),n("a",{staticClass:"ui label",attrs:{href:"https://github.com/anthonny",target:"_blank"}},[n("i",{staticClass:"github icon"}),e._v(" GitHub\n ")]),n("a",{staticClass:"ui label",attrs:{href:"http://anthonnyquerouil.fr/",target:"_blank"}},[n("i",{staticClass:"home icon"}),e._v(" Website\n ")])])])]),n("div",{staticClass:"item"},[n("div",{staticClass:"image"},[n("img",{attrs:{src:"https://avatars0.githubusercontent.com/u/952793?v=3&s=460"}})]),n("div",{staticClass:"content"},[n("a",{staticClass:"header"},[e._v("Jared Morgan")]),n("div",{staticClass:"meta"},[n("span",[e._v("The Docs guy")])]),n("div",{staticClass:"description"},[n("p",[e._v("By day, Jared is a Certified Scrum Product Owner (CSPO) and Technical Writer for Ladbrokes in Brisbane, Australia.")]),n("p",[e._v("By night, he uses his craft to improve open source software products one README at a time.")]),n("p",[e._v("In between, he uses his expertise in Pinball machines and knowledge of Android beta testing to improve digital pinball apps.")])]),n("div",{staticClass:"extra"},[n("a",{staticClass:"ui label",attrs:{href:"https://twitter.com/jaredmorgs",target:"_blank"}},[n("i",{staticClass:"twitter icon"}),e._v(" Twitter\n ")]),n("a",{staticClass:"ui label",attrs:{href:"https://github.com/jaredmorgs",target:"_blank"}},[n("i",{staticClass:"github icon"}),e._v(" GitHub\n ")]),n("a",{staticClass:"ui label",attrs:{href:"http://jaredleonmorgan.net/",target:"_blank"}},[n("i",{staticClass:"home icon"}),e._v(" Website\n ")])])])])])])])])])}]};t.a=i},SHkU:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._l(e.navigation,function(t,i){return n("div",{key:t.label,staticClass:"fields"},[n("div",{staticClass:"four wide field"},[n("input",{attrs:{type:"text",placeholder:"Label",name:"navigation-label-"+i},domProps:{value:t.label}})]),n("div",{staticClass:"eleven wide field"},[n("input",{attrs:{type:"text",placeholder:"http://www.mysite.com",name:"navigation-url-"+i},domProps:{value:t.url}})]),n("div",{staticClass:"one wide field"},[n("button",{staticClass:"ui icon button",on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.remove(i)}}},[n("i",{staticClass:"trash icon"})])])])}),n("div",{staticClass:"fields"},[n("div",{staticClass:"four wide field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNav.label,expression:"newNav.label"}],attrs:{type:"text",placeholder:"Label"},domProps:{value:e.newNav.label},on:{input:function(t){t.target.composing||e.$set(e.newNav,"label",t.target.value)}}})]),n("div",{staticClass:"eleven wide field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNav.url,expression:"newNav.url"}],attrs:{type:"text",placeholder:"http://www.mysite.com"},domProps:{value:e.newNav.url},on:{input:function(t){t.target.composing||e.$set(e.newNav,"url",t.target.value)}}})]),n("div",{staticClass:"one wide field"},[n("button",{staticClass:"ui icon button",attrs:{disabled:e.isNotValid},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.add(e.newNav)}}},[n("i",{staticClass:"add icon"})])])])],2)},staticRenderFns:[]};t.a=i},SUis:function(e,t,n){"use strict";(function(e){var i=n("PJh5"),o=n.n(i),r=n("RJtx"),a=n.n(r),s=n("lYDI");t.a={name:"posts",data:function(){return{postToDelete:{},filterValue:""}},beforeCreate:function(){},beforeMount:function(){this.$store.dispatch(s.a)},beforeDestroy:function(){e(".ui.basic.modal").remove()},mounted:function(){var t=this;e(".ui.basic.modal").modal({closable:!1,onDeny:function(){},onApprove:function(){t.$store.dispatch(s.d,t.postToDelete._id)}})},methods:{status:function(e){return!e.published?"Draft":"Published"},type:function(e){return e.type.replace(/\b\w/g,function(e){return e.toUpperCase()})},publishedAt:function(e){return!!e.published&&e.published_at&&o()(e.published_at).fromNow()||""},postCoverUrl:function(e){var t=e.image||"https://hubpress.github.io/img/logo.png";return t=t.startsWith("http")?t:e.attributes.$$smap.imagesdir+"/"+e.image},getPostStatusColor:function(e){return e.original?e.original.content!==e.content?"orange":"green":"red"},displayConfirmMessage:function(t){this.postToDelete=t,e(".ui.basic.modal").modal("show")},navigateToPost:function(e){this.$router.push({name:"post",params:{id:e._id}})},newPost:function(){this.$router.push({name:"post",params:{id:a.a.v4()}})},getPostTags:function(e){return e.tags||[]},getPostAuthor:function(e){return e.author||this.$store.state.authentication.userInformations},synchronize:function(){this.$store.dispatch(s.b)}},computed:{posts:function(){var e=this.filterValue.trim();return""===e?this.$store.state.hubpress.posts:this.$store.state.hubpress.posts.filter(function(t){return t.title.toLowerCase().indexOf(e.toLowerCase())>=0||t.tags&&t.tags.filter(function(t){return t.toLowerCase().indexOf(e.toLowerCase())>=0}).length})}}}}).call(t,n("7t+N"))},SjaB:function(e,t,n){var i=n("3fVB");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("2d76ba14",i,!0,{sourceMap:!1})},T23V:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,r,a=n("pFYg"),s=n.n(a),c=n("mvHQ"),u=n.n(c),l=n("fZjL"),p=n.n(l),d=n("woOf"),f=n.n(d),h=n("Zzip"),g=n.n(h),m=n("5QVw"),v=n.n(m),b=n("//Fk"),x=n.n(b),C=n("I3G/"),w=n.n(C),y=n("unZF"),P=n("qcny"),k=n("YLfZ"),S=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=x.a))(function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,s)}c((i=i.apply(e,t||[])).next())})},_=this&&this.__generator||function(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof v.a&&(r[g.a]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=i[2&r[0]?"return":r[0]?"throw":"next"])&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[0,o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1].row{padding-top:0;padding-bottom:0}.post-editor .ui.grid.light>.row{background-color:#f5f5f5;color:#202020}.post-editor .ui.grid.light>.row .ui.header{color:#202020}.post-editor .ui.grid.light>.row a{color:#aa759f}.post-editor .ui.grid.dark>.row,.post-editor .ui.grid.dark>.row .ui.header{background-color:#3f3f3f;color:#dcdccc}.post-editor .ui.grid.dark>.row .ui.header{color:#dcdccc}.post-editor .ui.grid.dark>.row a{color:#dcdcaa}.post-editor .ui.grid{padding-top:0;padding-bottom:0;margin:0}.post-editor .ui.grid .column{padding-top:0;margin-top:0;padding-bottom:0;margin-bottom:0}.vue-codemirror.container{min-height:100%;height:100%}#asciidoc-content,#asciidoc-preview{height:calc(100vh - 47px);min-height:calc(100vh - 47px)}#asciidoc-content.is-hidden{display:none}#asciidoc-preview{overflow-y:auto;padding-top:2em;font-size:1.2em;font-family:Menlo,Monaco,Consolas,Courier New,monospace;word-wrap:break-word}#asciidoc-preview.is-iframe{padding:0}#asciidoc-preview>div{max-width:750px!important;margin:auto}#asciidoc-preview.is-iframe>div{min-width:100%;margin:auto}#asciidoc-preview.is-fullscreen{width:100%!important}#asciidoc-preview>div .ui.header{font-family:Menlo,Monaco,Consolas,Courier New,monospace}#asciidoc-preview .content pre{background-color:#dcdccc;color:#2e2e2e;padding:10px;border-radius:5px;overflow:auto}#asciidoc-preview .paragraph{padding:.75em 0}#asciidoc-preview img{width:100%;max-width:100%}@media screen and (max-width:992px){#asciidoc-content{display:block}#asciidoc-content.is-preview-visible,#asciidoc-preview{display:none}#asciidoc-preview.is-preview-visible{display:block}}.item .ui.icon .rocket.unpublish{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.cm-s-zenburn.CodeMirror .CodeMirror-gutters{background:#3f3f3f!important}.cm-s-zenburn.CodeMirror .CodeMirror-foldgutter-open,.CodeMirror-foldgutter-folded{color:#999}.cm-s-zenburn.CodeMirror .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-zenburn.CodeMirror{background-color:#3f3f3f;color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-builtin{color:#dcdccc;font-weight:700}.cm-s-zenburn.CodeMirror span.cm-comment{color:#7f9f7f}.cm-s-zenburn.CodeMirror span.cm-keyword{color:#f0dfaf;font-weight:700}.cm-s-zenburn.CodeMirror span.cm-atom{color:#bfebbf}.cm-s-zenburn.CodeMirror span.cm-def{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-variable{color:#dfaf8f}.cm-s-zenburn.CodeMirror span.cm-variable-2{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-string,.cm-s-zenburn.CodeMirror span.cm-string-2{color:#cc9393}.cm-s-zenburn.CodeMirror span.cm-number{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-tag{color:#93e0e3}.cm-s-zenburn.CodeMirror span.cm-attribute,.cm-s-zenburn.CodeMirror span.cm-property{color:#dfaf8f}.cm-s-zenburn.CodeMirror span.cm-qualifier{color:#7cb8bb}.cm-s-zenburn.CodeMirror span.cm-meta{color:#f0dfaf}.cm-s-zenburn.CodeMirror span.cm-header,.cm-s-zenburn.CodeMirror span.cm-operator{color:#f0efd0}.cm-s-zenburn.CodeMirror span.CodeMirror-matchingbracket{-webkit-box-sizing:border-box;box-sizing:border-box;background:transparent;border-bottom:1px solid}.cm-s-zenburn.CodeMirror span.CodeMirror-nonmatchingbracket{border-bottom:1px solid;background:none}.cm-s-zenburn.CodeMirror .CodeMirror-activeline,.cm-s-zenburn.CodeMirror .CodeMirror-activeline-background{background:#000}.cm-s-zenburn.CodeMirror div.CodeMirror-selected{background:#545454}.cm-s-zenburn.CodeMirror .CodeMirror-focused div.CodeMirror-selected{background:#4f4f4f}.cm-s-base16-light.CodeMirror{background:#f5f5f5;color:#202020}.cm-s-base16-light.CodeMirror div.CodeMirror-selected{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-line::selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span::selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span>span::selection{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-line::-moz-selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span::-moz-selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span>span::-moz-selection{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-gutters{background:#f5f5f5;border-right:0}.cm-s-base16-light.CodeMirror .CodeMirror-guttermarker{color:#ac4142}.cm-s-base16-light.CodeMirror .CodeMirror-guttermarker-subtle,.cm-s-base16-light.CodeMirror .CodeMirror-linenumber{color:#b0b0b0}.cm-s-base16-light.CodeMirror .CodeMirror-cursor{border-left:1px solid #505050}.cm-s-base16-light.CodeMirror span.cm-comment{color:#8f5536}.cm-s-base16-light.CodeMirror span.cm-atom,.cm-s-base16-light.CodeMirror span.cm-number{color:#aa759f}.cm-s-base16-light.CodeMirror span.cm-attribute,.cm-s-base16-light.CodeMirror span.cm-property{color:#90a959}.cm-s-base16-light.CodeMirror span.cm-keyword{color:#ac4142}.cm-s-base16-light.CodeMirror span.cm-string{color:#f4bf75}.cm-s-base16-light.CodeMirror span.cm-variable{color:#90a959}.cm-s-base16-light.CodeMirror span.cm-variable-2{color:#6a9fb5}.cm-s-base16-light.CodeMirror span.cm-def{color:#d28445}.cm-s-base16-light.CodeMirror span.cm-bracket{color:#202020}.cm-s-base16-light.CodeMirror span.cm-tag{color:#ac4142}.cm-s-base16-light.CodeMirror span.cm-link{color:#aa759f}.cm-s-base16-light.CodeMirror span.cm-error{background:#ac4142;color:#505050}.cm-s-base16-light.CodeMirror .CodeMirror-activeline-background{background:#dddcdc}.cm-s-base16-light.CodeMirror .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}",""])},THns:function(e,t,n){"use strict";t.a=function(e){console.info("PostsGenerator - generate"),console.log("PostsGenerator - generate",e);var t=e;return e.nextState.publishedPosts.forEach(function(e){t=Object(o.a)(t,e)}),t};n("APUd");var i=n("j+6P"),o=(n.n(i),n("KgKs"))},ThI1:function(e,t,n){"use strict";var i=n("oz2E"),o=n("mBSI");var r=function(e){n("yJpT")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Tknw:function(e,t,n){"use strict";var i=n("wrAo"),o=n("zfI2");var r=function(e){n("YoMZ")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},WRRc:function(e,t,n){"use strict";t.a={name:"nuxt-link",functional:!0,render:function(e,t){return e("router-link",t.data,t.children)}}},WiUJ:function(e,t,n){"use strict";t.a=function(e){e.on("hubpress:request-theme",function(e){console.info("templatePlugin - hubpress:request-theme"),console.log("templatePlugin - hubpress:request-theme",e);var t,n,i,r,s,u=e.rootState.application.config.theme.name.toLowerCase(),p=e.rootState.application.config;return(t=u,n=p,i=a.a.defer(),r=[],s=n.urls.hubpress,c.a.get(s+"/themes/"+t+"/theme.json?dt="+Date.now()).end(function(e,n){if(e)i.reject(e);else{var o=n.body,u=o.version,p=!1,d=!1,f=!1;if(l.a.toPairs(o.files).forEach(function(e){var n=a.a.defer();r.push(n.promise),p=p||"pagination"===e[0],d=d||"nav"===e[0],f=f||"navigation"===e[0],c.a.get(s+"/themes/"+t+"/"+e[1]+"?v="+u).end(function(t,i){t?n.reject(t):n.resolve({name:e[0],path:e[1],content:i.text})})}),!p){var h=a.a.defer();r.push(h.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/pagination.hbs").end(function(e,t){e?h.reject(e):h.resolve({name:"pagination",path:"partials/pagination",content:t.text})})}if(!d){var g=a.a.defer();r.push(g.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/nav.hbs").end(function(e,t){e?g.reject(e):g.resolve({name:"nav",path:"partials/nav",content:t.text})})}if(!f){var m=a.a.defer();r.push(m.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/navigation.hbs").end(function(e,t){e?m.reject(e):m.resolve({name:"navigation",path:"partials/navigation",content:t.text})})}a.a.all(r).then(function(e){i.resolve({version:u,files:e})}).catch(function(e){console.log(e),i.reject(e)})}}),i.promise).then(function(t){var n={name:u,files:t.files,version:t.version};b.a.registerTheme(p,n),b.a.registerFiles(n.files);var i=o()({},n);return e.nextState=o()({},e.nextState,{theme:i}),e})}),e.on("requestGenerateIndex",function(e){console.info("templatePlugin - requestGenerateIndex"),console.log("templatePlugin - requestGenerateIndex",e);var t=Object(p.a)(e);return console.log("templatePlugin - requestGenerateIndex return",t),t}),e.on("requestGeneratePost",function(e){console.info("templatePlugin - requestGeneratePost"),console.log("templatePlugin - requestGeneratePost",e);var t=Object(d.a)(e,e.nextState.post);return console.log("templatePlugin - requestGeneratePost return",t),t}),e.on("requestGeneratePosts",function(e){console.info("templatePlugin - requestGeneratePosts"),console.log("templatePlugin - requestGeneratePosts",e);var t=Object(f.a)(e);return console.log("templatePlugin - requestGeneratePosts return",t),t}),e.on("requestGeneratePages",function(e){console.info("templatePlugin - requestGeneratePages"),console.log("templatePlugin - requestGeneratePages",e);var t=Object(h.a)(e);return console.log("templatePlugin - requestGeneratePages return",t),t}),e.on("requestGenerateTags",function(e){console.info("templatePlugin - requestGenerateTags"),console.log("templatePlugin - requestGenerateTags",e);var t=Object(g.a)(e);return console.log("templatePlugin - requestGenerateTags return",t),t}),e.on("requestGenerateAuthors",function(e){console.info("templatePlugin - requestGenerateAuthors"),console.log("templatePlugin - requestGenerateAuthors",e);var t=Object(m.a)(e);return console.log("templatePlugin - requestGenerateAuthors return",t),t})};var i=n("woOf"),o=n.n(i),r=n("/Luh"),a=n.n(r),s=n("GG98"),c=n.n(s),u=n("M4fF"),l=n.n(u),p=n("e3+D"),d=n("KgKs"),f=n("THns"),h=n("BdWi"),g=n("dZ6u"),m=n("KOTd"),v=n("j+6P"),b=n.n(v)},X5n4:function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"l",function(){return r}),n.d(t,"i",function(){return a}),n.d(t,"j",function(){return s}),n.d(t,"k",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"d",function(){return l}),n.d(t,"h",function(){return p}),n.d(t,"a",function(){return d}),n.d(t,"g",function(){return f}),n.d(t,"f",function(){return h});var i="application:initialize-routes",o="application:initialize-config",r="application:save-startup-config",a="application:prepare-config",s="application:save-config",c="application:save-config-done",u="application:initialize-app",l="application:initialize-plugins",p="application:notify",d="application:close-notification",f="application:loading",h="application:loaded"},X8TR:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"post-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.showAsciidocHelp()}}},[e._m(0)]),n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchLight()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.lightLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{sun:e.isDark,moon:!e.isDark}})])]),n("a",{staticClass:"item html-preview",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreview(!1)}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.previewLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{unhide:!e.isPreviewVisible||e.isIFrame,hide:e.isPreviewVisible&&!e.isIFrame}})])]),n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreview(!0)}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.previewLabelIFrame,"data-position":"bottom right"}},[n("i",{staticClass:"large icon globe"})])]),e.isPreviewVisible?n("a",{staticClass:"item preview-resize",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreviewSize()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.resizeLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{expand:!e.isFullScreen,compress:e.isFullScreen}})])]):e._e(),e.isRemoteActionVisible?n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.remoteSave()}}},[e._m(1)]):e._e(),e.isRemoteActionVisible?n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.publish()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.publishLabel,"data-position":"bottom right"}},[n("i",{staticClass:"icons"},[n("i",{staticClass:"cloud large icon",class:{download:e.isPostPublished,upload:!e.isPostPublished}})])])]):e._e()])]),e._m(2),n("div",{staticClass:"post-editor"},[n("div",{staticClass:"ui grid",class:{dark:e.isDark,light:!e.isDark}},[n("div",{staticClass:"row"},[n("div",{staticClass:"column",class:{"sixteen wide mobile height wide computer is-preview-visible":e.isPreviewVisible,"sixteen wide":!e.isPreviewVisible,"is-hidden":e.isFullScreen},attrs:{id:"asciidoc-content"}},[n("codemirror",{ref:"codeEditor",staticClass:"container",attrs:{code:e.content,options:e.editorOption},on:{input:e.contentChange}})],1),e.isPreviewVisible?n("div",{staticClass:"column",class:{"sixteen wide mobile height wide computer is-preview-visible":e.isPreviewVisible,"is-iframe":e.isIFrame,"is-fullscreen":e.isFullScreen},attrs:{id:"asciidoc-preview"}},[n("preview",{attrs:{post:e.post,iframe:e.isIFrame}})],1):e._e()])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Need some help?","data-position":"bottom right"}},[t("i",{staticClass:"help large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Save your post remotely","data-position":"bottom right"}},[t("i",{staticClass:"save large icon"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui modal",attrs:{id:"asciidoc-help"}},[n("i",{staticClass:"close icon"}),n("div",{staticClass:"header"},[e._v("\n Asciidoc syntax help\n ")]),n("div",{staticClass:"content"},[n("table",{staticClass:"ui table"},[n("thead",[n("tr",[n("th",{staticClass:"heigth wide"},[e._v("Result")]),n("th",{staticClass:"heigth wide"},[e._v("Asciidoc")])])]),n("tbody",[n("tr",[n("td",[e._v("H1")]),n("td",[e._v("= Title")])]),n("tr",[n("td",[e._v("H2")]),n("td",[e._v("== Title")])]),n("tr",[n("td",[e._v("H3")]),n("td",[e._v("=== Title")])]),n("tr",[n("td",[n("strong",[e._v("Bold")])]),n("td",[e._v("*content*")])]),n("tr",[n("td",[n("i",[e._v("Emphasize")])]),n("td",[e._v("_content_")])]),n("tr",[n("td",[n("a",{attrs:{href:"#"}},[e._v("Link")])]),n("td",[e._v("http://asciidoctor.org[Asciidoctor]")])]),n("tr",[n("td",[e._v("Image Block")]),n("td",[e._v("image::sunset.jpg[]")])]),n("tr",[n("td",[e._v("Image Inline")]),n("td",[e._v('Click image:icons/pause.png[title="Pause"] when you need a break.')])]),n("tr",[n("td",[e._v("Video")]),n("td",[e._v("video::video_file.mp4[]")])]),n("tr",[n("td",[e._v("Unordered list")]),n("td",[e._v("* item")])]),n("tr",[n("td",[e._v("Ordered list")]),n("td",[e._v(". item")])]),n("tr",[n("td",[n("code",[e._v("Inline code")])]),n("td",[e._v("`code`")])])])]),n("p",[e._v("\n More informations about the Asciidoc syntax here: "),n("a",{attrs:{href:"http://asciidoctor.org/docs/asciidoc-syntax-quick-reference/",target:"_blank"}},[e._v("AsciiDoc Syntax Quick Reference")])])])])}]};t.a=i},XO7e:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.iframe?e._e():n("div",{staticClass:"html-rendering"},[n("h1",{staticClass:"ui header"},[e._v(e._s(e.post.title))]),n("div",{staticClass:"content",attrs:{id:"html-content"},domProps:{innerHTML:e._s(e.post.html)}})]),e.iframe?n("div",{staticClass:"iframe-rendering"},[n("iframe",{staticClass:"published-preview",attrs:{srcdoc:e.post.publishedContent,frameborder:"0"}})]):e._e()])},staticRenderFns:[]};t.a=i},XSDV:function(e,t,n){var i=n("jAb+");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("5bd01218",i,!0,{sourceMap:!1})},XkEn:function(e,t,n){var i=n("dd07");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("1ce06800",i,!0,{sourceMap:!1})},Y2j8:function(e,t,n){"use strict";var i=n("woOf"),o=(n.n(i),n("/Luh")),r=(n.n(o),n("M4fF")),a=(n.n(r),n("RJtx")),s=(n.n(a),n("Wa/L")),c=n("tCkb");s.a.plugin(c.a),window.PouchDB=s.a},YDvP:function(e,t,n){var i=n("qZPA");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("3ecfbf5a",i,!0,{sourceMap:!1})},YG9q:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),t.a=function(e){return e.on("application:routes",function(e){return console.info("applicationPlugin - application:routes"),console.log("applicationPlugin - application:routes",e),e.nextState.routes.push({id:"application",entries:[{path:"settings",name:"settings",component:s.a}]}),console.log("applicationPlugin - application:routes - return",e),e}),e.on("application:stores",function(e){var t,n;console.info("applicationPlugin - application:stores"),console.log("applicationPlugin - application:stores",e);var i={state:{isInitialized:!1,isFetching:!1,isLoading:!1,requireInitilisation:!1,notification:{icon:"save",header:"My Header",message:"A message",level:"default",isVisible:!1},routes:[],settingsTabs:[]},mutations:(t={},o()(t,a.b,function(e,t){_.merge(e,t.application)}),o()(t,a.d,function(e,t){_.merge(e,t.application)}),o()(t,a.e,function(e,t){e.routes=t}),o()(t,a.c,function(e,t){_.merge(e,t)}),o()(t,a.i,function(e,t){_.merge(e,t)}),o()(t,a.l,function(e,t){_.merge(e,t)}),o()(t,a.j,function(e,t){_.merge(e,t.application)}),o()(t,a.k,function(e,t){_.merge(e,t.application)}),o()(t,a.h,function(e,t){t.isVisible=!0,_.merge(e.notification,t)}),o()(t,a.a,function(e,t){e.notification.isVisible=!1}),o()(t,a.g,function(e,t){e.isLoading=!0}),o()(t,a.f,function(e,t){e.isLoading=!1}),t),actions:(n={},o()(n,a.c,function(e){var t=e.commit,n=e.rootState,i=e.state,o={rootState:_.cloneDeep(n),currentState:_.cloneDeep(i)};return r.a.initializeConfig(o).then(function(e){t(a.c,e.nextState)})}),o()(n,a.b,function(e){var t=e.commit,n=e.rootState,i=(e.state,{rootState:_.cloneDeep(n),currentState:_.cloneDeep(n)});return r.a.initializeApp(i).then(function(e){console.log("helllllllo",e),t(a.b,e.nextState)})}),o()(n,a.d,function(e){var t=e.commit,n=e.rootState,i=(e.state,{rootState:_.cloneDeep(n),currentState:_.cloneDeep(n)});return r.a.initializePlugins(i).then(function(e){e.nextState.application.isInitialized=!0,t(a.d,e.nextState)})}),o()(n,a.i,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,s=e.state,c={rootState:_.cloneDeep(o),currentState:_.cloneDeep(s),nextState:_.cloneDeep(s),payload:{formData:t}};return c.currentState.isLoading=!0,c.nextState.isLoading=!0,n(a.g).then(function(e){return r.a.prepareConfig(c)}).then(function(e){return i(a.i,e.nextState),n(a.j)})}),o()(n,a.l,function(e,t){e.dispatch;var n=e.commit,i=e.rootState,o=e.state,s={rootState:_.cloneDeep(i),currentState:_.cloneDeep(o),nextState:_.cloneDeep(o)};return s.nextState.config.meta.username=t.username,s.nextState.config.meta.repositoryName=t.repositoryName,s.nextState.config.meta.branch=t.branch,s.nextState.config.meta.cname=t.cname,s.nextState.requireInitilisation=!1,r.a.startUpConfig(s).then(function(e){n(a.l,e.nextState)})}),o()(n,a.j,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,s=(e.state,{rootState:_.cloneDeep(o),currentState:_.cloneDeep(o),nextState:_.cloneDeep(o)});return console.log(s),r.a.saveConfig(s).then(function(e){if(console.log("testsettesse",e),i(a.j,e.nextState),!t)return n(a.k)})}),o()(n,a.k,function(e){var t=e.dispatch,n=e.commit,i=e.rootState,o=(e.state,{rootState:_.cloneDeep(i),currentState:_.cloneDeep(i),nextState:_.cloneDeep(i)});return r.a.saveConfigDone(o).then(function(e){n(a.k,e.nextState)}).then(function(e){return t("application:loaded")}).then(function(e){return t("application:notify",{icon:"save",header:"Settings saved",message:"Your settings have been saved and your blog was rebuild with success. ",level:"success"})})}),o()(n,a.h,function(e,t){e.dispatch;var n=e.commit;e.rootState,e.state,n(a.h,t)}),o()(n,a.a,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.a)}),o()(n,a.g,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.g)}),o()(n,a.f,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.f)}),n),getters:{navigations:function(e){return e.routes.filter(function(e){return e.label})}}};return e.nextState.stores.application=i,console.log("applicationPlugin - application:stores - return",e),e}),e.on("application:prepare-config",function(e){return console.info("applicationPlugin - application:prepare-config"),console.log("applicationPlugin - application:prepare-config",e),e.nextState.config.meta.cname=e.payload.formData.get("application-cname"),console.log("applicationPlugin - application:prepare-config - return",e),e}),e.on("application:save-config",function(e){return console.info("applicationPlugin - application:save-config"),console.log("applicationPlugin - application:save-config",e),console.log("applicationPlugin - application:save-config - return",e),e}),{getName:function(){return"applicationPlugin"}}};var i=n("bOdI"),o=n.n(i),r=n("RsIG"),a=n("X5n4"),s=n("kMyt"),c={APPLICATION_PREPARE_CONFIG:a.i}},YLfZ:function(e,t,n){"use strict";t.a=function(e,t){var n=e.options.data||x;if(!t&&e.options.hasAsyncData)return;e.options.hasAsyncData=!0,e.options.data=function(){var i=n.call(this);return this.$ssrContext&&(t=this.$ssrContext.asyncData[e.cid]),m()({},i,t)},e._Ctor&&e._Ctor.options&&(e._Ctor.options.data=e.options.data)},t.l=C,t.e=w,t.f=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],e.matched.map(function(e,n){return h()(e.instances).map(function(i){return t&&t.push(n),e.instances[i]})}))},t.c=y,t.k=P,n.d(t,"h",function(){return _}),n.d(t,"m",function(){return R}),t.i=function e(t,n){if(!t.length||n._redirected||n._errored)return d.a.resolve();return q(t[0],n).then(function(){return e(t.slice(1),n)})},t.j=q,t.d=function(e,t){var n=window.location.pathname;if("hash"===t)return window.location.hash.replace(/^#\//,"");e&&0===n.indexOf(e)&&(n=n.slice(e.length));return(n||"/")+window.location.search+window.location.hash},t.b=function(e,t){return function(e){for(var t=new Array(e.length),n=0;n1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],e.matched.map(function(e,n){return h()(e.components).map(function(i){return t&&t.push(n),e.components[i]})}))}function y(e,t){return Array.prototype.concat.apply([],e.matched.map(function(e,n){return h()(e.components).map(function(i){return t(e.components[i],e.instances[i],e,i,n)})}))}function P(e){var t,n=this;return d.a.all(y(e,(t=l()(c.a.mark(function e(t,i,o,r){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof t||t.options){e.next=4;break}return e.next=3,t();case 3:t=e.sent;case 4:return e.abrupt("return",o.components[r]=C(t));case 5:case"end":return e.stop()}},e,n)})),function(e,n,i,o){return t.apply(this,arguments)})))}window._nuxtReadyCbs=[],window.onNuxtReady=function(e){window._nuxtReadyCbs.push(e)};var k,S,_=(k=l()(c.a.mark(function e(t){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P(t);case 2:return e.abrupt("return",m()({},t,{meta:w(t).map(function(e){return e.options.meta||{}})}));case 3:case"end":return e.stop()}},e,this)})),function(e){return k.apply(this,arguments)}),R=(S=l()(c.a.mark(function e(t,n){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n.to?n.to:n.route,t.context){e.next=14;break}e.t0=!0,e.t1=t,e.t2=t.store,e.t3=n.payload,e.t4=n.error,e.t5={hubpressVersion:"0.9.0",baseUrl:"http://localhost:3000"},t.context={get isServer(){return console.warn("context.isServer has been deprecated, please use process.server instead."),!1},get isClient(){return console.warn("context.isClient has been deprecated, please use process.client instead."),!0},isStatic:e.t0,isDev:!1,isHMR:!1,app:e.t1,store:e.t2,payload:e.t3,error:e.t4,base:"..",env:e.t5},n.req&&(t.context.req=n.req),n.res&&(t.context.res=n.res),t.context.redirect=function(e,n,i){if(e){t.context._redirected=!0;var o=void 0===n?"undefined":a()(n);if("number"==typeof e||"undefined"!==o&&"object"!==o||(i=n||{},o=void 0===(n=e)?"undefined":a()(n),e=302),"object"===o&&(n=t.router.resolve(n).href),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(n))throw n=L(n,i),window.location.replace(n),new Error("ERR_REDIRECT");t.context.next({path:n,query:i,status:e})}},t.context.nuxtState=window.__NUXT__;case 14:if(t.context.next=n.next,t.context._redirected=!1,t.context._errored=!1,t.context.isHMR=!!n.isHMR,!n.route){e.next=22;break}return e.next=21,_(n.route);case 21:t.context.route=e.sent;case 22:if(t.context.params=t.context.route.params||{},t.context.query=t.context.route.query||{},!n.from){e.next=28;break}return e.next=27,_(n.from);case 27:t.context.from=e.sent;case 28:case"end":return e.stop()}},e,this)})),function(e,t){return S.apply(this,arguments)});function q(e,t){var n=void 0;return(n=2===e.length?new d.a(function(n){e(t,function(e,i){e&&t.error(e),n(i=i||{})})}):e(t))&&(n instanceof d.a||"function"==typeof n.then)||(n=d.a.resolve(n)),n}var M=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function $(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function D(e){return e.replace(/([.+*?=^!:()[\]|\/\\])/g,"\\$1")}function j(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function L(e,t){var n=void 0,i=e.indexOf("://");-1!==i?(n=e.substring(0,i),e=e.substring(i+3)):0===e.indexOf("//")&&(e=e.substring(2));var r=e.split("/"),a=(n?n+"://":"//")+r.shift(),s=r.filter(Boolean).join("/"),c=void 0;return 2===(r=s.split("#")).length&&(s=r[0],c=r[1]),a+=s?"/"+s:"",t&&"{}"!==o()(t)&&(a+=(2===e.split("?").length?"&":"?")+function(e){return h()(e).sort().map(function(t){var n=e[t];return null==n?"":Array.isArray(n)?n.slice().map(function(e){return[t,"=",e].join("")}).join("&"):t+"="+n}).filter(Boolean).join("&")}(t)),a+=c?"#"+c:""}},YMuy:function(e,t,n){"use strict";var i=n("6Ndi"),o=n("PJh5"),r=n.n(o);function a(e){return i.a.fireRequestRemoteSynchronization(e).then(function(e){return i.a.fireReceiveRemoteSynchronization(e)}).then(function(e){return i.a.fireRequestRenderingDocuments(e)}).then(function(e){return i.a.fireReceiveRenderingDocuments(e)}).then(function(e){return i.a.fireRequestLocalSynchronization(e)}).then(function(e){return i.a.fireReceiveLocalSynchronization(e)}).then(function(e){return i.a.fireRequestLocalPosts(e)}).then(function(e){return i.a.fireReceiveLocalPosts(e)}).then(function(e){return localStorage.setItem("hubpress:sync",r()().format()),e})}t.a={initialize:function(e){return i.a.fireRequestTheme(e).then(function(e){return i.a.fireReceiveTheme(e)}).then(function(e){return localStorage.getItem("hubpress:sync")?i.a.fireRequestLocalPosts(e).then(function(e){return i.a.fireReceiveLocalPosts(e)}):a(e)})},synchronize:a}},YoMZ:function(e,t,n){var i=n("7Rt3");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("9418214c",i,!0,{sourceMap:!1})},"bN/m":function(e,t,n){"use strict";function i(e,t){var n=void 0;return e.cname&&""!==e.cname?n=(!1===t?"":"http:")+"//"+e.cname:(n=(!1===t?"":"https:")+"//"+e.username+".github.io","master"!==e.branch&&(n=n+"/"+e.repositoryName)),n}function o(e,t){var n=e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"/$1/$2/$3/$4.html");return"page"===t&&(n=e.replace(/([\w-]*)\.adoc/,"/$1.html")),n}function r(e,t){var n=e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"$1/$2/$3/$4.html");return"page"===t&&(n=e.replace(/([\w-]*)\.adoc/,"$1.html")),n}function a(e){return e.match(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/)?"post":"page"}t.a=function(e){return{site:i(e.meta),hubpress:function(e,t){var n=t.protocol+"//"+t.host;if("localhost"===t.hostname)return n;t.host===e.username+".github.io"||t.host===e.username+".github.com"?"master"!==e.branch&&(n=n+"/"+e.repositoryName):"master"===e.branch||e.cname&&""!==e.cname||(n=n+"/"+e.repositoryName);return n}(e.meta,window.location),theme:i(e.meta,!1)+"/themes/"+e.theme.name,images:i(e.meta)+"/images",getContentUrl:o,getContentGhPath:r,getContentType:a,getPostUrl:function(e){return e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"/$1/$2/$3/$4.html")},getPostGhPath:function(e){return e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"$1/$2/$3/$4.html")},getPageUrl:function(e){return e.replace(/([\w-]*)\.adoc/,"/$1.html")},getPageGhPath:function(e){return e.replace(/([\w-]*)\.adoc/,"$1.html")},getSiteUrl:i}}},bxJ0:function(e,t,n){"use strict";t.a=function(e){e.on("application:request-config",function(e){return console.info("githubPlugin - application:request-config"),console.log("githubPlugin - application:request-config",e),l()("config.json?dt="+Date.now()).then(function(e){return e.json()}).then(function(t){return e.nextState.config=a()({},e.nextState.config,t),e.nextState.config.theme.name=e.nextState.config.theme.name.toLowerCase(),e})}),e.on("application:receive-config",function(e){console.info("githubPlugin - application:receive-config"),console.log("githubPlugin - application:receive-config",e);var t=Object(w.a)(e.nextState.config);return e.nextState.config=a()({},e.nextState.config,{urls:t}),e}),e.on("requestAuthentication",function(e){return console.info("githubPlugin - requestAuthentication"),console.log("githubPlugin - requestAuthentication",e),function(e){console.log("githubPlugin - login",e);var t=m.a.defer(),n=e.nextState.credentials,i=e.rootState.application.config.meta,o=(q=new h.a({auth:"basic",username:n.email,password:n.password,twoFactorCode:n.twoFactorCode})).getRepo(i.username,i.repositoryName),r=q.getAuthorization(),a=q.getUser(),s=void 0,c=void 0;return function(e){var t=m.a.defer();return e.getDetails(function(e,n){e?t.reject(e):t.resolve(n)}),t.promise}(o).then(function(e){s=e}).then(S(a)).then(function(e){return c=e,function(e){var t=m.a.defer();return console.log("getAuthorizations",e),e.listAuthorizations({},function(e,n){e?t.reject(e):(console.log("getAuthorizations list",n),t.resolve(n))}),t.promise}(r)}).then(function(e){return function(e,t,n){var i=m.a.defer(),o=-1,r=_(e);return t.forEach(function(e){e.note===r&&(o=e.id)}),-1!==o?n.deleteAuthorization(o,function(e,t){e?i.reject(e):i.resolve()}):i.resolve(),i.promise}(i.repositoryName,e,r)}).then(function(){return R(i.repositoryName,r)}).then(function(e){q=new h.a({auth:"oauth",token:e.token}),t.resolve({isAuthenticated:!0,credentials:{token:e.token},permissions:s.permissions,userInformations:c})}).catch(function(e){console.error("githubPlugin - login error",e,e.response);var n,o={type:"error",title:"Authentication"};e.response&&(n="required"===(e.response.headers&&e.response.headers["x-github-otp"]||"").split(";")[0]),n?(R(i.repositoryName,r),console.log("githubPlugin - OTP required : ",n),o.type="warning",o.content="A two-factor authentication code is needed.",o.otp=!0,t.resolve({isAuthenticated:!1,isTwoFactorCodeRequired:!0})):(console.error("githubPlugin - login error",e),t.reject({error:{code:e.error,message:"Unable to authenticate, check your credentials."}}))}),t.promise}(e).then(function(t){var n=a()({},e.nextState.credentials,t.credentials);return e.nextState=a()({},e.nextState,t,{credentials:n}),e})}),e.on("receiveSavedAuth",function(e){return console.info("githubPlugin - receiveSavedAuth"),console.log("githubPlugin - receiveSavedAuth",e),e.nextState.authentication.isAuthenticated&&(q=new h.a({auth:"oauth",token:e.nextState.authentication.credentials.token})),e}),e.on("hubpress:request-remote-synchronization",function(e){return console.info("githubPlugin - hubpress:request-remote-synchronization"),console.log("githubPlugin - hubpress:request-remote-synchronization",e),e.rootState.authentication.isAuthenticated?function(e){var t=e.application.config;console.log("Get posts",t);var n=t.meta,i=q.getRepo(n.username,n.repositoryName);return function(e,t){var n=m.a.defer();return e.getContents(t.meta.branch,"",!0,function(e,t){if(e)n.reject(e);else{var i=void 0;t.forEach(function(e){"_posts"===e.name&&(i=e.sha)}),n.resolve(i)}}),n.promise}(i,t).then(function(e){return function(e,t,n){var i=void 0;if(n===localStorage.postsSha)i=m.a.fcall(function(){return[]});else{var o=m.a.defer();e.getContents(t.meta.branch,"_posts",!0,function(e,t){e?o.reject(e):o.resolve(t)}),i=o.promise}return i}(i,t,e)}).then(function(e){return e.map(function(e){return b.a.pick(e,["name","path","sha","size"])})}).then(function(e){return function(e,t,n){var i=b.a.compact(n).map(function(e){return function(e,t){var n=m.a.defer(),i=e.meta,o=q.getRepo(i.username,i.repositoryName),r=e.urls.getContentType(t.name);return o.getSha(e.meta.branch,e.urls.getContentGhPath(t.name,r),function(e,i){if(e&&e.response&&404!==e.response.status)n.reject(e);else{var o=i?1:0,r=a()({},t,{published:o});n.resolve(r)}}),n.promise}(t,e)});return m.a.all(i)}(0,t,e)}).then(function(n){return function(e,t,n,i){var o=n.map(function(e){return M(t,e,i)});return m.a.all(o)}(0,t,n,e.authentication.userInformations)}).then(function(e){return function(e,t,n){var i=[];return n.forEach(function(n){var o=m.a.defer();i.push(o.promise),e.getContents(t.meta.branch,n.path,!0,function(e,t){var i;e?o.reject(e):(i=a()({},n,{content:t}),o.resolve(i))})}),m.a.all(i)}(i,t,e)})}(e.rootState).then(function(t){return e.nextState=a()({},e.nextState,{posts:t}),e}):e}),e.on("requestSaveRemotePost",function(e){console.info("githubPlugin - requestSaveRemotePost"),console.log("githubPlugin - requestSaveRemotePost",e);var t=e.rootState.application.config,n=e.nextState.post;return function(e,t){var n=e.meta,i=q.getRepo(n.username,n.repositoryName),o=void 0;if(t.original&&t.name!==t.original.name){var r=m.a.defer();o=r.promise;var a=e.meta.branch,s="_posts/"+t.original.name,c="_posts/"+t.name;i.move(a,s,c,function(n,o){if(n)r.reject(n);else if(t.published){var s=e.urls.getContentGhPath(t.original.name,t.original.type);(function(e,t,n){return function(e,t,n){var i=m.a.defer();return e.deleteFile(t,n,function(e,t){e?i.reject(e):(console.error(t),k=t.commit,i.resolve(t))}),i.promise}(e,t,n)})(i,a,s).then(function(e){r.resolve({post:t,sha:e})}).catch(function(e){r.reject(e)}).done()}else r.resolve({post:t,sha:o})})}else o=m()({post:t});return o}(t,n).then(function(e){return function(e,t){console.log("Write post",e,t);var n=e.meta,i=q.getRepo(n.username,n.repositoryName),o=n.branch,r="_posts/"+t.name,a="Update "+t.name,s=m.a.defer();return i.writeFile(o,r,t.content,a,function(n,i){n?s.reject(n):(t.original=b.a.omit(t,["original"]),t.original.url=e.urls.getContentUrl(t.original.name,t.original.type),t.original.path="_posts/"+t.original.name,t.original.sha=i,k=i.commit,console.info("Update lastCacheCommit",k),s.resolve(t))}),s.promise}(t,e.post)}).then(function(n){return M(t,n,e.rootState.authentication.userInformations)}).then(function(t){return e.nextState.post=t,e})}),e.on("requestSaveRemotePublishedElements",function(e){console.info("githubPlugin - requestSaveRemotePublishedElements"),console.log("githubPlugin - requestSaveRemotePublishedElements",e);var t=e.rootState.application.config.meta,n=q.getRepo(t.username,t.repositoryName),i=e.nextState.elementsToPublish.length,o=b.a.chunk(e.nextState.elementsToPublish,P);console.log("Writeall",e.nextState.elementsToPublish);var r=m.a.defer();return n.getBranch(t.branch,function(a,s){if(a){var c=m.a.defer();return r=c.promise,c.reject(a)}var u=0,l=o.reduce(function(e,o){return e.then(function(e){var r=m.a.defer(),a=o.map(function(e){return{path:e.path,mode:"100644",type:"blob",content:e.content}});return n.createTree(a,e,function(a,s){if(a)return r.reject(a);n.commit(e,s.sha,"Published "+(u+o.length)+"/"+i+" elements",function(e,i){if(e)return r.reject(e);u+=o.length,k=i,n.updateHead("heads/"+t.branch,i.sha,!1,function(e,t){if(console.log("updateHead",e,t),e)return r.reject(e);r.resolve(i.sha)})})}),r.promise})},m()(function(e,t){if(console.error(e,t),!t)return e.sha;var n=C()(e.committer.date);return C()(t.committer.date).isAfter(n)?t.sha:e.sha}({committer:s.commit.commit.committer,sha:s.commit.sha},k)));l.then(function(t){r.resolve(e)}).catch(function(e){r.reject(e)})}),r.promise}),e.on("requestDeleteRemotePost",function(e){console.info("githubPlugin - requestDeleteRemotePost"),console.log("githubPlugin - requestDeleteRemotePost",e);var t=m.a.defer(),n=e.rootState.application.config,i=n.meta,o=q.getRepo(i.username,i.repositoryName),r=e.nextState.post.original.path;return o.deleteFile(i.branch,r,function(n,i){n&&n.response&&404!==n.response.status?t.reject(n):(console.error("requestDeleteRemotePost",i),k=i.commit,t.resolve(e))}).catch(function(n){n&&n.response&&404===n.response.status&&t.resolve(e)}),t.promise}),e.on("requestDeleteRemotePublishedPost",function(e){console.info("githubPlugin - requestDeleteRemotePublishedPost"),console.log("githubPlugin - requestDeleteRemotePublishedPost",e);var t=m.a.defer(),n=e.rootState.application.config,i=n.meta,o=q.getRepo(i.username,i.repositoryName),r=n.urls.getContentGhPath(e.nextState.post.original.name,e.nextState.post.original.type);return o.deleteFile(i.branch,r,function(n,i){n?t.reject(n):(console.error("requestDeleteRemotePublishedPost",i),k=i.commit,t.resolve(e))}),t.promise}),e.on("application:request-save-config",function(e){console.info("githubPlugin - application:request-save-config"),console.log("githubPlugin - application:request-save-config",e);var t=e.nextState.application;return function(e){console.log("Write config",e);var t=m.a.defer(),n=e.meta,i=q.getRepo(n.username,n.repositoryName),r=n.branch;return i.writeFile(r,"hubpress/config.json",o()(e,null,2),"Update configuration file",function(e,n){e?t.reject(e):(k=n.commit,console.info("Update lastCacheCommit",k),t.resolve(n))}),t.promise}(t.config).then(function(e){return function(e){console.log("Github manageCname - ",e);var t=e.meta,n=q.getRepo(t.username,t.repositoryName),i=m.a.defer();t.cname&&""!==t.cname?(console.info("SettingsService - saveAndPublish save CNAME"),n.writeFile(t.branch,"CNAME",t.cname,"Update CNAME with "+t.cname,function(e,t){e?i.reject(e):(k=t.commit,console.info("Update lastCacheCommit",k),i.resolve(t))})):(console.info("SettingsService - saveAndPublish delete CNAME"),n.deleteFile(t.branch,"CNAME",function(e,t){e&&"not found"!==e?i.reject(e):i.resolve(t)}).then(function(e){console.log("SHA after delete",e),i.resolve(e)}).catch(function(e){404!==e.response.status?i.reject(e):i.resolve()}));return i.promise}(t.config)}).then(function(t){return e})}),e.on("receiveRenderingPost",function(e){return console.info("githubPlugin - receiveRenderingPost"),console.log("githubPlugin - receiveRenderingPost",e),e}),e.on("application:initialize-plugins",function(e){console.info("githubPlugin - application:initialize-plugins"),console.log("githubPlugin - application:initialize-plugins",e);var t="put your repository name here"===e.rootState.application.config.meta.repositoryName||"put your username here"===e.rootState.application.config.meta.username;return e.nextState.application.requireInitilisation=t,e.nextState.application.config.initialisationConfigComponent=y.a,e})};var i=n("mvHQ"),o=n.n(i),r=n("woOf"),a=n.n(r),s=n("6ltY"),c=n.n(s),u=n("j9g7"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=n("73D8"),h=n.n(f),g=n("/Luh"),m=n.n(g),v=n("M4fF"),b=n.n(v),x=n("PJh5"),C=n.n(x),w=n("bN/m"),y=n("IBrK"),P=50,k=null;function S(e){return function(){var t=m.a.defer();return e.getProfile(function(e,n){e?t.reject(e):t.resolve(b.a.pick(n,["login","id","name","location","blog","avatar_url","bio"]))}),t.promise}}function _(e){return d()(e+"-"+c.a.name+"-"+c.a.os)}function R(e,t){var n=m.a.defer(),i={scopes:["public_repo"],note:_(e)};return t.createAuthorization(i,function(e,t){e?n.reject(e):n.resolve(t)}),n.promise}var q=void 0;function M(e,t,n){var i=m.a.defer(),o=e.meta,r=q.getRepo(o.username,o.repositoryName);return console.log("getPostAuthor",t),r.listCommits({sha:e.meta.branch,path:t.original&&t.original.path||t.path},function(e,o){if(e&&404!==e.error)i.reject(e);else{var r=o[o.length-1].author;if(r&&r.login!==n.login){S(q.getUser(r.login))().then(function(e){r=a()({},e);var n=a()({},t,{author:r});i.resolve(n)}).catch(function(e){return i.reject(e)})}else{r=a()({},n);var s=a()({},t,{author:r});i.resolve(s)}}}),i.promise}},cOI0:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,'.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,.5)}.cm-animate-fat-cursor,.cm-fat-cursor-mark{-webkit-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;background-color:#7e7}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;-webkit-font-feature-settings:"calt";font-feature-settings:"calt";font-variant-ligatures:contextual}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-webkit-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}',""])},cmzl:function(e,t,n){"use strict";var i={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"nuxt-progress",style:{width:this.percent+"%",height:this.height,"background-color":this.canSuccess?this.color:this.failedColor,opacity:this.show?1:0}})},staticRenderFns:[]};t.a=i},ct3O:function(e,t,n){"use strict";var i=n("FIB3"),o=n("FdPX");var r=function(e){n("wGIl")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},"d/OL":function(e,t,n){"use strict";t.a=function(e){e.on("hubpress:request-rendering-documents",function(e){console.info("asciidocPlugin - hubpress:request-rendering-documents"),console.log("asciidocPlugin - hubpress:request-rendering-documents",e);var t=e.rootState.application.config,n=(e.nextState.posts||[]).map(function(e){var n=o()({},e,h(t,e.content),{content:e.content}),i=c.a.pick(n,"attributes","author","html","tags","content","name","path","sha");n.title=i.title=i.attributes.doctitle,n.image=i.image=i.attributes["hp-image"],n.type=i.type=i.attributes["hp-type"],n.tags=i.tags=g(i.attributes),n.url=i.url=m(t,n.type,i.name);var r=o()({},n,{original:i});return n.type&&"post"!==n.type||(r.original.published_at=r.published_at=i.name.split("-").slice(0,3).join("-")),r});return e.nextState.posts=n,e}),e.on("requestRenderingPost",function(e){console.info("asciidocPlugin - requestRenderingPost"),console.log("asciidocPlugin - requestRenderingPost",e);var t=h(e.rootState.application.config,e.nextState.post.content);e.nextState.post=o()({},e.nextState.post,t),e.nextState.post.title=t.attributes.doctitle,e.nextState.post.image=t.attributes["hp-image"],e.nextState.post.type=t.attributes["hp-type"],e.nextState.post.tags=g(t.attributes),e.nextState.post.published_at=t.attributes.published_at||e.nextState.post.published_at||l()().format("YYYY-MM-DD");var n=t.attributes["hp-alt-title"];return e.nextState.post.type&&"post"!==e.nextState.post.type?e.nextState.post.name=d()(""+(n||e.nextState.post.title))+".adoc":e.nextState.post.name=d()(e.nextState.post.published_at+"-"+(n||e.nextState.post.title))+".adoc",e.nextState.post.url=m(e.rootState.application.config,e.nextState.post.type,e.nextState.post.name),e})};var i=n("woOf"),o=n.n(i),r=n("rzLr"),a=n.n(r),s=n("M4fF"),c=n.n(s),u=n("PJh5"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=a()(!1,window.XMLHttpRequest);function h(e,t){var n={doctype:"article",backend:"html5",safe:"unsafe",attributes:["showtitle!","allow-uri-read","imagesdir="+e.urls.site+"/images","icons=font"]},i=function(e){var t=e.split("pass::[more]");return{excerpt:t[0],full:t.join("")}}(t.replace(/gist::([0-9]*)\[(lines=[0-9]*\.\.[0-9]*)?,?(type=([\w.]*))?,?(file=([\w.]*))?\]/g,"[source,$4]\n----\ninclude::https://gist.githubusercontent.com/raw/$1/$6[$2]\n----\n")),o=f.load(i.excerpt,n),r=f.load(i.full,n);return{attributes:r.getAttributes(),excerpt:o.$convert(),html:r.$convert()}}function g(e){return e["hp-tags"]&&e["hp-tags"].split(",").map(function(e){return e.trim()}).filter(function(e){return""!==e})}function m(e,t,n){return e.urls.getContentUrl(n,t)}},dCDI:function(e,t,n){"use strict";(function(e,t){var i,o=n("pFYg"),r=n.n(o);i=function(e){var t;(t=e).overlayMode=function(e,n,i){return{startState:function(){return{base:t.startState(e),overlay:t.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(i){return{base:t.copyState(e,i.base),overlay:t.copyState(n,i.overlay),basePos:i.basePos,baseCur:null,overlayPos:i.overlayPos,overlayCur:null}},token:function(t,o){return(t!=o.streamSeen||Math.min(o.basePos,o.overlayPos)"},redirect:"/content",meta:{auth:!0},children:t.nextState.routes.map(function(e){return console.log(e),e.entries}).reduce(function(e,t){return e.concat(t)},[])}]},i=new r.default(n);return i.routes=t.nextState.routes,i.beforeEach(function(e,t,n){var i=Object(a.default)();e.matched.some(function(e){return e.meta.auth})?i.state.authentication.isAuthenticated?n():n({path:"/login",query:{redirect:e.fullPath}}):n()}),i};var i=n("I3G/"),o=n.n(i),r=n("/ocq"),a=n("fbRD"),s=n("LEOq"),c=n.n(s),u=(n("7cn8"),n("YG9q")),l=n("QMmS"),p=n("3oxy"),d=n("H8Oa"),f=n("bxJ0"),h=n("WiUJ"),g=n("H1PK"),m=n("d/OL"),v=(n("Y2j8"),n("1AqL")),b=n("tLh+");console.log("router =============="),console.log("Router"),o.a.use(r.default),c.a.register(u.a,l.b,p.a,d.a,f.a,h.a,g.a,m.a,v.a,b.a),console.log("Registered plugins",c.a.list())},oS0V:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui center aligned grid"},[n("div",{staticClass:"ui middle aligned grid"},[e.requireInitilisation?n("div",{staticClass:"column"},[n("div",{staticClass:"ui segment"},[n("initialisation-component",{tag:"component"})],1)]):e._e(),e.requireInitilisation?e._e():n("div",{staticClass:"column",attrs:{id:"loginForm"}},[n("div",{staticClass:"ui segment"},[n("img",{staticClass:"image",attrs:{src:"https://hubpress.github.io/img/freeze/logo.png"}}),n("h2",{staticClass:"ui header"},[e._v("\n Welcome!\n ")]),n("div",{staticClass:"content"}),n("form",{staticClass:"ui medium form",on:{submit:function(t){t.preventDefault(),e.login({email:e.email,password:e.password})}}},[n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"user icon"}),n("input",{attrs:{type:"text",name:"email",placeholder:"Username or e-mail address"},domProps:{value:e.email},on:{input:e.updateEmail}})])]),n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"lock icon"}),n("input",{attrs:{type:"password",name:"password",placeholder:"Password"},domProps:{value:e.password},on:{input:e.updatePassword}})])]),e.isTwoFactorCodeRequired?n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"key icon"}),n("input",{attrs:{type:"text",name:"twoFactorCode",placeholder:"Two factor code"},domProps:{value:e.twoFactorCode},on:{input:e.updateTwoFactorCode}})])]):e._e(),n("button",{staticClass:"ui fluid large submit button",attrs:{type:"submit",name:"button"}},[e._v("Login")])]),e._m(0)])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui message"},[this._v("\n If you have questions about how to use HubPress, "),t("a",{attrs:{href:"https://hubpress.gitbooks.io/hubpress-knowledgebase/content/"}},[this._v("here is the right place.")])])}]};t.a=i},oz2E:function(e,t,n){"use strict";t.a={name:"dashboard",beforeCreate:function(){console.log("dashboard beforeCreate")},created:function(){console.log("dashboard created")}}},qZPA:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".html-rendering,.published-preview{min-width:100%;height:calc(100vh - 47px);min-height:calc(100vh - 47px)}",""])},qcny:function(e,t,n){"use strict";n.d(t,"b",function(){return D});var i=n("Xxa5"),o=n.n(i),r=n("//Fk"),a=(n.n(r),n("C4MV")),s=n.n(a),c=n("woOf"),u=n.n(c),l=n("Dd8w"),p=n.n(l),d=n("exGp"),f=n.n(d),h=n("MU8w"),g=(n.n(h),n("I3G/")),m=n.n(g),v=n("p3jY"),b=n.n(v),x=n("mtxM"),C=n("0F0d"),w=n("HBB+"),y=n("WRRc"),P=n("ct3O"),k=n("Hot+"),S=n("yTq1"),_=n("YLfZ"),R=n("J2Ti"),q=n("zQW4"),M=n("6hdJ");n.d(t,"a",function(){return P.a});var $,D=($=f()(o.a.mark(function e(t){var n,i,r,a,c,l,d;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(x.a)(t),(i=Object(R.a)(t)).$router=n,r=p()({router:n,store:i,nuxt:{defaultTransition:j,transitions:[j],setTransitions:function(e){return Array.isArray(e)||(e=[e]),e=e.map(function(e){return e=e?"string"==typeof e?u()({},j,{name:e}):u()({},j,e):j}),this.$options.nuxt.transitions=e,e},err:null,dateErr:null,error:function(e){e=e||null,r.context._errored=!!e,"string"==typeof e&&(e={statusCode:500,message:e});var n=this.nuxt||this.$options.nuxt;return n.dateErr=Date.now(),n.err=e,t&&(t.nuxt.error=e),e}}},S.a),i.app=r,a=t?t.next:function(e){return r.router.push(e)},c=void 0,t?c=n.resolve(t.url).route:(l=Object(_.d)(n.options.base),c=n.resolve(l).route),e.next=10,Object(_.m)(r,{route:c,next:a,error:r.nuxt.error.bind(r),store:i,payload:t?t.payload:void 0,req:t?t.req:void 0,res:t?t.res:void 0,beforeRenderFns:t?t.beforeRenderFns:void 0});case 10:if(d=function(e,t){if(!e)throw new Error("inject(key, value) has no key provided");if(!t)throw new Error("inject(key, value) has no value provided");r[e="$"+e]=t,i[e]=r[e];var n="__nuxt_"+e+"_installed__";m.a[n]||(m.a[n]=!0,m.a.use(function(){m.a.prototype.hasOwnProperty(e)||s()(m.a.prototype,e,{get:function(){return this.$root.$options[e]}})}))},window.__NUXT__&&window.__NUXT__.state&&i.replaceState(window.__NUXT__.state),"function"!=typeof q.a){e.next=15;break}return e.next=15,Object(q.a)(r.context,d);case 15:if("function"!=typeof M.a){e.next=18;break}return e.next=18,Object(M.a)(r.context,d);case 18:e.next=21;break;case 21:return e.abrupt("return",{app:r,router:n,store:i});case 22:case"end":return e.stop()}},e,this)})),function(e){return $.apply(this,arguments)});m.a.component(C.a.name,C.a),m.a.component(w.a.name,w.a),m.a.component(y.a.name,y.a),m.a.component(k.a.name,k.a),m.a.use(b.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var j={name:"page",mode:"out-in",appear:!0,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"}},r6qT:function(e,t,n){var i=n("HEYa");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("2b9275f1",i,!0,{sourceMap:!1})},"tLh+":function(e,t,n){"use strict";t.a=function(e){e.on("requestGenerateIndex",function(e){console.info("rssPlugin - requestGenerateIndex"),console.log("rssPlugin - requestGenerateIndex",e);var t=e.rootState.application.config.site||{},n=e.rootState.application.config.urls.site||"",i=e.nextState.publishedPosts||[],r=new o.a({title:t.title||"",description:t.description||"",feed_url:n+"/rss/",site_url:n,image_url:t.cover,ttl:"60"});i.forEach(function(e){r.item({title:e.title,description:e.html,url:""+n+e.url,categories:e.tags,author:e.author.name,date:e.published_at})});var a=r.xml(),s=[];return s.push({name:"RSS",path:"rss/index.xml",content:a,message:"Publish rss feed"}),e.nextState.elementsToPublish=(e.nextState.elementsToPublish||[]).concat(s),e})};var i=n("DVIz"),o=n.n(i)},u8s0:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"",""])},unZF:function(e,t,n){"use strict";var i=n("BO1k"),o=n.n(i),r=n("GfDd"),a=r.keys();function s(e){var t=r(e);return t.default?t.default:t}var c={},u=!0,l=!1,p=void 0;try{for(var d,f=o()(a);!(u=(d=f.next()).done);u=!0){var h=d.value;c[h.replace(/^\.\//,"").replace(/\.(js|ts)$/,"")]=s(h)}}catch(e){l=!0,p=e}finally{try{!u&&f.return&&f.return()}finally{if(l)throw p}}t.a=c},vKgl:function(e,t,n){var i=n("EgsU");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("44921a73",i,!0,{sourceMap:!1})},vXEZ:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".nuxt-progress{position:fixed;top:0;left:0;right:0;height:2px;width:0;-webkit-transition:width .2s,opacity .4s;transition:width .2s,opacity .4s;opacity:1;background-color:#efc14e;z-index:999999}",""])},wGIl:function(e,t,n){var i=n("m8kW");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("6bc7b368",i,!0,{sourceMap:!1})},wQtD:function(e,t,n){"use strict";t.a={name:"navigation-settings",data:function(){return{newNav:{label:"",url:""},navigation:this.$store.state.application.config.navigation||[]}},computed:{isNotValid:function(){return""===this.newNav.label.trim()||""===this.newNav.url.trim()}},methods:{remove:function(e){this.navigation.splice(e,1)},clear:function(){this.newNav={label:"",url:""}},add:function(e){this.navigation.push(e),this.clear()}}}},wrAo:function(e,t,n){"use strict";t.a={name:"hubpress-settings-social",computed:{social:function(){return this.$store.state.application.config.socialnetwork||{}}}}},yJpT:function(e,t,n){var i=n("j9sj");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("33615082",i,!0,{sourceMap:!1})},yTq1:function(e,t,n){"use strict";var i=n("//Fk"),o=n.n(i),r=n("I3G/"),a=n.n(r),s=n("F88d"),c=n("XSDV"),u=(n.n(c),{_default:function(){return n.e(0).then(n.bind(null,"Ma2J")).then(function(e){return e.default||e})}}),l={};t.a={head:{title:"Hubpress: A web application to build your Blog",meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{hid:"description",name:"description",content:"Nuxt.js project"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"},{rel:"stylesheet",href:"../static/semantic/semantic.min.css"}],style:[],script:[]},render:function(e,t){var n=e("nuxt-loading",{ref:"loading"}),i=e(this.layout||"nuxt");return e("div",{domProps:{id:"__nuxt"}},[n,e("transition",{props:{name:"layout",mode:"out-in"}},[e("div",{domProps:{id:"__layout"},key:this.layoutName},[i])])])},data:function(){return{layout:null,layoutName:""}},beforeCreate:function(){a.a.util.defineReactive(this,"nuxt",this.$options.nuxt)},created:function(){a.a.prototype.$nuxt=this,"undefined"!=typeof window&&(window.$nuxt=this),this.error=this.nuxt.error},mounted:function(){this.$loading=this.$refs.loading},watch:{"nuxt.err":"errorChanged"},methods:{errorChanged:function(){this.nuxt.err&&this.$loading&&(this.$loading.fail&&this.$loading.fail(),this.$loading.finish&&this.$loading.finish())},setLayout:function(e){e&&l["_"+e]||(e="default"),this.layoutName=e;var t="_"+e;return this.layout=l[t],this.layout},loadLayout:function(e){var t=this;e&&(u["_"+e]||l["_"+e])||(e="default");var n="_"+e;return l[n]?o.a.resolve(l[n]):u[n]().then(function(e){return l[n]=e,delete u[n],l[n]}).catch(function(e){if(t.$nuxt)return t.$nuxt.error({statusCode:500,message:e.message})})}},components:{NuxtLoading:s.a}}},yUYC:function(e,t,n){"use strict";var i=n("I3G/"),o=n.n(i);t.a={name:"nuxt-loading",data:function(){return{percent:0,show:!1,canSuccess:!0,duration:5e3,height:"2px",color:"#3B8070",failedColor:"red"}},methods:{start:function(){var e=this;return this.show=!0,this.canSuccess=!0,this._timer&&(clearInterval(this._timer),this.percent=0),this._cut=1e4/Math.floor(this.duration),this._timer=setInterval(function(){e.increase(e._cut*Math.random()),e.percent>95&&e.finish()},100),this},set:function(e){return this.show=!0,this.canSuccess=!0,this.percent=Math.floor(e),this},get:function(){return Math.floor(this.percent)},increase:function(e){return this.percent=this.percent+Math.floor(e),this},decrease:function(e){return this.percent=this.percent-Math.floor(e),this},finish:function(){return this.percent=100,this.hide(),this},pause:function(){return clearInterval(this._timer),this},hide:function(){var e=this;return clearInterval(this._timer),this._timer=null,setTimeout(function(){e.show=!1,o.a.nextTick(function(){setTimeout(function(){e.percent=0},200)})},500),this},fail:function(){return this.canSuccess=!1,this}}}},ys1n:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".grid[data-v-94154cf6]{margin:0;height:100%;background-color:#dadada}#loginForm.column[data-v-94154cf6]{max-width:450px;text-align:center}.column[data-v-94154cf6]{max-width:750px}",""])},zQW4:function(e,t,n){"use strict";for(var i=n("woOf"),o=n.n(i),r=n("//Fk"),a=n.n(r),s=n("BO1k"),c=n.n(s),u=n("mtWM"),l=n.n(u),p={setHeader:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",i=!0,o=!1,r=void 0;try{for(var a,s=c()(Array.isArray(n)?n:[n]);!(i=(a=s.next()).done);i=!0){var u=a.value;if(!t)return void delete this.defaults.headers[u][e];this.defaults.headers[u][e]=t}}catch(e){o=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw r}}},setToken:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",i=e?(t?t+" ":"")+e:null;this.setHeader("Authorization",i,n)},onRequest:function(e){this.interceptors.request.use(function(t){return e(t)||t})},onResponse:function(e){this.interceptors.response.use(function(t){return e(t)||t})},onRequestError:function(e){this.interceptors.request.use(void 0,function(t){return e(t)||a.a.reject(t)})},onResponseError:function(e){this.interceptors.response.use(void 0,function(t){return e(t)||a.a.reject(t)})},onError:function(e){this.onRequestError(e),this.onResponseError(e)}},d=function(e){p["$"+e]=function(){return this[e].apply(this,arguments).then(function(e){return e&&e.data})}},f=["request","delete","get","head","options","post","put","patch"],h=0;h.row{padding-top:0;padding-bottom:0}.post-editor .ui.grid.light>.row{background-color:#f5f5f5;color:#202020}.post-editor .ui.grid.light>.row .ui.header{color:#202020}.post-editor .ui.grid.light>.row a{color:#aa759f}.post-editor .ui.grid.dark>.row,.post-editor .ui.grid.dark>.row .ui.header{background-color:#3f3f3f;color:#dcdccc}.post-editor .ui.grid.dark>.row .ui.header{color:#dcdccc}.post-editor .ui.grid.dark>.row a{color:#dcdcaa}.post-editor .ui.grid{padding-top:0;padding-bottom:0;margin:0}.post-editor .ui.grid .column{padding-top:0;margin-top:0;padding-bottom:0;margin-bottom:0}.vue-codemirror.container{min-height:100%;height:100%}#asciidoc-content,#asciidoc-preview{height:calc(100vh - 47px);min-height:calc(100vh - 47px)}#asciidoc-preview{overflow-y:auto;padding-top:2em;font-size:1.2em;font-family:Menlo,Monaco,Consolas,Courier New,monospace;word-wrap:break-word}#asciidoc-preview>div{max-width:750px!important;margin:auto}#asciidoc-preview>div .ui.header{font-family:Menlo,Monaco,Consolas,Courier New,monospace}#asciidoc-preview .content pre{background-color:#dcdccc;color:#2e2e2e;padding:10px;border-radius:5px;overflow:auto}#asciidoc-preview .paragraph{padding:.75em 0}#asciidoc-preview img{width:100%;max-width:100%}@media screen and (max-width:992px){#asciidoc-content{display:block}#asciidoc-content.is-preview-visible,#asciidoc-preview{display:none}#asciidoc-preview.is-preview-visible{display:block}}.item .ui.icon .rocket.unpublish{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.cm-s-zenburn.CodeMirror .CodeMirror-gutters{background:#3f3f3f!important}.cm-s-zenburn.CodeMirror .CodeMirror-foldgutter-open,.CodeMirror-foldgutter-folded{color:#999}.cm-s-zenburn.CodeMirror .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-zenburn.CodeMirror{background-color:#3f3f3f;color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-builtin{color:#dcdccc;font-weight:700}.cm-s-zenburn.CodeMirror span.cm-comment{color:#7f9f7f}.cm-s-zenburn.CodeMirror span.cm-keyword{color:#f0dfaf;font-weight:700}.cm-s-zenburn.CodeMirror span.cm-atom{color:#bfebbf}.cm-s-zenburn.CodeMirror span.cm-def{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-variable{color:#dfaf8f}.cm-s-zenburn.CodeMirror span.cm-variable-2{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-string,.cm-s-zenburn.CodeMirror span.cm-string-2{color:#cc9393}.cm-s-zenburn.CodeMirror span.cm-number{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-tag{color:#93e0e3}.cm-s-zenburn.CodeMirror span.cm-attribute,.cm-s-zenburn.CodeMirror span.cm-property{color:#dfaf8f}.cm-s-zenburn.CodeMirror span.cm-qualifier{color:#7cb8bb}.cm-s-zenburn.CodeMirror span.cm-meta{color:#f0dfaf}.cm-s-zenburn.CodeMirror span.cm-header,.cm-s-zenburn.CodeMirror span.cm-operator{color:#f0efd0}.cm-s-zenburn.CodeMirror span.CodeMirror-matchingbracket{-webkit-box-sizing:border-box;box-sizing:border-box;background:transparent;border-bottom:1px solid}.cm-s-zenburn.CodeMirror span.CodeMirror-nonmatchingbracket{border-bottom:1px solid;background:none}.cm-s-zenburn.CodeMirror .CodeMirror-activeline,.cm-s-zenburn.CodeMirror .CodeMirror-activeline-background{background:#000}.cm-s-zenburn.CodeMirror div.CodeMirror-selected{background:#545454}.cm-s-zenburn.CodeMirror .CodeMirror-focused div.CodeMirror-selected{background:#4f4f4f}.cm-s-base16-light.CodeMirror{background:#f5f5f5;color:#202020}.cm-s-base16-light.CodeMirror div.CodeMirror-selected{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-line::selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span::selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span>span::selection{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-line::-moz-selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span::-moz-selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span>span::-moz-selection{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-gutters{background:#f5f5f5;border-right:0}.cm-s-base16-light.CodeMirror .CodeMirror-guttermarker{color:#ac4142}.cm-s-base16-light.CodeMirror .CodeMirror-guttermarker-subtle,.cm-s-base16-light.CodeMirror .CodeMirror-linenumber{color:#b0b0b0}.cm-s-base16-light.CodeMirror .CodeMirror-cursor{border-left:1px solid #505050}.cm-s-base16-light.CodeMirror span.cm-comment{color:#8f5536}.cm-s-base16-light.CodeMirror span.cm-atom,.cm-s-base16-light.CodeMirror span.cm-number{color:#aa759f}.cm-s-base16-light.CodeMirror span.cm-attribute,.cm-s-base16-light.CodeMirror span.cm-property{color:#90a959}.cm-s-base16-light.CodeMirror span.cm-keyword{color:#ac4142}.cm-s-base16-light.CodeMirror span.cm-string{color:#f4bf75}.cm-s-base16-light.CodeMirror span.cm-variable{color:#90a959}.cm-s-base16-light.CodeMirror span.cm-variable-2{color:#6a9fb5}.cm-s-base16-light.CodeMirror span.cm-def{color:#d28445}.cm-s-base16-light.CodeMirror span.cm-bracket{color:#202020}.cm-s-base16-light.CodeMirror span.cm-tag{color:#ac4142}.cm-s-base16-light.CodeMirror span.cm-link{color:#aa759f}.cm-s-base16-light.CodeMirror span.cm-error{background:#ac4142;color:#505050}.cm-s-base16-light.CodeMirror .CodeMirror-activeline-background{background:#dddcdc}.cm-s-base16-light.CodeMirror .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}",""])},"8wUg":function(e,t,n){var o=n("8X9G");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("486a8ff9",o,!1,{sourceMap:!1})},"90+m":function(e,t,n){"use strict";t.a={name:"hubpress-settings",computed:{meta:function(){return this.$store.state.application.config.meta||{}},site:function(){return this.$store.state.application.config.site||{}},theme:function(){return this.$store.state.application.config.theme||{}}}}},"91pV":function(e,t,n){var o=n("TaAW");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("35315bba",o,!1,{sourceMap:!1})},APUd:function(e,t,n){"use strict";var o=n("Zrlr"),i=n.n(o),r=n("wxAW"),a=n.n(r),s=n("M4fF"),c=n.n(s),u=n("j+6P"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=function(){function e(){i()(this,e)}return a()(e,[{key:"generate",value:function(e){console.info("PaginationGenerator - generate"),console.log("PaginationGenerator - generate",e);var t=e.posts,n=e.opts.rootState.application.config,o=n.site||{};o.url=n.urls.site;var i=1,r=(e.path||"")+"index.html",a=[],s=[],u=parseInt(o.postsPerPage||10,10),p=(e.opts.nextState.theme.name,e.opts.nextState.version,n.urls.theme,n.urls,n.socialnetwork);if(!t||!t.length){var f=l.a.template(e.template,{pagination:{prev:0,next:0,page:0,pages:0,total:0,limit:u},posts:[],tag:e.tag,author:e.author,socialnetwork:p,title:o.title,relativeUrl:""},{config:n,theme:e.opts.nextState.theme});return s.push({name:"page-"+i,path:r,content:f,message:"Publish page-"+i+" "+e.template}),e.opts.nextState.elementsToPublish=(e.opts.nextState.elementsToPublish||[]).concat(s),e.opts}var h=Math.ceil(t.length/u);return c.a.each(t,function(f,g){var m=0,v=0;i>1&&(r=(e.path||"")+"page/"+i+"/index.html"),i>1&&(v=i-1),ii-1||g+1===t.length){var w=l.a.template(e.template,{pagination:{prev:v,next:m,page:i,pages:h,total:t.length,limit:u},context:"index"===e.template&&0===v?"home":e.template,posts:a,tag:e.tag,author:e.author,title:o.title,description:o.description,socialnetwork:p,relativeUrl:""},{config:n,theme:e.opts.nextState.theme});s.push({name:"page-"+i,path:r,content:w,message:"Publish page-"+i+" "+e.template}),a=[],i++}}),e.opts.nextState.elementsToPublish=(e.opts.nextState.elementsToPublish||[]).concat(s),e.opts}}]),e}();t.a=new f},BONW:function(e,t,n){"use strict";var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"posts-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("div",{staticClass:"ui right aligned category search item"},[n("div",{staticClass:"ui transparent icon input inverted"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.filterValue,expression:"filterValue"}],attrs:{type:"text",placeholder:"Filter by title or tag..."},domProps:{value:e.filterValue},on:{input:function(t){t.target.composing||(e.filterValue=t.target.value)}}}),n("i",{staticClass:"filter link icon"})]),n("div",{staticClass:"results"})]),n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.synchronize()}}},[e._m(0)]),n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.newPost()}}},[e._m(1)])])]),n("div",{staticClass:"ui basic modal"},[n("div",{staticClass:"ui icon header"},[n("i",{staticClass:"trash icon"}),e._v(' Delete the post "'+e._s(e.postToDelete.title)+'"\n ')]),e._m(2),e._m(3)]),n("div",{staticClass:"posts ui container centered"},[n("h2",{staticClass:"ui center aligned icon header"},[n("i",{staticClass:"circular unordered list icon"}),e._v("\n "+e._s(e.posts.length)+" post(s)\n "),e.filterValue.trim().length?n("span",{},[e._v("\n filtered by "),n("span",{staticClass:"ui tiny header orange"},[e._v(e._s(e.filterValue))])]):e._e()]),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"ui cards centered aligned"},e._l(e.posts,function(t){return n("div",{key:t.id,staticClass:"ui card",class:e.getPostStatusColor(t)},[n("div",{staticClass:"content"},[n("div",{staticClass:"header"},[e._v(e._s(t.title))]),n("div",{staticClass:"meta"},[n("span",{staticClass:"right floated time"},[e._v(e._s(e.publishedAt(t)))]),n("span",{staticClass:"status"},[e._v(e._s(e.type(t))+" - "+e._s(e.status(t)))])])]),n("div",{staticClass:"image cover"},[n("div",{style:"background-image: url('"+e.postCoverUrl(t)+"')"})]),n("div",{staticClass:"extra content"},[n("i",{staticClass:"right floated large edit link icon",on:{click:function(n){e.navigateToPost(t)}}}),n("i",{staticClass:"right floated large trash link icon",on:{click:function(n){e.displayConfirmMessage(t)}}}),n("div",{staticClass:"author"},[n("img",{staticClass:"ui avatar image",attrs:{src:e.getPostAuthor(t).avatar_url}}),e._v(" "+e._s(e.getPostAuthor(t).name||e.getPostAuthor(t).login)+"\n ")])]),n("div",{staticClass:"extra content"},[e._l(t.tags,function(t){return n("a",{key:t,staticClass:"ui tiny label"},[n("i",{staticClass:"tag icon"}),e._v(" "+e._s(t)+"\n ")])}),t.tags&&t.tags.length?e._e():n("div",{},[e._v("\n No tag\n ")])],2)])}))])])};o._withStripped=!0;var i={render:o,staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Synchronize content","data-position":"bottom right"}},[t("i",{staticClass:"refresh large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Create a post","data-position":"bottom right"}},[t("i",{staticClass:"add large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"content"},[t("p",[this._v("Are you sure you want to delete this post?")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"actions"},[t("div",{staticClass:"ui red basic cancel inverted button"},[t("i",{staticClass:"remove icon"}),this._v(" No\n ")]),t("div",{staticClass:"ui green ok inverted button"},[t("i",{staticClass:"checkmark icon"}),this._v(" Yes\n ")])])}]};t.a=i},BxgK:function(e,t,n){"use strict";var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._l(e.navigation,function(t,o){return n("div",{key:t.label,staticClass:"fields"},[n("div",{staticClass:"four wide field"},[n("input",{attrs:{type:"text",placeholder:"Label",name:"navigation-label-"+o},domProps:{value:t.label}})]),n("div",{staticClass:"eleven wide field"},[n("input",{attrs:{type:"text",placeholder:"http://www.mysite.com",name:"navigation-url-"+o},domProps:{value:t.url}})]),n("div",{staticClass:"one wide field"},[n("button",{staticClass:"ui icon button",on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.remove(o)}}},[n("i",{staticClass:"trash icon"})])])])}),n("div",{staticClass:"fields"},[n("div",{staticClass:"four wide field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNav.label,expression:"newNav.label"}],attrs:{type:"text",placeholder:"Label"},domProps:{value:e.newNav.label},on:{input:function(t){t.target.composing||e.$set(e.newNav,"label",t.target.value)}}})]),n("div",{staticClass:"eleven wide field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNav.url,expression:"newNav.url"}],attrs:{type:"text",placeholder:"http://www.mysite.com"},domProps:{value:e.newNav.url},on:{input:function(t){t.target.composing||e.$set(e.newNav,"url",t.target.value)}}})]),n("div",{staticClass:"one wide field"},[n("button",{staticClass:"ui icon button",attrs:{disabled:e.isNotValid},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.add(e.newNav)}}},[n("i",{staticClass:"add icon"})])])])],2)};o._withStripped=!0;var i={render:o,staticRenderFns:[]};t.a=i},E1SC:function(e,t,n){"use strict";var o=n("SUis"),i=n("BONW"),r=!1;var a=function(e){r||n("cf2h")},s=n("VU/8")(o.a,i.a,!1,a,null,null);s.options.__file="hubpress-plugins/hubpress-blog/components/Content.vue",t.a=s.exports},F6eF:function(e,t,n){"use strict";var o=n("7t+N"),i=n.n(o);t.a={name:"initialise-configuration",data:function(){return{username:"",repositoryName:"hubpress.io",branch:"master",cname:void 0}},mounted:function(){i()("div.dropdown").dropdown()},computed:{isValid:function(){return""!=this.username.trim()&&""!=this.repositoryName.trim()}},methods:{submit:function(){var e={username:this.username,repositoryName:this.repositoryName,branch:this.branch,cname:this.cname};this.$store.dispatch("application:save-startup-config",e)}}}},F88d:function(e,t,n){"use strict";var o=n("yUYC"),i=n("P+aQ"),r=!1;var a=function(e){r||n("UrhS")},s=n("VU/8")(o.a,i.a,!1,a,null,null);s.options.__file=".nuxt/components/nuxt-loading.vue",t.a=s.exports},FIB3:function(e,t,n){"use strict";t.a={name:"nuxt-error",props:["error"],head:function(){return{title:this.message,meta:[{name:"viewport",content:"width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"}]}},computed:{statusCode:function(){return this.error&&this.error.statusCode||500},message:function(){return this.error.message||"Error"}}}},FoP8:function(module,__webpack_exports__,__webpack_require__){"use strict";function applyScript(hasChanged){if(hasChanged){for(var element=document.getElementById("html-rendering"),scripts=element.getElementsByTagName("script"),addedScripts=[],i=0;i1)return this.nuxtChildKey||Object(s.b)(this.$route.matched[0].path)(this.$route.params);var e=this.$route.matched[0]&&this.$route.matched[0].components.default;return e&&e.options&&e.options.key?"function"==typeof e.options.key?e.options.key(this.$route):e.options.key:this.$route.path}},components:{NuxtChild:r.a,NuxtError:a.a}}},IBrK:function(e,t,n){"use strict";var o=n("F6eF"),i=n("6Xw6"),r=!1;var a=function(e){r||n("91pV")},s=n("VU/8")(o.a,i.a,!1,a,null,null);s.options.__file="hubpress-plugins/hubpress-github/components/InitConfig.vue",t.a=s.exports},Ie2b:function(e,t){},J2Ti:function(e,t,n){"use strict";n.d(t,"a",function(){return y});var o=n("woOf"),i=n.n(o),r=n("BO1k"),a=n.n(r),s=n("I3G/"),c=n.n(s),u=n("NYxO");c.a.use(u.default);var l=n("1H2/"),p=l.keys(),d={},f=void 0;if(p.forEach(function(e){-1!==e.indexOf("./index.")&&(f=e)}),f&&(d=k(f)),"function"!=typeof d){d.modules||(d.modules={});var h=!0,g=!1,m=void 0;try{for(var v,b=a()(p);!(h=(v=b.next()).done);h=!0){var x=v.value,C=x.replace(/^\.\//,"").replace(/\.(js|ts)$/,"");if("index"!==C){var w=C.split(/\//);(e=P(d,w))[C=w.pop()]=k(x),e[C].namespaced=!0}}}catch(e){g=!0,m=e}finally{try{!h&&b.return&&b.return()}finally{if(g)throw m}}}var y=d instanceof Function?d:function(){return new u.default.Store(i()({strict:!1},d,{state:d.state instanceof Function?d.state():{}}))};function k(e){var t=l(e),n=t.default||t;if(n.commit)throw new Error("[nuxt] store/"+e.replace("./","")+" should export a method which returns a Vuex instance.");if(n.state&&"function"!=typeof n.state)throw new Error("[nuxt] state should be a function in store/"+e.replace("./",""));return n}function P(e,t){if(1===t.length)return e.modules;var n=t.shift();return e.modules[n]=e.modules[n]||{},e.modules[n].namespaced=!0,e.modules[n].modules=e.modules[n].modules||{},P(e.modules[n],t)}},JtYm:function(e,t,n){"use strict";var o=n("6Ndi");function i(e){return o.a.fireRequestLocalPosts(e).then(function(e){return o.a.fireReceiveLocalPosts(e)})}t.a={deletePost:function(e){return o.a.fireRequestLocalPost(e).then(function(e){return o.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=t,e}).then(function(e){return e.nextState.post.original?o.a.fireRequestDeleteRemotePost(e).then(function(e){return o.a.fireReceiveDeleteRemotePost(e)}):e}).then(function(e){return o.a.fireRequestDeleteLocalPost(e)}).then(function(e){return o.a.fireReceiveDeleteLocalPost(e)}).then(function(e){return e.nextState.post.published?o.a.fireRequestDeleteRemotePublishedPost(e).then(function(e){return o.a.fireReceiveDeleteRemotePublishedPost(e)}).then(function(e){return o.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return o.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return o.a.fireRequestGenerateIndex(e)}).then(function(e){return o.a.fireReceiveGenerateIndex(e)}).then(function(e){return o.a.fireRequestGenerateTags(e)}).then(function(e){return o.a.fireReceiveGenerateTags(e)}).then(function(e){return o.a.fireRequestGenerateAuthors(e)}).then(function(e){return o.a.fireReceiveGenerateAuthors(e)}).then(function(e){return o.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return o.a.fireReceiveSaveRemotePublishedElements(e)}):e}).then(i)},getLocalPost:function(e){return o.a.fireRequestLocalPost(e).then(function(e){return o.a.fireReceiveLocalPost(e)})},getLocalPosts:i,remoteSavePost:function(e){return e.currentState.elementsToPublish=[],o.a.fireRequestLocalPost(e).then(function(e){return o.a.fireReceiveLocalPost(e)}).then(function(e){return o.a.fireRequestSaveRemotePost(e)}).then(function(e){return o.a.fireReceiveSaveRemotePost(e)}).then(function(e){return o.a.fireRequestSaveLocalPost(e)}).then(function(e){return o.a.fireReceiveSaveLocalPost(e)})},renderAndSavePost:function(e){return o.a.fireRequestLocalPost(e).then(function(e){return o.a.fireReceiveLocalPost(e)}).then(function(e){return e.nextState.post.content=e.payload.post.content,e}).then(function(e){return o.a.fireRequestRenderingPost(e)}).then(function(e){return o.a.fireReceiveRenderingPost(e)}).then(function(e){return e.nextState.post&&e.nextState.post.title?o.a.fireRequestSaveLocalPost(e).then(function(e){return o.a.fireReceiveSaveLocalPost(e)}):e})},publishPost:function(e){return e.currentState.elementsToPublish=[],o.a.fireRequestLocalPost(e).then(function(e){return o.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=_.union(e.nextState.post.tags,t),e}).then(function(e){return o.a.fireRequestSaveRemotePost(e)}).then(function(e){return o.a.fireReceiveSaveRemotePost(e)}).then(function(e){return e.nextState.post.original.author=e.nextState.post.original.author||e.nextState.post.author,e.nextState.post.published=1,e}).then(function(e){return o.a.fireRequestSaveLocalPost(e)}).then(function(e){return o.a.fireReceiveSaveLocalPost(e)}).then(function(e){return o.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return o.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return o.a.fireRequestGeneratePost(e)}).then(function(e){return o.a.fireReceiveGeneratePost(e)}).then(function(e){return"post"!==e.nextState.post.type?e:o.a.fireRequestGenerateIndex(e).then(function(e){return o.a.fireReceiveGenerateIndex(e)}).then(function(e){return o.a.fireRequestGenerateTags(e)}).then(function(e){return o.a.fireReceiveGenerateTags(e)}).then(function(e){return o.a.fireRequestGenerateAuthors(e)}).then(function(e){return o.a.fireReceiveGenerateAuthors(e)})}).then(function(e){return o.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return o.a.fireReceiveSaveRemotePublishedElements(e)})},unpublishPost:function(e){return e.currentState.elementsToPublish=[],o.a.fireRequestLocalPost(e).then(function(e){return o.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=t,e}).then(function(e){return o.a.fireRequestDeleteRemotePublishedPost(e)}).then(function(e){return o.a.fireReceiveDeleteRemotePublishedPost(e)}).then(function(e){return e.nextState.post.published=0,e}).then(function(e){return o.a.fireRequestSaveLocalPost(e)}).then(function(e){return o.a.fireReceiveSaveLocalPost(e)}).then(function(e){return o.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return o.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return"post"!==e.nextState.post.type?e:o.a.fireRequestGenerateIndex(e).then(function(e){return o.a.fireReceiveGenerateIndex(e)}).then(function(e){return o.a.fireRequestGenerateTags(e)}).then(function(e){return o.a.fireReceiveGenerateTags(e)}).then(function(e){return o.a.fireRequestGenerateAuthors(e)}).then(function(e){return o.a.fireReceiveGenerateAuthors(e)})}).then(function(e){return o.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return o.a.fireReceiveSaveRemotePublishedElements(e)})}}},KMrN:function(e,t,n){"use strict";var o=n("LEOq"),i=n.n(o);t.a={authenticate:function(e){return function(e){return i.a.fire("requestAuthentication",e)}(e).then(function(e){return(t=e).nextState.twoFactorRequired?payload:i.a.fire("receiveAuthentication",t);var t})},initialize:function(e){return function(e){return i.a.fire("requestSavedAuth",e)}(e).then(function(e){return t=e,i.a.fire("receiveSavedAuth",t);var t})}}},KOTd:function(e,t,n){"use strict";t.a=function(e){console.info("AuthorGenerator - generate"),console.log("AuthorGenerator - generate",e);var t=void 0;if(!s.a.isTemplateAvailable("author"))return e;t=e.nextState.author?e.nextState.publishedPosts.filter(function(t){return t.author.login===e.nextState.author.login}):e.nextState.publishedPosts;var n=r.a.reduce(t,function(e,t){return e[t.author.login]=e[t.author.login]||[],e[t.author.login].push(t),e},{}),i=e;return r.a.each(n,function(e,t){var n=e[0].author;n.name=n.name||n.login,n.slug=t,n.website=n.blog,n.status="",i=o.a.generate({opts:i,posts:e,author:n,template:"author",path:"author/"+t+"/"})}),i};var o=n("APUd"),i=n("M4fF"),r=n.n(i),a=n("j+6P"),s=n.n(a),c=n("n+xr");n.n(c)},KgKs:function(e,t,n){"use strict";t.a=function(e,t){console.info("PostGenerator - generate"),console.log("PostGenerator - generate",e);var n=t,o=i()({},n.original);o.tags=a.a.map(o.tags,function(e){return{name:e,slug:l()(e)}});var r=o.author;o.author={id:r.id,name:r.name||r.login,location:r.location,website:r.blog,image:r.avatar_url,profile_image:r.avatar_url,bio:r.bio,status:"",slug:r.login};var s=e.rootState.application.config,u=s.urls;e.nextState.theme.name,e.nextState.theme.version,s.urls.theme;o.urls=u,o.status="published",o.feature_image=o.image;var p=c.a.template(n.type||"post",{context:n.type||"post",socialnetwork:s.socialnetwork,relativeUrl:n.url,post:o,author:o.author},{config:s,theme:e.nextState.theme}),d=[];return d.push({title:n.title,image:n.image,name:n.name,path:s.urls.getContentGhPath(n.name,n.type),url:s.urls.getContentGhPath(n.name,n.type),content:p,message:"Publish "+n.name,published_at:n.published_at}),e.nextState.elementsToPublish=(e.nextState.elementsToPublish||[]).concat(d),e};var o=n("woOf"),i=n.n(o),r=n("M4fF"),a=n.n(r),s=n("j+6P"),c=n.n(s),u=n("n+xr"),l=n.n(u)},LB67:function(e,t,n){"use strict";var o=n("6Ndi");t.a={authenticate:function(e){return o.a.fireRequestAuthentication(e).then(function(e){return o.a.fireReceiveAuthentication(e)})}}},Lln1:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".posts-container .menu{min-height:47px}.posts-container{height:100%;overflow:auto}.posts.ui.container{padding-top:60px}.image.cover>div{width:100%;height:200px;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}@media screen and (max-width:622px){.posts.ui.container .ui.card .image.cover{display:none}}",""])},NpFX:function(e,t,n){"use strict";var o=n("FoP8"),i=n("+pbI"),r=!1;var a=function(e){r||n("OIbj")},s=n("VU/8")(o.a,i.a,!1,a,null,null);s.options.__file="hubpress-plugins/hubpress-blog/components/Preview.vue",t.a=s.exports},OIbj:function(e,t,n){var o=n("dW4l");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("06ede034",o,!1,{sourceMap:!1})},Ors5:function(e,t,n){var o=n("RTbE");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("37d70742",o,!1,{sourceMap:!1})},"P+aQ":function(e,t,n){"use strict";var o=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"nuxt-progress",style:{width:this.percent+"%",height:this.height,"background-color":this.canSuccess?this.color:this.failedColor,opacity:this.show?1:0}})};o._withStripped=!0;var i={render:o,staticRenderFns:[]};t.a=i},Pm0L:function(e,t,n){"use strict";n.d(t,"e",function(){return o}),n.d(t,"f",function(){return i}),n.d(t,"g",function(){return r}),n.d(t,"h",function(){return a}),n.d(t,"d",function(){return s}),n.d(t,"c",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"a",function(){return l});var o="login:submit",i="login:updateEmail",r="login:updatePassword",a="login:updateTwoFactorCode",s="authorisation:request-login",c="authorisation:receive-login",u="authorisation:failure-login",l="authorisation:authentication-done"},Pt3g:function(e,t,n){"use strict";var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"post-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.showAsciidocHelp()}}},[e._m(0)]),n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchLight()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.lightLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{sun:e.isDark,moon:!e.isDark}})])]),n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreview()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.previewLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{unhide:!e.isPreviewVisible,hide:e.isPreviewVisible}})])]),e.isRemoteActionVisible?n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.remoteSave()}}},[e._m(1)]):e._e(),e.isRemoteActionVisible?n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.publish()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.publishLabel,"data-position":"bottom right"}},[n("i",{staticClass:"icons"},[n("i",{staticClass:"cloud large icon",class:{download:e.isPostPublished,upload:!e.isPostPublished}})])])]):e._e()])]),e._m(2),n("div",{staticClass:"post-editor"},[n("div",{staticClass:"ui grid",class:{dark:e.isDark,light:!e.isDark}},[n("div",{staticClass:"row"},[n("div",{staticClass:"column",class:{"sixteen wide mobile height wide computer is-preview-visible":e.isPreviewVisible,"sixteen wide":!e.isPreviewVisible},attrs:{id:"asciidoc-content"}},[n("codemirror",{ref:"codeEditor",staticClass:"container",attrs:{code:e.content,options:e.editorOption},on:{input:e.contentChange}})],1),e.isPreviewVisible?n("div",{staticClass:"column",class:{"sixteen wide mobile height wide computer is-preview-visible":e.isPreviewVisible},attrs:{id:"asciidoc-preview"}},[n("preview",{attrs:{post:e.post}})],1):e._e()])])])])};o._withStripped=!0;var i={render:o,staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Need some help?","data-position":"bottom right"}},[t("i",{staticClass:"help large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Save your post remotely","data-position":"bottom right"}},[t("i",{staticClass:"save large icon"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui modal",attrs:{id:"asciidoc-help"}},[n("i",{staticClass:"close icon"}),n("div",{staticClass:"header"},[e._v("\n Asciidoc syntax help\n ")]),n("div",{staticClass:"content"},[n("table",{staticClass:"ui table"},[n("thead",[n("tr",[n("th",{staticClass:"heigth wide"},[e._v("Result")]),n("th",{staticClass:"heigth wide"},[e._v("Asciidoc")])])]),n("tbody",[n("tr",[n("td",[e._v("H1")]),n("td",[e._v("= Title")])]),n("tr",[n("td",[e._v("H2")]),n("td",[e._v("== Title")])]),n("tr",[n("td",[e._v("H3")]),n("td",[e._v("=== Title")])]),n("tr",[n("td",[n("strong",[e._v("Bold")])]),n("td",[e._v("*content*")])]),n("tr",[n("td",[n("i",[e._v("Emphasize")])]),n("td",[e._v("_content_")])]),n("tr",[n("td",[n("a",{attrs:{href:"#"}},[e._v("Link")])]),n("td",[e._v("http://asciidoctor.org[Asciidoctor]")])]),n("tr",[n("td",[e._v("Image Block")]),n("td",[e._v("image::sunset.jpg[]")])]),n("tr",[n("td",[e._v("Image Inline")]),n("td",[e._v('Click image:icons/pause.png[title="Pause"] when you need a break.')])]),n("tr",[n("td",[e._v("Video")]),n("td",[e._v("video::video_file.mp4[]")])]),n("tr",[n("td",[e._v("Unordered list")]),n("td",[e._v("* item")])]),n("tr",[n("td",[e._v("Ordered list")]),n("td",[e._v(". item")])]),n("tr",[n("td",[n("code",[e._v("Inline code")])]),n("td",[e._v("`code`")])])])]),n("p",[e._v("\n More informations about the Asciidoc syntax here: "),n("a",{attrs:{href:"http://asciidoctor.org/docs/asciidoc-syntax-quick-reference/",target:"_blank"}},[e._v("AsciiDoc Syntax Quick Reference")])])])])}]};t.a=i},Q7NK:function(e,t,n){"use strict";(function(e,t){var o,i=n("pFYg"),r=n.n(i);o=function(e){e.defineMode("asciidoc",function(e,t){var n=1e3,o=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],o=[],i=0,r=this.matchMappings[t]={defaultToken:"text"},a="g",s=[],c=0;c1?this.$applyToken:u.token);p>1&&(/\\\d/.test(u.regex)?l=u.regex.replace(/\\([0-9]+)/g,function(e,t){return"\\"+(parseInt(t,10)+i+1)}):(p=1,l=this.removeCapturingGroups(u.regex)),u.splitRegex||"string"==typeof u.token||s.push(u)),r[i]=c,i+=p,o.push(l),u.onMatch||(u.onMatch=null)}}s.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)},this),this.regExps[t]=new RegExp("("+o.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(e){n=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var o=[],i=0,r=n.length;il){var m=e.substring(l,g-h.length);p.type==d?p.value+=m:(p.type&&u.push(p),p={type:d,value:m})}for(var v=0;vn){for(;l1&&o[0]!==i&&o.unshift(i),{tokens:u,state:o.length?o:i}}}).call(o.prototype);var i={empty:null,text:null,keyword:"keyword",control:"keyword",operator:"operator",constant:"atom",numeric:"number",character:"atom",escape:"atom",variable:"variable",parameter:"variable-3",language:"variable-2",comment:"comment",line:"comment","double-slash":"comment","double-dash":"comment","number-sign":"comment",percentage:"comment",block:"comment",doc:"comment",string:"string",quoted:"string",single:"string",double:"string",triple:"string",unquoted:"string",interpolated:"string",regexp:"string-2",meta:"keyword",literal:"qualifier",support:"builtin",markup:"tag",underline:"link",link:"link",strong:"strong",heading:"header",heading2:"header-2",heading3:"header-3",heading4:"header-4",heading5:"header-5",heading6:"header-6",em:"em",list:"variable-2",numbered:"variable-2",unnumbered:"variable-2",quote:"quote",raw:"variable-2",invalid:"error",illegal:"invalidchar",deprecated:"error"},r=function(e,t){var n=t.plannedTokens.shift();return void 0===n?null:(e.match(n.value),function(e){for(var t=null,n=0;n0)return r(e,t);var n=t.current,o=e.match(/.*$/,!1)[0],i=s.getLineTokens(o,n);return t.plannedTokens=i.tokens,t.current=i.state,r(e,t)},s=new o((new function(){function e(e){return(/\w/.test(e)?"\\b":"(?:\\B|^)")+e+"[^"+e+"].*?"+e+"(?![\\w*])"}this.$rules={start:[{token:"empty",regex:/$/},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"literal",regex:/^-{4,}\s*$/,next:"literalBlock"},{token:"literal",regex:/^\+{4,}\s*$/,next:"passthroughBlock"},{token:"keyword",regex:/^={4,}\s*$/},{token:"text",regex:/^\s*$/},{token:"empty",regex:"",next:"dissallowDelimitedBlock"}],dissallowDelimitedBlock:[{include:"paragraphEnd"},{token:"comment",regex:"^//.+$"},{token:"keyword",regex:"^(?:NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s"},{include:"listStart"},{token:"literal",regex:/^\s+.+$/,next:"indentedBlock"},{token:"empty",regex:"",next:"text"}],paragraphEnd:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"commentBlock"},{token:"tableBlock",regex:/^\s*[|!]=+\s*$/,next:"tableBlock"},{token:"keyword",regex:/^(?:--|''')\s*$/,next:"start"},{token:"option",regex:/^\[.*\]\s*$/,next:"start"},{token:"pageBreak",regex:/^>{3,}$/,next:"start"},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"titleUnderline",regex:/^(?:={2,}|-{2,}|~{2,}|\^{2,}|\+{2,})\s*$/,next:"start"},{token:"singleLineTitle",regex:/^={1}\s+\S.*$/,next:"start"},{token:"singleLineTitle2",regex:/^={2}\s+\S.*$/,next:"start"},{token:"singleLineTitle3",regex:/^={3}\s+\S.*$/,next:"start"},{token:"singleLineTitle4",regex:/^={4}\s+\S.*$/,next:"start"},{token:"singleLineTitle5",regex:/^={5}\s+\S.*$/,next:"start"},{token:"singleLineTitle6",regex:/^={6}\s+\S.*$/,next:"start"},{token:"otherBlock",regex:/^(?:\*{2,}|_{2,})\s*$/,next:"start"},{token:"optionalTitle",regex:/^\.[^.\s].+$/,next:"start"}],listStart:[{token:"keyword",regex:/^\s*(?:\d+\.|[a-zA-Z]\.|[ixvmIXVM]+\)|\*{1,5}|-|\.{1,5})\s/,next:"listText"},{token:"meta.tag",regex:/^.+(?::{2,4}|;;)(?: |$)/,next:"listText"},{token:"keyword",regex:/^\+\s*$/,next:"start"}],text:[{token:["link","link"],regex:/((?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+)(\[.*?\])/},{token:["link","link"],regex:/(?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+/},{token:"link",regex:/\b[\w\.\/\-]+@[\w\.\/\-]+\b/},{include:"macros"},{include:"paragraphEnd"},{token:"literal",regex:/\+{3,}/,next:"smallPassthrough"},{token:"escape",regex:/\((?:C|TM|R)\)|\.{3}|->|<-|=>|<=|&#(?:\d+|x[a-fA-F\d]+);|(?: |^)--(?=\s+\S)/},{token:"escape",regex:/\\[_*'`+#]|\\{2}[_*'`+#]{2}/},{token:"keyword",regex:/\s\+$/},{token:"text",regex:"[a-zA-Z¡-￿]+\\b"},{token:["keyword","string","keyword"],regex:/(<<[\w\d\-$]+,)(.*?)(>>|$)/},{token:"keyword",regex:/<<[\w\d\-$]+,?|>>/},{token:"constant.character",regex:/\({2,3}.*?\){2,3}/},{token:"support.function.list.callout",regex:/^(?:<\d+>|\d+>|>) /,next:"text"},{token:"keyword",regex:/\[\[.+?\]\]/},{token:"support",regex:/^\[{3}[\w\d =\-]+\]{3}/},{include:"quotes"},{token:"empty",regex:/^\s*$/,next:"start"}],listText:[{include:"listStart"},{include:"text"}],indentedBlock:[{token:"literal",regex:/^[\s\w].+$/,next:"indentedBlock"},{token:"literal",regex:"",next:"start"}],listingBlock:[{token:"literal",regex:/^\.{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],literalBlock:[{token:"literal",regex:/^-{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],passthroughBlock:[{token:"literal",regex:/^\+{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:"[a-zA-Z¡-￿]+\\b|\\d+"},{include:"macros"},{token:"literal",regex:"."}],smallPassthrough:[{token:"literal",regex:/[+]{3,}/,next:"dissallowDelimitedBlock"},{token:"literal",regex:/^\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:"[a-zA-Z¡-￿]+\\b|\\d+"},{include:"macros"}],commentBlock:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"doc.comment",regex:"^.*$"}],tableBlock:[{token:"tableBlock",regex:/^\s*\|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"innerTableBlock"},{token:"tableBlock",regex:/\|/},{include:"text",noEscape:!0}],innerTableBlock:[{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"tableBlock"},{token:"tableBlock",regex:/^\s*|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/\!/}],macros:[{token:"macro",regex:/{[\w\-$]+}/},{token:["text","string","text","constant.character","text"],regex:/({)([\w\-$]+)(:)?(.+)?(})/},{token:["text","markup.list.macro","keyword","string"],regex:/(\w+)(footnote(?:ref)?::?)([^\s\[]+)?(\[.*?\])?/},{token:["markup.list.macro","keyword","string"],regex:/([a-zA-Z\-][\w\.\/\-]*::?)([^\s\[]+)(\[.*?\])?/},{token:["markup.list.macro","keyword"],regex:/([a-zA-Z\-][\w\.\/\-]+::?)(\[.*?\])/},{token:"keyword",regex:/^:.+?:(?= |$)/}],quotes:[{token:"string.italic",regex:/__[^_\s].*?__/},{token:"string.italic",regex:e("_")},{token:"keyword.bold",regex:/\*\*[^*\s].*?\*\*/},{token:"keyword.bold",regex:e("\\*")},{token:"literal",regex:/\+\+[^+\s].*?\+\+/},{token:"literal",regex:e("\\+")},{token:"literal",regex:/\$\$.+?\$\$/},{token:"literal",regex:e("\\$")},{token:"literal",regex:/``[^`\s].*?``/},{token:"literal",regex:e("`")},{token:"keyword",regex:/\^[^\^].*?\^/},{token:"keyword",regex:e("\\^")},{token:"keyword",regex:/~[^~].*?~/},{token:"keyword",regex:e("~")},{token:"keyword",regex:/##?/},{token:"keyword",regex:/(?:\B|^)``|\b''/}]};var t={macro:"constant.character",tableBlock:"doc.comment",titleUnderline:"markup.heading",singleLineTitle:"markup.heading",singleLineTitle2:"markup.heading2",singleLineTitle3:"markup.heading3",singleLineTitle4:"markup.heading4",singleLineTitle5:"markup.heading5",singleLineTitle6:"markup.heading6",pageBreak:"string",option:"string.regexp",otherBlock:"markup.list",literal:"support.function",optionalTitle:"constant.numeric",escape:"constant.language.escape",link:"markup.underline.list"};for(var n in this.$rules)for(var o=this.$rules[n],i=o.length;i--;){var r=o[i];if(r.include||"string"==typeof r){var a=[i,1].concat(this.$rules[r.include||r]);r.noEscape&&(a=a.filter(function(e){return!e.next})),o.splice.apply(o,a)}else r.token in t&&(r.token=t[r.token])}}).$rules);return{startState:function(){return{current:"start",plannedTokens:[]}},blankLine:function(e){a("",e)},token:a}}),e.defineMIME("text/x-asciidoc","asciidoc")},"object"==("undefined"==typeof exports?"undefined":r()(exports))&&"object"==r()(e)?o(n("8U58")):"object"==("undefined"==typeof brackets?"undefined":r()(brackets))&&brackets.getModule?o(brackets.getModule("thirdparty/CodeMirror2/lib/codemirror")):"function"==typeof define&&n("nErl")?define(["codemirror"],o):o(t)}).call(t,n("f1Eh")(e),n("8U58"))},QMmS:function(e,t,n){"use strict";t.b=function(e){return e.on("application:stores",function(e){var t;console.info("authenticationPlugin - application:stores"),console.log("authenticationPlugin - application:stores",e);var n={state:{isAuthenticated:!1,isTwoFactorCodeRequired:!1,credentials:{email:void 0,password:void 0,twoFactorCode:void 0}},mutations:(t={},i()(t,u.f,function(e,t){e.credentials.email=t}),i()(t,u.g,function(e,t){e.credentials.password=t}),i()(t,u.h,function(e,t){e.credentials.twoFactorCode=t}),i()(t,u.d,function(e){e.isLoading=!0}),i()(t,u.c,function(e,t){a.a.merge(e,t)}),i()(t,u.b,function(e,t){e.isAuthenticated=!1}),i()(t,l,function(e,t){a.a.merge(e,t.authentication)}),t),actions:i()({},u.e,function(e,t){var n=e.dispatch,o=e.commit,i=e.rootState,r=e.state;o(u.d);var c={rootState:a.a.cloneDeep(i),currentState:a.a.cloneDeep(r)};n("application:loading").then(function(e){return s.a.authenticate(c)}).then(function(e){o(u.c,e.nextState)}).then(function(e){return r.isAuthenticated?n(p,!0).then(function(e){return n(u.a)}):r.isTwoFactorCodeRequired?n("application:notify",{icon:"unlock",header:"Two factor code",message:"A code is required to complete your authentication.",level:"warning"}):n("application:notify",{icon:"warning circle",header:"Authentication failed",message:"A error occured during the authentication.",level:"error"})}).then(function(e){return n("application:loaded")}).then(function(e){return t.push(t.currentRoute.query.redirect||"/")}).catch(function(e){n("application:loaded").then(function(e){return n("application:notify",{icon:"warning circle",header:"Authentication failed",message:"A error occured during the authentication.",level:"error"})})})}),getters:{}};return e.nextState.stores.authentication=n,console.log("authenticationPlugin - application:stores - return",e),e}),e.on("application:routes",function(e){return e}),e.on("application:initialize-app",function(e){return console.info("authenticationPlugin - application:initialize-app"),console.log("authenticationPlugin - application:initialize-app",e),s.a.initialize(e).then(function(e){return e})}),e.on("authentication:authenticate",function(e){return console.info("authenticationPlugin - authentication:authenticate"),console.log("authenticationPlugin - authentication:authenticate",e,s.a),s.a.authenticate(e)}),{getName:function(){return"authenticationPlugin"}}},n.d(t,"a",function(){return d});var o=n("bOdI"),i=n.n(o),r=n("M4fF"),a=n.n(r),s=n("KMrN"),c=n("RUoO"),u=n("Pm0L"),l="application:initialize-app",p="application:save-config";var d=c.a},QZ5d:function(e,t,n){"use strict";var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{},[n("h4",{staticClass:"ui dividing header"},[e._v("Informations")]),n("div",{staticClass:"field"},[n("label",[e._v("Title")]),n("input",{attrs:{type:"text",name:"hubpress-title",placeholder:"Title"},domProps:{value:e.site.title}})]),n("div",{staticClass:"field"},[n("label",[e._v("Description")]),n("input",{attrs:{type:"text",name:"hubpress-description",placeholder:"Description"},domProps:{value:e.site.description}})]),n("div",{staticClass:"field"},[n("label",[e._v("Logo")]),n("input",{attrs:{type:"text",name:"hubpress-logo",placeholder:"Logo"},domProps:{value:e.site.logo}})]),n("div",{staticClass:"field"},[n("label",[e._v("Cover image")]),n("input",{attrs:{type:"text",name:"hubpress-cover-image",placeholder:"Cover image"},domProps:{value:e.site.cover}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Rendering")]),n("div",{staticClass:"field"},[n("label",[e._v("Live preview render delay (ms)")]),n("input",{attrs:{type:"text",name:"hubpress-render-delay",placeholder:"300"},domProps:{value:e.meta.delay}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Generation")]),n("div",{staticClass:"field"},[n("label",[e._v("Theme")]),n("input",{attrs:{type:"text",name:"hubpress-theme",placeholder:"Theme"},domProps:{value:e.theme.name}})]),n("div",{staticClass:"field"},[n("label",[e._v("Posts per page")]),n("input",{attrs:{type:"text",name:"hubpress-posts-per-page",placeholder:"Posts per page"},domProps:{value:e.site.postsPerPage}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Services")]),n("div",{staticClass:"field"},[n("label",[e._v("Google analytics")]),n("input",{attrs:{type:"text",name:"hubpress-ga",placeholder:"Google analytics"},domProps:{value:e.site.googleAnalytics}})]),n("div",{staticClass:"field"},[n("label",[e._v("Disqus shortname")]),n("input",{attrs:{type:"text",name:"hubpress-disqus",placeholder:"Disqus shortname"},domProps:{value:e.site.disqus}})])])};o._withStripped=!0;var i={render:o,staticRenderFns:[]};t.a=i},QhKw:function(e,t,n){"use strict";var o=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"__nuxt-error-page"},[t("div",{staticClass:"error"},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"90",height:"90",fill:"#DBE1EC",viewBox:"0 0 48 48"}},[t("path",{attrs:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}})]),t("div",{staticClass:"title"},[this._v(this._s(this.message))]),404===this.statusCode?t("p",{staticClass:"description"},[t("nuxt-link",{staticClass:"error-link",attrs:{to:"/"}},[this._v("Back to the home page")])],1):this._e(),this._m(0)])])};o._withStripped=!0;var i={render:o,staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"logo"},[t("a",{attrs:{href:"https://nuxtjs.org",target:"_blank",rel:"noopener"}},[this._v("Nuxt.js")])])}]};t.a=i},RTbE:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".grid[data-v-80ce67f2]{margin:0;height:100%;background-color:#dadada}#loginForm.column[data-v-80ce67f2]{max-width:450px;text-align:center}.column[data-v-80ce67f2]{max-width:750px}",""])},RUoO:function(e,t,n){"use strict";var o=n("6yLl"),i=n("zW3+"),r=!1;var a=function(e){r||n("Ors5")},s=n("VU/8")(o.a,i.a,!1,a,"data-v-80ce67f2",null);s.options.__file="hubpress-plugins/authentication/components/Login.vue",t.a=s.exports},RZSc:function(e,t,n){var o=n("plFO");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("85488c5c",o,!1,{sourceMap:!1})},RsIG:function(e,t,n){"use strict";var o=n("woOf"),i=n.n(o),r=n("LEOq"),a=n.n(r);function s(e){return a.a.fire("application:receive-config",e)}t.a={initializeRoutes:function(e){return a.a.fire("application:routes",e)},initializeApp:function(e,t){return a.a.fire("application:initialize-app",e,t)},initializePlugins:function(e,t){return a.a.fire("application:initialize-plugins",e,t)},initializeConfig:function(e){return console.log("application - initializeConfig",e),function(e){return a.a.fire("application:request-config",e)}(e).then(s)},startUpConfig:function(e){return console.log("application - startUpConfig",e),s(e)},prepareConfig:function(e){return a.a.fire("application:prepare-config",e)},saveConfig:function(e){return function(e){return console.log("application - fireRequestSaveConfig",e),a.a.fire("application:request-save-config",e)}(e).then(function(t){return i()({},e,{nextState:t.nextState.application})}).then(s).then(function(t){return e.nextState.application=t.nextState,i()({},e)}).catch(function(e){console.log(e)})},saveConfigDone:function(e){return a.a.fire("application:save-config-done",e)}}},RzKW:function(e,t,n){var o=n("utw5");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("9105b0d8",o,!1,{sourceMap:!1})},SUis:function(e,t,n){"use strict";(function(e){var o=n("PJh5"),i=n.n(o),r=n("RJtx"),a=n.n(r),s=n("lYDI");t.a={name:"posts",data:function(){return{postToDelete:{},filterValue:""}},beforeCreate:function(){},beforeMount:function(){this.$store.dispatch(s.a)},beforeDestroy:function(){e(".ui.basic.modal").remove()},mounted:function(){var t=this;e(".ui.basic.modal").modal({closable:!1,onDeny:function(){},onApprove:function(){t.$store.dispatch(s.d,t.postToDelete._id)}})},methods:{status:function(e){return!e.published?"Draft":"Published"},type:function(e){return e.type.replace(/\b\w/g,function(e){return e.toUpperCase()})},publishedAt:function(e){return!!e.published&&e.published_at&&i()(e.published_at).fromNow()||""},postCoverUrl:function(e){var t=e.image||"https://hubpress.github.io/img/logo.png";return t=t.startsWith("http")?t:e.attributes.$$smap.imagesdir+"/"+e.image},getPostStatusColor:function(e){return e.original?e.original.content!==e.content?"orange":"green":"red"},displayConfirmMessage:function(t){this.postToDelete=t,e(".ui.basic.modal").modal("show")},navigateToPost:function(e){this.$router.push({name:"post",params:{id:e._id}})},newPost:function(){this.$router.push({name:"post",params:{id:a.a.v4()}})},getPostTags:function(e){return e.tags||[]},getPostAuthor:function(e){return e.author||this.$store.state.authentication.userInformations},synchronize:function(){this.$store.dispatch(s.b)}},computed:{posts:function(){var e=this.filterValue.trim();return""===e?this.$store.state.hubpress.posts:this.$store.state.hubpress.posts.filter(function(t){return t.title.toLowerCase().indexOf(e.toLowerCase())>=0||t.tags&&t.tags.filter(function(t){return t.toLowerCase().indexOf(e.toLowerCase())>=0}).length})}}}}).call(t,n("7t+N"))},T23V:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,r,a=n("pFYg"),s=n.n(a),c=n("mvHQ"),u=n.n(c),l=n("fZjL"),p=n.n(l),d=n("woOf"),f=n.n(d),h=n("Zzip"),g=n.n(h),m=n("5QVw"),v=n.n(m),b=n("//Fk"),x=n.n(b),C=n("I3G/"),w=n.n(C),y=n("unZF"),k=n("qcny"),P=n("YLfZ"),_=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=x.a))(function(i,r){function a(e){try{c(o.next(e))}catch(e){r(e)}}function s(e){try{c(o.throw(e))}catch(e){r(e)}}function c(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,s)}c((o=o.apply(e,t||[])).next())})},S=this&&this.__generator||function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof v.a&&(r[g.a]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=o[2&r[0]?"return":r[0]?"throw":"next"])&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[0,i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],e.matched.map(function(e,n){return h()(e.instances).map(function(o){return t&&t.push(n),e.instances[o]})}))},t.c=y,t.k=k,n.d(t,"h",function(){return S}),n.d(t,"m",function(){return R}),t.i=function e(t,n){if(!t.length||n._redirected||n._errored)return d.a.resolve();return q(t[0],n).then(function(){return e(t.slice(1),n)})},t.j=q,t.d=function(e,t){var n=window.location.pathname;if("hash"===t)return window.location.hash.replace(/^#\//,"");e&&0===n.indexOf(e)&&(n=n.slice(e.length));return(n||"/")+window.location.search+window.location.hash},t.b=function(e,t){return function(e){for(var t=new Array(e.length),n=0;n1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],e.matched.map(function(e,n){return h()(e.components).map(function(o){return t&&t.push(n),e.components[o]})}))}function y(e,t){return Array.prototype.concat.apply([],e.matched.map(function(e,n){return h()(e.components).map(function(o){return t(e.components[o],e.instances[o],e,o,n)})}))}function k(e){var t,n=this;return d.a.all(y(e,(t=l()(c.a.mark(function e(t,o,i,r){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof t||t.options){e.next=4;break}return e.next=3,t();case 3:t=e.sent;case 4:return e.abrupt("return",i.components[r]=C(t));case 5:case"end":return e.stop()}},e,n)})),function(e,n,o,i){return t.apply(this,arguments)})))}window._nuxtReadyCbs=[],window.onNuxtReady=function(e){window._nuxtReadyCbs.push(e)};var P,_,S=(P=l()(c.a.mark(function e(t){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k(t);case 2:return e.abrupt("return",m()({},t,{meta:w(t).map(function(e){return e.options.meta||{}})}));case 3:case"end":return e.stop()}},e,this)})),function(e){return P.apply(this,arguments)}),R=(_=l()(c.a.mark(function e(t,n){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n.to?n.to:n.route,t.context){e.next=14;break}e.t0=!0,e.t1=t,e.t2=t.store,e.t3=n.payload,e.t4=n.error,e.t5={hubpressVersion:"1.0.0",baseUrl:"http://localhost:3000"},t.context={get isServer(){return console.warn("context.isServer has been deprecated, please use process.server instead."),!1},get isClient(){return console.warn("context.isClient has been deprecated, please use process.client instead."),!0},isStatic:e.t0,isDev:!1,isHMR:!1,app:e.t1,store:e.t2,payload:e.t3,error:e.t4,base:"/",env:e.t5},n.req&&(t.context.req=n.req),n.res&&(t.context.res=n.res),t.context.redirect=function(e,n,o){if(e){t.context._redirected=!0;var i=void 0===n?"undefined":a()(n);if("number"==typeof e||"undefined"!==i&&"object"!==i||(o=n||{},i=void 0===(n=e)?"undefined":a()(n),e=302),"object"===i&&(n=t.router.resolve(n).href),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(n))throw n=T(n,o),window.location.replace(n),new Error("ERR_REDIRECT");t.context.next({path:n,query:o,status:e})}},t.context.nuxtState=window.__NUXT__;case 14:if(t.context.next=n.next,t.context._redirected=!1,t.context._errored=!1,t.context.isHMR=!!n.isHMR,!n.route){e.next=22;break}return e.next=21,S(n.route);case 21:t.context.route=e.sent;case 22:if(t.context.params=t.context.route.params||{},t.context.query=t.context.route.query||{},!n.from){e.next=28;break}return e.next=27,S(n.from);case 27:t.context.from=e.sent;case 28:case"end":return e.stop()}},e,this)})),function(e,t){return _.apply(this,arguments)});function q(e,t){var n=void 0;return(n=2===e.length?new d.a(function(n){e(t,function(e,o){e&&t.error(e),n(o=o||{})})}):e(t))&&(n instanceof d.a||"function"==typeof n.then)||(n=d.a.resolve(n)),n}var M=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function $(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function D(e){return e.replace(/([.+*?=^!:()[\]|\/\\])/g,"\\$1")}function j(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function T(e,t){var n=void 0,o=e.indexOf("://");-1!==o?(n=e.substring(0,o),e=e.substring(o+3)):0===e.indexOf("//")&&(e=e.substring(2));var r=e.split("/"),a=(n?n+"://":"//")+r.shift(),s=r.filter(Boolean).join("/"),c=void 0;return 2===(r=s.split("#")).length&&(s=r[0],c=r[1]),a+=s?"/"+s:"",t&&"{}"!==i()(t)&&(a+=(2===e.split("?").length?"&":"?")+function(e){return h()(e).sort().map(function(t){var n=e[t];return null==n?"":Array.isArray(n)?n.slice().map(function(e){return[t,"=",e].join("")}).join("&"):t+"="+n}).filter(Boolean).join("&")}(t)),a+=c?"#"+c:""}},YMuy:function(e,t,n){"use strict";var o=n("6Ndi"),i=n("PJh5"),r=n.n(i);function a(e){return o.a.fireRequestRemoteSynchronization(e).then(function(e){return o.a.fireReceiveRemoteSynchronization(e)}).then(function(e){return o.a.fireRequestRenderingDocuments(e)}).then(function(e){return o.a.fireReceiveRenderingDocuments(e)}).then(function(e){return o.a.fireRequestLocalSynchronization(e)}).then(function(e){return o.a.fireReceiveLocalSynchronization(e)}).then(function(e){return o.a.fireRequestLocalPosts(e)}).then(function(e){return o.a.fireReceiveLocalPosts(e)}).then(function(e){return localStorage.setItem("hubpress:sync",r()().format()),e})}t.a={initialize:function(e){return o.a.fireRequestTheme(e).then(function(e){return o.a.fireReceiveTheme(e)}).then(function(e){return localStorage.getItem("hubpress:sync")?o.a.fireRequestLocalPosts(e).then(function(e){return o.a.fireReceiveLocalPosts(e)}):a(e)})},synchronize:a}},bKnO:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"",""])},"bN/m":function(e,t,n){"use strict";function o(e,t){var n=void 0;return e.cname&&""!==e.cname?n=(!1===t?"":"http:")+"//"+e.cname:(n=(!1===t?"":"https:")+"//"+e.username+".github.io","master"!==e.branch&&(n=n+"/"+e.repositoryName)),n}function i(e,t){var n=e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"/$1/$2/$3/$4.html");return"page"===t&&(n=e.replace(/([\w-]*)\.adoc/,"/$1.html")),n}function r(e,t){var n=e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"$1/$2/$3/$4.html");return"page"===t&&(n=e.replace(/([\w-]*)\.adoc/,"$1.html")),n}t.a=function(e){return{site:o(e.meta),hubpress:function(e,t){var n=t.protocol+"//"+t.host;if("localhost"===t.hostname)return n;t.host===e.username+".github.io"||t.host===e.username+".github.com"?"master"!==e.branch&&(n=n+"/"+e.repositoryName):"master"===e.branch||e.cname&&""!==e.cname||(n=n+"/"+e.repositoryName);return n}(e.meta,window.location),theme:o(e.meta,!1)+"/themes/"+e.theme.name,images:o(e.meta)+"/images",getContentUrl:i,getContentGhPath:r,getPostUrl:function(e){return e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"/$1/$2/$3/$4.html")},getPostGhPath:function(e){return e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"$1/$2/$3/$4.html")},getPageUrl:function(e){return e.replace(/([\w-]*)\.adoc/,"/$1.html")},getPageGhPath:function(e){return e.replace(/([\w-]*)\.adoc/,"$1.html")},getSiteUrl:o}}},bxJ0:function(e,t,n){"use strict";t.a=function(e){e.on("application:request-config",function(e){return console.info("githubPlugin - application:request-config"),console.log("githubPlugin - application:request-config",e),l()("config.json?dt="+Date.now()).then(function(e){return e.json()}).then(function(t){return e.nextState.config=a()({},e.nextState.config,t),e.nextState.config.theme.name=e.nextState.config.theme.name.toLowerCase(),e})}),e.on("application:receive-config",function(e){console.info("githubPlugin - application:receive-config"),console.log("githubPlugin - application:receive-config",e);var t=Object(w.a)(e.nextState.config);return e.nextState.config=a()({},e.nextState.config,{urls:t}),e}),e.on("requestAuthentication",function(e){return console.info("githubPlugin - requestAuthentication"),console.log("githubPlugin - requestAuthentication",e),function(e){console.log("githubPlugin - login",e);var t=m.a.defer(),n=e.nextState.credentials,o=e.rootState.application.config.meta,i=(q=new h.a({auth:"basic",username:n.email,password:n.password,twoFactorCode:n.twoFactorCode})).getRepo(o.username,o.repositoryName),r=q.getAuthorization(),a=q.getUser(),s=void 0,c=void 0;return function(e){var t=m.a.defer();return e.getDetails(function(e,n){e?t.reject(e):t.resolve(n)}),t.promise}(i).then(function(e){s=e}).then(_(a)).then(function(e){return c=e,function(e){var t=m.a.defer();return console.log("getAuthorizations",e),e.listAuthorizations({},function(e,n){e?t.reject(e):(console.log("getAuthorizations list",n),t.resolve(n))}),t.promise}(r)}).then(function(e){return function(e,t,n){var o=m.a.defer(),i=-1,r=S(e);return t.forEach(function(e){e.note===r&&(i=e.id)}),-1!==i?n.deleteAuthorization(i,function(e,t){e?o.reject(e):o.resolve()}):o.resolve(),o.promise}(o.repositoryName,e,r)}).then(function(){return R(o.repositoryName,r)}).then(function(e){q=new h.a({auth:"oauth",token:e.token}),t.resolve({isAuthenticated:!0,credentials:{token:e.token},permissions:s.permissions,userInformations:c})}).catch(function(e){console.error("githubPlugin - login error",e,e.response);var n,i={type:"error",title:"Authentication"};e.response&&(n="required"===(e.response.headers&&e.response.headers["x-github-otp"]||"").split(";")[0]),n?(R(o.repositoryName,r),console.log("githubPlugin - OTP required : ",n),i.type="warning",i.content="A two-factor authentication code is needed.",i.otp=!0,t.resolve({isAuthenticated:!1,isTwoFactorCodeRequired:!0})):(console.error("githubPlugin - login error",e),t.reject({error:{code:e.error,message:"Unable to authenticate, check your credentials."}}))}),t.promise}(e).then(function(t){var n=a()({},e.nextState.credentials,t.credentials);return e.nextState=a()({},e.nextState,t,{credentials:n}),e})}),e.on("receiveSavedAuth",function(e){return console.info("githubPlugin - receiveSavedAuth"),console.log("githubPlugin - receiveSavedAuth",e),e.nextState.authentication.isAuthenticated&&(q=new h.a({auth:"oauth",token:e.nextState.authentication.credentials.token})),e}),e.on("hubpress:request-remote-synchronization",function(e){return console.info("githubPlugin - hubpress:request-remote-synchronization"),console.log("githubPlugin - hubpress:request-remote-synchronization",e),e.rootState.authentication.isAuthenticated?function(e){var t=e.application.config;console.log("Get posts",t);var n=t.meta,o=q.getRepo(n.username,n.repositoryName);return function(e,t){var n=m.a.defer();return e.getContents(t.meta.branch,"",!0,function(e,t){if(e)n.reject(e);else{var o=void 0;t.forEach(function(e){"_posts"===e.name&&(o=e.sha)}),n.resolve(o)}}),n.promise}(o,t).then(function(e){return function(e,t,n){var o=void 0;if(n===localStorage.postsSha)o=m.a.fcall(function(){return[]});else{var i=m.a.defer();e.getContents(t.meta.branch,"_posts",!0,function(e,t){e?i.reject(e):i.resolve(t)}),o=i.promise}return o}(o,t,e)}).then(function(e){return e.map(function(e){return b.a.pick(e,["name","path","sha","size"])})}).then(function(e){return function(e,t,n){var o=b.a.compact(n).map(function(e){return function(e,t){var n=m.a.defer(),o=e.meta;return q.getRepo(o.username,o.repositoryName).getSha(e.meta.branch,e.urls.getContentGhPath(t.name,t.type),function(e,o){if(e&&e.response&&404!==e.response.status)n.reject(e);else{var i=o?1:0,r=a()({},t,{published:i});n.resolve(r)}}),n.promise}(t,e)});return m.a.all(o)}(0,t,e)}).then(function(n){return function(e,t,n,o){var i=n.map(function(e){return M(t,e,o)});return m.a.all(i)}(0,t,n,e.authentication.userInformations)}).then(function(e){return function(e,t,n){var o=[];return n.forEach(function(n){var i=m.a.defer();o.push(i.promise),e.getContents(t.meta.branch,n.path,!0,function(e,t){var o;e?i.reject(e):(o=a()({},n,{content:t}),i.resolve(o))})}),m.a.all(o)}(o,t,e)})}(e.rootState).then(function(t){return e.nextState=a()({},e.nextState,{posts:t}),e}):e}),e.on("requestSaveRemotePost",function(e){console.info("githubPlugin - requestSaveRemotePost"),console.log("githubPlugin - requestSaveRemotePost",e);var t=e.rootState.application.config,n=e.nextState.post;return function(e,t){var n=e.meta,o=q.getRepo(n.username,n.repositoryName),i=void 0;if(t.original&&t.name!==t.original.name){var r=m.a.defer();i=r.promise;var a=e.meta.branch,s="_posts/"+t.original.name,c="_posts/"+t.name;o.move(a,s,c,function(n,i){if(n)r.reject(n);else if(t.published){var s=e.urls.getContentGhPath(t.original.name,t.original.type);(function(e,t,n){return function(e,t,n){var o=m.a.defer();return e.deleteFile(t,n,function(e,t){e?o.reject(e):(console.error(t),P=t.commit,o.resolve(t))}),o.promise}(e,t,n)})(o,a,s).then(function(e){r.resolve({post:t,sha:e})}).catch(function(e){r.reject(e)}).done()}else r.resolve({post:t,sha:i})})}else i=m()({post:t});return i}(t,n).then(function(e){return function(e,t){console.log("Write post",e,t);var n=e.meta,o=q.getRepo(n.username,n.repositoryName),i=n.branch,r="_posts/"+t.name,a="Update "+t.name,s=m.a.defer();return o.writeFile(i,r,t.content,a,function(n,o){n?s.reject(n):(t.original=b.a.omit(t,["original"]),t.original.url=e.urls.getContentUrl(t.original.name,t.original.type),t.original.path="_posts/"+t.original.name,t.original.sha=o,P=o.commit,console.info("Update lastCacheCommit",P),s.resolve(t))}),s.promise}(t,e.post)}).then(function(n){return M(t,n,e.rootState.authentication.userInformations)}).then(function(t){return e.nextState.post=t,e})}),e.on("requestSaveRemotePublishedElements",function(e){console.info("githubPlugin - requestSaveRemotePublishedElements"),console.log("githubPlugin - requestSaveRemotePublishedElements",e);var t=e.rootState.application.config.meta,n=q.getRepo(t.username,t.repositoryName),o=e.nextState.elementsToPublish.length,i=b.a.chunk(e.nextState.elementsToPublish,k);console.log("Writeall",e.nextState.elementsToPublish);var r=m.a.defer();return n.getBranch(t.branch,function(a,s){if(a){var c=m.a.defer();return r=c.promise,c.reject(a)}var u=0,l=i.reduce(function(e,i){return e.then(function(e){var r=m.a.defer(),a=i.map(function(e){return{path:e.path,mode:"100644",type:"blob",content:e.content}});return n.createTree(a,e,function(a,s){if(a)return r.reject(a);n.commit(e,s.sha,"Published "+(u+i.length)+"/"+o+" elements",function(e,o){if(e)return r.reject(e);u+=i.length,P=o,n.updateHead("heads/"+t.branch,o.sha,!1,function(e,t){if(console.log("updateHead",e,t),e)return r.reject(e);r.resolve(o.sha)})})}),r.promise})},m()(function(e,t){if(console.error(e,t),!t)return e.sha;var n=C()(e.committer.date);return C()(t.committer.date).isAfter(n)?t.sha:e.sha}({committer:s.commit.commit.committer,sha:s.commit.sha},P)));l.then(function(t){r.resolve(e)}).catch(function(e){r.reject(e)})}),r.promise}),e.on("requestDeleteRemotePost",function(e){console.info("githubPlugin - requestDeleteRemotePost"),console.log("githubPlugin - requestDeleteRemotePost",e);var t=m.a.defer(),n=e.rootState.application.config,o=n.meta,i=q.getRepo(o.username,o.repositoryName),r=e.nextState.post.original.path;return i.deleteFile(o.branch,r,function(n,o){n&&n.response&&404!==n.response.status?t.reject(n):(console.error("requestDeleteRemotePost",o),P=o.commit,t.resolve(e))}).catch(function(n){n&&n.response&&404===n.response.status&&t.resolve(e)}),t.promise}),e.on("requestDeleteRemotePublishedPost",function(e){console.info("githubPlugin - requestDeleteRemotePublishedPost"),console.log("githubPlugin - requestDeleteRemotePublishedPost",e);var t=m.a.defer(),n=e.rootState.application.config,o=n.meta,i=q.getRepo(o.username,o.repositoryName),r=n.urls.getContentGhPath(e.nextState.post.original.name,e.nextState.post.original.type);return i.deleteFile(o.branch,r,function(n,o){n?t.reject(n):(console.error("requestDeleteRemotePublishedPost",o),P=o.commit,t.resolve(e))}),t.promise}),e.on("application:request-save-config",function(e){console.info("githubPlugin - application:request-save-config"),console.log("githubPlugin - application:request-save-config",e);var t=e.nextState.application;return function(e){console.log("Write config",e);var t=m.a.defer(),n=e.meta,o=q.getRepo(n.username,n.repositoryName),r=n.branch;return o.writeFile(r,"hubpress/config.json",i()(e,null,2),"Update configuration file",function(e,n){e?t.reject(e):(P=n.commit,console.info("Update lastCacheCommit",P),t.resolve(n))}),t.promise}(t.config).then(function(e){return function(e){console.log("Github manageCname - ",e);var t=e.meta,n=q.getRepo(t.username,t.repositoryName),o=m.a.defer();t.cname&&""!==t.cname?(console.info("SettingsService - saveAndPublish save CNAME"),n.writeFile(t.branch,"CNAME",t.cname,"Update CNAME with "+t.cname,function(e,t){e?o.reject(e):(P=t.commit,console.info("Update lastCacheCommit",P),o.resolve(t))})):(console.info("SettingsService - saveAndPublish delete CNAME"),n.deleteFile(t.branch,"CNAME",function(e,t){e&&"not found"!==e?o.reject(e):o.resolve(t)}).then(function(e){console.log("SHA after delete",e),o.resolve(e)}).catch(function(e){404!==e.response.status?o.reject(e):o.resolve()}));return o.promise}(t.config)}).then(function(t){return e})}),e.on("receiveRenderingPost",function(e){return console.info("githubPlugin - receiveRenderingPost"),console.log("githubPlugin - receiveRenderingPost",e),e}),e.on("application:initialize-plugins",function(e){console.info("githubPlugin - application:initialize-plugins"),console.log("githubPlugin - application:initialize-plugins",e);var t="put your repository name here"===e.rootState.application.config.meta.repositoryName||"put your username here"===e.rootState.application.config.meta.username;return e.nextState.application.requireInitilisation=t,e.nextState.application.config.initialisationConfigComponent=y.a,e})};var o=n("mvHQ"),i=n.n(o),r=n("woOf"),a=n.n(r),s=n("6ltY"),c=n.n(s),u=n("j9g7"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=n("73D8"),h=n.n(f),g=n("/Luh"),m=n.n(g),v=n("M4fF"),b=n.n(v),x=n("PJh5"),C=n.n(x),w=n("bN/m"),y=n("IBrK"),k=50,P=null;function _(e){return function(){var t=m.a.defer();return e.getProfile(function(e,n){e?t.reject(e):t.resolve(b.a.pick(n,["login","id","name","location","blog","avatar_url","bio"]))}),t.promise}}function S(e){return d()(e+"-"+c.a.name+"-"+c.a.os)}function R(e,t){var n=m.a.defer(),o={scopes:["public_repo"],note:S(e)};return t.createAuthorization(o,function(e,t){e?n.reject(e):n.resolve(t)}),n.promise}var q=void 0;function M(e,t,n){var o=m.a.defer(),i=e.meta,r=q.getRepo(i.username,i.repositoryName);return console.log("getPostAuthor",t),r.listCommits({sha:e.meta.branch,path:t.original&&t.original.path||t.path},function(e,i){if(e&&404!==e.error)o.reject(e);else{var r=i[i.length-1].author;if(r&&r.login!==n.login){_(q.getUser(r.login))().then(function(e){r=a()({},e);var n=a()({},t,{author:r});o.resolve(n)}).catch(function(e){return o.reject(e)})}else{r=a()({},n);var s=a()({},t,{author:r});o.resolve(s)}}}),o.promise}},cOI0:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,'.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,.5)}.cm-animate-fat-cursor,.cm-fat-cursor-mark{-webkit-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;background-color:#7e7}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;-webkit-font-feature-settings:"calt";font-feature-settings:"calt";font-variant-ligatures:contextual}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-webkit-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}',""])},cf2h:function(e,t,n){var o=n("Lln1");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("5c1cabc8",o,!1,{sourceMap:!1})},ct3O:function(e,t,n){"use strict";var o=n("FIB3"),i=n("QhKw"),r=!1;var a=function(e){r||n("0RKo")},s=n("VU/8")(o.a,i.a,!1,a,null,null);s.options.__file=".nuxt/components/nuxt-error.vue",t.a=s.exports},"d/OL":function(e,t,n){"use strict";t.a=function(e){e.on("hubpress:request-rendering-documents",function(e){console.info("asciidocPlugin - hubpress:request-rendering-documents"),console.log("asciidocPlugin - hubpress:request-rendering-documents",e);var t=e.rootState.application.config,n=(e.nextState.posts||[]).map(function(e){var n=i()({},e,m(t,e.content),{content:e.content}),o=c.a.pick(n,"attributes","author","html","tags","content","name","path","sha");n.title=o.title=o.attributes.$$smap.doctitle,n.image=o.image=o.attributes.$$smap["hp-image"],n.type=o.type=o.attributes.$$smap["hp-type"],n.tags=o.tags=v(o.attributes),n.url=o.url=b(t,n.type,o.name);var r=i()({},n,{original:o});return n.type&&"post"!==n.type||(r.original.published_at=r.published_at=o.name.split("-").slice(0,3).join("-")),r});return e.nextState.posts=n,e}),e.on("requestRenderingPost",function(e){console.info("asciidocPlugin - requestRenderingPost"),console.log("asciidocPlugin - requestRenderingPost",e);var t=m(e.rootState.application.config,e.nextState.post.content);e.nextState.post=i()({},e.nextState.post,t),e.nextState.post.title=t.attributes.$$smap.doctitle,e.nextState.post.image=t.attributes.$$smap["hp-image"],e.nextState.post.type=t.attributes.$$smap["hp-type"],e.nextState.post.tags=v(t.attributes),e.nextState.post.published_at=t.attributes.$$smap.published_at||e.nextState.post.published_at||l()().format("YYYY-MM-DD");var n=t.attributes.$$smap["hp-alt-title"];return e.nextState.post.type&&"post"!==e.nextState.post.type?e.nextState.post.name=d()(""+(n||e.nextState.post.title))+".adoc":e.nextState.post.name=d()(e.nextState.post.published_at+"-"+(n||e.nextState.post.title))+".adoc",e.nextState.post.url=b(e.rootState.application.config,e.nextState.post.type,e.nextState.post.name),e})};var o=n("woOf"),i=n.n(o),r=n("twCI"),a=n.n(r),s=n("M4fF"),c=n.n(s),u=n("PJh5"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=a()(!1,window.XMLHttpRequest),h=f.Opal,g=f.Asciidoctor(!0);function m(e,t){var n=h.hash({doctype:"article",backend:"html5",safe:"unsafe",attributes:["showtitle!","allow-uri-read","imagesdir="+e.urls.site+"/images","icons=font"]}),o=function(e){var t=e.split("pass::[more]");return{excerpt:t[0],full:t.join("")}}(t.replace(/gist::([0-9]*)\[(lines=[0-9]*\.\.[0-9]*)?,?(type=([\w.]*))?,?(file=([\w.]*))?\]/g,"[source,$4]\n----\ninclude::https://gist.githubusercontent.com/raw/$1/$6[$2]\n----\n")),i=g.$load(o.excerpt,n),r=g.$load(o.full,n);return{attributes:c.a.pick(r.attributes,["$$smap"]),excerpt:i.$convert(),html:r.$convert()}}function v(e){return e.$$smap["hp-tags"]&&e.$$smap["hp-tags"].split(",").map(function(e){return e.trim()}).filter(function(e){return""!==e})}function b(e,t,n){return e.urls.getContentUrl(n,t)}},dCDI:function(e,t,n){"use strict";(function(e,t){var o,i=n("pFYg"),r=n.n(i);o=function(e){var t;(t=e).overlayMode=function(e,n,o){return{startState:function(){return{base:t.startState(e),overlay:t.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(o){return{base:t.copyState(e,o.base),overlay:t.copyState(n,o.overlay),basePos:o.basePos,baseCur:null,overlayPos:o.overlayPos,overlayCur:null}},token:function(t,i){return(t!=i.streamSeen||Math.min(i.basePos,i.overlayPos)"},redirect:"/dashboard",meta:{auth:!0},children:t.nextState.routes.map(function(e){return console.log(e),e.entries}).reduce(function(e,t){return e.concat(t)},[])}]},o=new r.default(n);return o.routes=t.nextState.routes,o.beforeEach(function(e,t,n){var o=Object(a.default)();e.matched.some(function(e){return e.meta.auth})?o.state.authentication.isAuthenticated?n():n({path:"/login",query:{redirect:e.fullPath}}):n()}),o};var o=n("I3G/"),i=n.n(o),r=n("/ocq"),a=n("fbRD"),s=n("LEOq"),c=n.n(s),u=(n("7cn8"),n("YG9q")),l=n("QMmS"),p=n("3oxy"),d=n("H8Oa"),f=n("bxJ0"),h=n("WiUJ"),g=n("H1PK"),m=n("d/OL"),v=(n("Y2j8"),n("1AqL")),b=n("tLh+");console.log("router =============="),console.log("Router"),i.a.use(r.default),c.a.register(u.a,l.b,p.a,d.a,f.a,h.a,g.a,m.a,v.a,b.a),console.log("Registered plugins",c.a.list())},oz2E:function(e,t,n){"use strict";t.a={name:"dashboard",beforeCreate:function(){console.log("dashboard beforeCreate")},created:function(){console.log("dashboard created")}}},plFO:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".navigation-container>.menu[data-v-73924f22]{height:47px}",""])},pqa7:function(e,t,n){"use strict";var o=function(){var e=this.$createElement;this._self._c;return this._m(0)};o._withStripped=!0;var i={render:o,staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"about-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",attrs:{href:"https://twitter.com/HubPressIO",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Follow us on twitter","data-position":"bottom right"}},[n("i",{staticClass:"twitter large icon"})])]),n("a",{staticClass:"item",attrs:{href:"https://gitter.im/HubPress/hubpress.io",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Wanna chat with us?","data-position":"bottom right"}},[n("i",{staticClass:"gitter large icon"})])]),n("a",{staticClass:"item",attrs:{href:"https://github.com/HubPress",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"HubPress is opensource :)","data-position":"bottom right"}},[n("i",{staticClass:"github large icon"})])])])]),n("div",{staticClass:"about-content"},[n("div",{staticClass:"ui container"},[n("h2",{staticClass:"ui center aligned icon header"},[n("i",{staticClass:"circular users icon"}),e._v("\n The HubPress Team\n ")]),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"row"},[n("div",{staticClass:"ui items divided"},[n("div",{staticClass:"item"},[n("div",{staticClass:"image"},[n("img",{attrs:{src:"https://avatars1.githubusercontent.com/u/2006548?v=3&s=460"}})]),n("div",{staticClass:"content"},[n("a",{staticClass:"header"},[e._v("Anthonny Quérouil")]),n("div",{staticClass:"meta"},[n("span",[e._v("The creator of HubPress")])]),n("div",{staticClass:"description"},[n("p",[e._v("Anthonny is a freelance developer and the creator of HubPress")]),n("p",[e._v("He started HubPress two years ago")])]),n("div",{staticClass:"extra"},[n("a",{staticClass:"ui label",attrs:{href:"https://twitter.com/anthonny_q",target:"_blank"}},[n("i",{staticClass:"twitter icon"}),e._v(" Twitter\n ")]),n("a",{staticClass:"ui label",attrs:{href:"https://github.com/anthonny",target:"_blank"}},[n("i",{staticClass:"github icon"}),e._v(" GitHub\n ")]),n("a",{staticClass:"ui label",attrs:{href:"http://anthonnyquerouil.fr/",target:"_blank"}},[n("i",{staticClass:"home icon"}),e._v(" Website\n ")])])])]),n("div",{staticClass:"item"},[n("div",{staticClass:"image"},[n("img",{attrs:{src:"https://avatars0.githubusercontent.com/u/952793?v=3&s=460"}})]),n("div",{staticClass:"content"},[n("a",{staticClass:"header"},[e._v("Jared Morgan")]),n("div",{staticClass:"meta"},[n("span",[e._v("The Docs guy")])]),n("div",{staticClass:"description"},[n("p",[e._v("By day, Jared is a Certified Scrum Product Owner (CSPO) and Technical Writer for Ladbrokes in Brisbane, Australia.")]),n("p",[e._v("By night, he uses his craft to improve open source software products one README at a time.")]),n("p",[e._v("In between, he uses his expertise in Pinball machines and knowledge of Android beta testing to improve digital pinball apps.")])]),n("div",{staticClass:"extra"},[n("a",{staticClass:"ui label",attrs:{href:"https://twitter.com/jaredmorgs",target:"_blank"}},[n("i",{staticClass:"twitter icon"}),e._v(" Twitter\n ")]),n("a",{staticClass:"ui label",attrs:{href:"https://github.com/jaredmorgs",target:"_blank"}},[n("i",{staticClass:"github icon"}),e._v(" GitHub\n ")]),n("a",{staticClass:"ui label",attrs:{href:"http://jaredleonmorgan.net/",target:"_blank"}},[n("i",{staticClass:"home icon"}),e._v(" Website\n ")])])])])])])])])])}]};t.a=i},q2N3:function(e,t,n){var o=n("4zy4");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("3cf1d05e",o,!1,{sourceMap:!1})},qcny:function(e,t,n){"use strict";n.d(t,"b",function(){return D});var o=n("Xxa5"),i=n.n(o),r=n("//Fk"),a=(n.n(r),n("C4MV")),s=n.n(a),c=n("woOf"),u=n.n(c),l=n("Dd8w"),p=n.n(l),d=n("exGp"),f=n.n(d),h=n("MU8w"),g=(n.n(h),n("I3G/")),m=n.n(g),v=n("p3jY"),b=n.n(v),x=n("mtxM"),C=n("0F0d"),w=n("HBB+"),y=n("WRRc"),k=n("ct3O"),P=n("Hot+"),_=n("yTq1"),S=n("YLfZ"),R=n("J2Ti"),q=n("zQW4"),M=n("6hdJ");n.d(t,"a",function(){return k.a});var $,D=($=f()(i.a.mark(function e(t){var n,o,r,a,c,l,d;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(x.a)(t),(o=Object(R.a)(t)).$router=n,r=p()({router:n,store:o,nuxt:{defaultTransition:j,transitions:[j],setTransitions:function(e){return Array.isArray(e)||(e=[e]),e=e.map(function(e){return e=e?"string"==typeof e?u()({},j,{name:e}):u()({},j,e):j}),this.$options.nuxt.transitions=e,e},err:null,dateErr:null,error:function(e){e=e||null,r.context._errored=!!e,"string"==typeof e&&(e={statusCode:500,message:e});var n=this.nuxt||this.$options.nuxt;return n.dateErr=Date.now(),n.err=e,t&&(t.nuxt.error=e),e}}},_.a),o.app=r,a=t?t.next:function(e){return r.router.push(e)},c=void 0,t?c=n.resolve(t.url).route:(l=Object(S.d)(n.options.base),c=n.resolve(l).route),e.next=10,Object(S.m)(r,{route:c,next:a,error:r.nuxt.error.bind(r),store:o,payload:t?t.payload:void 0,req:t?t.req:void 0,res:t?t.res:void 0,beforeRenderFns:t?t.beforeRenderFns:void 0});case 10:if(d=function(e,t){if(!e)throw new Error("inject(key, value) has no key provided");if(!t)throw new Error("inject(key, value) has no value provided");r[e="$"+e]=t,o[e]=r[e];var n="__nuxt_"+e+"_installed__";m.a[n]||(m.a[n]=!0,m.a.use(function(){m.a.prototype.hasOwnProperty(e)||s()(m.a.prototype,e,{get:function(){return this.$root.$options[e]}})}))},window.__NUXT__&&window.__NUXT__.state&&o.replaceState(window.__NUXT__.state),"function"!=typeof q.a){e.next=15;break}return e.next=15,Object(q.a)(r.context,d);case 15:if("function"!=typeof M.a){e.next=18;break}return e.next=18,Object(M.a)(r.context,d);case 18:e.next=21;break;case 21:return e.abrupt("return",{app:r,router:n,store:o});case 22:case"end":return e.stop()}},e,this)})),function(e){return $.apply(this,arguments)});m.a.component(C.a.name,C.a),m.a.component(w.a.name,w.a),m.a.component(y.a.name,y.a),m.a.component(P.a.name,P.a),m.a.use(b.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var j={name:"page",mode:"out-in",appear:!0,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"}},sIVt:function(e,t,n){"use strict";var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"settings-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.submit(t)}}},[e._m(0)])])]),n("div",{staticClass:"ui container settings-content"},[e._m(1),n("div",{staticClass:"ui divider"}),n("form",{staticClass:"ui form",attrs:{id:"mainForm"}},[n("div",{staticClass:"ui secondary pointing menu"},[n("div",{staticClass:"item active",attrs:{"data-tab":"application",id:"application-tab"}},[e._v("Application")]),e._l(e.tabs,function(t){return n("div",{key:t.id,staticClass:"item",attrs:{"data-tab":t.id}},[e._v(e._s(t.label))])})],2),n("div",{staticClass:"ui bottom attached tab segment active",attrs:{"data-tab":"application"}},[n("h4",{staticClass:"ui dividing header"},[e._v("Domain")]),n("div",{staticClass:"field"},[n("label",[e._v("CNAME")]),n("input",{attrs:{type:"text",name:"application-cname",placeholder:"CNAME"},domProps:{value:e.config.meta.cname}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Metadata (set in config.json)")]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub username")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-username",placeholder:"Github username"},domProps:{value:e.config.meta.username}})]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub repository name")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-repository-name",placeholder:"GitHub repository name"},domProps:{value:e.config.meta.repositoryName}})]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub branch")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-branch",placeholder:"GitHub branch"},domProps:{value:e.config.meta.branch}})]),e._m(2)]),e._l(e.tabs,function(e){return n("div",{key:e.id,staticClass:"ui bottom attached tab segment ",attrs:{"data-tab":e.id}},[n(e.id,{tag:"component"})],1)})],2)])])};o._withStripped=!0;var i={render:o,staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Save your settings","data-position":"bottom right"}},[t("i",{staticClass:"save large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"ui center aligned icon header"},[t("i",{staticClass:"circular settings icon"}),this._v("\n Settings\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"disabled field"},[t("label",[this._v("Blog URL")]),t("input",{attrs:{type:"text",disabled:"",name:"application-blog-url",placeholder:"Blog URL"}})])}]};t.a=i},"tLh+":function(e,t,n){"use strict";t.a=function(e){e.on("requestGenerateIndex",function(e){console.info("rssPlugin - requestGenerateIndex"),console.log("rssPlugin - requestGenerateIndex",e);var t=e.rootState.application.config.site||{},n=e.rootState.application.config.urls.site||"",o=e.nextState.publishedPosts||[],r=new i.a({title:t.title||"",description:t.description||"",feed_url:n+"/rss/",site_url:n,image_url:t.cover,ttl:"60"});o.forEach(function(e){r.item({title:e.title,description:e.html,url:""+n+e.url,categories:e.tags,author:e.author.name,date:e.published_at})});var a=r.xml(),s=[];return s.push({name:"RSS",path:"rss/index.xml",content:a,message:"Publish rss feed"}),e.nextState.elementsToPublish=(e.nextState.elementsToPublish||[]).concat(s),e})};var o=n("DVIz"),i=n.n(o)},unZF:function(e,t,n){"use strict";var o=n("BO1k"),i=n.n(o),r=n("GfDd"),a=r.keys();function s(e){var t=r(e);return t.default?t.default:t}var c={},u=!0,l=!1,p=void 0;try{for(var d,f=i()(a);!(u=(d=f.next()).done);u=!0){var h=d.value;c[h.replace(/^\.\//,"").replace(/\.(js|ts)$/,"")]=s(h)}}catch(e){l=!0,p=e}finally{try{!u&&f.return&&f.return()}finally{if(l)throw p}}t.a=c},utw5:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"ui.top.attached.tabular.menu tab{height:100%}.settings-container{height:100%;overflow:auto}.settings-content{margin-top:60px}.settings-content .menu .item:hover{cursor:pointer}",""])},"vn/a":function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".nuxt-progress{position:fixed;top:0;left:0;right:0;height:2px;width:0;-webkit-transition:width .2s,opacity .4s;transition:width .2s,opacity .4s;opacity:1;background-color:#efc14e;z-index:999999}",""])},wQtD:function(e,t,n){"use strict";t.a={name:"navigation-settings",data:function(){return{newNav:{label:"",url:""},navigation:this.$store.state.application.config.navigation||[]}},computed:{isNotValid:function(){return""===this.newNav.label.trim()||""===this.newNav.url.trim()}},methods:{remove:function(e){this.navigation.splice(e,1)},clear:function(){this.newNav={label:"",url:""}},add:function(e){this.navigation.push(e),this.clear()}}}},wrAo:function(e,t,n){"use strict";t.a={name:"hubpress-settings-social",computed:{social:function(){return this.$store.state.application.config.socialnetwork||{}}}}},yTq1:function(e,t,n){"use strict";var o=n("//Fk"),i=n.n(o),r=n("I3G/"),a=n.n(r),s=n("F88d"),c=n("XSDV"),u=(n.n(c),{_default:function(){return n.e(0).then(n.bind(null,"Ma2J")).then(function(e){return e.default||e})}}),l={};t.a={head:{title:"Hubpress: A web application to build your Blog",meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{hid:"description",name:"description",content:"Nuxt.js project"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"},{rel:"stylesheet",href:"../static/semantic/semantic.min.css"}],style:[],script:[]},render:function(e,t){var n=e("nuxt-loading",{ref:"loading"}),o=e(this.layout||"nuxt");return e("div",{domProps:{id:"__nuxt"}},[n,e("transition",{props:{name:"layout",mode:"out-in"}},[e("div",{domProps:{id:"__layout"},key:this.layoutName},[o])])])},data:function(){return{layout:null,layoutName:""}},beforeCreate:function(){a.a.util.defineReactive(this,"nuxt",this.$options.nuxt)},created:function(){a.a.prototype.$nuxt=this,"undefined"!=typeof window&&(window.$nuxt=this),this.error=this.nuxt.error},mounted:function(){this.$loading=this.$refs.loading},watch:{"nuxt.err":"errorChanged"},methods:{errorChanged:function(){this.nuxt.err&&this.$loading&&(this.$loading.fail&&this.$loading.fail(),this.$loading.finish&&this.$loading.finish())},setLayout:function(e){e&&l["_"+e]||(e="default"),this.layoutName=e;var t="_"+e;return this.layout=l[t],this.layout},loadLayout:function(e){var t=this;e&&(u["_"+e]||l["_"+e])||(e="default");var n="_"+e;return l[n]?i.a.resolve(l[n]):u[n]().then(function(e){return l[n]=e,delete u[n],l[n]}).catch(function(e){if(t.$nuxt)return t.$nuxt.error({statusCode:500,message:e.message})})}},components:{NuxtLoading:s.a}}},yUYC:function(e,t,n){"use strict";var o=n("I3G/"),i=n.n(o);t.a={name:"nuxt-loading",data:function(){return{percent:0,show:!1,canSuccess:!0,duration:5e3,height:"2px",color:"#3B8070",failedColor:"red"}},methods:{start:function(){var e=this;return this.show=!0,this.canSuccess=!0,this._timer&&(clearInterval(this._timer),this.percent=0),this._cut=1e4/Math.floor(this.duration),this._timer=setInterval(function(){e.increase(e._cut*Math.random()),e.percent>95&&e.finish()},100),this},set:function(e){return this.show=!0,this.canSuccess=!0,this.percent=Math.floor(e),this},get:function(){return Math.floor(this.percent)},increase:function(e){return this.percent=this.percent+Math.floor(e),this},decrease:function(e){return this.percent=this.percent-Math.floor(e),this},finish:function(){return this.percent=100,this.hide(),this},pause:function(){return clearInterval(this._timer),this},hide:function(){var e=this;return clearInterval(this._timer),this._timer=null,setTimeout(function(){e.show=!1,i.a.nextTick(function(){setTimeout(function(){e.percent=0},200)})},500),this},fail:function(){return this.canSuccess=!1,this}}}},zQW4:function(e,t,n){"use strict";for(var o=n("woOf"),i=n.n(o),r=n("//Fk"),a=n.n(r),s=n("BO1k"),c=n.n(s),u=n("mtWM"),l=n.n(u),p={setHeader:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",o=!0,i=!1,r=void 0;try{for(var a,s=c()(Array.isArray(n)?n:[n]);!(o=(a=s.next()).done);o=!0){var u=a.value;if(!t)return void delete this.defaults.headers[u][e];this.defaults.headers[u][e]=t}}catch(e){i=!0,r=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}},setToken:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",o=e?(t?t+" ":"")+e:null;this.setHeader("Authorization",o,n)},onRequest:function(e){this.interceptors.request.use(function(t){return e(t)||t})},onResponse:function(e){this.interceptors.response.use(function(t){return e(t)||t})},onRequestError:function(e){this.interceptors.request.use(void 0,function(t){return e(t)||a.a.reject(t)})},onResponseError:function(e){this.interceptors.response.use(void 0,function(t){return e(t)||a.a.reject(t)})},onError:function(e){this.onRequestError(e),this.onResponseError(e)}},d=function(e){p["$"+e]=function(){return this[e].apply(this,arguments).then(function(e){return e&&e.data})}},f=["request","delete","get","head","options","post","put","patch"],h=0;h1&&(r=(e.path||"")+"page/"+o+"/index.html"),o>1&&(v=o-1),oo-1||g+1===t.length){var w=l.a.template(e.template,{pagination:{prev:v,next:m,page:o,pages:h,total:t.length,limit:u},context:"index"===e.template&&0===v?"home":e.template,posts:a,tag:e.tag,author:e.author,title:i.title,description:i.description,socialnetwork:p,relativeUrl:""},{config:n,theme:e.opts.nextState.theme});s.push({name:"page-"+o,path:r,content:w,message:"Publish page-"+o+" "+e.template}),a=[],o++}}),e.opts.nextState.elementsToPublish=(e.opts.nextState.elementsToPublish||[]).concat(s),e.opts}}]),e}();t.a=new f},BdWi:function(e,t,n){"use strict";t.a=function(e){console.info("PagesGenerator - generate"),console.log("PagesGenerator - generate",e);var t=e;return e.nextState.publishedPages.forEach(function(e){t=Object(o.a)(t,e)}),t};n("APUd");var i=n("j+6P"),o=(n.n(i),n("KgKs"))},E1SC:function(e,t,n){"use strict";var i=n("SUis"),o=n("7Fxy");var r=function(e){n("vKgl")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},EgsU:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".posts-container .menu{min-height:47px}.posts-container{height:100%;overflow:auto}.posts.ui.container{padding-top:60px}.image.cover>div{width:100%;height:200px;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}@media screen and (max-width:622px){.posts.ui.container .ui.card .image.cover{display:none}}",""])},F6eF:function(e,t,n){"use strict";var i=n("7t+N"),o=n.n(i);t.a={name:"initialise-configuration",data:function(){return{username:"",repositoryName:"hubpress.io",branch:"master",cname:void 0}},mounted:function(){o()("div.dropdown").dropdown()},computed:{isValid:function(){return""!=this.username.trim()&&""!=this.repositoryName.trim()}},methods:{submit:function(){var e={username:this.username,repositoryName:this.repositoryName,branch:this.branch,cname:this.cname};this.$store.dispatch("application:save-startup-config",e)}}}},F88d:function(e,t,n){"use strict";var i=n("yUYC"),o=n("cmzl");var r=function(e){n("0xYM")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},FIB3:function(e,t,n){"use strict";t.a={name:"nuxt-error",props:["error"],head:function(){return{title:this.message,meta:[{name:"viewport",content:"width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"}]}},computed:{statusCode:function(){return this.error&&this.error.statusCode||500},message:function(){return this.error.message||"Error"}}}},FdPX:function(e,t,n){"use strict";var i={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"__nuxt-error-page"},[t("div",{staticClass:"error"},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"90",height:"90",fill:"#DBE1EC",viewBox:"0 0 48 48"}},[t("path",{attrs:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}})]),t("div",{staticClass:"title"},[this._v(this._s(this.message))]),404===this.statusCode?t("p",{staticClass:"description"},[t("nuxt-link",{staticClass:"error-link",attrs:{to:"/"}},[this._v("Back to the home page")])],1):this._e(),this._m(0)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"logo"},[t("a",{attrs:{href:"https://nuxtjs.org",target:"_blank",rel:"noopener"}},[this._v("Nuxt.js")])])}]};t.a=i},FoP8:function(module,__webpack_exports__,__webpack_require__){"use strict";function applyScript(hasChanged){if(hasChanged){for(var element=document.getElementById("html-content"),scripts=element.getElementsByTagName("script"),addedScripts=[],i=0;i.menu[data-v-0536f20d]{height:47px}",""])},HUXV:function(e,t,n){"use strict";var i=n("6Ndi");t.a={refreshAfterSavedConfig:function(e){return i.a.fireRequestTheme(e).then(function(t){return i.a.fireReceiveTheme(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return console.time("Build content"),e}).then(function(e){return i.a.fireRequestGenerateIndex(e)}).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGeneratePosts(e)}).then(function(e){return i.a.fireReceiveGeneratePosts(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)}).then(function(e){return i.a.fireRequestLocalPublishedPages(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPages(e)}).then(function(e){return i.a.fireRequestGeneratePages(e)}).then(function(e){return i.a.fireReceiveGeneratePages(e)}).then(function(e){return console.timeEnd("Build content"),e}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})}}},"Hot+":function(e,t,n){"use strict";var i=n("I3G/"),o=n.n(i),r=n("HBB+"),a=n("ct3O"),s=n("YLfZ");t.a={name:"nuxt",props:["nuxtChildKey","keepAlive"],render:function(e){return this.nuxt.err?e("nuxt-error",{props:{error:this.nuxt.err}}):e("nuxt-child",{key:this.routerViewKey,props:this.$props})},beforeCreate:function(){o.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(s.b)(this.$route.matched[0].path)(this.$route.params);var e=this.$route.matched[0]&&this.$route.matched[0].components.default;return e&&e.options&&e.options.key?"function"==typeof e.options.key?e.options.key(this.$route):e.options.key:this.$route.path}},components:{NuxtChild:r.a,NuxtError:a.a}}},IBrK:function(e,t,n){"use strict";var i=n("F6eF"),o=n("N3Gg");var r=function(e){n("XkEn")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Ie2b:function(e,t){},Irdm:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"settings-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.submit(t)}}},[e._m(0)])])]),n("div",{staticClass:"ui container settings-content"},[e._m(1),n("div",{staticClass:"ui divider"}),n("form",{staticClass:"ui form",attrs:{id:"mainForm"}},[n("div",{staticClass:"ui secondary pointing menu"},[n("div",{staticClass:"item active",attrs:{"data-tab":"application",id:"application-tab"}},[e._v("Application")]),e._l(e.tabs,function(t){return n("div",{key:t.id,staticClass:"item",attrs:{"data-tab":t.id}},[e._v(e._s(t.label))])})],2),n("div",{staticClass:"ui bottom attached tab segment active",attrs:{"data-tab":"application"}},[n("h4",{staticClass:"ui dividing header"},[e._v("Domain")]),n("div",{staticClass:"field"},[n("label",[e._v("CNAME")]),n("input",{attrs:{type:"text",name:"application-cname",placeholder:"CNAME"},domProps:{value:e.config.meta.cname}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Metadata (set in config.json)")]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub username")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-username",placeholder:"Github username"},domProps:{value:e.config.meta.username}})]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub repository name")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-repository-name",placeholder:"GitHub repository name"},domProps:{value:e.config.meta.repositoryName}})]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub branch")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-branch",placeholder:"GitHub branch"},domProps:{value:e.config.meta.branch}})]),e._m(2)]),e._l(e.tabs,function(e){return n("div",{key:e.id,staticClass:"ui bottom attached tab segment ",attrs:{"data-tab":e.id}},[n(e.id,{tag:"component"})],1)})],2)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Save your settings","data-position":"bottom right"}},[t("i",{staticClass:"save large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"ui center aligned icon header"},[t("i",{staticClass:"circular settings icon"}),this._v("\n Settings\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"disabled field"},[t("label",[this._v("Blog URL")]),t("input",{attrs:{type:"text",disabled:"",name:"application-blog-url",placeholder:"Blog URL"}})])}]};t.a=i},J2Ti:function(e,t,n){"use strict";n.d(t,"a",function(){return y});var i=n("woOf"),o=n.n(i),r=n("BO1k"),a=n.n(r),s=n("I3G/"),c=n.n(s),u=n("NYxO");c.a.use(u.default);var l=n("1H2/"),p=l.keys(),d={},f=void 0;if(p.forEach(function(e){-1!==e.indexOf("./index.")&&(f=e)}),f&&(d=P(f)),"function"!=typeof d){d.modules||(d.modules={});var h=!0,g=!1,m=void 0;try{for(var v,b=a()(p);!(h=(v=b.next()).done);h=!0){var x=v.value,C=x.replace(/^\.\//,"").replace(/\.(js|ts)$/,"");if("index"!==C){var w=C.split(/\//);(e=k(d,w))[C=w.pop()]=P(x),e[C].namespaced=!0}}}catch(e){g=!0,m=e}finally{try{!h&&b.return&&b.return()}finally{if(g)throw m}}}var y=d instanceof Function?d:function(){return new u.default.Store(o()({strict:!1},d,{state:d.state instanceof Function?d.state():{}}))};function P(e){var t=l(e),n=t.default||t;if(n.commit)throw new Error("[nuxt] store/"+e.replace("./","")+" should export a method which returns a Vuex instance.");if(n.state&&"function"!=typeof n.state)throw new Error("[nuxt] state should be a function in store/"+e.replace("./",""));return n}function k(e,t){if(1===t.length)return e.modules;var n=t.shift();return e.modules[n]=e.modules[n]||{},e.modules[n].namespaced=!0,e.modules[n].modules=e.modules[n].modules||{},k(e.modules[n],t)}},JtYm:function(e,t,n){"use strict";var i=n("6Ndi");function o(e){return i.a.fireRequestLocalPosts(e).then(function(e){return i.a.fireReceiveLocalPosts(e)})}t.a={deletePost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=t,e}).then(function(e){return e.nextState.post.original?i.a.fireRequestDeleteRemotePost(e).then(function(e){return i.a.fireReceiveDeleteRemotePost(e)}):e}).then(function(e){return i.a.fireRequestDeleteLocalPost(e)}).then(function(e){return i.a.fireReceiveDeleteLocalPost(e)}).then(function(e){return e.nextState.post.published?i.a.fireRequestDeleteRemotePublishedPost(e).then(function(e){return i.a.fireReceiveDeleteRemotePublishedPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return i.a.fireRequestGenerateIndex(e)}).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)}):e}).then(o)},getLocalPost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)})},getLocalPosts:o,remoteSavePost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){return i.a.fireRequestSaveRemotePost(e)}).then(function(e){return i.a.fireReceiveSaveRemotePost(e)}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)})},renderAndSavePost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){return e.nextState.post.content=e.payload.post.content,e}).then(function(e){return i.a.fireRequestRenderingPost(e)}).then(function(e){return i.a.fireReceiveRenderingPost(e)}).then(function(e){return e.nextState.post&&e.nextState.post.title?i.a.fireRequestSaveLocalPost(e).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}):e}).then(function(e){var t=e.nextState.post.original;return e.nextState.post.original=e.nextState.post,e.nextState.post.original.author=e.nextState.post.original.author||e.rootState.authentication.userInformations,i.a.fireRequestGeneratePost(e).then(function(e){return i.a.fireReceiveGeneratePost(e)}).then(function(e){var n=e.nextState.elementsToPublish[0]||{};return e.nextState.post.publishedContent=n.content,e.nextState.post.original=t,e})})},publishPost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=_.union(e.nextState.post.tags,t),e}).then(function(e){return i.a.fireRequestSaveRemotePost(e)}).then(function(e){return i.a.fireReceiveSaveRemotePost(e)}).then(function(e){return e.nextState.post.original.author=e.nextState.post.original.author||e.nextState.post.author,e.nextState.post.published=1,e}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return i.a.fireRequestGeneratePost(e)}).then(function(e){return i.a.fireReceiveGeneratePost(e)}).then(function(e){return"post"!==e.nextState.post.type?e:i.a.fireRequestGenerateIndex(e).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)})}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})},unpublishPost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=t,e}).then(function(e){return i.a.fireRequestDeleteRemotePublishedPost(e)}).then(function(e){return i.a.fireReceiveDeleteRemotePublishedPost(e)}).then(function(e){return e.nextState.post.published=0,e}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return"post"!==e.nextState.post.type?e:i.a.fireRequestGenerateIndex(e).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)})}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})}}},KMrN:function(e,t,n){"use strict";var i=n("LEOq"),o=n.n(i);t.a={authenticate:function(e){return function(e){return o.a.fire("requestAuthentication",e)}(e).then(function(e){return(t=e).nextState.twoFactorRequired?payload:o.a.fire("receiveAuthentication",t);var t})},initialize:function(e){return function(e){return o.a.fire("requestSavedAuth",e)}(e).then(function(e){return t=e,o.a.fire("receiveSavedAuth",t);var t})}}},KOTd:function(e,t,n){"use strict";t.a=function(e){console.info("AuthorGenerator - generate"),console.log("AuthorGenerator - generate",e);var t=void 0;if(!s.a.isTemplateAvailable("author"))return e;t=e.nextState.author?e.nextState.publishedPosts.filter(function(t){return t.author.login===e.nextState.author.login}):e.nextState.publishedPosts;var n=r.a.reduce(t,function(e,t){return e[t.author.login]=e[t.author.login]||[],e[t.author.login].push(t),e},{}),o=e;return r.a.each(n,function(e,t){var n=e[0].author;n.name=n.name||n.login,n.slug=t,n.website=n.blog,n.status="",o=i.a.generate({opts:o,posts:e,author:n,template:"author",path:"author/"+t+"/"})}),o};var i=n("APUd"),o=n("M4fF"),r=n.n(o),a=n("j+6P"),s=n.n(a),c=n("n+xr");n.n(c)},KgKs:function(e,t,n){"use strict";t.a=function(e,t){console.info("PostGenerator - generate"),console.log("PostGenerator - generate",e);var n=t,i=o()({},n.original);i.tags=a.a.map(i.tags,function(e){return{name:e,slug:l()(e)}});var r=i.author;i.author={id:r.id,name:r.name||r.login,location:r.location,website:r.blog,image:r.avatar_url,profile_image:r.avatar_url,bio:r.bio,status:"",slug:r.login};var s=e.rootState.application.config,u=s.urls;e.nextState.theme.name,e.nextState.theme.version,s.urls.theme;i.urls=u,i.status="published",i.feature_image=i.image;var p="index.adoc"===n.name?"home":n.type||"post";if(!c.a.isTemplateAvailable(p))return e;var d=c.a.template(p,{context:n.type||"post",socialnetwork:s.socialnetwork,relativeUrl:n.url,post:i,author:i.author},{config:s,theme:e.nextState.theme}),f=[];return f.push({title:n.title,image:n.image,name:n.name,path:s.urls.getContentGhPath(n.name,n.type),url:s.urls.getContentGhPath(n.name,n.type),content:d,message:"Publish "+n.name,published_at:n.published_at}),e.nextState.elementsToPublish=(e.nextState.elementsToPublish||[]).concat(f),e};var i=n("woOf"),o=n.n(i),r=n("M4fF"),a=n.n(r),s=n("j+6P"),c=n.n(s),u=n("n+xr"),l=n.n(u)},LB67:function(e,t,n){"use strict";var i=n("6Ndi");t.a={authenticate:function(e){return i.a.fireRequestAuthentication(e).then(function(e){return i.a.fireReceiveAuthentication(e)})}}},MHN4:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".about-content{padding-top:60px}",""])},Mha6:function(e,t,n){var i=n("ys1n");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("4942fa76",i,!0,{sourceMap:!1})},N3Gg:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"initialise-configuration"},[e._m(0),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"content"},[e._v("\n We need to initialize your configuration before a first use.\n ")]),n("div",{staticClass:"ui divider"}),n("form",{staticClass:"ui form",attrs:{id:"configurationForm"},on:{submit:function(t){t.preventDefault(),e.submit()}}},[n("div",{staticClass:"required field"},[n("label",[e._v("Username")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.username,expression:"username"}],attrs:{type:"text",name:"configuration-username",placeholder:"Your github username"},domProps:{value:e.username},on:{input:function(t){t.target.composing||(e.username=t.target.value)}}})]),n("div",{staticClass:"required field"},[n("label",[e._v("Repository name")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.repositoryName,expression:"repositoryName"}],attrs:{type:"text",name:"configuration-cname",placeholder:"The name of your repository"},domProps:{value:e.repositoryName},on:{input:function(t){t.target.composing||(e.repositoryName=t.target.value)}}})]),n("div",{staticClass:"required field"},[n("label",[e._v("Branch")]),n("div",{staticClass:"ui selection dropdown"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.branch,expression:"branch"}],attrs:{type:"hidden",name:"branch"},domProps:{value:e.branch},on:{input:function(t){t.target.composing||(e.branch=t.target.value)}}}),n("i",{staticClass:"dropdown icon"}),n("div",{staticClass:"default text"},[e._v("master")]),e._m(1)])]),n("div",{staticClass:"field"},[n("label",[e._v("Domain name")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.cname,expression:"cname"}],attrs:{type:"text",name:"configuration-cname",placeholder:"Your domain name if you have one"},domProps:{value:e.cname},on:{input:function(t){t.target.composing||(e.cname=t.target.value)}}})]),n("button",{staticClass:"ui fluid large submit button",attrs:{type:"submit",name:"button",disabled:!e.isValid}},[e._v("Ok, let's go!")])]),e._m(2)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"ui center aligned icon header"},[t("i",{staticClass:"circular configure icon"}),this._v("\n Configuration\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"menu"},[t("div",{staticClass:"item",attrs:{"data-value":"master"}},[this._v("master")]),t("div",{staticClass:"item",attrs:{"data-value":"gh-pages"}},[this._v("gh-pages")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui message"},[this._v("\n If you have questions about how to use HubPress, "),t("a",{attrs:{href:"https://hubpress.gitbooks.io/hubpress-knowledgebase/content/"}},[this._v("here is the right place.")])])}]};t.a=i},NpFX:function(e,t,n){"use strict";var i=n("FoP8"),o=n("XO7e");var r=function(e){n("YDvP")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Pm0L:function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"f",function(){return o}),n.d(t,"g",function(){return r}),n.d(t,"h",function(){return a}),n.d(t,"d",function(){return s}),n.d(t,"c",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"a",function(){return l});var i="login:submit",o="login:updateEmail",r="login:updatePassword",a="login:updateTwoFactorCode",s="authorisation:request-login",c="authorisation:receive-login",u="authorisation:failure-login",l="authorisation:authentication-done"},Q7NK:function(e,t,n){"use strict";(function(e,t){var i,o=n("pFYg"),r=n.n(o);i=function(e){e.defineMode("asciidoc",function(e,t){var n=1e3,i=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],i=[],o=0,r=this.matchMappings[t]={defaultToken:"text"},a="g",s=[],c=0;c1?this.$applyToken:u.token);p>1&&(/\\\d/.test(u.regex)?l=u.regex.replace(/\\([0-9]+)/g,function(e,t){return"\\"+(parseInt(t,10)+o+1)}):(p=1,l=this.removeCapturingGroups(u.regex)),u.splitRegex||"string"==typeof u.token||s.push(u)),r[o]=c,o+=p,i.push(l),u.onMatch||(u.onMatch=null)}}s.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)},this),this.regExps[t]=new RegExp("("+i.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(e){n=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var i=[],o=0,r=n.length;ol){var m=e.substring(l,g-h.length);p.type==d?p.value+=m:(p.type&&u.push(p),p={type:d,value:m})}for(var v=0;vn){for(;l1&&i[0]!==o&&i.unshift(o),{tokens:u,state:i.length?i:o}}}).call(i.prototype);var o={empty:null,text:null,keyword:"keyword",control:"keyword",operator:"operator",constant:"atom",numeric:"number",character:"atom",escape:"atom",variable:"variable",parameter:"variable-3",language:"variable-2",comment:"comment",line:"comment","double-slash":"comment","double-dash":"comment","number-sign":"comment",percentage:"comment",block:"comment",doc:"comment",string:"string",quoted:"string",single:"string",double:"string",triple:"string",unquoted:"string",interpolated:"string",regexp:"string-2",meta:"keyword",literal:"qualifier",support:"builtin",markup:"tag",underline:"link",link:"link",strong:"strong",heading:"header",heading2:"header-2",heading3:"header-3",heading4:"header-4",heading5:"header-5",heading6:"header-6",em:"em",list:"variable-2",numbered:"variable-2",unnumbered:"variable-2",quote:"quote",raw:"variable-2",invalid:"error",illegal:"invalidchar",deprecated:"error"},r=function(e,t){var n=t.plannedTokens.shift();return void 0===n?null:(e.match(n.value),function(e){for(var t=null,n=0;n0)return r(e,t);var n=t.current,i=e.match(/.*$/,!1)[0],o=s.getLineTokens(i,n);return t.plannedTokens=o.tokens,t.current=o.state,r(e,t)},s=new i((new function(){function e(e){return(/\w/.test(e)?"\\b":"(?:\\B|^)")+e+"[^"+e+"].*?"+e+"(?![\\w*])"}this.$rules={start:[{token:"empty",regex:/$/},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"literal",regex:/^-{4,}\s*$/,next:"literalBlock"},{token:"literal",regex:/^\+{4,}\s*$/,next:"passthroughBlock"},{token:"keyword",regex:/^={4,}\s*$/},{token:"text",regex:/^\s*$/},{token:"empty",regex:"",next:"dissallowDelimitedBlock"}],dissallowDelimitedBlock:[{include:"paragraphEnd"},{token:"comment",regex:"^//.+$"},{token:"keyword",regex:"^(?:NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s"},{include:"listStart"},{token:"literal",regex:/^\s+.+$/,next:"indentedBlock"},{token:"empty",regex:"",next:"text"}],paragraphEnd:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"commentBlock"},{token:"tableBlock",regex:/^\s*[|!]=+\s*$/,next:"tableBlock"},{token:"keyword",regex:/^(?:--|''')\s*$/,next:"start"},{token:"option",regex:/^\[.*\]\s*$/,next:"start"},{token:"pageBreak",regex:/^>{3,}$/,next:"start"},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"titleUnderline",regex:/^(?:={2,}|-{2,}|~{2,}|\^{2,}|\+{2,})\s*$/,next:"start"},{token:"singleLineTitle",regex:/^={1}\s+\S.*$/,next:"start"},{token:"singleLineTitle2",regex:/^={2}\s+\S.*$/,next:"start"},{token:"singleLineTitle3",regex:/^={3}\s+\S.*$/,next:"start"},{token:"singleLineTitle4",regex:/^={4}\s+\S.*$/,next:"start"},{token:"singleLineTitle5",regex:/^={5}\s+\S.*$/,next:"start"},{token:"singleLineTitle6",regex:/^={6}\s+\S.*$/,next:"start"},{token:"otherBlock",regex:/^(?:\*{2,}|_{2,})\s*$/,next:"start"},{token:"optionalTitle",regex:/^\.[^.\s].+$/,next:"start"}],listStart:[{token:"keyword",regex:/^\s*(?:\d+\.|[a-zA-Z]\.|[ixvmIXVM]+\)|\*{1,5}|-|\.{1,5})\s/,next:"listText"},{token:"meta.tag",regex:/^.+(?::{2,4}|;;)(?: |$)/,next:"listText"},{token:"keyword",regex:/^\+\s*$/,next:"start"}],text:[{token:["link","link"],regex:/((?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+)(\[.*?\])/},{token:["link","link"],regex:/(?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+/},{token:"link",regex:/\b[\w\.\/\-]+@[\w\.\/\-]+\b/},{include:"macros"},{include:"paragraphEnd"},{token:"literal",regex:/\+{3,}/,next:"smallPassthrough"},{token:"escape",regex:/\((?:C|TM|R)\)|\.{3}|->|<-|=>|<=|&#(?:\d+|x[a-fA-F\d]+);|(?: |^)--(?=\s+\S)/},{token:"escape",regex:/\\[_*'`+#]|\\{2}[_*'`+#]{2}/},{token:"keyword",regex:/\s\+$/},{token:"text",regex:"[a-zA-Z¡-￿]+\\b"},{token:["keyword","string","keyword"],regex:/(<<[\w\d\-$]+,)(.*?)(>>|$)/},{token:"keyword",regex:/<<[\w\d\-$]+,?|>>/},{token:"constant.character",regex:/\({2,3}.*?\){2,3}/},{token:"support.function.list.callout",regex:/^(?:<\d+>|\d+>|>) /,next:"text"},{token:"keyword",regex:/\[\[.+?\]\]/},{token:"support",regex:/^\[{3}[\w\d =\-]+\]{3}/},{include:"quotes"},{token:"empty",regex:/^\s*$/,next:"start"}],listText:[{include:"listStart"},{include:"text"}],indentedBlock:[{token:"literal",regex:/^[\s\w].+$/,next:"indentedBlock"},{token:"literal",regex:"",next:"start"}],listingBlock:[{token:"literal",regex:/^\.{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],literalBlock:[{token:"literal",regex:/^-{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],passthroughBlock:[{token:"literal",regex:/^\+{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:"[a-zA-Z¡-￿]+\\b|\\d+"},{include:"macros"},{token:"literal",regex:"."}],smallPassthrough:[{token:"literal",regex:/[+]{3,}/,next:"dissallowDelimitedBlock"},{token:"literal",regex:/^\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:"[a-zA-Z¡-￿]+\\b|\\d+"},{include:"macros"}],commentBlock:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"doc.comment",regex:"^.*$"}],tableBlock:[{token:"tableBlock",regex:/^\s*\|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"innerTableBlock"},{token:"tableBlock",regex:/\|/},{include:"text",noEscape:!0}],innerTableBlock:[{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"tableBlock"},{token:"tableBlock",regex:/^\s*|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/\!/}],macros:[{token:"macro",regex:/{[\w\-$]+}/},{token:["text","string","text","constant.character","text"],regex:/({)([\w\-$]+)(:)?(.+)?(})/},{token:["text","markup.list.macro","keyword","string"],regex:/(\w+)(footnote(?:ref)?::?)([^\s\[]+)?(\[.*?\])?/},{token:["markup.list.macro","keyword","string"],regex:/([a-zA-Z\-][\w\.\/\-]*::?)([^\s\[]+)(\[.*?\])?/},{token:["markup.list.macro","keyword"],regex:/([a-zA-Z\-][\w\.\/\-]+::?)(\[.*?\])/},{token:"keyword",regex:/^:.+?:(?= |$)/}],quotes:[{token:"string.italic",regex:/__[^_\s].*?__/},{token:"string.italic",regex:e("_")},{token:"keyword.bold",regex:/\*\*[^*\s].*?\*\*/},{token:"keyword.bold",regex:e("\\*")},{token:"literal",regex:/\+\+[^+\s].*?\+\+/},{token:"literal",regex:e("\\+")},{token:"literal",regex:/\$\$.+?\$\$/},{token:"literal",regex:e("\\$")},{token:"literal",regex:/``[^`\s].*?``/},{token:"literal",regex:e("`")},{token:"keyword",regex:/\^[^\^].*?\^/},{token:"keyword",regex:e("\\^")},{token:"keyword",regex:/~[^~].*?~/},{token:"keyword",regex:e("~")},{token:"keyword",regex:/##?/},{token:"keyword",regex:/(?:\B|^)``|\b''/}]};var t={macro:"constant.character",tableBlock:"doc.comment",titleUnderline:"markup.heading",singleLineTitle:"markup.heading",singleLineTitle2:"markup.heading2",singleLineTitle3:"markup.heading3",singleLineTitle4:"markup.heading4",singleLineTitle5:"markup.heading5",singleLineTitle6:"markup.heading6",pageBreak:"string",option:"string.regexp",otherBlock:"markup.list",literal:"support.function",optionalTitle:"constant.numeric",escape:"constant.language.escape",link:"markup.underline.list"};for(var n in this.$rules)for(var i=this.$rules[n],o=i.length;o--;){var r=i[o];if(r.include||"string"==typeof r){var a=[o,1].concat(this.$rules[r.include||r]);r.noEscape&&(a=a.filter(function(e){return!e.next})),i.splice.apply(i,a)}else r.token in t&&(r.token=t[r.token])}}).$rules);return{startState:function(){return{current:"start",plannedTokens:[]}},blankLine:function(e){a("",e)},token:a}}),e.defineMIME("text/x-asciidoc","asciidoc")},"object"==("undefined"==typeof exports?"undefined":r()(exports))&&"object"==r()(e)?i(n("8U58")):"object"==("undefined"==typeof brackets?"undefined":r()(brackets))&&brackets.getModule?i(brackets.getModule("thirdparty/CodeMirror2/lib/codemirror")):"function"==typeof define&&n("nErl")?define(["codemirror"],i):i(t)}).call(t,n("f1Eh")(e),n("8U58"))},QMmS:function(e,t,n){"use strict";t.b=function(e){return e.on("application:stores",function(e){var t;console.info("authenticationPlugin - application:stores"),console.log("authenticationPlugin - application:stores",e);var n={state:{isAuthenticated:!1,isTwoFactorCodeRequired:!1,credentials:{email:void 0,password:void 0,twoFactorCode:void 0}},mutations:(t={},o()(t,u.f,function(e,t){e.credentials.email=t}),o()(t,u.g,function(e,t){e.credentials.password=t}),o()(t,u.h,function(e,t){e.credentials.twoFactorCode=t}),o()(t,u.d,function(e){e.isLoading=!0}),o()(t,u.c,function(e,t){a.a.merge(e,t)}),o()(t,u.b,function(e,t){e.isAuthenticated=!1}),o()(t,l,function(e,t){a.a.merge(e,t.authentication)}),t),actions:o()({},u.e,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,r=e.state;i(u.d);var c={rootState:a.a.cloneDeep(o),currentState:a.a.cloneDeep(r)};n("application:loading").then(function(e){return s.a.authenticate(c)}).then(function(e){i(u.c,e.nextState)}).then(function(e){return r.isAuthenticated?n(p,!0).then(function(e){return n(u.a)}):r.isTwoFactorCodeRequired?n("application:notify",{icon:"unlock",header:"Two factor code",message:"A code is required to complete your authentication.",level:"warning"}):n("application:notify",{icon:"warning circle",header:"Authentication failed",message:"A error occured during the authentication.",level:"error"})}).then(function(e){return n("application:loaded")}).then(function(e){return t.push(t.currentRoute.query.redirect||"/")}).catch(function(e){n("application:loaded").then(function(e){return n("application:notify",{icon:"warning circle",header:"Authentication failed",message:"A error occured during the authentication.",level:"error"})})})}),getters:{}};return e.nextState.stores.authentication=n,console.log("authenticationPlugin - application:stores - return",e),e}),e.on("application:routes",function(e){return e}),e.on("application:initialize-app",function(e){return console.info("authenticationPlugin - application:initialize-app"),console.log("authenticationPlugin - application:initialize-app",e),s.a.initialize(e).then(function(e){return e})}),e.on("authentication:authenticate",function(e){return console.info("authenticationPlugin - authentication:authenticate"),console.log("authenticationPlugin - authentication:authenticate",e,s.a),s.a.authenticate(e)}),{getName:function(){return"authenticationPlugin"}}},n.d(t,"a",function(){return d});var i=n("bOdI"),o=n.n(i),r=n("M4fF"),a=n.n(r),s=n("KMrN"),c=n("RUoO"),u=n("Pm0L"),l="application:initialize-app",p="application:save-config";var d=c.a},RUoO:function(e,t,n){"use strict";var i=n("6yLl"),o=n("oS0V");var r=function(e){n("Mha6")},a=n("VU/8")(i.a,o.a,!1,r,"data-v-94154cf6",null);t.a=a.exports},RsIG:function(e,t,n){"use strict";var i=n("woOf"),o=n.n(i),r=n("LEOq"),a=n.n(r);function s(e){return a.a.fire("application:receive-config",e)}t.a={initializeRoutes:function(e){return a.a.fire("application:routes",e)},initializeApp:function(e,t){return a.a.fire("application:initialize-app",e,t)},initializePlugins:function(e,t){return a.a.fire("application:initialize-plugins",e,t)},initializeConfig:function(e){return console.log("application - initializeConfig",e),function(e){return a.a.fire("application:request-config",e)}(e).then(s)},startUpConfig:function(e){return console.log("application - startUpConfig",e),s(e)},prepareConfig:function(e){return a.a.fire("application:prepare-config",e)},saveConfig:function(e){return function(e){return console.log("application - fireRequestSaveConfig",e),a.a.fire("application:request-save-config",e)}(e).then(function(t){return o()({},e,{nextState:t.nextState.application})}).then(s).then(function(t){return e.nextState.application=t.nextState,o()({},e)}).catch(function(e){console.log(e)})},saveConfigDone:function(e){return a.a.fire("application:save-config-done",e)}}},SDLk:function(e,t,n){"use strict";var i={render:function(){this.$createElement;this._self._c;return this._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"about-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",attrs:{href:"https://twitter.com/HubPressIO",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Follow us on twitter","data-position":"bottom right"}},[n("i",{staticClass:"twitter large icon"})])]),n("a",{staticClass:"item",attrs:{href:"https://gitter.im/HubPress/hubpress.io",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Wanna chat with us?","data-position":"bottom right"}},[n("i",{staticClass:"gitter large icon"})])]),n("a",{staticClass:"item",attrs:{href:"https://github.com/HubPress",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"HubPress is opensource :)","data-position":"bottom right"}},[n("i",{staticClass:"github large icon"})])])])]),n("div",{staticClass:"about-content"},[n("div",{staticClass:"ui container"},[n("h2",{staticClass:"ui center aligned icon header"},[n("i",{staticClass:"circular users icon"}),e._v("\n The HubPress Team\n ")]),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"row"},[n("div",{staticClass:"ui items divided"},[n("div",{staticClass:"item"},[n("div",{staticClass:"image"},[n("img",{attrs:{src:"https://avatars1.githubusercontent.com/u/2006548?v=3&s=460"}})]),n("div",{staticClass:"content"},[n("a",{staticClass:"header"},[e._v("Anthonny Quérouil")]),n("div",{staticClass:"meta"},[n("span",[e._v("The creator of HubPress")])]),n("div",{staticClass:"description"},[n("p",[e._v("Anthonny is a freelance developer and the creator of HubPress")]),n("p",[e._v("He started HubPress two years ago")])]),n("div",{staticClass:"extra"},[n("a",{staticClass:"ui label",attrs:{href:"https://twitter.com/anthonny_q",target:"_blank"}},[n("i",{staticClass:"twitter icon"}),e._v(" Twitter\n ")]),n("a",{staticClass:"ui label",attrs:{href:"https://github.com/anthonny",target:"_blank"}},[n("i",{staticClass:"github icon"}),e._v(" GitHub\n ")]),n("a",{staticClass:"ui label",attrs:{href:"http://anthonnyquerouil.fr/",target:"_blank"}},[n("i",{staticClass:"home icon"}),e._v(" Website\n ")])])])]),n("div",{staticClass:"item"},[n("div",{staticClass:"image"},[n("img",{attrs:{src:"https://avatars0.githubusercontent.com/u/952793?v=3&s=460"}})]),n("div",{staticClass:"content"},[n("a",{staticClass:"header"},[e._v("Jared Morgan")]),n("div",{staticClass:"meta"},[n("span",[e._v("The Docs guy")])]),n("div",{staticClass:"description"},[n("p",[e._v("By day, Jared is a Certified Scrum Product Owner (CSPO) and Technical Writer for Ladbrokes in Brisbane, Australia.")]),n("p",[e._v("By night, he uses his craft to improve open source software products one README at a time.")]),n("p",[e._v("In between, he uses his expertise in Pinball machines and knowledge of Android beta testing to improve digital pinball apps.")])]),n("div",{staticClass:"extra"},[n("a",{staticClass:"ui label",attrs:{href:"https://twitter.com/jaredmorgs",target:"_blank"}},[n("i",{staticClass:"twitter icon"}),e._v(" Twitter\n ")]),n("a",{staticClass:"ui label",attrs:{href:"https://github.com/jaredmorgs",target:"_blank"}},[n("i",{staticClass:"github icon"}),e._v(" GitHub\n ")]),n("a",{staticClass:"ui label",attrs:{href:"http://jaredleonmorgan.net/",target:"_blank"}},[n("i",{staticClass:"home icon"}),e._v(" Website\n ")])])])])])])])])])}]};t.a=i},SHkU:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._l(e.navigation,function(t,i){return n("div",{key:t.label,staticClass:"fields"},[n("div",{staticClass:"four wide field"},[n("input",{attrs:{type:"text",placeholder:"Label",name:"navigation-label-"+i},domProps:{value:t.label}})]),n("div",{staticClass:"eleven wide field"},[n("input",{attrs:{type:"text",placeholder:"http://www.mysite.com",name:"navigation-url-"+i},domProps:{value:t.url}})]),n("div",{staticClass:"one wide field"},[n("button",{staticClass:"ui icon button",on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.remove(i)}}},[n("i",{staticClass:"trash icon"})])])])}),n("div",{staticClass:"fields"},[n("div",{staticClass:"four wide field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNav.label,expression:"newNav.label"}],attrs:{type:"text",placeholder:"Label"},domProps:{value:e.newNav.label},on:{input:function(t){t.target.composing||e.$set(e.newNav,"label",t.target.value)}}})]),n("div",{staticClass:"eleven wide field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNav.url,expression:"newNav.url"}],attrs:{type:"text",placeholder:"http://www.mysite.com"},domProps:{value:e.newNav.url},on:{input:function(t){t.target.composing||e.$set(e.newNav,"url",t.target.value)}}})]),n("div",{staticClass:"one wide field"},[n("button",{staticClass:"ui icon button",attrs:{disabled:e.isNotValid},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.add(e.newNav)}}},[n("i",{staticClass:"add icon"})])])])],2)},staticRenderFns:[]};t.a=i},SUis:function(e,t,n){"use strict";(function(e){var i=n("PJh5"),o=n.n(i),r=n("RJtx"),a=n.n(r),s=n("lYDI");t.a={name:"posts",data:function(){return{postToDelete:{},filterValue:""}},beforeCreate:function(){},beforeMount:function(){this.$store.dispatch(s.a)},beforeDestroy:function(){e(".ui.basic.modal").remove()},mounted:function(){var t=this;e(".ui.basic.modal").modal({closable:!1,onDeny:function(){},onApprove:function(){t.$store.dispatch(s.d,t.postToDelete._id)}})},methods:{status:function(e){return!e.published?"Draft":"Published"},type:function(e){return e.type.replace(/\b\w/g,function(e){return e.toUpperCase()})},publishedAt:function(e){return!!e.published&&e.published_at&&o()(e.published_at).fromNow()||""},postCoverUrl:function(e){var t=e.image||"https://hubpress.github.io/img/logo.png";return t=t.startsWith("http")?t:e.attributes.$$smap.imagesdir+"/"+e.image},getPostStatusColor:function(e){return e.original?e.original.content!==e.content?"orange":"green":"red"},displayConfirmMessage:function(t){this.postToDelete=t,e(".ui.basic.modal").modal("show")},navigateToPost:function(e){this.$router.push({name:"post",params:{id:e._id}})},newPost:function(){this.$router.push({name:"post",params:{id:a.a.v4()}})},getPostTags:function(e){return e.tags||[]},getPostAuthor:function(e){return e.author||this.$store.state.authentication.userInformations},synchronize:function(){this.$store.dispatch(s.b)}},computed:{posts:function(){var e=this.filterValue.trim();return""===e?this.$store.state.hubpress.posts:this.$store.state.hubpress.posts.filter(function(t){return t.title.toLowerCase().indexOf(e.toLowerCase())>=0||t.tags&&t.tags.filter(function(t){return t.toLowerCase().indexOf(e.toLowerCase())>=0}).length})}}}}).call(t,n("7t+N"))},SjaB:function(e,t,n){var i=n("3fVB");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("2d76ba14",i,!0,{sourceMap:!1})},T23V:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,r,a=n("pFYg"),s=n.n(a),c=n("mvHQ"),u=n.n(c),l=n("fZjL"),p=n.n(l),d=n("woOf"),f=n.n(d),h=n("Zzip"),g=n.n(h),m=n("5QVw"),v=n.n(m),b=n("//Fk"),x=n.n(b),C=n("I3G/"),w=n.n(C),y=n("unZF"),P=n("qcny"),k=n("YLfZ"),S=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=x.a))(function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,s)}c((i=i.apply(e,t||[])).next())})},_=this&&this.__generator||function(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof v.a&&(r[g.a]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=i[2&r[0]?"return":r[0]?"throw":"next"])&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[0,o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1].row{padding-top:0;padding-bottom:0}.post-editor .ui.grid.light>.row{background-color:#f5f5f5;color:#202020}.post-editor .ui.grid.light>.row .ui.header{color:#202020}.post-editor .ui.grid.light>.row a{color:#aa759f}.post-editor .ui.grid.dark>.row,.post-editor .ui.grid.dark>.row .ui.header{background-color:#3f3f3f;color:#dcdccc}.post-editor .ui.grid.dark>.row .ui.header{color:#dcdccc}.post-editor .ui.grid.dark>.row a{color:#dcdcaa}.post-editor .ui.grid{padding-top:0;padding-bottom:0;margin:0}.post-editor .ui.grid .column{padding-top:0;margin-top:0;padding-bottom:0;margin-bottom:0}.vue-codemirror.container{min-height:100%;height:100%}#asciidoc-content,#asciidoc-preview{height:calc(100vh - 47px);min-height:calc(100vh - 47px)}#asciidoc-content.is-hidden{display:none}#asciidoc-preview{overflow-y:auto;padding-top:2em;font-size:1.2em;font-family:Menlo,Monaco,Consolas,Courier New,monospace;word-wrap:break-word}#asciidoc-preview.is-iframe{padding:0}#asciidoc-preview>div{max-width:750px!important;margin:auto}#asciidoc-preview.is-iframe>div{min-width:100%;margin:auto}#asciidoc-preview.is-fullscreen{width:100%!important}#asciidoc-preview>div .ui.header{font-family:Menlo,Monaco,Consolas,Courier New,monospace}#asciidoc-preview .content pre{background-color:#dcdccc;color:#2e2e2e;padding:10px;border-radius:5px;overflow:auto}#asciidoc-preview .paragraph{padding:.75em 0}#asciidoc-preview img{width:100%;max-width:100%}@media screen and (max-width:992px){#asciidoc-content{display:block}#asciidoc-content.is-preview-visible,#asciidoc-preview{display:none}#asciidoc-preview.is-preview-visible{display:block}}.item .ui.icon .rocket.unpublish{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.cm-s-zenburn.CodeMirror .CodeMirror-gutters{background:#3f3f3f!important}.cm-s-zenburn.CodeMirror .CodeMirror-foldgutter-open,.CodeMirror-foldgutter-folded{color:#999}.cm-s-zenburn.CodeMirror .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-zenburn.CodeMirror{background-color:#3f3f3f;color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-builtin{color:#dcdccc;font-weight:700}.cm-s-zenburn.CodeMirror span.cm-comment{color:#7f9f7f}.cm-s-zenburn.CodeMirror span.cm-keyword{color:#f0dfaf;font-weight:700}.cm-s-zenburn.CodeMirror span.cm-atom{color:#bfebbf}.cm-s-zenburn.CodeMirror span.cm-def{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-variable{color:#dfaf8f}.cm-s-zenburn.CodeMirror span.cm-variable-2{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-string,.cm-s-zenburn.CodeMirror span.cm-string-2{color:#cc9393}.cm-s-zenburn.CodeMirror span.cm-number{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-tag{color:#93e0e3}.cm-s-zenburn.CodeMirror span.cm-attribute,.cm-s-zenburn.CodeMirror span.cm-property{color:#dfaf8f}.cm-s-zenburn.CodeMirror span.cm-qualifier{color:#7cb8bb}.cm-s-zenburn.CodeMirror span.cm-meta{color:#f0dfaf}.cm-s-zenburn.CodeMirror span.cm-header,.cm-s-zenburn.CodeMirror span.cm-operator{color:#f0efd0}.cm-s-zenburn.CodeMirror span.CodeMirror-matchingbracket{-webkit-box-sizing:border-box;box-sizing:border-box;background:transparent;border-bottom:1px solid}.cm-s-zenburn.CodeMirror span.CodeMirror-nonmatchingbracket{border-bottom:1px solid;background:none}.cm-s-zenburn.CodeMirror .CodeMirror-activeline,.cm-s-zenburn.CodeMirror .CodeMirror-activeline-background{background:#000}.cm-s-zenburn.CodeMirror div.CodeMirror-selected{background:#545454}.cm-s-zenburn.CodeMirror .CodeMirror-focused div.CodeMirror-selected{background:#4f4f4f}.cm-s-base16-light.CodeMirror{background:#f5f5f5;color:#202020}.cm-s-base16-light.CodeMirror div.CodeMirror-selected{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-line::selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span::selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span>span::selection{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-line::-moz-selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span::-moz-selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span>span::-moz-selection{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-gutters{background:#f5f5f5;border-right:0}.cm-s-base16-light.CodeMirror .CodeMirror-guttermarker{color:#ac4142}.cm-s-base16-light.CodeMirror .CodeMirror-guttermarker-subtle,.cm-s-base16-light.CodeMirror .CodeMirror-linenumber{color:#b0b0b0}.cm-s-base16-light.CodeMirror .CodeMirror-cursor{border-left:1px solid #505050}.cm-s-base16-light.CodeMirror span.cm-comment{color:#8f5536}.cm-s-base16-light.CodeMirror span.cm-atom,.cm-s-base16-light.CodeMirror span.cm-number{color:#aa759f}.cm-s-base16-light.CodeMirror span.cm-attribute,.cm-s-base16-light.CodeMirror span.cm-property{color:#90a959}.cm-s-base16-light.CodeMirror span.cm-keyword{color:#ac4142}.cm-s-base16-light.CodeMirror span.cm-string{color:#f4bf75}.cm-s-base16-light.CodeMirror span.cm-variable{color:#90a959}.cm-s-base16-light.CodeMirror span.cm-variable-2{color:#6a9fb5}.cm-s-base16-light.CodeMirror span.cm-def{color:#d28445}.cm-s-base16-light.CodeMirror span.cm-bracket{color:#202020}.cm-s-base16-light.CodeMirror span.cm-tag{color:#ac4142}.cm-s-base16-light.CodeMirror span.cm-link{color:#aa759f}.cm-s-base16-light.CodeMirror span.cm-error{background:#ac4142;color:#505050}.cm-s-base16-light.CodeMirror .CodeMirror-activeline-background{background:#dddcdc}.cm-s-base16-light.CodeMirror .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}",""])},THns:function(e,t,n){"use strict";t.a=function(e){console.info("PostsGenerator - generate"),console.log("PostsGenerator - generate",e);var t=e;return e.nextState.publishedPosts.forEach(function(e){t=Object(o.a)(t,e)}),t};n("APUd");var i=n("j+6P"),o=(n.n(i),n("KgKs"))},ThI1:function(e,t,n){"use strict";var i=n("oz2E"),o=n("mBSI");var r=function(e){n("yJpT")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Tknw:function(e,t,n){"use strict";var i=n("wrAo"),o=n("zfI2");var r=function(e){n("YoMZ")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},WRRc:function(e,t,n){"use strict";t.a={name:"nuxt-link",functional:!0,render:function(e,t){return e("router-link",t.data,t.children)}}},WiUJ:function(e,t,n){"use strict";t.a=function(e){e.on("hubpress:request-theme",function(e){console.info("templatePlugin - hubpress:request-theme"),console.log("templatePlugin - hubpress:request-theme",e);var t,n,i,r,s,u=e.rootState.application.config.theme.name.toLowerCase(),p=e.rootState.application.config;return(t=u,n=p,i=a.a.defer(),r=[],s=n.urls.hubpress,c.a.get(s+"/themes/"+t+"/theme.json?dt="+Date.now()).end(function(e,n){if(e)i.reject(e);else{var o=n.body,u=o.version,p=!1,d=!1,f=!1;if(l.a.toPairs(o.files).forEach(function(e){var n=a.a.defer();r.push(n.promise),p=p||"pagination"===e[0],d=d||"nav"===e[0],f=f||"navigation"===e[0],c.a.get(s+"/themes/"+t+"/"+e[1]+"?v="+u).end(function(t,i){t?n.reject(t):n.resolve({name:e[0],path:e[1],content:i.text})})}),!p){var h=a.a.defer();r.push(h.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/pagination.hbs").end(function(e,t){e?h.reject(e):h.resolve({name:"pagination",path:"partials/pagination",content:t.text})})}if(!d){var g=a.a.defer();r.push(g.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/nav.hbs").end(function(e,t){e?g.reject(e):g.resolve({name:"nav",path:"partials/nav",content:t.text})})}if(!f){var m=a.a.defer();r.push(m.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/navigation.hbs").end(function(e,t){e?m.reject(e):m.resolve({name:"navigation",path:"partials/navigation",content:t.text})})}a.a.all(r).then(function(e){i.resolve({version:u,files:e})}).catch(function(e){console.log(e),i.reject(e)})}}),i.promise).then(function(t){var n={name:u,files:t.files,version:t.version};b.a.registerTheme(p,n),b.a.registerFiles(n.files);var i=o()({},n);return e.nextState=o()({},e.nextState,{theme:i}),e})}),e.on("requestGenerateIndex",function(e){console.info("templatePlugin - requestGenerateIndex"),console.log("templatePlugin - requestGenerateIndex",e);var t=Object(p.a)(e);return console.log("templatePlugin - requestGenerateIndex return",t),t}),e.on("requestGeneratePost",function(e){console.info("templatePlugin - requestGeneratePost"),console.log("templatePlugin - requestGeneratePost",e);var t=Object(d.a)(e,e.nextState.post);return console.log("templatePlugin - requestGeneratePost return",t),t}),e.on("requestGeneratePosts",function(e){console.info("templatePlugin - requestGeneratePosts"),console.log("templatePlugin - requestGeneratePosts",e);var t=Object(f.a)(e);return console.log("templatePlugin - requestGeneratePosts return",t),t}),e.on("requestGeneratePages",function(e){console.info("templatePlugin - requestGeneratePages"),console.log("templatePlugin - requestGeneratePages",e);var t=Object(h.a)(e);return console.log("templatePlugin - requestGeneratePages return",t),t}),e.on("requestGenerateTags",function(e){console.info("templatePlugin - requestGenerateTags"),console.log("templatePlugin - requestGenerateTags",e);var t=Object(g.a)(e);return console.log("templatePlugin - requestGenerateTags return",t),t}),e.on("requestGenerateAuthors",function(e){console.info("templatePlugin - requestGenerateAuthors"),console.log("templatePlugin - requestGenerateAuthors",e);var t=Object(m.a)(e);return console.log("templatePlugin - requestGenerateAuthors return",t),t})};var i=n("woOf"),o=n.n(i),r=n("/Luh"),a=n.n(r),s=n("GG98"),c=n.n(s),u=n("M4fF"),l=n.n(u),p=n("e3+D"),d=n("KgKs"),f=n("THns"),h=n("BdWi"),g=n("dZ6u"),m=n("KOTd"),v=n("j+6P"),b=n.n(v)},X5n4:function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"l",function(){return r}),n.d(t,"i",function(){return a}),n.d(t,"j",function(){return s}),n.d(t,"k",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"d",function(){return l}),n.d(t,"h",function(){return p}),n.d(t,"a",function(){return d}),n.d(t,"g",function(){return f}),n.d(t,"f",function(){return h});var i="application:initialize-routes",o="application:initialize-config",r="application:save-startup-config",a="application:prepare-config",s="application:save-config",c="application:save-config-done",u="application:initialize-app",l="application:initialize-plugins",p="application:notify",d="application:close-notification",f="application:loading",h="application:loaded"},X8TR:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"post-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.showAsciidocHelp()}}},[e._m(0)]),n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchLight()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.lightLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{sun:e.isDark,moon:!e.isDark}})])]),n("a",{staticClass:"item html-preview",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreview(!1)}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.previewLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{unhide:!e.isPreviewVisible||e.isIFrame,hide:e.isPreviewVisible&&!e.isIFrame}})])]),n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreview(!0)}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.previewLabelIFrame,"data-position":"bottom right"}},[n("i",{staticClass:"large icon globe"})])]),e.isPreviewVisible?n("a",{staticClass:"item preview-resize",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreviewSize()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.resizeLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{expand:!e.isFullScreen,compress:e.isFullScreen}})])]):e._e(),e.isRemoteActionVisible?n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.remoteSave()}}},[e._m(1)]):e._e(),e.isRemoteActionVisible?n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.publish()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.publishLabel,"data-position":"bottom right"}},[n("i",{staticClass:"icons"},[n("i",{staticClass:"cloud large icon",class:{download:e.isPostPublished,upload:!e.isPostPublished}})])])]):e._e()])]),e._m(2),n("div",{staticClass:"post-editor"},[n("div",{staticClass:"ui grid",class:{dark:e.isDark,light:!e.isDark}},[n("div",{staticClass:"row"},[n("div",{staticClass:"column",class:{"sixteen wide mobile height wide computer is-preview-visible":e.isPreviewVisible,"sixteen wide":!e.isPreviewVisible,"is-hidden":e.isFullScreen},attrs:{id:"asciidoc-content"}},[n("codemirror",{ref:"codeEditor",staticClass:"container",attrs:{code:e.content,options:e.editorOption},on:{input:e.contentChange}})],1),e.isPreviewVisible?n("div",{staticClass:"column",class:{"sixteen wide mobile height wide computer is-preview-visible":e.isPreviewVisible,"is-iframe":e.isIFrame,"is-fullscreen":e.isFullScreen},attrs:{id:"asciidoc-preview"}},[n("preview",{attrs:{post:e.post,iframe:e.isIFrame}})],1):e._e()])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Need some help?","data-position":"bottom right"}},[t("i",{staticClass:"help large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Save your post remotely","data-position":"bottom right"}},[t("i",{staticClass:"save large icon"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui modal",attrs:{id:"asciidoc-help"}},[n("i",{staticClass:"close icon"}),n("div",{staticClass:"header"},[e._v("\n Asciidoc syntax help\n ")]),n("div",{staticClass:"content"},[n("table",{staticClass:"ui table"},[n("thead",[n("tr",[n("th",{staticClass:"heigth wide"},[e._v("Result")]),n("th",{staticClass:"heigth wide"},[e._v("Asciidoc")])])]),n("tbody",[n("tr",[n("td",[e._v("H1")]),n("td",[e._v("= Title")])]),n("tr",[n("td",[e._v("H2")]),n("td",[e._v("== Title")])]),n("tr",[n("td",[e._v("H3")]),n("td",[e._v("=== Title")])]),n("tr",[n("td",[n("strong",[e._v("Bold")])]),n("td",[e._v("*content*")])]),n("tr",[n("td",[n("i",[e._v("Emphasize")])]),n("td",[e._v("_content_")])]),n("tr",[n("td",[n("a",{attrs:{href:"#"}},[e._v("Link")])]),n("td",[e._v("http://asciidoctor.org[Asciidoctor]")])]),n("tr",[n("td",[e._v("Image Block")]),n("td",[e._v("image::sunset.jpg[]")])]),n("tr",[n("td",[e._v("Image Inline")]),n("td",[e._v('Click image:icons/pause.png[title="Pause"] when you need a break.')])]),n("tr",[n("td",[e._v("Video")]),n("td",[e._v("video::video_file.mp4[]")])]),n("tr",[n("td",[e._v("Unordered list")]),n("td",[e._v("* item")])]),n("tr",[n("td",[e._v("Ordered list")]),n("td",[e._v(". item")])]),n("tr",[n("td",[n("code",[e._v("Inline code")])]),n("td",[e._v("`code`")])])])]),n("p",[e._v("\n More informations about the Asciidoc syntax here: "),n("a",{attrs:{href:"http://asciidoctor.org/docs/asciidoc-syntax-quick-reference/",target:"_blank"}},[e._v("AsciiDoc Syntax Quick Reference")])])])])}]};t.a=i},XO7e:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.iframe?e._e():n("div",{staticClass:"html-rendering"},[n("h1",{staticClass:"ui header"},[e._v(e._s(e.post.title))]),n("div",{staticClass:"content",attrs:{id:"html-content"},domProps:{innerHTML:e._s(e.post.html)}})]),e.iframe?n("div",{staticClass:"iframe-rendering"},[n("iframe",{staticClass:"published-preview",attrs:{srcdoc:e.post.publishedContent,frameborder:"0"}})]):e._e()])},staticRenderFns:[]};t.a=i},XSDV:function(e,t,n){var i=n("jAb+");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("5bd01218",i,!0,{sourceMap:!1})},XkEn:function(e,t,n){var i=n("dd07");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("1ce06800",i,!0,{sourceMap:!1})},Y2j8:function(e,t,n){"use strict";var i=n("woOf"),o=(n.n(i),n("/Luh")),r=(n.n(o),n("M4fF")),a=(n.n(r),n("RJtx")),s=(n.n(a),n("Wa/L")),c=n("tCkb");s.a.plugin(c.a),window.PouchDB=s.a},YDvP:function(e,t,n){var i=n("qZPA");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("3ecfbf5a",i,!0,{sourceMap:!1})},YG9q:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),t.a=function(e){return e.on("application:routes",function(e){return console.info("applicationPlugin - application:routes"),console.log("applicationPlugin - application:routes",e),e.nextState.routes.push({id:"application",entries:[{path:"settings",name:"settings",component:s.a}]}),console.log("applicationPlugin - application:routes - return",e),e}),e.on("application:stores",function(e){var t,n;console.info("applicationPlugin - application:stores"),console.log("applicationPlugin - application:stores",e);var i={state:{isInitialized:!1,isFetching:!1,isLoading:!1,requireInitilisation:!1,notification:{icon:"save",header:"My Header",message:"A message",level:"default",isVisible:!1},routes:[],settingsTabs:[]},mutations:(t={},o()(t,a.b,function(e,t){_.merge(e,t.application)}),o()(t,a.d,function(e,t){_.merge(e,t.application)}),o()(t,a.e,function(e,t){e.routes=t}),o()(t,a.c,function(e,t){_.merge(e,t)}),o()(t,a.i,function(e,t){_.merge(e,t)}),o()(t,a.l,function(e,t){_.merge(e,t)}),o()(t,a.j,function(e,t){_.merge(e,t.application)}),o()(t,a.k,function(e,t){_.merge(e,t.application)}),o()(t,a.h,function(e,t){t.isVisible=!0,_.merge(e.notification,t)}),o()(t,a.a,function(e,t){e.notification.isVisible=!1}),o()(t,a.g,function(e,t){e.isLoading=!0}),o()(t,a.f,function(e,t){e.isLoading=!1}),t),actions:(n={},o()(n,a.c,function(e){var t=e.commit,n=e.rootState,i=e.state,o={rootState:_.cloneDeep(n),currentState:_.cloneDeep(i)};return r.a.initializeConfig(o).then(function(e){t(a.c,e.nextState)})}),o()(n,a.b,function(e){var t=e.commit,n=e.rootState,i=(e.state,{rootState:_.cloneDeep(n),currentState:_.cloneDeep(n)});return r.a.initializeApp(i).then(function(e){console.log("helllllllo",e),t(a.b,e.nextState)})}),o()(n,a.d,function(e){var t=e.commit,n=e.rootState,i=(e.state,{rootState:_.cloneDeep(n),currentState:_.cloneDeep(n)});return r.a.initializePlugins(i).then(function(e){e.nextState.application.isInitialized=!0,t(a.d,e.nextState)})}),o()(n,a.i,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,s=e.state,c={rootState:_.cloneDeep(o),currentState:_.cloneDeep(s),nextState:_.cloneDeep(s),payload:{formData:t}};return c.currentState.isLoading=!0,c.nextState.isLoading=!0,n(a.g).then(function(e){return r.a.prepareConfig(c)}).then(function(e){return i(a.i,e.nextState),n(a.j)})}),o()(n,a.l,function(e,t){e.dispatch;var n=e.commit,i=e.rootState,o=e.state,s={rootState:_.cloneDeep(i),currentState:_.cloneDeep(o),nextState:_.cloneDeep(o)};return s.nextState.config.meta.username=t.username,s.nextState.config.meta.repositoryName=t.repositoryName,s.nextState.config.meta.branch=t.branch,s.nextState.config.meta.cname=t.cname,s.nextState.requireInitilisation=!1,r.a.startUpConfig(s).then(function(e){n(a.l,e.nextState)})}),o()(n,a.j,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,s=(e.state,{rootState:_.cloneDeep(o),currentState:_.cloneDeep(o),nextState:_.cloneDeep(o)});return console.log(s),r.a.saveConfig(s).then(function(e){if(console.log("testsettesse",e),i(a.j,e.nextState),!t)return n(a.k)})}),o()(n,a.k,function(e){var t=e.dispatch,n=e.commit,i=e.rootState,o=(e.state,{rootState:_.cloneDeep(i),currentState:_.cloneDeep(i),nextState:_.cloneDeep(i)});return r.a.saveConfigDone(o).then(function(e){n(a.k,e.nextState)}).then(function(e){return t("application:loaded")}).then(function(e){return t("application:notify",{icon:"save",header:"Settings saved",message:"Your settings have been saved and your blog was rebuild with success. ",level:"success"})})}),o()(n,a.h,function(e,t){e.dispatch;var n=e.commit;e.rootState,e.state,n(a.h,t)}),o()(n,a.a,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.a)}),o()(n,a.g,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.g)}),o()(n,a.f,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.f)}),n),getters:{navigations:function(e){return e.routes.filter(function(e){return e.label})}}};return e.nextState.stores.application=i,console.log("applicationPlugin - application:stores - return",e),e}),e.on("application:prepare-config",function(e){return console.info("applicationPlugin - application:prepare-config"),console.log("applicationPlugin - application:prepare-config",e),e.nextState.config.meta.cname=e.payload.formData.get("application-cname"),console.log("applicationPlugin - application:prepare-config - return",e),e}),e.on("application:save-config",function(e){return console.info("applicationPlugin - application:save-config"),console.log("applicationPlugin - application:save-config",e),console.log("applicationPlugin - application:save-config - return",e),e}),{getName:function(){return"applicationPlugin"}}};var i=n("bOdI"),o=n.n(i),r=n("RsIG"),a=n("X5n4"),s=n("kMyt"),c={APPLICATION_PREPARE_CONFIG:a.i}},YLfZ:function(e,t,n){"use strict";t.a=function(e,t){var n=e.options.data||x;if(!t&&e.options.hasAsyncData)return;e.options.hasAsyncData=!0,e.options.data=function(){var i=n.call(this);return this.$ssrContext&&(t=this.$ssrContext.asyncData[e.cid]),m()({},i,t)},e._Ctor&&e._Ctor.options&&(e._Ctor.options.data=e.options.data)},t.l=C,t.e=w,t.f=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],e.matched.map(function(e,n){return h()(e.instances).map(function(i){return t&&t.push(n),e.instances[i]})}))},t.c=y,t.k=P,n.d(t,"h",function(){return _}),n.d(t,"m",function(){return R}),t.i=function e(t,n){if(!t.length||n._redirected||n._errored)return d.a.resolve();return q(t[0],n).then(function(){return e(t.slice(1),n)})},t.j=q,t.d=function(e,t){var n=window.location.pathname;if("hash"===t)return window.location.hash.replace(/^#\//,"");e&&0===n.indexOf(e)&&(n=n.slice(e.length));return(n||"/")+window.location.search+window.location.hash},t.b=function(e,t){return function(e){for(var t=new Array(e.length),n=0;n1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],e.matched.map(function(e,n){return h()(e.components).map(function(i){return t&&t.push(n),e.components[i]})}))}function y(e,t){return Array.prototype.concat.apply([],e.matched.map(function(e,n){return h()(e.components).map(function(i){return t(e.components[i],e.instances[i],e,i,n)})}))}function P(e){var t,n=this;return d.a.all(y(e,(t=l()(c.a.mark(function e(t,i,o,r){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof t||t.options){e.next=4;break}return e.next=3,t();case 3:t=e.sent;case 4:return e.abrupt("return",o.components[r]=C(t));case 5:case"end":return e.stop()}},e,n)})),function(e,n,i,o){return t.apply(this,arguments)})))}window._nuxtReadyCbs=[],window.onNuxtReady=function(e){window._nuxtReadyCbs.push(e)};var k,S,_=(k=l()(c.a.mark(function e(t){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P(t);case 2:return e.abrupt("return",m()({},t,{meta:w(t).map(function(e){return e.options.meta||{}})}));case 3:case"end":return e.stop()}},e,this)})),function(e){return k.apply(this,arguments)}),R=(S=l()(c.a.mark(function e(t,n){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n.to?n.to:n.route,t.context){e.next=14;break}e.t0=!0,e.t1=t,e.t2=t.store,e.t3=n.payload,e.t4=n.error,e.t5={hubpressVersion:"1.0.0",baseUrl:"http://localhost:3000"},t.context={get isServer(){return console.warn("context.isServer has been deprecated, please use process.server instead."),!1},get isClient(){return console.warn("context.isClient has been deprecated, please use process.client instead."),!0},isStatic:e.t0,isDev:!1,isHMR:!1,app:e.t1,store:e.t2,payload:e.t3,error:e.t4,base:"..",env:e.t5},n.req&&(t.context.req=n.req),n.res&&(t.context.res=n.res),t.context.redirect=function(e,n,i){if(e){t.context._redirected=!0;var o=void 0===n?"undefined":a()(n);if("number"==typeof e||"undefined"!==o&&"object"!==o||(i=n||{},o=void 0===(n=e)?"undefined":a()(n),e=302),"object"===o&&(n=t.router.resolve(n).href),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(n))throw n=L(n,i),window.location.replace(n),new Error("ERR_REDIRECT");t.context.next({path:n,query:i,status:e})}},t.context.nuxtState=window.__NUXT__;case 14:if(t.context.next=n.next,t.context._redirected=!1,t.context._errored=!1,t.context.isHMR=!!n.isHMR,!n.route){e.next=22;break}return e.next=21,_(n.route);case 21:t.context.route=e.sent;case 22:if(t.context.params=t.context.route.params||{},t.context.query=t.context.route.query||{},!n.from){e.next=28;break}return e.next=27,_(n.from);case 27:t.context.from=e.sent;case 28:case"end":return e.stop()}},e,this)})),function(e,t){return S.apply(this,arguments)});function q(e,t){var n=void 0;return(n=2===e.length?new d.a(function(n){e(t,function(e,i){e&&t.error(e),n(i=i||{})})}):e(t))&&(n instanceof d.a||"function"==typeof n.then)||(n=d.a.resolve(n)),n}var M=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function $(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function D(e){return e.replace(/([.+*?=^!:()[\]|\/\\])/g,"\\$1")}function j(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function L(e,t){var n=void 0,i=e.indexOf("://");-1!==i?(n=e.substring(0,i),e=e.substring(i+3)):0===e.indexOf("//")&&(e=e.substring(2));var r=e.split("/"),a=(n?n+"://":"//")+r.shift(),s=r.filter(Boolean).join("/"),c=void 0;return 2===(r=s.split("#")).length&&(s=r[0],c=r[1]),a+=s?"/"+s:"",t&&"{}"!==o()(t)&&(a+=(2===e.split("?").length?"&":"?")+function(e){return h()(e).sort().map(function(t){var n=e[t];return null==n?"":Array.isArray(n)?n.slice().map(function(e){return[t,"=",e].join("")}).join("&"):t+"="+n}).filter(Boolean).join("&")}(t)),a+=c?"#"+c:""}},YMuy:function(e,t,n){"use strict";var i=n("6Ndi"),o=n("PJh5"),r=n.n(o);function a(e){return i.a.fireRequestRemoteSynchronization(e).then(function(e){return i.a.fireReceiveRemoteSynchronization(e)}).then(function(e){return i.a.fireRequestRenderingDocuments(e)}).then(function(e){return i.a.fireReceiveRenderingDocuments(e)}).then(function(e){return i.a.fireRequestLocalSynchronization(e)}).then(function(e){return i.a.fireReceiveLocalSynchronization(e)}).then(function(e){return i.a.fireRequestLocalPosts(e)}).then(function(e){return i.a.fireReceiveLocalPosts(e)}).then(function(e){return localStorage.setItem("hubpress:sync",r()().format()),e})}t.a={initialize:function(e){return i.a.fireRequestTheme(e).then(function(e){return i.a.fireReceiveTheme(e)}).then(function(e){return localStorage.getItem("hubpress:sync")?i.a.fireRequestLocalPosts(e).then(function(e){return i.a.fireReceiveLocalPosts(e)}):a(e)})},synchronize:a}},YoMZ:function(e,t,n){var i=n("7Rt3");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("9418214c",i,!0,{sourceMap:!1})},"bN/m":function(e,t,n){"use strict";function i(e,t){var n=void 0;return e.cname&&""!==e.cname?n=(!1===t?"":"http:")+"//"+e.cname:(n=(!1===t?"":"https:")+"//"+e.username+".github.io","master"!==e.branch&&(n=n+"/"+e.repositoryName)),n}function o(e,t){var n=e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"/$1/$2/$3/$4.html");return"page"===t&&(n=e.replace(/([\w-]*)\.adoc/,"/$1.html")),n}function r(e,t){var n=e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"$1/$2/$3/$4.html");return"page"===t&&(n=e.replace(/([\w-]*)\.adoc/,"$1.html")),n}function a(e){return e.match(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/)?"post":"page"}t.a=function(e){return{site:i(e.meta),hubpress:function(e,t){var n=t.protocol+"//"+t.host;if("localhost"===t.hostname)return n;t.host===e.username+".github.io"||t.host===e.username+".github.com"?"master"!==e.branch&&(n=n+"/"+e.repositoryName):"master"===e.branch||e.cname&&""!==e.cname||(n=n+"/"+e.repositoryName);return n}(e.meta,window.location),theme:i(e.meta,!1)+"/themes/"+e.theme.name,images:i(e.meta)+"/images",getContentUrl:o,getContentGhPath:r,getContentType:a,getPostUrl:function(e){return e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"/$1/$2/$3/$4.html")},getPostGhPath:function(e){return e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"$1/$2/$3/$4.html")},getPageUrl:function(e){return e.replace(/([\w-]*)\.adoc/,"/$1.html")},getPageGhPath:function(e){return e.replace(/([\w-]*)\.adoc/,"$1.html")},getSiteUrl:i}}},bxJ0:function(e,t,n){"use strict";t.a=function(e){e.on("application:request-config",function(e){return console.info("githubPlugin - application:request-config"),console.log("githubPlugin - application:request-config",e),l()("config.json?dt="+Date.now()).then(function(e){return e.json()}).then(function(t){return e.nextState.config=a()({},e.nextState.config,t),e.nextState.config.theme.name=e.nextState.config.theme.name.toLowerCase(),e})}),e.on("application:receive-config",function(e){console.info("githubPlugin - application:receive-config"),console.log("githubPlugin - application:receive-config",e);var t=Object(w.a)(e.nextState.config);return e.nextState.config=a()({},e.nextState.config,{urls:t}),e}),e.on("requestAuthentication",function(e){return console.info("githubPlugin - requestAuthentication"),console.log("githubPlugin - requestAuthentication",e),function(e){console.log("githubPlugin - login",e);var t=m.a.defer(),n=e.nextState.credentials,i=e.rootState.application.config.meta,o=(q=new h.a({auth:"basic",username:n.email,password:n.password,twoFactorCode:n.twoFactorCode})).getRepo(i.username,i.repositoryName),r=q.getAuthorization(),a=q.getUser(),s=void 0,c=void 0;return function(e){var t=m.a.defer();return e.getDetails(function(e,n){e?t.reject(e):t.resolve(n)}),t.promise}(o).then(function(e){s=e}).then(S(a)).then(function(e){return c=e,function(e){var t=m.a.defer();return console.log("getAuthorizations",e),e.listAuthorizations({},function(e,n){e?t.reject(e):(console.log("getAuthorizations list",n),t.resolve(n))}),t.promise}(r)}).then(function(e){return function(e,t,n){var i=m.a.defer(),o=-1,r=_(e);return t.forEach(function(e){e.note===r&&(o=e.id)}),-1!==o?n.deleteAuthorization(o,function(e,t){e?i.reject(e):i.resolve()}):i.resolve(),i.promise}(i.repositoryName,e,r)}).then(function(){return R(i.repositoryName,r)}).then(function(e){q=new h.a({auth:"oauth",token:e.token}),t.resolve({isAuthenticated:!0,credentials:{token:e.token},permissions:s.permissions,userInformations:c})}).catch(function(e){console.error("githubPlugin - login error",e,e.response);var n,o={type:"error",title:"Authentication"};e.response&&(n="required"===(e.response.headers&&e.response.headers["x-github-otp"]||"").split(";")[0]),n?(R(i.repositoryName,r),console.log("githubPlugin - OTP required : ",n),o.type="warning",o.content="A two-factor authentication code is needed.",o.otp=!0,t.resolve({isAuthenticated:!1,isTwoFactorCodeRequired:!0})):(console.error("githubPlugin - login error",e),t.reject({error:{code:e.error,message:"Unable to authenticate, check your credentials."}}))}),t.promise}(e).then(function(t){var n=a()({},e.nextState.credentials,t.credentials);return e.nextState=a()({},e.nextState,t,{credentials:n}),e})}),e.on("receiveSavedAuth",function(e){return console.info("githubPlugin - receiveSavedAuth"),console.log("githubPlugin - receiveSavedAuth",e),e.nextState.authentication.isAuthenticated&&(q=new h.a({auth:"oauth",token:e.nextState.authentication.credentials.token})),e}),e.on("hubpress:request-remote-synchronization",function(e){return console.info("githubPlugin - hubpress:request-remote-synchronization"),console.log("githubPlugin - hubpress:request-remote-synchronization",e),e.rootState.authentication.isAuthenticated?function(e){var t=e.application.config;console.log("Get posts",t);var n=t.meta,i=q.getRepo(n.username,n.repositoryName);return function(e,t){var n=m.a.defer();return e.getContents(t.meta.branch,"",!0,function(e,t){if(e)n.reject(e);else{var i=void 0;t.forEach(function(e){"_posts"===e.name&&(i=e.sha)}),n.resolve(i)}}),n.promise}(i,t).then(function(e){return function(e,t,n){var i=void 0;if(n===localStorage.postsSha)i=m.a.fcall(function(){return[]});else{var o=m.a.defer();e.getContents(t.meta.branch,"_posts",!0,function(e,t){e?o.reject(e):o.resolve(t)}),i=o.promise}return i}(i,t,e)}).then(function(e){return e.map(function(e){return b.a.pick(e,["name","path","sha","size"])})}).then(function(e){return function(e,t,n){var i=b.a.compact(n).map(function(e){return function(e,t){var n=m.a.defer(),i=e.meta,o=q.getRepo(i.username,i.repositoryName),r=e.urls.getContentType(t.name);return o.getSha(e.meta.branch,e.urls.getContentGhPath(t.name,r),function(e,i){if(e&&e.response&&404!==e.response.status)n.reject(e);else{var o=i?1:0,r=a()({},t,{published:o});n.resolve(r)}}),n.promise}(t,e)});return m.a.all(i)}(0,t,e)}).then(function(n){return function(e,t,n,i){var o=n.map(function(e){return M(t,e,i)});return m.a.all(o)}(0,t,n,e.authentication.userInformations)}).then(function(e){return function(e,t,n){var i=[];return n.forEach(function(n){var o=m.a.defer();i.push(o.promise),e.getContents(t.meta.branch,n.path,!0,function(e,t){var i;e?o.reject(e):(i=a()({},n,{content:t}),o.resolve(i))})}),m.a.all(i)}(i,t,e)})}(e.rootState).then(function(t){return e.nextState=a()({},e.nextState,{posts:t}),e}):e}),e.on("requestSaveRemotePost",function(e){console.info("githubPlugin - requestSaveRemotePost"),console.log("githubPlugin - requestSaveRemotePost",e);var t=e.rootState.application.config,n=e.nextState.post;return function(e,t){var n=e.meta,i=q.getRepo(n.username,n.repositoryName),o=void 0;if(t.original&&t.name!==t.original.name){var r=m.a.defer();o=r.promise;var a=e.meta.branch,s="_posts/"+t.original.name,c="_posts/"+t.name;i.move(a,s,c,function(n,o){if(n)r.reject(n);else if(t.published){var s=e.urls.getContentGhPath(t.original.name,t.original.type);(function(e,t,n){return function(e,t,n){var i=m.a.defer();return e.deleteFile(t,n,function(e,t){e?i.reject(e):(console.error(t),k=t.commit,i.resolve(t))}),i.promise}(e,t,n)})(i,a,s).then(function(e){r.resolve({post:t,sha:e})}).catch(function(e){r.reject(e)}).done()}else r.resolve({post:t,sha:o})})}else o=m()({post:t});return o}(t,n).then(function(e){return function(e,t){console.log("Write post",e,t);var n=e.meta,i=q.getRepo(n.username,n.repositoryName),o=n.branch,r="_posts/"+t.name,a="Update "+t.name,s=m.a.defer();return i.writeFile(o,r,t.content,a,function(n,i){n?s.reject(n):(t.original=b.a.omit(t,["original"]),t.original.url=e.urls.getContentUrl(t.original.name,t.original.type),t.original.path="_posts/"+t.original.name,t.original.sha=i,k=i.commit,console.info("Update lastCacheCommit",k),s.resolve(t))}),s.promise}(t,e.post)}).then(function(n){return M(t,n,e.rootState.authentication.userInformations)}).then(function(t){return e.nextState.post=t,e})}),e.on("requestSaveRemotePublishedElements",function(e){console.info("githubPlugin - requestSaveRemotePublishedElements"),console.log("githubPlugin - requestSaveRemotePublishedElements",e);var t=e.rootState.application.config.meta,n=q.getRepo(t.username,t.repositoryName),i=e.nextState.elementsToPublish.length,o=b.a.chunk(e.nextState.elementsToPublish,P);console.log("Writeall",e.nextState.elementsToPublish);var r=m.a.defer();return n.getBranch(t.branch,function(a,s){if(a){var c=m.a.defer();return r=c.promise,c.reject(a)}var u=0,l=o.reduce(function(e,o){return e.then(function(e){var r=m.a.defer(),a=o.map(function(e){return{path:e.path,mode:"100644",type:"blob",content:e.content}});return n.createTree(a,e,function(a,s){if(a)return r.reject(a);n.commit(e,s.sha,"Published "+(u+o.length)+"/"+i+" elements",function(e,i){if(e)return r.reject(e);u+=o.length,k=i,n.updateHead("heads/"+t.branch,i.sha,!1,function(e,t){if(console.log("updateHead",e,t),e)return r.reject(e);r.resolve(i.sha)})})}),r.promise})},m()(function(e,t){if(console.error(e,t),!t)return e.sha;var n=C()(e.committer.date);return C()(t.committer.date).isAfter(n)?t.sha:e.sha}({committer:s.commit.commit.committer,sha:s.commit.sha},k)));l.then(function(t){r.resolve(e)}).catch(function(e){r.reject(e)})}),r.promise}),e.on("requestDeleteRemotePost",function(e){console.info("githubPlugin - requestDeleteRemotePost"),console.log("githubPlugin - requestDeleteRemotePost",e);var t=m.a.defer(),n=e.rootState.application.config,i=n.meta,o=q.getRepo(i.username,i.repositoryName),r=e.nextState.post.original.path;return o.deleteFile(i.branch,r,function(n,i){n&&n.response&&404!==n.response.status?t.reject(n):(console.error("requestDeleteRemotePost",i),k=i.commit,t.resolve(e))}).catch(function(n){n&&n.response&&404===n.response.status&&t.resolve(e)}),t.promise}),e.on("requestDeleteRemotePublishedPost",function(e){console.info("githubPlugin - requestDeleteRemotePublishedPost"),console.log("githubPlugin - requestDeleteRemotePublishedPost",e);var t=m.a.defer(),n=e.rootState.application.config,i=n.meta,o=q.getRepo(i.username,i.repositoryName),r=n.urls.getContentGhPath(e.nextState.post.original.name,e.nextState.post.original.type);return o.deleteFile(i.branch,r,function(n,i){n?t.reject(n):(console.error("requestDeleteRemotePublishedPost",i),k=i.commit,t.resolve(e))}),t.promise}),e.on("application:request-save-config",function(e){console.info("githubPlugin - application:request-save-config"),console.log("githubPlugin - application:request-save-config",e);var t=e.nextState.application;return function(e){console.log("Write config",e);var t=m.a.defer(),n=e.meta,i=q.getRepo(n.username,n.repositoryName),r=n.branch;return i.writeFile(r,"hubpress/config.json",o()(e,null,2),"Update configuration file",function(e,n){e?t.reject(e):(k=n.commit,console.info("Update lastCacheCommit",k),t.resolve(n))}),t.promise}(t.config).then(function(e){return function(e){console.log("Github manageCname - ",e);var t=e.meta,n=q.getRepo(t.username,t.repositoryName),i=m.a.defer();t.cname&&""!==t.cname?(console.info("SettingsService - saveAndPublish save CNAME"),n.writeFile(t.branch,"CNAME",t.cname,"Update CNAME with "+t.cname,function(e,t){e?i.reject(e):(k=t.commit,console.info("Update lastCacheCommit",k),i.resolve(t))})):(console.info("SettingsService - saveAndPublish delete CNAME"),n.deleteFile(t.branch,"CNAME",function(e,t){e&&"not found"!==e?i.reject(e):i.resolve(t)}).then(function(e){console.log("SHA after delete",e),i.resolve(e)}).catch(function(e){404!==e.response.status?i.reject(e):i.resolve()}));return i.promise}(t.config)}).then(function(t){return e})}),e.on("receiveRenderingPost",function(e){return console.info("githubPlugin - receiveRenderingPost"),console.log("githubPlugin - receiveRenderingPost",e),e}),e.on("application:initialize-plugins",function(e){console.info("githubPlugin - application:initialize-plugins"),console.log("githubPlugin - application:initialize-plugins",e);var t="put your repository name here"===e.rootState.application.config.meta.repositoryName||"put your username here"===e.rootState.application.config.meta.username;return e.nextState.application.requireInitilisation=t,e.nextState.application.config.initialisationConfigComponent=y.a,e})};var i=n("mvHQ"),o=n.n(i),r=n("woOf"),a=n.n(r),s=n("6ltY"),c=n.n(s),u=n("j9g7"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=n("73D8"),h=n.n(f),g=n("/Luh"),m=n.n(g),v=n("M4fF"),b=n.n(v),x=n("PJh5"),C=n.n(x),w=n("bN/m"),y=n("IBrK"),P=50,k=null;function S(e){return function(){var t=m.a.defer();return e.getProfile(function(e,n){e?t.reject(e):t.resolve(b.a.pick(n,["login","id","name","location","blog","avatar_url","bio"]))}),t.promise}}function _(e){return d()(e+"-"+c.a.name+"-"+c.a.os)}function R(e,t){var n=m.a.defer(),i={scopes:["public_repo"],note:_(e)};return t.createAuthorization(i,function(e,t){e?n.reject(e):n.resolve(t)}),n.promise}var q=void 0;function M(e,t,n){var i=m.a.defer(),o=e.meta,r=q.getRepo(o.username,o.repositoryName);return console.log("getPostAuthor",t),r.listCommits({sha:e.meta.branch,path:t.original&&t.original.path||t.path},function(e,o){if(e&&404!==e.error)i.reject(e);else{var r=o[o.length-1].author;if(r&&r.login!==n.login){S(q.getUser(r.login))().then(function(e){r=a()({},e);var n=a()({},t,{author:r});i.resolve(n)}).catch(function(e){return i.reject(e)})}else{r=a()({},n);var s=a()({},t,{author:r});i.resolve(s)}}}),i.promise}},cOI0:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,'.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,.5)}.cm-animate-fat-cursor,.cm-fat-cursor-mark{-webkit-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;background-color:#7e7}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;-webkit-font-feature-settings:"calt";font-feature-settings:"calt";font-variant-ligatures:contextual}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-webkit-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}',""])},cmzl:function(e,t,n){"use strict";var i={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"nuxt-progress",style:{width:this.percent+"%",height:this.height,"background-color":this.canSuccess?this.color:this.failedColor,opacity:this.show?1:0}})},staticRenderFns:[]};t.a=i},ct3O:function(e,t,n){"use strict";var i=n("FIB3"),o=n("FdPX");var r=function(e){n("wGIl")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},"d/OL":function(e,t,n){"use strict";t.a=function(e){e.on("hubpress:request-rendering-documents",function(e){console.info("asciidocPlugin - hubpress:request-rendering-documents"),console.log("asciidocPlugin - hubpress:request-rendering-documents",e);var t=e.rootState.application.config,n=(e.nextState.posts||[]).map(function(e){var n=o()({},e,h(t,e.content),{content:e.content}),i=c.a.pick(n,"attributes","author","html","tags","content","name","path","sha");n.title=i.title=i.attributes.doctitle,n.image=i.image=i.attributes["hp-image"],n.type=i.type=i.attributes["hp-type"],n.tags=i.tags=g(i.attributes),n.url=i.url=m(t,n.type,i.name);var r=o()({},n,{original:i});return n.type&&"post"!==n.type||(r.original.published_at=r.published_at=i.name.split("-").slice(0,3).join("-")),r});return e.nextState.posts=n,e}),e.on("requestRenderingPost",function(e){console.info("asciidocPlugin - requestRenderingPost"),console.log("asciidocPlugin - requestRenderingPost",e);var t=h(e.rootState.application.config,e.nextState.post.content);e.nextState.post=o()({},e.nextState.post,t),e.nextState.post.title=t.attributes.doctitle,e.nextState.post.image=t.attributes["hp-image"],e.nextState.post.type=t.attributes["hp-type"],e.nextState.post.tags=g(t.attributes),e.nextState.post.published_at=t.attributes.published_at||e.nextState.post.published_at||l()().format("YYYY-MM-DD");var n=t.attributes["hp-alt-title"];return e.nextState.post.type&&"post"!==e.nextState.post.type?e.nextState.post.name=d()(""+(n||e.nextState.post.title))+".adoc":e.nextState.post.name=d()(e.nextState.post.published_at+"-"+(n||e.nextState.post.title))+".adoc",e.nextState.post.url=m(e.rootState.application.config,e.nextState.post.type,e.nextState.post.name),e})};var i=n("woOf"),o=n.n(i),r=n("rzLr"),a=n.n(r),s=n("M4fF"),c=n.n(s),u=n("PJh5"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=a()(!1,window.XMLHttpRequest);function h(e,t){var n={doctype:"article",backend:"html5",safe:"unsafe",attributes:["showtitle!","allow-uri-read","imagesdir="+e.urls.site+"/images","icons=font"]},i=function(e){var t=e.split("pass::[more]");return{excerpt:t[0],full:t.join("")}}(t.replace(/gist::([0-9]*)\[(lines=[0-9]*\.\.[0-9]*)?,?(type=([\w.]*))?,?(file=([\w.]*))?\]/g,"[source,$4]\n----\ninclude::https://gist.githubusercontent.com/raw/$1/$6[$2]\n----\n")),o=f.load(i.excerpt,n),r=f.load(i.full,n);return{attributes:r.getAttributes(),excerpt:o.$convert(),html:r.$convert()}}function g(e){return e["hp-tags"]&&e["hp-tags"].split(",").map(function(e){return e.trim()}).filter(function(e){return""!==e})}function m(e,t,n){return e.urls.getContentUrl(n,t)}},dCDI:function(e,t,n){"use strict";(function(e,t){var i,o=n("pFYg"),r=n.n(o);i=function(e){var t;(t=e).overlayMode=function(e,n,i){return{startState:function(){return{base:t.startState(e),overlay:t.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(i){return{base:t.copyState(e,i.base),overlay:t.copyState(n,i.overlay),basePos:i.basePos,baseCur:null,overlayPos:i.overlayPos,overlayCur:null}},token:function(t,o){return(t!=o.streamSeen||Math.min(o.basePos,o.overlayPos)"},redirect:"/dashboard",meta:{auth:!0},children:t.nextState.routes.map(function(e){return console.log(e),e.entries}).reduce(function(e,t){return e.concat(t)},[])}]},i=new r.default(n);return i.routes=t.nextState.routes,i.beforeEach(function(e,t,n){var i=Object(a.default)();e.matched.some(function(e){return e.meta.auth})?i.state.authentication.isAuthenticated?n():n({path:"/login",query:{redirect:e.fullPath}}):n()}),i};var i=n("I3G/"),o=n.n(i),r=n("/ocq"),a=n("fbRD"),s=n("LEOq"),c=n.n(s),u=(n("7cn8"),n("YG9q")),l=n("QMmS"),p=n("3oxy"),d=n("H8Oa"),f=n("bxJ0"),h=n("WiUJ"),g=n("H1PK"),m=n("d/OL"),v=(n("Y2j8"),n("1AqL")),b=n("tLh+");console.log("router =============="),console.log("Router"),o.a.use(r.default),c.a.register(u.a,l.b,p.a,d.a,f.a,h.a,g.a,m.a,v.a,b.a),console.log("Registered plugins",c.a.list())},oS0V:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui center aligned grid"},[n("div",{staticClass:"ui middle aligned grid"},[e.requireInitilisation?n("div",{staticClass:"column"},[n("div",{staticClass:"ui segment"},[n("initialisation-component",{tag:"component"})],1)]):e._e(),e.requireInitilisation?e._e():n("div",{staticClass:"column",attrs:{id:"loginForm"}},[n("div",{staticClass:"ui segment"},[n("img",{staticClass:"image",attrs:{src:"https://hubpress.github.io/img/freeze/logo.png"}}),n("h2",{staticClass:"ui header"},[e._v("\n Welcome!\n ")]),n("div",{staticClass:"content"}),n("form",{staticClass:"ui medium form",on:{submit:function(t){t.preventDefault(),e.login({email:e.email,password:e.password})}}},[n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"user icon"}),n("input",{attrs:{type:"text",name:"email",placeholder:"Username or e-mail address"},domProps:{value:e.email},on:{input:e.updateEmail}})])]),n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"lock icon"}),n("input",{attrs:{type:"password",name:"password",placeholder:"Password"},domProps:{value:e.password},on:{input:e.updatePassword}})])]),e.isTwoFactorCodeRequired?n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"key icon"}),n("input",{attrs:{type:"text",name:"twoFactorCode",placeholder:"Two factor code"},domProps:{value:e.twoFactorCode},on:{input:e.updateTwoFactorCode}})])]):e._e(),n("button",{staticClass:"ui fluid large submit button",attrs:{type:"submit",name:"button"}},[e._v("Login")])]),e._m(0)])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui message"},[this._v("\n If you have questions about how to use HubPress, "),t("a",{attrs:{href:"https://hubpress.gitbooks.io/hubpress-knowledgebase/content/"}},[this._v("here is the right place.")])])}]};t.a=i},oz2E:function(e,t,n){"use strict";t.a={name:"dashboard",beforeCreate:function(){console.log("dashboard beforeCreate")},created:function(){console.log("dashboard created")}}},qZPA:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".html-rendering,.published-preview{min-width:100%;height:calc(100vh - 47px);min-height:calc(100vh - 47px)}",""])},qcny:function(e,t,n){"use strict";n.d(t,"b",function(){return D});var i=n("Xxa5"),o=n.n(i),r=n("//Fk"),a=(n.n(r),n("C4MV")),s=n.n(a),c=n("woOf"),u=n.n(c),l=n("Dd8w"),p=n.n(l),d=n("exGp"),f=n.n(d),h=n("MU8w"),g=(n.n(h),n("I3G/")),m=n.n(g),v=n("p3jY"),b=n.n(v),x=n("mtxM"),C=n("0F0d"),w=n("HBB+"),y=n("WRRc"),P=n("ct3O"),k=n("Hot+"),S=n("yTq1"),_=n("YLfZ"),R=n("J2Ti"),q=n("zQW4"),M=n("6hdJ");n.d(t,"a",function(){return P.a});var $,D=($=f()(o.a.mark(function e(t){var n,i,r,a,c,l,d;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(x.a)(t),(i=Object(R.a)(t)).$router=n,r=p()({router:n,store:i,nuxt:{defaultTransition:j,transitions:[j],setTransitions:function(e){return Array.isArray(e)||(e=[e]),e=e.map(function(e){return e=e?"string"==typeof e?u()({},j,{name:e}):u()({},j,e):j}),this.$options.nuxt.transitions=e,e},err:null,dateErr:null,error:function(e){e=e||null,r.context._errored=!!e,"string"==typeof e&&(e={statusCode:500,message:e});var n=this.nuxt||this.$options.nuxt;return n.dateErr=Date.now(),n.err=e,t&&(t.nuxt.error=e),e}}},S.a),i.app=r,a=t?t.next:function(e){return r.router.push(e)},c=void 0,t?c=n.resolve(t.url).route:(l=Object(_.d)(n.options.base),c=n.resolve(l).route),e.next=10,Object(_.m)(r,{route:c,next:a,error:r.nuxt.error.bind(r),store:i,payload:t?t.payload:void 0,req:t?t.req:void 0,res:t?t.res:void 0,beforeRenderFns:t?t.beforeRenderFns:void 0});case 10:if(d=function(e,t){if(!e)throw new Error("inject(key, value) has no key provided");if(!t)throw new Error("inject(key, value) has no value provided");r[e="$"+e]=t,i[e]=r[e];var n="__nuxt_"+e+"_installed__";m.a[n]||(m.a[n]=!0,m.a.use(function(){m.a.prototype.hasOwnProperty(e)||s()(m.a.prototype,e,{get:function(){return this.$root.$options[e]}})}))},window.__NUXT__&&window.__NUXT__.state&&i.replaceState(window.__NUXT__.state),"function"!=typeof q.a){e.next=15;break}return e.next=15,Object(q.a)(r.context,d);case 15:if("function"!=typeof M.a){e.next=18;break}return e.next=18,Object(M.a)(r.context,d);case 18:e.next=21;break;case 21:return e.abrupt("return",{app:r,router:n,store:i});case 22:case"end":return e.stop()}},e,this)})),function(e){return $.apply(this,arguments)});m.a.component(C.a.name,C.a),m.a.component(w.a.name,w.a),m.a.component(y.a.name,y.a),m.a.component(k.a.name,k.a),m.a.use(b.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var j={name:"page",mode:"out-in",appear:!0,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"}},r6qT:function(e,t,n){var i=n("HEYa");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("2b9275f1",i,!0,{sourceMap:!1})},"tLh+":function(e,t,n){"use strict";t.a=function(e){e.on("requestGenerateIndex",function(e){console.info("rssPlugin - requestGenerateIndex"),console.log("rssPlugin - requestGenerateIndex",e);var t=e.rootState.application.config.site||{},n=e.rootState.application.config.urls.site||"",i=e.nextState.publishedPosts||[],r=new o.a({title:t.title||"",description:t.description||"",feed_url:n+"/rss/",site_url:n,image_url:t.cover,ttl:"60"});i.forEach(function(e){r.item({title:e.title,description:e.html,url:""+n+e.url,categories:e.tags,author:e.author.name,date:e.published_at})});var a=r.xml(),s=[];return s.push({name:"RSS",path:"rss/index.xml",content:a,message:"Publish rss feed"}),e.nextState.elementsToPublish=(e.nextState.elementsToPublish||[]).concat(s),e})};var i=n("DVIz"),o=n.n(i)},u8s0:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"",""])},unZF:function(e,t,n){"use strict";var i=n("BO1k"),o=n.n(i),r=n("GfDd"),a=r.keys();function s(e){var t=r(e);return t.default?t.default:t}var c={},u=!0,l=!1,p=void 0;try{for(var d,f=o()(a);!(u=(d=f.next()).done);u=!0){var h=d.value;c[h.replace(/^\.\//,"").replace(/\.(js|ts)$/,"")]=s(h)}}catch(e){l=!0,p=e}finally{try{!u&&f.return&&f.return()}finally{if(l)throw p}}t.a=c},vKgl:function(e,t,n){var i=n("EgsU");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("44921a73",i,!0,{sourceMap:!1})},vXEZ:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".nuxt-progress{position:fixed;top:0;left:0;right:0;height:2px;width:0;-webkit-transition:width .2s,opacity .4s;transition:width .2s,opacity .4s;opacity:1;background-color:#efc14e;z-index:999999}",""])},wGIl:function(e,t,n){var i=n("m8kW");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("6bc7b368",i,!0,{sourceMap:!1})},wQtD:function(e,t,n){"use strict";t.a={name:"navigation-settings",data:function(){return{newNav:{label:"",url:""},navigation:this.$store.state.application.config.navigation||[]}},computed:{isNotValid:function(){return""===this.newNav.label.trim()||""===this.newNav.url.trim()}},methods:{remove:function(e){this.navigation.splice(e,1)},clear:function(){this.newNav={label:"",url:""}},add:function(e){this.navigation.push(e),this.clear()}}}},wrAo:function(e,t,n){"use strict";t.a={name:"hubpress-settings-social",computed:{social:function(){return this.$store.state.application.config.socialnetwork||{}}}}},yJpT:function(e,t,n){var i=n("j9sj");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("33615082",i,!0,{sourceMap:!1})},yTq1:function(e,t,n){"use strict";var i=n("//Fk"),o=n.n(i),r=n("I3G/"),a=n.n(r),s=n("F88d"),c=n("XSDV"),u=(n.n(c),{_default:function(){return n.e(0).then(n.bind(null,"Ma2J")).then(function(e){return e.default||e})}}),l={};t.a={head:{title:"Hubpress: A web application to build your Blog",meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{hid:"description",name:"description",content:"Nuxt.js project"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"},{rel:"stylesheet",href:"../static/semantic/semantic.min.css"}],style:[],script:[]},render:function(e,t){var n=e("nuxt-loading",{ref:"loading"}),i=e(this.layout||"nuxt");return e("div",{domProps:{id:"__nuxt"}},[n,e("transition",{props:{name:"layout",mode:"out-in"}},[e("div",{domProps:{id:"__layout"},key:this.layoutName},[i])])])},data:function(){return{layout:null,layoutName:""}},beforeCreate:function(){a.a.util.defineReactive(this,"nuxt",this.$options.nuxt)},created:function(){a.a.prototype.$nuxt=this,"undefined"!=typeof window&&(window.$nuxt=this),this.error=this.nuxt.error},mounted:function(){this.$loading=this.$refs.loading},watch:{"nuxt.err":"errorChanged"},methods:{errorChanged:function(){this.nuxt.err&&this.$loading&&(this.$loading.fail&&this.$loading.fail(),this.$loading.finish&&this.$loading.finish())},setLayout:function(e){e&&l["_"+e]||(e="default"),this.layoutName=e;var t="_"+e;return this.layout=l[t],this.layout},loadLayout:function(e){var t=this;e&&(u["_"+e]||l["_"+e])||(e="default");var n="_"+e;return l[n]?o.a.resolve(l[n]):u[n]().then(function(e){return l[n]=e,delete u[n],l[n]}).catch(function(e){if(t.$nuxt)return t.$nuxt.error({statusCode:500,message:e.message})})}},components:{NuxtLoading:s.a}}},yUYC:function(e,t,n){"use strict";var i=n("I3G/"),o=n.n(i);t.a={name:"nuxt-loading",data:function(){return{percent:0,show:!1,canSuccess:!0,duration:5e3,height:"2px",color:"#3B8070",failedColor:"red"}},methods:{start:function(){var e=this;return this.show=!0,this.canSuccess=!0,this._timer&&(clearInterval(this._timer),this.percent=0),this._cut=1e4/Math.floor(this.duration),this._timer=setInterval(function(){e.increase(e._cut*Math.random()),e.percent>95&&e.finish()},100),this},set:function(e){return this.show=!0,this.canSuccess=!0,this.percent=Math.floor(e),this},get:function(){return Math.floor(this.percent)},increase:function(e){return this.percent=this.percent+Math.floor(e),this},decrease:function(e){return this.percent=this.percent-Math.floor(e),this},finish:function(){return this.percent=100,this.hide(),this},pause:function(){return clearInterval(this._timer),this},hide:function(){var e=this;return clearInterval(this._timer),this._timer=null,setTimeout(function(){e.show=!1,o.a.nextTick(function(){setTimeout(function(){e.percent=0},200)})},500),this},fail:function(){return this.canSuccess=!1,this}}}},ys1n:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".grid[data-v-94154cf6]{margin:0;height:100%;background-color:#dadada}#loginForm.column[data-v-94154cf6]{max-width:450px;text-align:center}.column[data-v-94154cf6]{max-width:750px}",""])},zQW4:function(e,t,n){"use strict";for(var i=n("woOf"),o=n.n(i),r=n("//Fk"),a=n.n(r),s=n("BO1k"),c=n.n(s),u=n("mtWM"),l=n.n(u),p={setHeader:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",i=!0,o=!1,r=void 0;try{for(var a,s=c()(Array.isArray(n)?n:[n]);!(i=(a=s.next()).done);i=!0){var u=a.value;if(!t)return void delete this.defaults.headers[u][e];this.defaults.headers[u][e]=t}}catch(e){o=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw r}}},setToken:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",i=e?(t?t+" ":"")+e:null;this.setHeader("Authorization",i,n)},onRequest:function(e){this.interceptors.request.use(function(t){return e(t)||t})},onResponse:function(e){this.interceptors.response.use(function(t){return e(t)||t})},onRequestError:function(e){this.interceptors.request.use(void 0,function(t){return e(t)||a.a.reject(t)})},onResponseError:function(e){this.interceptors.response.use(void 0,function(t){return e(t)||a.a.reject(t)})},onError:function(e){this.onRequestError(e),this.onResponseError(e)}},d=function(e){p["$"+e]=function(){return this[e].apply(this,arguments).then(function(e){return e&&e.data})}},f=["request","delete","get","head","options","post","put","patch"],h=0;h1&&(r=(e.path||"")+"page/"+i+"/index.html"),i>1&&(v=i-1),ii-1||g+1===t.length){var y=l.a.template(e.template,{pagination:{prev:v,next:m,page:i,pages:h,total:t.length,limit:u},context:"index"===e.template&&0===v?"home":e.template,posts:a,tag:e.tag,author:e.author,title:o.title,description:o.description,socialnetwork:p,relativeUrl:""},{config:n,theme:e.opts.nextState.theme});s.push({name:"page-"+i,path:r,content:y,message:"Publish page-"+i+" "+e.template}),a=[],i++}}),e.opts.nextState.elementsToPublish=(e.opts.nextState.elementsToPublish||[]).concat(s),e.opts}}]),e}();t.a=new f},Btpu:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".CodeMirror-sizer{padding-top:2em;font-size:18.285px;font-size:1.14285714rem;max-width:750px!important;line-height:1.5;display:block}@media only screen and (max-width:767px){.CodeMirror-sizer{width:auto!important;margin-left:1em!important;margin-right:1em!important}}@media only screen and (min-width:768px){.CodeMirror-sizer{margin-left:auto!important;margin-right:auto!important}}.CodeMirror-gutter-wrapper{display:none!important}.cm-header{font-size:1.8em;font-weight:700}.cm-header-2{font-size:1.6em;font-weight:700}.cm-header-3{font-size:1.45em;font-weight:700}.cm-header-4{font-size:1.3em;font-weight:700}.cm-header-5{font-size:1.15em;font-weight:700}.cm-header-6{font-size:1.05em;font-weight:700}.post-editor{padding-top:47px}.CodeMirror,.post-container,.post-editor,.post-editor .ui.grid,.post-editor .ui.grid .column{height:100%;min-height:100%}.post-editor .ui.grid>.row{padding-top:0;padding-bottom:0}.post-editor .ui.grid.light>.row{background-color:#f5f5f5;color:#202020}.post-editor .ui.grid.light>.row .ui.header{color:#202020}.post-editor .ui.grid.light>.row a{color:#aa759f}.post-editor .ui.grid.dark>.row,.post-editor .ui.grid.dark>.row .ui.header{background-color:#3f3f3f;color:#dcdccc}.post-editor .ui.grid.dark>.row .ui.header{color:#dcdccc}.post-editor .ui.grid.dark>.row a{color:#dcdcaa}.post-editor .ui.grid{padding-top:0;padding-bottom:0;margin:0}.post-editor .ui.grid .column{padding-top:0;margin-top:0;padding-bottom:0;margin-bottom:0}.vue-codemirror.container{min-height:100%;height:100%}#asciidoc-content,#asciidoc-preview{height:calc(100vh - 47px);min-height:calc(100vh - 47px)}#asciidoc-preview{overflow-y:auto;padding-top:2em;font-size:1.2em;font-family:Menlo,Monaco,Consolas,Courier New,monospace;word-wrap:break-word}#asciidoc-preview>div{max-width:750px!important;margin:auto}#asciidoc-preview>div .ui.header{font-family:Menlo,Monaco,Consolas,Courier New,monospace}#asciidoc-preview .content pre{background-color:#dcdccc;color:#2e2e2e;padding:10px;border-radius:5px;overflow:auto}#asciidoc-preview .paragraph{padding:.75em 0}#asciidoc-preview img{width:100%;max-width:100%}@media screen and (max-width:992px){#asciidoc-content{display:block}#asciidoc-content.is-preview-visible,#asciidoc-preview{display:none}#asciidoc-preview.is-preview-visible{display:block}}.item .ui.icon .rocket.unpublish{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.cm-s-zenburn.CodeMirror .CodeMirror-gutters{background:#3f3f3f!important}.cm-s-zenburn.CodeMirror .CodeMirror-foldgutter-open,.CodeMirror-foldgutter-folded{color:#999}.cm-s-zenburn.CodeMirror .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-zenburn.CodeMirror{background-color:#3f3f3f;color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-builtin{color:#dcdccc;font-weight:700}.cm-s-zenburn.CodeMirror span.cm-comment{color:#7f9f7f}.cm-s-zenburn.CodeMirror span.cm-keyword{color:#f0dfaf;font-weight:700}.cm-s-zenburn.CodeMirror span.cm-atom{color:#bfebbf}.cm-s-zenburn.CodeMirror span.cm-def{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-variable{color:#dfaf8f}.cm-s-zenburn.CodeMirror span.cm-variable-2{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-string,.cm-s-zenburn.CodeMirror span.cm-string-2{color:#cc9393}.cm-s-zenburn.CodeMirror span.cm-number{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-tag{color:#93e0e3}.cm-s-zenburn.CodeMirror span.cm-attribute,.cm-s-zenburn.CodeMirror span.cm-property{color:#dfaf8f}.cm-s-zenburn.CodeMirror span.cm-qualifier{color:#7cb8bb}.cm-s-zenburn.CodeMirror span.cm-meta{color:#f0dfaf}.cm-s-zenburn.CodeMirror span.cm-header,.cm-s-zenburn.CodeMirror span.cm-operator{color:#f0efd0}.cm-s-zenburn.CodeMirror span.CodeMirror-matchingbracket{-webkit-box-sizing:border-box;box-sizing:border-box;background:transparent;border-bottom:1px solid}.cm-s-zenburn.CodeMirror span.CodeMirror-nonmatchingbracket{border-bottom:1px solid;background:none}.cm-s-zenburn.CodeMirror .CodeMirror-activeline,.cm-s-zenburn.CodeMirror .CodeMirror-activeline-background{background:#000}.cm-s-zenburn.CodeMirror div.CodeMirror-selected{background:#545454}.cm-s-zenburn.CodeMirror .CodeMirror-focused div.CodeMirror-selected{background:#4f4f4f}.cm-s-base16-light.CodeMirror{background:#f5f5f5;color:#202020}.cm-s-base16-light.CodeMirror div.CodeMirror-selected{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-line::selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span::selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span>span::selection{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-line::-moz-selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span::-moz-selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span>span::-moz-selection{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-gutters{background:#f5f5f5;border-right:0}.cm-s-base16-light.CodeMirror .CodeMirror-guttermarker{color:#ac4142}.cm-s-base16-light.CodeMirror .CodeMirror-guttermarker-subtle,.cm-s-base16-light.CodeMirror .CodeMirror-linenumber{color:#b0b0b0}.cm-s-base16-light.CodeMirror .CodeMirror-cursor{border-left:1px solid #505050}.cm-s-base16-light.CodeMirror span.cm-comment{color:#8f5536}.cm-s-base16-light.CodeMirror span.cm-atom,.cm-s-base16-light.CodeMirror span.cm-number{color:#aa759f}.cm-s-base16-light.CodeMirror span.cm-attribute,.cm-s-base16-light.CodeMirror span.cm-property{color:#90a959}.cm-s-base16-light.CodeMirror span.cm-keyword{color:#ac4142}.cm-s-base16-light.CodeMirror span.cm-string{color:#f4bf75}.cm-s-base16-light.CodeMirror span.cm-variable{color:#90a959}.cm-s-base16-light.CodeMirror span.cm-variable-2{color:#6a9fb5}.cm-s-base16-light.CodeMirror span.cm-def{color:#d28445}.cm-s-base16-light.CodeMirror span.cm-bracket{color:#202020}.cm-s-base16-light.CodeMirror span.cm-tag{color:#ac4142}.cm-s-base16-light.CodeMirror span.cm-link{color:#aa759f}.cm-s-base16-light.CodeMirror span.cm-error{background:#ac4142;color:#505050}.cm-s-base16-light.CodeMirror .CodeMirror-activeline-background{background:#dddcdc}.cm-s-base16-light.CodeMirror .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}",""])},E1SC:function(e,t,n){"use strict";var o=n("SUis"),i=n("7Fxy");var r=function(e){n("vKgl")},a=n("VU/8")(o.a,i.a,!1,r,null,null);t.a=a.exports},EgsU:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".posts-container .menu{min-height:47px}.posts-container{height:100%;overflow:auto}.posts.ui.container{padding-top:60px}.image.cover>div{width:100%;height:200px;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}@media screen and (max-width:622px){.posts.ui.container .ui.card .image.cover{display:none}}",""])},F6eF:function(e,t,n){"use strict";var o=n("7t+N"),i=n.n(o);t.a={name:"initialise-configuration",data:function(){return{username:"",repositoryName:"hubpress.io",branch:"master",cname:void 0}},mounted:function(){i()("div.dropdown").dropdown()},computed:{isValid:function(){return""!=this.username.trim()&&""!=this.repositoryName.trim()}},methods:{submit:function(){var e={username:this.username,repositoryName:this.repositoryName,branch:this.branch,cname:this.cname};this.$store.dispatch("application:save-startup-config",e)}}}},F88d:function(e,t,n){"use strict";var o=n("yUYC"),i=n("cmzl");var r=function(e){n("0xYM")},a=n("VU/8")(o.a,i.a,!1,r,null,null);t.a=a.exports},FIB3:function(e,t,n){"use strict";t.a={name:"nuxt-error",props:["error"],head:function(){return{title:this.message,meta:[{name:"viewport",content:"width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"}]}},computed:{statusCode:function(){return this.error&&this.error.statusCode||500},message:function(){return this.error.message||"Error"}}}},FdPX:function(e,t,n){"use strict";var o={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"__nuxt-error-page"},[t("div",{staticClass:"error"},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"90",height:"90",fill:"#DBE1EC",viewBox:"0 0 48 48"}},[t("path",{attrs:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}})]),t("div",{staticClass:"title"},[this._v(this._s(this.message))]),404===this.statusCode?t("p",{staticClass:"description"},[t("nuxt-link",{staticClass:"error-link",attrs:{to:"/"}},[this._v("Back to the home page")])],1):this._e(),this._m(0)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"logo"},[t("a",{attrs:{href:"https://nuxtjs.org",target:"_blank",rel:"noopener"}},[this._v("Nuxt.js")])])}]};t.a=o},FoP8:function(module,__webpack_exports__,__webpack_require__){"use strict";function applyScript(hasChanged){if(hasChanged){for(var element=document.getElementById("html-rendering"),scripts=element.getElementsByTagName("script"),addedScripts=[],i=0;i.menu[data-v-0536f20d]{height:47px}",""])},HUXV:function(e,t,n){"use strict";var o=n("6Ndi");t.a={refreshAfterSavedConfig:function(e){return o.a.fireRequestTheme(e).then(function(t){return o.a.fireReceiveTheme(e)}).then(function(e){return o.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return o.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return console.time("Build content"),e}).then(function(e){return o.a.fireRequestGenerateIndex(e)}).then(function(e){return o.a.fireReceiveGenerateIndex(e)}).then(function(e){return o.a.fireRequestGeneratePosts(e)}).then(function(e){return o.a.fireReceiveGeneratePosts(e)}).then(function(e){return o.a.fireRequestGenerateTags(e)}).then(function(e){return o.a.fireReceiveGenerateTags(e)}).then(function(e){return o.a.fireRequestGenerateAuthors(e)}).then(function(e){return o.a.fireReceiveGenerateAuthors(e)}).then(function(e){return console.timeEnd("Build content"),e}).then(function(e){return o.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return o.a.fireReceiveSaveRemotePublishedElements(e)})}}},"Hot+":function(e,t,n){"use strict";var o=n("I3G/"),i=n.n(o),r=n("HBB+"),a=n("ct3O"),s=n("YLfZ");t.a={name:"nuxt",props:["nuxtChildKey","keepAlive"],render:function(e){return this.nuxt.err?e("nuxt-error",{props:{error:this.nuxt.err}}):e("nuxt-child",{key:this.routerViewKey,props:this.$props})},beforeCreate:function(){i.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(s.b)(this.$route.matched[0].path)(this.$route.params);var e=this.$route.matched[0]&&this.$route.matched[0].components.default;return e&&e.options&&e.options.key?"function"==typeof e.options.key?e.options.key(this.$route):e.options.key:this.$route.path}},components:{NuxtChild:r.a,NuxtError:a.a}}},IBrK:function(e,t,n){"use strict";var o=n("F6eF"),i=n("N3Gg");var r=function(e){n("XkEn")},a=n("VU/8")(o.a,i.a,!1,r,null,null);t.a=a.exports},Ie2b:function(e,t){},Irdm:function(e,t,n){"use strict";var o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"settings-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.submit(t)}}},[e._m(0)])])]),n("div",{staticClass:"ui container settings-content"},[e._m(1),n("div",{staticClass:"ui divider"}),n("form",{staticClass:"ui form",attrs:{id:"mainForm"}},[n("div",{staticClass:"ui secondary pointing menu"},[n("div",{staticClass:"item active",attrs:{"data-tab":"application",id:"application-tab"}},[e._v("Application")]),e._l(e.tabs,function(t){return n("div",{key:t.id,staticClass:"item",attrs:{"data-tab":t.id}},[e._v(e._s(t.label))])})],2),n("div",{staticClass:"ui bottom attached tab segment active",attrs:{"data-tab":"application"}},[n("h4",{staticClass:"ui dividing header"},[e._v("Domain")]),n("div",{staticClass:"field"},[n("label",[e._v("CNAME")]),n("input",{attrs:{type:"text",name:"application-cname",placeholder:"CNAME"},domProps:{value:e.config.meta.cname}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Metadata (set in config.json)")]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub username")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-username",placeholder:"Github username"},domProps:{value:e.config.meta.username}})]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub repository name")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-repository-name",placeholder:"GitHub repository name"},domProps:{value:e.config.meta.repositoryName}})]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub branch")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-branch",placeholder:"GitHub branch"},domProps:{value:e.config.meta.branch}})]),e._m(2)]),e._l(e.tabs,function(e){return n("div",{key:e.id,staticClass:"ui bottom attached tab segment ",attrs:{"data-tab":e.id}},[n(e.id,{tag:"component"})],1)})],2)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Save your settings","data-position":"bottom right"}},[t("i",{staticClass:"save large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"ui center aligned icon header"},[t("i",{staticClass:"circular settings icon"}),this._v("\n Settings\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"disabled field"},[t("label",[this._v("Blog URL")]),t("input",{attrs:{type:"text",disabled:"",name:"application-blog-url",placeholder:"Blog URL"}})])}]};t.a=o},J2Ti:function(e,t,n){"use strict";n.d(t,"a",function(){return w});var o=n("woOf"),i=n.n(o),r=n("BO1k"),a=n.n(r),s=n("I3G/"),c=n.n(s),u=n("NYxO");c.a.use(u.default);var l=n("1H2/"),p=l.keys(),d={},f=void 0;if(p.forEach(function(e){-1!==e.indexOf("./index.")&&(f=e)}),f&&(d=k(f)),"function"!=typeof d){d.modules||(d.modules={});var h=!0,g=!1,m=void 0;try{for(var v,b=a()(p);!(h=(v=b.next()).done);h=!0){var x=v.value,C=x.replace(/^\.\//,"").replace(/\.(js|ts)$/,"");if("index"!==C){var y=C.split(/\//);(e=P(d,y))[C=y.pop()]=k(x),e[C].namespaced=!0}}}catch(e){g=!0,m=e}finally{try{!h&&b.return&&b.return()}finally{if(g)throw m}}}var w=d instanceof Function?d:function(){return new u.default.Store(i()({strict:!1},d,{state:d.state instanceof Function?d.state():{}}))};function k(e){var t=l(e),n=t.default||t;if(n.commit)throw new Error("[nuxt] store/"+e.replace("./","")+" should export a method which returns a Vuex instance.");if(n.state&&"function"!=typeof n.state)throw new Error("[nuxt] state should be a function in store/"+e.replace("./",""));return n}function P(e,t){if(1===t.length)return e.modules;var n=t.shift();return e.modules[n]=e.modules[n]||{},e.modules[n].namespaced=!0,e.modules[n].modules=e.modules[n].modules||{},P(e.modules[n],t)}},JtYm:function(e,t,n){"use strict";var o=n("6Ndi");function i(e){return o.a.fireRequestLocalPosts(e).then(function(e){return o.a.fireReceiveLocalPosts(e)})}t.a={deletePost:function(e){return o.a.fireRequestLocalPost(e).then(function(e){return o.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=t,e}).then(function(e){return e.nextState.post.original?o.a.fireRequestDeleteRemotePost(e).then(function(e){return o.a.fireReceiveDeleteRemotePost(e)}):e}).then(function(e){return o.a.fireRequestDeleteLocalPost(e)}).then(function(e){return o.a.fireReceiveDeleteLocalPost(e)}).then(function(e){return e.nextState.post.published?o.a.fireRequestDeleteRemotePublishedPost(e).then(function(e){return o.a.fireReceiveDeleteRemotePublishedPost(e)}).then(function(e){return o.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return o.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return o.a.fireRequestGenerateIndex(e)}).then(function(e){return o.a.fireReceiveGenerateIndex(e)}).then(function(e){return o.a.fireRequestGenerateTags(e)}).then(function(e){return o.a.fireReceiveGenerateTags(e)}).then(function(e){return o.a.fireRequestGenerateAuthors(e)}).then(function(e){return o.a.fireReceiveGenerateAuthors(e)}).then(function(e){return o.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return o.a.fireReceiveSaveRemotePublishedElements(e)}):e}).then(i)},getLocalPost:function(e){return o.a.fireRequestLocalPost(e).then(function(e){return o.a.fireReceiveLocalPost(e)})},getLocalPosts:i,remoteSavePost:function(e){return e.currentState.elementsToPublish=[],o.a.fireRequestLocalPost(e).then(function(e){return o.a.fireReceiveLocalPost(e)}).then(function(e){return o.a.fireRequestSaveRemotePost(e)}).then(function(e){return o.a.fireReceiveSaveRemotePost(e)}).then(function(e){return o.a.fireRequestSaveLocalPost(e)}).then(function(e){return o.a.fireReceiveSaveLocalPost(e)})},renderAndSavePost:function(e){return o.a.fireRequestLocalPost(e).then(function(e){return o.a.fireReceiveLocalPost(e)}).then(function(e){return e.nextState.post.content=e.payload.post.content,e}).then(function(e){return o.a.fireRequestRenderingPost(e)}).then(function(e){return o.a.fireReceiveRenderingPost(e)}).then(function(e){return e.nextState.post&&e.nextState.post.title?o.a.fireRequestSaveLocalPost(e).then(function(e){return o.a.fireReceiveSaveLocalPost(e)}):e})},publishPost:function(e){return e.currentState.elementsToPublish=[],o.a.fireRequestLocalPost(e).then(function(e){return o.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=_.union(e.nextState.post.tags,t),e}).then(function(e){return o.a.fireRequestSaveRemotePost(e)}).then(function(e){return o.a.fireReceiveSaveRemotePost(e)}).then(function(e){return e.nextState.post.original.author=e.nextState.post.original.author||e.nextState.post.author,e.nextState.post.published=1,e}).then(function(e){return o.a.fireRequestSaveLocalPost(e)}).then(function(e){return o.a.fireReceiveSaveLocalPost(e)}).then(function(e){return o.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return o.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return o.a.fireRequestGeneratePost(e)}).then(function(e){return o.a.fireReceiveGeneratePost(e)}).then(function(e){return"post"!==e.nextState.post.type?e:o.a.fireRequestGenerateIndex(e).then(function(e){return o.a.fireReceiveGenerateIndex(e)}).then(function(e){return o.a.fireRequestGenerateTags(e)}).then(function(e){return o.a.fireReceiveGenerateTags(e)}).then(function(e){return o.a.fireRequestGenerateAuthors(e)}).then(function(e){return o.a.fireReceiveGenerateAuthors(e)})}).then(function(e){return o.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return o.a.fireReceiveSaveRemotePublishedElements(e)})},unpublishPost:function(e){return e.currentState.elementsToPublish=[],o.a.fireRequestLocalPost(e).then(function(e){return o.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=t,e}).then(function(e){return o.a.fireRequestDeleteRemotePublishedPost(e)}).then(function(e){return o.a.fireReceiveDeleteRemotePublishedPost(e)}).then(function(e){return e.nextState.post.published=0,e}).then(function(e){return o.a.fireRequestSaveLocalPost(e)}).then(function(e){return o.a.fireReceiveSaveLocalPost(e)}).then(function(e){return o.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return o.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return"post"!==e.nextState.post.type?e:o.a.fireRequestGenerateIndex(e).then(function(e){return o.a.fireReceiveGenerateIndex(e)}).then(function(e){return o.a.fireRequestGenerateTags(e)}).then(function(e){return o.a.fireReceiveGenerateTags(e)}).then(function(e){return o.a.fireRequestGenerateAuthors(e)}).then(function(e){return o.a.fireReceiveGenerateAuthors(e)})}).then(function(e){return o.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return o.a.fireReceiveSaveRemotePublishedElements(e)})}}},KMrN:function(e,t,n){"use strict";var o=n("LEOq"),i=n.n(o);t.a={authenticate:function(e){return function(e){return i.a.fire("requestAuthentication",e)}(e).then(function(e){return(t=e).nextState.twoFactorRequired?payload:i.a.fire("receiveAuthentication",t);var t})},initialize:function(e){return function(e){return i.a.fire("requestSavedAuth",e)}(e).then(function(e){return t=e,i.a.fire("receiveSavedAuth",t);var t})}}},KOTd:function(e,t,n){"use strict";t.a=function(e){console.info("AuthorGenerator - generate"),console.log("AuthorGenerator - generate",e);var t=void 0;if(!s.a.isTemplateAvailable("author"))return e;t=e.nextState.author?e.nextState.publishedPosts.filter(function(t){return t.author.login===e.nextState.author.login}):e.nextState.publishedPosts;var n=r.a.reduce(t,function(e,t){return e[t.author.login]=e[t.author.login]||[],e[t.author.login].push(t),e},{}),i=e;return r.a.each(n,function(e,t){var n=e[0].author;n.name=n.name||n.login,n.slug=t,n.website=n.blog,n.status="",i=o.a.generate({opts:i,posts:e,author:n,template:"author",path:"author/"+t+"/"})}),i};var o=n("APUd"),i=n("M4fF"),r=n.n(i),a=n("j+6P"),s=n.n(a),c=n("n+xr");n.n(c)},KgKs:function(e,t,n){"use strict";t.a=function(e,t){console.info("PostGenerator - generate"),console.log("PostGenerator - generate",e);var n=t,o=i()({},n.original);o.tags=a.a.map(o.tags,function(e){return{name:e,slug:l()(e)}});var r=o.author;o.author={id:r.id,name:r.name||r.login,location:r.location,website:r.blog,image:r.avatar_url,profile_image:r.avatar_url,bio:r.bio,status:"",slug:r.login};var s=e.rootState.application.config,u=s.urls;e.nextState.theme.name,e.nextState.theme.version,s.urls.theme;o.urls=u,o.status="published",o.feature_image=o.image;var p=c.a.template(n.type||"post",{context:n.type||"post",socialnetwork:s.socialnetwork,relativeUrl:n.url,post:o,author:o.author},{config:s,theme:e.nextState.theme}),d=[];return d.push({title:n.title,image:n.image,name:n.name,path:s.urls.getContentGhPath(n.name,n.type),url:s.urls.getContentGhPath(n.name,n.type),content:p,message:"Publish "+n.name,published_at:n.published_at}),e.nextState.elementsToPublish=(e.nextState.elementsToPublish||[]).concat(d),e};var o=n("woOf"),i=n.n(o),r=n("M4fF"),a=n.n(r),s=n("j+6P"),c=n.n(s),u=n("n+xr"),l=n.n(u)},LB67:function(e,t,n){"use strict";var o=n("6Ndi");t.a={authenticate:function(e){return o.a.fireRequestAuthentication(e).then(function(e){return o.a.fireReceiveAuthentication(e)})}}},LnjV:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"",""])},MHN4:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".about-content{padding-top:60px}",""])},Mha6:function(e,t,n){var o=n("ys1n");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("4942fa76",o,!0,{sourceMap:!1})},N3Gg:function(e,t,n){"use strict";var o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"initialise-configuration"},[e._m(0),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"content"},[e._v("\n We need to initialize your configuration before a first use.\n ")]),n("div",{staticClass:"ui divider"}),n("form",{staticClass:"ui form",attrs:{id:"configurationForm"},on:{submit:function(t){t.preventDefault(),e.submit()}}},[n("div",{staticClass:"required field"},[n("label",[e._v("Username")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.username,expression:"username"}],attrs:{type:"text",name:"configuration-username",placeholder:"Your github username"},domProps:{value:e.username},on:{input:function(t){t.target.composing||(e.username=t.target.value)}}})]),n("div",{staticClass:"required field"},[n("label",[e._v("Repository name")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.repositoryName,expression:"repositoryName"}],attrs:{type:"text",name:"configuration-cname",placeholder:"The name of your repository"},domProps:{value:e.repositoryName},on:{input:function(t){t.target.composing||(e.repositoryName=t.target.value)}}})]),n("div",{staticClass:"required field"},[n("label",[e._v("Branch")]),n("div",{staticClass:"ui selection dropdown"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.branch,expression:"branch"}],attrs:{type:"hidden",name:"branch"},domProps:{value:e.branch},on:{input:function(t){t.target.composing||(e.branch=t.target.value)}}}),n("i",{staticClass:"dropdown icon"}),n("div",{staticClass:"default text"},[e._v("master")]),e._m(1)])]),n("div",{staticClass:"field"},[n("label",[e._v("Domain name")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.cname,expression:"cname"}],attrs:{type:"text",name:"configuration-cname",placeholder:"Your domain name if you have one"},domProps:{value:e.cname},on:{input:function(t){t.target.composing||(e.cname=t.target.value)}}})]),n("button",{staticClass:"ui fluid large submit button",attrs:{type:"submit",name:"button",disabled:!e.isValid}},[e._v("Ok, let's go!")])]),e._m(2)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"ui center aligned icon header"},[t("i",{staticClass:"circular configure icon"}),this._v("\n Configuration\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"menu"},[t("div",{staticClass:"item",attrs:{"data-value":"master"}},[this._v("master")]),t("div",{staticClass:"item",attrs:{"data-value":"gh-pages"}},[this._v("gh-pages")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui message"},[this._v("\n If you have questions about how to use HubPress, "),t("a",{attrs:{href:"https://hubpress.gitbooks.io/hubpress-knowledgebase/content/"}},[this._v("here is the right place.")])])}]};t.a=o},NpFX:function(e,t,n){"use strict";var o=n("FoP8"),i=n("e3NT");var r=function(e){n("epiJ")},a=n("VU/8")(o.a,i.a,!1,r,null,null);t.a=a.exports},Pm0L:function(e,t,n){"use strict";n.d(t,"e",function(){return o}),n.d(t,"f",function(){return i}),n.d(t,"g",function(){return r}),n.d(t,"h",function(){return a}),n.d(t,"d",function(){return s}),n.d(t,"c",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"a",function(){return l});var o="login:submit",i="login:updateEmail",r="login:updatePassword",a="login:updateTwoFactorCode",s="authorisation:request-login",c="authorisation:receive-login",u="authorisation:failure-login",l="authorisation:authentication-done"},Q7NK:function(e,t,n){"use strict";(function(e,t){var o,i=n("pFYg"),r=n.n(i);o=function(e){e.defineMode("asciidoc",function(e,t){var n=1e3,o=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],o=[],i=0,r=this.matchMappings[t]={defaultToken:"text"},a="g",s=[],c=0;c1?this.$applyToken:u.token);p>1&&(/\\\d/.test(u.regex)?l=u.regex.replace(/\\([0-9]+)/g,function(e,t){return"\\"+(parseInt(t,10)+i+1)}):(p=1,l=this.removeCapturingGroups(u.regex)),u.splitRegex||"string"==typeof u.token||s.push(u)),r[i]=c,i+=p,o.push(l),u.onMatch||(u.onMatch=null)}}s.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)},this),this.regExps[t]=new RegExp("("+o.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(e){n=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var o=[],i=0,r=n.length;il){var m=e.substring(l,g-h.length);p.type==d?p.value+=m:(p.type&&u.push(p),p={type:d,value:m})}for(var v=0;vn){for(;l1&&o[0]!==i&&o.unshift(i),{tokens:u,state:o.length?o:i}}}).call(o.prototype);var i={empty:null,text:null,keyword:"keyword",control:"keyword",operator:"operator",constant:"atom",numeric:"number",character:"atom",escape:"atom",variable:"variable",parameter:"variable-3",language:"variable-2",comment:"comment",line:"comment","double-slash":"comment","double-dash":"comment","number-sign":"comment",percentage:"comment",block:"comment",doc:"comment",string:"string",quoted:"string",single:"string",double:"string",triple:"string",unquoted:"string",interpolated:"string",regexp:"string-2",meta:"keyword",literal:"qualifier",support:"builtin",markup:"tag",underline:"link",link:"link",strong:"strong",heading:"header",heading2:"header-2",heading3:"header-3",heading4:"header-4",heading5:"header-5",heading6:"header-6",em:"em",list:"variable-2",numbered:"variable-2",unnumbered:"variable-2",quote:"quote",raw:"variable-2",invalid:"error",illegal:"invalidchar",deprecated:"error"},r=function(e,t){var n=t.plannedTokens.shift();return void 0===n?null:(e.match(n.value),function(e){for(var t=null,n=0;n0)return r(e,t);var n=t.current,o=e.match(/.*$/,!1)[0],i=s.getLineTokens(o,n);return t.plannedTokens=i.tokens,t.current=i.state,r(e,t)},s=new o((new function(){function e(e){return(/\w/.test(e)?"\\b":"(?:\\B|^)")+e+"[^"+e+"].*?"+e+"(?![\\w*])"}this.$rules={start:[{token:"empty",regex:/$/},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"literal",regex:/^-{4,}\s*$/,next:"literalBlock"},{token:"literal",regex:/^\+{4,}\s*$/,next:"passthroughBlock"},{token:"keyword",regex:/^={4,}\s*$/},{token:"text",regex:/^\s*$/},{token:"empty",regex:"",next:"dissallowDelimitedBlock"}],dissallowDelimitedBlock:[{include:"paragraphEnd"},{token:"comment",regex:"^//.+$"},{token:"keyword",regex:"^(?:NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s"},{include:"listStart"},{token:"literal",regex:/^\s+.+$/,next:"indentedBlock"},{token:"empty",regex:"",next:"text"}],paragraphEnd:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"commentBlock"},{token:"tableBlock",regex:/^\s*[|!]=+\s*$/,next:"tableBlock"},{token:"keyword",regex:/^(?:--|''')\s*$/,next:"start"},{token:"option",regex:/^\[.*\]\s*$/,next:"start"},{token:"pageBreak",regex:/^>{3,}$/,next:"start"},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"titleUnderline",regex:/^(?:={2,}|-{2,}|~{2,}|\^{2,}|\+{2,})\s*$/,next:"start"},{token:"singleLineTitle",regex:/^={1}\s+\S.*$/,next:"start"},{token:"singleLineTitle2",regex:/^={2}\s+\S.*$/,next:"start"},{token:"singleLineTitle3",regex:/^={3}\s+\S.*$/,next:"start"},{token:"singleLineTitle4",regex:/^={4}\s+\S.*$/,next:"start"},{token:"singleLineTitle5",regex:/^={5}\s+\S.*$/,next:"start"},{token:"singleLineTitle6",regex:/^={6}\s+\S.*$/,next:"start"},{token:"otherBlock",regex:/^(?:\*{2,}|_{2,})\s*$/,next:"start"},{token:"optionalTitle",regex:/^\.[^.\s].+$/,next:"start"}],listStart:[{token:"keyword",regex:/^\s*(?:\d+\.|[a-zA-Z]\.|[ixvmIXVM]+\)|\*{1,5}|-|\.{1,5})\s/,next:"listText"},{token:"meta.tag",regex:/^.+(?::{2,4}|;;)(?: |$)/,next:"listText"},{token:"keyword",regex:/^\+\s*$/,next:"start"}],text:[{token:["link","link"],regex:/((?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+)(\[.*?\])/},{token:["link","link"],regex:/(?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+/},{token:"link",regex:/\b[\w\.\/\-]+@[\w\.\/\-]+\b/},{include:"macros"},{include:"paragraphEnd"},{token:"literal",regex:/\+{3,}/,next:"smallPassthrough"},{token:"escape",regex:/\((?:C|TM|R)\)|\.{3}|->|<-|=>|<=|&#(?:\d+|x[a-fA-F\d]+);|(?: |^)--(?=\s+\S)/},{token:"escape",regex:/\\[_*'`+#]|\\{2}[_*'`+#]{2}/},{token:"keyword",regex:/\s\+$/},{token:"text",regex:"[a-zA-Z¡-￿]+\\b"},{token:["keyword","string","keyword"],regex:/(<<[\w\d\-$]+,)(.*?)(>>|$)/},{token:"keyword",regex:/<<[\w\d\-$]+,?|>>/},{token:"constant.character",regex:/\({2,3}.*?\){2,3}/},{token:"support.function.list.callout",regex:/^(?:<\d+>|\d+>|>) /,next:"text"},{token:"keyword",regex:/\[\[.+?\]\]/},{token:"support",regex:/^\[{3}[\w\d =\-]+\]{3}/},{include:"quotes"},{token:"empty",regex:/^\s*$/,next:"start"}],listText:[{include:"listStart"},{include:"text"}],indentedBlock:[{token:"literal",regex:/^[\s\w].+$/,next:"indentedBlock"},{token:"literal",regex:"",next:"start"}],listingBlock:[{token:"literal",regex:/^\.{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],literalBlock:[{token:"literal",regex:/^-{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],passthroughBlock:[{token:"literal",regex:/^\+{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:"[a-zA-Z¡-￿]+\\b|\\d+"},{include:"macros"},{token:"literal",regex:"."}],smallPassthrough:[{token:"literal",regex:/[+]{3,}/,next:"dissallowDelimitedBlock"},{token:"literal",regex:/^\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:"[a-zA-Z¡-￿]+\\b|\\d+"},{include:"macros"}],commentBlock:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"doc.comment",regex:"^.*$"}],tableBlock:[{token:"tableBlock",regex:/^\s*\|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"innerTableBlock"},{token:"tableBlock",regex:/\|/},{include:"text",noEscape:!0}],innerTableBlock:[{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"tableBlock"},{token:"tableBlock",regex:/^\s*|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/\!/}],macros:[{token:"macro",regex:/{[\w\-$]+}/},{token:["text","string","text","constant.character","text"],regex:/({)([\w\-$]+)(:)?(.+)?(})/},{token:["text","markup.list.macro","keyword","string"],regex:/(\w+)(footnote(?:ref)?::?)([^\s\[]+)?(\[.*?\])?/},{token:["markup.list.macro","keyword","string"],regex:/([a-zA-Z\-][\w\.\/\-]*::?)([^\s\[]+)(\[.*?\])?/},{token:["markup.list.macro","keyword"],regex:/([a-zA-Z\-][\w\.\/\-]+::?)(\[.*?\])/},{token:"keyword",regex:/^:.+?:(?= |$)/}],quotes:[{token:"string.italic",regex:/__[^_\s].*?__/},{token:"string.italic",regex:e("_")},{token:"keyword.bold",regex:/\*\*[^*\s].*?\*\*/},{token:"keyword.bold",regex:e("\\*")},{token:"literal",regex:/\+\+[^+\s].*?\+\+/},{token:"literal",regex:e("\\+")},{token:"literal",regex:/\$\$.+?\$\$/},{token:"literal",regex:e("\\$")},{token:"literal",regex:/``[^`\s].*?``/},{token:"literal",regex:e("`")},{token:"keyword",regex:/\^[^\^].*?\^/},{token:"keyword",regex:e("\\^")},{token:"keyword",regex:/~[^~].*?~/},{token:"keyword",regex:e("~")},{token:"keyword",regex:/##?/},{token:"keyword",regex:/(?:\B|^)``|\b''/}]};var t={macro:"constant.character",tableBlock:"doc.comment",titleUnderline:"markup.heading",singleLineTitle:"markup.heading",singleLineTitle2:"markup.heading2",singleLineTitle3:"markup.heading3",singleLineTitle4:"markup.heading4",singleLineTitle5:"markup.heading5",singleLineTitle6:"markup.heading6",pageBreak:"string",option:"string.regexp",otherBlock:"markup.list",literal:"support.function",optionalTitle:"constant.numeric",escape:"constant.language.escape",link:"markup.underline.list"};for(var n in this.$rules)for(var o=this.$rules[n],i=o.length;i--;){var r=o[i];if(r.include||"string"==typeof r){var a=[i,1].concat(this.$rules[r.include||r]);r.noEscape&&(a=a.filter(function(e){return!e.next})),o.splice.apply(o,a)}else r.token in t&&(r.token=t[r.token])}}).$rules);return{startState:function(){return{current:"start",plannedTokens:[]}},blankLine:function(e){a("",e)},token:a}}),e.defineMIME("text/x-asciidoc","asciidoc")},"object"==("undefined"==typeof exports?"undefined":r()(exports))&&"object"==r()(e)?o(n("8U58")):"object"==("undefined"==typeof brackets?"undefined":r()(brackets))&&brackets.getModule?o(brackets.getModule("thirdparty/CodeMirror2/lib/codemirror")):"function"==typeof define&&n("nErl")?define(["codemirror"],o):o(t)}).call(t,n("f1Eh")(e),n("8U58"))},QMmS:function(e,t,n){"use strict";t.b=function(e){return e.on("application:stores",function(e){var t;console.info("authenticationPlugin - application:stores"),console.log("authenticationPlugin - application:stores",e);var n={state:{isAuthenticated:!1,isTwoFactorCodeRequired:!1,credentials:{email:void 0,password:void 0,twoFactorCode:void 0}},mutations:(t={},i()(t,u.f,function(e,t){e.credentials.email=t}),i()(t,u.g,function(e,t){e.credentials.password=t}),i()(t,u.h,function(e,t){e.credentials.twoFactorCode=t}),i()(t,u.d,function(e){e.isLoading=!0}),i()(t,u.c,function(e,t){a.a.merge(e,t)}),i()(t,u.b,function(e,t){e.isAuthenticated=!1}),i()(t,l,function(e,t){a.a.merge(e,t.authentication)}),t),actions:i()({},u.e,function(e,t){var n=e.dispatch,o=e.commit,i=e.rootState,r=e.state;o(u.d);var c={rootState:a.a.cloneDeep(i),currentState:a.a.cloneDeep(r)};n("application:loading").then(function(e){return s.a.authenticate(c)}).then(function(e){o(u.c,e.nextState)}).then(function(e){return r.isAuthenticated?n(p,!0).then(function(e){return n(u.a)}):r.isTwoFactorCodeRequired?n("application:notify",{icon:"unlock",header:"Two factor code",message:"A code is required to complete your authentication.",level:"warning"}):n("application:notify",{icon:"warning circle",header:"Authentication failed",message:"A error occured during the authentication.",level:"error"})}).then(function(e){return n("application:loaded")}).then(function(e){return t.push(t.currentRoute.query.redirect||"/")}).catch(function(e){n("application:loaded").then(function(e){return n("application:notify",{icon:"warning circle",header:"Authentication failed",message:"A error occured during the authentication.",level:"error"})})})}),getters:{}};return e.nextState.stores.authentication=n,console.log("authenticationPlugin - application:stores - return",e),e}),e.on("application:routes",function(e){return e}),e.on("application:initialize-app",function(e){return console.info("authenticationPlugin - application:initialize-app"),console.log("authenticationPlugin - application:initialize-app",e),s.a.initialize(e).then(function(e){return e})}),e.on("authentication:authenticate",function(e){return console.info("authenticationPlugin - authentication:authenticate"),console.log("authenticationPlugin - authentication:authenticate",e,s.a),s.a.authenticate(e)}),{getName:function(){return"authenticationPlugin"}}},n.d(t,"a",function(){return d});var o=n("bOdI"),i=n.n(o),r=n("M4fF"),a=n.n(r),s=n("KMrN"),c=n("RUoO"),u=n("Pm0L"),l="application:initialize-app",p="application:save-config";var d=c.a},RUoO:function(e,t,n){"use strict";var o=n("6yLl"),i=n("oS0V");var r=function(e){n("Mha6")},a=n("VU/8")(o.a,i.a,!1,r,"data-v-94154cf6",null);t.a=a.exports},RsIG:function(e,t,n){"use strict";var o=n("woOf"),i=n.n(o),r=n("LEOq"),a=n.n(r);function s(e){return a.a.fire("application:receive-config",e)}t.a={initializeRoutes:function(e){return a.a.fire("application:routes",e)},initializeApp:function(e,t){return a.a.fire("application:initialize-app",e,t)},initializePlugins:function(e,t){return a.a.fire("application:initialize-plugins",e,t)},initializeConfig:function(e){return console.log("application - initializeConfig",e),function(e){return a.a.fire("application:request-config",e)}(e).then(s)},startUpConfig:function(e){return console.log("application - startUpConfig",e),s(e)},prepareConfig:function(e){return a.a.fire("application:prepare-config",e)},saveConfig:function(e){return function(e){return console.log("application - fireRequestSaveConfig",e),a.a.fire("application:request-save-config",e)}(e).then(function(t){return i()({},e,{nextState:t.nextState.application})}).then(s).then(function(t){return e.nextState.application=t.nextState,i()({},e)}).catch(function(e){console.log(e)})},saveConfigDone:function(e){return a.a.fire("application:save-config-done",e)}}},SDLk:function(e,t,n){"use strict";var o={render:function(){this.$createElement;this._self._c;return this._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"about-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",attrs:{href:"https://twitter.com/HubPressIO",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Follow us on twitter","data-position":"bottom right"}},[n("i",{staticClass:"twitter large icon"})])]),n("a",{staticClass:"item",attrs:{href:"https://gitter.im/HubPress/hubpress.io",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Wanna chat with us?","data-position":"bottom right"}},[n("i",{staticClass:"gitter large icon"})])]),n("a",{staticClass:"item",attrs:{href:"https://github.com/HubPress",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"HubPress is opensource :)","data-position":"bottom right"}},[n("i",{staticClass:"github large icon"})])])])]),n("div",{staticClass:"about-content"},[n("div",{staticClass:"ui container"},[n("h2",{staticClass:"ui center aligned icon header"},[n("i",{staticClass:"circular users icon"}),e._v("\n The HubPress Team\n ")]),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"row"},[n("div",{staticClass:"ui items divided"},[n("div",{staticClass:"item"},[n("div",{staticClass:"image"},[n("img",{attrs:{src:"https://avatars1.githubusercontent.com/u/2006548?v=3&s=460"}})]),n("div",{staticClass:"content"},[n("a",{staticClass:"header"},[e._v("Anthonny Quérouil")]),n("div",{staticClass:"meta"},[n("span",[e._v("The creator of HubPress")])]),n("div",{staticClass:"description"},[n("p",[e._v("Anthonny is a freelance developer and the creator of HubPress")]),n("p",[e._v("He started HubPress two years ago")])]),n("div",{staticClass:"extra"},[n("a",{staticClass:"ui label",attrs:{href:"https://twitter.com/anthonny_q",target:"_blank"}},[n("i",{staticClass:"twitter icon"}),e._v(" Twitter\n ")]),n("a",{staticClass:"ui label",attrs:{href:"https://github.com/anthonny",target:"_blank"}},[n("i",{staticClass:"github icon"}),e._v(" GitHub\n ")]),n("a",{staticClass:"ui label",attrs:{href:"http://anthonnyquerouil.fr/",target:"_blank"}},[n("i",{staticClass:"home icon"}),e._v(" Website\n ")])])])]),n("div",{staticClass:"item"},[n("div",{staticClass:"image"},[n("img",{attrs:{src:"https://avatars0.githubusercontent.com/u/952793?v=3&s=460"}})]),n("div",{staticClass:"content"},[n("a",{staticClass:"header"},[e._v("Jared Morgan")]),n("div",{staticClass:"meta"},[n("span",[e._v("The Docs guy")])]),n("div",{staticClass:"description"},[n("p",[e._v("By day, Jared is a Certified Scrum Product Owner (CSPO) and Technical Writer for Ladbrokes in Brisbane, Australia.")]),n("p",[e._v("By night, he uses his craft to improve open source software products one README at a time.")]),n("p",[e._v("In between, he uses his expertise in Pinball machines and knowledge of Android beta testing to improve digital pinball apps.")])]),n("div",{staticClass:"extra"},[n("a",{staticClass:"ui label",attrs:{href:"https://twitter.com/jaredmorgs",target:"_blank"}},[n("i",{staticClass:"twitter icon"}),e._v(" Twitter\n ")]),n("a",{staticClass:"ui label",attrs:{href:"https://github.com/jaredmorgs",target:"_blank"}},[n("i",{staticClass:"github icon"}),e._v(" GitHub\n ")]),n("a",{staticClass:"ui label",attrs:{href:"http://jaredleonmorgan.net/",target:"_blank"}},[n("i",{staticClass:"home icon"}),e._v(" Website\n ")])])])])])])])])])}]};t.a=o},SHkU:function(e,t,n){"use strict";var o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._l(e.navigation,function(t,o){return n("div",{key:t.label,staticClass:"fields"},[n("div",{staticClass:"four wide field"},[n("input",{attrs:{type:"text",placeholder:"Label",name:"navigation-label-"+o},domProps:{value:t.label}})]),n("div",{staticClass:"eleven wide field"},[n("input",{attrs:{type:"text",placeholder:"http://www.mysite.com",name:"navigation-url-"+o},domProps:{value:t.url}})]),n("div",{staticClass:"one wide field"},[n("button",{staticClass:"ui icon button",on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.remove(o)}}},[n("i",{staticClass:"trash icon"})])])])}),n("div",{staticClass:"fields"},[n("div",{staticClass:"four wide field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNav.label,expression:"newNav.label"}],attrs:{type:"text",placeholder:"Label"},domProps:{value:e.newNav.label},on:{input:function(t){t.target.composing||e.$set(e.newNav,"label",t.target.value)}}})]),n("div",{staticClass:"eleven wide field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNav.url,expression:"newNav.url"}],attrs:{type:"text",placeholder:"http://www.mysite.com"},domProps:{value:e.newNav.url},on:{input:function(t){t.target.composing||e.$set(e.newNav,"url",t.target.value)}}})]),n("div",{staticClass:"one wide field"},[n("button",{staticClass:"ui icon button",attrs:{disabled:e.isNotValid},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.add(e.newNav)}}},[n("i",{staticClass:"add icon"})])])])],2)},staticRenderFns:[]};t.a=o},SUis:function(e,t,n){"use strict";(function(e){var o=n("PJh5"),i=n.n(o),r=n("RJtx"),a=n.n(r),s=n("lYDI");t.a={name:"posts",data:function(){return{postToDelete:{},filterValue:""}},beforeCreate:function(){},beforeMount:function(){this.$store.dispatch(s.a)},beforeDestroy:function(){e(".ui.basic.modal").remove()},mounted:function(){var t=this;e(".ui.basic.modal").modal({closable:!1,onDeny:function(){},onApprove:function(){t.$store.dispatch(s.d,t.postToDelete._id)}})},methods:{status:function(e){return!e.published?"Draft":"Published"},type:function(e){return e.type.replace(/\b\w/g,function(e){return e.toUpperCase()})},publishedAt:function(e){return!!e.published&&e.published_at&&i()(e.published_at).fromNow()||""},postCoverUrl:function(e){var t=e.image||"https://hubpress.github.io/img/logo.png";return t=t.startsWith("http")?t:e.attributes.$$smap.imagesdir+"/"+e.image},getPostStatusColor:function(e){return e.original?e.original.content!==e.content?"orange":"green":"red"},displayConfirmMessage:function(t){this.postToDelete=t,e(".ui.basic.modal").modal("show")},navigateToPost:function(e){this.$router.push({name:"post",params:{id:e._id}})},newPost:function(){this.$router.push({name:"post",params:{id:a.a.v4()}})},getPostTags:function(e){return e.tags||[]},getPostAuthor:function(e){return e.author||this.$store.state.authentication.userInformations},synchronize:function(){this.$store.dispatch(s.b)}},computed:{posts:function(){var e=this.filterValue.trim();return""===e?this.$store.state.hubpress.posts:this.$store.state.hubpress.posts.filter(function(t){return t.title.toLowerCase().indexOf(e.toLowerCase())>=0||t.tags&&t.tags.filter(function(t){return t.toLowerCase().indexOf(e.toLowerCase())>=0}).length})}}}}).call(t,n("7t+N"))},SjaB:function(e,t,n){var o=n("3fVB");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("2d76ba14",o,!0,{sourceMap:!1})},T23V:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,r,a=n("pFYg"),s=n.n(a),c=n("mvHQ"),u=n.n(c),l=n("fZjL"),p=n.n(l),d=n("woOf"),f=n.n(d),h=n("Zzip"),g=n.n(h),m=n("5QVw"),v=n.n(m),b=n("//Fk"),x=n.n(b),C=n("I3G/"),y=n.n(C),w=n("unZF"),k=n("qcny"),P=n("YLfZ"),S=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=x.a))(function(i,r){function a(e){try{c(o.next(e))}catch(e){r(e)}}function s(e){try{c(o.throw(e))}catch(e){r(e)}}function c(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,s)}c((o=o.apply(e,t||[])).next())})},_=this&&this.__generator||function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof v.a&&(r[g.a]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=o[2&r[0]?"return":r[0]?"throw":"next"])&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[0,i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],e.matched.map(function(e,n){return h()(e.instances).map(function(o){return t&&t.push(n),e.instances[o]})}))},t.c=w,t.k=k,n.d(t,"h",function(){return _}),n.d(t,"m",function(){return R}),t.i=function e(t,n){if(!t.length||n._redirected||n._errored)return d.a.resolve();return M(t[0],n).then(function(){return e(t.slice(1),n)})},t.j=M,t.d=function(e,t){var n=window.location.pathname;if("hash"===t)return window.location.hash.replace(/^#\//,"");e&&0===n.indexOf(e)&&(n=n.slice(e.length));return(n||"/")+window.location.search+window.location.hash},t.b=function(e,t){return function(e){for(var t=new Array(e.length),n=0;n1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],e.matched.map(function(e,n){return h()(e.components).map(function(o){return t&&t.push(n),e.components[o]})}))}function w(e,t){return Array.prototype.concat.apply([],e.matched.map(function(e,n){return h()(e.components).map(function(o){return t(e.components[o],e.instances[o],e,o,n)})}))}function k(e){var t,n=this;return d.a.all(w(e,(t=l()(c.a.mark(function e(t,o,i,r){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof t||t.options){e.next=4;break}return e.next=3,t();case 3:t=e.sent;case 4:return e.abrupt("return",i.components[r]=C(t));case 5:case"end":return e.stop()}},e,n)})),function(e,n,o,i){return t.apply(this,arguments)})))}window._nuxtReadyCbs=[],window.onNuxtReady=function(e){window._nuxtReadyCbs.push(e)};var P,S,_=(P=l()(c.a.mark(function e(t){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k(t);case 2:return e.abrupt("return",m()({},t,{meta:y(t).map(function(e){return e.options.meta||{}})}));case 3:case"end":return e.stop()}},e,this)})),function(e){return P.apply(this,arguments)}),R=(S=l()(c.a.mark(function e(t,n){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n.to?n.to:n.route,t.context){e.next=14;break}e.t0=!0,e.t1=t,e.t2=t.store,e.t3=n.payload,e.t4=n.error,e.t5={hubpressVersion:"1.0.0",baseUrl:"http://localhost:3000"},t.context={get isServer(){return console.warn("context.isServer has been deprecated, please use process.server instead."),!1},get isClient(){return console.warn("context.isClient has been deprecated, please use process.client instead."),!0},isStatic:e.t0,isDev:!1,isHMR:!1,app:e.t1,store:e.t2,payload:e.t3,error:e.t4,base:"..",env:e.t5},n.req&&(t.context.req=n.req),n.res&&(t.context.res=n.res),t.context.redirect=function(e,n,o){if(e){t.context._redirected=!0;var i=void 0===n?"undefined":a()(n);if("number"==typeof e||"undefined"!==i&&"object"!==i||(o=n||{},i=void 0===(n=e)?"undefined":a()(n),e=302),"object"===i&&(n=t.router.resolve(n).href),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(n))throw n=T(n,o),window.location.replace(n),new Error("ERR_REDIRECT");t.context.next({path:n,query:o,status:e})}},t.context.nuxtState=window.__NUXT__;case 14:if(t.context.next=n.next,t.context._redirected=!1,t.context._errored=!1,t.context.isHMR=!!n.isHMR,!n.route){e.next=22;break}return e.next=21,_(n.route);case 21:t.context.route=e.sent;case 22:if(t.context.params=t.context.route.params||{},t.context.query=t.context.route.query||{},!n.from){e.next=28;break}return e.next=27,_(n.from);case 27:t.context.from=e.sent;case 28:case"end":return e.stop()}},e,this)})),function(e,t){return S.apply(this,arguments)});function M(e,t){var n=void 0;return(n=2===e.length?new d.a(function(n){e(t,function(e,o){e&&t.error(e),n(o=o||{})})}):e(t))&&(n instanceof d.a||"function"==typeof n.then)||(n=d.a.resolve(n)),n}var q=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function $(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function D(e){return e.replace(/([.+*?=^!:()[\]|\/\\])/g,"\\$1")}function j(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function T(e,t){var n=void 0,o=e.indexOf("://");-1!==o?(n=e.substring(0,o),e=e.substring(o+3)):0===e.indexOf("//")&&(e=e.substring(2));var r=e.split("/"),a=(n?n+"://":"//")+r.shift(),s=r.filter(Boolean).join("/"),c=void 0;return 2===(r=s.split("#")).length&&(s=r[0],c=r[1]),a+=s?"/"+s:"",t&&"{}"!==i()(t)&&(a+=(2===e.split("?").length?"&":"?")+function(e){return h()(e).sort().map(function(t){var n=e[t];return null==n?"":Array.isArray(n)?n.slice().map(function(e){return[t,"=",e].join("")}).join("&"):t+"="+n}).filter(Boolean).join("&")}(t)),a+=c?"#"+c:""}},YMuy:function(e,t,n){"use strict";var o=n("6Ndi"),i=n("PJh5"),r=n.n(i);function a(e){return o.a.fireRequestRemoteSynchronization(e).then(function(e){return o.a.fireReceiveRemoteSynchronization(e)}).then(function(e){return o.a.fireRequestRenderingDocuments(e)}).then(function(e){return o.a.fireReceiveRenderingDocuments(e)}).then(function(e){return o.a.fireRequestLocalSynchronization(e)}).then(function(e){return o.a.fireReceiveLocalSynchronization(e)}).then(function(e){return o.a.fireRequestLocalPosts(e)}).then(function(e){return o.a.fireReceiveLocalPosts(e)}).then(function(e){return localStorage.setItem("hubpress:sync",r()().format()),e})}t.a={initialize:function(e){return o.a.fireRequestTheme(e).then(function(e){return o.a.fireReceiveTheme(e)}).then(function(e){return localStorage.getItem("hubpress:sync")?o.a.fireRequestLocalPosts(e).then(function(e){return o.a.fireReceiveLocalPosts(e)}):a(e)})},synchronize:a}},"bN/m":function(e,t,n){"use strict";function o(e,t){var n=void 0;return e.cname&&""!==e.cname?n=(!1===t?"":"http:")+"//"+e.cname:(n=(!1===t?"":"https:")+"//"+e.username+".github.io","master"!==e.branch&&(n=n+"/"+e.repositoryName)),n}function i(e,t){var n=e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"/$1/$2/$3/$4.html");return"page"===t&&(n=e.replace(/([\w-]*)\.adoc/,"/$1.html")),n}function r(e,t){var n=e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"$1/$2/$3/$4.html");return"page"===t&&(n=e.replace(/([\w-]*)\.adoc/,"$1.html")),n}t.a=function(e){return{site:o(e.meta),hubpress:function(e,t){var n=t.protocol+"//"+t.host;if("localhost"===t.hostname)return n;t.host===e.username+".github.io"||t.host===e.username+".github.com"?"master"!==e.branch&&(n=n+"/"+e.repositoryName):"master"===e.branch||e.cname&&""!==e.cname||(n=n+"/"+e.repositoryName);return n}(e.meta,window.location),theme:o(e.meta,!1)+"/themes/"+e.theme.name,images:o(e.meta)+"/images",getContentUrl:i,getContentGhPath:r,getPostUrl:function(e){return e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"/$1/$2/$3/$4.html")},getPostGhPath:function(e){return e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"$1/$2/$3/$4.html")},getPageUrl:function(e){return e.replace(/([\w-]*)\.adoc/,"/$1.html")},getPageGhPath:function(e){return e.replace(/([\w-]*)\.adoc/,"$1.html")},getSiteUrl:o}}},bxJ0:function(e,t,n){"use strict";t.a=function(e){e.on("application:request-config",function(e){return console.info("githubPlugin - application:request-config"),console.log("githubPlugin - application:request-config",e),l()("config.json?dt="+Date.now()).then(function(e){return e.json()}).then(function(t){return e.nextState.config=a()({},e.nextState.config,t),e.nextState.config.theme.name=e.nextState.config.theme.name.toLowerCase(),e})}),e.on("application:receive-config",function(e){console.info("githubPlugin - application:receive-config"),console.log("githubPlugin - application:receive-config",e);var t=Object(y.a)(e.nextState.config);return e.nextState.config=a()({},e.nextState.config,{urls:t}),e}),e.on("requestAuthentication",function(e){return console.info("githubPlugin - requestAuthentication"),console.log("githubPlugin - requestAuthentication",e),function(e){console.log("githubPlugin - login",e);var t=m.a.defer(),n=e.nextState.credentials,o=e.rootState.application.config.meta,i=(M=new h.a({auth:"basic",username:n.email,password:n.password,twoFactorCode:n.twoFactorCode})).getRepo(o.username,o.repositoryName),r=M.getAuthorization(),a=M.getUser(),s=void 0,c=void 0;return function(e){var t=m.a.defer();return e.getDetails(function(e,n){e?t.reject(e):t.resolve(n)}),t.promise}(i).then(function(e){s=e}).then(S(a)).then(function(e){return c=e,function(e){var t=m.a.defer();return console.log("getAuthorizations",e),e.listAuthorizations({},function(e,n){e?t.reject(e):(console.log("getAuthorizations list",n),t.resolve(n))}),t.promise}(r)}).then(function(e){return function(e,t,n){var o=m.a.defer(),i=-1,r=_(e);return t.forEach(function(e){e.note===r&&(i=e.id)}),-1!==i?n.deleteAuthorization(i,function(e,t){e?o.reject(e):o.resolve()}):o.resolve(),o.promise}(o.repositoryName,e,r)}).then(function(){return R(o.repositoryName,r)}).then(function(e){M=new h.a({auth:"oauth",token:e.token}),t.resolve({isAuthenticated:!0,credentials:{token:e.token},permissions:s.permissions,userInformations:c})}).catch(function(e){console.error("githubPlugin - login error",e,e.response);var n,i={type:"error",title:"Authentication"};e.response&&(n="required"===(e.response.headers&&e.response.headers["x-github-otp"]||"").split(";")[0]),n?(R(o.repositoryName,r),console.log("githubPlugin - OTP required : ",n),i.type="warning",i.content="A two-factor authentication code is needed.",i.otp=!0,t.resolve({isAuthenticated:!1,isTwoFactorCodeRequired:!0})):(console.error("githubPlugin - login error",e),t.reject({error:{code:e.error,message:"Unable to authenticate, check your credentials."}}))}),t.promise}(e).then(function(t){var n=a()({},e.nextState.credentials,t.credentials);return e.nextState=a()({},e.nextState,t,{credentials:n}),e})}),e.on("receiveSavedAuth",function(e){return console.info("githubPlugin - receiveSavedAuth"),console.log("githubPlugin - receiveSavedAuth",e),e.nextState.authentication.isAuthenticated&&(M=new h.a({auth:"oauth",token:e.nextState.authentication.credentials.token})),e}),e.on("hubpress:request-remote-synchronization",function(e){return console.info("githubPlugin - hubpress:request-remote-synchronization"),console.log("githubPlugin - hubpress:request-remote-synchronization",e),e.rootState.authentication.isAuthenticated?function(e){var t=e.application.config;console.log("Get posts",t);var n=t.meta,o=M.getRepo(n.username,n.repositoryName);return function(e,t){var n=m.a.defer();return e.getContents(t.meta.branch,"",!0,function(e,t){if(e)n.reject(e);else{var o=void 0;t.forEach(function(e){"_posts"===e.name&&(o=e.sha)}),n.resolve(o)}}),n.promise}(o,t).then(function(e){return function(e,t,n){var o=void 0;if(n===localStorage.postsSha)o=m.a.fcall(function(){return[]});else{var i=m.a.defer();e.getContents(t.meta.branch,"_posts",!0,function(e,t){e?i.reject(e):i.resolve(t)}),o=i.promise}return o}(o,t,e)}).then(function(e){return e.map(function(e){return b.a.pick(e,["name","path","sha","size"])})}).then(function(e){return function(e,t,n){var o=b.a.compact(n).map(function(e){return function(e,t){var n=m.a.defer(),o=e.meta;return M.getRepo(o.username,o.repositoryName).getSha(e.meta.branch,e.urls.getContentGhPath(t.name,t.type),function(e,o){if(e&&e.response&&404!==e.response.status)n.reject(e);else{var i=o?1:0,r=a()({},t,{published:i});n.resolve(r)}}),n.promise}(t,e)});return m.a.all(o)}(0,t,e)}).then(function(n){return function(e,t,n,o){var i=n.map(function(e){return q(t,e,o)});return m.a.all(i)}(0,t,n,e.authentication.userInformations)}).then(function(e){return function(e,t,n){var o=[];return n.forEach(function(n){var i=m.a.defer();o.push(i.promise),e.getContents(t.meta.branch,n.path,!0,function(e,t){var o;e?i.reject(e):(o=a()({},n,{content:t}),i.resolve(o))})}),m.a.all(o)}(o,t,e)})}(e.rootState).then(function(t){return e.nextState=a()({},e.nextState,{posts:t}),e}):e}),e.on("requestSaveRemotePost",function(e){console.info("githubPlugin - requestSaveRemotePost"),console.log("githubPlugin - requestSaveRemotePost",e);var t=e.rootState.application.config,n=e.nextState.post;return function(e,t){var n=e.meta,o=M.getRepo(n.username,n.repositoryName),i=void 0;if(t.original&&t.name!==t.original.name){var r=m.a.defer();i=r.promise;var a=e.meta.branch,s="_posts/"+t.original.name,c="_posts/"+t.name;o.move(a,s,c,function(n,i){if(n)r.reject(n);else if(t.published){var s=e.urls.getContentGhPath(t.original.name,t.original.type);(function(e,t,n){return function(e,t,n){var o=m.a.defer();return e.deleteFile(t,n,function(e,t){e?o.reject(e):(console.error(t),P=t.commit,o.resolve(t))}),o.promise}(e,t,n)})(o,a,s).then(function(e){r.resolve({post:t,sha:e})}).catch(function(e){r.reject(e)}).done()}else r.resolve({post:t,sha:i})})}else i=m()({post:t});return i}(t,n).then(function(e){return function(e,t){console.log("Write post",e,t);var n=e.meta,o=M.getRepo(n.username,n.repositoryName),i=n.branch,r="_posts/"+t.name,a="Update "+t.name,s=m.a.defer();return o.writeFile(i,r,t.content,a,function(n,o){n?s.reject(n):(t.original=b.a.omit(t,["original"]),t.original.url=e.urls.getContentUrl(t.original.name,t.original.type),t.original.path="_posts/"+t.original.name,t.original.sha=o,P=o.commit,console.info("Update lastCacheCommit",P),s.resolve(t))}),s.promise}(t,e.post)}).then(function(n){return q(t,n,e.rootState.authentication.userInformations)}).then(function(t){return e.nextState.post=t,e})}),e.on("requestSaveRemotePublishedElements",function(e){console.info("githubPlugin - requestSaveRemotePublishedElements"),console.log("githubPlugin - requestSaveRemotePublishedElements",e);var t=e.rootState.application.config.meta,n=M.getRepo(t.username,t.repositoryName),o=e.nextState.elementsToPublish.length,i=b.a.chunk(e.nextState.elementsToPublish,k);console.log("Writeall",e.nextState.elementsToPublish);var r=m.a.defer();return n.getBranch(t.branch,function(a,s){if(a){var c=m.a.defer();return r=c.promise,c.reject(a)}var u=0,l=i.reduce(function(e,i){return e.then(function(e){var r=m.a.defer(),a=i.map(function(e){return{path:e.path,mode:"100644",type:"blob",content:e.content}});return n.createTree(a,e,function(a,s){if(a)return r.reject(a);n.commit(e,s.sha,"Published "+(u+i.length)+"/"+o+" elements",function(e,o){if(e)return r.reject(e);u+=i.length,P=o,n.updateHead("heads/"+t.branch,o.sha,!1,function(e,t){if(console.log("updateHead",e,t),e)return r.reject(e);r.resolve(o.sha)})})}),r.promise})},m()(function(e,t){if(console.error(e,t),!t)return e.sha;var n=C()(e.committer.date);return C()(t.committer.date).isAfter(n)?t.sha:e.sha}({committer:s.commit.commit.committer,sha:s.commit.sha},P)));l.then(function(t){r.resolve(e)}).catch(function(e){r.reject(e)})}),r.promise}),e.on("requestDeleteRemotePost",function(e){console.info("githubPlugin - requestDeleteRemotePost"),console.log("githubPlugin - requestDeleteRemotePost",e);var t=m.a.defer(),n=e.rootState.application.config,o=n.meta,i=M.getRepo(o.username,o.repositoryName),r=e.nextState.post.original.path;return i.deleteFile(o.branch,r,function(n,o){n&&n.response&&404!==n.response.status?t.reject(n):(console.error("requestDeleteRemotePost",o),P=o.commit,t.resolve(e))}).catch(function(n){n&&n.response&&404===n.response.status&&t.resolve(e)}),t.promise}),e.on("requestDeleteRemotePublishedPost",function(e){console.info("githubPlugin - requestDeleteRemotePublishedPost"),console.log("githubPlugin - requestDeleteRemotePublishedPost",e);var t=m.a.defer(),n=e.rootState.application.config,o=n.meta,i=M.getRepo(o.username,o.repositoryName),r=n.urls.getContentGhPath(e.nextState.post.original.name,e.nextState.post.original.type);return i.deleteFile(o.branch,r,function(n,o){n?t.reject(n):(console.error("requestDeleteRemotePublishedPost",o),P=o.commit,t.resolve(e))}),t.promise}),e.on("application:request-save-config",function(e){console.info("githubPlugin - application:request-save-config"),console.log("githubPlugin - application:request-save-config",e);var t=e.nextState.application;return function(e){console.log("Write config",e);var t=m.a.defer(),n=e.meta,o=M.getRepo(n.username,n.repositoryName),r=n.branch;return o.writeFile(r,"hubpress/config.json",i()(e,null,2),"Update configuration file",function(e,n){e?t.reject(e):(P=n.commit,console.info("Update lastCacheCommit",P),t.resolve(n))}),t.promise}(t.config).then(function(e){return function(e){console.log("Github manageCname - ",e);var t=e.meta,n=M.getRepo(t.username,t.repositoryName),o=m.a.defer();t.cname&&""!==t.cname?(console.info("SettingsService - saveAndPublish save CNAME"),n.writeFile(t.branch,"CNAME",t.cname,"Update CNAME with "+t.cname,function(e,t){e?o.reject(e):(P=t.commit,console.info("Update lastCacheCommit",P),o.resolve(t))})):(console.info("SettingsService - saveAndPublish delete CNAME"),n.deleteFile(t.branch,"CNAME",function(e,t){e&&"not found"!==e?o.reject(e):o.resolve(t)}).then(function(e){console.log("SHA after delete",e),o.resolve(e)}).catch(function(e){404!==e.response.status?o.reject(e):o.resolve()}));return o.promise}(t.config)}).then(function(t){return e})}),e.on("receiveRenderingPost",function(e){return console.info("githubPlugin - receiveRenderingPost"),console.log("githubPlugin - receiveRenderingPost",e),e}),e.on("application:initialize-plugins",function(e){console.info("githubPlugin - application:initialize-plugins"),console.log("githubPlugin - application:initialize-plugins",e);var t="put your repository name here"===e.rootState.application.config.meta.repositoryName||"put your username here"===e.rootState.application.config.meta.username;return e.nextState.application.requireInitilisation=t,e.nextState.application.config.initialisationConfigComponent=w.a,e})};var o=n("mvHQ"),i=n.n(o),r=n("woOf"),a=n.n(r),s=n("6ltY"),c=n.n(s),u=n("j9g7"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=n("73D8"),h=n.n(f),g=n("/Luh"),m=n.n(g),v=n("M4fF"),b=n.n(v),x=n("PJh5"),C=n.n(x),y=n("bN/m"),w=n("IBrK"),k=50,P=null;function S(e){return function(){var t=m.a.defer();return e.getProfile(function(e,n){e?t.reject(e):t.resolve(b.a.pick(n,["login","id","name","location","blog","avatar_url","bio"]))}),t.promise}}function _(e){return d()(e+"-"+c.a.name+"-"+c.a.os)}function R(e,t){var n=m.a.defer(),o={scopes:["public_repo"],note:_(e)};return t.createAuthorization(o,function(e,t){e?n.reject(e):n.resolve(t)}),n.promise}var M=void 0;function q(e,t,n){var o=m.a.defer(),i=e.meta,r=M.getRepo(i.username,i.repositoryName);return console.log("getPostAuthor",t),r.listCommits({sha:e.meta.branch,path:t.original&&t.original.path||t.path},function(e,i){if(e&&404!==e.error)o.reject(e);else{var r=i[i.length-1].author;if(r&&r.login!==n.login){S(M.getUser(r.login))().then(function(e){r=a()({},e);var n=a()({},t,{author:r});o.resolve(n)}).catch(function(e){return o.reject(e)})}else{r=a()({},n);var s=a()({},t,{author:r});o.resolve(s)}}}),o.promise}},cOI0:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,'.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,.5)}.cm-animate-fat-cursor,.cm-fat-cursor-mark{-webkit-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;background-color:#7e7}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;-webkit-font-feature-settings:"calt";font-feature-settings:"calt";font-variant-ligatures:contextual}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-webkit-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}',""])},cmzl:function(e,t,n){"use strict";var o={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"nuxt-progress",style:{width:this.percent+"%",height:this.height,"background-color":this.canSuccess?this.color:this.failedColor,opacity:this.show?1:0}})},staticRenderFns:[]};t.a=o},ct3O:function(e,t,n){"use strict";var o=n("FIB3"),i=n("FdPX");var r=function(e){n("wGIl")},a=n("VU/8")(o.a,i.a,!1,r,null,null);t.a=a.exports},"d/OL":function(e,t,n){"use strict";t.a=function(e){e.on("hubpress:request-rendering-documents",function(e){console.info("asciidocPlugin - hubpress:request-rendering-documents"),console.log("asciidocPlugin - hubpress:request-rendering-documents",e);var t=e.rootState.application.config,n=(e.nextState.posts||[]).map(function(e){var n=i()({},e,m(t,e.content),{content:e.content}),o=c.a.pick(n,"attributes","author","html","tags","content","name","path","sha");n.title=o.title=o.attributes.$$smap.doctitle,n.image=o.image=o.attributes.$$smap["hp-image"],n.type=o.type=o.attributes.$$smap["hp-type"],n.tags=o.tags=v(o.attributes),n.url=o.url=b(t,n.type,o.name);var r=i()({},n,{original:o});return n.type&&"post"!==n.type||(r.original.published_at=r.published_at=o.name.split("-").slice(0,3).join("-")),r});return e.nextState.posts=n,e}),e.on("requestRenderingPost",function(e){console.info("asciidocPlugin - requestRenderingPost"),console.log("asciidocPlugin - requestRenderingPost",e);var t=m(e.rootState.application.config,e.nextState.post.content);e.nextState.post=i()({},e.nextState.post,t),e.nextState.post.title=t.attributes.$$smap.doctitle,e.nextState.post.image=t.attributes.$$smap["hp-image"],e.nextState.post.type=t.attributes.$$smap["hp-type"],e.nextState.post.tags=v(t.attributes),e.nextState.post.published_at=t.attributes.$$smap.published_at||e.nextState.post.published_at||l()().format("YYYY-MM-DD");var n=t.attributes.$$smap["hp-alt-title"];return e.nextState.post.type&&"post"!==e.nextState.post.type?e.nextState.post.name=d()(""+(n||e.nextState.post.title))+".adoc":e.nextState.post.name=d()(e.nextState.post.published_at+"-"+(n||e.nextState.post.title))+".adoc",e.nextState.post.url=b(e.rootState.application.config,e.nextState.post.type,e.nextState.post.name),e})};var o=n("woOf"),i=n.n(o),r=n("twCI"),a=n.n(r),s=n("M4fF"),c=n.n(s),u=n("PJh5"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=a()(!1,window.XMLHttpRequest),h=f.Opal,g=f.Asciidoctor(!0);function m(e,t){var n=h.hash({doctype:"article",backend:"html5",safe:"unsafe",attributes:["showtitle!","allow-uri-read","imagesdir="+e.urls.site+"/images","icons=font"]}),o=function(e){var t=e.split("pass::[more]");return{excerpt:t[0],full:t.join("")}}(t.replace(/gist::([0-9]*)\[(lines=[0-9]*\.\.[0-9]*)?,?(type=([\w.]*))?,?(file=([\w.]*))?\]/g,"[source,$4]\n----\ninclude::https://gist.githubusercontent.com/raw/$1/$6[$2]\n----\n")),i=g.$load(o.excerpt,n),r=g.$load(o.full,n);return{attributes:c.a.pick(r.attributes,["$$smap"]),excerpt:i.$convert(),html:r.$convert()}}function v(e){return e.$$smap["hp-tags"]&&e.$$smap["hp-tags"].split(",").map(function(e){return e.trim()}).filter(function(e){return""!==e})}function b(e,t,n){return e.urls.getContentUrl(n,t)}},dCDI:function(e,t,n){"use strict";(function(e,t){var o,i=n("pFYg"),r=n.n(i);o=function(e){var t;(t=e).overlayMode=function(e,n,o){return{startState:function(){return{base:t.startState(e),overlay:t.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(o){return{base:t.copyState(e,o.base),overlay:t.copyState(n,o.overlay),basePos:o.basePos,baseCur:null,overlayPos:o.overlayPos,overlayCur:null}},token:function(t,i){return(t!=i.streamSeen||Math.min(i.basePos,i.overlayPos)"},redirect:"/dashboard",meta:{auth:!0},children:t.nextState.routes.map(function(e){return console.log(e),e.entries}).reduce(function(e,t){return e.concat(t)},[])}]},o=new r.default(n);return o.routes=t.nextState.routes,o.beforeEach(function(e,t,n){var o=Object(a.default)();e.matched.some(function(e){return e.meta.auth})?o.state.authentication.isAuthenticated?n():n({path:"/login",query:{redirect:e.fullPath}}):n()}),o};var o=n("I3G/"),i=n.n(o),r=n("/ocq"),a=n("fbRD"),s=n("LEOq"),c=n.n(s),u=(n("7cn8"),n("YG9q")),l=n("QMmS"),p=n("3oxy"),d=n("H8Oa"),f=n("bxJ0"),h=n("WiUJ"),g=n("H1PK"),m=n("d/OL"),v=(n("Y2j8"),n("1AqL")),b=n("tLh+");console.log("router =============="),console.log("Router"),i.a.use(r.default),c.a.register(u.a,l.b,p.a,d.a,f.a,h.a,g.a,m.a,v.a,b.a),console.log("Registered plugins",c.a.list())},oS0V:function(e,t,n){"use strict";var o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui center aligned grid"},[n("div",{staticClass:"ui middle aligned grid"},[e.requireInitilisation?n("div",{staticClass:"column"},[n("div",{staticClass:"ui segment"},[n("initialisation-component",{tag:"component"})],1)]):e._e(),e.requireInitilisation?e._e():n("div",{staticClass:"column",attrs:{id:"loginForm"}},[n("div",{staticClass:"ui segment"},[n("img",{staticClass:"image",attrs:{src:"https://hubpress.github.io/img/freeze/logo.png"}}),n("h2",{staticClass:"ui header"},[e._v("\n Welcome!\n ")]),n("div",{staticClass:"content"}),n("form",{staticClass:"ui medium form",on:{submit:function(t){t.preventDefault(),e.login({email:e.email,password:e.password})}}},[n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"user icon"}),n("input",{attrs:{type:"text",name:"email",placeholder:"Username or e-mail address"},domProps:{value:e.email},on:{input:e.updateEmail}})])]),n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"lock icon"}),n("input",{attrs:{type:"password",name:"password",placeholder:"Password"},domProps:{value:e.password},on:{input:e.updatePassword}})])]),e.isTwoFactorCodeRequired?n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"key icon"}),n("input",{attrs:{type:"text",name:"twoFactorCode",placeholder:"Two factor code"},domProps:{value:e.twoFactorCode},on:{input:e.updateTwoFactorCode}})])]):e._e(),n("button",{staticClass:"ui fluid large submit button",attrs:{type:"submit",name:"button"}},[e._v("Login")])]),e._m(0)])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui message"},[this._v("\n If you have questions about how to use HubPress, "),t("a",{attrs:{href:"https://hubpress.gitbooks.io/hubpress-knowledgebase/content/"}},[this._v("here is the right place.")])])}]};t.a=o},oz2E:function(e,t,n){"use strict";t.a={name:"dashboard",beforeCreate:function(){console.log("dashboard beforeCreate")},created:function(){console.log("dashboard created")}}},pSdL:function(e,t,n){var o=n("LnjV");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("2e903ce0",o,!0,{sourceMap:!1})},pyJH:function(e,t,n){"use strict";var o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{},[n("h4",{staticClass:"ui dividing header"},[e._v("Informations")]),n("div",{staticClass:"field"},[n("label",[e._v("Title")]),n("input",{attrs:{type:"text",name:"hubpress-title",placeholder:"Title"},domProps:{value:e.site.title}})]),n("div",{staticClass:"field"},[n("label",[e._v("Description")]),n("input",{attrs:{type:"text",name:"hubpress-description",placeholder:"Description"},domProps:{value:e.site.description}})]),n("div",{staticClass:"field"},[n("label",[e._v("Logo")]),n("input",{attrs:{type:"text",name:"hubpress-logo",placeholder:"Logo"},domProps:{value:e.site.logo}})]),n("div",{staticClass:"field"},[n("label",[e._v("Cover image")]),n("input",{attrs:{type:"text",name:"hubpress-cover-image",placeholder:"Cover image"},domProps:{value:e.site.cover}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Rendering")]),n("div",{staticClass:"field"},[n("label",[e._v("Live preview render delay (ms)")]),n("input",{attrs:{type:"text",name:"hubpress-render-delay",placeholder:"300"},domProps:{value:e.meta.delay}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Generation")]),n("div",{staticClass:"field"},[n("label",[e._v("Theme")]),n("input",{attrs:{type:"text",name:"hubpress-theme",placeholder:"Theme"},domProps:{value:e.theme.name}})]),n("div",{staticClass:"field"},[n("label",[e._v("Posts per page")]),n("input",{attrs:{type:"text",name:"hubpress-posts-per-page",placeholder:"Posts per page"},domProps:{value:e.site.postsPerPage}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Services")]),n("div",{staticClass:"field"},[n("label",[e._v("Google analytics")]),n("input",{attrs:{type:"text",name:"hubpress-ga",placeholder:"Google analytics"},domProps:{value:e.site.googleAnalytics}})]),n("div",{staticClass:"field"},[n("label",[e._v("Disqus shortname")]),n("input",{attrs:{type:"text",name:"hubpress-disqus",placeholder:"Disqus shortname"},domProps:{value:e.site.disqus}})])])},staticRenderFns:[]};t.a=o},qcny:function(e,t,n){"use strict";n.d(t,"b",function(){return D});var o=n("Xxa5"),i=n.n(o),r=n("//Fk"),a=(n.n(r),n("C4MV")),s=n.n(a),c=n("woOf"),u=n.n(c),l=n("Dd8w"),p=n.n(l),d=n("exGp"),f=n.n(d),h=n("MU8w"),g=(n.n(h),n("I3G/")),m=n.n(g),v=n("p3jY"),b=n.n(v),x=n("mtxM"),C=n("0F0d"),y=n("HBB+"),w=n("WRRc"),k=n("ct3O"),P=n("Hot+"),S=n("yTq1"),_=n("YLfZ"),R=n("J2Ti"),M=n("zQW4"),q=n("6hdJ");n.d(t,"a",function(){return k.a});var $,D=($=f()(i.a.mark(function e(t){var n,o,r,a,c,l,d;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(x.a)(t),(o=Object(R.a)(t)).$router=n,r=p()({router:n,store:o,nuxt:{defaultTransition:j,transitions:[j],setTransitions:function(e){return Array.isArray(e)||(e=[e]),e=e.map(function(e){return e=e?"string"==typeof e?u()({},j,{name:e}):u()({},j,e):j}),this.$options.nuxt.transitions=e,e},err:null,dateErr:null,error:function(e){e=e||null,r.context._errored=!!e,"string"==typeof e&&(e={statusCode:500,message:e});var n=this.nuxt||this.$options.nuxt;return n.dateErr=Date.now(),n.err=e,t&&(t.nuxt.error=e),e}}},S.a),o.app=r,a=t?t.next:function(e){return r.router.push(e)},c=void 0,t?c=n.resolve(t.url).route:(l=Object(_.d)(n.options.base),c=n.resolve(l).route),e.next=10,Object(_.m)(r,{route:c,next:a,error:r.nuxt.error.bind(r),store:o,payload:t?t.payload:void 0,req:t?t.req:void 0,res:t?t.res:void 0,beforeRenderFns:t?t.beforeRenderFns:void 0});case 10:if(d=function(e,t){if(!e)throw new Error("inject(key, value) has no key provided");if(!t)throw new Error("inject(key, value) has no value provided");r[e="$"+e]=t,o[e]=r[e];var n="__nuxt_"+e+"_installed__";m.a[n]||(m.a[n]=!0,m.a.use(function(){m.a.prototype.hasOwnProperty(e)||s()(m.a.prototype,e,{get:function(){return this.$root.$options[e]}})}))},window.__NUXT__&&window.__NUXT__.state&&o.replaceState(window.__NUXT__.state),"function"!=typeof M.a){e.next=15;break}return e.next=15,Object(M.a)(r.context,d);case 15:if("function"!=typeof q.a){e.next=18;break}return e.next=18,Object(q.a)(r.context,d);case 18:e.next=21;break;case 21:return e.abrupt("return",{app:r,router:n,store:o});case 22:case"end":return e.stop()}},e,this)})),function(e){return $.apply(this,arguments)});m.a.component(C.a.name,C.a),m.a.component(y.a.name,y.a),m.a.component(w.a.name,w.a),m.a.component(P.a.name,P.a),m.a.use(b.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var j={name:"page",mode:"out-in",appear:!0,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"}},r6qT:function(e,t,n){var o=n("HEYa");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("2b9275f1",o,!0,{sourceMap:!1})},"tLh+":function(e,t,n){"use strict";t.a=function(e){e.on("requestGenerateIndex",function(e){console.info("rssPlugin - requestGenerateIndex"),console.log("rssPlugin - requestGenerateIndex",e);var t=e.rootState.application.config.site||{},n=e.rootState.application.config.urls.site||"",o=e.nextState.publishedPosts||[],r=new i.a({title:t.title||"",description:t.description||"",feed_url:n+"/rss/",site_url:n,image_url:t.cover,ttl:"60"});o.forEach(function(e){r.item({title:e.title,description:e.html,url:""+n+e.url,categories:e.tags,author:e.author.name,date:e.published_at})});var a=r.xml(),s=[];return s.push({name:"RSS",path:"rss/index.xml",content:a,message:"Publish rss feed"}),e.nextState.elementsToPublish=(e.nextState.elementsToPublish||[]).concat(s),e})};var o=n("DVIz"),i=n.n(o)},unZF:function(e,t,n){"use strict";var o=n("BO1k"),i=n.n(o),r=n("GfDd"),a=r.keys();function s(e){var t=r(e);return t.default?t.default:t}var c={},u=!0,l=!1,p=void 0;try{for(var d,f=i()(a);!(u=(d=f.next()).done);u=!0){var h=d.value;c[h.replace(/^\.\//,"").replace(/\.(js|ts)$/,"")]=s(h)}}catch(e){l=!0,p=e}finally{try{!u&&f.return&&f.return()}finally{if(l)throw p}}t.a=c},vKgl:function(e,t,n){var o=n("EgsU");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("44921a73",o,!0,{sourceMap:!1})},vXEZ:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".nuxt-progress{position:fixed;top:0;left:0;right:0;height:2px;width:0;-webkit-transition:width .2s,opacity .4s;transition:width .2s,opacity .4s;opacity:1;background-color:#efc14e;z-index:999999}",""])},wGIl:function(e,t,n){var o=n("m8kW");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("6bc7b368",o,!0,{sourceMap:!1})},wQtD:function(e,t,n){"use strict";t.a={name:"navigation-settings",data:function(){return{newNav:{label:"",url:""},navigation:this.$store.state.application.config.navigation||[]}},computed:{isNotValid:function(){return""===this.newNav.label.trim()||""===this.newNav.url.trim()}},methods:{remove:function(e){this.navigation.splice(e,1)},clear:function(){this.newNav={label:"",url:""}},add:function(e){this.navigation.push(e),this.clear()}}}},wrAo:function(e,t,n){"use strict";t.a={name:"hubpress-settings-social",computed:{social:function(){return this.$store.state.application.config.socialnetwork||{}}}}},xgbc:function(e,t,n){var o=n("y4OV");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("0c6dd1d8",o,!0,{sourceMap:!1})},y4OV:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"",""])},yJpT:function(e,t,n){var o=n("j9sj");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("33615082",o,!0,{sourceMap:!1})},yTq1:function(e,t,n){"use strict";var o=n("//Fk"),i=n.n(o),r=n("I3G/"),a=n.n(r),s=n("F88d"),c=n("XSDV"),u=(n.n(c),{_default:function(){return n.e(0).then(n.bind(null,"Ma2J")).then(function(e){return e.default||e})}}),l={};t.a={head:{title:"Hubpress: A web application to build your Blog",meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{hid:"description",name:"description",content:"Nuxt.js project"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"},{rel:"stylesheet",href:"../static/semantic/semantic.min.css"}],style:[],script:[]},render:function(e,t){var n=e("nuxt-loading",{ref:"loading"}),o=e(this.layout||"nuxt");return e("div",{domProps:{id:"__nuxt"}},[n,e("transition",{props:{name:"layout",mode:"out-in"}},[e("div",{domProps:{id:"__layout"},key:this.layoutName},[o])])])},data:function(){return{layout:null,layoutName:""}},beforeCreate:function(){a.a.util.defineReactive(this,"nuxt",this.$options.nuxt)},created:function(){a.a.prototype.$nuxt=this,"undefined"!=typeof window&&(window.$nuxt=this),this.error=this.nuxt.error},mounted:function(){this.$loading=this.$refs.loading},watch:{"nuxt.err":"errorChanged"},methods:{errorChanged:function(){this.nuxt.err&&this.$loading&&(this.$loading.fail&&this.$loading.fail(),this.$loading.finish&&this.$loading.finish())},setLayout:function(e){e&&l["_"+e]||(e="default"),this.layoutName=e;var t="_"+e;return this.layout=l[t],this.layout},loadLayout:function(e){var t=this;e&&(u["_"+e]||l["_"+e])||(e="default");var n="_"+e;return l[n]?i.a.resolve(l[n]):u[n]().then(function(e){return l[n]=e,delete u[n],l[n]}).catch(function(e){if(t.$nuxt)return t.$nuxt.error({statusCode:500,message:e.message})})}},components:{NuxtLoading:s.a}}},yUYC:function(e,t,n){"use strict";var o=n("I3G/"),i=n.n(o);t.a={name:"nuxt-loading",data:function(){return{percent:0,show:!1,canSuccess:!0,duration:5e3,height:"2px",color:"#3B8070",failedColor:"red"}},methods:{start:function(){var e=this;return this.show=!0,this.canSuccess=!0,this._timer&&(clearInterval(this._timer),this.percent=0),this._cut=1e4/Math.floor(this.duration),this._timer=setInterval(function(){e.increase(e._cut*Math.random()),e.percent>95&&e.finish()},100),this},set:function(e){return this.show=!0,this.canSuccess=!0,this.percent=Math.floor(e),this},get:function(){return Math.floor(this.percent)},increase:function(e){return this.percent=this.percent+Math.floor(e),this},decrease:function(e){return this.percent=this.percent-Math.floor(e),this},finish:function(){return this.percent=100,this.hide(),this},pause:function(){return clearInterval(this._timer),this},hide:function(){var e=this;return clearInterval(this._timer),this._timer=null,setTimeout(function(){e.show=!1,i.a.nextTick(function(){setTimeout(function(){e.percent=0},200)})},500),this},fail:function(){return this.canSuccess=!1,this}}}},ys1n:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".grid[data-v-94154cf6]{margin:0;height:100%;background-color:#dadada}#loginForm.column[data-v-94154cf6]{max-width:450px;text-align:center}.column[data-v-94154cf6]{max-width:750px}",""])},zQW4:function(e,t,n){"use strict";for(var o=n("woOf"),i=n.n(o),r=n("//Fk"),a=n.n(r),s=n("BO1k"),c=n.n(s),u=n("mtWM"),l=n.n(u),p={setHeader:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",o=!0,i=!1,r=void 0;try{for(var a,s=c()(Array.isArray(n)?n:[n]);!(o=(a=s.next()).done);o=!0){var u=a.value;if(!t)return void delete this.defaults.headers[u][e];this.defaults.headers[u][e]=t}}catch(e){i=!0,r=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}},setToken:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",o=e?(t?t+" ":"")+e:null;this.setHeader("Authorization",o,n)},onRequest:function(e){this.interceptors.request.use(function(t){return e(t)||t})},onResponse:function(e){this.interceptors.response.use(function(t){return e(t)||t})},onRequestError:function(e){this.interceptors.request.use(void 0,function(t){return e(t)||a.a.reject(t)})},onResponseError:function(e){this.interceptors.response.use(void 0,function(t){return e(t)||a.a.reject(t)})},onError:function(e){this.onRequestError(e),this.onResponseError(e)}},d=function(e){p["$"+e]=function(){return this[e].apply(this,arguments).then(function(e){return e&&e.data})}},f=["request","delete","get","head","options","post","put","patch"],h=0;h1&&(r=(e.path||"")+"page/"+o+"/index.html"),o>1&&(v=o-1),oo-1||g+1===t.length){var w=l.a.template(e.template,{pagination:{prev:v,next:m,page:o,pages:h,total:t.length,limit:u},context:"index"===e.template&&0===v?"home":e.template,posts:a,tag:e.tag,author:e.author,title:i.title,description:i.description,socialnetwork:p,relativeUrl:""},{config:n,theme:e.opts.nextState.theme});s.push({name:"page-"+o,path:r,content:w,message:"Publish page-"+o+" "+e.template}),a=[],o++}}),e.opts.nextState.elementsToPublish=(e.opts.nextState.elementsToPublish||[]).concat(s),e.opts}}]),e}();t.a=new f},BdWi:function(e,t,n){"use strict";t.a=function(e){console.info("PagesGenerator - generate"),console.log("PagesGenerator - generate",e);var t=e;return e.nextState.publishedPages.forEach(function(e){t=Object(o.a)(t,e)}),t};n("APUd");var i=n("j+6P"),o=(n.n(i),n("KgKs"))},E1SC:function(e,t,n){"use strict";var i=n("SUis"),o=n("7Fxy");var r=function(e){n("vKgl")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},"ET/a":function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui center aligned grid"},[n("div",{staticClass:"ui middle aligned grid"},[e.requireInitilisation?n("div",{staticClass:"column"},[n("div",{staticClass:"ui segment"},[n("initialisation-component",{tag:"component"})],1)]):e._e(),e.requireInitilisation?e._e():n("div",{staticClass:"column",attrs:{id:"loginForm"}},[n("div",{staticClass:"ui segment"},[n("img",{staticClass:"image",attrs:{src:"https://hubpress.github.io/images/logo.png"}}),n("h2",{staticClass:"ui header"},[e._v("\n Welcome!\n ")]),n("div",{staticClass:"content"}),n("form",{staticClass:"ui medium form",on:{submit:function(t){t.preventDefault(),e.login({email:e.email,password:e.password})}}},[n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"user icon"}),n("input",{attrs:{type:"text",name:"email",placeholder:"Username or e-mail address"},domProps:{value:e.email},on:{input:e.updateEmail}})])]),n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"lock icon"}),n("input",{attrs:{type:"password",name:"password",placeholder:"Password"},domProps:{value:e.password},on:{input:e.updatePassword}})])]),e.isTwoFactorCodeRequired?n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"key icon"}),n("input",{attrs:{type:"text",name:"twoFactorCode",placeholder:"Two factor code"},domProps:{value:e.twoFactorCode},on:{input:e.updateTwoFactorCode}})])]):e._e(),n("button",{staticClass:"ui fluid large submit button",attrs:{type:"submit",name:"button"}},[e._v("Login")])]),e._m(0)])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui message"},[this._v("\n If you have questions about how to use HubPress, "),t("a",{attrs:{href:"https://hubpress.gitbooks.io/hubpress-knowledgebase/content/"}},[this._v("here is the right place.")])])}]};t.a=i},EgsU:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".posts-container .menu{min-height:47px}.posts-container{height:100%;overflow:auto}.posts.ui.container{padding-top:60px}.image.cover>div{width:100%;height:200px;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}@media screen and (max-width:622px){.posts.ui.container .ui.card .image.cover{display:none}}",""])},F6eF:function(e,t,n){"use strict";var i=n("7t+N"),o=n.n(i);t.a={name:"initialise-configuration",data:function(){return{username:"",repositoryName:"hubpress.io",branch:"master",cname:void 0}},mounted:function(){o()("div.dropdown").dropdown()},computed:{isValid:function(){return""!=this.username.trim()&&""!=this.repositoryName.trim()}},methods:{submit:function(){var e={username:this.username,repositoryName:this.repositoryName,branch:this.branch,cname:this.cname};this.$store.dispatch("application:save-startup-config",e)}}}},F88d:function(e,t,n){"use strict";var i=n("yUYC"),o=n("cmzl");var r=function(e){n("0xYM")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},FIB3:function(e,t,n){"use strict";t.a={name:"nuxt-error",props:["error"],head:function(){return{title:this.message,meta:[{name:"viewport",content:"width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"}]}},computed:{statusCode:function(){return this.error&&this.error.statusCode||500},message:function(){return this.error.message||"Error"}}}},FdPX:function(e,t,n){"use strict";var i={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"__nuxt-error-page"},[t("div",{staticClass:"error"},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"90",height:"90",fill:"#DBE1EC",viewBox:"0 0 48 48"}},[t("path",{attrs:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}})]),t("div",{staticClass:"title"},[this._v(this._s(this.message))]),404===this.statusCode?t("p",{staticClass:"description"},[t("nuxt-link",{staticClass:"error-link",attrs:{to:"/"}},[this._v("Back to the home page")])],1):this._e(),this._m(0)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"logo"},[t("a",{attrs:{href:"https://nuxtjs.org",target:"_blank",rel:"noopener"}},[this._v("Nuxt.js")])])}]};t.a=i},FoP8:function(module,__webpack_exports__,__webpack_require__){"use strict";function applyScript(hasChanged){if(hasChanged){for(var element=document.getElementById("html-content"),scripts=element.getElementsByTagName("script"),addedScripts=[],i=0;i.menu[data-v-0536f20d]{height:47px}",""])},HUXV:function(e,t,n){"use strict";var i=n("6Ndi");t.a={refreshAfterSavedConfig:function(e){return i.a.fireRequestTheme(e).then(function(t){return i.a.fireReceiveTheme(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return console.time("Build content"),e}).then(function(e){return i.a.fireRequestGenerateIndex(e)}).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGeneratePosts(e)}).then(function(e){return i.a.fireReceiveGeneratePosts(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)}).then(function(e){return i.a.fireRequestLocalPublishedPages(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPages(e)}).then(function(e){return i.a.fireRequestGeneratePages(e)}).then(function(e){return i.a.fireReceiveGeneratePages(e)}).then(function(e){return console.timeEnd("Build content"),e}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})}}},"Hot+":function(e,t,n){"use strict";var i=n("I3G/"),o=n.n(i),r=n("HBB+"),a=n("ct3O"),s=n("YLfZ");t.a={name:"nuxt",props:["nuxtChildKey","keepAlive"],render:function(e){return this.nuxt.err?e("nuxt-error",{props:{error:this.nuxt.err}}):e("nuxt-child",{key:this.routerViewKey,props:this.$props})},beforeCreate:function(){o.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(s.b)(this.$route.matched[0].path)(this.$route.params);var e=this.$route.matched[0]&&this.$route.matched[0].components.default;return e&&e.options&&e.options.key?"function"==typeof e.options.key?e.options.key(this.$route):e.options.key:this.$route.path}},components:{NuxtChild:r.a,NuxtError:a.a}}},IBrK:function(e,t,n){"use strict";var i=n("F6eF"),o=n("N3Gg");var r=function(e){n("XkEn")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Ie2b:function(e,t){},Irdm:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"settings-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.submit(t)}}},[e._m(0)])])]),n("div",{staticClass:"ui container settings-content"},[e._m(1),n("div",{staticClass:"ui divider"}),n("form",{staticClass:"ui form",attrs:{id:"mainForm"}},[n("div",{staticClass:"ui secondary pointing menu"},[n("div",{staticClass:"item active",attrs:{"data-tab":"application",id:"application-tab"}},[e._v("Application")]),e._l(e.tabs,function(t){return n("div",{key:t.id,staticClass:"item",attrs:{"data-tab":t.id}},[e._v(e._s(t.label))])})],2),n("div",{staticClass:"ui bottom attached tab segment active",attrs:{"data-tab":"application"}},[n("h4",{staticClass:"ui dividing header"},[e._v("Domain")]),n("div",{staticClass:"field"},[n("label",[e._v("CNAME")]),n("input",{attrs:{type:"text",name:"application-cname",placeholder:"CNAME"},domProps:{value:e.config.meta.cname}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Metadata (set in config.json)")]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub username")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-username",placeholder:"Github username"},domProps:{value:e.config.meta.username}})]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub repository name")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-repository-name",placeholder:"GitHub repository name"},domProps:{value:e.config.meta.repositoryName}})]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub branch")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-branch",placeholder:"GitHub branch"},domProps:{value:e.config.meta.branch}})]),e._m(2)]),e._l(e.tabs,function(e){return n("div",{key:e.id,staticClass:"ui bottom attached tab segment ",attrs:{"data-tab":e.id}},[n(e.id,{tag:"component"})],1)})],2)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Save your settings","data-position":"bottom right"}},[t("i",{staticClass:"save large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"ui center aligned icon header"},[t("i",{staticClass:"circular settings icon"}),this._v("\n Settings\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"disabled field"},[t("label",[this._v("Blog URL")]),t("input",{attrs:{type:"text",disabled:"",name:"application-blog-url",placeholder:"Blog URL"}})])}]};t.a=i},J2Ti:function(e,t,n){"use strict";n.d(t,"a",function(){return y});var i=n("woOf"),o=n.n(i),r=n("BO1k"),a=n.n(r),s=n("I3G/"),c=n.n(s),u=n("NYxO");c.a.use(u.default);var l=n("1H2/"),p=l.keys(),d={},f=void 0;if(p.forEach(function(e){-1!==e.indexOf("./index.")&&(f=e)}),f&&(d=P(f)),"function"!=typeof d){d.modules||(d.modules={});var h=!0,g=!1,m=void 0;try{for(var v,b=a()(p);!(h=(v=b.next()).done);h=!0){var x=v.value,C=x.replace(/^\.\//,"").replace(/\.(js|ts)$/,"");if("index"!==C){var w=C.split(/\//);(e=k(d,w))[C=w.pop()]=P(x),e[C].namespaced=!0}}}catch(e){g=!0,m=e}finally{try{!h&&b.return&&b.return()}finally{if(g)throw m}}}var y=d instanceof Function?d:function(){return new u.default.Store(o()({strict:!1},d,{state:d.state instanceof Function?d.state():{}}))};function P(e){var t=l(e),n=t.default||t;if(n.commit)throw new Error("[nuxt] store/"+e.replace("./","")+" should export a method which returns a Vuex instance.");if(n.state&&"function"!=typeof n.state)throw new Error("[nuxt] state should be a function in store/"+e.replace("./",""));return n}function k(e,t){if(1===t.length)return e.modules;var n=t.shift();return e.modules[n]=e.modules[n]||{},e.modules[n].namespaced=!0,e.modules[n].modules=e.modules[n].modules||{},k(e.modules[n],t)}},JtYm:function(e,t,n){"use strict";var i=n("6Ndi");function o(e){return i.a.fireRequestLocalPosts(e).then(function(e){return i.a.fireReceiveLocalPosts(e)})}t.a={deletePost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=t,e}).then(function(e){return e.nextState.post.original?i.a.fireRequestDeleteRemotePost(e).then(function(e){return i.a.fireReceiveDeleteRemotePost(e)}):e}).then(function(e){return i.a.fireRequestDeleteLocalPost(e)}).then(function(e){return i.a.fireReceiveDeleteLocalPost(e)}).then(function(e){return e.nextState.post.published?i.a.fireRequestDeleteRemotePublishedPost(e).then(function(e){return i.a.fireReceiveDeleteRemotePublishedPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return i.a.fireRequestGenerateIndex(e)}).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)}):e}).then(o)},getLocalPost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)})},getLocalPosts:o,remoteSavePost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){return i.a.fireRequestSaveRemotePost(e)}).then(function(e){return i.a.fireReceiveSaveRemotePost(e)}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)})},renderAndSavePost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){return e.nextState.post.content=e.payload.post.content,e}).then(function(e){return i.a.fireRequestRenderingPost(e)}).then(function(e){return i.a.fireReceiveRenderingPost(e)}).then(function(e){return e.nextState.post&&e.nextState.post.title?i.a.fireRequestSaveLocalPost(e).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}):e}).then(function(e){var t=e.nextState.post.original;return e.nextState.post.original=e.nextState.post,e.nextState.post.original.author=e.nextState.post.original.author||e.rootState.authentication.userInformations,i.a.fireRequestGeneratePost(e).then(function(e){return i.a.fireReceiveGeneratePost(e)}).then(function(e){var n=e.nextState.elementsToPublish[0]||{};return e.nextState.post.publishedContent=n.content,e.nextState.post.original=t,e})})},publishPost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=_.union(e.nextState.post.tags,t),e}).then(function(e){return i.a.fireRequestSaveRemotePost(e)}).then(function(e){return i.a.fireReceiveSaveRemotePost(e)}).then(function(e){return e.nextState.post.original.author=e.nextState.post.original.author||e.nextState.post.author,e.nextState.post.published=1,e}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return i.a.fireRequestGeneratePost(e)}).then(function(e){return i.a.fireReceiveGeneratePost(e)}).then(function(e){return"post"!==e.nextState.post.type?e:i.a.fireRequestGenerateIndex(e).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)})}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})},unpublishPost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=t,e}).then(function(e){return i.a.fireRequestDeleteRemotePublishedPost(e)}).then(function(e){return i.a.fireReceiveDeleteRemotePublishedPost(e)}).then(function(e){return e.nextState.post.published=0,e}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return"post"!==e.nextState.post.type?e:i.a.fireRequestGenerateIndex(e).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)})}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})}}},KMrN:function(e,t,n){"use strict";var i=n("LEOq"),o=n.n(i);t.a={authenticate:function(e){return function(e){return o.a.fire("requestAuthentication",e)}(e).then(function(e){return(t=e).nextState.twoFactorRequired?payload:o.a.fire("receiveAuthentication",t);var t})},initialize:function(e){return function(e){return o.a.fire("requestSavedAuth",e)}(e).then(function(e){return t=e,o.a.fire("receiveSavedAuth",t);var t})}}},KOTd:function(e,t,n){"use strict";t.a=function(e){console.info("AuthorGenerator - generate"),console.log("AuthorGenerator - generate",e);var t=void 0;if(!s.a.isTemplateAvailable("author"))return e;t=e.nextState.author?e.nextState.publishedPosts.filter(function(t){return t.author.login===e.nextState.author.login}):e.nextState.publishedPosts;var n=r.a.reduce(t,function(e,t){return e[t.author.login]=e[t.author.login]||[],e[t.author.login].push(t),e},{}),o=e;return r.a.each(n,function(e,t){var n=e[0].author;n.name=n.name||n.login,n.slug=t,n.website=n.blog,n.status="",o=i.a.generate({opts:o,posts:e,author:n,template:"author",path:"author/"+t+"/"})}),o};var i=n("APUd"),o=n("M4fF"),r=n.n(o),a=n("j+6P"),s=n.n(a),c=n("n+xr");n.n(c)},KgKs:function(e,t,n){"use strict";t.a=function(e,t){console.info("PostGenerator - generate"),console.log("PostGenerator - generate",e);var n=t,i=o()({},n.original);i.tags=a.a.map(i.tags,function(e){return{name:e,slug:l()(e)}});var r=i.author;i.author={id:r.id,name:r.name||r.login,location:r.location,website:r.blog,image:r.avatar_url,profile_image:r.avatar_url,bio:r.bio,status:"",slug:r.login};var s=e.rootState.application.config,u=s.urls;e.nextState.theme.name,e.nextState.theme.version,s.urls.theme;i.urls=u,i.status="published",i.feature_image=i.image;var p="index.adoc"===n.name?"home":n.type||"post";if(!c.a.isTemplateAvailable(p))return e;var d=c.a.template(p,{context:n.type||"post",socialnetwork:s.socialnetwork,relativeUrl:n.url,post:i,author:i.author},{config:s,theme:e.nextState.theme}),f=[];return f.push({title:n.title,image:n.image,name:n.name,path:s.urls.getContentGhPath(n.name,n.type),url:s.urls.getContentGhPath(n.name,n.type),content:d,message:"Publish "+n.name,published_at:n.published_at}),e.nextState.elementsToPublish=(e.nextState.elementsToPublish||[]).concat(f),e};var i=n("woOf"),o=n.n(i),r=n("M4fF"),a=n.n(r),s=n("j+6P"),c=n.n(s),u=n("n+xr"),l=n.n(u)},LB67:function(e,t,n){"use strict";var i=n("6Ndi");t.a={authenticate:function(e){return i.a.fireRequestAuthentication(e).then(function(e){return i.a.fireReceiveAuthentication(e)})}}},MHN4:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".about-content{padding-top:60px}",""])},N3Gg:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"initialise-configuration"},[e._m(0),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"content"},[e._v("\n We need to initialize your configuration before a first use.\n ")]),n("div",{staticClass:"ui divider"}),n("form",{staticClass:"ui form",attrs:{id:"configurationForm"},on:{submit:function(t){t.preventDefault(),e.submit()}}},[n("div",{staticClass:"required field"},[n("label",[e._v("Username")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.username,expression:"username"}],attrs:{type:"text",name:"configuration-username",placeholder:"Your github username"},domProps:{value:e.username},on:{input:function(t){t.target.composing||(e.username=t.target.value)}}})]),n("div",{staticClass:"required field"},[n("label",[e._v("Repository name")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.repositoryName,expression:"repositoryName"}],attrs:{type:"text",name:"configuration-cname",placeholder:"The name of your repository"},domProps:{value:e.repositoryName},on:{input:function(t){t.target.composing||(e.repositoryName=t.target.value)}}})]),n("div",{staticClass:"required field"},[n("label",[e._v("Branch")]),n("div",{staticClass:"ui selection dropdown"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.branch,expression:"branch"}],attrs:{type:"hidden",name:"branch"},domProps:{value:e.branch},on:{input:function(t){t.target.composing||(e.branch=t.target.value)}}}),n("i",{staticClass:"dropdown icon"}),n("div",{staticClass:"default text"},[e._v("master")]),e._m(1)])]),n("div",{staticClass:"field"},[n("label",[e._v("Domain name")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.cname,expression:"cname"}],attrs:{type:"text",name:"configuration-cname",placeholder:"Your domain name if you have one"},domProps:{value:e.cname},on:{input:function(t){t.target.composing||(e.cname=t.target.value)}}})]),n("button",{staticClass:"ui fluid large submit button",attrs:{type:"submit",name:"button",disabled:!e.isValid}},[e._v("Ok, let's go!")])]),e._m(2)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"ui center aligned icon header"},[t("i",{staticClass:"circular configure icon"}),this._v("\n Configuration\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"menu"},[t("div",{staticClass:"item",attrs:{"data-value":"master"}},[this._v("master")]),t("div",{staticClass:"item",attrs:{"data-value":"gh-pages"}},[this._v("gh-pages")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui message"},[this._v("\n If you have questions about how to use HubPress, "),t("a",{attrs:{href:"https://hubpress.gitbooks.io/hubpress-knowledgebase/content/"}},[this._v("here is the right place.")])])}]};t.a=i},NpFX:function(e,t,n){"use strict";var i=n("FoP8"),o=n("XO7e");var r=function(e){n("YDvP")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Pm0L:function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"f",function(){return o}),n.d(t,"g",function(){return r}),n.d(t,"h",function(){return a}),n.d(t,"d",function(){return s}),n.d(t,"c",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"a",function(){return l});var i="login:submit",o="login:updateEmail",r="login:updatePassword",a="login:updateTwoFactorCode",s="authorisation:request-login",c="authorisation:receive-login",u="authorisation:failure-login",l="authorisation:authentication-done"},Q7NK:function(e,t,n){"use strict";(function(e,t){var i,o=n("pFYg"),r=n.n(o);i=function(e){e.defineMode("asciidoc",function(e,t){var n=1e3,i=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],i=[],o=0,r=this.matchMappings[t]={defaultToken:"text"},a="g",s=[],c=0;c1?this.$applyToken:u.token);p>1&&(/\\\d/.test(u.regex)?l=u.regex.replace(/\\([0-9]+)/g,function(e,t){return"\\"+(parseInt(t,10)+o+1)}):(p=1,l=this.removeCapturingGroups(u.regex)),u.splitRegex||"string"==typeof u.token||s.push(u)),r[o]=c,o+=p,i.push(l),u.onMatch||(u.onMatch=null)}}s.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)},this),this.regExps[t]=new RegExp("("+i.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(e){n=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var i=[],o=0,r=n.length;ol){var m=e.substring(l,g-h.length);p.type==d?p.value+=m:(p.type&&u.push(p),p={type:d,value:m})}for(var v=0;vn){for(;l1&&i[0]!==o&&i.unshift(o),{tokens:u,state:i.length?i:o}}}).call(i.prototype);var o={empty:null,text:null,keyword:"keyword",control:"keyword",operator:"operator",constant:"atom",numeric:"number",character:"atom",escape:"atom",variable:"variable",parameter:"variable-3",language:"variable-2",comment:"comment",line:"comment","double-slash":"comment","double-dash":"comment","number-sign":"comment",percentage:"comment",block:"comment",doc:"comment",string:"string",quoted:"string",single:"string",double:"string",triple:"string",unquoted:"string",interpolated:"string",regexp:"string-2",meta:"keyword",literal:"qualifier",support:"builtin",markup:"tag",underline:"link",link:"link",strong:"strong",heading:"header",heading2:"header-2",heading3:"header-3",heading4:"header-4",heading5:"header-5",heading6:"header-6",em:"em",list:"variable-2",numbered:"variable-2",unnumbered:"variable-2",quote:"quote",raw:"variable-2",invalid:"error",illegal:"invalidchar",deprecated:"error"},r=function(e,t){var n=t.plannedTokens.shift();return void 0===n?null:(e.match(n.value),function(e){for(var t=null,n=0;n0)return r(e,t);var n=t.current,i=e.match(/.*$/,!1)[0],o=s.getLineTokens(i,n);return t.plannedTokens=o.tokens,t.current=o.state,r(e,t)},s=new i((new function(){function e(e){return(/\w/.test(e)?"\\b":"(?:\\B|^)")+e+"[^"+e+"].*?"+e+"(?![\\w*])"}this.$rules={start:[{token:"empty",regex:/$/},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"literal",regex:/^-{4,}\s*$/,next:"literalBlock"},{token:"literal",regex:/^\+{4,}\s*$/,next:"passthroughBlock"},{token:"keyword",regex:/^={4,}\s*$/},{token:"text",regex:/^\s*$/},{token:"empty",regex:"",next:"dissallowDelimitedBlock"}],dissallowDelimitedBlock:[{include:"paragraphEnd"},{token:"comment",regex:"^//.+$"},{token:"keyword",regex:"^(?:NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s"},{include:"listStart"},{token:"literal",regex:/^\s+.+$/,next:"indentedBlock"},{token:"empty",regex:"",next:"text"}],paragraphEnd:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"commentBlock"},{token:"tableBlock",regex:/^\s*[|!]=+\s*$/,next:"tableBlock"},{token:"keyword",regex:/^(?:--|''')\s*$/,next:"start"},{token:"option",regex:/^\[.*\]\s*$/,next:"start"},{token:"pageBreak",regex:/^>{3,}$/,next:"start"},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"titleUnderline",regex:/^(?:={2,}|-{2,}|~{2,}|\^{2,}|\+{2,})\s*$/,next:"start"},{token:"singleLineTitle",regex:/^={1}\s+\S.*$/,next:"start"},{token:"singleLineTitle2",regex:/^={2}\s+\S.*$/,next:"start"},{token:"singleLineTitle3",regex:/^={3}\s+\S.*$/,next:"start"},{token:"singleLineTitle4",regex:/^={4}\s+\S.*$/,next:"start"},{token:"singleLineTitle5",regex:/^={5}\s+\S.*$/,next:"start"},{token:"singleLineTitle6",regex:/^={6}\s+\S.*$/,next:"start"},{token:"otherBlock",regex:/^(?:\*{2,}|_{2,})\s*$/,next:"start"},{token:"optionalTitle",regex:/^\.[^.\s].+$/,next:"start"}],listStart:[{token:"keyword",regex:/^\s*(?:\d+\.|[a-zA-Z]\.|[ixvmIXVM]+\)|\*{1,5}|-|\.{1,5})\s/,next:"listText"},{token:"meta.tag",regex:/^.+(?::{2,4}|;;)(?: |$)/,next:"listText"},{token:"keyword",regex:/^\+\s*$/,next:"start"}],text:[{token:["link","link"],regex:/((?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+)(\[.*?\])/},{token:["link","link"],regex:/(?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+/},{token:"link",regex:/\b[\w\.\/\-]+@[\w\.\/\-]+\b/},{include:"macros"},{include:"paragraphEnd"},{token:"literal",regex:/\+{3,}/,next:"smallPassthrough"},{token:"escape",regex:/\((?:C|TM|R)\)|\.{3}|->|<-|=>|<=|&#(?:\d+|x[a-fA-F\d]+);|(?: |^)--(?=\s+\S)/},{token:"escape",regex:/\\[_*'`+#]|\\{2}[_*'`+#]{2}/},{token:"keyword",regex:/\s\+$/},{token:"text",regex:"[a-zA-Z¡-￿]+\\b"},{token:["keyword","string","keyword"],regex:/(<<[\w\d\-$]+,)(.*?)(>>|$)/},{token:"keyword",regex:/<<[\w\d\-$]+,?|>>/},{token:"constant.character",regex:/\({2,3}.*?\){2,3}/},{token:"support.function.list.callout",regex:/^(?:<\d+>|\d+>|>) /,next:"text"},{token:"keyword",regex:/\[\[.+?\]\]/},{token:"support",regex:/^\[{3}[\w\d =\-]+\]{3}/},{include:"quotes"},{token:"empty",regex:/^\s*$/,next:"start"}],listText:[{include:"listStart"},{include:"text"}],indentedBlock:[{token:"literal",regex:/^[\s\w].+$/,next:"indentedBlock"},{token:"literal",regex:"",next:"start"}],listingBlock:[{token:"literal",regex:/^\.{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],literalBlock:[{token:"literal",regex:/^-{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],passthroughBlock:[{token:"literal",regex:/^\+{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:"[a-zA-Z¡-￿]+\\b|\\d+"},{include:"macros"},{token:"literal",regex:"."}],smallPassthrough:[{token:"literal",regex:/[+]{3,}/,next:"dissallowDelimitedBlock"},{token:"literal",regex:/^\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:"[a-zA-Z¡-￿]+\\b|\\d+"},{include:"macros"}],commentBlock:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"doc.comment",regex:"^.*$"}],tableBlock:[{token:"tableBlock",regex:/^\s*\|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"innerTableBlock"},{token:"tableBlock",regex:/\|/},{include:"text",noEscape:!0}],innerTableBlock:[{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"tableBlock"},{token:"tableBlock",regex:/^\s*|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/\!/}],macros:[{token:"macro",regex:/{[\w\-$]+}/},{token:["text","string","text","constant.character","text"],regex:/({)([\w\-$]+)(:)?(.+)?(})/},{token:["text","markup.list.macro","keyword","string"],regex:/(\w+)(footnote(?:ref)?::?)([^\s\[]+)?(\[.*?\])?/},{token:["markup.list.macro","keyword","string"],regex:/([a-zA-Z\-][\w\.\/\-]*::?)([^\s\[]+)(\[.*?\])?/},{token:["markup.list.macro","keyword"],regex:/([a-zA-Z\-][\w\.\/\-]+::?)(\[.*?\])/},{token:"keyword",regex:/^:.+?:(?= |$)/}],quotes:[{token:"string.italic",regex:/__[^_\s].*?__/},{token:"string.italic",regex:e("_")},{token:"keyword.bold",regex:/\*\*[^*\s].*?\*\*/},{token:"keyword.bold",regex:e("\\*")},{token:"literal",regex:/\+\+[^+\s].*?\+\+/},{token:"literal",regex:e("\\+")},{token:"literal",regex:/\$\$.+?\$\$/},{token:"literal",regex:e("\\$")},{token:"literal",regex:/``[^`\s].*?``/},{token:"literal",regex:e("`")},{token:"keyword",regex:/\^[^\^].*?\^/},{token:"keyword",regex:e("\\^")},{token:"keyword",regex:/~[^~].*?~/},{token:"keyword",regex:e("~")},{token:"keyword",regex:/##?/},{token:"keyword",regex:/(?:\B|^)``|\b''/}]};var t={macro:"constant.character",tableBlock:"doc.comment",titleUnderline:"markup.heading",singleLineTitle:"markup.heading",singleLineTitle2:"markup.heading2",singleLineTitle3:"markup.heading3",singleLineTitle4:"markup.heading4",singleLineTitle5:"markup.heading5",singleLineTitle6:"markup.heading6",pageBreak:"string",option:"string.regexp",otherBlock:"markup.list",literal:"support.function",optionalTitle:"constant.numeric",escape:"constant.language.escape",link:"markup.underline.list"};for(var n in this.$rules)for(var i=this.$rules[n],o=i.length;o--;){var r=i[o];if(r.include||"string"==typeof r){var a=[o,1].concat(this.$rules[r.include||r]);r.noEscape&&(a=a.filter(function(e){return!e.next})),i.splice.apply(i,a)}else r.token in t&&(r.token=t[r.token])}}).$rules);return{startState:function(){return{current:"start",plannedTokens:[]}},blankLine:function(e){a("",e)},token:a}}),e.defineMIME("text/x-asciidoc","asciidoc")},"object"==("undefined"==typeof exports?"undefined":r()(exports))&&"object"==r()(e)?i(n("8U58")):"object"==("undefined"==typeof brackets?"undefined":r()(brackets))&&brackets.getModule?i(brackets.getModule("thirdparty/CodeMirror2/lib/codemirror")):"function"==typeof define&&n("nErl")?define(["codemirror"],i):i(t)}).call(t,n("f1Eh")(e),n("8U58"))},QMmS:function(e,t,n){"use strict";t.b=function(e){return e.on("application:stores",function(e){var t;console.info("authenticationPlugin - application:stores"),console.log("authenticationPlugin - application:stores",e);var n={state:{isAuthenticated:!1,isTwoFactorCodeRequired:!1,credentials:{email:void 0,password:void 0,twoFactorCode:void 0}},mutations:(t={},o()(t,u.f,function(e,t){e.credentials.email=t}),o()(t,u.g,function(e,t){e.credentials.password=t}),o()(t,u.h,function(e,t){e.credentials.twoFactorCode=t}),o()(t,u.d,function(e){e.isLoading=!0}),o()(t,u.c,function(e,t){a.a.merge(e,t)}),o()(t,u.b,function(e,t){e.isAuthenticated=!1}),o()(t,l,function(e,t){a.a.merge(e,t.authentication)}),t),actions:o()({},u.e,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,r=e.state;i(u.d);var c={rootState:a.a.cloneDeep(o),currentState:a.a.cloneDeep(r)};n("application:loading").then(function(e){return s.a.authenticate(c)}).then(function(e){i(u.c,e.nextState)}).then(function(e){return r.isAuthenticated?n(p,!0).then(function(e){return n(u.a)}):r.isTwoFactorCodeRequired?n("application:notify",{icon:"unlock",header:"Two factor code",message:"A code is required to complete your authentication.",level:"warning"}):n("application:notify",{icon:"warning circle",header:"Authentication failed",message:"A error occured during the authentication.",level:"error"})}).then(function(e){return n("application:loaded")}).then(function(e){return t.push(t.currentRoute.query.redirect||"/")}).catch(function(e){n("application:loaded").then(function(e){return n("application:notify",{icon:"warning circle",header:"Authentication failed",message:"A error occured during the authentication.",level:"error"})})})}),getters:{}};return e.nextState.stores.authentication=n,console.log("authenticationPlugin - application:stores - return",e),e}),e.on("application:routes",function(e){return e}),e.on("application:initialize-app",function(e){return console.info("authenticationPlugin - application:initialize-app"),console.log("authenticationPlugin - application:initialize-app",e),s.a.initialize(e).then(function(e){return e})}),e.on("authentication:authenticate",function(e){return console.info("authenticationPlugin - authentication:authenticate"),console.log("authenticationPlugin - authentication:authenticate",e,s.a),s.a.authenticate(e)}),{getName:function(){return"authenticationPlugin"}}},n.d(t,"a",function(){return d});var i=n("bOdI"),o=n.n(i),r=n("M4fF"),a=n.n(r),s=n("KMrN"),c=n("RUoO"),u=n("Pm0L"),l="application:initialize-app",p="application:save-config";var d=c.a},RUoO:function(e,t,n){"use strict";var i=n("6yLl"),o=n("ET/a");var r=function(e){n("7XxQ")},a=n("VU/8")(i.a,o.a,!1,r,"data-v-a450654c",null);t.a=a.exports},RsIG:function(e,t,n){"use strict";var i=n("woOf"),o=n.n(i),r=n("LEOq"),a=n.n(r);function s(e){return a.a.fire("application:receive-config",e)}t.a={initializeRoutes:function(e){return a.a.fire("application:routes",e)},initializeApp:function(e,t){return a.a.fire("application:initialize-app",e,t)},initializePlugins:function(e,t){return a.a.fire("application:initialize-plugins",e,t)},initializeConfig:function(e){return console.log("application - initializeConfig",e),function(e){return a.a.fire("application:request-config",e)}(e).then(s)},startUpConfig:function(e){return console.log("application - startUpConfig",e),s(e)},prepareConfig:function(e){return a.a.fire("application:prepare-config",e)},saveConfig:function(e){return function(e){return console.log("application - fireRequestSaveConfig",e),a.a.fire("application:request-save-config",e)}(e).then(function(t){return o()({},e,{nextState:t.nextState.application})}).then(s).then(function(t){return e.nextState.application=t.nextState,o()({},e)}).catch(function(e){console.log(e)})},saveConfigDone:function(e){return a.a.fire("application:save-config-done",e)}}},SDLk:function(e,t,n){"use strict";var i={render:function(){this.$createElement;this._self._c;return this._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"about-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",attrs:{href:"https://twitter.com/HubPressIO",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Follow us on twitter","data-position":"bottom right"}},[n("i",{staticClass:"twitter large icon"})])]),n("a",{staticClass:"item",attrs:{href:"https://gitter.im/HubPress/hubpress.io",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Wanna chat with us?","data-position":"bottom right"}},[n("i",{staticClass:"gitter large icon"})])]),n("a",{staticClass:"item",attrs:{href:"https://github.com/HubPress",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"HubPress is opensource :)","data-position":"bottom right"}},[n("i",{staticClass:"github large icon"})])])])]),n("div",{staticClass:"about-content"},[n("div",{staticClass:"ui container"},[n("h2",{staticClass:"ui center aligned icon header"},[n("i",{staticClass:"circular users icon"}),e._v("\n The HubPress Team\n ")]),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"row"},[n("div",{staticClass:"ui items divided"},[n("div",{staticClass:"item"},[n("div",{staticClass:"image"},[n("img",{attrs:{src:"https://avatars1.githubusercontent.com/u/2006548?v=3&s=460"}})]),n("div",{staticClass:"content"},[n("a",{staticClass:"header"},[e._v("Anthonny Quérouil")]),n("div",{staticClass:"meta"},[n("span",[e._v("The creator of HubPress")])]),n("div",{staticClass:"description"},[n("p",[e._v("Anthonny is a freelance developer and the creator of HubPress")]),n("p",[e._v("He started HubPress two years ago")])]),n("div",{staticClass:"extra"},[n("a",{staticClass:"ui label",attrs:{href:"https://twitter.com/anthonny_q",target:"_blank"}},[n("i",{staticClass:"twitter icon"}),e._v(" Twitter\n ")]),n("a",{staticClass:"ui label",attrs:{href:"https://github.com/anthonny",target:"_blank"}},[n("i",{staticClass:"github icon"}),e._v(" GitHub\n ")]),n("a",{staticClass:"ui label",attrs:{href:"http://anthonnyquerouil.fr/",target:"_blank"}},[n("i",{staticClass:"home icon"}),e._v(" Website\n ")])])])]),n("div",{staticClass:"item"},[n("div",{staticClass:"image"},[n("img",{attrs:{src:"https://avatars0.githubusercontent.com/u/952793?v=3&s=460"}})]),n("div",{staticClass:"content"},[n("a",{staticClass:"header"},[e._v("Jared Morgan")]),n("div",{staticClass:"meta"},[n("span",[e._v("The Docs guy")])]),n("div",{staticClass:"description"},[n("p",[e._v("By day, Jared is a Certified Scrum Product Owner (CSPO) and Technical Writer for Ladbrokes in Brisbane, Australia.")]),n("p",[e._v("By night, he uses his craft to improve open source software products one README at a time.")]),n("p",[e._v("In between, he uses his expertise in Pinball machines and knowledge of Android beta testing to improve digital pinball apps.")])]),n("div",{staticClass:"extra"},[n("a",{staticClass:"ui label",attrs:{href:"https://twitter.com/jaredmorgs",target:"_blank"}},[n("i",{staticClass:"twitter icon"}),e._v(" Twitter\n ")]),n("a",{staticClass:"ui label",attrs:{href:"https://github.com/jaredmorgs",target:"_blank"}},[n("i",{staticClass:"github icon"}),e._v(" GitHub\n ")]),n("a",{staticClass:"ui label",attrs:{href:"http://jaredleonmorgan.net/",target:"_blank"}},[n("i",{staticClass:"home icon"}),e._v(" Website\n ")])])])])])])])])])}]};t.a=i},SHkU:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._l(e.navigation,function(t,i){return n("div",{key:t.label,staticClass:"fields"},[n("div",{staticClass:"four wide field"},[n("input",{attrs:{type:"text",placeholder:"Label",name:"navigation-label-"+i},domProps:{value:t.label}})]),n("div",{staticClass:"eleven wide field"},[n("input",{attrs:{type:"text",placeholder:"http://www.mysite.com",name:"navigation-url-"+i},domProps:{value:t.url}})]),n("div",{staticClass:"one wide field"},[n("button",{staticClass:"ui icon button",on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.remove(i)}}},[n("i",{staticClass:"trash icon"})])])])}),n("div",{staticClass:"fields"},[n("div",{staticClass:"four wide field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNav.label,expression:"newNav.label"}],attrs:{type:"text",placeholder:"Label"},domProps:{value:e.newNav.label},on:{input:function(t){t.target.composing||e.$set(e.newNav,"label",t.target.value)}}})]),n("div",{staticClass:"eleven wide field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNav.url,expression:"newNav.url"}],attrs:{type:"text",placeholder:"http://www.mysite.com"},domProps:{value:e.newNav.url},on:{input:function(t){t.target.composing||e.$set(e.newNav,"url",t.target.value)}}})]),n("div",{staticClass:"one wide field"},[n("button",{staticClass:"ui icon button",attrs:{disabled:e.isNotValid},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.add(e.newNav)}}},[n("i",{staticClass:"add icon"})])])])],2)},staticRenderFns:[]};t.a=i},SUis:function(e,t,n){"use strict";(function(e){var i=n("PJh5"),o=n.n(i),r=n("RJtx"),a=n.n(r),s=n("lYDI");t.a={name:"posts",data:function(){return{postToDelete:{},filterValue:""}},beforeCreate:function(){},beforeMount:function(){this.$store.dispatch(s.a)},beforeDestroy:function(){e(".ui.basic.modal").remove()},mounted:function(){var t=this;e(".ui.basic.modal").modal({closable:!1,onDeny:function(){},onApprove:function(){t.$store.dispatch(s.d,t.postToDelete._id)}})},methods:{status:function(e){return!e.published?"Draft":"Published"},type:function(e){return e.type.replace(/\b\w/g,function(e){return e.toUpperCase()})},publishedAt:function(e){return!!e.published&&e.published_at&&o()(e.published_at).fromNow()||""},postCoverUrl:function(e){var t=e.image||"https://hubpress.github.io/img/logo.png";return t=t.startsWith("http")?t:e.attributes.$$smap.imagesdir+"/"+e.image},getPostStatusColor:function(e){return e.original?e.original.content!==e.content?"orange":"green":"red"},displayConfirmMessage:function(t){this.postToDelete=t,e(".ui.basic.modal").modal("show")},navigateToPost:function(e){this.$router.push({name:"post",params:{id:e._id}})},newPost:function(){this.$router.push({name:"post",params:{id:a.a.v4()}})},getPostTags:function(e){return e.tags||[]},getPostAuthor:function(e){return e.author||this.$store.state.authentication.userInformations},synchronize:function(){this.$store.dispatch(s.b)}},computed:{posts:function(){var e=this.filterValue.trim();return""===e?this.$store.state.hubpress.posts:this.$store.state.hubpress.posts.filter(function(t){return t.title.toLowerCase().indexOf(e.toLowerCase())>=0||t.tags&&t.tags.filter(function(t){return t.toLowerCase().indexOf(e.toLowerCase())>=0}).length})}}}}).call(t,n("7t+N"))},SjaB:function(e,t,n){var i=n("3fVB");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("2d76ba14",i,!0,{sourceMap:!1})},T23V:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,r,a=n("pFYg"),s=n.n(a),c=n("mvHQ"),u=n.n(c),l=n("fZjL"),p=n.n(l),d=n("woOf"),f=n.n(d),h=n("Zzip"),g=n.n(h),m=n("5QVw"),v=n.n(m),b=n("//Fk"),x=n.n(b),C=n("I3G/"),w=n.n(C),y=n("unZF"),P=n("qcny"),k=n("YLfZ"),S=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=x.a))(function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,s)}c((i=i.apply(e,t||[])).next())})},_=this&&this.__generator||function(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof v.a&&(r[g.a]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=i[2&r[0]?"return":r[0]?"throw":"next"])&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[0,o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1].row{padding-top:0;padding-bottom:0}.post-editor .ui.grid.light>.row{background-color:#f5f5f5;color:#202020}.post-editor .ui.grid.light>.row .ui.header{color:#202020}.post-editor .ui.grid.light>.row a{color:#aa759f}.post-editor .ui.grid.dark>.row,.post-editor .ui.grid.dark>.row .ui.header{background-color:#3f3f3f;color:#dcdccc}.post-editor .ui.grid.dark>.row .ui.header{color:#dcdccc}.post-editor .ui.grid.dark>.row a{color:#dcdcaa}.post-editor .ui.grid{padding-top:0;padding-bottom:0;margin:0}.post-editor .ui.grid .column{padding-top:0;margin-top:0;padding-bottom:0;margin-bottom:0}.vue-codemirror.container{min-height:100%;height:100%}#asciidoc-content,#asciidoc-preview{height:calc(100vh - 47px);min-height:calc(100vh - 47px)}#asciidoc-content.is-hidden{display:none}#asciidoc-preview{overflow-y:auto;padding-top:2em;font-size:1.2em;font-family:Menlo,Monaco,Consolas,Courier New,monospace;word-wrap:break-word}#asciidoc-preview.is-iframe{padding:0}#asciidoc-preview>div{max-width:750px!important;margin:auto}#asciidoc-preview.is-iframe>div{min-width:100%;margin:auto}#asciidoc-preview.is-fullscreen{width:100%!important}#asciidoc-preview>div .ui.header{font-family:Menlo,Monaco,Consolas,Courier New,monospace}#asciidoc-preview .content pre{background-color:#dcdccc;color:#2e2e2e;padding:10px;border-radius:5px;overflow:auto}#asciidoc-preview .paragraph{padding:.75em 0}#asciidoc-preview img{width:100%;max-width:100%}@media screen and (max-width:992px){#asciidoc-content{display:block}#asciidoc-content.is-preview-visible,#asciidoc-preview{display:none}#asciidoc-preview.is-preview-visible{display:block}}.item .ui.icon .rocket.unpublish{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.cm-s-zenburn.CodeMirror .CodeMirror-gutters{background:#3f3f3f!important}.cm-s-zenburn.CodeMirror .CodeMirror-foldgutter-open,.CodeMirror-foldgutter-folded{color:#999}.cm-s-zenburn.CodeMirror .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-zenburn.CodeMirror{background-color:#3f3f3f;color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-builtin{color:#dcdccc;font-weight:700}.cm-s-zenburn.CodeMirror span.cm-comment{color:#7f9f7f}.cm-s-zenburn.CodeMirror span.cm-keyword{color:#f0dfaf;font-weight:700}.cm-s-zenburn.CodeMirror span.cm-atom{color:#bfebbf}.cm-s-zenburn.CodeMirror span.cm-def{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-variable{color:#dfaf8f}.cm-s-zenburn.CodeMirror span.cm-variable-2{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-string,.cm-s-zenburn.CodeMirror span.cm-string-2{color:#cc9393}.cm-s-zenburn.CodeMirror span.cm-number{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-tag{color:#93e0e3}.cm-s-zenburn.CodeMirror span.cm-attribute,.cm-s-zenburn.CodeMirror span.cm-property{color:#dfaf8f}.cm-s-zenburn.CodeMirror span.cm-qualifier{color:#7cb8bb}.cm-s-zenburn.CodeMirror span.cm-meta{color:#f0dfaf}.cm-s-zenburn.CodeMirror span.cm-header,.cm-s-zenburn.CodeMirror span.cm-operator{color:#f0efd0}.cm-s-zenburn.CodeMirror span.CodeMirror-matchingbracket{-webkit-box-sizing:border-box;box-sizing:border-box;background:transparent;border-bottom:1px solid}.cm-s-zenburn.CodeMirror span.CodeMirror-nonmatchingbracket{border-bottom:1px solid;background:none}.cm-s-zenburn.CodeMirror .CodeMirror-activeline,.cm-s-zenburn.CodeMirror .CodeMirror-activeline-background{background:#000}.cm-s-zenburn.CodeMirror div.CodeMirror-selected{background:#545454}.cm-s-zenburn.CodeMirror .CodeMirror-focused div.CodeMirror-selected{background:#4f4f4f}.cm-s-base16-light.CodeMirror{background:#f5f5f5;color:#202020}.cm-s-base16-light.CodeMirror div.CodeMirror-selected{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-line::selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span::selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span>span::selection{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-line::-moz-selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span::-moz-selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span>span::-moz-selection{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-gutters{background:#f5f5f5;border-right:0}.cm-s-base16-light.CodeMirror .CodeMirror-guttermarker{color:#ac4142}.cm-s-base16-light.CodeMirror .CodeMirror-guttermarker-subtle,.cm-s-base16-light.CodeMirror .CodeMirror-linenumber{color:#b0b0b0}.cm-s-base16-light.CodeMirror .CodeMirror-cursor{border-left:1px solid #505050}.cm-s-base16-light.CodeMirror span.cm-comment{color:#8f5536}.cm-s-base16-light.CodeMirror span.cm-atom,.cm-s-base16-light.CodeMirror span.cm-number{color:#aa759f}.cm-s-base16-light.CodeMirror span.cm-attribute,.cm-s-base16-light.CodeMirror span.cm-property{color:#90a959}.cm-s-base16-light.CodeMirror span.cm-keyword{color:#ac4142}.cm-s-base16-light.CodeMirror span.cm-string{color:#f4bf75}.cm-s-base16-light.CodeMirror span.cm-variable{color:#90a959}.cm-s-base16-light.CodeMirror span.cm-variable-2{color:#6a9fb5}.cm-s-base16-light.CodeMirror span.cm-def{color:#d28445}.cm-s-base16-light.CodeMirror span.cm-bracket{color:#202020}.cm-s-base16-light.CodeMirror span.cm-tag{color:#ac4142}.cm-s-base16-light.CodeMirror span.cm-link{color:#aa759f}.cm-s-base16-light.CodeMirror span.cm-error{background:#ac4142;color:#505050}.cm-s-base16-light.CodeMirror .CodeMirror-activeline-background{background:#dddcdc}.cm-s-base16-light.CodeMirror .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}",""])},THns:function(e,t,n){"use strict";t.a=function(e){console.info("PostsGenerator - generate"),console.log("PostsGenerator - generate",e);var t=e;return e.nextState.publishedPosts.forEach(function(e){t=Object(o.a)(t,e)}),t};n("APUd");var i=n("j+6P"),o=(n.n(i),n("KgKs"))},ThI1:function(e,t,n){"use strict";var i=n("oz2E"),o=n("mBSI");var r=function(e){n("yJpT")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Tknw:function(e,t,n){"use strict";var i=n("wrAo"),o=n("zfI2");var r=function(e){n("YoMZ")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},WRRc:function(e,t,n){"use strict";t.a={name:"nuxt-link",functional:!0,render:function(e,t){return e("router-link",t.data,t.children)}}},WiUJ:function(e,t,n){"use strict";t.a=function(e){e.on("hubpress:request-theme",function(e){console.info("templatePlugin - hubpress:request-theme"),console.log("templatePlugin - hubpress:request-theme",e);var t,n,i,r,s,u=e.rootState.application.config.theme.name.toLowerCase(),p=e.rootState.application.config;return(t=u,n=p,i=a.a.defer(),r=[],s=n.urls.hubpress,c.a.get(s+"/themes/"+t+"/theme.json?dt="+Date.now()).end(function(e,n){if(e)i.reject(e);else{var o=n.body,u=o.version,p=!1,d=!1,f=!1;if(l.a.toPairs(o.files).forEach(function(e){var n=a.a.defer();r.push(n.promise),p=p||"pagination"===e[0],d=d||"nav"===e[0],f=f||"navigation"===e[0],c.a.get(s+"/themes/"+t+"/"+e[1]+"?v="+u).end(function(t,i){t?n.reject(t):n.resolve({name:e[0],path:e[1],content:i.text})})}),!p){var h=a.a.defer();r.push(h.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/pagination.hbs").end(function(e,t){e?h.reject(e):h.resolve({name:"pagination",path:"partials/pagination",content:t.text})})}if(!d){var g=a.a.defer();r.push(g.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/nav.hbs").end(function(e,t){e?g.reject(e):g.resolve({name:"nav",path:"partials/nav",content:t.text})})}if(!f){var m=a.a.defer();r.push(m.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/navigation.hbs").end(function(e,t){e?m.reject(e):m.resolve({name:"navigation",path:"partials/navigation",content:t.text})})}a.a.all(r).then(function(e){i.resolve({version:u,files:e})}).catch(function(e){console.log(e),i.reject(e)})}}),i.promise).then(function(t){var n={name:u,files:t.files,version:t.version};b.a.registerTheme(p,n),b.a.registerFiles(n.files);var i=o()({},n);return e.nextState=o()({},e.nextState,{theme:i}),e})}),e.on("requestGenerateIndex",function(e){console.info("templatePlugin - requestGenerateIndex"),console.log("templatePlugin - requestGenerateIndex",e);var t=Object(p.a)(e);return console.log("templatePlugin - requestGenerateIndex return",t),t}),e.on("requestGeneratePost",function(e){console.info("templatePlugin - requestGeneratePost"),console.log("templatePlugin - requestGeneratePost",e);var t=Object(d.a)(e,e.nextState.post);return console.log("templatePlugin - requestGeneratePost return",t),t}),e.on("requestGeneratePosts",function(e){console.info("templatePlugin - requestGeneratePosts"),console.log("templatePlugin - requestGeneratePosts",e);var t=Object(f.a)(e);return console.log("templatePlugin - requestGeneratePosts return",t),t}),e.on("requestGeneratePages",function(e){console.info("templatePlugin - requestGeneratePages"),console.log("templatePlugin - requestGeneratePages",e);var t=Object(h.a)(e);return console.log("templatePlugin - requestGeneratePages return",t),t}),e.on("requestGenerateTags",function(e){console.info("templatePlugin - requestGenerateTags"),console.log("templatePlugin - requestGenerateTags",e);var t=Object(g.a)(e);return console.log("templatePlugin - requestGenerateTags return",t),t}),e.on("requestGenerateAuthors",function(e){console.info("templatePlugin - requestGenerateAuthors"),console.log("templatePlugin - requestGenerateAuthors",e);var t=Object(m.a)(e);return console.log("templatePlugin - requestGenerateAuthors return",t),t})};var i=n("woOf"),o=n.n(i),r=n("/Luh"),a=n.n(r),s=n("GG98"),c=n.n(s),u=n("M4fF"),l=n.n(u),p=n("e3+D"),d=n("KgKs"),f=n("THns"),h=n("BdWi"),g=n("dZ6u"),m=n("KOTd"),v=n("j+6P"),b=n.n(v)},X5n4:function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"l",function(){return r}),n.d(t,"i",function(){return a}),n.d(t,"j",function(){return s}),n.d(t,"k",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"d",function(){return l}),n.d(t,"h",function(){return p}),n.d(t,"a",function(){return d}),n.d(t,"g",function(){return f}),n.d(t,"f",function(){return h});var i="application:initialize-routes",o="application:initialize-config",r="application:save-startup-config",a="application:prepare-config",s="application:save-config",c="application:save-config-done",u="application:initialize-app",l="application:initialize-plugins",p="application:notify",d="application:close-notification",f="application:loading",h="application:loaded"},X8TR:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"post-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.showAsciidocHelp()}}},[e._m(0)]),n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchLight()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.lightLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{sun:e.isDark,moon:!e.isDark}})])]),n("a",{staticClass:"item html-preview",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreview(!1)}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.previewLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{unhide:!e.isPreviewVisible||e.isIFrame,hide:e.isPreviewVisible&&!e.isIFrame}})])]),n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreview(!0)}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.previewLabelIFrame,"data-position":"bottom right"}},[n("i",{staticClass:"large icon globe"})])]),e.isPreviewVisible?n("a",{staticClass:"item preview-resize",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreviewSize()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.resizeLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{expand:!e.isFullScreen,compress:e.isFullScreen}})])]):e._e(),e.isRemoteActionVisible?n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.remoteSave()}}},[e._m(1)]):e._e(),e.isRemoteActionVisible?n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.publish()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.publishLabel,"data-position":"bottom right"}},[n("i",{staticClass:"icons"},[n("i",{staticClass:"cloud large icon",class:{download:e.isPostPublished,upload:!e.isPostPublished}})])])]):e._e()])]),e._m(2),n("div",{staticClass:"post-editor"},[n("div",{staticClass:"ui grid",class:{dark:e.isDark,light:!e.isDark}},[n("div",{staticClass:"row"},[n("div",{staticClass:"column",class:{"sixteen wide mobile height wide computer is-preview-visible":e.isPreviewVisible,"sixteen wide":!e.isPreviewVisible,"is-hidden":e.isFullScreen},attrs:{id:"asciidoc-content"}},[n("codemirror",{ref:"codeEditor",staticClass:"container",attrs:{code:e.content,options:e.editorOption},on:{input:e.contentChange}})],1),e.isPreviewVisible?n("div",{staticClass:"column",class:{"sixteen wide mobile height wide computer is-preview-visible":e.isPreviewVisible,"is-iframe":e.isIFrame,"is-fullscreen":e.isFullScreen},attrs:{id:"asciidoc-preview"}},[n("preview",{attrs:{post:e.post,iframe:e.isIFrame}})],1):e._e()])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Need some help?","data-position":"bottom right"}},[t("i",{staticClass:"help large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Save your post remotely","data-position":"bottom right"}},[t("i",{staticClass:"save large icon"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui modal",attrs:{id:"asciidoc-help"}},[n("i",{staticClass:"close icon"}),n("div",{staticClass:"header"},[e._v("\n Asciidoc syntax help\n ")]),n("div",{staticClass:"content"},[n("table",{staticClass:"ui table"},[n("thead",[n("tr",[n("th",{staticClass:"heigth wide"},[e._v("Result")]),n("th",{staticClass:"heigth wide"},[e._v("Asciidoc")])])]),n("tbody",[n("tr",[n("td",[e._v("H1")]),n("td",[e._v("= Title")])]),n("tr",[n("td",[e._v("H2")]),n("td",[e._v("== Title")])]),n("tr",[n("td",[e._v("H3")]),n("td",[e._v("=== Title")])]),n("tr",[n("td",[n("strong",[e._v("Bold")])]),n("td",[e._v("*content*")])]),n("tr",[n("td",[n("i",[e._v("Emphasize")])]),n("td",[e._v("_content_")])]),n("tr",[n("td",[n("a",{attrs:{href:"#"}},[e._v("Link")])]),n("td",[e._v("http://asciidoctor.org[Asciidoctor]")])]),n("tr",[n("td",[e._v("Image Block")]),n("td",[e._v("image::sunset.jpg[]")])]),n("tr",[n("td",[e._v("Image Inline")]),n("td",[e._v('Click image:icons/pause.png[title="Pause"] when you need a break.')])]),n("tr",[n("td",[e._v("Video")]),n("td",[e._v("video::video_file.mp4[]")])]),n("tr",[n("td",[e._v("Unordered list")]),n("td",[e._v("* item")])]),n("tr",[n("td",[e._v("Ordered list")]),n("td",[e._v(". item")])]),n("tr",[n("td",[n("code",[e._v("Inline code")])]),n("td",[e._v("`code`")])])])]),n("p",[e._v("\n More informations about the Asciidoc syntax here: "),n("a",{attrs:{href:"http://asciidoctor.org/docs/asciidoc-syntax-quick-reference/",target:"_blank"}},[e._v("AsciiDoc Syntax Quick Reference")])])])])}]};t.a=i},XO7e:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.iframe?e._e():n("div",{staticClass:"html-rendering"},[n("h1",{staticClass:"ui header"},[e._v(e._s(e.post.title))]),n("div",{staticClass:"content",attrs:{id:"html-content"},domProps:{innerHTML:e._s(e.post.html)}})]),e.iframe?n("div",{staticClass:"iframe-rendering"},[n("iframe",{staticClass:"published-preview",attrs:{srcdoc:e.post.publishedContent,frameborder:"0"}})]):e._e()])},staticRenderFns:[]};t.a=i},XSDV:function(e,t,n){var i=n("jAb+");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("5bd01218",i,!0,{sourceMap:!1})},XkEn:function(e,t,n){var i=n("dd07");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("1ce06800",i,!0,{sourceMap:!1})},Y2j8:function(e,t,n){"use strict";var i=n("woOf"),o=(n.n(i),n("/Luh")),r=(n.n(o),n("M4fF")),a=(n.n(r),n("RJtx")),s=(n.n(a),n("Wa/L")),c=n("tCkb");s.a.plugin(c.a),window.PouchDB=s.a},YDvP:function(e,t,n){var i=n("qZPA");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("3ecfbf5a",i,!0,{sourceMap:!1})},YG9q:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),t.a=function(e){return e.on("application:routes",function(e){return console.info("applicationPlugin - application:routes"),console.log("applicationPlugin - application:routes",e),e.nextState.routes.push({id:"application",entries:[{path:"settings",name:"settings",component:s.a}]}),console.log("applicationPlugin - application:routes - return",e),e}),e.on("application:stores",function(e){var t,n;console.info("applicationPlugin - application:stores"),console.log("applicationPlugin - application:stores",e);var i={state:{isInitialized:!1,isFetching:!1,isLoading:!1,requireInitilisation:!1,notification:{icon:"save",header:"My Header",message:"A message",level:"default",isVisible:!1},routes:[],settingsTabs:[]},mutations:(t={},o()(t,a.b,function(e,t){_.merge(e,t.application)}),o()(t,a.d,function(e,t){_.merge(e,t.application)}),o()(t,a.e,function(e,t){e.routes=t}),o()(t,a.c,function(e,t){_.merge(e,t)}),o()(t,a.i,function(e,t){_.merge(e,t)}),o()(t,a.l,function(e,t){_.merge(e,t)}),o()(t,a.j,function(e,t){_.merge(e,t.application)}),o()(t,a.k,function(e,t){_.merge(e,t.application)}),o()(t,a.h,function(e,t){t.isVisible=!0,_.merge(e.notification,t)}),o()(t,a.a,function(e,t){e.notification.isVisible=!1}),o()(t,a.g,function(e,t){e.isLoading=!0}),o()(t,a.f,function(e,t){e.isLoading=!1}),t),actions:(n={},o()(n,a.c,function(e){var t=e.commit,n=e.rootState,i=e.state,o={rootState:_.cloneDeep(n),currentState:_.cloneDeep(i)};return r.a.initializeConfig(o).then(function(e){t(a.c,e.nextState)})}),o()(n,a.b,function(e){var t=e.commit,n=e.rootState,i=(e.state,{rootState:_.cloneDeep(n),currentState:_.cloneDeep(n)});return r.a.initializeApp(i).then(function(e){console.log("helllllllo",e),t(a.b,e.nextState)})}),o()(n,a.d,function(e){var t=e.commit,n=e.rootState,i=(e.state,{rootState:_.cloneDeep(n),currentState:_.cloneDeep(n)});return r.a.initializePlugins(i).then(function(e){e.nextState.application.isInitialized=!0,t(a.d,e.nextState)})}),o()(n,a.i,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,s=e.state,c={rootState:_.cloneDeep(o),currentState:_.cloneDeep(s),nextState:_.cloneDeep(s),payload:{formData:t}};return c.currentState.isLoading=!0,c.nextState.isLoading=!0,n(a.g).then(function(e){return r.a.prepareConfig(c)}).then(function(e){return i(a.i,e.nextState),n(a.j)})}),o()(n,a.l,function(e,t){e.dispatch;var n=e.commit,i=e.rootState,o=e.state,s={rootState:_.cloneDeep(i),currentState:_.cloneDeep(o),nextState:_.cloneDeep(o)};return s.nextState.config.meta.username=t.username,s.nextState.config.meta.repositoryName=t.repositoryName,s.nextState.config.meta.branch=t.branch,s.nextState.config.meta.cname=t.cname,s.nextState.requireInitilisation=!1,r.a.startUpConfig(s).then(function(e){n(a.l,e.nextState)})}),o()(n,a.j,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,s=(e.state,{rootState:_.cloneDeep(o),currentState:_.cloneDeep(o),nextState:_.cloneDeep(o)});return console.log(s),r.a.saveConfig(s).then(function(e){if(console.log("testsettesse",e),i(a.j,e.nextState),!t)return n(a.k)})}),o()(n,a.k,function(e){var t=e.dispatch,n=e.commit,i=e.rootState,o=(e.state,{rootState:_.cloneDeep(i),currentState:_.cloneDeep(i),nextState:_.cloneDeep(i)});return r.a.saveConfigDone(o).then(function(e){n(a.k,e.nextState)}).then(function(e){return t("application:loaded")}).then(function(e){return t("application:notify",{icon:"save",header:"Settings saved",message:"Your settings have been saved and your blog was rebuild with success. ",level:"success"})})}),o()(n,a.h,function(e,t){e.dispatch;var n=e.commit;e.rootState,e.state,n(a.h,t)}),o()(n,a.a,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.a)}),o()(n,a.g,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.g)}),o()(n,a.f,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.f)}),n),getters:{navigations:function(e){return e.routes.filter(function(e){return e.label})}}};return e.nextState.stores.application=i,console.log("applicationPlugin - application:stores - return",e),e}),e.on("application:prepare-config",function(e){return console.info("applicationPlugin - application:prepare-config"),console.log("applicationPlugin - application:prepare-config",e),e.nextState.config.meta.cname=e.payload.formData.get("application-cname"),console.log("applicationPlugin - application:prepare-config - return",e),e}),e.on("application:save-config",function(e){return console.info("applicationPlugin - application:save-config"),console.log("applicationPlugin - application:save-config",e),console.log("applicationPlugin - application:save-config - return",e),e}),{getName:function(){return"applicationPlugin"}}};var i=n("bOdI"),o=n.n(i),r=n("RsIG"),a=n("X5n4"),s=n("kMyt"),c={APPLICATION_PREPARE_CONFIG:a.i}},YLfZ:function(e,t,n){"use strict";t.a=function(e,t){var n=e.options.data||x;if(!t&&e.options.hasAsyncData)return;e.options.hasAsyncData=!0,e.options.data=function(){var i=n.call(this);return this.$ssrContext&&(t=this.$ssrContext.asyncData[e.cid]),m()({},i,t)},e._Ctor&&e._Ctor.options&&(e._Ctor.options.data=e.options.data)},t.l=C,t.e=w,t.f=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],e.matched.map(function(e,n){return h()(e.instances).map(function(i){return t&&t.push(n),e.instances[i]})}))},t.c=y,t.k=P,n.d(t,"h",function(){return _}),n.d(t,"m",function(){return R}),t.i=function e(t,n){if(!t.length||n._redirected||n._errored)return d.a.resolve();return q(t[0],n).then(function(){return e(t.slice(1),n)})},t.j=q,t.d=function(e,t){var n=window.location.pathname;if("hash"===t)return window.location.hash.replace(/^#\//,"");e&&0===n.indexOf(e)&&(n=n.slice(e.length));return(n||"/")+window.location.search+window.location.hash},t.b=function(e,t){return function(e){for(var t=new Array(e.length),n=0;n1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],e.matched.map(function(e,n){return h()(e.components).map(function(i){return t&&t.push(n),e.components[i]})}))}function y(e,t){return Array.prototype.concat.apply([],e.matched.map(function(e,n){return h()(e.components).map(function(i){return t(e.components[i],e.instances[i],e,i,n)})}))}function P(e){var t,n=this;return d.a.all(y(e,(t=l()(c.a.mark(function e(t,i,o,r){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof t||t.options){e.next=4;break}return e.next=3,t();case 3:t=e.sent;case 4:return e.abrupt("return",o.components[r]=C(t));case 5:case"end":return e.stop()}},e,n)})),function(e,n,i,o){return t.apply(this,arguments)})))}window._nuxtReadyCbs=[],window.onNuxtReady=function(e){window._nuxtReadyCbs.push(e)};var k,S,_=(k=l()(c.a.mark(function e(t){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P(t);case 2:return e.abrupt("return",m()({},t,{meta:w(t).map(function(e){return e.options.meta||{}})}));case 3:case"end":return e.stop()}},e,this)})),function(e){return k.apply(this,arguments)}),R=(S=l()(c.a.mark(function e(t,n){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n.to?n.to:n.route,t.context){e.next=14;break}e.t0=!0,e.t1=t,e.t2=t.store,e.t3=n.payload,e.t4=n.error,e.t5={hubpressVersion:"0.9.1",baseUrl:"http://localhost:3000"},t.context={get isServer(){return console.warn("context.isServer has been deprecated, please use process.server instead."),!1},get isClient(){return console.warn("context.isClient has been deprecated, please use process.client instead."),!0},isStatic:e.t0,isDev:!1,isHMR:!1,app:e.t1,store:e.t2,payload:e.t3,error:e.t4,base:"..",env:e.t5},n.req&&(t.context.req=n.req),n.res&&(t.context.res=n.res),t.context.redirect=function(e,n,i){if(e){t.context._redirected=!0;var o=void 0===n?"undefined":a()(n);if("number"==typeof e||"undefined"!==o&&"object"!==o||(i=n||{},o=void 0===(n=e)?"undefined":a()(n),e=302),"object"===o&&(n=t.router.resolve(n).href),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(n))throw n=L(n,i),window.location.replace(n),new Error("ERR_REDIRECT");t.context.next({path:n,query:i,status:e})}},t.context.nuxtState=window.__NUXT__;case 14:if(t.context.next=n.next,t.context._redirected=!1,t.context._errored=!1,t.context.isHMR=!!n.isHMR,!n.route){e.next=22;break}return e.next=21,_(n.route);case 21:t.context.route=e.sent;case 22:if(t.context.params=t.context.route.params||{},t.context.query=t.context.route.query||{},!n.from){e.next=28;break}return e.next=27,_(n.from);case 27:t.context.from=e.sent;case 28:case"end":return e.stop()}},e,this)})),function(e,t){return S.apply(this,arguments)});function q(e,t){var n=void 0;return(n=2===e.length?new d.a(function(n){e(t,function(e,i){e&&t.error(e),n(i=i||{})})}):e(t))&&(n instanceof d.a||"function"==typeof n.then)||(n=d.a.resolve(n)),n}var M=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function $(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function D(e){return e.replace(/([.+*?=^!:()[\]|\/\\])/g,"\\$1")}function j(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function L(e,t){var n=void 0,i=e.indexOf("://");-1!==i?(n=e.substring(0,i),e=e.substring(i+3)):0===e.indexOf("//")&&(e=e.substring(2));var r=e.split("/"),a=(n?n+"://":"//")+r.shift(),s=r.filter(Boolean).join("/"),c=void 0;return 2===(r=s.split("#")).length&&(s=r[0],c=r[1]),a+=s?"/"+s:"",t&&"{}"!==o()(t)&&(a+=(2===e.split("?").length?"&":"?")+function(e){return h()(e).sort().map(function(t){var n=e[t];return null==n?"":Array.isArray(n)?n.slice().map(function(e){return[t,"=",e].join("")}).join("&"):t+"="+n}).filter(Boolean).join("&")}(t)),a+=c?"#"+c:""}},YMuy:function(e,t,n){"use strict";var i=n("6Ndi"),o=n("PJh5"),r=n.n(o);function a(e){return i.a.fireRequestRemoteSynchronization(e).then(function(e){return i.a.fireReceiveRemoteSynchronization(e)}).then(function(e){return i.a.fireRequestRenderingDocuments(e)}).then(function(e){return i.a.fireReceiveRenderingDocuments(e)}).then(function(e){return i.a.fireRequestLocalSynchronization(e)}).then(function(e){return i.a.fireReceiveLocalSynchronization(e)}).then(function(e){return i.a.fireRequestLocalPosts(e)}).then(function(e){return i.a.fireReceiveLocalPosts(e)}).then(function(e){return localStorage.setItem("hubpress:sync",r()().format()),e})}t.a={initialize:function(e){return i.a.fireRequestTheme(e).then(function(e){return i.a.fireReceiveTheme(e)}).then(function(e){return localStorage.getItem("hubpress:sync")?i.a.fireRequestLocalPosts(e).then(function(e){return i.a.fireReceiveLocalPosts(e)}):a(e)})},synchronize:a}},YoMZ:function(e,t,n){var i=n("7Rt3");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("9418214c",i,!0,{sourceMap:!1})},"bN/m":function(e,t,n){"use strict";function i(e,t){var n=void 0;return e.cname&&""!==e.cname?n=(!1===t?"":"http:")+"//"+e.cname:(n=(!1===t?"":"https:")+"//"+e.username+".github.io","master"!==e.branch&&(n=n+"/"+e.repositoryName)),n}function o(e,t){var n=e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"/$1/$2/$3/$4.html");return"page"===t&&(n=e.replace(/([\w-]*)\.adoc/,"/$1.html")),n}function r(e,t){var n=e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"$1/$2/$3/$4.html");return"page"===t&&(n=e.replace(/([\w-]*)\.adoc/,"$1.html")),n}function a(e){return e.match(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/)?"post":"page"}t.a=function(e){return{site:i(e.meta),hubpress:function(e,t){var n=t.protocol+"//"+t.host;if("localhost"===t.hostname)return n;t.host===e.username+".github.io"||t.host===e.username+".github.com"?"master"!==e.branch&&(n=n+"/"+e.repositoryName):"master"===e.branch||e.cname&&""!==e.cname||(n=n+"/"+e.repositoryName);return n}(e.meta,window.location),theme:i(e.meta,!1)+"/themes/"+e.theme.name,images:i(e.meta)+"/images",getContentUrl:o,getContentGhPath:r,getContentType:a,getPostUrl:function(e){return e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"/$1/$2/$3/$4.html")},getPostGhPath:function(e){return e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"$1/$2/$3/$4.html")},getPageUrl:function(e){return e.replace(/([\w-]*)\.adoc/,"/$1.html")},getPageGhPath:function(e){return e.replace(/([\w-]*)\.adoc/,"$1.html")},getSiteUrl:i}}},bxJ0:function(e,t,n){"use strict";t.a=function(e){e.on("application:request-config",function(e){return console.info("githubPlugin - application:request-config"),console.log("githubPlugin - application:request-config",e),l()("config.json?dt="+Date.now()).then(function(e){return e.json()}).then(function(t){return e.nextState.config=a()({},e.nextState.config,t),e.nextState.config.theme.name=e.nextState.config.theme.name.toLowerCase(),e})}),e.on("application:receive-config",function(e){console.info("githubPlugin - application:receive-config"),console.log("githubPlugin - application:receive-config",e);var t=Object(w.a)(e.nextState.config);return e.nextState.config=a()({},e.nextState.config,{urls:t}),e}),e.on("requestAuthentication",function(e){return console.info("githubPlugin - requestAuthentication"),console.log("githubPlugin - requestAuthentication",e),function(e){console.log("githubPlugin - login",e);var t=m.a.defer(),n=e.nextState.credentials,i=e.rootState.application.config.meta,o=(q=new h.a({auth:"basic",username:n.email,password:n.password,twoFactorCode:n.twoFactorCode})).getRepo(i.username,i.repositoryName),r=q.getAuthorization(),a=q.getUser(),s=void 0,c=void 0;return function(e){var t=m.a.defer();return e.getDetails(function(e,n){e?t.reject(e):t.resolve(n)}),t.promise}(o).then(function(e){s=e}).then(S(a)).then(function(e){return c=e,function(e){var t=m.a.defer();return console.log("getAuthorizations",e),e.listAuthorizations({},function(e,n){e?t.reject(e):(console.log("getAuthorizations list",n),t.resolve(n))}),t.promise}(r)}).then(function(e){return function(e,t,n){var i=m.a.defer(),o=-1,r=_(e);return t.forEach(function(e){e.note===r&&(o=e.id)}),-1!==o?n.deleteAuthorization(o,function(e,t){e?i.reject(e):i.resolve()}):i.resolve(),i.promise}(i.repositoryName,e,r)}).then(function(){return R(i.repositoryName,r)}).then(function(e){q=new h.a({auth:"oauth",token:e.token}),t.resolve({isAuthenticated:!0,credentials:{token:e.token},permissions:s.permissions,userInformations:c})}).catch(function(e){console.error("githubPlugin - login error",e,e.response);var n,o={type:"error",title:"Authentication"};e.response&&(n="required"===(e.response.headers&&e.response.headers["x-github-otp"]||"").split(";")[0]),n?(R(i.repositoryName,r),console.log("githubPlugin - OTP required : ",n),o.type="warning",o.content="A two-factor authentication code is needed.",o.otp=!0,t.resolve({isAuthenticated:!1,isTwoFactorCodeRequired:!0})):(console.error("githubPlugin - login error",e),t.reject({error:{code:e.error,message:"Unable to authenticate, check your credentials."}}))}),t.promise}(e).then(function(t){var n=a()({},e.nextState.credentials,t.credentials);return e.nextState=a()({},e.nextState,t,{credentials:n}),e})}),e.on("receiveSavedAuth",function(e){return console.info("githubPlugin - receiveSavedAuth"),console.log("githubPlugin - receiveSavedAuth",e),e.nextState.authentication.isAuthenticated&&(q=new h.a({auth:"oauth",token:e.nextState.authentication.credentials.token})),e}),e.on("hubpress:request-remote-synchronization",function(e){return console.info("githubPlugin - hubpress:request-remote-synchronization"),console.log("githubPlugin - hubpress:request-remote-synchronization",e),e.rootState.authentication.isAuthenticated?function(e){var t=e.application.config;console.log("Get posts",t);var n=t.meta,i=q.getRepo(n.username,n.repositoryName);return function(e,t){var n=m.a.defer();return e.getContents(t.meta.branch,"",!0,function(e,t){if(e)n.reject(e);else{var i=void 0;t.forEach(function(e){"_posts"===e.name&&(i=e.sha)}),n.resolve(i)}}),n.promise}(i,t).then(function(e){return function(e,t,n){var i=void 0;if(n===localStorage.postsSha)i=m.a.fcall(function(){return[]});else{var o=m.a.defer();e.getContents(t.meta.branch,"_posts",!0,function(e,t){e?o.reject(e):o.resolve(t)}),i=o.promise}return i}(i,t,e)}).then(function(e){return e.map(function(e){return b.a.pick(e,["name","path","sha","size"])})}).then(function(e){return function(e,t,n){var i=b.a.compact(n).map(function(e){return function(e,t){var n=m.a.defer(),i=e.meta,o=q.getRepo(i.username,i.repositoryName),r=e.urls.getContentType(t.name);return o.getSha(e.meta.branch,e.urls.getContentGhPath(t.name,r),function(e,i){if(e&&e.response&&404!==e.response.status)n.reject(e);else{var o=i?1:0,r=a()({},t,{published:o});n.resolve(r)}}),n.promise}(t,e)});return m.a.all(i)}(0,t,e)}).then(function(n){return function(e,t,n,i){var o=n.map(function(e){return M(t,e,i)});return m.a.all(o)}(0,t,n,e.authentication.userInformations)}).then(function(e){return function(e,t,n){var i=[];return n.forEach(function(n){var o=m.a.defer();i.push(o.promise),e.getContents(t.meta.branch,n.path,!0,function(e,t){var i;e?o.reject(e):(i=a()({},n,{content:t}),o.resolve(i))})}),m.a.all(i)}(i,t,e)})}(e.rootState).then(function(t){return e.nextState=a()({},e.nextState,{posts:t}),e}):e}),e.on("requestSaveRemotePost",function(e){console.info("githubPlugin - requestSaveRemotePost"),console.log("githubPlugin - requestSaveRemotePost",e);var t=e.rootState.application.config,n=e.nextState.post;return function(e,t){var n=e.meta,i=q.getRepo(n.username,n.repositoryName),o=void 0;if(t.original&&t.name!==t.original.name){var r=m.a.defer();o=r.promise;var a=e.meta.branch,s="_posts/"+t.original.name,c="_posts/"+t.name;i.move(a,s,c,function(n,o){if(n)r.reject(n);else if(t.published){var s=e.urls.getContentGhPath(t.original.name,t.original.type);(function(e,t,n){return function(e,t,n){var i=m.a.defer();return e.deleteFile(t,n,function(e,t){e?i.reject(e):(console.error(t),k=t.commit,i.resolve(t))}),i.promise}(e,t,n)})(i,a,s).then(function(e){r.resolve({post:t,sha:e})}).catch(function(e){r.reject(e)}).done()}else r.resolve({post:t,sha:o})})}else o=m()({post:t});return o}(t,n).then(function(e){return function(e,t){console.log("Write post",e,t);var n=e.meta,i=q.getRepo(n.username,n.repositoryName),o=n.branch,r="_posts/"+t.name,a="Update "+t.name,s=m.a.defer();return i.writeFile(o,r,t.content,a,function(n,i){n?s.reject(n):(t.original=b.a.omit(t,["original"]),t.original.url=e.urls.getContentUrl(t.original.name,t.original.type),t.original.path="_posts/"+t.original.name,t.original.sha=i,k=i.commit,console.info("Update lastCacheCommit",k),s.resolve(t))}),s.promise}(t,e.post)}).then(function(n){return M(t,n,e.rootState.authentication.userInformations)}).then(function(t){return e.nextState.post=t,e})}),e.on("requestSaveRemotePublishedElements",function(e){console.info("githubPlugin - requestSaveRemotePublishedElements"),console.log("githubPlugin - requestSaveRemotePublishedElements",e);var t=e.rootState.application.config.meta,n=q.getRepo(t.username,t.repositoryName),i=e.nextState.elementsToPublish.length,o=b.a.chunk(e.nextState.elementsToPublish,P);console.log("Writeall",e.nextState.elementsToPublish);var r=m.a.defer();return n.getBranch(t.branch,function(a,s){if(a){var c=m.a.defer();return r=c.promise,c.reject(a)}var u=0,l=o.reduce(function(e,o){return e.then(function(e){var r=m.a.defer(),a=o.map(function(e){return{path:e.path,mode:"100644",type:"blob",content:e.content}});return n.createTree(a,e,function(a,s){if(a)return r.reject(a);n.commit(e,s.sha,"Published "+(u+o.length)+"/"+i+" elements",function(e,i){if(e)return r.reject(e);u+=o.length,k=i,n.updateHead("heads/"+t.branch,i.sha,!1,function(e,t){if(console.log("updateHead",e,t),e)return r.reject(e);r.resolve(i.sha)})})}),r.promise})},m()(function(e,t){if(console.error(e,t),!t)return e.sha;var n=C()(e.committer.date);return C()(t.committer.date).isAfter(n)?t.sha:e.sha}({committer:s.commit.commit.committer,sha:s.commit.sha},k)));l.then(function(t){r.resolve(e)}).catch(function(e){r.reject(e)})}),r.promise}),e.on("requestDeleteRemotePost",function(e){console.info("githubPlugin - requestDeleteRemotePost"),console.log("githubPlugin - requestDeleteRemotePost",e);var t=m.a.defer(),n=e.rootState.application.config,i=n.meta,o=q.getRepo(i.username,i.repositoryName),r=e.nextState.post.original.path;return o.deleteFile(i.branch,r,function(n,i){n&&n.response&&404!==n.response.status?t.reject(n):(console.error("requestDeleteRemotePost",i),k=i.commit,t.resolve(e))}).catch(function(n){n&&n.response&&404===n.response.status&&t.resolve(e)}),t.promise}),e.on("requestDeleteRemotePublishedPost",function(e){console.info("githubPlugin - requestDeleteRemotePublishedPost"),console.log("githubPlugin - requestDeleteRemotePublishedPost",e);var t=m.a.defer(),n=e.rootState.application.config,i=n.meta,o=q.getRepo(i.username,i.repositoryName),r=n.urls.getContentGhPath(e.nextState.post.original.name,e.nextState.post.original.type);return o.deleteFile(i.branch,r,function(n,i){n?t.reject(n):(console.error("requestDeleteRemotePublishedPost",i),k=i.commit,t.resolve(e))}),t.promise}),e.on("application:request-save-config",function(e){console.info("githubPlugin - application:request-save-config"),console.log("githubPlugin - application:request-save-config",e);var t=e.nextState.application;return function(e){console.log("Write config",e);var t=m.a.defer(),n=e.meta,i=q.getRepo(n.username,n.repositoryName),r=n.branch;return i.writeFile(r,"hubpress/config.json",o()(e,null,2),"Update configuration file",function(e,n){e?t.reject(e):(k=n.commit,console.info("Update lastCacheCommit",k),t.resolve(n))}),t.promise}(t.config).then(function(e){return function(e){console.log("Github manageCname - ",e);var t=e.meta,n=q.getRepo(t.username,t.repositoryName),i=m.a.defer();t.cname&&""!==t.cname?(console.info("SettingsService - saveAndPublish save CNAME"),n.writeFile(t.branch,"CNAME",t.cname,"Update CNAME with "+t.cname,function(e,t){e?i.reject(e):(k=t.commit,console.info("Update lastCacheCommit",k),i.resolve(t))})):(console.info("SettingsService - saveAndPublish delete CNAME"),n.deleteFile(t.branch,"CNAME",function(e,t){e&&"not found"!==e?i.reject(e):i.resolve(t)}).then(function(e){console.log("SHA after delete",e),i.resolve(e)}).catch(function(e){404!==e.response.status?i.reject(e):i.resolve()}));return i.promise}(t.config)}).then(function(t){return e})}),e.on("receiveRenderingPost",function(e){return console.info("githubPlugin - receiveRenderingPost"),console.log("githubPlugin - receiveRenderingPost",e),e}),e.on("application:initialize-plugins",function(e){console.info("githubPlugin - application:initialize-plugins"),console.log("githubPlugin - application:initialize-plugins",e);var t="put your repository name here"===e.rootState.application.config.meta.repositoryName||"put your username here"===e.rootState.application.config.meta.username;return e.nextState.application.requireInitilisation=t,e.nextState.application.config.initialisationConfigComponent=y.a,e})};var i=n("mvHQ"),o=n.n(i),r=n("woOf"),a=n.n(r),s=n("6ltY"),c=n.n(s),u=n("j9g7"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=n("73D8"),h=n.n(f),g=n("/Luh"),m=n.n(g),v=n("M4fF"),b=n.n(v),x=n("PJh5"),C=n.n(x),w=n("bN/m"),y=n("IBrK"),P=50,k=null;function S(e){return function(){var t=m.a.defer();return e.getProfile(function(e,n){e?t.reject(e):t.resolve(b.a.pick(n,["login","id","name","location","blog","avatar_url","bio"]))}),t.promise}}function _(e){return d()(e+"-"+c.a.name+"-"+c.a.os)}function R(e,t){var n=m.a.defer(),i={scopes:["public_repo"],note:_(e)};return t.createAuthorization(i,function(e,t){e?n.reject(e):n.resolve(t)}),n.promise}var q=void 0;function M(e,t,n){var i=m.a.defer(),o=e.meta,r=q.getRepo(o.username,o.repositoryName);return console.log("getPostAuthor",t),r.listCommits({sha:e.meta.branch,path:t.original&&t.original.path||t.path},function(e,o){if(e&&404!==e.error)i.reject(e);else{var r=o[o.length-1].author;if(r&&r.login!==n.login){S(q.getUser(r.login))().then(function(e){r=a()({},e);var n=a()({},t,{author:r});i.resolve(n)}).catch(function(e){return i.reject(e)})}else{r=a()({},n);var s=a()({},t,{author:r});i.resolve(s)}}}),i.promise}},cOI0:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,'.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,.5)}.cm-animate-fat-cursor,.cm-fat-cursor-mark{-webkit-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;background-color:#7e7}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;-webkit-font-feature-settings:"calt";font-feature-settings:"calt";font-variant-ligatures:contextual}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-webkit-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}',""])},cmzl:function(e,t,n){"use strict";var i={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"nuxt-progress",style:{width:this.percent+"%",height:this.height,"background-color":this.canSuccess?this.color:this.failedColor,opacity:this.show?1:0}})},staticRenderFns:[]};t.a=i},ct3O:function(e,t,n){"use strict";var i=n("FIB3"),o=n("FdPX");var r=function(e){n("wGIl")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},"d/OL":function(e,t,n){"use strict";t.a=function(e){e.on("hubpress:request-rendering-documents",function(e){console.info("asciidocPlugin - hubpress:request-rendering-documents"),console.log("asciidocPlugin - hubpress:request-rendering-documents",e);var t=e.rootState.application.config,n=(e.nextState.posts||[]).map(function(e){var n=o()({},e,h(t,e.content),{content:e.content}),i=c.a.pick(n,"attributes","author","html","tags","content","name","path","sha");n.title=i.title=i.attributes.doctitle,n.image=i.image=i.attributes["hp-image"],n.type=i.type=i.attributes["hp-type"],n.tags=i.tags=g(i.attributes),n.url=i.url=m(t,n.type,i.name);var r=o()({},n,{original:i});return n.type&&"post"!==n.type||(r.original.published_at=r.published_at=i.name.split("-").slice(0,3).join("-")),r});return e.nextState.posts=n,e}),e.on("requestRenderingPost",function(e){console.info("asciidocPlugin - requestRenderingPost"),console.log("asciidocPlugin - requestRenderingPost",e);var t=h(e.rootState.application.config,e.nextState.post.content);e.nextState.post=o()({},e.nextState.post,t),e.nextState.post.title=t.attributes.doctitle,e.nextState.post.image=t.attributes["hp-image"],e.nextState.post.type=t.attributes["hp-type"],e.nextState.post.tags=g(t.attributes),e.nextState.post.published_at=t.attributes.published_at||e.nextState.post.published_at||l()().format("YYYY-MM-DD");var n=t.attributes["hp-alt-title"];return e.nextState.post.type&&"post"!==e.nextState.post.type?e.nextState.post.name=d()(""+(n||e.nextState.post.title))+".adoc":e.nextState.post.name=d()(e.nextState.post.published_at+"-"+(n||e.nextState.post.title))+".adoc",e.nextState.post.url=m(e.rootState.application.config,e.nextState.post.type,e.nextState.post.name),e})};var i=n("woOf"),o=n.n(i),r=n("rzLr"),a=n.n(r),s=n("M4fF"),c=n.n(s),u=n("PJh5"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=a()(!1,window.XMLHttpRequest);function h(e,t){var n={doctype:"article",backend:"html5",safe:"unsafe",attributes:["showtitle!","allow-uri-read","imagesdir="+e.urls.site+"/images","icons=font"]},i=function(e){var t=e.split("pass::[more]");return{excerpt:t[0],full:t.join("")}}(t.replace(/gist::([0-9]*)\[(lines=[0-9]*\.\.[0-9]*)?,?(type=([\w.]*))?,?(file=([\w.]*))?\]/g,"[source,$4]\n----\ninclude::https://gist.githubusercontent.com/raw/$1/$6[$2]\n----\n")),o=f.load(i.excerpt,n),r=f.load(i.full,n);return{attributes:r.getAttributes(),excerpt:o.$convert(),html:r.$convert()}}function g(e){return e["hp-tags"]&&e["hp-tags"].split(",").map(function(e){return e.trim()}).filter(function(e){return""!==e})}function m(e,t,n){return e.urls.getContentUrl(n,t)}},dCDI:function(e,t,n){"use strict";(function(e,t){var i,o=n("pFYg"),r=n.n(o);i=function(e){var t;(t=e).overlayMode=function(e,n,i){return{startState:function(){return{base:t.startState(e),overlay:t.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(i){return{base:t.copyState(e,i.base),overlay:t.copyState(n,i.overlay),basePos:i.basePos,baseCur:null,overlayPos:i.overlayPos,overlayCur:null}},token:function(t,o){return(t!=o.streamSeen||Math.min(o.basePos,o.overlayPos)"},redirect:"/content",meta:{auth:!0},children:t.nextState.routes.map(function(e){return console.log(e),e.entries}).reduce(function(e,t){return e.concat(t)},[])}]},i=new r.default(n);return i.routes=t.nextState.routes,i.beforeEach(function(e,t,n){var i=Object(a.default)();e.matched.some(function(e){return e.meta.auth})?i.state.authentication.isAuthenticated?n():n({path:"/login",query:{redirect:e.fullPath}}):n()}),i};var i=n("I3G/"),o=n.n(i),r=n("/ocq"),a=n("fbRD"),s=n("LEOq"),c=n.n(s),u=(n("7cn8"),n("YG9q")),l=n("QMmS"),p=n("3oxy"),d=n("H8Oa"),f=n("bxJ0"),h=n("WiUJ"),g=n("H1PK"),m=n("d/OL"),v=(n("Y2j8"),n("1AqL")),b=n("tLh+");console.log("router =============="),console.log("Router"),o.a.use(r.default),c.a.register(u.a,l.b,p.a,d.a,f.a,h.a,g.a,m.a,v.a,b.a),console.log("Registered plugins",c.a.list())},oz2E:function(e,t,n){"use strict";t.a={name:"dashboard",beforeCreate:function(){console.log("dashboard beforeCreate")},created:function(){console.log("dashboard created")}}},qZPA:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".html-rendering,.published-preview{min-width:100%;height:calc(100vh - 47px);min-height:calc(100vh - 47px)}",""])},qcny:function(e,t,n){"use strict";n.d(t,"b",function(){return D});var i=n("Xxa5"),o=n.n(i),r=n("//Fk"),a=(n.n(r),n("C4MV")),s=n.n(a),c=n("woOf"),u=n.n(c),l=n("Dd8w"),p=n.n(l),d=n("exGp"),f=n.n(d),h=n("MU8w"),g=(n.n(h),n("I3G/")),m=n.n(g),v=n("p3jY"),b=n.n(v),x=n("mtxM"),C=n("0F0d"),w=n("HBB+"),y=n("WRRc"),P=n("ct3O"),k=n("Hot+"),S=n("yTq1"),_=n("YLfZ"),R=n("J2Ti"),q=n("zQW4"),M=n("6hdJ");n.d(t,"a",function(){return P.a});var $,D=($=f()(o.a.mark(function e(t){var n,i,r,a,c,l,d;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(x.a)(t),(i=Object(R.a)(t)).$router=n,r=p()({router:n,store:i,nuxt:{defaultTransition:j,transitions:[j],setTransitions:function(e){return Array.isArray(e)||(e=[e]),e=e.map(function(e){return e=e?"string"==typeof e?u()({},j,{name:e}):u()({},j,e):j}),this.$options.nuxt.transitions=e,e},err:null,dateErr:null,error:function(e){e=e||null,r.context._errored=!!e,"string"==typeof e&&(e={statusCode:500,message:e});var n=this.nuxt||this.$options.nuxt;return n.dateErr=Date.now(),n.err=e,t&&(t.nuxt.error=e),e}}},S.a),i.app=r,a=t?t.next:function(e){return r.router.push(e)},c=void 0,t?c=n.resolve(t.url).route:(l=Object(_.d)(n.options.base),c=n.resolve(l).route),e.next=10,Object(_.m)(r,{route:c,next:a,error:r.nuxt.error.bind(r),store:i,payload:t?t.payload:void 0,req:t?t.req:void 0,res:t?t.res:void 0,beforeRenderFns:t?t.beforeRenderFns:void 0});case 10:if(d=function(e,t){if(!e)throw new Error("inject(key, value) has no key provided");if(!t)throw new Error("inject(key, value) has no value provided");r[e="$"+e]=t,i[e]=r[e];var n="__nuxt_"+e+"_installed__";m.a[n]||(m.a[n]=!0,m.a.use(function(){m.a.prototype.hasOwnProperty(e)||s()(m.a.prototype,e,{get:function(){return this.$root.$options[e]}})}))},window.__NUXT__&&window.__NUXT__.state&&i.replaceState(window.__NUXT__.state),"function"!=typeof q.a){e.next=15;break}return e.next=15,Object(q.a)(r.context,d);case 15:if("function"!=typeof M.a){e.next=18;break}return e.next=18,Object(M.a)(r.context,d);case 18:e.next=21;break;case 21:return e.abrupt("return",{app:r,router:n,store:i});case 22:case"end":return e.stop()}},e,this)})),function(e){return $.apply(this,arguments)});m.a.component(C.a.name,C.a),m.a.component(w.a.name,w.a),m.a.component(y.a.name,y.a),m.a.component(k.a.name,k.a),m.a.use(b.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var j={name:"page",mode:"out-in",appear:!0,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"}},r6qT:function(e,t,n){var i=n("HEYa");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("2b9275f1",i,!0,{sourceMap:!1})},"tLh+":function(e,t,n){"use strict";t.a=function(e){e.on("requestGenerateIndex",function(e){console.info("rssPlugin - requestGenerateIndex"),console.log("rssPlugin - requestGenerateIndex",e);var t=e.rootState.application.config.site||{},n=e.rootState.application.config.urls.site||"",i=e.nextState.publishedPosts||[],r=new o.a({title:t.title||"",description:t.description||"",feed_url:n+"/rss/",site_url:n,image_url:t.cover,ttl:"60"});i.forEach(function(e){r.item({title:e.title,description:e.html,url:""+n+e.url,categories:e.tags,author:e.author.name,date:e.published_at})});var a=r.xml(),s=[];return s.push({name:"RSS",path:"rss/index.xml",content:a,message:"Publish rss feed"}),e.nextState.elementsToPublish=(e.nextState.elementsToPublish||[]).concat(s),e})};var i=n("DVIz"),o=n.n(i)},u8s0:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"",""])},unZF:function(e,t,n){"use strict";var i=n("BO1k"),o=n.n(i),r=n("GfDd"),a=r.keys();function s(e){var t=r(e);return t.default?t.default:t}var c={},u=!0,l=!1,p=void 0;try{for(var d,f=o()(a);!(u=(d=f.next()).done);u=!0){var h=d.value;c[h.replace(/^\.\//,"").replace(/\.(js|ts)$/,"")]=s(h)}}catch(e){l=!0,p=e}finally{try{!u&&f.return&&f.return()}finally{if(l)throw p}}t.a=c},vKgl:function(e,t,n){var i=n("EgsU");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("44921a73",i,!0,{sourceMap:!1})},vXEZ:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".nuxt-progress{position:fixed;top:0;left:0;right:0;height:2px;width:0;-webkit-transition:width .2s,opacity .4s;transition:width .2s,opacity .4s;opacity:1;background-color:#efc14e;z-index:999999}",""])},wGIl:function(e,t,n){var i=n("m8kW");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("6bc7b368",i,!0,{sourceMap:!1})},wQtD:function(e,t,n){"use strict";t.a={name:"navigation-settings",data:function(){return{newNav:{label:"",url:""},navigation:this.$store.state.application.config.navigation||[]}},computed:{isNotValid:function(){return""===this.newNav.label.trim()||""===this.newNav.url.trim()}},methods:{remove:function(e){this.navigation.splice(e,1)},clear:function(){this.newNav={label:"",url:""}},add:function(e){this.navigation.push(e),this.clear()}}}},wrAo:function(e,t,n){"use strict";t.a={name:"hubpress-settings-social",computed:{social:function(){return this.$store.state.application.config.socialnetwork||{}}}}},yJpT:function(e,t,n){var i=n("j9sj");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("33615082",i,!0,{sourceMap:!1})},yTq1:function(e,t,n){"use strict";var i=n("//Fk"),o=n.n(i),r=n("I3G/"),a=n.n(r),s=n("F88d"),c=n("XSDV"),u=(n.n(c),{_default:function(){return n.e(0).then(n.bind(null,"Ma2J")).then(function(e){return e.default||e})}}),l={};t.a={head:{title:"Hubpress: A web application to build your Blog",meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{hid:"description",name:"description",content:"Nuxt.js project"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"},{rel:"stylesheet",href:"../static/semantic/semantic.min.css"}],style:[],script:[]},render:function(e,t){var n=e("nuxt-loading",{ref:"loading"}),i=e(this.layout||"nuxt");return e("div",{domProps:{id:"__nuxt"}},[n,e("transition",{props:{name:"layout",mode:"out-in"}},[e("div",{domProps:{id:"__layout"},key:this.layoutName},[i])])])},data:function(){return{layout:null,layoutName:""}},beforeCreate:function(){a.a.util.defineReactive(this,"nuxt",this.$options.nuxt)},created:function(){a.a.prototype.$nuxt=this,"undefined"!=typeof window&&(window.$nuxt=this),this.error=this.nuxt.error},mounted:function(){this.$loading=this.$refs.loading},watch:{"nuxt.err":"errorChanged"},methods:{errorChanged:function(){this.nuxt.err&&this.$loading&&(this.$loading.fail&&this.$loading.fail(),this.$loading.finish&&this.$loading.finish())},setLayout:function(e){e&&l["_"+e]||(e="default"),this.layoutName=e;var t="_"+e;return this.layout=l[t],this.layout},loadLayout:function(e){var t=this;e&&(u["_"+e]||l["_"+e])||(e="default");var n="_"+e;return l[n]?o.a.resolve(l[n]):u[n]().then(function(e){return l[n]=e,delete u[n],l[n]}).catch(function(e){if(t.$nuxt)return t.$nuxt.error({statusCode:500,message:e.message})})}},components:{NuxtLoading:s.a}}},yUYC:function(e,t,n){"use strict";var i=n("I3G/"),o=n.n(i);t.a={name:"nuxt-loading",data:function(){return{percent:0,show:!1,canSuccess:!0,duration:5e3,height:"2px",color:"#3B8070",failedColor:"red"}},methods:{start:function(){var e=this;return this.show=!0,this.canSuccess=!0,this._timer&&(clearInterval(this._timer),this.percent=0),this._cut=1e4/Math.floor(this.duration),this._timer=setInterval(function(){e.increase(e._cut*Math.random()),e.percent>95&&e.finish()},100),this},set:function(e){return this.show=!0,this.canSuccess=!0,this.percent=Math.floor(e),this},get:function(){return Math.floor(this.percent)},increase:function(e){return this.percent=this.percent+Math.floor(e),this},decrease:function(e){return this.percent=this.percent-Math.floor(e),this},finish:function(){return this.percent=100,this.hide(),this},pause:function(){return clearInterval(this._timer),this},hide:function(){var e=this;return clearInterval(this._timer),this._timer=null,setTimeout(function(){e.show=!1,o.a.nextTick(function(){setTimeout(function(){e.percent=0},200)})},500),this},fail:function(){return this.canSuccess=!1,this}}}},zQW4:function(e,t,n){"use strict";for(var i=n("woOf"),o=n.n(i),r=n("//Fk"),a=n.n(r),s=n("BO1k"),c=n.n(s),u=n("mtWM"),l=n.n(u),p={setHeader:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",i=!0,o=!1,r=void 0;try{for(var a,s=c()(Array.isArray(n)?n:[n]);!(i=(a=s.next()).done);i=!0){var u=a.value;if(!t)return void delete this.defaults.headers[u][e];this.defaults.headers[u][e]=t}}catch(e){o=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw r}}},setToken:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",i=e?(t?t+" ":"")+e:null;this.setHeader("Authorization",i,n)},onRequest:function(e){this.interceptors.request.use(function(t){return e(t)||t})},onResponse:function(e){this.interceptors.response.use(function(t){return e(t)||t})},onRequestError:function(e){this.interceptors.request.use(void 0,function(t){return e(t)||a.a.reject(t)})},onResponseError:function(e){this.interceptors.response.use(void 0,function(t){return e(t)||a.a.reject(t)})},onError:function(e){this.onRequestError(e),this.onResponseError(e)}},d=function(e){p["$"+e]=function(){return this[e].apply(this,arguments).then(function(e){return e&&e.data})}},f=["request","delete","get","head","options","post","put","patch"],h=0;h1&&(r=(e.path||"")+"page/"+o+"/index.html"),o>1&&(v=o-1),oo-1||g+1===t.length){var w=l.a.template(e.template,{pagination:{prev:v,next:m,page:o,pages:h,total:t.length,limit:u},context:"index"===e.template&&0===v?"home":e.template,posts:a,tag:e.tag,author:e.author,title:i.title,description:i.description,socialnetwork:p,relativeUrl:""},{config:n,theme:e.opts.nextState.theme});s.push({name:"page-"+o,path:r,content:w,message:"Publish page-"+o+" "+e.template}),a=[],o++}}),e.opts.nextState.elementsToPublish=(e.opts.nextState.elementsToPublish||[]).concat(s),e.opts}}]),e}();t.a=new f},BdWi:function(e,t,n){"use strict";t.a=function(e){console.info("PagesGenerator - generate"),console.log("PagesGenerator - generate",e);var t=e;return e.nextState.publishedPages.forEach(function(e){t=Object(o.a)(t,e)}),t};n("APUd");var i=n("j+6P"),o=(n.n(i),n("KgKs"))},E1SC:function(e,t,n){"use strict";var i=n("SUis"),o=n("7Fxy");var r=function(e){n("vKgl")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},EgsU:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".posts-container .menu{min-height:47px}.posts-container{height:100%;overflow:auto}.posts.ui.container{padding-top:60px}.image.cover>div{width:100%;height:200px;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}@media screen and (max-width:622px){.posts.ui.container .ui.card .image.cover{display:none}}",""])},F6eF:function(e,t,n){"use strict";var i=n("7t+N"),o=n.n(i);t.a={name:"initialise-configuration",data:function(){return{username:"",repositoryName:"hubpress.io",branch:"master",cname:void 0}},mounted:function(){o()("div.dropdown").dropdown()},computed:{isValid:function(){return""!=this.username.trim()&&""!=this.repositoryName.trim()}},methods:{submit:function(){var e={username:this.username,repositoryName:this.repositoryName,branch:this.branch,cname:this.cname};this.$store.dispatch("application:save-startup-config",e)}}}},F88d:function(e,t,n){"use strict";var i=n("yUYC"),o=n("cmzl");var r=function(e){n("0xYM")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},FIB3:function(e,t,n){"use strict";t.a={name:"nuxt-error",props:["error"],head:function(){return{title:this.message,meta:[{name:"viewport",content:"width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"}]}},computed:{statusCode:function(){return this.error&&this.error.statusCode||500},message:function(){return this.error.message||"Error"}}}},FdPX:function(e,t,n){"use strict";var i={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"__nuxt-error-page"},[t("div",{staticClass:"error"},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"90",height:"90",fill:"#DBE1EC",viewBox:"0 0 48 48"}},[t("path",{attrs:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}})]),t("div",{staticClass:"title"},[this._v(this._s(this.message))]),404===this.statusCode?t("p",{staticClass:"description"},[t("nuxt-link",{staticClass:"error-link",attrs:{to:"/"}},[this._v("Back to the home page")])],1):this._e(),this._m(0)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"logo"},[t("a",{attrs:{href:"https://nuxtjs.org",target:"_blank",rel:"noopener"}},[this._v("Nuxt.js")])])}]};t.a=i},FoP8:function(module,__webpack_exports__,__webpack_require__){"use strict";function applyScript(hasChanged){if(hasChanged){for(var element=document.getElementById("html-content"),scripts=element.getElementsByTagName("script"),addedScripts=[],i=0;i.menu[data-v-0536f20d]{height:47px}",""])},HUXV:function(e,t,n){"use strict";var i=n("6Ndi");t.a={refreshAfterSavedConfig:function(e){return i.a.fireRequestTheme(e).then(function(t){return i.a.fireReceiveTheme(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return console.time("Build content"),e}).then(function(e){return i.a.fireRequestGenerateIndex(e)}).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGeneratePosts(e)}).then(function(e){return i.a.fireReceiveGeneratePosts(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)}).then(function(e){return i.a.fireRequestLocalPublishedPages(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPages(e)}).then(function(e){return i.a.fireRequestGeneratePages(e)}).then(function(e){return i.a.fireReceiveGeneratePages(e)}).then(function(e){return console.timeEnd("Build content"),e}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})}}},"Hot+":function(e,t,n){"use strict";var i=n("I3G/"),o=n.n(i),r=n("HBB+"),a=n("ct3O"),s=n("YLfZ");t.a={name:"nuxt",props:["nuxtChildKey","keepAlive"],render:function(e){return this.nuxt.err?e("nuxt-error",{props:{error:this.nuxt.err}}):e("nuxt-child",{key:this.routerViewKey,props:this.$props})},beforeCreate:function(){o.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(s.b)(this.$route.matched[0].path)(this.$route.params);var e=this.$route.matched[0]&&this.$route.matched[0].components.default;return e&&e.options&&e.options.key?"function"==typeof e.options.key?e.options.key(this.$route):e.options.key:this.$route.path}},components:{NuxtChild:r.a,NuxtError:a.a}}},IBrK:function(e,t,n){"use strict";var i=n("F6eF"),o=n("N3Gg");var r=function(e){n("XkEn")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Ie2b:function(e,t){},Irdm:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"settings-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.submit(t)}}},[e._m(0)])])]),n("div",{staticClass:"ui container settings-content"},[e._m(1),n("div",{staticClass:"ui divider"}),n("form",{staticClass:"ui form",attrs:{id:"mainForm"}},[n("div",{staticClass:"ui secondary pointing menu"},[n("div",{staticClass:"item active",attrs:{"data-tab":"application",id:"application-tab"}},[e._v("Application")]),e._l(e.tabs,function(t){return n("div",{key:t.id,staticClass:"item",attrs:{"data-tab":t.id}},[e._v(e._s(t.label))])})],2),n("div",{staticClass:"ui bottom attached tab segment active",attrs:{"data-tab":"application"}},[n("h4",{staticClass:"ui dividing header"},[e._v("Domain")]),n("div",{staticClass:"field"},[n("label",[e._v("CNAME")]),n("input",{attrs:{type:"text",name:"application-cname",placeholder:"CNAME"},domProps:{value:e.config.meta.cname}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Metadata (set in config.json)")]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub username")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-username",placeholder:"Github username"},domProps:{value:e.config.meta.username}})]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub repository name")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-repository-name",placeholder:"GitHub repository name"},domProps:{value:e.config.meta.repositoryName}})]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub branch")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-branch",placeholder:"GitHub branch"},domProps:{value:e.config.meta.branch}})]),e._m(2)]),e._l(e.tabs,function(e){return n("div",{key:e.id,staticClass:"ui bottom attached tab segment ",attrs:{"data-tab":e.id}},[n(e.id,{tag:"component"})],1)})],2)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Save your settings","data-position":"bottom right"}},[t("i",{staticClass:"save large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"ui center aligned icon header"},[t("i",{staticClass:"circular settings icon"}),this._v("\n Settings\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"disabled field"},[t("label",[this._v("Blog URL")]),t("input",{attrs:{type:"text",disabled:"",name:"application-blog-url",placeholder:"Blog URL"}})])}]};t.a=i},J2Ti:function(e,t,n){"use strict";n.d(t,"a",function(){return y});var i=n("woOf"),o=n.n(i),r=n("BO1k"),a=n.n(r),s=n("I3G/"),c=n.n(s),u=n("NYxO");c.a.use(u.default);var l=n("1H2/"),p=l.keys(),d={},f=void 0;if(p.forEach(function(e){-1!==e.indexOf("./index.")&&(f=e)}),f&&(d=P(f)),"function"!=typeof d){d.modules||(d.modules={});var h=!0,g=!1,m=void 0;try{for(var v,b=a()(p);!(h=(v=b.next()).done);h=!0){var x=v.value,C=x.replace(/^\.\//,"").replace(/\.(js|ts)$/,"");if("index"!==C){var w=C.split(/\//);(e=k(d,w))[C=w.pop()]=P(x),e[C].namespaced=!0}}}catch(e){g=!0,m=e}finally{try{!h&&b.return&&b.return()}finally{if(g)throw m}}}var y=d instanceof Function?d:function(){return new u.default.Store(o()({strict:!1},d,{state:d.state instanceof Function?d.state():{}}))};function P(e){var t=l(e),n=t.default||t;if(n.commit)throw new Error("[nuxt] store/"+e.replace("./","")+" should export a method which returns a Vuex instance.");if(n.state&&"function"!=typeof n.state)throw new Error("[nuxt] state should be a function in store/"+e.replace("./",""));return n}function k(e,t){if(1===t.length)return e.modules;var n=t.shift();return e.modules[n]=e.modules[n]||{},e.modules[n].namespaced=!0,e.modules[n].modules=e.modules[n].modules||{},k(e.modules[n],t)}},JtYm:function(e,t,n){"use strict";var i=n("6Ndi");function o(e){return i.a.fireRequestLocalPosts(e).then(function(e){return i.a.fireReceiveLocalPosts(e)})}t.a={deletePost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=t,e}).then(function(e){return e.nextState.post.original?i.a.fireRequestDeleteRemotePost(e).then(function(e){return i.a.fireReceiveDeleteRemotePost(e)}):e}).then(function(e){return i.a.fireRequestDeleteLocalPost(e)}).then(function(e){return i.a.fireReceiveDeleteLocalPost(e)}).then(function(e){return e.nextState.post.published?i.a.fireRequestDeleteRemotePublishedPost(e).then(function(e){return i.a.fireReceiveDeleteRemotePublishedPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return i.a.fireRequestGenerateIndex(e)}).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)}):e}).then(o)},getLocalPost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)})},getLocalPosts:o,remoteSavePost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){return i.a.fireRequestSaveRemotePost(e)}).then(function(e){return i.a.fireReceiveSaveRemotePost(e)}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)})},renderAndSavePost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){return e.nextState.post.content=e.payload.post.content,e}).then(function(e){return i.a.fireRequestRenderingPost(e)}).then(function(e){return i.a.fireReceiveRenderingPost(e)}).then(function(e){return e.nextState.post&&e.nextState.post.title?i.a.fireRequestSaveLocalPost(e).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}):e}).then(function(e){var t=e.nextState.post.original;return e.nextState.post.original=e.nextState.post,i.a.fireRequestGeneratePost(e).then(function(e){return i.a.fireReceiveGeneratePost(e)}).then(function(e){var n=e.nextState.elementsToPublish[0]||{};return e.nextState.post.publishedContent=n.content,e.nextState.post.original=t,e})})},publishPost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=_.union(e.nextState.post.tags,t),e}).then(function(e){return i.a.fireRequestSaveRemotePost(e)}).then(function(e){return i.a.fireReceiveSaveRemotePost(e)}).then(function(e){return e.nextState.post.original.author=e.nextState.post.original.author||e.nextState.post.author,e.nextState.post.published=1,e}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return i.a.fireRequestGeneratePost(e)}).then(function(e){return i.a.fireReceiveGeneratePost(e)}).then(function(e){return"post"!==e.nextState.post.type?e:i.a.fireRequestGenerateIndex(e).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)})}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})},unpublishPost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=t,e}).then(function(e){return i.a.fireRequestDeleteRemotePublishedPost(e)}).then(function(e){return i.a.fireReceiveDeleteRemotePublishedPost(e)}).then(function(e){return e.nextState.post.published=0,e}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return"post"!==e.nextState.post.type?e:i.a.fireRequestGenerateIndex(e).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)})}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})}}},KMrN:function(e,t,n){"use strict";var i=n("LEOq"),o=n.n(i);t.a={authenticate:function(e){return function(e){return o.a.fire("requestAuthentication",e)}(e).then(function(e){return(t=e).nextState.twoFactorRequired?payload:o.a.fire("receiveAuthentication",t);var t})},initialize:function(e){return function(e){return o.a.fire("requestSavedAuth",e)}(e).then(function(e){return t=e,o.a.fire("receiveSavedAuth",t);var t})}}},KOTd:function(e,t,n){"use strict";t.a=function(e){console.info("AuthorGenerator - generate"),console.log("AuthorGenerator - generate",e);var t=void 0;if(!s.a.isTemplateAvailable("author"))return e;t=e.nextState.author?e.nextState.publishedPosts.filter(function(t){return t.author.login===e.nextState.author.login}):e.nextState.publishedPosts;var n=r.a.reduce(t,function(e,t){return e[t.author.login]=e[t.author.login]||[],e[t.author.login].push(t),e},{}),o=e;return r.a.each(n,function(e,t){var n=e[0].author;n.name=n.name||n.login,n.slug=t,n.website=n.blog,n.status="",o=i.a.generate({opts:o,posts:e,author:n,template:"author",path:"author/"+t+"/"})}),o};var i=n("APUd"),o=n("M4fF"),r=n.n(o),a=n("j+6P"),s=n.n(a),c=n("n+xr");n.n(c)},KgKs:function(e,t,n){"use strict";t.a=function(e,t){console.info("PostGenerator - generate"),console.log("PostGenerator - generate",e);var n=t,i=o()({},n.original);i.tags=a.a.map(i.tags,function(e){return{name:e,slug:l()(e)}});var r=i.author;i.author={id:r.id,name:r.name||r.login,location:r.location,website:r.blog,image:r.avatar_url,profile_image:r.avatar_url,bio:r.bio,status:"",slug:r.login};var s=e.rootState.application.config,u=s.urls;e.nextState.theme.name,e.nextState.theme.version,s.urls.theme;i.urls=u,i.status="published",i.feature_image=i.image;var p=c.a.template(n.type||"post",{context:n.type||"post",socialnetwork:s.socialnetwork,relativeUrl:n.url,post:i,author:i.author},{config:s,theme:e.nextState.theme}),d=[];return d.push({title:n.title,image:n.image,name:n.name,path:s.urls.getContentGhPath(n.name,n.type),url:s.urls.getContentGhPath(n.name,n.type),content:p,message:"Publish "+n.name,published_at:n.published_at}),e.nextState.elementsToPublish=(e.nextState.elementsToPublish||[]).concat(d),e};var i=n("woOf"),o=n.n(i),r=n("M4fF"),a=n.n(r),s=n("j+6P"),c=n.n(s),u=n("n+xr"),l=n.n(u)},LB67:function(e,t,n){"use strict";var i=n("6Ndi");t.a={authenticate:function(e){return i.a.fireRequestAuthentication(e).then(function(e){return i.a.fireReceiveAuthentication(e)})}}},LnjV:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"",""])},MHN4:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".about-content{padding-top:60px}",""])},Mha6:function(e,t,n){var i=n("ys1n");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("4942fa76",i,!0,{sourceMap:!1})},N3Gg:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"initialise-configuration"},[e._m(0),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"content"},[e._v("\n We need to initialize your configuration before a first use.\n ")]),n("div",{staticClass:"ui divider"}),n("form",{staticClass:"ui form",attrs:{id:"configurationForm"},on:{submit:function(t){t.preventDefault(),e.submit()}}},[n("div",{staticClass:"required field"},[n("label",[e._v("Username")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.username,expression:"username"}],attrs:{type:"text",name:"configuration-username",placeholder:"Your github username"},domProps:{value:e.username},on:{input:function(t){t.target.composing||(e.username=t.target.value)}}})]),n("div",{staticClass:"required field"},[n("label",[e._v("Repository name")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.repositoryName,expression:"repositoryName"}],attrs:{type:"text",name:"configuration-cname",placeholder:"The name of your repository"},domProps:{value:e.repositoryName},on:{input:function(t){t.target.composing||(e.repositoryName=t.target.value)}}})]),n("div",{staticClass:"required field"},[n("label",[e._v("Branch")]),n("div",{staticClass:"ui selection dropdown"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.branch,expression:"branch"}],attrs:{type:"hidden",name:"branch"},domProps:{value:e.branch},on:{input:function(t){t.target.composing||(e.branch=t.target.value)}}}),n("i",{staticClass:"dropdown icon"}),n("div",{staticClass:"default text"},[e._v("master")]),e._m(1)])]),n("div",{staticClass:"field"},[n("label",[e._v("Domain name")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.cname,expression:"cname"}],attrs:{type:"text",name:"configuration-cname",placeholder:"Your domain name if you have one"},domProps:{value:e.cname},on:{input:function(t){t.target.composing||(e.cname=t.target.value)}}})]),n("button",{staticClass:"ui fluid large submit button",attrs:{type:"submit",name:"button",disabled:!e.isValid}},[e._v("Ok, let's go!")])]),e._m(2)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"ui center aligned icon header"},[t("i",{staticClass:"circular configure icon"}),this._v("\n Configuration\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"menu"},[t("div",{staticClass:"item",attrs:{"data-value":"master"}},[this._v("master")]),t("div",{staticClass:"item",attrs:{"data-value":"gh-pages"}},[this._v("gh-pages")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui message"},[this._v("\n If you have questions about how to use HubPress, "),t("a",{attrs:{href:"https://hubpress.gitbooks.io/hubpress-knowledgebase/content/"}},[this._v("here is the right place.")])])}]};t.a=i},NpFX:function(e,t,n){"use strict";var i=n("FoP8"),o=n("XO7e");var r=function(e){n("YDvP")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Pm0L:function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"f",function(){return o}),n.d(t,"g",function(){return r}),n.d(t,"h",function(){return a}),n.d(t,"d",function(){return s}),n.d(t,"c",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"a",function(){return l});var i="login:submit",o="login:updateEmail",r="login:updatePassword",a="login:updateTwoFactorCode",s="authorisation:request-login",c="authorisation:receive-login",u="authorisation:failure-login",l="authorisation:authentication-done"},Q7NK:function(e,t,n){"use strict";(function(e,t){var i,o=n("pFYg"),r=n.n(o);i=function(e){e.defineMode("asciidoc",function(e,t){var n=1e3,i=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],i=[],o=0,r=this.matchMappings[t]={defaultToken:"text"},a="g",s=[],c=0;c1?this.$applyToken:u.token);p>1&&(/\\\d/.test(u.regex)?l=u.regex.replace(/\\([0-9]+)/g,function(e,t){return"\\"+(parseInt(t,10)+o+1)}):(p=1,l=this.removeCapturingGroups(u.regex)),u.splitRegex||"string"==typeof u.token||s.push(u)),r[o]=c,o+=p,i.push(l),u.onMatch||(u.onMatch=null)}}s.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)},this),this.regExps[t]=new RegExp("("+i.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(e){n=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var i=[],o=0,r=n.length;ol){var m=e.substring(l,g-h.length);p.type==d?p.value+=m:(p.type&&u.push(p),p={type:d,value:m})}for(var v=0;vn){for(;l1&&i[0]!==o&&i.unshift(o),{tokens:u,state:i.length?i:o}}}).call(i.prototype);var o={empty:null,text:null,keyword:"keyword",control:"keyword",operator:"operator",constant:"atom",numeric:"number",character:"atom",escape:"atom",variable:"variable",parameter:"variable-3",language:"variable-2",comment:"comment",line:"comment","double-slash":"comment","double-dash":"comment","number-sign":"comment",percentage:"comment",block:"comment",doc:"comment",string:"string",quoted:"string",single:"string",double:"string",triple:"string",unquoted:"string",interpolated:"string",regexp:"string-2",meta:"keyword",literal:"qualifier",support:"builtin",markup:"tag",underline:"link",link:"link",strong:"strong",heading:"header",heading2:"header-2",heading3:"header-3",heading4:"header-4",heading5:"header-5",heading6:"header-6",em:"em",list:"variable-2",numbered:"variable-2",unnumbered:"variable-2",quote:"quote",raw:"variable-2",invalid:"error",illegal:"invalidchar",deprecated:"error"},r=function(e,t){var n=t.plannedTokens.shift();return void 0===n?null:(e.match(n.value),function(e){for(var t=null,n=0;n0)return r(e,t);var n=t.current,i=e.match(/.*$/,!1)[0],o=s.getLineTokens(i,n);return t.plannedTokens=o.tokens,t.current=o.state,r(e,t)},s=new i((new function(){function e(e){return(/\w/.test(e)?"\\b":"(?:\\B|^)")+e+"[^"+e+"].*?"+e+"(?![\\w*])"}this.$rules={start:[{token:"empty",regex:/$/},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"literal",regex:/^-{4,}\s*$/,next:"literalBlock"},{token:"literal",regex:/^\+{4,}\s*$/,next:"passthroughBlock"},{token:"keyword",regex:/^={4,}\s*$/},{token:"text",regex:/^\s*$/},{token:"empty",regex:"",next:"dissallowDelimitedBlock"}],dissallowDelimitedBlock:[{include:"paragraphEnd"},{token:"comment",regex:"^//.+$"},{token:"keyword",regex:"^(?:NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s"},{include:"listStart"},{token:"literal",regex:/^\s+.+$/,next:"indentedBlock"},{token:"empty",regex:"",next:"text"}],paragraphEnd:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"commentBlock"},{token:"tableBlock",regex:/^\s*[|!]=+\s*$/,next:"tableBlock"},{token:"keyword",regex:/^(?:--|''')\s*$/,next:"start"},{token:"option",regex:/^\[.*\]\s*$/,next:"start"},{token:"pageBreak",regex:/^>{3,}$/,next:"start"},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"titleUnderline",regex:/^(?:={2,}|-{2,}|~{2,}|\^{2,}|\+{2,})\s*$/,next:"start"},{token:"singleLineTitle",regex:/^={1}\s+\S.*$/,next:"start"},{token:"singleLineTitle2",regex:/^={2}\s+\S.*$/,next:"start"},{token:"singleLineTitle3",regex:/^={3}\s+\S.*$/,next:"start"},{token:"singleLineTitle4",regex:/^={4}\s+\S.*$/,next:"start"},{token:"singleLineTitle5",regex:/^={5}\s+\S.*$/,next:"start"},{token:"singleLineTitle6",regex:/^={6}\s+\S.*$/,next:"start"},{token:"otherBlock",regex:/^(?:\*{2,}|_{2,})\s*$/,next:"start"},{token:"optionalTitle",regex:/^\.[^.\s].+$/,next:"start"}],listStart:[{token:"keyword",regex:/^\s*(?:\d+\.|[a-zA-Z]\.|[ixvmIXVM]+\)|\*{1,5}|-|\.{1,5})\s/,next:"listText"},{token:"meta.tag",regex:/^.+(?::{2,4}|;;)(?: |$)/,next:"listText"},{token:"keyword",regex:/^\+\s*$/,next:"start"}],text:[{token:["link","link"],regex:/((?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+)(\[.*?\])/},{token:["link","link"],regex:/(?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+/},{token:"link",regex:/\b[\w\.\/\-]+@[\w\.\/\-]+\b/},{include:"macros"},{include:"paragraphEnd"},{token:"literal",regex:/\+{3,}/,next:"smallPassthrough"},{token:"escape",regex:/\((?:C|TM|R)\)|\.{3}|->|<-|=>|<=|&#(?:\d+|x[a-fA-F\d]+);|(?: |^)--(?=\s+\S)/},{token:"escape",regex:/\\[_*'`+#]|\\{2}[_*'`+#]{2}/},{token:"keyword",regex:/\s\+$/},{token:"text",regex:"[a-zA-Z¡-￿]+\\b"},{token:["keyword","string","keyword"],regex:/(<<[\w\d\-$]+,)(.*?)(>>|$)/},{token:"keyword",regex:/<<[\w\d\-$]+,?|>>/},{token:"constant.character",regex:/\({2,3}.*?\){2,3}/},{token:"support.function.list.callout",regex:/^(?:<\d+>|\d+>|>) /,next:"text"},{token:"keyword",regex:/\[\[.+?\]\]/},{token:"support",regex:/^\[{3}[\w\d =\-]+\]{3}/},{include:"quotes"},{token:"empty",regex:/^\s*$/,next:"start"}],listText:[{include:"listStart"},{include:"text"}],indentedBlock:[{token:"literal",regex:/^[\s\w].+$/,next:"indentedBlock"},{token:"literal",regex:"",next:"start"}],listingBlock:[{token:"literal",regex:/^\.{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],literalBlock:[{token:"literal",regex:/^-{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],passthroughBlock:[{token:"literal",regex:/^\+{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:"[a-zA-Z¡-￿]+\\b|\\d+"},{include:"macros"},{token:"literal",regex:"."}],smallPassthrough:[{token:"literal",regex:/[+]{3,}/,next:"dissallowDelimitedBlock"},{token:"literal",regex:/^\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:"[a-zA-Z¡-￿]+\\b|\\d+"},{include:"macros"}],commentBlock:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"doc.comment",regex:"^.*$"}],tableBlock:[{token:"tableBlock",regex:/^\s*\|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"innerTableBlock"},{token:"tableBlock",regex:/\|/},{include:"text",noEscape:!0}],innerTableBlock:[{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"tableBlock"},{token:"tableBlock",regex:/^\s*|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/\!/}],macros:[{token:"macro",regex:/{[\w\-$]+}/},{token:["text","string","text","constant.character","text"],regex:/({)([\w\-$]+)(:)?(.+)?(})/},{token:["text","markup.list.macro","keyword","string"],regex:/(\w+)(footnote(?:ref)?::?)([^\s\[]+)?(\[.*?\])?/},{token:["markup.list.macro","keyword","string"],regex:/([a-zA-Z\-][\w\.\/\-]*::?)([^\s\[]+)(\[.*?\])?/},{token:["markup.list.macro","keyword"],regex:/([a-zA-Z\-][\w\.\/\-]+::?)(\[.*?\])/},{token:"keyword",regex:/^:.+?:(?= |$)/}],quotes:[{token:"string.italic",regex:/__[^_\s].*?__/},{token:"string.italic",regex:e("_")},{token:"keyword.bold",regex:/\*\*[^*\s].*?\*\*/},{token:"keyword.bold",regex:e("\\*")},{token:"literal",regex:/\+\+[^+\s].*?\+\+/},{token:"literal",regex:e("\\+")},{token:"literal",regex:/\$\$.+?\$\$/},{token:"literal",regex:e("\\$")},{token:"literal",regex:/``[^`\s].*?``/},{token:"literal",regex:e("`")},{token:"keyword",regex:/\^[^\^].*?\^/},{token:"keyword",regex:e("\\^")},{token:"keyword",regex:/~[^~].*?~/},{token:"keyword",regex:e("~")},{token:"keyword",regex:/##?/},{token:"keyword",regex:/(?:\B|^)``|\b''/}]};var t={macro:"constant.character",tableBlock:"doc.comment",titleUnderline:"markup.heading",singleLineTitle:"markup.heading",singleLineTitle2:"markup.heading2",singleLineTitle3:"markup.heading3",singleLineTitle4:"markup.heading4",singleLineTitle5:"markup.heading5",singleLineTitle6:"markup.heading6",pageBreak:"string",option:"string.regexp",otherBlock:"markup.list",literal:"support.function",optionalTitle:"constant.numeric",escape:"constant.language.escape",link:"markup.underline.list"};for(var n in this.$rules)for(var i=this.$rules[n],o=i.length;o--;){var r=i[o];if(r.include||"string"==typeof r){var a=[o,1].concat(this.$rules[r.include||r]);r.noEscape&&(a=a.filter(function(e){return!e.next})),i.splice.apply(i,a)}else r.token in t&&(r.token=t[r.token])}}).$rules);return{startState:function(){return{current:"start",plannedTokens:[]}},blankLine:function(e){a("",e)},token:a}}),e.defineMIME("text/x-asciidoc","asciidoc")},"object"==("undefined"==typeof exports?"undefined":r()(exports))&&"object"==r()(e)?i(n("8U58")):"object"==("undefined"==typeof brackets?"undefined":r()(brackets))&&brackets.getModule?i(brackets.getModule("thirdparty/CodeMirror2/lib/codemirror")):"function"==typeof define&&n("nErl")?define(["codemirror"],i):i(t)}).call(t,n("f1Eh")(e),n("8U58"))},QMmS:function(e,t,n){"use strict";t.b=function(e){return e.on("application:stores",function(e){var t;console.info("authenticationPlugin - application:stores"),console.log("authenticationPlugin - application:stores",e);var n={state:{isAuthenticated:!1,isTwoFactorCodeRequired:!1,credentials:{email:void 0,password:void 0,twoFactorCode:void 0}},mutations:(t={},o()(t,u.f,function(e,t){e.credentials.email=t}),o()(t,u.g,function(e,t){e.credentials.password=t}),o()(t,u.h,function(e,t){e.credentials.twoFactorCode=t}),o()(t,u.d,function(e){e.isLoading=!0}),o()(t,u.c,function(e,t){a.a.merge(e,t)}),o()(t,u.b,function(e,t){e.isAuthenticated=!1}),o()(t,l,function(e,t){a.a.merge(e,t.authentication)}),t),actions:o()({},u.e,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,r=e.state;i(u.d);var c={rootState:a.a.cloneDeep(o),currentState:a.a.cloneDeep(r)};n("application:loading").then(function(e){return s.a.authenticate(c)}).then(function(e){i(u.c,e.nextState)}).then(function(e){return r.isAuthenticated?n(p,!0).then(function(e){return n(u.a)}):r.isTwoFactorCodeRequired?n("application:notify",{icon:"unlock",header:"Two factor code",message:"A code is required to complete your authentication.",level:"warning"}):n("application:notify",{icon:"warning circle",header:"Authentication failed",message:"A error occured during the authentication.",level:"error"})}).then(function(e){return n("application:loaded")}).then(function(e){return t.push(t.currentRoute.query.redirect||"/")}).catch(function(e){n("application:loaded").then(function(e){return n("application:notify",{icon:"warning circle",header:"Authentication failed",message:"A error occured during the authentication.",level:"error"})})})}),getters:{}};return e.nextState.stores.authentication=n,console.log("authenticationPlugin - application:stores - return",e),e}),e.on("application:routes",function(e){return e}),e.on("application:initialize-app",function(e){return console.info("authenticationPlugin - application:initialize-app"),console.log("authenticationPlugin - application:initialize-app",e),s.a.initialize(e).then(function(e){return e})}),e.on("authentication:authenticate",function(e){return console.info("authenticationPlugin - authentication:authenticate"),console.log("authenticationPlugin - authentication:authenticate",e,s.a),s.a.authenticate(e)}),{getName:function(){return"authenticationPlugin"}}},n.d(t,"a",function(){return d});var i=n("bOdI"),o=n.n(i),r=n("M4fF"),a=n.n(r),s=n("KMrN"),c=n("RUoO"),u=n("Pm0L"),l="application:initialize-app",p="application:save-config";var d=c.a},RUoO:function(e,t,n){"use strict";var i=n("6yLl"),o=n("oS0V");var r=function(e){n("Mha6")},a=n("VU/8")(i.a,o.a,!1,r,"data-v-94154cf6",null);t.a=a.exports},RsIG:function(e,t,n){"use strict";var i=n("woOf"),o=n.n(i),r=n("LEOq"),a=n.n(r);function s(e){return a.a.fire("application:receive-config",e)}t.a={initializeRoutes:function(e){return a.a.fire("application:routes",e)},initializeApp:function(e,t){return a.a.fire("application:initialize-app",e,t)},initializePlugins:function(e,t){return a.a.fire("application:initialize-plugins",e,t)},initializeConfig:function(e){return console.log("application - initializeConfig",e),function(e){return a.a.fire("application:request-config",e)}(e).then(s)},startUpConfig:function(e){return console.log("application - startUpConfig",e),s(e)},prepareConfig:function(e){return a.a.fire("application:prepare-config",e)},saveConfig:function(e){return function(e){return console.log("application - fireRequestSaveConfig",e),a.a.fire("application:request-save-config",e)}(e).then(function(t){return o()({},e,{nextState:t.nextState.application})}).then(s).then(function(t){return e.nextState.application=t.nextState,o()({},e)}).catch(function(e){console.log(e)})},saveConfigDone:function(e){return a.a.fire("application:save-config-done",e)}}},SDLk:function(e,t,n){"use strict";var i={render:function(){this.$createElement;this._self._c;return this._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"about-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",attrs:{href:"https://twitter.com/HubPressIO",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Follow us on twitter","data-position":"bottom right"}},[n("i",{staticClass:"twitter large icon"})])]),n("a",{staticClass:"item",attrs:{href:"https://gitter.im/HubPress/hubpress.io",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Wanna chat with us?","data-position":"bottom right"}},[n("i",{staticClass:"gitter large icon"})])]),n("a",{staticClass:"item",attrs:{href:"https://github.com/HubPress",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"HubPress is opensource :)","data-position":"bottom right"}},[n("i",{staticClass:"github large icon"})])])])]),n("div",{staticClass:"about-content"},[n("div",{staticClass:"ui container"},[n("h2",{staticClass:"ui center aligned icon header"},[n("i",{staticClass:"circular users icon"}),e._v("\n The HubPress Team\n ")]),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"row"},[n("div",{staticClass:"ui items divided"},[n("div",{staticClass:"item"},[n("div",{staticClass:"image"},[n("img",{attrs:{src:"https://avatars1.githubusercontent.com/u/2006548?v=3&s=460"}})]),n("div",{staticClass:"content"},[n("a",{staticClass:"header"},[e._v("Anthonny Quérouil")]),n("div",{staticClass:"meta"},[n("span",[e._v("The creator of HubPress")])]),n("div",{staticClass:"description"},[n("p",[e._v("Anthonny is a freelance developer and the creator of HubPress")]),n("p",[e._v("He started HubPress two years ago")])]),n("div",{staticClass:"extra"},[n("a",{staticClass:"ui label",attrs:{href:"https://twitter.com/anthonny_q",target:"_blank"}},[n("i",{staticClass:"twitter icon"}),e._v(" Twitter\n ")]),n("a",{staticClass:"ui label",attrs:{href:"https://github.com/anthonny",target:"_blank"}},[n("i",{staticClass:"github icon"}),e._v(" GitHub\n ")]),n("a",{staticClass:"ui label",attrs:{href:"http://anthonnyquerouil.fr/",target:"_blank"}},[n("i",{staticClass:"home icon"}),e._v(" Website\n ")])])])]),n("div",{staticClass:"item"},[n("div",{staticClass:"image"},[n("img",{attrs:{src:"https://avatars0.githubusercontent.com/u/952793?v=3&s=460"}})]),n("div",{staticClass:"content"},[n("a",{staticClass:"header"},[e._v("Jared Morgan")]),n("div",{staticClass:"meta"},[n("span",[e._v("The Docs guy")])]),n("div",{staticClass:"description"},[n("p",[e._v("By day, Jared is a Certified Scrum Product Owner (CSPO) and Technical Writer for Ladbrokes in Brisbane, Australia.")]),n("p",[e._v("By night, he uses his craft to improve open source software products one README at a time.")]),n("p",[e._v("In between, he uses his expertise in Pinball machines and knowledge of Android beta testing to improve digital pinball apps.")])]),n("div",{staticClass:"extra"},[n("a",{staticClass:"ui label",attrs:{href:"https://twitter.com/jaredmorgs",target:"_blank"}},[n("i",{staticClass:"twitter icon"}),e._v(" Twitter\n ")]),n("a",{staticClass:"ui label",attrs:{href:"https://github.com/jaredmorgs",target:"_blank"}},[n("i",{staticClass:"github icon"}),e._v(" GitHub\n ")]),n("a",{staticClass:"ui label",attrs:{href:"http://jaredleonmorgan.net/",target:"_blank"}},[n("i",{staticClass:"home icon"}),e._v(" Website\n ")])])])])])])])])])}]};t.a=i},SHkU:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._l(e.navigation,function(t,i){return n("div",{key:t.label,staticClass:"fields"},[n("div",{staticClass:"four wide field"},[n("input",{attrs:{type:"text",placeholder:"Label",name:"navigation-label-"+i},domProps:{value:t.label}})]),n("div",{staticClass:"eleven wide field"},[n("input",{attrs:{type:"text",placeholder:"http://www.mysite.com",name:"navigation-url-"+i},domProps:{value:t.url}})]),n("div",{staticClass:"one wide field"},[n("button",{staticClass:"ui icon button",on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.remove(i)}}},[n("i",{staticClass:"trash icon"})])])])}),n("div",{staticClass:"fields"},[n("div",{staticClass:"four wide field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNav.label,expression:"newNav.label"}],attrs:{type:"text",placeholder:"Label"},domProps:{value:e.newNav.label},on:{input:function(t){t.target.composing||e.$set(e.newNav,"label",t.target.value)}}})]),n("div",{staticClass:"eleven wide field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNav.url,expression:"newNav.url"}],attrs:{type:"text",placeholder:"http://www.mysite.com"},domProps:{value:e.newNav.url},on:{input:function(t){t.target.composing||e.$set(e.newNav,"url",t.target.value)}}})]),n("div",{staticClass:"one wide field"},[n("button",{staticClass:"ui icon button",attrs:{disabled:e.isNotValid},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.add(e.newNav)}}},[n("i",{staticClass:"add icon"})])])])],2)},staticRenderFns:[]};t.a=i},SUis:function(e,t,n){"use strict";(function(e){var i=n("PJh5"),o=n.n(i),r=n("RJtx"),a=n.n(r),s=n("lYDI");t.a={name:"posts",data:function(){return{postToDelete:{},filterValue:""}},beforeCreate:function(){},beforeMount:function(){this.$store.dispatch(s.a)},beforeDestroy:function(){e(".ui.basic.modal").remove()},mounted:function(){var t=this;e(".ui.basic.modal").modal({closable:!1,onDeny:function(){},onApprove:function(){t.$store.dispatch(s.d,t.postToDelete._id)}})},methods:{status:function(e){return!e.published?"Draft":"Published"},type:function(e){return e.type.replace(/\b\w/g,function(e){return e.toUpperCase()})},publishedAt:function(e){return!!e.published&&e.published_at&&o()(e.published_at).fromNow()||""},postCoverUrl:function(e){var t=e.image||"https://hubpress.github.io/img/logo.png";return t=t.startsWith("http")?t:e.attributes.$$smap.imagesdir+"/"+e.image},getPostStatusColor:function(e){return e.original?e.original.content!==e.content?"orange":"green":"red"},displayConfirmMessage:function(t){this.postToDelete=t,e(".ui.basic.modal").modal("show")},navigateToPost:function(e){this.$router.push({name:"post",params:{id:e._id}})},newPost:function(){this.$router.push({name:"post",params:{id:a.a.v4()}})},getPostTags:function(e){return e.tags||[]},getPostAuthor:function(e){return e.author||this.$store.state.authentication.userInformations},synchronize:function(){this.$store.dispatch(s.b)}},computed:{posts:function(){var e=this.filterValue.trim();return""===e?this.$store.state.hubpress.posts:this.$store.state.hubpress.posts.filter(function(t){return t.title.toLowerCase().indexOf(e.toLowerCase())>=0||t.tags&&t.tags.filter(function(t){return t.toLowerCase().indexOf(e.toLowerCase())>=0}).length})}}}}).call(t,n("7t+N"))},SjaB:function(e,t,n){var i=n("3fVB");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("2d76ba14",i,!0,{sourceMap:!1})},T23V:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,r,a=n("pFYg"),s=n.n(a),c=n("mvHQ"),u=n.n(c),l=n("fZjL"),p=n.n(l),d=n("woOf"),f=n.n(d),h=n("Zzip"),g=n.n(h),m=n("5QVw"),v=n.n(m),b=n("//Fk"),x=n.n(b),C=n("I3G/"),w=n.n(C),y=n("unZF"),P=n("qcny"),k=n("YLfZ"),S=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=x.a))(function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,s)}c((i=i.apply(e,t||[])).next())})},_=this&&this.__generator||function(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof v.a&&(r[g.a]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=i[2&r[0]?"return":r[0]?"throw":"next"])&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[0,o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1].row{padding-top:0;padding-bottom:0}.post-editor .ui.grid.light>.row{background-color:#f5f5f5;color:#202020}.post-editor .ui.grid.light>.row .ui.header{color:#202020}.post-editor .ui.grid.light>.row a{color:#aa759f}.post-editor .ui.grid.dark>.row,.post-editor .ui.grid.dark>.row .ui.header{background-color:#3f3f3f;color:#dcdccc}.post-editor .ui.grid.dark>.row .ui.header{color:#dcdccc}.post-editor .ui.grid.dark>.row a{color:#dcdcaa}.post-editor .ui.grid{padding-top:0;padding-bottom:0;margin:0}.post-editor .ui.grid .column{padding-top:0;margin-top:0;padding-bottom:0;margin-bottom:0}.vue-codemirror.container{min-height:100%;height:100%}#asciidoc-content,#asciidoc-preview{height:calc(100vh - 47px);min-height:calc(100vh - 47px)}#asciidoc-content.is-hidden{display:none}#asciidoc-preview{overflow-y:auto;padding-top:2em;font-size:1.2em;font-family:Menlo,Monaco,Consolas,Courier New,monospace;word-wrap:break-word}#asciidoc-preview.is-iframe{padding:0}#asciidoc-preview>div{max-width:750px!important;margin:auto}#asciidoc-preview.is-iframe>div{min-width:100%;margin:auto}#asciidoc-preview.is-fullscreen{width:100%!important}#asciidoc-preview>div .ui.header{font-family:Menlo,Monaco,Consolas,Courier New,monospace}#asciidoc-preview .content pre{background-color:#dcdccc;color:#2e2e2e;padding:10px;border-radius:5px;overflow:auto}#asciidoc-preview .paragraph{padding:.75em 0}#asciidoc-preview img{width:100%;max-width:100%}@media screen and (max-width:992px){#asciidoc-content{display:block}#asciidoc-content.is-preview-visible,#asciidoc-preview{display:none}#asciidoc-preview.is-preview-visible{display:block}}.item .ui.icon .rocket.unpublish{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.cm-s-zenburn.CodeMirror .CodeMirror-gutters{background:#3f3f3f!important}.cm-s-zenburn.CodeMirror .CodeMirror-foldgutter-open,.CodeMirror-foldgutter-folded{color:#999}.cm-s-zenburn.CodeMirror .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-zenburn.CodeMirror{background-color:#3f3f3f;color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-builtin{color:#dcdccc;font-weight:700}.cm-s-zenburn.CodeMirror span.cm-comment{color:#7f9f7f}.cm-s-zenburn.CodeMirror span.cm-keyword{color:#f0dfaf;font-weight:700}.cm-s-zenburn.CodeMirror span.cm-atom{color:#bfebbf}.cm-s-zenburn.CodeMirror span.cm-def{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-variable{color:#dfaf8f}.cm-s-zenburn.CodeMirror span.cm-variable-2{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-string,.cm-s-zenburn.CodeMirror span.cm-string-2{color:#cc9393}.cm-s-zenburn.CodeMirror span.cm-number{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-tag{color:#93e0e3}.cm-s-zenburn.CodeMirror span.cm-attribute,.cm-s-zenburn.CodeMirror span.cm-property{color:#dfaf8f}.cm-s-zenburn.CodeMirror span.cm-qualifier{color:#7cb8bb}.cm-s-zenburn.CodeMirror span.cm-meta{color:#f0dfaf}.cm-s-zenburn.CodeMirror span.cm-header,.cm-s-zenburn.CodeMirror span.cm-operator{color:#f0efd0}.cm-s-zenburn.CodeMirror span.CodeMirror-matchingbracket{-webkit-box-sizing:border-box;box-sizing:border-box;background:transparent;border-bottom:1px solid}.cm-s-zenburn.CodeMirror span.CodeMirror-nonmatchingbracket{border-bottom:1px solid;background:none}.cm-s-zenburn.CodeMirror .CodeMirror-activeline,.cm-s-zenburn.CodeMirror .CodeMirror-activeline-background{background:#000}.cm-s-zenburn.CodeMirror div.CodeMirror-selected{background:#545454}.cm-s-zenburn.CodeMirror .CodeMirror-focused div.CodeMirror-selected{background:#4f4f4f}.cm-s-base16-light.CodeMirror{background:#f5f5f5;color:#202020}.cm-s-base16-light.CodeMirror div.CodeMirror-selected{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-line::selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span::selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span>span::selection{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-line::-moz-selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span::-moz-selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span>span::-moz-selection{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-gutters{background:#f5f5f5;border-right:0}.cm-s-base16-light.CodeMirror .CodeMirror-guttermarker{color:#ac4142}.cm-s-base16-light.CodeMirror .CodeMirror-guttermarker-subtle,.cm-s-base16-light.CodeMirror .CodeMirror-linenumber{color:#b0b0b0}.cm-s-base16-light.CodeMirror .CodeMirror-cursor{border-left:1px solid #505050}.cm-s-base16-light.CodeMirror span.cm-comment{color:#8f5536}.cm-s-base16-light.CodeMirror span.cm-atom,.cm-s-base16-light.CodeMirror span.cm-number{color:#aa759f}.cm-s-base16-light.CodeMirror span.cm-attribute,.cm-s-base16-light.CodeMirror span.cm-property{color:#90a959}.cm-s-base16-light.CodeMirror span.cm-keyword{color:#ac4142}.cm-s-base16-light.CodeMirror span.cm-string{color:#f4bf75}.cm-s-base16-light.CodeMirror span.cm-variable{color:#90a959}.cm-s-base16-light.CodeMirror span.cm-variable-2{color:#6a9fb5}.cm-s-base16-light.CodeMirror span.cm-def{color:#d28445}.cm-s-base16-light.CodeMirror span.cm-bracket{color:#202020}.cm-s-base16-light.CodeMirror span.cm-tag{color:#ac4142}.cm-s-base16-light.CodeMirror span.cm-link{color:#aa759f}.cm-s-base16-light.CodeMirror span.cm-error{background:#ac4142;color:#505050}.cm-s-base16-light.CodeMirror .CodeMirror-activeline-background{background:#dddcdc}.cm-s-base16-light.CodeMirror .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}",""])},THns:function(e,t,n){"use strict";t.a=function(e){console.info("PostsGenerator - generate"),console.log("PostsGenerator - generate",e);var t=e;return e.nextState.publishedPosts.forEach(function(e){t=Object(o.a)(t,e)}),t};n("APUd");var i=n("j+6P"),o=(n.n(i),n("KgKs"))},ThI1:function(e,t,n){"use strict";var i=n("oz2E"),o=n("mBSI");var r=function(e){n("yJpT")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Tknw:function(e,t,n){"use strict";var i=n("wrAo"),o=n("zfI2");var r=function(e){n("YoMZ")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},WRRc:function(e,t,n){"use strict";t.a={name:"nuxt-link",functional:!0,render:function(e,t){return e("router-link",t.data,t.children)}}},WiUJ:function(e,t,n){"use strict";t.a=function(e){e.on("hubpress:request-theme",function(e){console.info("templatePlugin - hubpress:request-theme"),console.log("templatePlugin - hubpress:request-theme",e);var t,n,i,r,s,u=e.rootState.application.config.theme.name.toLowerCase(),p=e.rootState.application.config;return(t=u,n=p,i=a.a.defer(),r=[],s=n.urls.hubpress,c.a.get(s+"/themes/"+t+"/theme.json?dt="+Date.now()).end(function(e,n){if(e)i.reject(e);else{var o=n.body,u=o.version,p=!1,d=!1,f=!1;if(l.a.toPairs(o.files).forEach(function(e){var n=a.a.defer();r.push(n.promise),p=p||"pagination"===e[0],d=d||"nav"===e[0],f=f||"navigation"===e[0],c.a.get(s+"/themes/"+t+"/"+e[1]+"?v="+u).end(function(t,i){t?n.reject(t):n.resolve({name:e[0],path:e[1],content:i.text})})}),!p){var h=a.a.defer();r.push(h.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/pagination.hbs").end(function(e,t){e?h.reject(e):h.resolve({name:"pagination",path:"partials/pagination",content:t.text})})}if(!d){var g=a.a.defer();r.push(g.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/nav.hbs").end(function(e,t){e?g.reject(e):g.resolve({name:"nav",path:"partials/nav",content:t.text})})}if(!f){var m=a.a.defer();r.push(m.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/navigation.hbs").end(function(e,t){e?m.reject(e):m.resolve({name:"navigation",path:"partials/navigation",content:t.text})})}a.a.all(r).then(function(e){i.resolve({version:u,files:e})}).catch(function(e){console.log(e),i.reject(e)})}}),i.promise).then(function(t){var n={name:u,files:t.files,version:t.version};b.a.registerTheme(p,n),b.a.registerFiles(n.files);var i=o()({},n);return e.nextState=o()({},e.nextState,{theme:i}),e})}),e.on("requestGenerateIndex",function(e){console.info("templatePlugin - requestGenerateIndex"),console.log("templatePlugin - requestGenerateIndex",e);var t=Object(p.a)(e);return console.log("templatePlugin - requestGenerateIndex return",t),t}),e.on("requestGeneratePost",function(e){console.info("templatePlugin - requestGeneratePost"),console.log("templatePlugin - requestGeneratePost",e);var t=Object(d.a)(e,e.nextState.post);return console.log("templatePlugin - requestGeneratePost return",t),t}),e.on("requestGeneratePosts",function(e){console.info("templatePlugin - requestGeneratePosts"),console.log("templatePlugin - requestGeneratePosts",e);var t=Object(f.a)(e);return console.log("templatePlugin - requestGeneratePosts return",t),t}),e.on("requestGeneratePages",function(e){console.info("templatePlugin - requestGeneratePages"),console.log("templatePlugin - requestGeneratePages",e);var t=Object(h.a)(e);return console.log("templatePlugin - requestGeneratePages return",t),t}),e.on("requestGenerateTags",function(e){console.info("templatePlugin - requestGenerateTags"),console.log("templatePlugin - requestGenerateTags",e);var t=Object(g.a)(e);return console.log("templatePlugin - requestGenerateTags return",t),t}),e.on("requestGenerateAuthors",function(e){console.info("templatePlugin - requestGenerateAuthors"),console.log("templatePlugin - requestGenerateAuthors",e);var t=Object(m.a)(e);return console.log("templatePlugin - requestGenerateAuthors return",t),t})};var i=n("woOf"),o=n.n(i),r=n("/Luh"),a=n.n(r),s=n("GG98"),c=n.n(s),u=n("M4fF"),l=n.n(u),p=n("e3+D"),d=n("KgKs"),f=n("THns"),h=n("BdWi"),g=n("dZ6u"),m=n("KOTd"),v=n("j+6P"),b=n.n(v)},X5n4:function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"l",function(){return r}),n.d(t,"i",function(){return a}),n.d(t,"j",function(){return s}),n.d(t,"k",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"d",function(){return l}),n.d(t,"h",function(){return p}),n.d(t,"a",function(){return d}),n.d(t,"g",function(){return f}),n.d(t,"f",function(){return h});var i="application:initialize-routes",o="application:initialize-config",r="application:save-startup-config",a="application:prepare-config",s="application:save-config",c="application:save-config-done",u="application:initialize-app",l="application:initialize-plugins",p="application:notify",d="application:close-notification",f="application:loading",h="application:loaded"},X8TR:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"post-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.showAsciidocHelp()}}},[e._m(0)]),n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchLight()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.lightLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{sun:e.isDark,moon:!e.isDark}})])]),n("a",{staticClass:"item html-preview",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreview(!1)}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.previewLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{unhide:!e.isPreviewVisible||e.isIFrame,hide:e.isPreviewVisible&&!e.isIFrame}})])]),n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreview(!0)}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.previewLabelIFrame,"data-position":"bottom right"}},[n("i",{staticClass:"large icon globe"})])]),e.isPreviewVisible?n("a",{staticClass:"item preview-resize",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreviewSize()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.resizeLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{expand:!e.isFullScreen,compress:e.isFullScreen}})])]):e._e(),e.isRemoteActionVisible?n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.remoteSave()}}},[e._m(1)]):e._e(),e.isRemoteActionVisible?n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.publish()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.publishLabel,"data-position":"bottom right"}},[n("i",{staticClass:"icons"},[n("i",{staticClass:"cloud large icon",class:{download:e.isPostPublished,upload:!e.isPostPublished}})])])]):e._e()])]),e._m(2),n("div",{staticClass:"post-editor"},[n("div",{staticClass:"ui grid",class:{dark:e.isDark,light:!e.isDark}},[n("div",{staticClass:"row"},[n("div",{staticClass:"column",class:{"sixteen wide mobile height wide computer is-preview-visible":e.isPreviewVisible,"sixteen wide":!e.isPreviewVisible,"is-hidden":e.isFullScreen},attrs:{id:"asciidoc-content"}},[n("codemirror",{ref:"codeEditor",staticClass:"container",attrs:{code:e.content,options:e.editorOption},on:{input:e.contentChange}})],1),e.isPreviewVisible?n("div",{staticClass:"column",class:{"sixteen wide mobile height wide computer is-preview-visible":e.isPreviewVisible,"is-iframe":e.isIFrame,"is-fullscreen":e.isFullScreen},attrs:{id:"asciidoc-preview"}},[n("preview",{attrs:{post:e.post,iframe:e.isIFrame}})],1):e._e()])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Need some help?","data-position":"bottom right"}},[t("i",{staticClass:"help large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Save your post remotely","data-position":"bottom right"}},[t("i",{staticClass:"save large icon"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui modal",attrs:{id:"asciidoc-help"}},[n("i",{staticClass:"close icon"}),n("div",{staticClass:"header"},[e._v("\n Asciidoc syntax help\n ")]),n("div",{staticClass:"content"},[n("table",{staticClass:"ui table"},[n("thead",[n("tr",[n("th",{staticClass:"heigth wide"},[e._v("Result")]),n("th",{staticClass:"heigth wide"},[e._v("Asciidoc")])])]),n("tbody",[n("tr",[n("td",[e._v("H1")]),n("td",[e._v("= Title")])]),n("tr",[n("td",[e._v("H2")]),n("td",[e._v("== Title")])]),n("tr",[n("td",[e._v("H3")]),n("td",[e._v("=== Title")])]),n("tr",[n("td",[n("strong",[e._v("Bold")])]),n("td",[e._v("*content*")])]),n("tr",[n("td",[n("i",[e._v("Emphasize")])]),n("td",[e._v("_content_")])]),n("tr",[n("td",[n("a",{attrs:{href:"#"}},[e._v("Link")])]),n("td",[e._v("http://asciidoctor.org[Asciidoctor]")])]),n("tr",[n("td",[e._v("Image Block")]),n("td",[e._v("image::sunset.jpg[]")])]),n("tr",[n("td",[e._v("Image Inline")]),n("td",[e._v('Click image:icons/pause.png[title="Pause"] when you need a break.')])]),n("tr",[n("td",[e._v("Video")]),n("td",[e._v("video::video_file.mp4[]")])]),n("tr",[n("td",[e._v("Unordered list")]),n("td",[e._v("* item")])]),n("tr",[n("td",[e._v("Ordered list")]),n("td",[e._v(". item")])]),n("tr",[n("td",[n("code",[e._v("Inline code")])]),n("td",[e._v("`code`")])])])]),n("p",[e._v("\n More informations about the Asciidoc syntax here: "),n("a",{attrs:{href:"http://asciidoctor.org/docs/asciidoc-syntax-quick-reference/",target:"_blank"}},[e._v("AsciiDoc Syntax Quick Reference")])])])])}]};t.a=i},XO7e:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.iframe?e._e():n("div",{staticClass:"html-rendering"},[n("h1",{staticClass:"ui header"},[e._v(e._s(e.post.title))]),n("div",{staticClass:"content",attrs:{id:"html-content"},domProps:{innerHTML:e._s(e.post.html)}})]),e.iframe?n("div",{staticClass:"iframe-rendering"},[n("iframe",{staticClass:"published-preview",attrs:{srcdoc:e.post.publishedContent,frameborder:"0"}})]):e._e()])},staticRenderFns:[]};t.a=i},XSDV:function(e,t,n){var i=n("jAb+");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("5bd01218",i,!0,{sourceMap:!1})},XkEn:function(e,t,n){var i=n("dd07");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("1ce06800",i,!0,{sourceMap:!1})},Y2j8:function(e,t,n){"use strict";var i=n("woOf"),o=(n.n(i),n("/Luh")),r=(n.n(o),n("M4fF")),a=(n.n(r),n("RJtx")),s=(n.n(a),n("Wa/L")),c=n("tCkb");s.a.plugin(c.a),window.PouchDB=s.a},YDvP:function(e,t,n){var i=n("qZPA");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("3ecfbf5a",i,!0,{sourceMap:!1})},YG9q:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),t.a=function(e){return e.on("application:routes",function(e){return console.info("applicationPlugin - application:routes"),console.log("applicationPlugin - application:routes",e),e.nextState.routes.push({id:"application",entries:[{path:"settings",name:"settings",component:s.a}]}),console.log("applicationPlugin - application:routes - return",e),e}),e.on("application:stores",function(e){var t,n;console.info("applicationPlugin - application:stores"),console.log("applicationPlugin - application:stores",e);var i={state:{isInitialized:!1,isFetching:!1,isLoading:!1,requireInitilisation:!1,notification:{icon:"save",header:"My Header",message:"A message",level:"default",isVisible:!1},routes:[],settingsTabs:[]},mutations:(t={},o()(t,a.b,function(e,t){_.merge(e,t.application)}),o()(t,a.d,function(e,t){_.merge(e,t.application)}),o()(t,a.e,function(e,t){e.routes=t}),o()(t,a.c,function(e,t){_.merge(e,t)}),o()(t,a.i,function(e,t){_.merge(e,t)}),o()(t,a.l,function(e,t){_.merge(e,t)}),o()(t,a.j,function(e,t){_.merge(e,t.application)}),o()(t,a.k,function(e,t){_.merge(e,t.application)}),o()(t,a.h,function(e,t){t.isVisible=!0,_.merge(e.notification,t)}),o()(t,a.a,function(e,t){e.notification.isVisible=!1}),o()(t,a.g,function(e,t){e.isLoading=!0}),o()(t,a.f,function(e,t){e.isLoading=!1}),t),actions:(n={},o()(n,a.c,function(e){var t=e.commit,n=e.rootState,i=e.state,o={rootState:_.cloneDeep(n),currentState:_.cloneDeep(i)};return r.a.initializeConfig(o).then(function(e){t(a.c,e.nextState)})}),o()(n,a.b,function(e){var t=e.commit,n=e.rootState,i=(e.state,{rootState:_.cloneDeep(n),currentState:_.cloneDeep(n)});return r.a.initializeApp(i).then(function(e){console.log("helllllllo",e),t(a.b,e.nextState)})}),o()(n,a.d,function(e){var t=e.commit,n=e.rootState,i=(e.state,{rootState:_.cloneDeep(n),currentState:_.cloneDeep(n)});return r.a.initializePlugins(i).then(function(e){e.nextState.application.isInitialized=!0,t(a.d,e.nextState)})}),o()(n,a.i,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,s=e.state,c={rootState:_.cloneDeep(o),currentState:_.cloneDeep(s),nextState:_.cloneDeep(s),payload:{formData:t}};return c.currentState.isLoading=!0,c.nextState.isLoading=!0,n(a.g).then(function(e){return r.a.prepareConfig(c)}).then(function(e){return i(a.i,e.nextState),n(a.j)})}),o()(n,a.l,function(e,t){e.dispatch;var n=e.commit,i=e.rootState,o=e.state,s={rootState:_.cloneDeep(i),currentState:_.cloneDeep(o),nextState:_.cloneDeep(o)};return s.nextState.config.meta.username=t.username,s.nextState.config.meta.repositoryName=t.repositoryName,s.nextState.config.meta.branch=t.branch,s.nextState.config.meta.cname=t.cname,s.nextState.requireInitilisation=!1,r.a.startUpConfig(s).then(function(e){n(a.l,e.nextState)})}),o()(n,a.j,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,s=(e.state,{rootState:_.cloneDeep(o),currentState:_.cloneDeep(o),nextState:_.cloneDeep(o)});return console.log(s),r.a.saveConfig(s).then(function(e){if(console.log("testsettesse",e),i(a.j,e.nextState),!t)return n(a.k)})}),o()(n,a.k,function(e){var t=e.dispatch,n=e.commit,i=e.rootState,o=(e.state,{rootState:_.cloneDeep(i),currentState:_.cloneDeep(i),nextState:_.cloneDeep(i)});return r.a.saveConfigDone(o).then(function(e){n(a.k,e.nextState)}).then(function(e){return t("application:loaded")}).then(function(e){return t("application:notify",{icon:"save",header:"Settings saved",message:"Your settings have been saved and your blog was rebuild with success. ",level:"success"})})}),o()(n,a.h,function(e,t){e.dispatch;var n=e.commit;e.rootState,e.state,n(a.h,t)}),o()(n,a.a,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.a)}),o()(n,a.g,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.g)}),o()(n,a.f,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.f)}),n),getters:{navigations:function(e){return e.routes.filter(function(e){return e.label})}}};return e.nextState.stores.application=i,console.log("applicationPlugin - application:stores - return",e),e}),e.on("application:prepare-config",function(e){return console.info("applicationPlugin - application:prepare-config"),console.log("applicationPlugin - application:prepare-config",e),e.nextState.config.meta.cname=e.payload.formData.get("application-cname"),console.log("applicationPlugin - application:prepare-config - return",e),e}),e.on("application:save-config",function(e){return console.info("applicationPlugin - application:save-config"),console.log("applicationPlugin - application:save-config",e),console.log("applicationPlugin - application:save-config - return",e),e}),{getName:function(){return"applicationPlugin"}}};var i=n("bOdI"),o=n.n(i),r=n("RsIG"),a=n("X5n4"),s=n("kMyt"),c={APPLICATION_PREPARE_CONFIG:a.i}},YLfZ:function(e,t,n){"use strict";t.a=function(e,t){var n=e.options.data||x;if(!t&&e.options.hasAsyncData)return;e.options.hasAsyncData=!0,e.options.data=function(){var i=n.call(this);return this.$ssrContext&&(t=this.$ssrContext.asyncData[e.cid]),m()({},i,t)},e._Ctor&&e._Ctor.options&&(e._Ctor.options.data=e.options.data)},t.l=C,t.e=w,t.f=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],e.matched.map(function(e,n){return h()(e.instances).map(function(i){return t&&t.push(n),e.instances[i]})}))},t.c=y,t.k=P,n.d(t,"h",function(){return _}),n.d(t,"m",function(){return R}),t.i=function e(t,n){if(!t.length||n._redirected||n._errored)return d.a.resolve();return q(t[0],n).then(function(){return e(t.slice(1),n)})},t.j=q,t.d=function(e,t){var n=window.location.pathname;if("hash"===t)return window.location.hash.replace(/^#\//,"");e&&0===n.indexOf(e)&&(n=n.slice(e.length));return(n||"/")+window.location.search+window.location.hash},t.b=function(e,t){return function(e){for(var t=new Array(e.length),n=0;n1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],e.matched.map(function(e,n){return h()(e.components).map(function(i){return t&&t.push(n),e.components[i]})}))}function y(e,t){return Array.prototype.concat.apply([],e.matched.map(function(e,n){return h()(e.components).map(function(i){return t(e.components[i],e.instances[i],e,i,n)})}))}function P(e){var t,n=this;return d.a.all(y(e,(t=l()(c.a.mark(function e(t,i,o,r){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof t||t.options){e.next=4;break}return e.next=3,t();case 3:t=e.sent;case 4:return e.abrupt("return",o.components[r]=C(t));case 5:case"end":return e.stop()}},e,n)})),function(e,n,i,o){return t.apply(this,arguments)})))}window._nuxtReadyCbs=[],window.onNuxtReady=function(e){window._nuxtReadyCbs.push(e)};var k,S,_=(k=l()(c.a.mark(function e(t){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P(t);case 2:return e.abrupt("return",m()({},t,{meta:w(t).map(function(e){return e.options.meta||{}})}));case 3:case"end":return e.stop()}},e,this)})),function(e){return k.apply(this,arguments)}),R=(S=l()(c.a.mark(function e(t,n){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n.to?n.to:n.route,t.context){e.next=14;break}e.t0=!0,e.t1=t,e.t2=t.store,e.t3=n.payload,e.t4=n.error,e.t5={hubpressVersion:"1.0.0",baseUrl:"http://localhost:3000"},t.context={get isServer(){return console.warn("context.isServer has been deprecated, please use process.server instead."),!1},get isClient(){return console.warn("context.isClient has been deprecated, please use process.client instead."),!0},isStatic:e.t0,isDev:!1,isHMR:!1,app:e.t1,store:e.t2,payload:e.t3,error:e.t4,base:"..",env:e.t5},n.req&&(t.context.req=n.req),n.res&&(t.context.res=n.res),t.context.redirect=function(e,n,i){if(e){t.context._redirected=!0;var o=void 0===n?"undefined":a()(n);if("number"==typeof e||"undefined"!==o&&"object"!==o||(i=n||{},o=void 0===(n=e)?"undefined":a()(n),e=302),"object"===o&&(n=t.router.resolve(n).href),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(n))throw n=j(n,i),window.location.replace(n),new Error("ERR_REDIRECT");t.context.next({path:n,query:i,status:e})}},t.context.nuxtState=window.__NUXT__;case 14:if(t.context.next=n.next,t.context._redirected=!1,t.context._errored=!1,t.context.isHMR=!!n.isHMR,!n.route){e.next=22;break}return e.next=21,_(n.route);case 21:t.context.route=e.sent;case 22:if(t.context.params=t.context.route.params||{},t.context.query=t.context.route.query||{},!n.from){e.next=28;break}return e.next=27,_(n.from);case 27:t.context.from=e.sent;case 28:case"end":return e.stop()}},e,this)})),function(e,t){return S.apply(this,arguments)});function q(e,t){var n=void 0;return(n=2===e.length?new d.a(function(n){e(t,function(e,i){e&&t.error(e),n(i=i||{})})}):e(t))&&(n instanceof d.a||"function"==typeof n.then)||(n=d.a.resolve(n)),n}var M=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function $(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function D(e){return e.replace(/([.+*?=^!:()[\]|\/\\])/g,"\\$1")}function L(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function j(e,t){var n=void 0,i=e.indexOf("://");-1!==i?(n=e.substring(0,i),e=e.substring(i+3)):0===e.indexOf("//")&&(e=e.substring(2));var r=e.split("/"),a=(n?n+"://":"//")+r.shift(),s=r.filter(Boolean).join("/"),c=void 0;return 2===(r=s.split("#")).length&&(s=r[0],c=r[1]),a+=s?"/"+s:"",t&&"{}"!==o()(t)&&(a+=(2===e.split("?").length?"&":"?")+function(e){return h()(e).sort().map(function(t){var n=e[t];return null==n?"":Array.isArray(n)?n.slice().map(function(e){return[t,"=",e].join("")}).join("&"):t+"="+n}).filter(Boolean).join("&")}(t)),a+=c?"#"+c:""}},YMuy:function(e,t,n){"use strict";var i=n("6Ndi"),o=n("PJh5"),r=n.n(o);function a(e){return i.a.fireRequestRemoteSynchronization(e).then(function(e){return i.a.fireReceiveRemoteSynchronization(e)}).then(function(e){return i.a.fireRequestRenderingDocuments(e)}).then(function(e){return i.a.fireReceiveRenderingDocuments(e)}).then(function(e){return i.a.fireRequestLocalSynchronization(e)}).then(function(e){return i.a.fireReceiveLocalSynchronization(e)}).then(function(e){return i.a.fireRequestLocalPosts(e)}).then(function(e){return i.a.fireReceiveLocalPosts(e)}).then(function(e){return localStorage.setItem("hubpress:sync",r()().format()),e})}t.a={initialize:function(e){return i.a.fireRequestTheme(e).then(function(e){return i.a.fireReceiveTheme(e)}).then(function(e){return localStorage.getItem("hubpress:sync")?i.a.fireRequestLocalPosts(e).then(function(e){return i.a.fireReceiveLocalPosts(e)}):a(e)})},synchronize:a}},YoMZ:function(e,t,n){var i=n("7Rt3");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("9418214c",i,!0,{sourceMap:!1})},"bN/m":function(e,t,n){"use strict";function i(e,t){var n=void 0;return e.cname&&""!==e.cname?n=(!1===t?"":"http:")+"//"+e.cname:(n=(!1===t?"":"https:")+"//"+e.username+".github.io","master"!==e.branch&&(n=n+"/"+e.repositoryName)),n}function o(e,t){var n=e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"/$1/$2/$3/$4.html");return"page"===t&&(n=e.replace(/([\w-]*)\.adoc/,"/$1.html")),n}function r(e,t){var n=e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"$1/$2/$3/$4.html");return"page"===t&&(n=e.replace(/([\w-]*)\.adoc/,"$1.html")),n}function a(e){return e.match(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/)?"post":"page"}t.a=function(e){return{site:i(e.meta),hubpress:function(e,t){var n=t.protocol+"//"+t.host;if("localhost"===t.hostname)return n;t.host===e.username+".github.io"||t.host===e.username+".github.com"?"master"!==e.branch&&(n=n+"/"+e.repositoryName):"master"===e.branch||e.cname&&""!==e.cname||(n=n+"/"+e.repositoryName);return n}(e.meta,window.location),theme:i(e.meta,!1)+"/themes/"+e.theme.name,images:i(e.meta)+"/images",getContentUrl:o,getContentGhPath:r,getContentType:a,getPostUrl:function(e){return e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"/$1/$2/$3/$4.html")},getPostGhPath:function(e){return e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"$1/$2/$3/$4.html")},getPageUrl:function(e){return e.replace(/([\w-]*)\.adoc/,"/$1.html")},getPageGhPath:function(e){return e.replace(/([\w-]*)\.adoc/,"$1.html")},getSiteUrl:i}}},bxJ0:function(e,t,n){"use strict";t.a=function(e){e.on("application:request-config",function(e){return console.info("githubPlugin - application:request-config"),console.log("githubPlugin - application:request-config",e),l()("config.json?dt="+Date.now()).then(function(e){return e.json()}).then(function(t){return e.nextState.config=a()({},e.nextState.config,t),e.nextState.config.theme.name=e.nextState.config.theme.name.toLowerCase(),e})}),e.on("application:receive-config",function(e){console.info("githubPlugin - application:receive-config"),console.log("githubPlugin - application:receive-config",e);var t=Object(w.a)(e.nextState.config);return e.nextState.config=a()({},e.nextState.config,{urls:t}),e}),e.on("requestAuthentication",function(e){return console.info("githubPlugin - requestAuthentication"),console.log("githubPlugin - requestAuthentication",e),function(e){console.log("githubPlugin - login",e);var t=m.a.defer(),n=e.nextState.credentials,i=e.rootState.application.config.meta,o=(q=new h.a({auth:"basic",username:n.email,password:n.password,twoFactorCode:n.twoFactorCode})).getRepo(i.username,i.repositoryName),r=q.getAuthorization(),a=q.getUser(),s=void 0,c=void 0;return function(e){var t=m.a.defer();return e.getDetails(function(e,n){e?t.reject(e):t.resolve(n)}),t.promise}(o).then(function(e){s=e}).then(S(a)).then(function(e){return c=e,function(e){var t=m.a.defer();return console.log("getAuthorizations",e),e.listAuthorizations({},function(e,n){e?t.reject(e):(console.log("getAuthorizations list",n),t.resolve(n))}),t.promise}(r)}).then(function(e){return function(e,t,n){var i=m.a.defer(),o=-1,r=_(e);return t.forEach(function(e){e.note===r&&(o=e.id)}),-1!==o?n.deleteAuthorization(o,function(e,t){e?i.reject(e):i.resolve()}):i.resolve(),i.promise}(i.repositoryName,e,r)}).then(function(){return R(i.repositoryName,r)}).then(function(e){q=new h.a({auth:"oauth",token:e.token}),t.resolve({isAuthenticated:!0,credentials:{token:e.token},permissions:s.permissions,userInformations:c})}).catch(function(e){console.error("githubPlugin - login error",e,e.response);var n,o={type:"error",title:"Authentication"};e.response&&(n="required"===(e.response.headers&&e.response.headers["x-github-otp"]||"").split(";")[0]),n?(R(i.repositoryName,r),console.log("githubPlugin - OTP required : ",n),o.type="warning",o.content="A two-factor authentication code is needed.",o.otp=!0,t.resolve({isAuthenticated:!1,isTwoFactorCodeRequired:!0})):(console.error("githubPlugin - login error",e),t.reject({error:{code:e.error,message:"Unable to authenticate, check your credentials."}}))}),t.promise}(e).then(function(t){var n=a()({},e.nextState.credentials,t.credentials);return e.nextState=a()({},e.nextState,t,{credentials:n}),e})}),e.on("receiveSavedAuth",function(e){return console.info("githubPlugin - receiveSavedAuth"),console.log("githubPlugin - receiveSavedAuth",e),e.nextState.authentication.isAuthenticated&&(q=new h.a({auth:"oauth",token:e.nextState.authentication.credentials.token})),e}),e.on("hubpress:request-remote-synchronization",function(e){return console.info("githubPlugin - hubpress:request-remote-synchronization"),console.log("githubPlugin - hubpress:request-remote-synchronization",e),e.rootState.authentication.isAuthenticated?function(e){var t=e.application.config;console.log("Get posts",t);var n=t.meta,i=q.getRepo(n.username,n.repositoryName);return function(e,t){var n=m.a.defer();return e.getContents(t.meta.branch,"",!0,function(e,t){if(e)n.reject(e);else{var i=void 0;t.forEach(function(e){"_posts"===e.name&&(i=e.sha)}),n.resolve(i)}}),n.promise}(i,t).then(function(e){return function(e,t,n){var i=void 0;if(n===localStorage.postsSha)i=m.a.fcall(function(){return[]});else{var o=m.a.defer();e.getContents(t.meta.branch,"_posts",!0,function(e,t){e?o.reject(e):o.resolve(t)}),i=o.promise}return i}(i,t,e)}).then(function(e){return e.map(function(e){return b.a.pick(e,["name","path","sha","size"])})}).then(function(e){return function(e,t,n){var i=b.a.compact(n).map(function(e){return function(e,t){var n=m.a.defer(),i=e.meta,o=q.getRepo(i.username,i.repositoryName),r=e.urls.getContentType(t.name);return o.getSha(e.meta.branch,e.urls.getContentGhPath(t.name,r),function(e,i){if(e&&e.response&&404!==e.response.status)n.reject(e);else{var o=i?1:0,r=a()({},t,{published:o});n.resolve(r)}}),n.promise}(t,e)});return m.a.all(i)}(0,t,e)}).then(function(n){return function(e,t,n,i){var o=n.map(function(e){return M(t,e,i)});return m.a.all(o)}(0,t,n,e.authentication.userInformations)}).then(function(e){return function(e,t,n){var i=[];return n.forEach(function(n){var o=m.a.defer();i.push(o.promise),e.getContents(t.meta.branch,n.path,!0,function(e,t){var i;e?o.reject(e):(i=a()({},n,{content:t}),o.resolve(i))})}),m.a.all(i)}(i,t,e)})}(e.rootState).then(function(t){return e.nextState=a()({},e.nextState,{posts:t}),e}):e}),e.on("requestSaveRemotePost",function(e){console.info("githubPlugin - requestSaveRemotePost"),console.log("githubPlugin - requestSaveRemotePost",e);var t=e.rootState.application.config,n=e.nextState.post;return function(e,t){var n=e.meta,i=q.getRepo(n.username,n.repositoryName),o=void 0;if(t.original&&t.name!==t.original.name){var r=m.a.defer();o=r.promise;var a=e.meta.branch,s="_posts/"+t.original.name,c="_posts/"+t.name;i.move(a,s,c,function(n,o){if(n)r.reject(n);else if(t.published){var s=e.urls.getContentGhPath(t.original.name,t.original.type);(function(e,t,n){return function(e,t,n){var i=m.a.defer();return e.deleteFile(t,n,function(e,t){e?i.reject(e):(console.error(t),k=t.commit,i.resolve(t))}),i.promise}(e,t,n)})(i,a,s).then(function(e){r.resolve({post:t,sha:e})}).catch(function(e){r.reject(e)}).done()}else r.resolve({post:t,sha:o})})}else o=m()({post:t});return o}(t,n).then(function(e){return function(e,t){console.log("Write post",e,t);var n=e.meta,i=q.getRepo(n.username,n.repositoryName),o=n.branch,r="_posts/"+t.name,a="Update "+t.name,s=m.a.defer();return i.writeFile(o,r,t.content,a,function(n,i){n?s.reject(n):(t.original=b.a.omit(t,["original"]),t.original.url=e.urls.getContentUrl(t.original.name,t.original.type),t.original.path="_posts/"+t.original.name,t.original.sha=i,k=i.commit,console.info("Update lastCacheCommit",k),s.resolve(t))}),s.promise}(t,e.post)}).then(function(n){return M(t,n,e.rootState.authentication.userInformations)}).then(function(t){return e.nextState.post=t,e})}),e.on("requestSaveRemotePublishedElements",function(e){console.info("githubPlugin - requestSaveRemotePublishedElements"),console.log("githubPlugin - requestSaveRemotePublishedElements",e);var t=e.rootState.application.config.meta,n=q.getRepo(t.username,t.repositoryName),i=e.nextState.elementsToPublish.length,o=b.a.chunk(e.nextState.elementsToPublish,P);console.log("Writeall",e.nextState.elementsToPublish);var r=m.a.defer();return n.getBranch(t.branch,function(a,s){if(a){var c=m.a.defer();return r=c.promise,c.reject(a)}var u=0,l=o.reduce(function(e,o){return e.then(function(e){var r=m.a.defer(),a=o.map(function(e){return{path:e.path,mode:"100644",type:"blob",content:e.content}});return n.createTree(a,e,function(a,s){if(a)return r.reject(a);n.commit(e,s.sha,"Published "+(u+o.length)+"/"+i+" elements",function(e,i){if(e)return r.reject(e);u+=o.length,k=i,n.updateHead("heads/"+t.branch,i.sha,!1,function(e,t){if(console.log("updateHead",e,t),e)return r.reject(e);r.resolve(i.sha)})})}),r.promise})},m()(function(e,t){if(console.error(e,t),!t)return e.sha;var n=C()(e.committer.date);return C()(t.committer.date).isAfter(n)?t.sha:e.sha}({committer:s.commit.commit.committer,sha:s.commit.sha},k)));l.then(function(t){r.resolve(e)}).catch(function(e){r.reject(e)})}),r.promise}),e.on("requestDeleteRemotePost",function(e){console.info("githubPlugin - requestDeleteRemotePost"),console.log("githubPlugin - requestDeleteRemotePost",e);var t=m.a.defer(),n=e.rootState.application.config,i=n.meta,o=q.getRepo(i.username,i.repositoryName),r=e.nextState.post.original.path;return o.deleteFile(i.branch,r,function(n,i){n&&n.response&&404!==n.response.status?t.reject(n):(console.error("requestDeleteRemotePost",i),k=i.commit,t.resolve(e))}).catch(function(n){n&&n.response&&404===n.response.status&&t.resolve(e)}),t.promise}),e.on("requestDeleteRemotePublishedPost",function(e){console.info("githubPlugin - requestDeleteRemotePublishedPost"),console.log("githubPlugin - requestDeleteRemotePublishedPost",e);var t=m.a.defer(),n=e.rootState.application.config,i=n.meta,o=q.getRepo(i.username,i.repositoryName),r=n.urls.getContentGhPath(e.nextState.post.original.name,e.nextState.post.original.type);return o.deleteFile(i.branch,r,function(n,i){n?t.reject(n):(console.error("requestDeleteRemotePublishedPost",i),k=i.commit,t.resolve(e))}),t.promise}),e.on("application:request-save-config",function(e){console.info("githubPlugin - application:request-save-config"),console.log("githubPlugin - application:request-save-config",e);var t=e.nextState.application;return function(e){console.log("Write config",e);var t=m.a.defer(),n=e.meta,i=q.getRepo(n.username,n.repositoryName),r=n.branch;return i.writeFile(r,"hubpress/config.json",o()(e,null,2),"Update configuration file",function(e,n){e?t.reject(e):(k=n.commit,console.info("Update lastCacheCommit",k),t.resolve(n))}),t.promise}(t.config).then(function(e){return function(e){console.log("Github manageCname - ",e);var t=e.meta,n=q.getRepo(t.username,t.repositoryName),i=m.a.defer();t.cname&&""!==t.cname?(console.info("SettingsService - saveAndPublish save CNAME"),n.writeFile(t.branch,"CNAME",t.cname,"Update CNAME with "+t.cname,function(e,t){e?i.reject(e):(k=t.commit,console.info("Update lastCacheCommit",k),i.resolve(t))})):(console.info("SettingsService - saveAndPublish delete CNAME"),n.deleteFile(t.branch,"CNAME",function(e,t){e&&"not found"!==e?i.reject(e):i.resolve(t)}).then(function(e){console.log("SHA after delete",e),i.resolve(e)}).catch(function(e){404!==e.response.status?i.reject(e):i.resolve()}));return i.promise}(t.config)}).then(function(t){return e})}),e.on("receiveRenderingPost",function(e){return console.info("githubPlugin - receiveRenderingPost"),console.log("githubPlugin - receiveRenderingPost",e),e}),e.on("application:initialize-plugins",function(e){console.info("githubPlugin - application:initialize-plugins"),console.log("githubPlugin - application:initialize-plugins",e);var t="put your repository name here"===e.rootState.application.config.meta.repositoryName||"put your username here"===e.rootState.application.config.meta.username;return e.nextState.application.requireInitilisation=t,e.nextState.application.config.initialisationConfigComponent=y.a,e})};var i=n("mvHQ"),o=n.n(i),r=n("woOf"),a=n.n(r),s=n("6ltY"),c=n.n(s),u=n("j9g7"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=n("73D8"),h=n.n(f),g=n("/Luh"),m=n.n(g),v=n("M4fF"),b=n.n(v),x=n("PJh5"),C=n.n(x),w=n("bN/m"),y=n("IBrK"),P=50,k=null;function S(e){return function(){var t=m.a.defer();return e.getProfile(function(e,n){e?t.reject(e):t.resolve(b.a.pick(n,["login","id","name","location","blog","avatar_url","bio"]))}),t.promise}}function _(e){return d()(e+"-"+c.a.name+"-"+c.a.os)}function R(e,t){var n=m.a.defer(),i={scopes:["public_repo"],note:_(e)};return t.createAuthorization(i,function(e,t){e?n.reject(e):n.resolve(t)}),n.promise}var q=void 0;function M(e,t,n){var i=m.a.defer(),o=e.meta,r=q.getRepo(o.username,o.repositoryName);return console.log("getPostAuthor",t),r.listCommits({sha:e.meta.branch,path:t.original&&t.original.path||t.path},function(e,o){if(e&&404!==e.error)i.reject(e);else{var r=o[o.length-1].author;if(r&&r.login!==n.login){S(q.getUser(r.login))().then(function(e){r=a()({},e);var n=a()({},t,{author:r});i.resolve(n)}).catch(function(e){return i.reject(e)})}else{r=a()({},n);var s=a()({},t,{author:r});i.resolve(s)}}}),i.promise}},cOI0:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,'.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,.5)}.cm-animate-fat-cursor,.cm-fat-cursor-mark{-webkit-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;background-color:#7e7}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;-webkit-font-feature-settings:"calt";font-feature-settings:"calt";font-variant-ligatures:contextual}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-webkit-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}',""])},cmzl:function(e,t,n){"use strict";var i={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"nuxt-progress",style:{width:this.percent+"%",height:this.height,"background-color":this.canSuccess?this.color:this.failedColor,opacity:this.show?1:0}})},staticRenderFns:[]};t.a=i},ct3O:function(e,t,n){"use strict";var i=n("FIB3"),o=n("FdPX");var r=function(e){n("wGIl")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},"d/OL":function(e,t,n){"use strict";t.a=function(e){e.on("hubpress:request-rendering-documents",function(e){console.info("asciidocPlugin - hubpress:request-rendering-documents"),console.log("asciidocPlugin - hubpress:request-rendering-documents",e);var t=e.rootState.application.config,n=(e.nextState.posts||[]).map(function(e){var n=o()({},e,h(t,e.content),{content:e.content}),i=c.a.pick(n,"attributes","author","html","tags","content","name","path","sha");n.title=i.title=i.attributes.doctitle,n.image=i.image=i.attributes["hp-image"],n.type=i.type=i.attributes["hp-type"],n.tags=i.tags=g(i.attributes),n.url=i.url=m(t,n.type,i.name);var r=o()({},n,{original:i});return n.type&&"post"!==n.type||(r.original.published_at=r.published_at=i.name.split("-").slice(0,3).join("-")),r});return e.nextState.posts=n,e}),e.on("requestRenderingPost",function(e){console.info("asciidocPlugin - requestRenderingPost"),console.log("asciidocPlugin - requestRenderingPost",e);var t=h(e.rootState.application.config,e.nextState.post.content);e.nextState.post=o()({},e.nextState.post,t),e.nextState.post.title=t.attributes.doctitle,e.nextState.post.image=t.attributes["hp-image"],e.nextState.post.type=t.attributes["hp-type"],e.nextState.post.tags=g(t.attributes),e.nextState.post.published_at=t.attributes.published_at||e.nextState.post.published_at||l()().format("YYYY-MM-DD");var n=t.attributes["hp-alt-title"];return e.nextState.post.type&&"post"!==e.nextState.post.type?e.nextState.post.name=d()(""+(n||e.nextState.post.title))+".adoc":e.nextState.post.name=d()(e.nextState.post.published_at+"-"+(n||e.nextState.post.title))+".adoc",e.nextState.post.url=m(e.rootState.application.config,e.nextState.post.type,e.nextState.post.name),e})};var i=n("woOf"),o=n.n(i),r=n("rzLr"),a=n.n(r),s=n("M4fF"),c=n.n(s),u=n("PJh5"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=a()(!1,window.XMLHttpRequest);function h(e,t){var n={doctype:"article",backend:"html5",safe:"unsafe",attributes:["showtitle!","allow-uri-read","imagesdir="+e.urls.site+"/images","icons=font"]},i=function(e){var t=e.split("pass::[more]");return{excerpt:t[0],full:t.join("")}}(t.replace(/gist::([0-9]*)\[(lines=[0-9]*\.\.[0-9]*)?,?(type=([\w.]*))?,?(file=([\w.]*))?\]/g,"[source,$4]\n----\ninclude::https://gist.githubusercontent.com/raw/$1/$6[$2]\n----\n")),o=f.load(i.excerpt,n),r=f.load(i.full,n);return{attributes:r.getAttributes(),excerpt:o.$convert(),html:r.$convert()}}function g(e){return e["hp-tags"]&&e["hp-tags"].split(",").map(function(e){return e.trim()}).filter(function(e){return""!==e})}function m(e,t,n){return e.urls.getContentUrl(n,t)}},dCDI:function(e,t,n){"use strict";(function(e,t){var i,o=n("pFYg"),r=n.n(o);i=function(e){var t;(t=e).overlayMode=function(e,n,i){return{startState:function(){return{base:t.startState(e),overlay:t.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(i){return{base:t.copyState(e,i.base),overlay:t.copyState(n,i.overlay),basePos:i.basePos,baseCur:null,overlayPos:i.overlayPos,overlayCur:null}},token:function(t,o){return(t!=o.streamSeen||Math.min(o.basePos,o.overlayPos)"},redirect:"/dashboard",meta:{auth:!0},children:t.nextState.routes.map(function(e){return console.log(e),e.entries}).reduce(function(e,t){return e.concat(t)},[])}]},i=new r.default(n);return i.routes=t.nextState.routes,i.beforeEach(function(e,t,n){var i=Object(a.default)();e.matched.some(function(e){return e.meta.auth})?i.state.authentication.isAuthenticated?n():n({path:"/login",query:{redirect:e.fullPath}}):n()}),i};var i=n("I3G/"),o=n.n(i),r=n("/ocq"),a=n("fbRD"),s=n("LEOq"),c=n.n(s),u=(n("7cn8"),n("YG9q")),l=n("QMmS"),p=n("3oxy"),d=n("H8Oa"),f=n("bxJ0"),h=n("WiUJ"),g=n("H1PK"),m=n("d/OL"),v=(n("Y2j8"),n("1AqL")),b=n("tLh+");console.log("router =============="),console.log("Router"),o.a.use(r.default),c.a.register(u.a,l.b,p.a,d.a,f.a,h.a,g.a,m.a,v.a,b.a),console.log("Registered plugins",c.a.list())},oS0V:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui center aligned grid"},[n("div",{staticClass:"ui middle aligned grid"},[e.requireInitilisation?n("div",{staticClass:"column"},[n("div",{staticClass:"ui segment"},[n("initialisation-component",{tag:"component"})],1)]):e._e(),e.requireInitilisation?e._e():n("div",{staticClass:"column",attrs:{id:"loginForm"}},[n("div",{staticClass:"ui segment"},[n("img",{staticClass:"image",attrs:{src:"https://hubpress.github.io/img/freeze/logo.png"}}),n("h2",{staticClass:"ui header"},[e._v("\n Welcome!\n ")]),n("div",{staticClass:"content"}),n("form",{staticClass:"ui medium form",on:{submit:function(t){t.preventDefault(),e.login({email:e.email,password:e.password})}}},[n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"user icon"}),n("input",{attrs:{type:"text",name:"email",placeholder:"Username or e-mail address"},domProps:{value:e.email},on:{input:e.updateEmail}})])]),n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"lock icon"}),n("input",{attrs:{type:"password",name:"password",placeholder:"Password"},domProps:{value:e.password},on:{input:e.updatePassword}})])]),e.isTwoFactorCodeRequired?n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"key icon"}),n("input",{attrs:{type:"text",name:"twoFactorCode",placeholder:"Two factor code"},domProps:{value:e.twoFactorCode},on:{input:e.updateTwoFactorCode}})])]):e._e(),n("button",{staticClass:"ui fluid large submit button",attrs:{type:"submit",name:"button"}},[e._v("Login")])]),e._m(0)])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui message"},[this._v("\n If you have questions about how to use HubPress, "),t("a",{attrs:{href:"https://hubpress.gitbooks.io/hubpress-knowledgebase/content/"}},[this._v("here is the right place.")])])}]};t.a=i},oz2E:function(e,t,n){"use strict";t.a={name:"dashboard",beforeCreate:function(){console.log("dashboard beforeCreate")},created:function(){console.log("dashboard created")}}},pSdL:function(e,t,n){var i=n("LnjV");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("2e903ce0",i,!0,{sourceMap:!1})},pyJH:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{},[n("h4",{staticClass:"ui dividing header"},[e._v("Informations")]),n("div",{staticClass:"field"},[n("label",[e._v("Title")]),n("input",{attrs:{type:"text",name:"hubpress-title",placeholder:"Title"},domProps:{value:e.site.title}})]),n("div",{staticClass:"field"},[n("label",[e._v("Description")]),n("input",{attrs:{type:"text",name:"hubpress-description",placeholder:"Description"},domProps:{value:e.site.description}})]),n("div",{staticClass:"field"},[n("label",[e._v("Logo")]),n("input",{attrs:{type:"text",name:"hubpress-logo",placeholder:"Logo"},domProps:{value:e.site.logo}})]),n("div",{staticClass:"field"},[n("label",[e._v("Cover image")]),n("input",{attrs:{type:"text",name:"hubpress-cover-image",placeholder:"Cover image"},domProps:{value:e.site.cover}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Rendering")]),n("div",{staticClass:"field"},[n("label",[e._v("Live preview render delay (ms)")]),n("input",{attrs:{type:"text",name:"hubpress-render-delay",placeholder:"300"},domProps:{value:e.meta.delay}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Generation")]),n("div",{staticClass:"field"},[n("label",[e._v("Theme")]),n("input",{attrs:{type:"text",name:"hubpress-theme",placeholder:"Theme"},domProps:{value:e.theme.name}})]),n("div",{staticClass:"field"},[n("label",[e._v("Posts per page")]),n("input",{attrs:{type:"text",name:"hubpress-posts-per-page",placeholder:"Posts per page"},domProps:{value:e.site.postsPerPage}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Services")]),n("div",{staticClass:"field"},[n("label",[e._v("Google analytics")]),n("input",{attrs:{type:"text",name:"hubpress-ga",placeholder:"Google analytics"},domProps:{value:e.site.googleAnalytics}})]),n("div",{staticClass:"field"},[n("label",[e._v("Disqus shortname")]),n("input",{attrs:{type:"text",name:"hubpress-disqus",placeholder:"Disqus shortname"},domProps:{value:e.site.disqus}})])])},staticRenderFns:[]};t.a=i},qZPA:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".html-rendering,.published-preview{min-width:100%;height:calc(100vh - 47px);min-height:calc(100vh - 47px)}",""])},qcny:function(e,t,n){"use strict";n.d(t,"b",function(){return D});var i=n("Xxa5"),o=n.n(i),r=n("//Fk"),a=(n.n(r),n("C4MV")),s=n.n(a),c=n("woOf"),u=n.n(c),l=n("Dd8w"),p=n.n(l),d=n("exGp"),f=n.n(d),h=n("MU8w"),g=(n.n(h),n("I3G/")),m=n.n(g),v=n("p3jY"),b=n.n(v),x=n("mtxM"),C=n("0F0d"),w=n("HBB+"),y=n("WRRc"),P=n("ct3O"),k=n("Hot+"),S=n("yTq1"),_=n("YLfZ"),R=n("J2Ti"),q=n("zQW4"),M=n("6hdJ");n.d(t,"a",function(){return P.a});var $,D=($=f()(o.a.mark(function e(t){var n,i,r,a,c,l,d;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(x.a)(t),(i=Object(R.a)(t)).$router=n,r=p()({router:n,store:i,nuxt:{defaultTransition:L,transitions:[L],setTransitions:function(e){return Array.isArray(e)||(e=[e]),e=e.map(function(e){return e=e?"string"==typeof e?u()({},L,{name:e}):u()({},L,e):L}),this.$options.nuxt.transitions=e,e},err:null,dateErr:null,error:function(e){e=e||null,r.context._errored=!!e,"string"==typeof e&&(e={statusCode:500,message:e});var n=this.nuxt||this.$options.nuxt;return n.dateErr=Date.now(),n.err=e,t&&(t.nuxt.error=e),e}}},S.a),i.app=r,a=t?t.next:function(e){return r.router.push(e)},c=void 0,t?c=n.resolve(t.url).route:(l=Object(_.d)(n.options.base),c=n.resolve(l).route),e.next=10,Object(_.m)(r,{route:c,next:a,error:r.nuxt.error.bind(r),store:i,payload:t?t.payload:void 0,req:t?t.req:void 0,res:t?t.res:void 0,beforeRenderFns:t?t.beforeRenderFns:void 0});case 10:if(d=function(e,t){if(!e)throw new Error("inject(key, value) has no key provided");if(!t)throw new Error("inject(key, value) has no value provided");r[e="$"+e]=t,i[e]=r[e];var n="__nuxt_"+e+"_installed__";m.a[n]||(m.a[n]=!0,m.a.use(function(){m.a.prototype.hasOwnProperty(e)||s()(m.a.prototype,e,{get:function(){return this.$root.$options[e]}})}))},window.__NUXT__&&window.__NUXT__.state&&i.replaceState(window.__NUXT__.state),"function"!=typeof q.a){e.next=15;break}return e.next=15,Object(q.a)(r.context,d);case 15:if("function"!=typeof M.a){e.next=18;break}return e.next=18,Object(M.a)(r.context,d);case 18:e.next=21;break;case 21:return e.abrupt("return",{app:r,router:n,store:i});case 22:case"end":return e.stop()}},e,this)})),function(e){return $.apply(this,arguments)});m.a.component(C.a.name,C.a),m.a.component(w.a.name,w.a),m.a.component(y.a.name,y.a),m.a.component(k.a.name,k.a),m.a.use(b.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var L={name:"page",mode:"out-in",appear:!0,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"}},r6qT:function(e,t,n){var i=n("HEYa");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("2b9275f1",i,!0,{sourceMap:!1})},"tLh+":function(e,t,n){"use strict";t.a=function(e){e.on("requestGenerateIndex",function(e){console.info("rssPlugin - requestGenerateIndex"),console.log("rssPlugin - requestGenerateIndex",e);var t=e.rootState.application.config.site||{},n=e.rootState.application.config.urls.site||"",i=e.nextState.publishedPosts||[],r=new o.a({title:t.title||"",description:t.description||"",feed_url:n+"/rss/",site_url:n,image_url:t.cover,ttl:"60"});i.forEach(function(e){r.item({title:e.title,description:e.html,url:""+n+e.url,categories:e.tags,author:e.author.name,date:e.published_at})});var a=r.xml(),s=[];return s.push({name:"RSS",path:"rss/index.xml",content:a,message:"Publish rss feed"}),e.nextState.elementsToPublish=(e.nextState.elementsToPublish||[]).concat(s),e})};var i=n("DVIz"),o=n.n(i)},unZF:function(e,t,n){"use strict";var i=n("BO1k"),o=n.n(i),r=n("GfDd"),a=r.keys();function s(e){var t=r(e);return t.default?t.default:t}var c={},u=!0,l=!1,p=void 0;try{for(var d,f=o()(a);!(u=(d=f.next()).done);u=!0){var h=d.value;c[h.replace(/^\.\//,"").replace(/\.(js|ts)$/,"")]=s(h)}}catch(e){l=!0,p=e}finally{try{!u&&f.return&&f.return()}finally{if(l)throw p}}t.a=c},vKgl:function(e,t,n){var i=n("EgsU");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("44921a73",i,!0,{sourceMap:!1})},vXEZ:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".nuxt-progress{position:fixed;top:0;left:0;right:0;height:2px;width:0;-webkit-transition:width .2s,opacity .4s;transition:width .2s,opacity .4s;opacity:1;background-color:#efc14e;z-index:999999}",""])},wGIl:function(e,t,n){var i=n("m8kW");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("6bc7b368",i,!0,{sourceMap:!1})},wQtD:function(e,t,n){"use strict";t.a={name:"navigation-settings",data:function(){return{newNav:{label:"",url:""},navigation:this.$store.state.application.config.navigation||[]}},computed:{isNotValid:function(){return""===this.newNav.label.trim()||""===this.newNav.url.trim()}},methods:{remove:function(e){this.navigation.splice(e,1)},clear:function(){this.newNav={label:"",url:""}},add:function(e){this.navigation.push(e),this.clear()}}}},wrAo:function(e,t,n){"use strict";t.a={name:"hubpress-settings-social",computed:{social:function(){return this.$store.state.application.config.socialnetwork||{}}}}},yJpT:function(e,t,n){var i=n("j9sj");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("33615082",i,!0,{sourceMap:!1})},yTq1:function(e,t,n){"use strict";var i=n("//Fk"),o=n.n(i),r=n("I3G/"),a=n.n(r),s=n("F88d"),c=n("XSDV"),u=(n.n(c),{_default:function(){return n.e(0).then(n.bind(null,"Ma2J")).then(function(e){return e.default||e})}}),l={};t.a={head:{title:"Hubpress: A web application to build your Blog",meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{hid:"description",name:"description",content:"Nuxt.js project"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"},{rel:"stylesheet",href:"../static/semantic/semantic.min.css"}],style:[],script:[]},render:function(e,t){var n=e("nuxt-loading",{ref:"loading"}),i=e(this.layout||"nuxt");return e("div",{domProps:{id:"__nuxt"}},[n,e("transition",{props:{name:"layout",mode:"out-in"}},[e("div",{domProps:{id:"__layout"},key:this.layoutName},[i])])])},data:function(){return{layout:null,layoutName:""}},beforeCreate:function(){a.a.util.defineReactive(this,"nuxt",this.$options.nuxt)},created:function(){a.a.prototype.$nuxt=this,"undefined"!=typeof window&&(window.$nuxt=this),this.error=this.nuxt.error},mounted:function(){this.$loading=this.$refs.loading},watch:{"nuxt.err":"errorChanged"},methods:{errorChanged:function(){this.nuxt.err&&this.$loading&&(this.$loading.fail&&this.$loading.fail(),this.$loading.finish&&this.$loading.finish())},setLayout:function(e){e&&l["_"+e]||(e="default"),this.layoutName=e;var t="_"+e;return this.layout=l[t],this.layout},loadLayout:function(e){var t=this;e&&(u["_"+e]||l["_"+e])||(e="default");var n="_"+e;return l[n]?o.a.resolve(l[n]):u[n]().then(function(e){return l[n]=e,delete u[n],l[n]}).catch(function(e){if(t.$nuxt)return t.$nuxt.error({statusCode:500,message:e.message})})}},components:{NuxtLoading:s.a}}},yUYC:function(e,t,n){"use strict";var i=n("I3G/"),o=n.n(i);t.a={name:"nuxt-loading",data:function(){return{percent:0,show:!1,canSuccess:!0,duration:5e3,height:"2px",color:"#3B8070",failedColor:"red"}},methods:{start:function(){var e=this;return this.show=!0,this.canSuccess=!0,this._timer&&(clearInterval(this._timer),this.percent=0),this._cut=1e4/Math.floor(this.duration),this._timer=setInterval(function(){e.increase(e._cut*Math.random()),e.percent>95&&e.finish()},100),this},set:function(e){return this.show=!0,this.canSuccess=!0,this.percent=Math.floor(e),this},get:function(){return Math.floor(this.percent)},increase:function(e){return this.percent=this.percent+Math.floor(e),this},decrease:function(e){return this.percent=this.percent-Math.floor(e),this},finish:function(){return this.percent=100,this.hide(),this},pause:function(){return clearInterval(this._timer),this},hide:function(){var e=this;return clearInterval(this._timer),this._timer=null,setTimeout(function(){e.show=!1,o.a.nextTick(function(){setTimeout(function(){e.percent=0},200)})},500),this},fail:function(){return this.canSuccess=!1,this}}}},ys1n:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".grid[data-v-94154cf6]{margin:0;height:100%;background-color:#dadada}#loginForm.column[data-v-94154cf6]{max-width:450px;text-align:center}.column[data-v-94154cf6]{max-width:750px}",""])},zQW4:function(e,t,n){"use strict";for(var i=n("woOf"),o=n.n(i),r=n("//Fk"),a=n.n(r),s=n("BO1k"),c=n.n(s),u=n("mtWM"),l=n.n(u),p={setHeader:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",i=!0,o=!1,r=void 0;try{for(var a,s=c()(Array.isArray(n)?n:[n]);!(i=(a=s.next()).done);i=!0){var u=a.value;if(!t)return void delete this.defaults.headers[u][e];this.defaults.headers[u][e]=t}}catch(e){o=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw r}}},setToken:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",i=e?(t?t+" ":"")+e:null;this.setHeader("Authorization",i,n)},onRequest:function(e){this.interceptors.request.use(function(t){return e(t)||t})},onResponse:function(e){this.interceptors.response.use(function(t){return e(t)||t})},onRequestError:function(e){this.interceptors.request.use(void 0,function(t){return e(t)||a.a.reject(t)})},onResponseError:function(e){this.interceptors.response.use(void 0,function(t){return e(t)||a.a.reject(t)})},onError:function(e){this.onRequestError(e),this.onResponseError(e)}},d=function(e){p["$"+e]=function(){return this[e].apply(this,arguments).then(function(e){return e&&e.data})}},f=["request","delete","get","head","options","post","put","patch"],h=0;h1&&(r=(e.path||"")+"page/"+i+"/index.html"),i>1&&(v=i-1),ii-1||g+1===t.length){var y=l.a.template(e.template,{pagination:{prev:v,next:m,page:i,pages:h,total:t.length,limit:u},context:"index"===e.template&&0===v?"home":e.template,posts:a,tag:e.tag,author:e.author,title:o.title,description:o.description,socialnetwork:p,relativeUrl:""},{config:n,theme:e.opts.nextState.theme});s.push({name:"page-"+i,path:r,content:y,message:"Publish page-"+i+" "+e.template}),a=[],i++}}),e.opts.nextState.elementsToPublish=(e.opts.nextState.elementsToPublish||[]).concat(s),e.opts}}]),e}();t.a=new f},Btpu:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".CodeMirror-sizer{padding-top:2em;font-size:18.285px;font-size:1.14285714rem;max-width:750px!important;line-height:1.5;display:block}@media only screen and (max-width:767px){.CodeMirror-sizer{width:auto!important;margin-left:1em!important;margin-right:1em!important}}@media only screen and (min-width:768px){.CodeMirror-sizer{margin-left:auto!important;margin-right:auto!important}}.CodeMirror-gutter-wrapper{display:none!important}.cm-header{font-size:1.8em;font-weight:700}.cm-header-2{font-size:1.6em;font-weight:700}.cm-header-3{font-size:1.45em;font-weight:700}.cm-header-4{font-size:1.3em;font-weight:700}.cm-header-5{font-size:1.15em;font-weight:700}.cm-header-6{font-size:1.05em;font-weight:700}.post-editor{padding-top:47px}.CodeMirror,.post-container,.post-editor,.post-editor .ui.grid,.post-editor .ui.grid .column{height:100%;min-height:100%}.post-editor .ui.grid>.row{padding-top:0;padding-bottom:0}.post-editor .ui.grid.light>.row{background-color:#f5f5f5;color:#202020}.post-editor .ui.grid.light>.row .ui.header{color:#202020}.post-editor .ui.grid.light>.row a{color:#aa759f}.post-editor .ui.grid.dark>.row,.post-editor .ui.grid.dark>.row .ui.header{background-color:#3f3f3f;color:#dcdccc}.post-editor .ui.grid.dark>.row .ui.header{color:#dcdccc}.post-editor .ui.grid.dark>.row a{color:#dcdcaa}.post-editor .ui.grid{padding-top:0;padding-bottom:0;margin:0}.post-editor .ui.grid .column{padding-top:0;margin-top:0;padding-bottom:0;margin-bottom:0}.vue-codemirror.container{min-height:100%;height:100%}#asciidoc-content,#asciidoc-preview{height:calc(100vh - 47px);min-height:calc(100vh - 47px)}#asciidoc-preview{overflow-y:auto;padding-top:2em;font-size:1.2em;font-family:Menlo,Monaco,Consolas,Courier New,monospace;word-wrap:break-word}#asciidoc-preview>div{max-width:750px!important;margin:auto}#asciidoc-preview>div .ui.header{font-family:Menlo,Monaco,Consolas,Courier New,monospace}#asciidoc-preview .content pre{background-color:#dcdccc;color:#2e2e2e;padding:10px;border-radius:5px;overflow:auto}#asciidoc-preview .paragraph{padding:.75em 0}#asciidoc-preview img{width:100%;max-width:100%}@media screen and (max-width:992px){#asciidoc-content{display:block}#asciidoc-content.is-preview-visible,#asciidoc-preview{display:none}#asciidoc-preview.is-preview-visible{display:block}}.item .ui.icon .rocket.unpublish{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.cm-s-zenburn.CodeMirror .CodeMirror-gutters{background:#3f3f3f!important}.cm-s-zenburn.CodeMirror .CodeMirror-foldgutter-open,.CodeMirror-foldgutter-folded{color:#999}.cm-s-zenburn.CodeMirror .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-zenburn.CodeMirror{background-color:#3f3f3f;color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-builtin{color:#dcdccc;font-weight:700}.cm-s-zenburn.CodeMirror span.cm-comment{color:#7f9f7f}.cm-s-zenburn.CodeMirror span.cm-keyword{color:#f0dfaf;font-weight:700}.cm-s-zenburn.CodeMirror span.cm-atom{color:#bfebbf}.cm-s-zenburn.CodeMirror span.cm-def{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-variable{color:#dfaf8f}.cm-s-zenburn.CodeMirror span.cm-variable-2{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-string,.cm-s-zenburn.CodeMirror span.cm-string-2{color:#cc9393}.cm-s-zenburn.CodeMirror span.cm-number{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-tag{color:#93e0e3}.cm-s-zenburn.CodeMirror span.cm-attribute,.cm-s-zenburn.CodeMirror span.cm-property{color:#dfaf8f}.cm-s-zenburn.CodeMirror span.cm-qualifier{color:#7cb8bb}.cm-s-zenburn.CodeMirror span.cm-meta{color:#f0dfaf}.cm-s-zenburn.CodeMirror span.cm-header,.cm-s-zenburn.CodeMirror span.cm-operator{color:#f0efd0}.cm-s-zenburn.CodeMirror span.CodeMirror-matchingbracket{-webkit-box-sizing:border-box;box-sizing:border-box;background:transparent;border-bottom:1px solid}.cm-s-zenburn.CodeMirror span.CodeMirror-nonmatchingbracket{border-bottom:1px solid;background:none}.cm-s-zenburn.CodeMirror .CodeMirror-activeline,.cm-s-zenburn.CodeMirror .CodeMirror-activeline-background{background:#000}.cm-s-zenburn.CodeMirror div.CodeMirror-selected{background:#545454}.cm-s-zenburn.CodeMirror .CodeMirror-focused div.CodeMirror-selected{background:#4f4f4f}.cm-s-base16-light.CodeMirror{background:#f5f5f5;color:#202020}.cm-s-base16-light.CodeMirror div.CodeMirror-selected{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-line::selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span::selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span>span::selection{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-line::-moz-selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span::-moz-selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span>span::-moz-selection{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-gutters{background:#f5f5f5;border-right:0}.cm-s-base16-light.CodeMirror .CodeMirror-guttermarker{color:#ac4142}.cm-s-base16-light.CodeMirror .CodeMirror-guttermarker-subtle,.cm-s-base16-light.CodeMirror .CodeMirror-linenumber{color:#b0b0b0}.cm-s-base16-light.CodeMirror .CodeMirror-cursor{border-left:1px solid #505050}.cm-s-base16-light.CodeMirror span.cm-comment{color:#8f5536}.cm-s-base16-light.CodeMirror span.cm-atom,.cm-s-base16-light.CodeMirror span.cm-number{color:#aa759f}.cm-s-base16-light.CodeMirror span.cm-attribute,.cm-s-base16-light.CodeMirror span.cm-property{color:#90a959}.cm-s-base16-light.CodeMirror span.cm-keyword{color:#ac4142}.cm-s-base16-light.CodeMirror span.cm-string{color:#f4bf75}.cm-s-base16-light.CodeMirror span.cm-variable{color:#90a959}.cm-s-base16-light.CodeMirror span.cm-variable-2{color:#6a9fb5}.cm-s-base16-light.CodeMirror span.cm-def{color:#d28445}.cm-s-base16-light.CodeMirror span.cm-bracket{color:#202020}.cm-s-base16-light.CodeMirror span.cm-tag{color:#ac4142}.cm-s-base16-light.CodeMirror span.cm-link{color:#aa759f}.cm-s-base16-light.CodeMirror span.cm-error{background:#ac4142;color:#505050}.cm-s-base16-light.CodeMirror .CodeMirror-activeline-background{background:#dddcdc}.cm-s-base16-light.CodeMirror .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}",""])},E1SC:function(e,t,n){"use strict";var o=n("SUis"),i=n("7Fxy");var r=function(e){n("vKgl")},a=n("VU/8")(o.a,i.a,!1,r,null,null);t.a=a.exports},EgsU:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".posts-container .menu{min-height:47px}.posts-container{height:100%;overflow:auto}.posts.ui.container{padding-top:60px}.image.cover>div{width:100%;height:200px;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}@media screen and (max-width:622px){.posts.ui.container .ui.card .image.cover{display:none}}",""])},F6cG:function(e,t,n){var o=n("rO0h");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("1a844b6c",o,!0,{sourceMap:!1})},F6eF:function(e,t,n){"use strict";var o=n("7t+N"),i=n.n(o);t.a={name:"initialise-configuration",data:function(){return{username:"",repositoryName:"hubpress.io",branch:"master",cname:void 0}},mounted:function(){i()("div.dropdown").dropdown()},computed:{isValid:function(){return""!=this.username.trim()&&""!=this.repositoryName.trim()}},methods:{submit:function(){var e={username:this.username,repositoryName:this.repositoryName,branch:this.branch,cname:this.cname};this.$store.dispatch("application:save-startup-config",e)}}}},F88d:function(e,t,n){"use strict";var o=n("yUYC"),i=n("cmzl");var r=function(e){n("0xYM")},a=n("VU/8")(o.a,i.a,!1,r,null,null);t.a=a.exports},FIB3:function(e,t,n){"use strict";t.a={name:"nuxt-error",props:["error"],head:function(){return{title:this.message,meta:[{name:"viewport",content:"width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"}]}},computed:{statusCode:function(){return this.error&&this.error.statusCode||500},message:function(){return this.error.message||"Error"}}}},FdPX:function(e,t,n){"use strict";var o={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"__nuxt-error-page"},[t("div",{staticClass:"error"},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"90",height:"90",fill:"#DBE1EC",viewBox:"0 0 48 48"}},[t("path",{attrs:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}})]),t("div",{staticClass:"title"},[this._v(this._s(this.message))]),404===this.statusCode?t("p",{staticClass:"description"},[t("nuxt-link",{staticClass:"error-link",attrs:{to:"/"}},[this._v("Back to the home page")])],1):this._e(),this._m(0)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"logo"},[t("a",{attrs:{href:"https://nuxtjs.org",target:"_blank",rel:"noopener"}},[this._v("Nuxt.js")])])}]};t.a=o},FoP8:function(module,__webpack_exports__,__webpack_require__){"use strict";function applyScript(hasChanged){if(hasChanged){for(var element=document.getElementById("html-rendering"),scripts=element.getElementsByTagName("script"),addedScripts=[],i=0;i.menu[data-v-0536f20d]{height:47px}",""])},HUXV:function(e,t,n){"use strict";var o=n("6Ndi");t.a={refreshAfterSavedConfig:function(e){return o.a.fireRequestTheme(e).then(function(t){return o.a.fireReceiveTheme(e)}).then(function(e){return o.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return o.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return console.time("Build content"),e}).then(function(e){return o.a.fireRequestGenerateIndex(e)}).then(function(e){return o.a.fireReceiveGenerateIndex(e)}).then(function(e){return o.a.fireRequestGeneratePosts(e)}).then(function(e){return o.a.fireReceiveGeneratePosts(e)}).then(function(e){return o.a.fireRequestGenerateTags(e)}).then(function(e){return o.a.fireReceiveGenerateTags(e)}).then(function(e){return o.a.fireRequestGenerateAuthors(e)}).then(function(e){return o.a.fireReceiveGenerateAuthors(e)}).then(function(e){return console.timeEnd("Build content"),e}).then(function(e){return o.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return o.a.fireReceiveSaveRemotePublishedElements(e)})}}},"Hot+":function(e,t,n){"use strict";var o=n("I3G/"),i=n.n(o),r=n("HBB+"),a=n("ct3O"),s=n("YLfZ");t.a={name:"nuxt",props:["nuxtChildKey","keepAlive"],render:function(e){return this.nuxt.err?e("nuxt-error",{props:{error:this.nuxt.err}}):e("nuxt-child",{key:this.routerViewKey,props:this.$props})},beforeCreate:function(){i.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(s.b)(this.$route.matched[0].path)(this.$route.params);var e=this.$route.matched[0]&&this.$route.matched[0].components.default;return e&&e.options&&e.options.key?"function"==typeof e.options.key?e.options.key(this.$route):e.options.key:this.$route.path}},components:{NuxtChild:r.a,NuxtError:a.a}}},IBrK:function(e,t,n){"use strict";var o=n("F6eF"),i=n("N3Gg");var r=function(e){n("XkEn")},a=n("VU/8")(o.a,i.a,!1,r,null,null);t.a=a.exports},Ie2b:function(e,t){},Irdm:function(e,t,n){"use strict";var o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"settings-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.submit(t)}}},[e._m(0)])])]),n("div",{staticClass:"ui container settings-content"},[e._m(1),n("div",{staticClass:"ui divider"}),n("form",{staticClass:"ui form",attrs:{id:"mainForm"}},[n("div",{staticClass:"ui secondary pointing menu"},[n("div",{staticClass:"item active",attrs:{"data-tab":"application",id:"application-tab"}},[e._v("Application")]),e._l(e.tabs,function(t){return n("div",{key:t.id,staticClass:"item",attrs:{"data-tab":t.id}},[e._v(e._s(t.label))])})],2),n("div",{staticClass:"ui bottom attached tab segment active",attrs:{"data-tab":"application"}},[n("h4",{staticClass:"ui dividing header"},[e._v("Domain")]),n("div",{staticClass:"field"},[n("label",[e._v("CNAME")]),n("input",{attrs:{type:"text",name:"application-cname",placeholder:"CNAME"},domProps:{value:e.config.meta.cname}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Metadata (set in config.json)")]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub username")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-username",placeholder:"Github username"},domProps:{value:e.config.meta.username}})]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub repository name")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-repository-name",placeholder:"GitHub repository name"},domProps:{value:e.config.meta.repositoryName}})]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub branch")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-branch",placeholder:"GitHub branch"},domProps:{value:e.config.meta.branch}})]),e._m(2)]),e._l(e.tabs,function(e){return n("div",{key:e.id,staticClass:"ui bottom attached tab segment ",attrs:{"data-tab":e.id}},[n(e.id,{tag:"component"})],1)})],2)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Save your settings","data-position":"bottom right"}},[t("i",{staticClass:"save large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"ui center aligned icon header"},[t("i",{staticClass:"circular settings icon"}),this._v("\n Settings\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"disabled field"},[t("label",[this._v("Blog URL")]),t("input",{attrs:{type:"text",disabled:"",name:"application-blog-url",placeholder:"Blog URL"}})])}]};t.a=o},J2Ti:function(e,t,n){"use strict";n.d(t,"a",function(){return w});var o=n("woOf"),i=n.n(o),r=n("BO1k"),a=n.n(r),s=n("I3G/"),c=n.n(s),u=n("NYxO");c.a.use(u.default);var l=n("1H2/"),p=l.keys(),d={},f=void 0;if(p.forEach(function(e){-1!==e.indexOf("./index.")&&(f=e)}),f&&(d=k(f)),"function"!=typeof d){d.modules||(d.modules={});var h=!0,g=!1,m=void 0;try{for(var v,b=a()(p);!(h=(v=b.next()).done);h=!0){var x=v.value,C=x.replace(/^\.\//,"").replace(/\.(js|ts)$/,"");if("index"!==C){var y=C.split(/\//);(e=P(d,y))[C=y.pop()]=k(x),e[C].namespaced=!0}}}catch(e){g=!0,m=e}finally{try{!h&&b.return&&b.return()}finally{if(g)throw m}}}var w=d instanceof Function?d:function(){return new u.default.Store(i()({strict:!1},d,{state:d.state instanceof Function?d.state():{}}))};function k(e){var t=l(e),n=t.default||t;if(n.commit)throw new Error("[nuxt] store/"+e.replace("./","")+" should export a method which returns a Vuex instance.");if(n.state&&"function"!=typeof n.state)throw new Error("[nuxt] state should be a function in store/"+e.replace("./",""));return n}function P(e,t){if(1===t.length)return e.modules;var n=t.shift();return e.modules[n]=e.modules[n]||{},e.modules[n].namespaced=!0,e.modules[n].modules=e.modules[n].modules||{},P(e.modules[n],t)}},JtYm:function(e,t,n){"use strict";var o=n("6Ndi");function i(e){return o.a.fireRequestLocalPosts(e).then(function(e){return o.a.fireReceiveLocalPosts(e)})}t.a={deletePost:function(e){return o.a.fireRequestLocalPost(e).then(function(e){return o.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=t,e}).then(function(e){return e.nextState.post.original?o.a.fireRequestDeleteRemotePost(e).then(function(e){return o.a.fireReceiveDeleteRemotePost(e)}):e}).then(function(e){return o.a.fireRequestDeleteLocalPost(e)}).then(function(e){return o.a.fireReceiveDeleteLocalPost(e)}).then(function(e){return e.nextState.post.published?o.a.fireRequestDeleteRemotePublishedPost(e).then(function(e){return o.a.fireReceiveDeleteRemotePublishedPost(e)}).then(function(e){return o.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return o.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return o.a.fireRequestGenerateIndex(e)}).then(function(e){return o.a.fireReceiveGenerateIndex(e)}).then(function(e){return o.a.fireRequestGenerateTags(e)}).then(function(e){return o.a.fireReceiveGenerateTags(e)}).then(function(e){return o.a.fireRequestGenerateAuthors(e)}).then(function(e){return o.a.fireReceiveGenerateAuthors(e)}).then(function(e){return o.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return o.a.fireReceiveSaveRemotePublishedElements(e)}):e}).then(i)},getLocalPost:function(e){return o.a.fireRequestLocalPost(e).then(function(e){return o.a.fireReceiveLocalPost(e)})},getLocalPosts:i,remoteSavePost:function(e){return e.currentState.elementsToPublish=[],o.a.fireRequestLocalPost(e).then(function(e){return o.a.fireReceiveLocalPost(e)}).then(function(e){return o.a.fireRequestSaveRemotePost(e)}).then(function(e){return o.a.fireReceiveSaveRemotePost(e)}).then(function(e){return o.a.fireRequestSaveLocalPost(e)}).then(function(e){return o.a.fireReceiveSaveLocalPost(e)})},renderAndSavePost:function(e){return o.a.fireRequestLocalPost(e).then(function(e){return o.a.fireReceiveLocalPost(e)}).then(function(e){return e.nextState.post.content=e.payload.post.content,e}).then(function(e){return o.a.fireRequestRenderingPost(e)}).then(function(e){return o.a.fireReceiveRenderingPost(e)}).then(function(e){return e.nextState.post&&e.nextState.post.title?o.a.fireRequestSaveLocalPost(e).then(function(e){return o.a.fireReceiveSaveLocalPost(e)}):e})},publishPost:function(e){return e.currentState.elementsToPublish=[],o.a.fireRequestLocalPost(e).then(function(e){return o.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=_.union(e.nextState.post.tags,t),e}).then(function(e){return o.a.fireRequestSaveRemotePost(e)}).then(function(e){return o.a.fireReceiveSaveRemotePost(e)}).then(function(e){return e.nextState.post.original.author=e.nextState.post.original.author||e.nextState.post.author,e.nextState.post.published=1,e}).then(function(e){return o.a.fireRequestSaveLocalPost(e)}).then(function(e){return o.a.fireReceiveSaveLocalPost(e)}).then(function(e){return o.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return o.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return o.a.fireRequestGeneratePost(e)}).then(function(e){return o.a.fireReceiveGeneratePost(e)}).then(function(e){return"post"!==e.nextState.post.type?e:o.a.fireRequestGenerateIndex(e).then(function(e){return o.a.fireReceiveGenerateIndex(e)}).then(function(e){return o.a.fireRequestGenerateTags(e)}).then(function(e){return o.a.fireReceiveGenerateTags(e)}).then(function(e){return o.a.fireRequestGenerateAuthors(e)}).then(function(e){return o.a.fireReceiveGenerateAuthors(e)})}).then(function(e){return o.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return o.a.fireReceiveSaveRemotePublishedElements(e)})},unpublishPost:function(e){return e.currentState.elementsToPublish=[],o.a.fireRequestLocalPost(e).then(function(e){return o.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=t,e}).then(function(e){return o.a.fireRequestDeleteRemotePublishedPost(e)}).then(function(e){return o.a.fireReceiveDeleteRemotePublishedPost(e)}).then(function(e){return e.nextState.post.published=0,e}).then(function(e){return o.a.fireRequestSaveLocalPost(e)}).then(function(e){return o.a.fireReceiveSaveLocalPost(e)}).then(function(e){return o.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return o.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return"post"!==e.nextState.post.type?e:o.a.fireRequestGenerateIndex(e).then(function(e){return o.a.fireReceiveGenerateIndex(e)}).then(function(e){return o.a.fireRequestGenerateTags(e)}).then(function(e){return o.a.fireReceiveGenerateTags(e)}).then(function(e){return o.a.fireRequestGenerateAuthors(e)}).then(function(e){return o.a.fireReceiveGenerateAuthors(e)})}).then(function(e){return o.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return o.a.fireReceiveSaveRemotePublishedElements(e)})}}},KMrN:function(e,t,n){"use strict";var o=n("LEOq"),i=n.n(o);t.a={authenticate:function(e){return function(e){return i.a.fire("requestAuthentication",e)}(e).then(function(e){return(t=e).nextState.twoFactorRequired?payload:i.a.fire("receiveAuthentication",t);var t})},initialize:function(e){return function(e){return i.a.fire("requestSavedAuth",e)}(e).then(function(e){return t=e,i.a.fire("receiveSavedAuth",t);var t})}}},KOTd:function(e,t,n){"use strict";t.a=function(e){console.info("AuthorGenerator - generate"),console.log("AuthorGenerator - generate",e);var t=void 0;if(!s.a.isTemplateAvailable("author"))return e;t=e.nextState.author?e.nextState.publishedPosts.filter(function(t){return t.author.login===e.nextState.author.login}):e.nextState.publishedPosts;var n=r.a.reduce(t,function(e,t){return e[t.author.login]=e[t.author.login]||[],e[t.author.login].push(t),e},{}),i=e;return r.a.each(n,function(e,t){var n=e[0].author;n.name=n.name||n.login,n.slug=t,n.website=n.blog,n.status="",i=o.a.generate({opts:i,posts:e,author:n,template:"author",path:"author/"+t+"/"})}),i};var o=n("APUd"),i=n("M4fF"),r=n.n(i),a=n("j+6P"),s=n.n(a),c=n("n+xr");n.n(c)},KgKs:function(e,t,n){"use strict";t.a=function(e,t){console.info("PostGenerator - generate"),console.log("PostGenerator - generate",e);var n=t,o=i()({},n.original);o.tags=a.a.map(o.tags,function(e){return{name:e,slug:l()(e)}});var r=o.author;o.author={id:r.id,name:r.name||r.login,location:r.location,website:r.blog,image:r.avatar_url,profile_image:r.avatar_url,bio:r.bio,status:"",slug:r.login};var s=e.rootState.application.config,u=s.urls;e.nextState.theme.name,e.nextState.theme.version,s.urls.theme;o.urls=u,o.status="published",o.feature_image=o.image;var p=c.a.template(n.type||"post",{context:n.type||"post",socialnetwork:s.socialnetwork,relativeUrl:n.url,post:o,author:o.author},{config:s,theme:e.nextState.theme}),d=[];return d.push({title:n.title,image:n.image,name:n.name,path:s.urls.getContentGhPath(n.name,n.type),url:s.urls.getContentGhPath(n.name,n.type),content:p,message:"Publish "+n.name,published_at:n.published_at}),e.nextState.elementsToPublish=(e.nextState.elementsToPublish||[]).concat(d),e};var o=n("woOf"),i=n.n(o),r=n("M4fF"),a=n.n(r),s=n("j+6P"),c=n.n(s),u=n("n+xr"),l=n.n(u)},LB67:function(e,t,n){"use strict";var o=n("6Ndi");t.a={authenticate:function(e){return o.a.fireRequestAuthentication(e).then(function(e){return o.a.fireReceiveAuthentication(e)})}}},LnjV:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"",""])},MHN4:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".about-content{padding-top:60px}",""])},N3Gg:function(e,t,n){"use strict";var o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"initialise-configuration"},[e._m(0),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"content"},[e._v("\n We need to initialize your configuration before a first use.\n ")]),n("div",{staticClass:"ui divider"}),n("form",{staticClass:"ui form",attrs:{id:"configurationForm"},on:{submit:function(t){t.preventDefault(),e.submit()}}},[n("div",{staticClass:"required field"},[n("label",[e._v("Username")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.username,expression:"username"}],attrs:{type:"text",name:"configuration-username",placeholder:"Your github username"},domProps:{value:e.username},on:{input:function(t){t.target.composing||(e.username=t.target.value)}}})]),n("div",{staticClass:"required field"},[n("label",[e._v("Repository name")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.repositoryName,expression:"repositoryName"}],attrs:{type:"text",name:"configuration-cname",placeholder:"The name of your repository"},domProps:{value:e.repositoryName},on:{input:function(t){t.target.composing||(e.repositoryName=t.target.value)}}})]),n("div",{staticClass:"required field"},[n("label",[e._v("Branch")]),n("div",{staticClass:"ui selection dropdown"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.branch,expression:"branch"}],attrs:{type:"hidden",name:"branch"},domProps:{value:e.branch},on:{input:function(t){t.target.composing||(e.branch=t.target.value)}}}),n("i",{staticClass:"dropdown icon"}),n("div",{staticClass:"default text"},[e._v("master")]),e._m(1)])]),n("div",{staticClass:"field"},[n("label",[e._v("Domain name")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.cname,expression:"cname"}],attrs:{type:"text",name:"configuration-cname",placeholder:"Your domain name if you have one"},domProps:{value:e.cname},on:{input:function(t){t.target.composing||(e.cname=t.target.value)}}})]),n("button",{staticClass:"ui fluid large submit button",attrs:{type:"submit",name:"button",disabled:!e.isValid}},[e._v("Ok, let's go!")])]),e._m(2)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"ui center aligned icon header"},[t("i",{staticClass:"circular configure icon"}),this._v("\n Configuration\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"menu"},[t("div",{staticClass:"item",attrs:{"data-value":"master"}},[this._v("master")]),t("div",{staticClass:"item",attrs:{"data-value":"gh-pages"}},[this._v("gh-pages")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui message"},[this._v("\n If you have questions about how to use HubPress, "),t("a",{attrs:{href:"https://hubpress.gitbooks.io/hubpress-knowledgebase/content/"}},[this._v("here is the right place.")])])}]};t.a=o},NpFX:function(e,t,n){"use strict";var o=n("FoP8"),i=n("e3NT");var r=function(e){n("epiJ")},a=n("VU/8")(o.a,i.a,!1,r,null,null);t.a=a.exports},Pm0L:function(e,t,n){"use strict";n.d(t,"e",function(){return o}),n.d(t,"f",function(){return i}),n.d(t,"g",function(){return r}),n.d(t,"h",function(){return a}),n.d(t,"d",function(){return s}),n.d(t,"c",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"a",function(){return l});var o="login:submit",i="login:updateEmail",r="login:updatePassword",a="login:updateTwoFactorCode",s="authorisation:request-login",c="authorisation:receive-login",u="authorisation:failure-login",l="authorisation:authentication-done"},Q7NK:function(e,t,n){"use strict";(function(e,t){var o,i=n("pFYg"),r=n.n(i);o=function(e){e.defineMode("asciidoc",function(e,t){var n=1e3,o=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],o=[],i=0,r=this.matchMappings[t]={defaultToken:"text"},a="g",s=[],c=0;c1?this.$applyToken:u.token);p>1&&(/\\\d/.test(u.regex)?l=u.regex.replace(/\\([0-9]+)/g,function(e,t){return"\\"+(parseInt(t,10)+i+1)}):(p=1,l=this.removeCapturingGroups(u.regex)),u.splitRegex||"string"==typeof u.token||s.push(u)),r[i]=c,i+=p,o.push(l),u.onMatch||(u.onMatch=null)}}s.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)},this),this.regExps[t]=new RegExp("("+o.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(e){n=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var o=[],i=0,r=n.length;il){var m=e.substring(l,g-h.length);p.type==d?p.value+=m:(p.type&&u.push(p),p={type:d,value:m})}for(var v=0;vn){for(;l1&&o[0]!==i&&o.unshift(i),{tokens:u,state:o.length?o:i}}}).call(o.prototype);var i={empty:null,text:null,keyword:"keyword",control:"keyword",operator:"operator",constant:"atom",numeric:"number",character:"atom",escape:"atom",variable:"variable",parameter:"variable-3",language:"variable-2",comment:"comment",line:"comment","double-slash":"comment","double-dash":"comment","number-sign":"comment",percentage:"comment",block:"comment",doc:"comment",string:"string",quoted:"string",single:"string",double:"string",triple:"string",unquoted:"string",interpolated:"string",regexp:"string-2",meta:"keyword",literal:"qualifier",support:"builtin",markup:"tag",underline:"link",link:"link",strong:"strong",heading:"header",heading2:"header-2",heading3:"header-3",heading4:"header-4",heading5:"header-5",heading6:"header-6",em:"em",list:"variable-2",numbered:"variable-2",unnumbered:"variable-2",quote:"quote",raw:"variable-2",invalid:"error",illegal:"invalidchar",deprecated:"error"},r=function(e,t){var n=t.plannedTokens.shift();return void 0===n?null:(e.match(n.value),function(e){for(var t=null,n=0;n0)return r(e,t);var n=t.current,o=e.match(/.*$/,!1)[0],i=s.getLineTokens(o,n);return t.plannedTokens=i.tokens,t.current=i.state,r(e,t)},s=new o((new function(){function e(e){return(/\w/.test(e)?"\\b":"(?:\\B|^)")+e+"[^"+e+"].*?"+e+"(?![\\w*])"}this.$rules={start:[{token:"empty",regex:/$/},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"literal",regex:/^-{4,}\s*$/,next:"literalBlock"},{token:"literal",regex:/^\+{4,}\s*$/,next:"passthroughBlock"},{token:"keyword",regex:/^={4,}\s*$/},{token:"text",regex:/^\s*$/},{token:"empty",regex:"",next:"dissallowDelimitedBlock"}],dissallowDelimitedBlock:[{include:"paragraphEnd"},{token:"comment",regex:"^//.+$"},{token:"keyword",regex:"^(?:NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s"},{include:"listStart"},{token:"literal",regex:/^\s+.+$/,next:"indentedBlock"},{token:"empty",regex:"",next:"text"}],paragraphEnd:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"commentBlock"},{token:"tableBlock",regex:/^\s*[|!]=+\s*$/,next:"tableBlock"},{token:"keyword",regex:/^(?:--|''')\s*$/,next:"start"},{token:"option",regex:/^\[.*\]\s*$/,next:"start"},{token:"pageBreak",regex:/^>{3,}$/,next:"start"},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"titleUnderline",regex:/^(?:={2,}|-{2,}|~{2,}|\^{2,}|\+{2,})\s*$/,next:"start"},{token:"singleLineTitle",regex:/^={1}\s+\S.*$/,next:"start"},{token:"singleLineTitle2",regex:/^={2}\s+\S.*$/,next:"start"},{token:"singleLineTitle3",regex:/^={3}\s+\S.*$/,next:"start"},{token:"singleLineTitle4",regex:/^={4}\s+\S.*$/,next:"start"},{token:"singleLineTitle5",regex:/^={5}\s+\S.*$/,next:"start"},{token:"singleLineTitle6",regex:/^={6}\s+\S.*$/,next:"start"},{token:"otherBlock",regex:/^(?:\*{2,}|_{2,})\s*$/,next:"start"},{token:"optionalTitle",regex:/^\.[^.\s].+$/,next:"start"}],listStart:[{token:"keyword",regex:/^\s*(?:\d+\.|[a-zA-Z]\.|[ixvmIXVM]+\)|\*{1,5}|-|\.{1,5})\s/,next:"listText"},{token:"meta.tag",regex:/^.+(?::{2,4}|;;)(?: |$)/,next:"listText"},{token:"keyword",regex:/^\+\s*$/,next:"start"}],text:[{token:["link","link"],regex:/((?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+)(\[.*?\])/},{token:["link","link"],regex:/(?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+/},{token:"link",regex:/\b[\w\.\/\-]+@[\w\.\/\-]+\b/},{include:"macros"},{include:"paragraphEnd"},{token:"literal",regex:/\+{3,}/,next:"smallPassthrough"},{token:"escape",regex:/\((?:C|TM|R)\)|\.{3}|->|<-|=>|<=|&#(?:\d+|x[a-fA-F\d]+);|(?: |^)--(?=\s+\S)/},{token:"escape",regex:/\\[_*'`+#]|\\{2}[_*'`+#]{2}/},{token:"keyword",regex:/\s\+$/},{token:"text",regex:"[a-zA-Z¡-￿]+\\b"},{token:["keyword","string","keyword"],regex:/(<<[\w\d\-$]+,)(.*?)(>>|$)/},{token:"keyword",regex:/<<[\w\d\-$]+,?|>>/},{token:"constant.character",regex:/\({2,3}.*?\){2,3}/},{token:"support.function.list.callout",regex:/^(?:<\d+>|\d+>|>) /,next:"text"},{token:"keyword",regex:/\[\[.+?\]\]/},{token:"support",regex:/^\[{3}[\w\d =\-]+\]{3}/},{include:"quotes"},{token:"empty",regex:/^\s*$/,next:"start"}],listText:[{include:"listStart"},{include:"text"}],indentedBlock:[{token:"literal",regex:/^[\s\w].+$/,next:"indentedBlock"},{token:"literal",regex:"",next:"start"}],listingBlock:[{token:"literal",regex:/^\.{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],literalBlock:[{token:"literal",regex:/^-{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],passthroughBlock:[{token:"literal",regex:/^\+{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:"[a-zA-Z¡-￿]+\\b|\\d+"},{include:"macros"},{token:"literal",regex:"."}],smallPassthrough:[{token:"literal",regex:/[+]{3,}/,next:"dissallowDelimitedBlock"},{token:"literal",regex:/^\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:"[a-zA-Z¡-￿]+\\b|\\d+"},{include:"macros"}],commentBlock:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"doc.comment",regex:"^.*$"}],tableBlock:[{token:"tableBlock",regex:/^\s*\|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"innerTableBlock"},{token:"tableBlock",regex:/\|/},{include:"text",noEscape:!0}],innerTableBlock:[{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"tableBlock"},{token:"tableBlock",regex:/^\s*|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/\!/}],macros:[{token:"macro",regex:/{[\w\-$]+}/},{token:["text","string","text","constant.character","text"],regex:/({)([\w\-$]+)(:)?(.+)?(})/},{token:["text","markup.list.macro","keyword","string"],regex:/(\w+)(footnote(?:ref)?::?)([^\s\[]+)?(\[.*?\])?/},{token:["markup.list.macro","keyword","string"],regex:/([a-zA-Z\-][\w\.\/\-]*::?)([^\s\[]+)(\[.*?\])?/},{token:["markup.list.macro","keyword"],regex:/([a-zA-Z\-][\w\.\/\-]+::?)(\[.*?\])/},{token:"keyword",regex:/^:.+?:(?= |$)/}],quotes:[{token:"string.italic",regex:/__[^_\s].*?__/},{token:"string.italic",regex:e("_")},{token:"keyword.bold",regex:/\*\*[^*\s].*?\*\*/},{token:"keyword.bold",regex:e("\\*")},{token:"literal",regex:/\+\+[^+\s].*?\+\+/},{token:"literal",regex:e("\\+")},{token:"literal",regex:/\$\$.+?\$\$/},{token:"literal",regex:e("\\$")},{token:"literal",regex:/``[^`\s].*?``/},{token:"literal",regex:e("`")},{token:"keyword",regex:/\^[^\^].*?\^/},{token:"keyword",regex:e("\\^")},{token:"keyword",regex:/~[^~].*?~/},{token:"keyword",regex:e("~")},{token:"keyword",regex:/##?/},{token:"keyword",regex:/(?:\B|^)``|\b''/}]};var t={macro:"constant.character",tableBlock:"doc.comment",titleUnderline:"markup.heading",singleLineTitle:"markup.heading",singleLineTitle2:"markup.heading2",singleLineTitle3:"markup.heading3",singleLineTitle4:"markup.heading4",singleLineTitle5:"markup.heading5",singleLineTitle6:"markup.heading6",pageBreak:"string",option:"string.regexp",otherBlock:"markup.list",literal:"support.function",optionalTitle:"constant.numeric",escape:"constant.language.escape",link:"markup.underline.list"};for(var n in this.$rules)for(var o=this.$rules[n],i=o.length;i--;){var r=o[i];if(r.include||"string"==typeof r){var a=[i,1].concat(this.$rules[r.include||r]);r.noEscape&&(a=a.filter(function(e){return!e.next})),o.splice.apply(o,a)}else r.token in t&&(r.token=t[r.token])}}).$rules);return{startState:function(){return{current:"start",plannedTokens:[]}},blankLine:function(e){a("",e)},token:a}}),e.defineMIME("text/x-asciidoc","asciidoc")},"object"==("undefined"==typeof exports?"undefined":r()(exports))&&"object"==r()(e)?o(n("8U58")):"object"==("undefined"==typeof brackets?"undefined":r()(brackets))&&brackets.getModule?o(brackets.getModule("thirdparty/CodeMirror2/lib/codemirror")):"function"==typeof define&&n("nErl")?define(["codemirror"],o):o(t)}).call(t,n("f1Eh")(e),n("8U58"))},QMmS:function(e,t,n){"use strict";t.b=function(e){return e.on("application:stores",function(e){var t;console.info("authenticationPlugin - application:stores"),console.log("authenticationPlugin - application:stores",e);var n={state:{isAuthenticated:!1,isTwoFactorCodeRequired:!1,credentials:{email:void 0,password:void 0,twoFactorCode:void 0}},mutations:(t={},i()(t,u.f,function(e,t){e.credentials.email=t}),i()(t,u.g,function(e,t){e.credentials.password=t}),i()(t,u.h,function(e,t){e.credentials.twoFactorCode=t}),i()(t,u.d,function(e){e.isLoading=!0}),i()(t,u.c,function(e,t){a.a.merge(e,t)}),i()(t,u.b,function(e,t){e.isAuthenticated=!1}),i()(t,l,function(e,t){a.a.merge(e,t.authentication)}),t),actions:i()({},u.e,function(e,t){var n=e.dispatch,o=e.commit,i=e.rootState,r=e.state;o(u.d);var c={rootState:a.a.cloneDeep(i),currentState:a.a.cloneDeep(r)};n("application:loading").then(function(e){return s.a.authenticate(c)}).then(function(e){o(u.c,e.nextState)}).then(function(e){return r.isAuthenticated?n(p,!0).then(function(e){return n(u.a)}):r.isTwoFactorCodeRequired?n("application:notify",{icon:"unlock",header:"Two factor code",message:"A code is required to complete your authentication.",level:"warning"}):n("application:notify",{icon:"warning circle",header:"Authentication failed",message:"A error occured during the authentication.",level:"error"})}).then(function(e){return n("application:loaded")}).then(function(e){return t.push(t.currentRoute.query.redirect||"/")}).catch(function(e){n("application:loaded").then(function(e){return n("application:notify",{icon:"warning circle",header:"Authentication failed",message:"A error occured during the authentication.",level:"error"})})})}),getters:{}};return e.nextState.stores.authentication=n,console.log("authenticationPlugin - application:stores - return",e),e}),e.on("application:routes",function(e){return e}),e.on("application:initialize-app",function(e){return console.info("authenticationPlugin - application:initialize-app"),console.log("authenticationPlugin - application:initialize-app",e),s.a.initialize(e).then(function(e){return e})}),e.on("authentication:authenticate",function(e){return console.info("authenticationPlugin - authentication:authenticate"),console.log("authenticationPlugin - authentication:authenticate",e,s.a),s.a.authenticate(e)}),{getName:function(){return"authenticationPlugin"}}},n.d(t,"a",function(){return d});var o=n("bOdI"),i=n.n(o),r=n("M4fF"),a=n.n(r),s=n("KMrN"),c=n("RUoO"),u=n("Pm0L"),l="application:initialize-app",p="application:save-config";var d=c.a},RUoO:function(e,t,n){"use strict";var o=n("6yLl"),i=n("hupH");var r=function(e){n("F6cG")},a=n("VU/8")(o.a,i.a,!1,r,"data-v-40a16617",null);t.a=a.exports},RsIG:function(e,t,n){"use strict";var o=n("woOf"),i=n.n(o),r=n("LEOq"),a=n.n(r);function s(e){return a.a.fire("application:receive-config",e)}t.a={initializeRoutes:function(e){return a.a.fire("application:routes",e)},initializeApp:function(e,t){return a.a.fire("application:initialize-app",e,t)},initializePlugins:function(e,t){return a.a.fire("application:initialize-plugins",e,t)},initializeConfig:function(e){return console.log("application - initializeConfig",e),function(e){return a.a.fire("application:request-config",e)}(e).then(s)},startUpConfig:function(e){return console.log("application - startUpConfig",e),s(e)},prepareConfig:function(e){return a.a.fire("application:prepare-config",e)},saveConfig:function(e){return function(e){return console.log("application - fireRequestSaveConfig",e),a.a.fire("application:request-save-config",e)}(e).then(function(t){return i()({},e,{nextState:t.nextState.application})}).then(s).then(function(t){return e.nextState.application=t.nextState,i()({},e)}).catch(function(e){console.log(e)})},saveConfigDone:function(e){return a.a.fire("application:save-config-done",e)}}},SDLk:function(e,t,n){"use strict";var o={render:function(){this.$createElement;this._self._c;return this._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"about-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",attrs:{href:"https://twitter.com/HubPressIO",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Follow us on twitter","data-position":"bottom right"}},[n("i",{staticClass:"twitter large icon"})])]),n("a",{staticClass:"item",attrs:{href:"https://gitter.im/HubPress/hubpress.io",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Wanna chat with us?","data-position":"bottom right"}},[n("i",{staticClass:"gitter large icon"})])]),n("a",{staticClass:"item",attrs:{href:"https://github.com/HubPress",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"HubPress is opensource :)","data-position":"bottom right"}},[n("i",{staticClass:"github large icon"})])])])]),n("div",{staticClass:"about-content"},[n("div",{staticClass:"ui container"},[n("h2",{staticClass:"ui center aligned icon header"},[n("i",{staticClass:"circular users icon"}),e._v("\n The HubPress Team\n ")]),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"row"},[n("div",{staticClass:"ui items divided"},[n("div",{staticClass:"item"},[n("div",{staticClass:"image"},[n("img",{attrs:{src:"https://avatars1.githubusercontent.com/u/2006548?v=3&s=460"}})]),n("div",{staticClass:"content"},[n("a",{staticClass:"header"},[e._v("Anthonny Quérouil")]),n("div",{staticClass:"meta"},[n("span",[e._v("The creator of HubPress")])]),n("div",{staticClass:"description"},[n("p",[e._v("Anthonny is a freelance developer and the creator of HubPress")]),n("p",[e._v("He started HubPress two years ago")])]),n("div",{staticClass:"extra"},[n("a",{staticClass:"ui label",attrs:{href:"https://twitter.com/anthonny_q",target:"_blank"}},[n("i",{staticClass:"twitter icon"}),e._v(" Twitter\n ")]),n("a",{staticClass:"ui label",attrs:{href:"https://github.com/anthonny",target:"_blank"}},[n("i",{staticClass:"github icon"}),e._v(" GitHub\n ")]),n("a",{staticClass:"ui label",attrs:{href:"http://anthonnyquerouil.fr/",target:"_blank"}},[n("i",{staticClass:"home icon"}),e._v(" Website\n ")])])])]),n("div",{staticClass:"item"},[n("div",{staticClass:"image"},[n("img",{attrs:{src:"https://avatars0.githubusercontent.com/u/952793?v=3&s=460"}})]),n("div",{staticClass:"content"},[n("a",{staticClass:"header"},[e._v("Jared Morgan")]),n("div",{staticClass:"meta"},[n("span",[e._v("The Docs guy")])]),n("div",{staticClass:"description"},[n("p",[e._v("By day, Jared is a Certified Scrum Product Owner (CSPO) and Technical Writer for Ladbrokes in Brisbane, Australia.")]),n("p",[e._v("By night, he uses his craft to improve open source software products one README at a time.")]),n("p",[e._v("In between, he uses his expertise in Pinball machines and knowledge of Android beta testing to improve digital pinball apps.")])]),n("div",{staticClass:"extra"},[n("a",{staticClass:"ui label",attrs:{href:"https://twitter.com/jaredmorgs",target:"_blank"}},[n("i",{staticClass:"twitter icon"}),e._v(" Twitter\n ")]),n("a",{staticClass:"ui label",attrs:{href:"https://github.com/jaredmorgs",target:"_blank"}},[n("i",{staticClass:"github icon"}),e._v(" GitHub\n ")]),n("a",{staticClass:"ui label",attrs:{href:"http://jaredleonmorgan.net/",target:"_blank"}},[n("i",{staticClass:"home icon"}),e._v(" Website\n ")])])])])])])])])])}]};t.a=o},SHkU:function(e,t,n){"use strict";var o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._l(e.navigation,function(t,o){return n("div",{key:t.label,staticClass:"fields"},[n("div",{staticClass:"four wide field"},[n("input",{attrs:{type:"text",placeholder:"Label",name:"navigation-label-"+o},domProps:{value:t.label}})]),n("div",{staticClass:"eleven wide field"},[n("input",{attrs:{type:"text",placeholder:"http://www.mysite.com",name:"navigation-url-"+o},domProps:{value:t.url}})]),n("div",{staticClass:"one wide field"},[n("button",{staticClass:"ui icon button",on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.remove(o)}}},[n("i",{staticClass:"trash icon"})])])])}),n("div",{staticClass:"fields"},[n("div",{staticClass:"four wide field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNav.label,expression:"newNav.label"}],attrs:{type:"text",placeholder:"Label"},domProps:{value:e.newNav.label},on:{input:function(t){t.target.composing||e.$set(e.newNav,"label",t.target.value)}}})]),n("div",{staticClass:"eleven wide field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNav.url,expression:"newNav.url"}],attrs:{type:"text",placeholder:"http://www.mysite.com"},domProps:{value:e.newNav.url},on:{input:function(t){t.target.composing||e.$set(e.newNav,"url",t.target.value)}}})]),n("div",{staticClass:"one wide field"},[n("button",{staticClass:"ui icon button",attrs:{disabled:e.isNotValid},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.add(e.newNav)}}},[n("i",{staticClass:"add icon"})])])])],2)},staticRenderFns:[]};t.a=o},SUis:function(e,t,n){"use strict";(function(e){var o=n("PJh5"),i=n.n(o),r=n("RJtx"),a=n.n(r),s=n("lYDI");t.a={name:"posts",data:function(){return{postToDelete:{},filterValue:""}},beforeCreate:function(){},beforeMount:function(){this.$store.dispatch(s.a)},beforeDestroy:function(){e(".ui.basic.modal").remove()},mounted:function(){var t=this;e(".ui.basic.modal").modal({closable:!1,onDeny:function(){},onApprove:function(){t.$store.dispatch(s.d,t.postToDelete._id)}})},methods:{status:function(e){return!e.published?"Draft":"Published"},type:function(e){return e.type.replace(/\b\w/g,function(e){return e.toUpperCase()})},publishedAt:function(e){return!!e.published&&e.published_at&&i()(e.published_at).fromNow()||""},postCoverUrl:function(e){var t=e.image||"https://hubpress.github.io/img/logo.png";return t=t.startsWith("http")?t:e.attributes.$$smap.imagesdir+"/"+e.image},getPostStatusColor:function(e){return e.original?e.original.content!==e.content?"orange":"green":"red"},displayConfirmMessage:function(t){this.postToDelete=t,e(".ui.basic.modal").modal("show")},navigateToPost:function(e){this.$router.push({name:"post",params:{id:e._id}})},newPost:function(){this.$router.push({name:"post",params:{id:a.a.v4()}})},getPostTags:function(e){return e.tags||[]},getPostAuthor:function(e){return e.author||this.$store.state.authentication.userInformations},synchronize:function(){this.$store.dispatch(s.b)}},computed:{posts:function(){var e=this.filterValue.trim();return""===e?this.$store.state.hubpress.posts:this.$store.state.hubpress.posts.filter(function(t){return t.title.toLowerCase().indexOf(e.toLowerCase())>=0||t.tags&&t.tags.filter(function(t){return t.toLowerCase().indexOf(e.toLowerCase())>=0}).length})}}}}).call(t,n("7t+N"))},SjaB:function(e,t,n){var o=n("3fVB");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("2d76ba14",o,!0,{sourceMap:!1})},T23V:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,r,a=n("pFYg"),s=n.n(a),c=n("mvHQ"),u=n.n(c),l=n("fZjL"),p=n.n(l),d=n("woOf"),f=n.n(d),h=n("Zzip"),g=n.n(h),m=n("5QVw"),v=n.n(m),b=n("//Fk"),x=n.n(b),C=n("I3G/"),y=n.n(C),w=n("unZF"),k=n("qcny"),P=n("YLfZ"),S=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=x.a))(function(i,r){function a(e){try{c(o.next(e))}catch(e){r(e)}}function s(e){try{c(o.throw(e))}catch(e){r(e)}}function c(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,s)}c((o=o.apply(e,t||[])).next())})},_=this&&this.__generator||function(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof v.a&&(r[g.a]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(i=o[2&r[0]?"return":r[0]?"throw":"next"])&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[0,i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],e.matched.map(function(e,n){return h()(e.instances).map(function(o){return t&&t.push(n),e.instances[o]})}))},t.c=w,t.k=k,n.d(t,"h",function(){return _}),n.d(t,"m",function(){return R}),t.i=function e(t,n){if(!t.length||n._redirected||n._errored)return d.a.resolve();return q(t[0],n).then(function(){return e(t.slice(1),n)})},t.j=q,t.d=function(e,t){var n=window.location.pathname;if("hash"===t)return window.location.hash.replace(/^#\//,"");e&&0===n.indexOf(e)&&(n=n.slice(e.length));return(n||"/")+window.location.search+window.location.hash},t.b=function(e,t){return function(e){for(var t=new Array(e.length),n=0;n1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],e.matched.map(function(e,n){return h()(e.components).map(function(o){return t&&t.push(n),e.components[o]})}))}function w(e,t){return Array.prototype.concat.apply([],e.matched.map(function(e,n){return h()(e.components).map(function(o){return t(e.components[o],e.instances[o],e,o,n)})}))}function k(e){var t,n=this;return d.a.all(w(e,(t=l()(c.a.mark(function e(t,o,i,r){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof t||t.options){e.next=4;break}return e.next=3,t();case 3:t=e.sent;case 4:return e.abrupt("return",i.components[r]=C(t));case 5:case"end":return e.stop()}},e,n)})),function(e,n,o,i){return t.apply(this,arguments)})))}window._nuxtReadyCbs=[],window.onNuxtReady=function(e){window._nuxtReadyCbs.push(e)};var P,S,_=(P=l()(c.a.mark(function e(t){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k(t);case 2:return e.abrupt("return",m()({},t,{meta:y(t).map(function(e){return e.options.meta||{}})}));case 3:case"end":return e.stop()}},e,this)})),function(e){return P.apply(this,arguments)}),R=(S=l()(c.a.mark(function e(t,n){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n.to?n.to:n.route,t.context){e.next=14;break}e.t0=!0,e.t1=t,e.t2=t.store,e.t3=n.payload,e.t4=n.error,e.t5={hubpressVersion:"1.0.0",baseUrl:"http://localhost:3000"},t.context={get isServer(){return console.warn("context.isServer has been deprecated, please use process.server instead."),!1},get isClient(){return console.warn("context.isClient has been deprecated, please use process.client instead."),!0},isStatic:e.t0,isDev:!1,isHMR:!1,app:e.t1,store:e.t2,payload:e.t3,error:e.t4,base:"..",env:e.t5},n.req&&(t.context.req=n.req),n.res&&(t.context.res=n.res),t.context.redirect=function(e,n,o){if(e){t.context._redirected=!0;var i=void 0===n?"undefined":a()(n);if("number"==typeof e||"undefined"!==i&&"object"!==i||(o=n||{},i=void 0===(n=e)?"undefined":a()(n),e=302),"object"===i&&(n=t.router.resolve(n).href),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(n))throw n=T(n,o),window.location.replace(n),new Error("ERR_REDIRECT");t.context.next({path:n,query:o,status:e})}},t.context.nuxtState=window.__NUXT__;case 14:if(t.context.next=n.next,t.context._redirected=!1,t.context._errored=!1,t.context.isHMR=!!n.isHMR,!n.route){e.next=22;break}return e.next=21,_(n.route);case 21:t.context.route=e.sent;case 22:if(t.context.params=t.context.route.params||{},t.context.query=t.context.route.query||{},!n.from){e.next=28;break}return e.next=27,_(n.from);case 27:t.context.from=e.sent;case 28:case"end":return e.stop()}},e,this)})),function(e,t){return S.apply(this,arguments)});function q(e,t){var n=void 0;return(n=2===e.length?new d.a(function(n){e(t,function(e,o){e&&t.error(e),n(o=o||{})})}):e(t))&&(n instanceof d.a||"function"==typeof n.then)||(n=d.a.resolve(n)),n}var M=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function $(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function D(e){return e.replace(/([.+*?=^!:()[\]|\/\\])/g,"\\$1")}function j(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function T(e,t){var n=void 0,o=e.indexOf("://");-1!==o?(n=e.substring(0,o),e=e.substring(o+3)):0===e.indexOf("//")&&(e=e.substring(2));var r=e.split("/"),a=(n?n+"://":"//")+r.shift(),s=r.filter(Boolean).join("/"),c=void 0;return 2===(r=s.split("#")).length&&(s=r[0],c=r[1]),a+=s?"/"+s:"",t&&"{}"!==i()(t)&&(a+=(2===e.split("?").length?"&":"?")+function(e){return h()(e).sort().map(function(t){var n=e[t];return null==n?"":Array.isArray(n)?n.slice().map(function(e){return[t,"=",e].join("")}).join("&"):t+"="+n}).filter(Boolean).join("&")}(t)),a+=c?"#"+c:""}},YMuy:function(e,t,n){"use strict";var o=n("6Ndi"),i=n("PJh5"),r=n.n(i);function a(e){return o.a.fireRequestRemoteSynchronization(e).then(function(e){return o.a.fireReceiveRemoteSynchronization(e)}).then(function(e){return o.a.fireRequestRenderingDocuments(e)}).then(function(e){return o.a.fireReceiveRenderingDocuments(e)}).then(function(e){return o.a.fireRequestLocalSynchronization(e)}).then(function(e){return o.a.fireReceiveLocalSynchronization(e)}).then(function(e){return o.a.fireRequestLocalPosts(e)}).then(function(e){return o.a.fireReceiveLocalPosts(e)}).then(function(e){return localStorage.setItem("hubpress:sync",r()().format()),e})}t.a={initialize:function(e){return o.a.fireRequestTheme(e).then(function(e){return o.a.fireReceiveTheme(e)}).then(function(e){return localStorage.getItem("hubpress:sync")?o.a.fireRequestLocalPosts(e).then(function(e){return o.a.fireReceiveLocalPosts(e)}):a(e)})},synchronize:a}},"bN/m":function(e,t,n){"use strict";function o(e,t){var n=void 0;return e.cname&&""!==e.cname?n=(!1===t?"":"http:")+"//"+e.cname:(n=(!1===t?"":"https:")+"//"+e.username+".github.io","master"!==e.branch&&(n=n+"/"+e.repositoryName)),n}function i(e,t){var n=e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"/$1/$2/$3/$4.html");return"page"===t&&(n=e.replace(/([\w-]*)\.adoc/,"/$1.html")),n}function r(e,t){var n=e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"$1/$2/$3/$4.html");return"page"===t&&(n=e.replace(/([\w-]*)\.adoc/,"$1.html")),n}t.a=function(e){return{site:o(e.meta),hubpress:function(e,t){var n=t.protocol+"//"+t.host;if("localhost"===t.hostname)return n;t.host===e.username+".github.io"||t.host===e.username+".github.com"?"master"!==e.branch&&(n=n+"/"+e.repositoryName):"master"===e.branch||e.cname&&""!==e.cname||(n=n+"/"+e.repositoryName);return n}(e.meta,window.location),theme:o(e.meta,!1)+"/themes/"+e.theme.name,images:o(e.meta)+"/images",getContentUrl:i,getContentGhPath:r,getPostUrl:function(e){return e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"/$1/$2/$3/$4.html")},getPostGhPath:function(e){return e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"$1/$2/$3/$4.html")},getPageUrl:function(e){return e.replace(/([\w-]*)\.adoc/,"/$1.html")},getPageGhPath:function(e){return e.replace(/([\w-]*)\.adoc/,"$1.html")},getSiteUrl:o}}},bxJ0:function(e,t,n){"use strict";t.a=function(e){e.on("application:request-config",function(e){return console.info("githubPlugin - application:request-config"),console.log("githubPlugin - application:request-config",e),l()("config.json?dt="+Date.now()).then(function(e){return e.json()}).then(function(t){return e.nextState.config=a()({},e.nextState.config,t),e.nextState.config.theme.name=e.nextState.config.theme.name.toLowerCase(),e})}),e.on("application:receive-config",function(e){console.info("githubPlugin - application:receive-config"),console.log("githubPlugin - application:receive-config",e);var t=Object(y.a)(e.nextState.config);return e.nextState.config=a()({},e.nextState.config,{urls:t}),e}),e.on("requestAuthentication",function(e){return console.info("githubPlugin - requestAuthentication"),console.log("githubPlugin - requestAuthentication",e),function(e){console.log("githubPlugin - login",e);var t=m.a.defer(),n=e.nextState.credentials,o=e.rootState.application.config.meta,i=(q=new h.a({auth:"basic",username:n.email,password:n.password,twoFactorCode:n.twoFactorCode})).getRepo(o.username,o.repositoryName),r=q.getAuthorization(),a=q.getUser(),s=void 0,c=void 0;return function(e){var t=m.a.defer();return e.getDetails(function(e,n){e?t.reject(e):t.resolve(n)}),t.promise}(i).then(function(e){s=e}).then(S(a)).then(function(e){return c=e,function(e){var t=m.a.defer();return console.log("getAuthorizations",e),e.listAuthorizations({},function(e,n){e?t.reject(e):(console.log("getAuthorizations list",n),t.resolve(n))}),t.promise}(r)}).then(function(e){return function(e,t,n){var o=m.a.defer(),i=-1,r=_(e);return t.forEach(function(e){e.note===r&&(i=e.id)}),-1!==i?n.deleteAuthorization(i,function(e,t){e?o.reject(e):o.resolve()}):o.resolve(),o.promise}(o.repositoryName,e,r)}).then(function(){return R(o.repositoryName,r)}).then(function(e){q=new h.a({auth:"oauth",token:e.token}),t.resolve({isAuthenticated:!0,credentials:{token:e.token},permissions:s.permissions,userInformations:c})}).catch(function(e){console.error("githubPlugin - login error",e,e.response);var n,i={type:"error",title:"Authentication"};e.response&&(n="required"===(e.response.headers&&e.response.headers["x-github-otp"]||"").split(";")[0]),n?(R(o.repositoryName,r),console.log("githubPlugin - OTP required : ",n),i.type="warning",i.content="A two-factor authentication code is needed.",i.otp=!0,t.resolve({isAuthenticated:!1,isTwoFactorCodeRequired:!0})):(console.error("githubPlugin - login error",e),t.reject({error:{code:e.error,message:"Unable to authenticate, check your credentials."}}))}),t.promise}(e).then(function(t){var n=a()({},e.nextState.credentials,t.credentials);return e.nextState=a()({},e.nextState,t,{credentials:n}),e})}),e.on("receiveSavedAuth",function(e){return console.info("githubPlugin - receiveSavedAuth"),console.log("githubPlugin - receiveSavedAuth",e),e.nextState.authentication.isAuthenticated&&(q=new h.a({auth:"oauth",token:e.nextState.authentication.credentials.token})),e}),e.on("hubpress:request-remote-synchronization",function(e){return console.info("githubPlugin - hubpress:request-remote-synchronization"),console.log("githubPlugin - hubpress:request-remote-synchronization",e),e.rootState.authentication.isAuthenticated?function(e){var t=e.application.config;console.log("Get posts",t);var n=t.meta,o=q.getRepo(n.username,n.repositoryName);return function(e,t){var n=m.a.defer();return e.getContents(t.meta.branch,"",!0,function(e,t){if(e)n.reject(e);else{var o=void 0;t.forEach(function(e){"_posts"===e.name&&(o=e.sha)}),n.resolve(o)}}),n.promise}(o,t).then(function(e){return function(e,t,n){var o=void 0;if(n===localStorage.postsSha)o=m.a.fcall(function(){return[]});else{var i=m.a.defer();e.getContents(t.meta.branch,"_posts",!0,function(e,t){e?i.reject(e):i.resolve(t)}),o=i.promise}return o}(o,t,e)}).then(function(e){return e.map(function(e){return b.a.pick(e,["name","path","sha","size"])})}).then(function(e){return function(e,t,n){var o=b.a.compact(n).map(function(e){return function(e,t){var n=m.a.defer(),o=e.meta;return q.getRepo(o.username,o.repositoryName).getSha(e.meta.branch,e.urls.getContentGhPath(t.name,t.type),function(e,o){if(e&&e.response&&404!==e.response.status)n.reject(e);else{var i=o?1:0,r=a()({},t,{published:i});n.resolve(r)}}),n.promise}(t,e)});return m.a.all(o)}(0,t,e)}).then(function(n){return function(e,t,n,o){var i=n.map(function(e){return M(t,e,o)});return m.a.all(i)}(0,t,n,e.authentication.userInformations)}).then(function(e){return function(e,t,n){var o=[];return n.forEach(function(n){var i=m.a.defer();o.push(i.promise),e.getContents(t.meta.branch,n.path,!0,function(e,t){var o;e?i.reject(e):(o=a()({},n,{content:t}),i.resolve(o))})}),m.a.all(o)}(o,t,e)})}(e.rootState).then(function(t){return e.nextState=a()({},e.nextState,{posts:t}),e}):e}),e.on("requestSaveRemotePost",function(e){console.info("githubPlugin - requestSaveRemotePost"),console.log("githubPlugin - requestSaveRemotePost",e);var t=e.rootState.application.config,n=e.nextState.post;return function(e,t){var n=e.meta,o=q.getRepo(n.username,n.repositoryName),i=void 0;if(t.original&&t.name!==t.original.name){var r=m.a.defer();i=r.promise;var a=e.meta.branch,s="_posts/"+t.original.name,c="_posts/"+t.name;o.move(a,s,c,function(n,i){if(n)r.reject(n);else if(t.published){var s=e.urls.getContentGhPath(t.original.name,t.original.type);(function(e,t,n){return function(e,t,n){var o=m.a.defer();return e.deleteFile(t,n,function(e,t){e?o.reject(e):(console.error(t),P=t.commit,o.resolve(t))}),o.promise}(e,t,n)})(o,a,s).then(function(e){r.resolve({post:t,sha:e})}).catch(function(e){r.reject(e)}).done()}else r.resolve({post:t,sha:i})})}else i=m()({post:t});return i}(t,n).then(function(e){return function(e,t){console.log("Write post",e,t);var n=e.meta,o=q.getRepo(n.username,n.repositoryName),i=n.branch,r="_posts/"+t.name,a="Update "+t.name,s=m.a.defer();return o.writeFile(i,r,t.content,a,function(n,o){n?s.reject(n):(t.original=b.a.omit(t,["original"]),t.original.url=e.urls.getContentUrl(t.original.name,t.original.type),t.original.path="_posts/"+t.original.name,t.original.sha=o,P=o.commit,console.info("Update lastCacheCommit",P),s.resolve(t))}),s.promise}(t,e.post)}).then(function(n){return M(t,n,e.rootState.authentication.userInformations)}).then(function(t){return e.nextState.post=t,e})}),e.on("requestSaveRemotePublishedElements",function(e){console.info("githubPlugin - requestSaveRemotePublishedElements"),console.log("githubPlugin - requestSaveRemotePublishedElements",e);var t=e.rootState.application.config.meta,n=q.getRepo(t.username,t.repositoryName),o=e.nextState.elementsToPublish.length,i=b.a.chunk(e.nextState.elementsToPublish,k);console.log("Writeall",e.nextState.elementsToPublish);var r=m.a.defer();return n.getBranch(t.branch,function(a,s){if(a){var c=m.a.defer();return r=c.promise,c.reject(a)}var u=0,l=i.reduce(function(e,i){return e.then(function(e){var r=m.a.defer(),a=i.map(function(e){return{path:e.path,mode:"100644",type:"blob",content:e.content}});return n.createTree(a,e,function(a,s){if(a)return r.reject(a);n.commit(e,s.sha,"Published "+(u+i.length)+"/"+o+" elements",function(e,o){if(e)return r.reject(e);u+=i.length,P=o,n.updateHead("heads/"+t.branch,o.sha,!1,function(e,t){if(console.log("updateHead",e,t),e)return r.reject(e);r.resolve(o.sha)})})}),r.promise})},m()(function(e,t){if(console.error(e,t),!t)return e.sha;var n=C()(e.committer.date);return C()(t.committer.date).isAfter(n)?t.sha:e.sha}({committer:s.commit.commit.committer,sha:s.commit.sha},P)));l.then(function(t){r.resolve(e)}).catch(function(e){r.reject(e)})}),r.promise}),e.on("requestDeleteRemotePost",function(e){console.info("githubPlugin - requestDeleteRemotePost"),console.log("githubPlugin - requestDeleteRemotePost",e);var t=m.a.defer(),n=e.rootState.application.config,o=n.meta,i=q.getRepo(o.username,o.repositoryName),r=e.nextState.post.original.path;return i.deleteFile(o.branch,r,function(n,o){n&&n.response&&404!==n.response.status?t.reject(n):(console.error("requestDeleteRemotePost",o),P=o.commit,t.resolve(e))}).catch(function(n){n&&n.response&&404===n.response.status&&t.resolve(e)}),t.promise}),e.on("requestDeleteRemotePublishedPost",function(e){console.info("githubPlugin - requestDeleteRemotePublishedPost"),console.log("githubPlugin - requestDeleteRemotePublishedPost",e);var t=m.a.defer(),n=e.rootState.application.config,o=n.meta,i=q.getRepo(o.username,o.repositoryName),r=n.urls.getContentGhPath(e.nextState.post.original.name,e.nextState.post.original.type);return i.deleteFile(o.branch,r,function(n,o){n?t.reject(n):(console.error("requestDeleteRemotePublishedPost",o),P=o.commit,t.resolve(e))}),t.promise}),e.on("application:request-save-config",function(e){console.info("githubPlugin - application:request-save-config"),console.log("githubPlugin - application:request-save-config",e);var t=e.nextState.application;return function(e){console.log("Write config",e);var t=m.a.defer(),n=e.meta,o=q.getRepo(n.username,n.repositoryName),r=n.branch;return o.writeFile(r,"hubpress/config.json",i()(e,null,2),"Update configuration file",function(e,n){e?t.reject(e):(P=n.commit,console.info("Update lastCacheCommit",P),t.resolve(n))}),t.promise}(t.config).then(function(e){return function(e){console.log("Github manageCname - ",e);var t=e.meta,n=q.getRepo(t.username,t.repositoryName),o=m.a.defer();t.cname&&""!==t.cname?(console.info("SettingsService - saveAndPublish save CNAME"),n.writeFile(t.branch,"CNAME",t.cname,"Update CNAME with "+t.cname,function(e,t){e?o.reject(e):(P=t.commit,console.info("Update lastCacheCommit",P),o.resolve(t))})):(console.info("SettingsService - saveAndPublish delete CNAME"),n.deleteFile(t.branch,"CNAME",function(e,t){e&&"not found"!==e?o.reject(e):o.resolve(t)}).then(function(e){console.log("SHA after delete",e),o.resolve(e)}).catch(function(e){404!==e.response.status?o.reject(e):o.resolve()}));return o.promise}(t.config)}).then(function(t){return e})}),e.on("receiveRenderingPost",function(e){return console.info("githubPlugin - receiveRenderingPost"),console.log("githubPlugin - receiveRenderingPost",e),e}),e.on("application:initialize-plugins",function(e){console.info("githubPlugin - application:initialize-plugins"),console.log("githubPlugin - application:initialize-plugins",e);var t="put your repository name here"===e.rootState.application.config.meta.repositoryName||"put your username here"===e.rootState.application.config.meta.username;return e.nextState.application.requireInitilisation=t,e.nextState.application.config.initialisationConfigComponent=w.a,e})};var o=n("mvHQ"),i=n.n(o),r=n("woOf"),a=n.n(r),s=n("6ltY"),c=n.n(s),u=n("j9g7"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=n("73D8"),h=n.n(f),g=n("/Luh"),m=n.n(g),v=n("M4fF"),b=n.n(v),x=n("PJh5"),C=n.n(x),y=n("bN/m"),w=n("IBrK"),k=50,P=null;function S(e){return function(){var t=m.a.defer();return e.getProfile(function(e,n){e?t.reject(e):t.resolve(b.a.pick(n,["login","id","name","location","blog","avatar_url","bio"]))}),t.promise}}function _(e){return d()(e+"-"+c.a.name+"-"+c.a.os)}function R(e,t){var n=m.a.defer(),o={scopes:["public_repo"],note:_(e)};return t.createAuthorization(o,function(e,t){e?n.reject(e):n.resolve(t)}),n.promise}var q=void 0;function M(e,t,n){var o=m.a.defer(),i=e.meta,r=q.getRepo(i.username,i.repositoryName);return console.log("getPostAuthor",t),r.listCommits({sha:e.meta.branch,path:t.original&&t.original.path||t.path},function(e,i){if(e&&404!==e.error)o.reject(e);else{var r=i[i.length-1].author;if(r&&r.login!==n.login){S(q.getUser(r.login))().then(function(e){r=a()({},e);var n=a()({},t,{author:r});o.resolve(n)}).catch(function(e){return o.reject(e)})}else{r=a()({},n);var s=a()({},t,{author:r});o.resolve(s)}}}),o.promise}},cOI0:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,'.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,.5)}.cm-animate-fat-cursor,.cm-fat-cursor-mark{-webkit-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;background-color:#7e7}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;-webkit-font-feature-settings:"calt";font-feature-settings:"calt";font-variant-ligatures:contextual}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-webkit-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}',""])},cmzl:function(e,t,n){"use strict";var o={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"nuxt-progress",style:{width:this.percent+"%",height:this.height,"background-color":this.canSuccess?this.color:this.failedColor,opacity:this.show?1:0}})},staticRenderFns:[]};t.a=o},ct3O:function(e,t,n){"use strict";var o=n("FIB3"),i=n("FdPX");var r=function(e){n("wGIl")},a=n("VU/8")(o.a,i.a,!1,r,null,null);t.a=a.exports},"d/OL":function(e,t,n){"use strict";t.a=function(e){e.on("hubpress:request-rendering-documents",function(e){console.info("asciidocPlugin - hubpress:request-rendering-documents"),console.log("asciidocPlugin - hubpress:request-rendering-documents",e);var t=e.rootState.application.config,n=(e.nextState.posts||[]).map(function(e){var n=i()({},e,m(t,e.content),{content:e.content}),o=c.a.pick(n,"attributes","author","html","tags","content","name","path","sha");n.title=o.title=o.attributes.$$smap.doctitle,n.image=o.image=o.attributes.$$smap["hp-image"],n.type=o.type=o.attributes.$$smap["hp-type"],n.tags=o.tags=v(o.attributes),n.url=o.url=b(t,n.type,o.name);var r=i()({},n,{original:o});return n.type&&"post"!==n.type||(r.original.published_at=r.published_at=o.name.split("-").slice(0,3).join("-")),r});return e.nextState.posts=n,e}),e.on("requestRenderingPost",function(e){console.info("asciidocPlugin - requestRenderingPost"),console.log("asciidocPlugin - requestRenderingPost",e);var t=m(e.rootState.application.config,e.nextState.post.content);e.nextState.post=i()({},e.nextState.post,t),e.nextState.post.title=t.attributes.$$smap.doctitle,e.nextState.post.image=t.attributes.$$smap["hp-image"],e.nextState.post.type=t.attributes.$$smap["hp-type"],e.nextState.post.tags=v(t.attributes),e.nextState.post.published_at=t.attributes.$$smap.published_at||e.nextState.post.published_at||l()().format("YYYY-MM-DD");var n=t.attributes.$$smap["hp-alt-title"];return e.nextState.post.type&&"post"!==e.nextState.post.type?e.nextState.post.name=d()(""+(n||e.nextState.post.title))+".adoc":e.nextState.post.name=d()(e.nextState.post.published_at+"-"+(n||e.nextState.post.title))+".adoc",e.nextState.post.url=b(e.rootState.application.config,e.nextState.post.type,e.nextState.post.name),e})};var o=n("woOf"),i=n.n(o),r=n("twCI"),a=n.n(r),s=n("M4fF"),c=n.n(s),u=n("PJh5"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=a()(!1,window.XMLHttpRequest),h=f.Opal,g=f.Asciidoctor(!0);function m(e,t){var n=h.hash({doctype:"article",backend:"html5",safe:"unsafe",attributes:["showtitle!","allow-uri-read","imagesdir="+e.urls.site+"/images","icons=font"]}),o=function(e){var t=e.split("pass::[more]");return{excerpt:t[0],full:t.join("")}}(t.replace(/gist::([0-9]*)\[(lines=[0-9]*\.\.[0-9]*)?,?(type=([\w.]*))?,?(file=([\w.]*))?\]/g,"[source,$4]\n----\ninclude::https://gist.githubusercontent.com/raw/$1/$6[$2]\n----\n")),i=g.$load(o.excerpt,n),r=g.$load(o.full,n);return{attributes:c.a.pick(r.attributes,["$$smap"]),excerpt:i.$convert(),html:r.$convert()}}function v(e){return e.$$smap["hp-tags"]&&e.$$smap["hp-tags"].split(",").map(function(e){return e.trim()}).filter(function(e){return""!==e})}function b(e,t,n){return e.urls.getContentUrl(n,t)}},dCDI:function(e,t,n){"use strict";(function(e,t){var o,i=n("pFYg"),r=n.n(i);o=function(e){var t;(t=e).overlayMode=function(e,n,o){return{startState:function(){return{base:t.startState(e),overlay:t.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(o){return{base:t.copyState(e,o.base),overlay:t.copyState(n,o.overlay),basePos:o.basePos,baseCur:null,overlayPos:o.overlayPos,overlayCur:null}},token:function(t,i){return(t!=i.streamSeen||Math.min(i.basePos,i.overlayPos)"},redirect:"/dashboard",meta:{auth:!0},children:t.nextState.routes.map(function(e){return console.log(e),e.entries}).reduce(function(e,t){return e.concat(t)},[])}]},o=new r.default(n);return o.routes=t.nextState.routes,o.beforeEach(function(e,t,n){var o=Object(a.default)();e.matched.some(function(e){return e.meta.auth})?o.state.authentication.isAuthenticated?n():n({path:"/login",query:{redirect:e.fullPath}}):n()}),o};var o=n("I3G/"),i=n.n(o),r=n("/ocq"),a=n("fbRD"),s=n("LEOq"),c=n.n(s),u=(n("7cn8"),n("YG9q")),l=n("QMmS"),p=n("3oxy"),d=n("H8Oa"),f=n("bxJ0"),h=n("WiUJ"),g=n("H1PK"),m=n("d/OL"),v=(n("Y2j8"),n("1AqL")),b=n("tLh+");console.log("router =============="),console.log("Router"),i.a.use(r.default),c.a.register(u.a,l.b,p.a,d.a,f.a,h.a,g.a,m.a,v.a,b.a),console.log("Registered plugins",c.a.list())},oz2E:function(e,t,n){"use strict";t.a={name:"dashboard",beforeCreate:function(){console.log("dashboard beforeCreate")},created:function(){console.log("dashboard created")}}},pSdL:function(e,t,n){var o=n("LnjV");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("2e903ce0",o,!0,{sourceMap:!1})},pyJH:function(e,t,n){"use strict";var o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{},[n("h4",{staticClass:"ui dividing header"},[e._v("Informations")]),n("div",{staticClass:"field"},[n("label",[e._v("Title")]),n("input",{attrs:{type:"text",name:"hubpress-title",placeholder:"Title"},domProps:{value:e.site.title}})]),n("div",{staticClass:"field"},[n("label",[e._v("Description")]),n("input",{attrs:{type:"text",name:"hubpress-description",placeholder:"Description"},domProps:{value:e.site.description}})]),n("div",{staticClass:"field"},[n("label",[e._v("Logo")]),n("input",{attrs:{type:"text",name:"hubpress-logo",placeholder:"Logo"},domProps:{value:e.site.logo}})]),n("div",{staticClass:"field"},[n("label",[e._v("Cover image")]),n("input",{attrs:{type:"text",name:"hubpress-cover-image",placeholder:"Cover image"},domProps:{value:e.site.cover}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Rendering")]),n("div",{staticClass:"field"},[n("label",[e._v("Live preview render delay (ms)")]),n("input",{attrs:{type:"text",name:"hubpress-render-delay",placeholder:"300"},domProps:{value:e.meta.delay}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Generation")]),n("div",{staticClass:"field"},[n("label",[e._v("Theme")]),n("input",{attrs:{type:"text",name:"hubpress-theme",placeholder:"Theme"},domProps:{value:e.theme.name}})]),n("div",{staticClass:"field"},[n("label",[e._v("Posts per page")]),n("input",{attrs:{type:"text",name:"hubpress-posts-per-page",placeholder:"Posts per page"},domProps:{value:e.site.postsPerPage}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Services")]),n("div",{staticClass:"field"},[n("label",[e._v("Google analytics")]),n("input",{attrs:{type:"text",name:"hubpress-ga",placeholder:"Google analytics"},domProps:{value:e.site.googleAnalytics}})]),n("div",{staticClass:"field"},[n("label",[e._v("Disqus shortname")]),n("input",{attrs:{type:"text",name:"hubpress-disqus",placeholder:"Disqus shortname"},domProps:{value:e.site.disqus}})])])},staticRenderFns:[]};t.a=o},qcny:function(e,t,n){"use strict";n.d(t,"b",function(){return D});var o=n("Xxa5"),i=n.n(o),r=n("//Fk"),a=(n.n(r),n("C4MV")),s=n.n(a),c=n("woOf"),u=n.n(c),l=n("Dd8w"),p=n.n(l),d=n("exGp"),f=n.n(d),h=n("MU8w"),g=(n.n(h),n("I3G/")),m=n.n(g),v=n("p3jY"),b=n.n(v),x=n("mtxM"),C=n("0F0d"),y=n("HBB+"),w=n("WRRc"),k=n("ct3O"),P=n("Hot+"),S=n("yTq1"),_=n("YLfZ"),R=n("J2Ti"),q=n("zQW4"),M=n("6hdJ");n.d(t,"a",function(){return k.a});var $,D=($=f()(i.a.mark(function e(t){var n,o,r,a,c,l,d;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(x.a)(t),(o=Object(R.a)(t)).$router=n,r=p()({router:n,store:o,nuxt:{defaultTransition:j,transitions:[j],setTransitions:function(e){return Array.isArray(e)||(e=[e]),e=e.map(function(e){return e=e?"string"==typeof e?u()({},j,{name:e}):u()({},j,e):j}),this.$options.nuxt.transitions=e,e},err:null,dateErr:null,error:function(e){e=e||null,r.context._errored=!!e,"string"==typeof e&&(e={statusCode:500,message:e});var n=this.nuxt||this.$options.nuxt;return n.dateErr=Date.now(),n.err=e,t&&(t.nuxt.error=e),e}}},S.a),o.app=r,a=t?t.next:function(e){return r.router.push(e)},c=void 0,t?c=n.resolve(t.url).route:(l=Object(_.d)(n.options.base),c=n.resolve(l).route),e.next=10,Object(_.m)(r,{route:c,next:a,error:r.nuxt.error.bind(r),store:o,payload:t?t.payload:void 0,req:t?t.req:void 0,res:t?t.res:void 0,beforeRenderFns:t?t.beforeRenderFns:void 0});case 10:if(d=function(e,t){if(!e)throw new Error("inject(key, value) has no key provided");if(!t)throw new Error("inject(key, value) has no value provided");r[e="$"+e]=t,o[e]=r[e];var n="__nuxt_"+e+"_installed__";m.a[n]||(m.a[n]=!0,m.a.use(function(){m.a.prototype.hasOwnProperty(e)||s()(m.a.prototype,e,{get:function(){return this.$root.$options[e]}})}))},window.__NUXT__&&window.__NUXT__.state&&o.replaceState(window.__NUXT__.state),"function"!=typeof q.a){e.next=15;break}return e.next=15,Object(q.a)(r.context,d);case 15:if("function"!=typeof M.a){e.next=18;break}return e.next=18,Object(M.a)(r.context,d);case 18:e.next=21;break;case 21:return e.abrupt("return",{app:r,router:n,store:o});case 22:case"end":return e.stop()}},e,this)})),function(e){return $.apply(this,arguments)});m.a.component(C.a.name,C.a),m.a.component(y.a.name,y.a),m.a.component(w.a.name,w.a),m.a.component(P.a.name,P.a),m.a.use(b.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var j={name:"page",mode:"out-in",appear:!0,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"}},r6qT:function(e,t,n){var o=n("HEYa");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("2b9275f1",o,!0,{sourceMap:!1})},rO0h:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".grid[data-v-40a16617]{margin:0;height:100%;background-color:#dadada}#loginForm.column[data-v-40a16617]{max-width:450px;text-align:center}.column[data-v-40a16617]{max-width:750px}",""])},"tLh+":function(e,t,n){"use strict";t.a=function(e){e.on("requestGenerateIndex",function(e){console.info("rssPlugin - requestGenerateIndex"),console.log("rssPlugin - requestGenerateIndex",e);var t=e.rootState.application.config.site||{},n=e.rootState.application.config.urls.site||"",o=e.nextState.publishedPosts||[],r=new i.a({title:t.title||"",description:t.description||"",feed_url:n+"/rss/",site_url:n,image_url:t.cover,ttl:"60"});o.forEach(function(e){r.item({title:e.title,description:e.html,url:""+n+e.url,categories:e.tags,author:e.author.name,date:e.published_at})});var a=r.xml(),s=[];return s.push({name:"RSS",path:"rss/index.xml",content:a,message:"Publish rss feed"}),e.nextState.elementsToPublish=(e.nextState.elementsToPublish||[]).concat(s),e})};var o=n("DVIz"),i=n.n(o)},unZF:function(e,t,n){"use strict";var o=n("BO1k"),i=n.n(o),r=n("GfDd"),a=r.keys();function s(e){var t=r(e);return t.default?t.default:t}var c={},u=!0,l=!1,p=void 0;try{for(var d,f=i()(a);!(u=(d=f.next()).done);u=!0){var h=d.value;c[h.replace(/^\.\//,"").replace(/\.(js|ts)$/,"")]=s(h)}}catch(e){l=!0,p=e}finally{try{!u&&f.return&&f.return()}finally{if(l)throw p}}t.a=c},vKgl:function(e,t,n){var o=n("EgsU");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("44921a73",o,!0,{sourceMap:!1})},vXEZ:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".nuxt-progress{position:fixed;top:0;left:0;right:0;height:2px;width:0;-webkit-transition:width .2s,opacity .4s;transition:width .2s,opacity .4s;opacity:1;background-color:#efc14e;z-index:999999}",""])},wGIl:function(e,t,n){var o=n("m8kW");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("6bc7b368",o,!0,{sourceMap:!1})},wQtD:function(e,t,n){"use strict";t.a={name:"navigation-settings",data:function(){return{newNav:{label:"",url:""},navigation:this.$store.state.application.config.navigation||[]}},computed:{isNotValid:function(){return""===this.newNav.label.trim()||""===this.newNav.url.trim()}},methods:{remove:function(e){this.navigation.splice(e,1)},clear:function(){this.newNav={label:"",url:""}},add:function(e){this.navigation.push(e),this.clear()}}}},wrAo:function(e,t,n){"use strict";t.a={name:"hubpress-settings-social",computed:{social:function(){return this.$store.state.application.config.socialnetwork||{}}}}},xgbc:function(e,t,n){var o=n("y4OV");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("0c6dd1d8",o,!0,{sourceMap:!1})},y4OV:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"",""])},yJpT:function(e,t,n){var o=n("j9sj");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n("rjj0")("33615082",o,!0,{sourceMap:!1})},yTq1:function(e,t,n){"use strict";var o=n("//Fk"),i=n.n(o),r=n("I3G/"),a=n.n(r),s=n("F88d"),c=n("XSDV"),u=(n.n(c),{_default:function(){return n.e(0).then(n.bind(null,"Ma2J")).then(function(e){return e.default||e})}}),l={};t.a={head:{title:"Hubpress: A web application to build your Blog",meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{hid:"description",name:"description",content:"Nuxt.js project"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"},{rel:"stylesheet",href:"../static/semantic/semantic.min.css"}],style:[],script:[]},render:function(e,t){var n=e("nuxt-loading",{ref:"loading"}),o=e(this.layout||"nuxt");return e("div",{domProps:{id:"__nuxt"}},[n,e("transition",{props:{name:"layout",mode:"out-in"}},[e("div",{domProps:{id:"__layout"},key:this.layoutName},[o])])])},data:function(){return{layout:null,layoutName:""}},beforeCreate:function(){a.a.util.defineReactive(this,"nuxt",this.$options.nuxt)},created:function(){a.a.prototype.$nuxt=this,"undefined"!=typeof window&&(window.$nuxt=this),this.error=this.nuxt.error},mounted:function(){this.$loading=this.$refs.loading},watch:{"nuxt.err":"errorChanged"},methods:{errorChanged:function(){this.nuxt.err&&this.$loading&&(this.$loading.fail&&this.$loading.fail(),this.$loading.finish&&this.$loading.finish())},setLayout:function(e){e&&l["_"+e]||(e="default"),this.layoutName=e;var t="_"+e;return this.layout=l[t],this.layout},loadLayout:function(e){var t=this;e&&(u["_"+e]||l["_"+e])||(e="default");var n="_"+e;return l[n]?i.a.resolve(l[n]):u[n]().then(function(e){return l[n]=e,delete u[n],l[n]}).catch(function(e){if(t.$nuxt)return t.$nuxt.error({statusCode:500,message:e.message})})}},components:{NuxtLoading:s.a}}},yUYC:function(e,t,n){"use strict";var o=n("I3G/"),i=n.n(o);t.a={name:"nuxt-loading",data:function(){return{percent:0,show:!1,canSuccess:!0,duration:5e3,height:"2px",color:"#3B8070",failedColor:"red"}},methods:{start:function(){var e=this;return this.show=!0,this.canSuccess=!0,this._timer&&(clearInterval(this._timer),this.percent=0),this._cut=1e4/Math.floor(this.duration),this._timer=setInterval(function(){e.increase(e._cut*Math.random()),e.percent>95&&e.finish()},100),this},set:function(e){return this.show=!0,this.canSuccess=!0,this.percent=Math.floor(e),this},get:function(){return Math.floor(this.percent)},increase:function(e){return this.percent=this.percent+Math.floor(e),this},decrease:function(e){return this.percent=this.percent-Math.floor(e),this},finish:function(){return this.percent=100,this.hide(),this},pause:function(){return clearInterval(this._timer),this},hide:function(){var e=this;return clearInterval(this._timer),this._timer=null,setTimeout(function(){e.show=!1,i.a.nextTick(function(){setTimeout(function(){e.percent=0},200)})},500),this},fail:function(){return this.canSuccess=!1,this}}}},zQW4:function(e,t,n){"use strict";for(var o=n("woOf"),i=n.n(o),r=n("//Fk"),a=n.n(r),s=n("BO1k"),c=n.n(s),u=n("mtWM"),l=n.n(u),p={setHeader:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",o=!0,i=!1,r=void 0;try{for(var a,s=c()(Array.isArray(n)?n:[n]);!(o=(a=s.next()).done);o=!0){var u=a.value;if(!t)return void delete this.defaults.headers[u][e];this.defaults.headers[u][e]=t}}catch(e){i=!0,r=e}finally{try{!o&&s.return&&s.return()}finally{if(i)throw r}}},setToken:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",o=e?(t?t+" ":"")+e:null;this.setHeader("Authorization",o,n)},onRequest:function(e){this.interceptors.request.use(function(t){return e(t)||t})},onResponse:function(e){this.interceptors.response.use(function(t){return e(t)||t})},onRequestError:function(e){this.interceptors.request.use(void 0,function(t){return e(t)||a.a.reject(t)})},onResponseError:function(e){this.interceptors.response.use(void 0,function(t){return e(t)||a.a.reject(t)})},onError:function(e){this.onRequestError(e),this.onResponseError(e)}},d=function(e){p["$"+e]=function(){return this[e].apply(this,arguments).then(function(e){return e&&e.data})}},f=["request","delete","get","head","options","post","put","patch"],h=0;h1&&(r=(e.path||"")+"page/"+o+"/index.html"),o>1&&(v=o-1),oo-1||g+1===t.length){var y=l.a.template(e.template,{pagination:{prev:v,next:m,page:o,pages:h,total:t.length,limit:u},context:"index"===e.template&&0===v?"home":e.template,posts:a,tag:e.tag,author:e.author,title:i.title,description:i.description,socialnetwork:p,relativeUrl:""},{config:n,theme:e.opts.nextState.theme});s.push({name:"page-"+o,path:r,content:y,message:"Publish page-"+o+" "+e.template}),a=[],o++}}),e.opts.nextState.elementsToPublish=(e.opts.nextState.elementsToPublish||[]).concat(s),e.opts}}]),e}();t.a=new f},BJG1:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"post-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.showAsciidocHelp()}}},[e._m(0)]),n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchLight()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.lightLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{sun:e.isDark,moon:!e.isDark}})])]),n("a",{staticClass:"item html-preview",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreview(!1)}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.previewLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{unhide:!e.isPreviewVisible||e.isIFrame,hide:e.isPreviewVisible&&!e.isIFrame}})])]),n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreview(!0)}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.previewLabelIFrame,"data-position":"bottom right"}},[n("i",{staticClass:"large icon globe"})])]),e.isPreviewVisible?n("a",{staticClass:"item preview-resize",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreviewSize()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.resizeLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{expand:!e.isFullScreen,compress:e.isFullScreen}})])]):e._e(),e.isRemoteActionVisible?n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.remoteSave()}}},[e._m(1)]):e._e(),e.isRemoteActionVisible?n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.publish()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.publishLabel,"data-position":"bottom right"}},[n("i",{staticClass:"icons"},[n("i",{staticClass:"cloud large icon",class:{download:e.isPostPublished,upload:!e.isPostPublished}})])])]):e._e()])]),e._m(2),n("div",{staticClass:"post-editor"},[n("div",{staticClass:"ui grid",class:{dark:e.isDark,light:!e.isDark}},[n("div",{staticClass:"row"},[n("div",{staticClass:"column",class:{"sixteen wide mobile height wide computer is-preview-visible":e.isPreviewVisible,"sixteen wide":!e.isPreviewVisible,"is-hidden":e.isFullScreen},attrs:{id:"asciidoc-content"}},[n("codemirror",{ref:"codeEditor",staticClass:"container",attrs:{code:e.content,options:e.editorOption},on:{input:e.contentChange}})],1),e.isPreviewVisible?n("div",{staticClass:"column",class:{"sixteen wide mobile height wide computer is-preview-visible":e.isPreviewVisible,"is-iframe":e.isIFrame,"is-fullscreen":e.isFullScreen},attrs:{id:"asciidoc-preview"}},[n("preview",{attrs:{post:e.post,iframe:e.isIFrame}})],1):e._e()])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Need some help?","data-position":"bottom right"}},[t("i",{staticClass:"help large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Save your post remotely","data-position":"bottom right"}},[t("i",{staticClass:"save large icon"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui modal",attrs:{id:"asciidoc-help"}},[n("i",{staticClass:"close icon"}),n("div",{staticClass:"header"},[e._v("\n Asciidoc syntax help\n ")]),n("div",{staticClass:"content"},[n("table",{staticClass:"ui table"},[n("thead",[n("tr",[n("th",{staticClass:"heigth wide"},[e._v("Result")]),n("th",{staticClass:"heigth wide"},[e._v("Asciidoc")])])]),n("tbody",[n("tr",[n("td",[e._v("H1")]),n("td",[e._v("= Title")])]),n("tr",[n("td",[e._v("H2")]),n("td",[e._v("== Title")])]),n("tr",[n("td",[e._v("H3")]),n("td",[e._v("=== Title")])]),n("tr",[n("td",[n("strong",[e._v("Bold")])]),n("td",[e._v("*content*")])]),n("tr",[n("td",[n("i",[e._v("Emphasize")])]),n("td",[e._v("_content_")])]),n("tr",[n("td",[n("a",{attrs:{href:"#"}},[e._v("Link")])]),n("td",[e._v("http://asciidoctor.org[Asciidoctor]")])]),n("tr",[n("td",[e._v("Image Block")]),n("td",[e._v("image::sunset.jpg[]")])]),n("tr",[n("td",[e._v("Image Inline")]),n("td",[e._v('Click image:icons/pause.png[title="Pause"] when you need a break.')])]),n("tr",[n("td",[e._v("Video")]),n("td",[e._v("video::video_file.mp4[]")])]),n("tr",[n("td",[e._v("Unordered list")]),n("td",[e._v("* item")])]),n("tr",[n("td",[e._v("Ordered list")]),n("td",[e._v(". item")])]),n("tr",[n("td",[n("code",[e._v("Inline code")])]),n("td",[e._v("`code`")])])])]),n("p",[e._v("\n More informations about the Asciidoc syntax here: "),n("a",{attrs:{href:"http://asciidoctor.org/docs/asciidoc-syntax-quick-reference/",target:"_blank"}},[e._v("AsciiDoc Syntax Quick Reference")])])])])}]};t.a=i},BdWi:function(e,t,n){"use strict";t.a=function(e){console.info("PagesGenerator - generate"),console.log("PagesGenerator - generate",e);var t=e;return e.nextState.publishedPages.forEach(function(e){t=Object(o.a)(t,e)}),t};n("APUd");var i=n("j+6P"),o=(n.n(i),n("KgKs"))},E1SC:function(e,t,n){"use strict";var i=n("SUis"),o=n("7Fxy");var r=function(e){n("vKgl")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},EgsU:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".posts-container .menu{min-height:47px}.posts-container{height:100%;overflow:auto}.posts.ui.container{padding-top:60px}.image.cover>div{width:100%;height:200px;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}@media screen and (max-width:622px){.posts.ui.container .ui.card .image.cover{display:none}}",""])},F6eF:function(e,t,n){"use strict";var i=n("7t+N"),o=n.n(i);t.a={name:"initialise-configuration",data:function(){return{username:"",repositoryName:"hubpress.io",branch:"master",cname:void 0}},mounted:function(){o()("div.dropdown").dropdown()},computed:{isValid:function(){return""!=this.username.trim()&&""!=this.repositoryName.trim()}},methods:{submit:function(){var e={username:this.username,repositoryName:this.repositoryName,branch:this.branch,cname:this.cname};this.$store.dispatch("application:save-startup-config",e)}}}},F88d:function(e,t,n){"use strict";var i=n("yUYC"),o=n("cmzl");var r=function(e){n("0xYM")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},FIB3:function(e,t,n){"use strict";t.a={name:"nuxt-error",props:["error"],head:function(){return{title:this.message,meta:[{name:"viewport",content:"width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"}]}},computed:{statusCode:function(){return this.error&&this.error.statusCode||500},message:function(){return this.error.message||"Error"}}}},FdPX:function(e,t,n){"use strict";var i={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"__nuxt-error-page"},[t("div",{staticClass:"error"},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"90",height:"90",fill:"#DBE1EC",viewBox:"0 0 48 48"}},[t("path",{attrs:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}})]),t("div",{staticClass:"title"},[this._v(this._s(this.message))]),404===this.statusCode?t("p",{staticClass:"description"},[t("nuxt-link",{staticClass:"error-link",attrs:{to:"/"}},[this._v("Back to the home page")])],1):this._e(),this._m(0)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"logo"},[t("a",{attrs:{href:"https://nuxtjs.org",target:"_blank",rel:"noopener"}},[this._v("Nuxt.js")])])}]};t.a=i},FoP8:function(module,__webpack_exports__,__webpack_require__){"use strict";function applyScript(hasChanged){if(hasChanged){for(var element=document.getElementById("html-content"),scripts=element.getElementsByTagName("script"),addedScripts=[],i=0;i.menu[data-v-0536f20d]{height:47px}",""])},HUXV:function(e,t,n){"use strict";var i=n("6Ndi");t.a={refreshAfterSavedConfig:function(e){return i.a.fireRequestTheme(e).then(function(t){return i.a.fireReceiveTheme(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return console.time("Build content"),e}).then(function(e){return i.a.fireRequestGenerateIndex(e)}).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGeneratePosts(e)}).then(function(e){return i.a.fireReceiveGeneratePosts(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)}).then(function(e){return i.a.fireRequestLocalPublishedPages(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPages(e)}).then(function(e){return i.a.fireRequestGeneratePages(e)}).then(function(e){return i.a.fireReceiveGeneratePages(e)}).then(function(e){return console.timeEnd("Build content"),e}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})}}},"Hot+":function(e,t,n){"use strict";var i=n("I3G/"),o=n.n(i),r=n("HBB+"),a=n("ct3O"),s=n("YLfZ");t.a={name:"nuxt",props:["nuxtChildKey","keepAlive"],render:function(e){return this.nuxt.err?e("nuxt-error",{props:{error:this.nuxt.err}}):e("nuxt-child",{key:this.routerViewKey,props:this.$props})},beforeCreate:function(){o.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(s.b)(this.$route.matched[0].path)(this.$route.params);var e=this.$route.matched[0]&&this.$route.matched[0].components.default;return e&&e.options&&e.options.key?"function"==typeof e.options.key?e.options.key(this.$route):e.options.key:this.$route.path}},components:{NuxtChild:r.a,NuxtError:a.a}}},IBrK:function(e,t,n){"use strict";var i=n("F6eF"),o=n("N3Gg");var r=function(e){n("XkEn")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Ie2b:function(e,t){},Irdm:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"settings-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.submit(t)}}},[e._m(0)])])]),n("div",{staticClass:"ui container settings-content"},[e._m(1),n("div",{staticClass:"ui divider"}),n("form",{staticClass:"ui form",attrs:{id:"mainForm"}},[n("div",{staticClass:"ui secondary pointing menu"},[n("div",{staticClass:"item active",attrs:{"data-tab":"application",id:"application-tab"}},[e._v("Application")]),e._l(e.tabs,function(t){return n("div",{key:t.id,staticClass:"item",attrs:{"data-tab":t.id}},[e._v(e._s(t.label))])})],2),n("div",{staticClass:"ui bottom attached tab segment active",attrs:{"data-tab":"application"}},[n("h4",{staticClass:"ui dividing header"},[e._v("Domain")]),n("div",{staticClass:"field"},[n("label",[e._v("CNAME")]),n("input",{attrs:{type:"text",name:"application-cname",placeholder:"CNAME"},domProps:{value:e.config.meta.cname}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Metadata (set in config.json)")]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub username")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-username",placeholder:"Github username"},domProps:{value:e.config.meta.username}})]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub repository name")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-repository-name",placeholder:"GitHub repository name"},domProps:{value:e.config.meta.repositoryName}})]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub branch")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-branch",placeholder:"GitHub branch"},domProps:{value:e.config.meta.branch}})]),e._m(2)]),e._l(e.tabs,function(e){return n("div",{key:e.id,staticClass:"ui bottom attached tab segment ",attrs:{"data-tab":e.id}},[n(e.id,{tag:"component"})],1)})],2)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Save your settings","data-position":"bottom right"}},[t("i",{staticClass:"save large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"ui center aligned icon header"},[t("i",{staticClass:"circular settings icon"}),this._v("\n Settings\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"disabled field"},[t("label",[this._v("Blog URL")]),t("input",{attrs:{type:"text",disabled:"",name:"application-blog-url",placeholder:"Blog URL"}})])}]};t.a=i},J2Ti:function(e,t,n){"use strict";n.d(t,"a",function(){return w});var i=n("woOf"),o=n.n(i),r=n("BO1k"),a=n.n(r),s=n("I3G/"),c=n.n(s),u=n("NYxO");c.a.use(u.default);var l=n("1H2/"),p=l.keys(),d={},f=void 0;if(p.forEach(function(e){-1!==e.indexOf("./index.")&&(f=e)}),f&&(d=P(f)),"function"!=typeof d){d.modules||(d.modules={});var h=!0,g=!1,m=void 0;try{for(var v,b=a()(p);!(h=(v=b.next()).done);h=!0){var x=v.value,C=x.replace(/^\.\//,"").replace(/\.(js|ts)$/,"");if("index"!==C){var y=C.split(/\//);(e=k(d,y))[C=y.pop()]=P(x),e[C].namespaced=!0}}}catch(e){g=!0,m=e}finally{try{!h&&b.return&&b.return()}finally{if(g)throw m}}}var w=d instanceof Function?d:function(){return new u.default.Store(o()({strict:!1},d,{state:d.state instanceof Function?d.state():{}}))};function P(e){var t=l(e),n=t.default||t;if(n.commit)throw new Error("[nuxt] store/"+e.replace("./","")+" should export a method which returns a Vuex instance.");if(n.state&&"function"!=typeof n.state)throw new Error("[nuxt] state should be a function in store/"+e.replace("./",""));return n}function k(e,t){if(1===t.length)return e.modules;var n=t.shift();return e.modules[n]=e.modules[n]||{},e.modules[n].namespaced=!0,e.modules[n].modules=e.modules[n].modules||{},k(e.modules[n],t)}},JtYm:function(e,t,n){"use strict";var i=n("6Ndi");function o(e){return i.a.fireRequestLocalPosts(e).then(function(e){return i.a.fireReceiveLocalPosts(e)})}t.a={deletePost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=t,e}).then(function(e){return e.nextState.post.original?i.a.fireRequestDeleteRemotePost(e).then(function(e){return i.a.fireReceiveDeleteRemotePost(e)}):e}).then(function(e){return i.a.fireRequestDeleteLocalPost(e)}).then(function(e){return i.a.fireReceiveDeleteLocalPost(e)}).then(function(e){return e.nextState.post.published?i.a.fireRequestDeleteRemotePublishedPost(e).then(function(e){return i.a.fireReceiveDeleteRemotePublishedPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return i.a.fireRequestGenerateIndex(e)}).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)}):e}).then(o)},getLocalPost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)})},getLocalPosts:o,remoteSavePost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){return i.a.fireRequestSaveRemotePost(e)}).then(function(e){return i.a.fireReceiveSaveRemotePost(e)}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)})},renderAndSavePost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){return e.nextState.post.content=e.payload.post.content,e}).then(function(e){return i.a.fireRequestRenderingPost(e)}).then(function(e){return i.a.fireReceiveRenderingPost(e)}).then(function(e){return e.nextState.post&&e.nextState.post.title?i.a.fireRequestSaveLocalPost(e).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}):e}).then(function(e){var t=e.nextState.post.original;return e.nextState.post.original=e.nextState.post,i.a.fireRequestGeneratePost(e).then(function(e){return i.a.fireReceiveGeneratePost(e)}).then(function(e){var n=e.nextState.elementsToPublish[0]||{};return e.nextState.post.publishedContent=n.content,e.nextState.post.original=t,e})})},publishPost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=_.union(e.nextState.post.tags,t),e}).then(function(e){return i.a.fireRequestSaveRemotePost(e)}).then(function(e){return i.a.fireReceiveSaveRemotePost(e)}).then(function(e){return e.nextState.post.original.author=e.nextState.post.original.author||e.nextState.post.author,e.nextState.post.published=1,e}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return i.a.fireRequestGeneratePost(e)}).then(function(e){return i.a.fireReceiveGeneratePost(e)}).then(function(e){return"post"!==e.nextState.post.type?e:i.a.fireRequestGenerateIndex(e).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)})}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})},unpublishPost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=t,e}).then(function(e){return i.a.fireRequestDeleteRemotePublishedPost(e)}).then(function(e){return i.a.fireReceiveDeleteRemotePublishedPost(e)}).then(function(e){return e.nextState.post.published=0,e}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return"post"!==e.nextState.post.type?e:i.a.fireRequestGenerateIndex(e).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)})}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})}}},KMrN:function(e,t,n){"use strict";var i=n("LEOq"),o=n.n(i);t.a={authenticate:function(e){return function(e){return o.a.fire("requestAuthentication",e)}(e).then(function(e){return(t=e).nextState.twoFactorRequired?payload:o.a.fire("receiveAuthentication",t);var t})},initialize:function(e){return function(e){return o.a.fire("requestSavedAuth",e)}(e).then(function(e){return t=e,o.a.fire("receiveSavedAuth",t);var t})}}},KOTd:function(e,t,n){"use strict";t.a=function(e){console.info("AuthorGenerator - generate"),console.log("AuthorGenerator - generate",e);var t=void 0;if(!s.a.isTemplateAvailable("author"))return e;t=e.nextState.author?e.nextState.publishedPosts.filter(function(t){return t.author.login===e.nextState.author.login}):e.nextState.publishedPosts;var n=r.a.reduce(t,function(e,t){return e[t.author.login]=e[t.author.login]||[],e[t.author.login].push(t),e},{}),o=e;return r.a.each(n,function(e,t){var n=e[0].author;n.name=n.name||n.login,n.slug=t,n.website=n.blog,n.status="",o=i.a.generate({opts:o,posts:e,author:n,template:"author",path:"author/"+t+"/"})}),o};var i=n("APUd"),o=n("M4fF"),r=n.n(o),a=n("j+6P"),s=n.n(a),c=n("n+xr");n.n(c)},KgKs:function(e,t,n){"use strict";t.a=function(e,t){console.info("PostGenerator - generate"),console.log("PostGenerator - generate",e);var n=t,i=o()({},n.original);i.tags=a.a.map(i.tags,function(e){return{name:e,slug:l()(e)}});var r=i.author;i.author={id:r.id,name:r.name||r.login,location:r.location,website:r.blog,image:r.avatar_url,profile_image:r.avatar_url,bio:r.bio,status:"",slug:r.login};var s=e.rootState.application.config,u=s.urls;e.nextState.theme.name,e.nextState.theme.version,s.urls.theme;i.urls=u,i.status="published",i.feature_image=i.image;var p=c.a.template(n.type||"post",{context:n.type||"post",socialnetwork:s.socialnetwork,relativeUrl:n.url,post:i,author:i.author},{config:s,theme:e.nextState.theme}),d=[];return d.push({title:n.title,image:n.image,name:n.name,path:s.urls.getContentGhPath(n.name,n.type),url:s.urls.getContentGhPath(n.name,n.type),content:p,message:"Publish "+n.name,published_at:n.published_at}),e.nextState.elementsToPublish=(e.nextState.elementsToPublish||[]).concat(d),e};var i=n("woOf"),o=n.n(i),r=n("M4fF"),a=n.n(r),s=n("j+6P"),c=n.n(s),u=n("n+xr"),l=n.n(u)},LB67:function(e,t,n){"use strict";var i=n("6Ndi");t.a={authenticate:function(e){return i.a.fireRequestAuthentication(e).then(function(e){return i.a.fireReceiveAuthentication(e)})}}},LnjV:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"",""])},MHN4:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".about-content{padding-top:60px}",""])},Mha6:function(e,t,n){var i=n("ys1n");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("4942fa76",i,!0,{sourceMap:!1})},N3Gg:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"initialise-configuration"},[e._m(0),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"content"},[e._v("\n We need to initialize your configuration before a first use.\n ")]),n("div",{staticClass:"ui divider"}),n("form",{staticClass:"ui form",attrs:{id:"configurationForm"},on:{submit:function(t){t.preventDefault(),e.submit()}}},[n("div",{staticClass:"required field"},[n("label",[e._v("Username")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.username,expression:"username"}],attrs:{type:"text",name:"configuration-username",placeholder:"Your github username"},domProps:{value:e.username},on:{input:function(t){t.target.composing||(e.username=t.target.value)}}})]),n("div",{staticClass:"required field"},[n("label",[e._v("Repository name")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.repositoryName,expression:"repositoryName"}],attrs:{type:"text",name:"configuration-cname",placeholder:"The name of your repository"},domProps:{value:e.repositoryName},on:{input:function(t){t.target.composing||(e.repositoryName=t.target.value)}}})]),n("div",{staticClass:"required field"},[n("label",[e._v("Branch")]),n("div",{staticClass:"ui selection dropdown"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.branch,expression:"branch"}],attrs:{type:"hidden",name:"branch"},domProps:{value:e.branch},on:{input:function(t){t.target.composing||(e.branch=t.target.value)}}}),n("i",{staticClass:"dropdown icon"}),n("div",{staticClass:"default text"},[e._v("master")]),e._m(1)])]),n("div",{staticClass:"field"},[n("label",[e._v("Domain name")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.cname,expression:"cname"}],attrs:{type:"text",name:"configuration-cname",placeholder:"Your domain name if you have one"},domProps:{value:e.cname},on:{input:function(t){t.target.composing||(e.cname=t.target.value)}}})]),n("button",{staticClass:"ui fluid large submit button",attrs:{type:"submit",name:"button",disabled:!e.isValid}},[e._v("Ok, let's go!")])]),e._m(2)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"ui center aligned icon header"},[t("i",{staticClass:"circular configure icon"}),this._v("\n Configuration\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"menu"},[t("div",{staticClass:"item",attrs:{"data-value":"master"}},[this._v("master")]),t("div",{staticClass:"item",attrs:{"data-value":"gh-pages"}},[this._v("gh-pages")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui message"},[this._v("\n If you have questions about how to use HubPress, "),t("a",{attrs:{href:"https://hubpress.gitbooks.io/hubpress-knowledgebase/content/"}},[this._v("here is the right place.")])])}]};t.a=i},NpFX:function(e,t,n){"use strict";var i=n("FoP8"),o=n("XO7e");var r=function(e){n("YDvP")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Pm0L:function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"f",function(){return o}),n.d(t,"g",function(){return r}),n.d(t,"h",function(){return a}),n.d(t,"d",function(){return s}),n.d(t,"c",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"a",function(){return l});var i="login:submit",o="login:updateEmail",r="login:updatePassword",a="login:updateTwoFactorCode",s="authorisation:request-login",c="authorisation:receive-login",u="authorisation:failure-login",l="authorisation:authentication-done"},Q7NK:function(e,t,n){"use strict";(function(e,t){var i,o=n("pFYg"),r=n.n(o);i=function(e){e.defineMode("asciidoc",function(e,t){var n=1e3,i=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],i=[],o=0,r=this.matchMappings[t]={defaultToken:"text"},a="g",s=[],c=0;c1?this.$applyToken:u.token);p>1&&(/\\\d/.test(u.regex)?l=u.regex.replace(/\\([0-9]+)/g,function(e,t){return"\\"+(parseInt(t,10)+o+1)}):(p=1,l=this.removeCapturingGroups(u.regex)),u.splitRegex||"string"==typeof u.token||s.push(u)),r[o]=c,o+=p,i.push(l),u.onMatch||(u.onMatch=null)}}s.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)},this),this.regExps[t]=new RegExp("("+i.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(e){n=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var i=[],o=0,r=n.length;ol){var m=e.substring(l,g-h.length);p.type==d?p.value+=m:(p.type&&u.push(p),p={type:d,value:m})}for(var v=0;vn){for(;l1&&i[0]!==o&&i.unshift(o),{tokens:u,state:i.length?i:o}}}).call(i.prototype);var o={empty:null,text:null,keyword:"keyword",control:"keyword",operator:"operator",constant:"atom",numeric:"number",character:"atom",escape:"atom",variable:"variable",parameter:"variable-3",language:"variable-2",comment:"comment",line:"comment","double-slash":"comment","double-dash":"comment","number-sign":"comment",percentage:"comment",block:"comment",doc:"comment",string:"string",quoted:"string",single:"string",double:"string",triple:"string",unquoted:"string",interpolated:"string",regexp:"string-2",meta:"keyword",literal:"qualifier",support:"builtin",markup:"tag",underline:"link",link:"link",strong:"strong",heading:"header",heading2:"header-2",heading3:"header-3",heading4:"header-4",heading5:"header-5",heading6:"header-6",em:"em",list:"variable-2",numbered:"variable-2",unnumbered:"variable-2",quote:"quote",raw:"variable-2",invalid:"error",illegal:"invalidchar",deprecated:"error"},r=function(e,t){var n=t.plannedTokens.shift();return void 0===n?null:(e.match(n.value),function(e){for(var t=null,n=0;n0)return r(e,t);var n=t.current,i=e.match(/.*$/,!1)[0],o=s.getLineTokens(i,n);return t.plannedTokens=o.tokens,t.current=o.state,r(e,t)},s=new i((new function(){function e(e){return(/\w/.test(e)?"\\b":"(?:\\B|^)")+e+"[^"+e+"].*?"+e+"(?![\\w*])"}this.$rules={start:[{token:"empty",regex:/$/},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"literal",regex:/^-{4,}\s*$/,next:"literalBlock"},{token:"literal",regex:/^\+{4,}\s*$/,next:"passthroughBlock"},{token:"keyword",regex:/^={4,}\s*$/},{token:"text",regex:/^\s*$/},{token:"empty",regex:"",next:"dissallowDelimitedBlock"}],dissallowDelimitedBlock:[{include:"paragraphEnd"},{token:"comment",regex:"^//.+$"},{token:"keyword",regex:"^(?:NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s"},{include:"listStart"},{token:"literal",regex:/^\s+.+$/,next:"indentedBlock"},{token:"empty",regex:"",next:"text"}],paragraphEnd:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"commentBlock"},{token:"tableBlock",regex:/^\s*[|!]=+\s*$/,next:"tableBlock"},{token:"keyword",regex:/^(?:--|''')\s*$/,next:"start"},{token:"option",regex:/^\[.*\]\s*$/,next:"start"},{token:"pageBreak",regex:/^>{3,}$/,next:"start"},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"titleUnderline",regex:/^(?:={2,}|-{2,}|~{2,}|\^{2,}|\+{2,})\s*$/,next:"start"},{token:"singleLineTitle",regex:/^={1}\s+\S.*$/,next:"start"},{token:"singleLineTitle2",regex:/^={2}\s+\S.*$/,next:"start"},{token:"singleLineTitle3",regex:/^={3}\s+\S.*$/,next:"start"},{token:"singleLineTitle4",regex:/^={4}\s+\S.*$/,next:"start"},{token:"singleLineTitle5",regex:/^={5}\s+\S.*$/,next:"start"},{token:"singleLineTitle6",regex:/^={6}\s+\S.*$/,next:"start"},{token:"otherBlock",regex:/^(?:\*{2,}|_{2,})\s*$/,next:"start"},{token:"optionalTitle",regex:/^\.[^.\s].+$/,next:"start"}],listStart:[{token:"keyword",regex:/^\s*(?:\d+\.|[a-zA-Z]\.|[ixvmIXVM]+\)|\*{1,5}|-|\.{1,5})\s/,next:"listText"},{token:"meta.tag",regex:/^.+(?::{2,4}|;;)(?: |$)/,next:"listText"},{token:"keyword",regex:/^\+\s*$/,next:"start"}],text:[{token:["link","link"],regex:/((?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+)(\[.*?\])/},{token:["link","link"],regex:/(?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+/},{token:"link",regex:/\b[\w\.\/\-]+@[\w\.\/\-]+\b/},{include:"macros"},{include:"paragraphEnd"},{token:"literal",regex:/\+{3,}/,next:"smallPassthrough"},{token:"escape",regex:/\((?:C|TM|R)\)|\.{3}|->|<-|=>|<=|&#(?:\d+|x[a-fA-F\d]+);|(?: |^)--(?=\s+\S)/},{token:"escape",regex:/\\[_*'`+#]|\\{2}[_*'`+#]{2}/},{token:"keyword",regex:/\s\+$/},{token:"text",regex:"[a-zA-Z¡-￿]+\\b"},{token:["keyword","string","keyword"],regex:/(<<[\w\d\-$]+,)(.*?)(>>|$)/},{token:"keyword",regex:/<<[\w\d\-$]+,?|>>/},{token:"constant.character",regex:/\({2,3}.*?\){2,3}/},{token:"support.function.list.callout",regex:/^(?:<\d+>|\d+>|>) /,next:"text"},{token:"keyword",regex:/\[\[.+?\]\]/},{token:"support",regex:/^\[{3}[\w\d =\-]+\]{3}/},{include:"quotes"},{token:"empty",regex:/^\s*$/,next:"start"}],listText:[{include:"listStart"},{include:"text"}],indentedBlock:[{token:"literal",regex:/^[\s\w].+$/,next:"indentedBlock"},{token:"literal",regex:"",next:"start"}],listingBlock:[{token:"literal",regex:/^\.{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],literalBlock:[{token:"literal",regex:/^-{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],passthroughBlock:[{token:"literal",regex:/^\+{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:"[a-zA-Z¡-￿]+\\b|\\d+"},{include:"macros"},{token:"literal",regex:"."}],smallPassthrough:[{token:"literal",regex:/[+]{3,}/,next:"dissallowDelimitedBlock"},{token:"literal",regex:/^\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:"[a-zA-Z¡-￿]+\\b|\\d+"},{include:"macros"}],commentBlock:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"doc.comment",regex:"^.*$"}],tableBlock:[{token:"tableBlock",regex:/^\s*\|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"innerTableBlock"},{token:"tableBlock",regex:/\|/},{include:"text",noEscape:!0}],innerTableBlock:[{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"tableBlock"},{token:"tableBlock",regex:/^\s*|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/\!/}],macros:[{token:"macro",regex:/{[\w\-$]+}/},{token:["text","string","text","constant.character","text"],regex:/({)([\w\-$]+)(:)?(.+)?(})/},{token:["text","markup.list.macro","keyword","string"],regex:/(\w+)(footnote(?:ref)?::?)([^\s\[]+)?(\[.*?\])?/},{token:["markup.list.macro","keyword","string"],regex:/([a-zA-Z\-][\w\.\/\-]*::?)([^\s\[]+)(\[.*?\])?/},{token:["markup.list.macro","keyword"],regex:/([a-zA-Z\-][\w\.\/\-]+::?)(\[.*?\])/},{token:"keyword",regex:/^:.+?:(?= |$)/}],quotes:[{token:"string.italic",regex:/__[^_\s].*?__/},{token:"string.italic",regex:e("_")},{token:"keyword.bold",regex:/\*\*[^*\s].*?\*\*/},{token:"keyword.bold",regex:e("\\*")},{token:"literal",regex:/\+\+[^+\s].*?\+\+/},{token:"literal",regex:e("\\+")},{token:"literal",regex:/\$\$.+?\$\$/},{token:"literal",regex:e("\\$")},{token:"literal",regex:/``[^`\s].*?``/},{token:"literal",regex:e("`")},{token:"keyword",regex:/\^[^\^].*?\^/},{token:"keyword",regex:e("\\^")},{token:"keyword",regex:/~[^~].*?~/},{token:"keyword",regex:e("~")},{token:"keyword",regex:/##?/},{token:"keyword",regex:/(?:\B|^)``|\b''/}]};var t={macro:"constant.character",tableBlock:"doc.comment",titleUnderline:"markup.heading",singleLineTitle:"markup.heading",singleLineTitle2:"markup.heading2",singleLineTitle3:"markup.heading3",singleLineTitle4:"markup.heading4",singleLineTitle5:"markup.heading5",singleLineTitle6:"markup.heading6",pageBreak:"string",option:"string.regexp",otherBlock:"markup.list",literal:"support.function",optionalTitle:"constant.numeric",escape:"constant.language.escape",link:"markup.underline.list"};for(var n in this.$rules)for(var i=this.$rules[n],o=i.length;o--;){var r=i[o];if(r.include||"string"==typeof r){var a=[o,1].concat(this.$rules[r.include||r]);r.noEscape&&(a=a.filter(function(e){return!e.next})),i.splice.apply(i,a)}else r.token in t&&(r.token=t[r.token])}}).$rules);return{startState:function(){return{current:"start",plannedTokens:[]}},blankLine:function(e){a("",e)},token:a}}),e.defineMIME("text/x-asciidoc","asciidoc")},"object"==("undefined"==typeof exports?"undefined":r()(exports))&&"object"==r()(e)?i(n("8U58")):"object"==("undefined"==typeof brackets?"undefined":r()(brackets))&&brackets.getModule?i(brackets.getModule("thirdparty/CodeMirror2/lib/codemirror")):"function"==typeof define&&n("nErl")?define(["codemirror"],i):i(t)}).call(t,n("f1Eh")(e),n("8U58"))},QMmS:function(e,t,n){"use strict";t.b=function(e){return e.on("application:stores",function(e){var t;console.info("authenticationPlugin - application:stores"),console.log("authenticationPlugin - application:stores",e);var n={state:{isAuthenticated:!1,isTwoFactorCodeRequired:!1,credentials:{email:void 0,password:void 0,twoFactorCode:void 0}},mutations:(t={},o()(t,u.f,function(e,t){e.credentials.email=t}),o()(t,u.g,function(e,t){e.credentials.password=t}),o()(t,u.h,function(e,t){e.credentials.twoFactorCode=t}),o()(t,u.d,function(e){e.isLoading=!0}),o()(t,u.c,function(e,t){a.a.merge(e,t)}),o()(t,u.b,function(e,t){e.isAuthenticated=!1}),o()(t,l,function(e,t){a.a.merge(e,t.authentication)}),t),actions:o()({},u.e,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,r=e.state;i(u.d);var c={rootState:a.a.cloneDeep(o),currentState:a.a.cloneDeep(r)};n("application:loading").then(function(e){return s.a.authenticate(c)}).then(function(e){i(u.c,e.nextState)}).then(function(e){return r.isAuthenticated?n(p,!0).then(function(e){return n(u.a)}):r.isTwoFactorCodeRequired?n("application:notify",{icon:"unlock",header:"Two factor code",message:"A code is required to complete your authentication.",level:"warning"}):n("application:notify",{icon:"warning circle",header:"Authentication failed",message:"A error occured during the authentication.",level:"error"})}).then(function(e){return n("application:loaded")}).then(function(e){return t.push(t.currentRoute.query.redirect||"/")}).catch(function(e){n("application:loaded").then(function(e){return n("application:notify",{icon:"warning circle",header:"Authentication failed",message:"A error occured during the authentication.",level:"error"})})})}),getters:{}};return e.nextState.stores.authentication=n,console.log("authenticationPlugin - application:stores - return",e),e}),e.on("application:routes",function(e){return e}),e.on("application:initialize-app",function(e){return console.info("authenticationPlugin - application:initialize-app"),console.log("authenticationPlugin - application:initialize-app",e),s.a.initialize(e).then(function(e){return e})}),e.on("authentication:authenticate",function(e){return console.info("authenticationPlugin - authentication:authenticate"),console.log("authenticationPlugin - authentication:authenticate",e,s.a),s.a.authenticate(e)}),{getName:function(){return"authenticationPlugin"}}},n.d(t,"a",function(){return d});var i=n("bOdI"),o=n.n(i),r=n("M4fF"),a=n.n(r),s=n("KMrN"),c=n("RUoO"),u=n("Pm0L"),l="application:initialize-app",p="application:save-config";var d=c.a},RUoO:function(e,t,n){"use strict";var i=n("6yLl"),o=n("oS0V");var r=function(e){n("Mha6")},a=n("VU/8")(i.a,o.a,!1,r,"data-v-94154cf6",null);t.a=a.exports},RsIG:function(e,t,n){"use strict";var i=n("woOf"),o=n.n(i),r=n("LEOq"),a=n.n(r);function s(e){return a.a.fire("application:receive-config",e)}t.a={initializeRoutes:function(e){return a.a.fire("application:routes",e)},initializeApp:function(e,t){return a.a.fire("application:initialize-app",e,t)},initializePlugins:function(e,t){return a.a.fire("application:initialize-plugins",e,t)},initializeConfig:function(e){return console.log("application - initializeConfig",e),function(e){return a.a.fire("application:request-config",e)}(e).then(s)},startUpConfig:function(e){return console.log("application - startUpConfig",e),s(e)},prepareConfig:function(e){return a.a.fire("application:prepare-config",e)},saveConfig:function(e){return function(e){return console.log("application - fireRequestSaveConfig",e),a.a.fire("application:request-save-config",e)}(e).then(function(t){return o()({},e,{nextState:t.nextState.application})}).then(s).then(function(t){return e.nextState.application=t.nextState,o()({},e)}).catch(function(e){console.log(e)})},saveConfigDone:function(e){return a.a.fire("application:save-config-done",e)}}},SDLk:function(e,t,n){"use strict";var i={render:function(){this.$createElement;this._self._c;return this._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"about-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",attrs:{href:"https://twitter.com/HubPressIO",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Follow us on twitter","data-position":"bottom right"}},[n("i",{staticClass:"twitter large icon"})])]),n("a",{staticClass:"item",attrs:{href:"https://gitter.im/HubPress/hubpress.io",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Wanna chat with us?","data-position":"bottom right"}},[n("i",{staticClass:"gitter large icon"})])]),n("a",{staticClass:"item",attrs:{href:"https://github.com/HubPress",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"HubPress is opensource :)","data-position":"bottom right"}},[n("i",{staticClass:"github large icon"})])])])]),n("div",{staticClass:"about-content"},[n("div",{staticClass:"ui container"},[n("h2",{staticClass:"ui center aligned icon header"},[n("i",{staticClass:"circular users icon"}),e._v("\n The HubPress Team\n ")]),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"row"},[n("div",{staticClass:"ui items divided"},[n("div",{staticClass:"item"},[n("div",{staticClass:"image"},[n("img",{attrs:{src:"https://avatars1.githubusercontent.com/u/2006548?v=3&s=460"}})]),n("div",{staticClass:"content"},[n("a",{staticClass:"header"},[e._v("Anthonny Quérouil")]),n("div",{staticClass:"meta"},[n("span",[e._v("The creator of HubPress")])]),n("div",{staticClass:"description"},[n("p",[e._v("Anthonny is a freelance developer and the creator of HubPress")]),n("p",[e._v("He started HubPress two years ago")])]),n("div",{staticClass:"extra"},[n("a",{staticClass:"ui label",attrs:{href:"https://twitter.com/anthonny_q",target:"_blank"}},[n("i",{staticClass:"twitter icon"}),e._v(" Twitter\n ")]),n("a",{staticClass:"ui label",attrs:{href:"https://github.com/anthonny",target:"_blank"}},[n("i",{staticClass:"github icon"}),e._v(" GitHub\n ")]),n("a",{staticClass:"ui label",attrs:{href:"http://anthonnyquerouil.fr/",target:"_blank"}},[n("i",{staticClass:"home icon"}),e._v(" Website\n ")])])])]),n("div",{staticClass:"item"},[n("div",{staticClass:"image"},[n("img",{attrs:{src:"https://avatars0.githubusercontent.com/u/952793?v=3&s=460"}})]),n("div",{staticClass:"content"},[n("a",{staticClass:"header"},[e._v("Jared Morgan")]),n("div",{staticClass:"meta"},[n("span",[e._v("The Docs guy")])]),n("div",{staticClass:"description"},[n("p",[e._v("By day, Jared is a Certified Scrum Product Owner (CSPO) and Technical Writer for Ladbrokes in Brisbane, Australia.")]),n("p",[e._v("By night, he uses his craft to improve open source software products one README at a time.")]),n("p",[e._v("In between, he uses his expertise in Pinball machines and knowledge of Android beta testing to improve digital pinball apps.")])]),n("div",{staticClass:"extra"},[n("a",{staticClass:"ui label",attrs:{href:"https://twitter.com/jaredmorgs",target:"_blank"}},[n("i",{staticClass:"twitter icon"}),e._v(" Twitter\n ")]),n("a",{staticClass:"ui label",attrs:{href:"https://github.com/jaredmorgs",target:"_blank"}},[n("i",{staticClass:"github icon"}),e._v(" GitHub\n ")]),n("a",{staticClass:"ui label",attrs:{href:"http://jaredleonmorgan.net/",target:"_blank"}},[n("i",{staticClass:"home icon"}),e._v(" Website\n ")])])])])])])])])])}]};t.a=i},SHkU:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._l(e.navigation,function(t,i){return n("div",{key:t.label,staticClass:"fields"},[n("div",{staticClass:"four wide field"},[n("input",{attrs:{type:"text",placeholder:"Label",name:"navigation-label-"+i},domProps:{value:t.label}})]),n("div",{staticClass:"eleven wide field"},[n("input",{attrs:{type:"text",placeholder:"http://www.mysite.com",name:"navigation-url-"+i},domProps:{value:t.url}})]),n("div",{staticClass:"one wide field"},[n("button",{staticClass:"ui icon button",on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.remove(i)}}},[n("i",{staticClass:"trash icon"})])])])}),n("div",{staticClass:"fields"},[n("div",{staticClass:"four wide field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNav.label,expression:"newNav.label"}],attrs:{type:"text",placeholder:"Label"},domProps:{value:e.newNav.label},on:{input:function(t){t.target.composing||e.$set(e.newNav,"label",t.target.value)}}})]),n("div",{staticClass:"eleven wide field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNav.url,expression:"newNav.url"}],attrs:{type:"text",placeholder:"http://www.mysite.com"},domProps:{value:e.newNav.url},on:{input:function(t){t.target.composing||e.$set(e.newNav,"url",t.target.value)}}})]),n("div",{staticClass:"one wide field"},[n("button",{staticClass:"ui icon button",attrs:{disabled:e.isNotValid},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.add(e.newNav)}}},[n("i",{staticClass:"add icon"})])])])],2)},staticRenderFns:[]};t.a=i},SUis:function(e,t,n){"use strict";(function(e){var i=n("PJh5"),o=n.n(i),r=n("RJtx"),a=n.n(r),s=n("lYDI");t.a={name:"posts",data:function(){return{postToDelete:{},filterValue:""}},beforeCreate:function(){},beforeMount:function(){this.$store.dispatch(s.a)},beforeDestroy:function(){e(".ui.basic.modal").remove()},mounted:function(){var t=this;e(".ui.basic.modal").modal({closable:!1,onDeny:function(){},onApprove:function(){t.$store.dispatch(s.d,t.postToDelete._id)}})},methods:{status:function(e){return!e.published?"Draft":"Published"},type:function(e){return e.type.replace(/\b\w/g,function(e){return e.toUpperCase()})},publishedAt:function(e){return!!e.published&&e.published_at&&o()(e.published_at).fromNow()||""},postCoverUrl:function(e){var t=e.image||"https://hubpress.github.io/img/logo.png";return t=t.startsWith("http")?t:e.attributes.$$smap.imagesdir+"/"+e.image},getPostStatusColor:function(e){return e.original?e.original.content!==e.content?"orange":"green":"red"},displayConfirmMessage:function(t){this.postToDelete=t,e(".ui.basic.modal").modal("show")},navigateToPost:function(e){this.$router.push({name:"post",params:{id:e._id}})},newPost:function(){this.$router.push({name:"post",params:{id:a.a.v4()}})},getPostTags:function(e){return e.tags||[]},getPostAuthor:function(e){return e.author||this.$store.state.authentication.userInformations},synchronize:function(){this.$store.dispatch(s.b)}},computed:{posts:function(){var e=this.filterValue.trim();return""===e?this.$store.state.hubpress.posts:this.$store.state.hubpress.posts.filter(function(t){return t.title.toLowerCase().indexOf(e.toLowerCase())>=0||t.tags&&t.tags.filter(function(t){return t.toLowerCase().indexOf(e.toLowerCase())>=0}).length})}}}}).call(t,n("7t+N"))},SjaB:function(e,t,n){var i=n("3fVB");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("2d76ba14",i,!0,{sourceMap:!1})},T23V:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,r,a=n("pFYg"),s=n.n(a),c=n("mvHQ"),u=n.n(c),l=n("fZjL"),p=n.n(l),d=n("woOf"),f=n.n(d),h=n("Zzip"),g=n.n(h),m=n("5QVw"),v=n.n(m),b=n("//Fk"),x=n.n(b),C=n("I3G/"),y=n.n(C),w=n("unZF"),P=n("qcny"),k=n("YLfZ"),S=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=x.a))(function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,s)}c((i=i.apply(e,t||[])).next())})},_=this&&this.__generator||function(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof v.a&&(r[g.a]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=i[2&r[0]?"return":r[0]?"throw":"next"])&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[0,o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],e.matched.map(function(e,n){return h()(e.instances).map(function(i){return t&&t.push(n),e.instances[i]})}))},t.c=w,t.k=P,n.d(t,"h",function(){return _}),n.d(t,"m",function(){return R}),t.i=function e(t,n){if(!t.length||n._redirected||n._errored)return d.a.resolve();return q(t[0],n).then(function(){return e(t.slice(1),n)})},t.j=q,t.d=function(e,t){var n=window.location.pathname;if("hash"===t)return window.location.hash.replace(/^#\//,"");e&&0===n.indexOf(e)&&(n=n.slice(e.length));return(n||"/")+window.location.search+window.location.hash},t.b=function(e,t){return function(e){for(var t=new Array(e.length),n=0;n1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],e.matched.map(function(e,n){return h()(e.components).map(function(i){return t&&t.push(n),e.components[i]})}))}function w(e,t){return Array.prototype.concat.apply([],e.matched.map(function(e,n){return h()(e.components).map(function(i){return t(e.components[i],e.instances[i],e,i,n)})}))}function P(e){var t,n=this;return d.a.all(w(e,(t=l()(c.a.mark(function e(t,i,o,r){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof t||t.options){e.next=4;break}return e.next=3,t();case 3:t=e.sent;case 4:return e.abrupt("return",o.components[r]=C(t));case 5:case"end":return e.stop()}},e,n)})),function(e,n,i,o){return t.apply(this,arguments)})))}window._nuxtReadyCbs=[],window.onNuxtReady=function(e){window._nuxtReadyCbs.push(e)};var k,S,_=(k=l()(c.a.mark(function e(t){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P(t);case 2:return e.abrupt("return",m()({},t,{meta:y(t).map(function(e){return e.options.meta||{}})}));case 3:case"end":return e.stop()}},e,this)})),function(e){return k.apply(this,arguments)}),R=(S=l()(c.a.mark(function e(t,n){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n.to?n.to:n.route,t.context){e.next=14;break}e.t0=!0,e.t1=t,e.t2=t.store,e.t3=n.payload,e.t4=n.error,e.t5={hubpressVersion:"1.0.0",baseUrl:"http://localhost:3000"},t.context={get isServer(){return console.warn("context.isServer has been deprecated, please use process.server instead."),!1},get isClient(){return console.warn("context.isClient has been deprecated, please use process.client instead."),!0},isStatic:e.t0,isDev:!1,isHMR:!1,app:e.t1,store:e.t2,payload:e.t3,error:e.t4,base:"..",env:e.t5},n.req&&(t.context.req=n.req),n.res&&(t.context.res=n.res),t.context.redirect=function(e,n,i){if(e){t.context._redirected=!0;var o=void 0===n?"undefined":a()(n);if("number"==typeof e||"undefined"!==o&&"object"!==o||(i=n||{},o=void 0===(n=e)?"undefined":a()(n),e=302),"object"===o&&(n=t.router.resolve(n).href),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(n))throw n=L(n,i),window.location.replace(n),new Error("ERR_REDIRECT");t.context.next({path:n,query:i,status:e})}},t.context.nuxtState=window.__NUXT__;case 14:if(t.context.next=n.next,t.context._redirected=!1,t.context._errored=!1,t.context.isHMR=!!n.isHMR,!n.route){e.next=22;break}return e.next=21,_(n.route);case 21:t.context.route=e.sent;case 22:if(t.context.params=t.context.route.params||{},t.context.query=t.context.route.query||{},!n.from){e.next=28;break}return e.next=27,_(n.from);case 27:t.context.from=e.sent;case 28:case"end":return e.stop()}},e,this)})),function(e,t){return S.apply(this,arguments)});function q(e,t){var n=void 0;return(n=2===e.length?new d.a(function(n){e(t,function(e,i){e&&t.error(e),n(i=i||{})})}):e(t))&&(n instanceof d.a||"function"==typeof n.then)||(n=d.a.resolve(n)),n}var M=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function $(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function D(e){return e.replace(/([.+*?=^!:()[\]|\/\\])/g,"\\$1")}function j(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function L(e,t){var n=void 0,i=e.indexOf("://");-1!==i?(n=e.substring(0,i),e=e.substring(i+3)):0===e.indexOf("//")&&(e=e.substring(2));var r=e.split("/"),a=(n?n+"://":"//")+r.shift(),s=r.filter(Boolean).join("/"),c=void 0;return 2===(r=s.split("#")).length&&(s=r[0],c=r[1]),a+=s?"/"+s:"",t&&"{}"!==o()(t)&&(a+=(2===e.split("?").length?"&":"?")+function(e){return h()(e).sort().map(function(t){var n=e[t];return null==n?"":Array.isArray(n)?n.slice().map(function(e){return[t,"=",e].join("")}).join("&"):t+"="+n}).filter(Boolean).join("&")}(t)),a+=c?"#"+c:""}},YMuy:function(e,t,n){"use strict";var i=n("6Ndi"),o=n("PJh5"),r=n.n(o);function a(e){return i.a.fireRequestRemoteSynchronization(e).then(function(e){return i.a.fireReceiveRemoteSynchronization(e)}).then(function(e){return i.a.fireRequestRenderingDocuments(e)}).then(function(e){return i.a.fireReceiveRenderingDocuments(e)}).then(function(e){return i.a.fireRequestLocalSynchronization(e)}).then(function(e){return i.a.fireReceiveLocalSynchronization(e)}).then(function(e){return i.a.fireRequestLocalPosts(e)}).then(function(e){return i.a.fireReceiveLocalPosts(e)}).then(function(e){return localStorage.setItem("hubpress:sync",r()().format()),e})}t.a={initialize:function(e){return i.a.fireRequestTheme(e).then(function(e){return i.a.fireReceiveTheme(e)}).then(function(e){return localStorage.getItem("hubpress:sync")?i.a.fireRequestLocalPosts(e).then(function(e){return i.a.fireReceiveLocalPosts(e)}):a(e)})},synchronize:a}},"bN/m":function(e,t,n){"use strict";function i(e,t){var n=void 0;return e.cname&&""!==e.cname?n=(!1===t?"":"http:")+"//"+e.cname:(n=(!1===t?"":"https:")+"//"+e.username+".github.io","master"!==e.branch&&(n=n+"/"+e.repositoryName)),n}function o(e,t){var n=e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"/$1/$2/$3/$4.html");return"page"===t&&(n=e.replace(/([\w-]*)\.adoc/,"/$1.html")),n}function r(e,t){var n=e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"$1/$2/$3/$4.html");return"page"===t&&(n=e.replace(/([\w-]*)\.adoc/,"$1.html")),n}function a(e){return e.match(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/)?"post":"page"}t.a=function(e){return{site:i(e.meta),hubpress:function(e,t){var n=t.protocol+"//"+t.host;if("localhost"===t.hostname)return n;t.host===e.username+".github.io"||t.host===e.username+".github.com"?"master"!==e.branch&&(n=n+"/"+e.repositoryName):"master"===e.branch||e.cname&&""!==e.cname||(n=n+"/"+e.repositoryName);return n}(e.meta,window.location),theme:i(e.meta,!1)+"/themes/"+e.theme.name,images:i(e.meta)+"/images",getContentUrl:o,getContentGhPath:r,getContentType:a,getPostUrl:function(e){return e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"/$1/$2/$3/$4.html")},getPostGhPath:function(e){return e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"$1/$2/$3/$4.html")},getPageUrl:function(e){return e.replace(/([\w-]*)\.adoc/,"/$1.html")},getPageGhPath:function(e){return e.replace(/([\w-]*)\.adoc/,"$1.html")},getSiteUrl:i}}},bxJ0:function(e,t,n){"use strict";t.a=function(e){e.on("application:request-config",function(e){return console.info("githubPlugin - application:request-config"),console.log("githubPlugin - application:request-config",e),l()("config.json?dt="+Date.now()).then(function(e){return e.json()}).then(function(t){return e.nextState.config=a()({},e.nextState.config,t),e.nextState.config.theme.name=e.nextState.config.theme.name.toLowerCase(),e})}),e.on("application:receive-config",function(e){console.info("githubPlugin - application:receive-config"),console.log("githubPlugin - application:receive-config",e);var t=Object(y.a)(e.nextState.config);return e.nextState.config=a()({},e.nextState.config,{urls:t}),e}),e.on("requestAuthentication",function(e){return console.info("githubPlugin - requestAuthentication"),console.log("githubPlugin - requestAuthentication",e),function(e){console.log("githubPlugin - login",e);var t=m.a.defer(),n=e.nextState.credentials,i=e.rootState.application.config.meta,o=(q=new h.a({auth:"basic",username:n.email,password:n.password,twoFactorCode:n.twoFactorCode})).getRepo(i.username,i.repositoryName),r=q.getAuthorization(),a=q.getUser(),s=void 0,c=void 0;return function(e){var t=m.a.defer();return e.getDetails(function(e,n){e?t.reject(e):t.resolve(n)}),t.promise}(o).then(function(e){s=e}).then(S(a)).then(function(e){return c=e,function(e){var t=m.a.defer();return console.log("getAuthorizations",e),e.listAuthorizations({},function(e,n){e?t.reject(e):(console.log("getAuthorizations list",n),t.resolve(n))}),t.promise}(r)}).then(function(e){return function(e,t,n){var i=m.a.defer(),o=-1,r=_(e);return t.forEach(function(e){e.note===r&&(o=e.id)}),-1!==o?n.deleteAuthorization(o,function(e,t){e?i.reject(e):i.resolve()}):i.resolve(),i.promise}(i.repositoryName,e,r)}).then(function(){return R(i.repositoryName,r)}).then(function(e){q=new h.a({auth:"oauth",token:e.token}),t.resolve({isAuthenticated:!0,credentials:{token:e.token},permissions:s.permissions,userInformations:c})}).catch(function(e){console.error("githubPlugin - login error",e,e.response);var n,o={type:"error",title:"Authentication"};e.response&&(n="required"===(e.response.headers&&e.response.headers["x-github-otp"]||"").split(";")[0]),n?(R(i.repositoryName,r),console.log("githubPlugin - OTP required : ",n),o.type="warning",o.content="A two-factor authentication code is needed.",o.otp=!0,t.resolve({isAuthenticated:!1,isTwoFactorCodeRequired:!0})):(console.error("githubPlugin - login error",e),t.reject({error:{code:e.error,message:"Unable to authenticate, check your credentials."}}))}),t.promise}(e).then(function(t){var n=a()({},e.nextState.credentials,t.credentials);return e.nextState=a()({},e.nextState,t,{credentials:n}),e})}),e.on("receiveSavedAuth",function(e){return console.info("githubPlugin - receiveSavedAuth"),console.log("githubPlugin - receiveSavedAuth",e),e.nextState.authentication.isAuthenticated&&(q=new h.a({auth:"oauth",token:e.nextState.authentication.credentials.token})),e}),e.on("hubpress:request-remote-synchronization",function(e){return console.info("githubPlugin - hubpress:request-remote-synchronization"),console.log("githubPlugin - hubpress:request-remote-synchronization",e),e.rootState.authentication.isAuthenticated?function(e){var t=e.application.config;console.log("Get posts",t);var n=t.meta,i=q.getRepo(n.username,n.repositoryName);return function(e,t){var n=m.a.defer();return e.getContents(t.meta.branch,"",!0,function(e,t){if(e)n.reject(e);else{var i=void 0;t.forEach(function(e){"_posts"===e.name&&(i=e.sha)}),n.resolve(i)}}),n.promise}(i,t).then(function(e){return function(e,t,n){var i=void 0;if(n===localStorage.postsSha)i=m.a.fcall(function(){return[]});else{var o=m.a.defer();e.getContents(t.meta.branch,"_posts",!0,function(e,t){e?o.reject(e):o.resolve(t)}),i=o.promise}return i}(i,t,e)}).then(function(e){return e.map(function(e){return b.a.pick(e,["name","path","sha","size"])})}).then(function(e){return function(e,t,n){var i=b.a.compact(n).map(function(e){return function(e,t){var n=m.a.defer(),i=e.meta,o=q.getRepo(i.username,i.repositoryName),r=e.urls.getContentType(t.name);return o.getSha(e.meta.branch,e.urls.getContentGhPath(t.name,r),function(e,i){if(e&&e.response&&404!==e.response.status)n.reject(e);else{var o=i?1:0,r=a()({},t,{published:o});n.resolve(r)}}),n.promise}(t,e)});return m.a.all(i)}(0,t,e)}).then(function(n){return function(e,t,n,i){var o=n.map(function(e){return M(t,e,i)});return m.a.all(o)}(0,t,n,e.authentication.userInformations)}).then(function(e){return function(e,t,n){var i=[];return n.forEach(function(n){var o=m.a.defer();i.push(o.promise),e.getContents(t.meta.branch,n.path,!0,function(e,t){var i;e?o.reject(e):(i=a()({},n,{content:t}),o.resolve(i))})}),m.a.all(i)}(i,t,e)})}(e.rootState).then(function(t){return e.nextState=a()({},e.nextState,{posts:t}),e}):e}),e.on("requestSaveRemotePost",function(e){console.info("githubPlugin - requestSaveRemotePost"),console.log("githubPlugin - requestSaveRemotePost",e);var t=e.rootState.application.config,n=e.nextState.post;return function(e,t){var n=e.meta,i=q.getRepo(n.username,n.repositoryName),o=void 0;if(t.original&&t.name!==t.original.name){var r=m.a.defer();o=r.promise;var a=e.meta.branch,s="_posts/"+t.original.name,c="_posts/"+t.name;i.move(a,s,c,function(n,o){if(n)r.reject(n);else if(t.published){var s=e.urls.getContentGhPath(t.original.name,t.original.type);(function(e,t,n){return function(e,t,n){var i=m.a.defer();return e.deleteFile(t,n,function(e,t){e?i.reject(e):(console.error(t),k=t.commit,i.resolve(t))}),i.promise}(e,t,n)})(i,a,s).then(function(e){r.resolve({post:t,sha:e})}).catch(function(e){r.reject(e)}).done()}else r.resolve({post:t,sha:o})})}else o=m()({post:t});return o}(t,n).then(function(e){return function(e,t){console.log("Write post",e,t);var n=e.meta,i=q.getRepo(n.username,n.repositoryName),o=n.branch,r="_posts/"+t.name,a="Update "+t.name,s=m.a.defer();return i.writeFile(o,r,t.content,a,function(n,i){n?s.reject(n):(t.original=b.a.omit(t,["original"]),t.original.url=e.urls.getContentUrl(t.original.name,t.original.type),t.original.path="_posts/"+t.original.name,t.original.sha=i,k=i.commit,console.info("Update lastCacheCommit",k),s.resolve(t))}),s.promise}(t,e.post)}).then(function(n){return M(t,n,e.rootState.authentication.userInformations)}).then(function(t){return e.nextState.post=t,e})}),e.on("requestSaveRemotePublishedElements",function(e){console.info("githubPlugin - requestSaveRemotePublishedElements"),console.log("githubPlugin - requestSaveRemotePublishedElements",e);var t=e.rootState.application.config.meta,n=q.getRepo(t.username,t.repositoryName),i=e.nextState.elementsToPublish.length,o=b.a.chunk(e.nextState.elementsToPublish,P);console.log("Writeall",e.nextState.elementsToPublish);var r=m.a.defer();return n.getBranch(t.branch,function(a,s){if(a){var c=m.a.defer();return r=c.promise,c.reject(a)}var u=0,l=o.reduce(function(e,o){return e.then(function(e){var r=m.a.defer(),a=o.map(function(e){return{path:e.path,mode:"100644",type:"blob",content:e.content}});return n.createTree(a,e,function(a,s){if(a)return r.reject(a);n.commit(e,s.sha,"Published "+(u+o.length)+"/"+i+" elements",function(e,i){if(e)return r.reject(e);u+=o.length,k=i,n.updateHead("heads/"+t.branch,i.sha,!1,function(e,t){if(console.log("updateHead",e,t),e)return r.reject(e);r.resolve(i.sha)})})}),r.promise})},m()(function(e,t){if(console.error(e,t),!t)return e.sha;var n=C()(e.committer.date);return C()(t.committer.date).isAfter(n)?t.sha:e.sha}({committer:s.commit.commit.committer,sha:s.commit.sha},k)));l.then(function(t){r.resolve(e)}).catch(function(e){r.reject(e)})}),r.promise}),e.on("requestDeleteRemotePost",function(e){console.info("githubPlugin - requestDeleteRemotePost"),console.log("githubPlugin - requestDeleteRemotePost",e);var t=m.a.defer(),n=e.rootState.application.config,i=n.meta,o=q.getRepo(i.username,i.repositoryName),r=e.nextState.post.original.path;return o.deleteFile(i.branch,r,function(n,i){n&&n.response&&404!==n.response.status?t.reject(n):(console.error("requestDeleteRemotePost",i),k=i.commit,t.resolve(e))}).catch(function(n){n&&n.response&&404===n.response.status&&t.resolve(e)}),t.promise}),e.on("requestDeleteRemotePublishedPost",function(e){console.info("githubPlugin - requestDeleteRemotePublishedPost"),console.log("githubPlugin - requestDeleteRemotePublishedPost",e);var t=m.a.defer(),n=e.rootState.application.config,i=n.meta,o=q.getRepo(i.username,i.repositoryName),r=n.urls.getContentGhPath(e.nextState.post.original.name,e.nextState.post.original.type);return o.deleteFile(i.branch,r,function(n,i){n?t.reject(n):(console.error("requestDeleteRemotePublishedPost",i),k=i.commit,t.resolve(e))}),t.promise}),e.on("application:request-save-config",function(e){console.info("githubPlugin - application:request-save-config"),console.log("githubPlugin - application:request-save-config",e);var t=e.nextState.application;return function(e){console.log("Write config",e);var t=m.a.defer(),n=e.meta,i=q.getRepo(n.username,n.repositoryName),r=n.branch;return i.writeFile(r,"hubpress/config.json",o()(e,null,2),"Update configuration file",function(e,n){e?t.reject(e):(k=n.commit,console.info("Update lastCacheCommit",k),t.resolve(n))}),t.promise}(t.config).then(function(e){return function(e){console.log("Github manageCname - ",e);var t=e.meta,n=q.getRepo(t.username,t.repositoryName),i=m.a.defer();t.cname&&""!==t.cname?(console.info("SettingsService - saveAndPublish save CNAME"),n.writeFile(t.branch,"CNAME",t.cname,"Update CNAME with "+t.cname,function(e,t){e?i.reject(e):(k=t.commit,console.info("Update lastCacheCommit",k),i.resolve(t))})):(console.info("SettingsService - saveAndPublish delete CNAME"),n.deleteFile(t.branch,"CNAME",function(e,t){e&&"not found"!==e?i.reject(e):i.resolve(t)}).then(function(e){console.log("SHA after delete",e),i.resolve(e)}).catch(function(e){404!==e.response.status?i.reject(e):i.resolve()}));return i.promise}(t.config)}).then(function(t){return e})}),e.on("receiveRenderingPost",function(e){return console.info("githubPlugin - receiveRenderingPost"),console.log("githubPlugin - receiveRenderingPost",e),e}),e.on("application:initialize-plugins",function(e){console.info("githubPlugin - application:initialize-plugins"),console.log("githubPlugin - application:initialize-plugins",e);var t="put your repository name here"===e.rootState.application.config.meta.repositoryName||"put your username here"===e.rootState.application.config.meta.username;return e.nextState.application.requireInitilisation=t,e.nextState.application.config.initialisationConfigComponent=w.a,e})};var i=n("mvHQ"),o=n.n(i),r=n("woOf"),a=n.n(r),s=n("6ltY"),c=n.n(s),u=n("j9g7"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=n("73D8"),h=n.n(f),g=n("/Luh"),m=n.n(g),v=n("M4fF"),b=n.n(v),x=n("PJh5"),C=n.n(x),y=n("bN/m"),w=n("IBrK"),P=50,k=null;function S(e){return function(){var t=m.a.defer();return e.getProfile(function(e,n){e?t.reject(e):t.resolve(b.a.pick(n,["login","id","name","location","blog","avatar_url","bio"]))}),t.promise}}function _(e){return d()(e+"-"+c.a.name+"-"+c.a.os)}function R(e,t){var n=m.a.defer(),i={scopes:["public_repo"],note:_(e)};return t.createAuthorization(i,function(e,t){e?n.reject(e):n.resolve(t)}),n.promise}var q=void 0;function M(e,t,n){var i=m.a.defer(),o=e.meta,r=q.getRepo(o.username,o.repositoryName);return console.log("getPostAuthor",t),r.listCommits({sha:e.meta.branch,path:t.original&&t.original.path||t.path},function(e,o){if(e&&404!==e.error)i.reject(e);else{var r=o[o.length-1].author;if(r&&r.login!==n.login){S(q.getUser(r.login))().then(function(e){r=a()({},e);var n=a()({},t,{author:r});i.resolve(n)}).catch(function(e){return i.reject(e)})}else{r=a()({},n);var s=a()({},t,{author:r});i.resolve(s)}}}),i.promise}},cOI0:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,'.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,.5)}.cm-animate-fat-cursor,.cm-fat-cursor-mark{-webkit-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;background-color:#7e7}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;-webkit-font-feature-settings:"calt";font-feature-settings:"calt";font-variant-ligatures:contextual}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-webkit-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}',""])},cmzl:function(e,t,n){"use strict";var i={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"nuxt-progress",style:{width:this.percent+"%",height:this.height,"background-color":this.canSuccess?this.color:this.failedColor,opacity:this.show?1:0}})},staticRenderFns:[]};t.a=i},ct3O:function(e,t,n){"use strict";var i=n("FIB3"),o=n("FdPX");var r=function(e){n("wGIl")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},"d+j1":function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".CodeMirror-sizer{padding-top:2em;font-size:18.285px;font-size:1.14285714rem;max-width:750px!important;line-height:1.5;display:block}@media only screen and (max-width:767px){.CodeMirror-sizer{width:auto!important;margin-left:1em!important;margin-right:1em!important}.item.html-preview{display:none!important}}@media only screen and (max-width:992px){.item.preview-resize{display:none!important}}@media only screen and (min-width:768px){.CodeMirror-sizer{margin-left:auto!important;margin-right:auto!important}}.CodeMirror-gutter-wrapper{display:none!important}.cm-header{font-size:1.8em;font-weight:700}.cm-header-2{font-size:1.6em;font-weight:700}.cm-header-3{font-size:1.45em;font-weight:700}.cm-header-4{font-size:1.3em;font-weight:700}.cm-header-5{font-size:1.15em;font-weight:700}.cm-header-6{font-size:1.05em;font-weight:700}.post-editor{padding-top:47px}.CodeMirror,.post-container,.post-editor,.post-editor .ui.grid,.post-editor .ui.grid .column{height:100%;min-height:100%}.post-editor .ui.grid>.row{padding-top:0;padding-bottom:0}.post-editor .ui.grid.light>.row{background-color:#f5f5f5;color:#202020}.post-editor .ui.grid.light>.row .ui.header{color:#202020}.post-editor .ui.grid.light>.row a{color:#aa759f}.post-editor .ui.grid.dark>.row,.post-editor .ui.grid.dark>.row .ui.header{background-color:#3f3f3f;color:#dcdccc}.post-editor .ui.grid.dark>.row .ui.header{color:#dcdccc}.post-editor .ui.grid.dark>.row a{color:#dcdcaa}.post-editor .ui.grid{padding-top:0;padding-bottom:0;margin:0}.post-editor .ui.grid .column{padding-top:0;margin-top:0;padding-bottom:0;margin-bottom:0}.vue-codemirror.container{min-height:100%;height:100%}#asciidoc-content,#asciidoc-preview{height:calc(100vh - 47px);min-height:calc(100vh - 47px)}#asciidoc-content.is-hidden{display:none}#asciidoc-preview{overflow-y:auto;padding-top:2em;font-size:1.2em;font-family:Menlo,Monaco,Consolas,Courier New,monospace;word-wrap:break-word}#asciidoc-preview.is-iframe{padding:0}#asciidoc-preview>div{max-width:750px!important;margin:auto}#asciidoc-preview.is-iframe>div{min-width:100%;margin:auto}#asciidoc-preview.is-fullscreen{width:100%!important}#asciidoc-preview>div .ui.header{font-family:Menlo,Monaco,Consolas,Courier New,monospace}#asciidoc-preview .content pre{background-color:#dcdccc;color:#2e2e2e;padding:10px;border-radius:5px;overflow:auto}#asciidoc-preview .paragraph{padding:.75em 0}#asciidoc-preview img{width:100%;max-width:100%}@media screen and (max-width:992px){#asciidoc-content{display:block}#asciidoc-content.is-preview-visible,#asciidoc-preview{display:none}#asciidoc-preview.is-preview-visible{display:block}}.item .ui.icon .rocket.unpublish{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.cm-s-zenburn.CodeMirror .CodeMirror-gutters{background:#3f3f3f!important}.cm-s-zenburn.CodeMirror .CodeMirror-foldgutter-open,.CodeMirror-foldgutter-folded{color:#999}.cm-s-zenburn.CodeMirror .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-zenburn.CodeMirror{background-color:#3f3f3f;color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-builtin{color:#dcdccc;font-weight:700}.cm-s-zenburn.CodeMirror span.cm-comment{color:#7f9f7f}.cm-s-zenburn.CodeMirror span.cm-keyword{color:#f0dfaf;font-weight:700}.cm-s-zenburn.CodeMirror span.cm-atom{color:#bfebbf}.cm-s-zenburn.CodeMirror span.cm-def{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-variable{color:#dfaf8f}.cm-s-zenburn.CodeMirror span.cm-variable-2{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-string,.cm-s-zenburn.CodeMirror span.cm-string-2{color:#cc9393}.cm-s-zenburn.CodeMirror span.cm-number{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-tag{color:#93e0e3}.cm-s-zenburn.CodeMirror span.cm-attribute,.cm-s-zenburn.CodeMirror span.cm-property{color:#dfaf8f}.cm-s-zenburn.CodeMirror span.cm-qualifier{color:#7cb8bb}.cm-s-zenburn.CodeMirror span.cm-meta{color:#f0dfaf}.cm-s-zenburn.CodeMirror span.cm-header,.cm-s-zenburn.CodeMirror span.cm-operator{color:#f0efd0}.cm-s-zenburn.CodeMirror span.CodeMirror-matchingbracket{-webkit-box-sizing:border-box;box-sizing:border-box;background:transparent;border-bottom:1px solid}.cm-s-zenburn.CodeMirror span.CodeMirror-nonmatchingbracket{border-bottom:1px solid;background:none}.cm-s-zenburn.CodeMirror .CodeMirror-activeline,.cm-s-zenburn.CodeMirror .CodeMirror-activeline-background{background:#000}.cm-s-zenburn.CodeMirror div.CodeMirror-selected{background:#545454}.cm-s-zenburn.CodeMirror .CodeMirror-focused div.CodeMirror-selected{background:#4f4f4f}.cm-s-base16-light.CodeMirror{background:#f5f5f5;color:#202020}.cm-s-base16-light.CodeMirror div.CodeMirror-selected{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-line::selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span::selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span>span::selection{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-line::-moz-selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span::-moz-selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span>span::-moz-selection{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-gutters{background:#f5f5f5;border-right:0}.cm-s-base16-light.CodeMirror .CodeMirror-guttermarker{color:#ac4142}.cm-s-base16-light.CodeMirror .CodeMirror-guttermarker-subtle,.cm-s-base16-light.CodeMirror .CodeMirror-linenumber{color:#b0b0b0}.cm-s-base16-light.CodeMirror .CodeMirror-cursor{border-left:1px solid #505050}.cm-s-base16-light.CodeMirror span.cm-comment{color:#8f5536}.cm-s-base16-light.CodeMirror span.cm-atom,.cm-s-base16-light.CodeMirror span.cm-number{color:#aa759f}.cm-s-base16-light.CodeMirror span.cm-attribute,.cm-s-base16-light.CodeMirror span.cm-property{color:#90a959}.cm-s-base16-light.CodeMirror span.cm-keyword{color:#ac4142}.cm-s-base16-light.CodeMirror span.cm-string{color:#f4bf75}.cm-s-base16-light.CodeMirror span.cm-variable{color:#90a959}.cm-s-base16-light.CodeMirror span.cm-variable-2{color:#6a9fb5}.cm-s-base16-light.CodeMirror span.cm-def{color:#d28445}.cm-s-base16-light.CodeMirror span.cm-bracket{color:#202020}.cm-s-base16-light.CodeMirror span.cm-tag{color:#ac4142}.cm-s-base16-light.CodeMirror span.cm-link{color:#aa759f}.cm-s-base16-light.CodeMirror span.cm-error{background:#ac4142;color:#505050}.cm-s-base16-light.CodeMirror .CodeMirror-activeline-background{background:#dddcdc}.cm-s-base16-light.CodeMirror .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}",""])},"d/OL":function(e,t,n){"use strict";t.a=function(e){e.on("hubpress:request-rendering-documents",function(e){console.info("asciidocPlugin - hubpress:request-rendering-documents"),console.log("asciidocPlugin - hubpress:request-rendering-documents",e);var t=e.rootState.application.config,n=(e.nextState.posts||[]).map(function(e){var n=o()({},e,h(t,e.content),{content:e.content}),i=c.a.pick(n,"attributes","author","html","tags","content","name","path","sha");n.title=i.title=i.attributes.doctitle,n.image=i.image=i.attributes["hp-image"],n.type=i.type=i.attributes["hp-type"],n.tags=i.tags=g(i.attributes),n.url=i.url=m(t,n.type,i.name);var r=o()({},n,{original:i});return n.type&&"post"!==n.type||(r.original.published_at=r.published_at=i.name.split("-").slice(0,3).join("-")),r});return e.nextState.posts=n,e}),e.on("requestRenderingPost",function(e){console.info("asciidocPlugin - requestRenderingPost"),console.log("asciidocPlugin - requestRenderingPost",e);var t=h(e.rootState.application.config,e.nextState.post.content);e.nextState.post=o()({},e.nextState.post,t),e.nextState.post.title=t.attributes.doctitle,e.nextState.post.image=t.attributes["hp-image"],e.nextState.post.type=t.attributes["hp-type"],e.nextState.post.tags=g(t.attributes),e.nextState.post.published_at=t.attributes.published_at||e.nextState.post.published_at||l()().format("YYYY-MM-DD");var n=t.attributes["hp-alt-title"];return e.nextState.post.type&&"post"!==e.nextState.post.type?e.nextState.post.name=d()(""+(n||e.nextState.post.title))+".adoc":e.nextState.post.name=d()(e.nextState.post.published_at+"-"+(n||e.nextState.post.title))+".adoc",e.nextState.post.url=m(e.rootState.application.config,e.nextState.post.type,e.nextState.post.name),e})};var i=n("woOf"),o=n.n(i),r=n("rzLr"),a=n.n(r),s=n("M4fF"),c=n.n(s),u=n("PJh5"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=a()(!1,window.XMLHttpRequest);function h(e,t){var n={doctype:"article",backend:"html5",safe:"unsafe",attributes:["showtitle!","allow-uri-read","imagesdir="+e.urls.site+"/images","icons=font"]},i=function(e){var t=e.split("pass::[more]");return{excerpt:t[0],full:t.join("")}}(t.replace(/gist::([0-9]*)\[(lines=[0-9]*\.\.[0-9]*)?,?(type=([\w.]*))?,?(file=([\w.]*))?\]/g,"[source,$4]\n----\ninclude::https://gist.githubusercontent.com/raw/$1/$6[$2]\n----\n")),o=f.load(i.excerpt,n),r=f.load(i.full,n);return{attributes:r.getAttributes(),excerpt:o.$convert(),html:r.$convert()}}function g(e){return e["hp-tags"]&&e["hp-tags"].split(",").map(function(e){return e.trim()}).filter(function(e){return""!==e})}function m(e,t,n){return e.urls.getContentUrl(n,t)}},dCDI:function(e,t,n){"use strict";(function(e,t){var i,o=n("pFYg"),r=n.n(o);i=function(e){var t;(t=e).overlayMode=function(e,n,i){return{startState:function(){return{base:t.startState(e),overlay:t.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(i){return{base:t.copyState(e,i.base),overlay:t.copyState(n,i.overlay),basePos:i.basePos,baseCur:null,overlayPos:i.overlayPos,overlayCur:null}},token:function(t,o){return(t!=o.streamSeen||Math.min(o.basePos,o.overlayPos)"},redirect:"/dashboard",meta:{auth:!0},children:t.nextState.routes.map(function(e){return console.log(e),e.entries}).reduce(function(e,t){return e.concat(t)},[])}]},i=new r.default(n);return i.routes=t.nextState.routes,i.beforeEach(function(e,t,n){var i=Object(a.default)();e.matched.some(function(e){return e.meta.auth})?i.state.authentication.isAuthenticated?n():n({path:"/login",query:{redirect:e.fullPath}}):n()}),i};var i=n("I3G/"),o=n.n(i),r=n("/ocq"),a=n("fbRD"),s=n("LEOq"),c=n.n(s),u=(n("7cn8"),n("YG9q")),l=n("QMmS"),p=n("3oxy"),d=n("H8Oa"),f=n("bxJ0"),h=n("WiUJ"),g=n("H1PK"),m=n("d/OL"),v=(n("Y2j8"),n("1AqL")),b=n("tLh+");console.log("router =============="),console.log("Router"),o.a.use(r.default),c.a.register(u.a,l.b,p.a,d.a,f.a,h.a,g.a,m.a,v.a,b.a),console.log("Registered plugins",c.a.list())},oS0V:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui center aligned grid"},[n("div",{staticClass:"ui middle aligned grid"},[e.requireInitilisation?n("div",{staticClass:"column"},[n("div",{staticClass:"ui segment"},[n("initialisation-component",{tag:"component"})],1)]):e._e(),e.requireInitilisation?e._e():n("div",{staticClass:"column",attrs:{id:"loginForm"}},[n("div",{staticClass:"ui segment"},[n("img",{staticClass:"image",attrs:{src:"https://hubpress.github.io/img/freeze/logo.png"}}),n("h2",{staticClass:"ui header"},[e._v("\n Welcome!\n ")]),n("div",{staticClass:"content"}),n("form",{staticClass:"ui medium form",on:{submit:function(t){t.preventDefault(),e.login({email:e.email,password:e.password})}}},[n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"user icon"}),n("input",{attrs:{type:"text",name:"email",placeholder:"Username or e-mail address"},domProps:{value:e.email},on:{input:e.updateEmail}})])]),n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"lock icon"}),n("input",{attrs:{type:"password",name:"password",placeholder:"Password"},domProps:{value:e.password},on:{input:e.updatePassword}})])]),e.isTwoFactorCodeRequired?n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"key icon"}),n("input",{attrs:{type:"text",name:"twoFactorCode",placeholder:"Two factor code"},domProps:{value:e.twoFactorCode},on:{input:e.updateTwoFactorCode}})])]):e._e(),n("button",{staticClass:"ui fluid large submit button",attrs:{type:"submit",name:"button"}},[e._v("Login")])]),e._m(0)])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui message"},[this._v("\n If you have questions about how to use HubPress, "),t("a",{attrs:{href:"https://hubpress.gitbooks.io/hubpress-knowledgebase/content/"}},[this._v("here is the right place.")])])}]};t.a=i},oz2E:function(e,t,n){"use strict";t.a={name:"dashboard",beforeCreate:function(){console.log("dashboard beforeCreate")},created:function(){console.log("dashboard created")}}},pSdL:function(e,t,n){var i=n("LnjV");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("2e903ce0",i,!0,{sourceMap:!1})},pyJH:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{},[n("h4",{staticClass:"ui dividing header"},[e._v("Informations")]),n("div",{staticClass:"field"},[n("label",[e._v("Title")]),n("input",{attrs:{type:"text",name:"hubpress-title",placeholder:"Title"},domProps:{value:e.site.title}})]),n("div",{staticClass:"field"},[n("label",[e._v("Description")]),n("input",{attrs:{type:"text",name:"hubpress-description",placeholder:"Description"},domProps:{value:e.site.description}})]),n("div",{staticClass:"field"},[n("label",[e._v("Logo")]),n("input",{attrs:{type:"text",name:"hubpress-logo",placeholder:"Logo"},domProps:{value:e.site.logo}})]),n("div",{staticClass:"field"},[n("label",[e._v("Cover image")]),n("input",{attrs:{type:"text",name:"hubpress-cover-image",placeholder:"Cover image"},domProps:{value:e.site.cover}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Rendering")]),n("div",{staticClass:"field"},[n("label",[e._v("Live preview render delay (ms)")]),n("input",{attrs:{type:"text",name:"hubpress-render-delay",placeholder:"300"},domProps:{value:e.meta.delay}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Generation")]),n("div",{staticClass:"field"},[n("label",[e._v("Theme")]),n("input",{attrs:{type:"text",name:"hubpress-theme",placeholder:"Theme"},domProps:{value:e.theme.name}})]),n("div",{staticClass:"field"},[n("label",[e._v("Posts per page")]),n("input",{attrs:{type:"text",name:"hubpress-posts-per-page",placeholder:"Posts per page"},domProps:{value:e.site.postsPerPage}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Services")]),n("div",{staticClass:"field"},[n("label",[e._v("Google analytics")]),n("input",{attrs:{type:"text",name:"hubpress-ga",placeholder:"Google analytics"},domProps:{value:e.site.googleAnalytics}})]),n("div",{staticClass:"field"},[n("label",[e._v("Disqus shortname")]),n("input",{attrs:{type:"text",name:"hubpress-disqus",placeholder:"Disqus shortname"},domProps:{value:e.site.disqus}})])])},staticRenderFns:[]};t.a=i},qZPA:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".html-rendering,.published-preview{min-width:100%;height:calc(100vh - 47px);min-height:calc(100vh - 47px)}",""])},qcny:function(e,t,n){"use strict";n.d(t,"b",function(){return D});var i=n("Xxa5"),o=n.n(i),r=n("//Fk"),a=(n.n(r),n("C4MV")),s=n.n(a),c=n("woOf"),u=n.n(c),l=n("Dd8w"),p=n.n(l),d=n("exGp"),f=n.n(d),h=n("MU8w"),g=(n.n(h),n("I3G/")),m=n.n(g),v=n("p3jY"),b=n.n(v),x=n("mtxM"),C=n("0F0d"),y=n("HBB+"),w=n("WRRc"),P=n("ct3O"),k=n("Hot+"),S=n("yTq1"),_=n("YLfZ"),R=n("J2Ti"),q=n("zQW4"),M=n("6hdJ");n.d(t,"a",function(){return P.a});var $,D=($=f()(o.a.mark(function e(t){var n,i,r,a,c,l,d;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(x.a)(t),(i=Object(R.a)(t)).$router=n,r=p()({router:n,store:i,nuxt:{defaultTransition:j,transitions:[j],setTransitions:function(e){return Array.isArray(e)||(e=[e]),e=e.map(function(e){return e=e?"string"==typeof e?u()({},j,{name:e}):u()({},j,e):j}),this.$options.nuxt.transitions=e,e},err:null,dateErr:null,error:function(e){e=e||null,r.context._errored=!!e,"string"==typeof e&&(e={statusCode:500,message:e});var n=this.nuxt||this.$options.nuxt;return n.dateErr=Date.now(),n.err=e,t&&(t.nuxt.error=e),e}}},S.a),i.app=r,a=t?t.next:function(e){return r.router.push(e)},c=void 0,t?c=n.resolve(t.url).route:(l=Object(_.d)(n.options.base),c=n.resolve(l).route),e.next=10,Object(_.m)(r,{route:c,next:a,error:r.nuxt.error.bind(r),store:i,payload:t?t.payload:void 0,req:t?t.req:void 0,res:t?t.res:void 0,beforeRenderFns:t?t.beforeRenderFns:void 0});case 10:if(d=function(e,t){if(!e)throw new Error("inject(key, value) has no key provided");if(!t)throw new Error("inject(key, value) has no value provided");r[e="$"+e]=t,i[e]=r[e];var n="__nuxt_"+e+"_installed__";m.a[n]||(m.a[n]=!0,m.a.use(function(){m.a.prototype.hasOwnProperty(e)||s()(m.a.prototype,e,{get:function(){return this.$root.$options[e]}})}))},window.__NUXT__&&window.__NUXT__.state&&i.replaceState(window.__NUXT__.state),"function"!=typeof q.a){e.next=15;break}return e.next=15,Object(q.a)(r.context,d);case 15:if("function"!=typeof M.a){e.next=18;break}return e.next=18,Object(M.a)(r.context,d);case 18:e.next=21;break;case 21:return e.abrupt("return",{app:r,router:n,store:i});case 22:case"end":return e.stop()}},e,this)})),function(e){return $.apply(this,arguments)});m.a.component(C.a.name,C.a),m.a.component(y.a.name,y.a),m.a.component(w.a.name,w.a),m.a.component(k.a.name,k.a),m.a.use(b.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var j={name:"page",mode:"out-in",appear:!0,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"}},r6qT:function(e,t,n){var i=n("HEYa");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("2b9275f1",i,!0,{sourceMap:!1})},"tLh+":function(e,t,n){"use strict";t.a=function(e){e.on("requestGenerateIndex",function(e){console.info("rssPlugin - requestGenerateIndex"),console.log("rssPlugin - requestGenerateIndex",e);var t=e.rootState.application.config.site||{},n=e.rootState.application.config.urls.site||"",i=e.nextState.publishedPosts||[],r=new o.a({title:t.title||"",description:t.description||"",feed_url:n+"/rss/",site_url:n,image_url:t.cover,ttl:"60"});i.forEach(function(e){r.item({title:e.title,description:e.html,url:""+n+e.url,categories:e.tags,author:e.author.name,date:e.published_at})});var a=r.xml(),s=[];return s.push({name:"RSS",path:"rss/index.xml",content:a,message:"Publish rss feed"}),e.nextState.elementsToPublish=(e.nextState.elementsToPublish||[]).concat(s),e})};var i=n("DVIz"),o=n.n(i)},unZF:function(e,t,n){"use strict";var i=n("BO1k"),o=n.n(i),r=n("GfDd"),a=r.keys();function s(e){var t=r(e);return t.default?t.default:t}var c={},u=!0,l=!1,p=void 0;try{for(var d,f=o()(a);!(u=(d=f.next()).done);u=!0){var h=d.value;c[h.replace(/^\.\//,"").replace(/\.(js|ts)$/,"")]=s(h)}}catch(e){l=!0,p=e}finally{try{!u&&f.return&&f.return()}finally{if(l)throw p}}t.a=c},vKgl:function(e,t,n){var i=n("EgsU");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("44921a73",i,!0,{sourceMap:!1})},vXEZ:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".nuxt-progress{position:fixed;top:0;left:0;right:0;height:2px;width:0;-webkit-transition:width .2s,opacity .4s;transition:width .2s,opacity .4s;opacity:1;background-color:#efc14e;z-index:999999}",""])},wGIl:function(e,t,n){var i=n("m8kW");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("6bc7b368",i,!0,{sourceMap:!1})},wQtD:function(e,t,n){"use strict";t.a={name:"navigation-settings",data:function(){return{newNav:{label:"",url:""},navigation:this.$store.state.application.config.navigation||[]}},computed:{isNotValid:function(){return""===this.newNav.label.trim()||""===this.newNav.url.trim()}},methods:{remove:function(e){this.navigation.splice(e,1)},clear:function(){this.newNav={label:"",url:""}},add:function(e){this.navigation.push(e),this.clear()}}}},wrAo:function(e,t,n){"use strict";t.a={name:"hubpress-settings-social",computed:{social:function(){return this.$store.state.application.config.socialnetwork||{}}}}},xgbc:function(e,t,n){var i=n("y4OV");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("0c6dd1d8",i,!0,{sourceMap:!1})},y4OV:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"",""])},yJpT:function(e,t,n){var i=n("j9sj");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("33615082",i,!0,{sourceMap:!1})},yTq1:function(e,t,n){"use strict";var i=n("//Fk"),o=n.n(i),r=n("I3G/"),a=n.n(r),s=n("F88d"),c=n("XSDV"),u=(n.n(c),{_default:function(){return n.e(0).then(n.bind(null,"Ma2J")).then(function(e){return e.default||e})}}),l={};t.a={head:{title:"Hubpress: A web application to build your Blog",meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{hid:"description",name:"description",content:"Nuxt.js project"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"},{rel:"stylesheet",href:"../static/semantic/semantic.min.css"}],style:[],script:[]},render:function(e,t){var n=e("nuxt-loading",{ref:"loading"}),i=e(this.layout||"nuxt");return e("div",{domProps:{id:"__nuxt"}},[n,e("transition",{props:{name:"layout",mode:"out-in"}},[e("div",{domProps:{id:"__layout"},key:this.layoutName},[i])])])},data:function(){return{layout:null,layoutName:""}},beforeCreate:function(){a.a.util.defineReactive(this,"nuxt",this.$options.nuxt)},created:function(){a.a.prototype.$nuxt=this,"undefined"!=typeof window&&(window.$nuxt=this),this.error=this.nuxt.error},mounted:function(){this.$loading=this.$refs.loading},watch:{"nuxt.err":"errorChanged"},methods:{errorChanged:function(){this.nuxt.err&&this.$loading&&(this.$loading.fail&&this.$loading.fail(),this.$loading.finish&&this.$loading.finish())},setLayout:function(e){e&&l["_"+e]||(e="default"),this.layoutName=e;var t="_"+e;return this.layout=l[t],this.layout},loadLayout:function(e){var t=this;e&&(u["_"+e]||l["_"+e])||(e="default");var n="_"+e;return l[n]?o.a.resolve(l[n]):u[n]().then(function(e){return l[n]=e,delete u[n],l[n]}).catch(function(e){if(t.$nuxt)return t.$nuxt.error({statusCode:500,message:e.message})})}},components:{NuxtLoading:s.a}}},yUYC:function(e,t,n){"use strict";var i=n("I3G/"),o=n.n(i);t.a={name:"nuxt-loading",data:function(){return{percent:0,show:!1,canSuccess:!0,duration:5e3,height:"2px",color:"#3B8070",failedColor:"red"}},methods:{start:function(){var e=this;return this.show=!0,this.canSuccess=!0,this._timer&&(clearInterval(this._timer),this.percent=0),this._cut=1e4/Math.floor(this.duration),this._timer=setInterval(function(){e.increase(e._cut*Math.random()),e.percent>95&&e.finish()},100),this},set:function(e){return this.show=!0,this.canSuccess=!0,this.percent=Math.floor(e),this},get:function(){return Math.floor(this.percent)},increase:function(e){return this.percent=this.percent+Math.floor(e),this},decrease:function(e){return this.percent=this.percent-Math.floor(e),this},finish:function(){return this.percent=100,this.hide(),this},pause:function(){return clearInterval(this._timer),this},hide:function(){var e=this;return clearInterval(this._timer),this._timer=null,setTimeout(function(){e.show=!1,o.a.nextTick(function(){setTimeout(function(){e.percent=0},200)})},500),this},fail:function(){return this.canSuccess=!1,this}}}},ys1n:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".grid[data-v-94154cf6]{margin:0;height:100%;background-color:#dadada}#loginForm.column[data-v-94154cf6]{max-width:450px;text-align:center}.column[data-v-94154cf6]{max-width:750px}",""])},zQW4:function(e,t,n){"use strict";for(var i=n("woOf"),o=n.n(i),r=n("//Fk"),a=n.n(r),s=n("BO1k"),c=n.n(s),u=n("mtWM"),l=n.n(u),p={setHeader:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",i=!0,o=!1,r=void 0;try{for(var a,s=c()(Array.isArray(n)?n:[n]);!(i=(a=s.next()).done);i=!0){var u=a.value;if(!t)return void delete this.defaults.headers[u][e];this.defaults.headers[u][e]=t}}catch(e){o=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw r}}},setToken:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",i=e?(t?t+" ":"")+e:null;this.setHeader("Authorization",i,n)},onRequest:function(e){this.interceptors.request.use(function(t){return e(t)||t})},onResponse:function(e){this.interceptors.response.use(function(t){return e(t)||t})},onRequestError:function(e){this.interceptors.request.use(void 0,function(t){return e(t)||a.a.reject(t)})},onResponseError:function(e){this.interceptors.response.use(void 0,function(t){return e(t)||a.a.reject(t)})},onError:function(e){this.onRequestError(e),this.onResponseError(e)}},d=function(e){p["$"+e]=function(){return this[e].apply(this,arguments).then(function(e){return e&&e.data})}},f=["request","delete","get","head","options","post","put","patch"],h=0;h1&&(r=(e.path||"")+"page/"+o+"/index.html"),o>1&&(v=o-1),oo-1||g+1===t.length){var w=l.a.template(e.template,{pagination:{prev:v,next:m,page:o,pages:h,total:t.length,limit:u},context:"index"===e.template&&0===v?"home":e.template,posts:a,tag:e.tag,author:e.author,title:i.title,description:i.description,socialnetwork:p,relativeUrl:""},{config:n,theme:e.opts.nextState.theme});s.push({name:"page-"+o,path:r,content:w,message:"Publish page-"+o+" "+e.template}),a=[],o++}}),e.opts.nextState.elementsToPublish=(e.opts.nextState.elementsToPublish||[]).concat(s),e.opts}}]),e}();t.a=new f},BdWi:function(e,t,n){"use strict";t.a=function(e){console.info("PagesGenerator - generate"),console.log("PagesGenerator - generate",e);var t=e;return e.nextState.publishedPages.forEach(function(e){t=Object(o.a)(t,e)}),t};n("APUd");var i=n("j+6P"),o=(n.n(i),n("KgKs"))},E1SC:function(e,t,n){"use strict";var i=n("SUis"),o=n("dpIk");var r=function(e){n("91oq")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},"ET/a":function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui center aligned grid"},[n("div",{staticClass:"ui middle aligned grid"},[e.requireInitilisation?n("div",{staticClass:"column"},[n("div",{staticClass:"ui segment"},[n("initialisation-component",{tag:"component"})],1)]):e._e(),e.requireInitilisation?e._e():n("div",{staticClass:"column",attrs:{id:"loginForm"}},[n("div",{staticClass:"ui segment"},[n("img",{staticClass:"image",attrs:{src:"https://hubpress.github.io/images/logo.png"}}),n("h2",{staticClass:"ui header"},[e._v("\n Welcome!\n ")]),n("div",{staticClass:"content"}),n("form",{staticClass:"ui medium form",on:{submit:function(t){t.preventDefault(),e.login({email:e.email,password:e.password})}}},[n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"user icon"}),n("input",{attrs:{type:"text",name:"email",placeholder:"Username or e-mail address"},domProps:{value:e.email},on:{input:e.updateEmail}})])]),n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"lock icon"}),n("input",{attrs:{type:"password",name:"password",placeholder:"Password"},domProps:{value:e.password},on:{input:e.updatePassword}})])]),e.isTwoFactorCodeRequired?n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"key icon"}),n("input",{attrs:{type:"text",name:"twoFactorCode",placeholder:"Two factor code"},domProps:{value:e.twoFactorCode},on:{input:e.updateTwoFactorCode}})])]):e._e(),n("button",{staticClass:"ui fluid large submit button",attrs:{type:"submit",name:"button"}},[e._v("Login")])]),e._m(0)])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui message"},[this._v("\n If you have questions about how to use HubPress, "),t("a",{attrs:{href:"https://hubpress.gitbooks.io/hubpress-knowledgebase/content/"}},[this._v("here is the right place.")])])}]};t.a=i},F6eF:function(e,t,n){"use strict";var i=n("7t+N"),o=n.n(i);t.a={name:"initialise-configuration",data:function(){return{username:"",repositoryName:"hubpress.io",branch:"master",cname:void 0}},mounted:function(){o()("div.dropdown").dropdown()},computed:{isValid:function(){return""!=this.username.trim()&&""!=this.repositoryName.trim()}},methods:{submit:function(){var e={username:this.username,repositoryName:this.repositoryName,branch:this.branch,cname:this.cname};this.$store.dispatch("application:save-startup-config",e)}}}},F88d:function(e,t,n){"use strict";var i=n("yUYC"),o=n("cmzl");var r=function(e){n("0xYM")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},FIB3:function(e,t,n){"use strict";t.a={name:"nuxt-error",props:["error"],head:function(){return{title:this.message,meta:[{name:"viewport",content:"width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"}]}},computed:{statusCode:function(){return this.error&&this.error.statusCode||500},message:function(){return this.error.message||"Error"}}}},FdPX:function(e,t,n){"use strict";var i={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"__nuxt-error-page"},[t("div",{staticClass:"error"},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"90",height:"90",fill:"#DBE1EC",viewBox:"0 0 48 48"}},[t("path",{attrs:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}})]),t("div",{staticClass:"title"},[this._v(this._s(this.message))]),404===this.statusCode?t("p",{staticClass:"description"},[t("nuxt-link",{staticClass:"error-link",attrs:{to:"/"}},[this._v("Back to the home page")])],1):this._e(),this._m(0)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"logo"},[t("a",{attrs:{href:"https://nuxtjs.org",target:"_blank",rel:"noopener"}},[this._v("Nuxt.js")])])}]};t.a=i},FoP8:function(module,__webpack_exports__,__webpack_require__){"use strict";function applyScript(hasChanged){if(hasChanged){for(var element=document.getElementById("html-content"),scripts=element.getElementsByTagName("script"),addedScripts=[],i=0;i.menu[data-v-0536f20d]{height:47px}",""])},HUXV:function(e,t,n){"use strict";var i=n("6Ndi");t.a={refreshAfterSavedConfig:function(e){return i.a.fireRequestTheme(e).then(function(t){return i.a.fireReceiveTheme(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return console.time("Build content"),e}).then(function(e){return i.a.fireRequestGenerateIndex(e)}).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGeneratePosts(e)}).then(function(e){return i.a.fireReceiveGeneratePosts(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)}).then(function(e){return i.a.fireRequestLocalPublishedPages(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPages(e)}).then(function(e){return i.a.fireRequestGeneratePages(e)}).then(function(e){return i.a.fireReceiveGeneratePages(e)}).then(function(e){return console.timeEnd("Build content"),e}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})}}},"Hot+":function(e,t,n){"use strict";var i=n("I3G/"),o=n.n(i),r=n("HBB+"),a=n("ct3O"),s=n("YLfZ");t.a={name:"nuxt",props:["nuxtChildKey","keepAlive"],render:function(e){return this.nuxt.err?e("nuxt-error",{props:{error:this.nuxt.err}}):e("nuxt-child",{key:this.routerViewKey,props:this.$props})},beforeCreate:function(){o.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(s.b)(this.$route.matched[0].path)(this.$route.params);var e=this.$route.matched[0]&&this.$route.matched[0].components.default;return e&&e.options&&e.options.key?"function"==typeof e.options.key?e.options.key(this.$route):e.options.key:this.$route.path}},components:{NuxtChild:r.a,NuxtError:a.a}}},IBrK:function(e,t,n){"use strict";var i=n("F6eF"),o=n("N3Gg");var r=function(e){n("XkEn")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Ie2b:function(e,t){},Irdm:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"settings-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.submit(t)}}},[e._m(0)])])]),n("div",{staticClass:"ui container settings-content"},[e._m(1),n("div",{staticClass:"ui divider"}),n("form",{staticClass:"ui form",attrs:{id:"mainForm"}},[n("div",{staticClass:"ui secondary pointing menu"},[n("div",{staticClass:"item active",attrs:{"data-tab":"application",id:"application-tab"}},[e._v("Application")]),e._l(e.tabs,function(t){return n("div",{key:t.id,staticClass:"item",attrs:{"data-tab":t.id}},[e._v(e._s(t.label))])})],2),n("div",{staticClass:"ui bottom attached tab segment active",attrs:{"data-tab":"application"}},[n("h4",{staticClass:"ui dividing header"},[e._v("Domain")]),n("div",{staticClass:"field"},[n("label",[e._v("CNAME")]),n("input",{attrs:{type:"text",name:"application-cname",placeholder:"CNAME"},domProps:{value:e.config.meta.cname}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Metadata (set in config.json)")]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub username")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-username",placeholder:"Github username"},domProps:{value:e.config.meta.username}})]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub repository name")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-repository-name",placeholder:"GitHub repository name"},domProps:{value:e.config.meta.repositoryName}})]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub branch")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-branch",placeholder:"GitHub branch"},domProps:{value:e.config.meta.branch}})]),e._m(2)]),e._l(e.tabs,function(e){return n("div",{key:e.id,staticClass:"ui bottom attached tab segment ",attrs:{"data-tab":e.id}},[n(e.id,{tag:"component"})],1)})],2)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Save your settings","data-position":"bottom right"}},[t("i",{staticClass:"save large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"ui center aligned icon header"},[t("i",{staticClass:"circular settings icon"}),this._v("\n Settings\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"disabled field"},[t("label",[this._v("Blog URL")]),t("input",{attrs:{type:"text",disabled:"",name:"application-blog-url",placeholder:"Blog URL"}})])}]};t.a=i},J2Ti:function(e,t,n){"use strict";n.d(t,"a",function(){return y});var i=n("woOf"),o=n.n(i),r=n("BO1k"),a=n.n(r),s=n("I3G/"),c=n.n(s),u=n("NYxO");c.a.use(u.default);var l=n("1H2/"),p=l.keys(),d={},f=void 0;if(p.forEach(function(e){-1!==e.indexOf("./index.")&&(f=e)}),f&&(d=P(f)),"function"!=typeof d){d.modules||(d.modules={});var h=!0,g=!1,m=void 0;try{for(var v,b=a()(p);!(h=(v=b.next()).done);h=!0){var x=v.value,C=x.replace(/^\.\//,"").replace(/\.(js|ts)$/,"");if("index"!==C){var w=C.split(/\//);(e=k(d,w))[C=w.pop()]=P(x),e[C].namespaced=!0}}}catch(e){g=!0,m=e}finally{try{!h&&b.return&&b.return()}finally{if(g)throw m}}}var y=d instanceof Function?d:function(){return new u.default.Store(o()({strict:!1},d,{state:d.state instanceof Function?d.state():{}}))};function P(e){var t=l(e),n=t.default||t;if(n.commit)throw new Error("[nuxt] store/"+e.replace("./","")+" should export a method which returns a Vuex instance.");if(n.state&&"function"!=typeof n.state)throw new Error("[nuxt] state should be a function in store/"+e.replace("./",""));return n}function k(e,t){if(1===t.length)return e.modules;var n=t.shift();return e.modules[n]=e.modules[n]||{},e.modules[n].namespaced=!0,e.modules[n].modules=e.modules[n].modules||{},k(e.modules[n],t)}},JtYm:function(e,t,n){"use strict";var i=n("6Ndi");function o(e){return i.a.fireRequestLocalPosts(e).then(function(e){return i.a.fireReceiveLocalPosts(e)})}t.a={deletePost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=t,e}).then(function(e){return e.nextState.post.original?i.a.fireRequestDeleteRemotePost(e).then(function(e){return i.a.fireReceiveDeleteRemotePost(e)}):e}).then(function(e){return i.a.fireRequestDeleteLocalPost(e)}).then(function(e){return i.a.fireReceiveDeleteLocalPost(e)}).then(function(e){return e.nextState.post.published?i.a.fireRequestDeleteRemotePublishedPost(e).then(function(e){return i.a.fireReceiveDeleteRemotePublishedPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return i.a.fireRequestGenerateIndex(e)}).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)}):e}).then(o)},getLocalPost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)})},getLocalPosts:o,remoteSavePost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){return i.a.fireRequestSaveRemotePost(e)}).then(function(e){return i.a.fireReceiveSaveRemotePost(e)}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)})},renderAndSavePost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){return e.nextState.post.content=e.payload.post.content,e}).then(function(e){return i.a.fireRequestRenderingPost(e)}).then(function(e){return i.a.fireReceiveRenderingPost(e)}).then(function(e){return e.nextState.post&&e.nextState.post.title?i.a.fireRequestSaveLocalPost(e).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}):e}).then(function(e){var t=e.nextState.post.original;return e.nextState.post.original=e.nextState.post,e.nextState.post.original.author=e.nextState.post.original.author||e.rootState.authentication.userInformations,i.a.fireRequestGeneratePost(e).then(function(e){return i.a.fireReceiveGeneratePost(e)}).then(function(e){var n=e.nextState.elementsToPublish[0]||{};return e.nextState.post.publishedContent=n.content,e.nextState.post.original=t,e})})},publishPost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=_.union(e.nextState.post.tags,t),e}).then(function(e){return i.a.fireRequestSaveRemotePost(e)}).then(function(e){return i.a.fireReceiveSaveRemotePost(e)}).then(function(e){return e.nextState.post.original.author=e.nextState.post.original.author||e.nextState.post.author,e.nextState.post.published=1,e}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return i.a.fireRequestGeneratePost(e)}).then(function(e){return i.a.fireReceiveGeneratePost(e)}).then(function(e){return"post"!==e.nextState.post.type?e:i.a.fireRequestGenerateIndex(e).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)})}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})},unpublishPost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=t,e}).then(function(e){return i.a.fireRequestDeleteRemotePublishedPost(e)}).then(function(e){return i.a.fireReceiveDeleteRemotePublishedPost(e)}).then(function(e){return e.nextState.post.published=0,e}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return"post"!==e.nextState.post.type?e:i.a.fireRequestGenerateIndex(e).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)})}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})}}},KMrN:function(e,t,n){"use strict";var i=n("LEOq"),o=n.n(i);t.a={authenticate:function(e){return function(e){return o.a.fire("requestAuthentication",e)}(e).then(function(e){return(t=e).nextState.twoFactorRequired?payload:o.a.fire("receiveAuthentication",t);var t})},initialize:function(e){return function(e){return o.a.fire("requestSavedAuth",e)}(e).then(function(e){return t=e,o.a.fire("receiveSavedAuth",t);var t})}}},KOTd:function(e,t,n){"use strict";t.a=function(e){console.info("AuthorGenerator - generate"),console.log("AuthorGenerator - generate",e);var t=void 0;if(!s.a.isTemplateAvailable("author"))return e;t=e.nextState.author?e.nextState.publishedPosts.filter(function(t){return t.author.login===e.nextState.author.login}):e.nextState.publishedPosts;var n=r.a.reduce(t,function(e,t){return e[t.author.login]=e[t.author.login]||[],e[t.author.login].push(t),e},{}),o=e;return r.a.each(n,function(e,t){var n=e[0].author;n.name=n.name||n.login,n.slug=t,n.website=n.blog,n.status="",o=i.a.generate({opts:o,posts:e,author:n,template:"author",path:"author/"+t+"/"})}),o};var i=n("APUd"),o=n("M4fF"),r=n.n(o),a=n("j+6P"),s=n.n(a),c=n("n+xr");n.n(c)},KgKs:function(e,t,n){"use strict";t.a=function(e,t){console.info("PostGenerator - generate"),console.log("PostGenerator - generate",e);var n=t,i=o()({},n.original);i.tags=a.a.map(i.tags,function(e){return{name:e,slug:l()(e)}});var r=i.author;i.author={id:r.id,name:r.name||r.login,location:r.location,website:r.blog,image:r.avatar_url,profile_image:r.avatar_url,bio:r.bio,status:"",slug:r.login};var s=e.rootState.application.config,u=s.urls;e.nextState.theme.name,e.nextState.theme.version,s.urls.theme;i.urls=u,i.status="published",i.feature_image=i.image;var p="index.adoc"===n.name?"home":n.type||"post";if(!c.a.isTemplateAvailable(p))return e;var d=c.a.template(p,{context:n.type||"post",socialnetwork:s.socialnetwork,relativeUrl:n.url,post:i,author:i.author},{config:s,theme:e.nextState.theme}),f=[];return f.push({title:n.title,image:n.image,name:n.name,path:s.urls.getContentGhPath(n.name,n.type),url:s.urls.getContentGhPath(n.name,n.type),content:d,message:"Publish "+n.name,published_at:n.published_at}),e.nextState.elementsToPublish=(e.nextState.elementsToPublish||[]).concat(f),e};var i=n("woOf"),o=n.n(i),r=n("M4fF"),a=n.n(r),s=n("j+6P"),c=n.n(s),u=n("n+xr"),l=n.n(u)},LB67:function(e,t,n){"use strict";var i=n("6Ndi");t.a={authenticate:function(e){return i.a.fireRequestAuthentication(e).then(function(e){return i.a.fireReceiveAuthentication(e)})}}},MHN4:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".about-content{padding-top:60px}",""])},N3Gg:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"initialise-configuration"},[e._m(0),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"content"},[e._v("\n We need to initialize your configuration before a first use.\n ")]),n("div",{staticClass:"ui divider"}),n("form",{staticClass:"ui form",attrs:{id:"configurationForm"},on:{submit:function(t){t.preventDefault(),e.submit()}}},[n("div",{staticClass:"required field"},[n("label",[e._v("Username")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.username,expression:"username"}],attrs:{type:"text",name:"configuration-username",placeholder:"Your github username"},domProps:{value:e.username},on:{input:function(t){t.target.composing||(e.username=t.target.value)}}})]),n("div",{staticClass:"required field"},[n("label",[e._v("Repository name")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.repositoryName,expression:"repositoryName"}],attrs:{type:"text",name:"configuration-cname",placeholder:"The name of your repository"},domProps:{value:e.repositoryName},on:{input:function(t){t.target.composing||(e.repositoryName=t.target.value)}}})]),n("div",{staticClass:"required field"},[n("label",[e._v("Branch")]),n("div",{staticClass:"ui selection dropdown"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.branch,expression:"branch"}],attrs:{type:"hidden",name:"branch"},domProps:{value:e.branch},on:{input:function(t){t.target.composing||(e.branch=t.target.value)}}}),n("i",{staticClass:"dropdown icon"}),n("div",{staticClass:"default text"},[e._v("master")]),e._m(1)])]),n("div",{staticClass:"field"},[n("label",[e._v("Domain name")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.cname,expression:"cname"}],attrs:{type:"text",name:"configuration-cname",placeholder:"Your domain name if you have one"},domProps:{value:e.cname},on:{input:function(t){t.target.composing||(e.cname=t.target.value)}}})]),n("button",{staticClass:"ui fluid large submit button",attrs:{type:"submit",name:"button",disabled:!e.isValid}},[e._v("Ok, let's go!")])]),e._m(2)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"ui center aligned icon header"},[t("i",{staticClass:"circular configure icon"}),this._v("\n Configuration\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"menu"},[t("div",{staticClass:"item",attrs:{"data-value":"master"}},[this._v("master")]),t("div",{staticClass:"item",attrs:{"data-value":"gh-pages"}},[this._v("gh-pages")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui message"},[this._v("\n If you have questions about how to use HubPress, "),t("a",{attrs:{href:"https://hubpress.gitbooks.io/hubpress-knowledgebase/content/"}},[this._v("here is the right place.")])])}]};t.a=i},NpFX:function(e,t,n){"use strict";var i=n("FoP8"),o=n("XO7e");var r=function(e){n("YDvP")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Pm0L:function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"f",function(){return o}),n.d(t,"g",function(){return r}),n.d(t,"h",function(){return a}),n.d(t,"d",function(){return s}),n.d(t,"c",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"a",function(){return l});var i="login:submit",o="login:updateEmail",r="login:updatePassword",a="login:updateTwoFactorCode",s="authorisation:request-login",c="authorisation:receive-login",u="authorisation:failure-login",l="authorisation:authentication-done"},Q7NK:function(e,t,n){"use strict";(function(e,t){var i,o=n("pFYg"),r=n.n(o);i=function(e){e.defineMode("asciidoc",function(e,t){var n=1e3,i=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],i=[],o=0,r=this.matchMappings[t]={defaultToken:"text"},a="g",s=[],c=0;c1?this.$applyToken:u.token);p>1&&(/\\\d/.test(u.regex)?l=u.regex.replace(/\\([0-9]+)/g,function(e,t){return"\\"+(parseInt(t,10)+o+1)}):(p=1,l=this.removeCapturingGroups(u.regex)),u.splitRegex||"string"==typeof u.token||s.push(u)),r[o]=c,o+=p,i.push(l),u.onMatch||(u.onMatch=null)}}s.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)},this),this.regExps[t]=new RegExp("("+i.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(e){n=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var i=[],o=0,r=n.length;ol){var m=e.substring(l,g-h.length);p.type==d?p.value+=m:(p.type&&u.push(p),p={type:d,value:m})}for(var v=0;vn){for(;l1&&i[0]!==o&&i.unshift(o),{tokens:u,state:i.length?i:o}}}).call(i.prototype);var o={empty:null,text:null,keyword:"keyword",control:"keyword",operator:"operator",constant:"atom",numeric:"number",character:"atom",escape:"atom",variable:"variable",parameter:"variable-3",language:"variable-2",comment:"comment",line:"comment","double-slash":"comment","double-dash":"comment","number-sign":"comment",percentage:"comment",block:"comment",doc:"comment",string:"string",quoted:"string",single:"string",double:"string",triple:"string",unquoted:"string",interpolated:"string",regexp:"string-2",meta:"keyword",literal:"qualifier",support:"builtin",markup:"tag",underline:"link",link:"link",strong:"strong",heading:"header",heading2:"header-2",heading3:"header-3",heading4:"header-4",heading5:"header-5",heading6:"header-6",em:"em",list:"variable-2",numbered:"variable-2",unnumbered:"variable-2",quote:"quote",raw:"variable-2",invalid:"error",illegal:"invalidchar",deprecated:"error"},r=function(e,t){var n=t.plannedTokens.shift();return void 0===n?null:(e.match(n.value),function(e){for(var t=null,n=0;n0)return r(e,t);var n=t.current,i=e.match(/.*$/,!1)[0],o=s.getLineTokens(i,n);return t.plannedTokens=o.tokens,t.current=o.state,r(e,t)},s=new i((new function(){function e(e){return(/\w/.test(e)?"\\b":"(?:\\B|^)")+e+"[^"+e+"].*?"+e+"(?![\\w*])"}this.$rules={start:[{token:"empty",regex:/$/},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"literal",regex:/^-{4,}\s*$/,next:"literalBlock"},{token:"literal",regex:/^\+{4,}\s*$/,next:"passthroughBlock"},{token:"keyword",regex:/^={4,}\s*$/},{token:"text",regex:/^\s*$/},{token:"empty",regex:"",next:"dissallowDelimitedBlock"}],dissallowDelimitedBlock:[{include:"paragraphEnd"},{token:"comment",regex:"^//.+$"},{token:"keyword",regex:"^(?:NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s"},{include:"listStart"},{token:"literal",regex:/^\s+.+$/,next:"indentedBlock"},{token:"empty",regex:"",next:"text"}],paragraphEnd:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"commentBlock"},{token:"tableBlock",regex:/^\s*[|!]=+\s*$/,next:"tableBlock"},{token:"keyword",regex:/^(?:--|''')\s*$/,next:"start"},{token:"option",regex:/^\[.*\]\s*$/,next:"start"},{token:"pageBreak",regex:/^>{3,}$/,next:"start"},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"titleUnderline",regex:/^(?:={2,}|-{2,}|~{2,}|\^{2,}|\+{2,})\s*$/,next:"start"},{token:"singleLineTitle",regex:/^={1}\s+\S.*$/,next:"start"},{token:"singleLineTitle2",regex:/^={2}\s+\S.*$/,next:"start"},{token:"singleLineTitle3",regex:/^={3}\s+\S.*$/,next:"start"},{token:"singleLineTitle4",regex:/^={4}\s+\S.*$/,next:"start"},{token:"singleLineTitle5",regex:/^={5}\s+\S.*$/,next:"start"},{token:"singleLineTitle6",regex:/^={6}\s+\S.*$/,next:"start"},{token:"otherBlock",regex:/^(?:\*{2,}|_{2,})\s*$/,next:"start"},{token:"optionalTitle",regex:/^\.[^.\s].+$/,next:"start"}],listStart:[{token:"keyword",regex:/^\s*(?:\d+\.|[a-zA-Z]\.|[ixvmIXVM]+\)|\*{1,5}|-|\.{1,5})\s/,next:"listText"},{token:"meta.tag",regex:/^.+(?::{2,4}|;;)(?: |$)/,next:"listText"},{token:"keyword",regex:/^\+\s*$/,next:"start"}],text:[{token:["link","link"],regex:/((?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+)(\[.*?\])/},{token:["link","link"],regex:/(?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+/},{token:"link",regex:/\b[\w\.\/\-]+@[\w\.\/\-]+\b/},{include:"macros"},{include:"paragraphEnd"},{token:"literal",regex:/\+{3,}/,next:"smallPassthrough"},{token:"escape",regex:/\((?:C|TM|R)\)|\.{3}|->|<-|=>|<=|&#(?:\d+|x[a-fA-F\d]+);|(?: |^)--(?=\s+\S)/},{token:"escape",regex:/\\[_*'`+#]|\\{2}[_*'`+#]{2}/},{token:"keyword",regex:/\s\+$/},{token:"text",regex:"[a-zA-Z¡-￿]+\\b"},{token:["keyword","string","keyword"],regex:/(<<[\w\d\-$]+,)(.*?)(>>|$)/},{token:"keyword",regex:/<<[\w\d\-$]+,?|>>/},{token:"constant.character",regex:/\({2,3}.*?\){2,3}/},{token:"support.function.list.callout",regex:/^(?:<\d+>|\d+>|>) /,next:"text"},{token:"keyword",regex:/\[\[.+?\]\]/},{token:"support",regex:/^\[{3}[\w\d =\-]+\]{3}/},{include:"quotes"},{token:"empty",regex:/^\s*$/,next:"start"}],listText:[{include:"listStart"},{include:"text"}],indentedBlock:[{token:"literal",regex:/^[\s\w].+$/,next:"indentedBlock"},{token:"literal",regex:"",next:"start"}],listingBlock:[{token:"literal",regex:/^\.{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],literalBlock:[{token:"literal",regex:/^-{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],passthroughBlock:[{token:"literal",regex:/^\+{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:"[a-zA-Z¡-￿]+\\b|\\d+"},{include:"macros"},{token:"literal",regex:"."}],smallPassthrough:[{token:"literal",regex:/[+]{3,}/,next:"dissallowDelimitedBlock"},{token:"literal",regex:/^\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:"[a-zA-Z¡-￿]+\\b|\\d+"},{include:"macros"}],commentBlock:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"doc.comment",regex:"^.*$"}],tableBlock:[{token:"tableBlock",regex:/^\s*\|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"innerTableBlock"},{token:"tableBlock",regex:/\|/},{include:"text",noEscape:!0}],innerTableBlock:[{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"tableBlock"},{token:"tableBlock",regex:/^\s*|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/\!/}],macros:[{token:"macro",regex:/{[\w\-$]+}/},{token:["text","string","text","constant.character","text"],regex:/({)([\w\-$]+)(:)?(.+)?(})/},{token:["text","markup.list.macro","keyword","string"],regex:/(\w+)(footnote(?:ref)?::?)([^\s\[]+)?(\[.*?\])?/},{token:["markup.list.macro","keyword","string"],regex:/([a-zA-Z\-][\w\.\/\-]*::?)([^\s\[]+)(\[.*?\])?/},{token:["markup.list.macro","keyword"],regex:/([a-zA-Z\-][\w\.\/\-]+::?)(\[.*?\])/},{token:"keyword",regex:/^:.+?:(?= |$)/}],quotes:[{token:"string.italic",regex:/__[^_\s].*?__/},{token:"string.italic",regex:e("_")},{token:"keyword.bold",regex:/\*\*[^*\s].*?\*\*/},{token:"keyword.bold",regex:e("\\*")},{token:"literal",regex:/\+\+[^+\s].*?\+\+/},{token:"literal",regex:e("\\+")},{token:"literal",regex:/\$\$.+?\$\$/},{token:"literal",regex:e("\\$")},{token:"literal",regex:/``[^`\s].*?``/},{token:"literal",regex:e("`")},{token:"keyword",regex:/\^[^\^].*?\^/},{token:"keyword",regex:e("\\^")},{token:"keyword",regex:/~[^~].*?~/},{token:"keyword",regex:e("~")},{token:"keyword",regex:/##?/},{token:"keyword",regex:/(?:\B|^)``|\b''/}]};var t={macro:"constant.character",tableBlock:"doc.comment",titleUnderline:"markup.heading",singleLineTitle:"markup.heading",singleLineTitle2:"markup.heading2",singleLineTitle3:"markup.heading3",singleLineTitle4:"markup.heading4",singleLineTitle5:"markup.heading5",singleLineTitle6:"markup.heading6",pageBreak:"string",option:"string.regexp",otherBlock:"markup.list",literal:"support.function",optionalTitle:"constant.numeric",escape:"constant.language.escape",link:"markup.underline.list"};for(var n in this.$rules)for(var i=this.$rules[n],o=i.length;o--;){var r=i[o];if(r.include||"string"==typeof r){var a=[o,1].concat(this.$rules[r.include||r]);r.noEscape&&(a=a.filter(function(e){return!e.next})),i.splice.apply(i,a)}else r.token in t&&(r.token=t[r.token])}}).$rules);return{startState:function(){return{current:"start",plannedTokens:[]}},blankLine:function(e){a("",e)},token:a}}),e.defineMIME("text/x-asciidoc","asciidoc")},"object"==("undefined"==typeof exports?"undefined":r()(exports))&&"object"==r()(e)?i(n("8U58")):"object"==("undefined"==typeof brackets?"undefined":r()(brackets))&&brackets.getModule?i(brackets.getModule("thirdparty/CodeMirror2/lib/codemirror")):"function"==typeof define&&n("nErl")?define(["codemirror"],i):i(t)}).call(t,n("f1Eh")(e),n("8U58"))},QMmS:function(e,t,n){"use strict";t.b=function(e){return e.on("application:stores",function(e){var t;console.info("authenticationPlugin - application:stores"),console.log("authenticationPlugin - application:stores",e);var n={state:{isAuthenticated:!1,isTwoFactorCodeRequired:!1,credentials:{email:void 0,password:void 0,twoFactorCode:void 0}},mutations:(t={},o()(t,u.f,function(e,t){e.credentials.email=t}),o()(t,u.g,function(e,t){e.credentials.password=t}),o()(t,u.h,function(e,t){e.credentials.twoFactorCode=t}),o()(t,u.d,function(e){e.isLoading=!0}),o()(t,u.c,function(e,t){a.a.merge(e,t)}),o()(t,u.b,function(e,t){e.isAuthenticated=!1}),o()(t,l,function(e,t){a.a.merge(e,t.authentication)}),t),actions:o()({},u.e,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,r=e.state;i(u.d);var c={rootState:a.a.cloneDeep(o),currentState:a.a.cloneDeep(r)};n("application:loading").then(function(e){return s.a.authenticate(c)}).then(function(e){i(u.c,e.nextState)}).then(function(e){return r.isAuthenticated?n(p,!0).then(function(e){return n(u.a)}):r.isTwoFactorCodeRequired?n("application:notify",{icon:"unlock",header:"Two factor code",message:"A code is required to complete your authentication.",level:"warning"}):n("application:notify",{icon:"warning circle",header:"Authentication failed",message:"A error occured during the authentication.",level:"error"})}).then(function(e){return n("application:loaded")}).then(function(e){return t.push(t.currentRoute.query.redirect||"/")}).catch(function(e){n("application:loaded").then(function(e){return n("application:notify",{icon:"warning circle",header:"Authentication failed",message:"A error occured during the authentication.",level:"error"})})})}),getters:{}};return e.nextState.stores.authentication=n,console.log("authenticationPlugin - application:stores - return",e),e}),e.on("application:routes",function(e){return e}),e.on("application:initialize-app",function(e){return console.info("authenticationPlugin - application:initialize-app"),console.log("authenticationPlugin - application:initialize-app",e),s.a.initialize(e).then(function(e){return e})}),e.on("authentication:authenticate",function(e){return console.info("authenticationPlugin - authentication:authenticate"),console.log("authenticationPlugin - authentication:authenticate",e,s.a),s.a.authenticate(e)}),{getName:function(){return"authenticationPlugin"}}},n.d(t,"a",function(){return d});var i=n("bOdI"),o=n.n(i),r=n("M4fF"),a=n.n(r),s=n("KMrN"),c=n("RUoO"),u=n("Pm0L"),l="application:initialize-app",p="application:save-config";var d=c.a},RUoO:function(e,t,n){"use strict";var i=n("6yLl"),o=n("ET/a");var r=function(e){n("7XxQ")},a=n("VU/8")(i.a,o.a,!1,r,"data-v-a450654c",null);t.a=a.exports},RsIG:function(e,t,n){"use strict";var i=n("woOf"),o=n.n(i),r=n("LEOq"),a=n.n(r);function s(e){return a.a.fire("application:receive-config",e)}t.a={initializeRoutes:function(e){return a.a.fire("application:routes",e)},initializeApp:function(e,t){return a.a.fire("application:initialize-app",e,t)},initializePlugins:function(e,t){return a.a.fire("application:initialize-plugins",e,t)},initializeConfig:function(e){return console.log("application - initializeConfig",e),function(e){return a.a.fire("application:request-config",e)}(e).then(s)},startUpConfig:function(e){return console.log("application - startUpConfig",e),s(e)},prepareConfig:function(e){return a.a.fire("application:prepare-config",e)},saveConfig:function(e){return function(e){return console.log("application - fireRequestSaveConfig",e),a.a.fire("application:request-save-config",e)}(e).then(function(t){return o()({},e,{nextState:t.nextState.application})}).then(s).then(function(t){return e.nextState.application=t.nextState,o()({},e)}).catch(function(e){console.log(e)})},saveConfigDone:function(e){return a.a.fire("application:save-config-done",e)}}},SDLk:function(e,t,n){"use strict";var i={render:function(){this.$createElement;this._self._c;return this._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"about-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",attrs:{href:"https://twitter.com/HubPressIO",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Follow us on twitter","data-position":"bottom right"}},[n("i",{staticClass:"twitter large icon"})])]),n("a",{staticClass:"item",attrs:{href:"https://gitter.im/HubPress/hubpress.io",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Wanna chat with us?","data-position":"bottom right"}},[n("i",{staticClass:"gitter large icon"})])]),n("a",{staticClass:"item",attrs:{href:"https://github.com/HubPress",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"HubPress is opensource :)","data-position":"bottom right"}},[n("i",{staticClass:"github large icon"})])])])]),n("div",{staticClass:"about-content"},[n("div",{staticClass:"ui container"},[n("h2",{staticClass:"ui center aligned icon header"},[n("i",{staticClass:"circular users icon"}),e._v("\n The HubPress Team\n ")]),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"row"},[n("div",{staticClass:"ui items divided"},[n("div",{staticClass:"item"},[n("div",{staticClass:"image"},[n("img",{attrs:{src:"https://avatars1.githubusercontent.com/u/2006548?v=3&s=460"}})]),n("div",{staticClass:"content"},[n("a",{staticClass:"header"},[e._v("Anthonny Quérouil")]),n("div",{staticClass:"meta"},[n("span",[e._v("The creator of HubPress")])]),n("div",{staticClass:"description"},[n("p",[e._v("Anthonny is a freelance developer and the creator of HubPress")]),n("p",[e._v("He started HubPress two years ago")])]),n("div",{staticClass:"extra"},[n("a",{staticClass:"ui label",attrs:{href:"https://twitter.com/anthonny_q",target:"_blank"}},[n("i",{staticClass:"twitter icon"}),e._v(" Twitter\n ")]),n("a",{staticClass:"ui label",attrs:{href:"https://github.com/anthonny",target:"_blank"}},[n("i",{staticClass:"github icon"}),e._v(" GitHub\n ")]),n("a",{staticClass:"ui label",attrs:{href:"http://anthonnyquerouil.fr/",target:"_blank"}},[n("i",{staticClass:"home icon"}),e._v(" Website\n ")])])])]),n("div",{staticClass:"item"},[n("div",{staticClass:"image"},[n("img",{attrs:{src:"https://avatars0.githubusercontent.com/u/952793?v=3&s=460"}})]),n("div",{staticClass:"content"},[n("a",{staticClass:"header"},[e._v("Jared Morgan")]),n("div",{staticClass:"meta"},[n("span",[e._v("The Docs guy")])]),n("div",{staticClass:"description"},[n("p",[e._v("By day, Jared is a Certified Scrum Product Owner (CSPO) and Technical Writer for Ladbrokes in Brisbane, Australia.")]),n("p",[e._v("By night, he uses his craft to improve open source software products one README at a time.")]),n("p",[e._v("In between, he uses his expertise in Pinball machines and knowledge of Android beta testing to improve digital pinball apps.")])]),n("div",{staticClass:"extra"},[n("a",{staticClass:"ui label",attrs:{href:"https://twitter.com/jaredmorgs",target:"_blank"}},[n("i",{staticClass:"twitter icon"}),e._v(" Twitter\n ")]),n("a",{staticClass:"ui label",attrs:{href:"https://github.com/jaredmorgs",target:"_blank"}},[n("i",{staticClass:"github icon"}),e._v(" GitHub\n ")]),n("a",{staticClass:"ui label",attrs:{href:"http://jaredleonmorgan.net/",target:"_blank"}},[n("i",{staticClass:"home icon"}),e._v(" Website\n ")])])])])])])])])])}]};t.a=i},SHkU:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._l(e.navigation,function(t,i){return n("div",{key:t.label,staticClass:"fields"},[n("div",{staticClass:"four wide field"},[n("input",{attrs:{type:"text",placeholder:"Label",name:"navigation-label-"+i},domProps:{value:t.label}})]),n("div",{staticClass:"eleven wide field"},[n("input",{attrs:{type:"text",placeholder:"http://www.mysite.com",name:"navigation-url-"+i},domProps:{value:t.url}})]),n("div",{staticClass:"one wide field"},[n("button",{staticClass:"ui icon button",on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.remove(i)}}},[n("i",{staticClass:"trash icon"})])])])}),n("div",{staticClass:"fields"},[n("div",{staticClass:"four wide field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNav.label,expression:"newNav.label"}],attrs:{type:"text",placeholder:"Label"},domProps:{value:e.newNav.label},on:{input:function(t){t.target.composing||e.$set(e.newNav,"label",t.target.value)}}})]),n("div",{staticClass:"eleven wide field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNav.url,expression:"newNav.url"}],attrs:{type:"text",placeholder:"http://www.mysite.com"},domProps:{value:e.newNav.url},on:{input:function(t){t.target.composing||e.$set(e.newNav,"url",t.target.value)}}})]),n("div",{staticClass:"one wide field"},[n("button",{staticClass:"ui icon button",attrs:{disabled:e.isNotValid},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.add(e.newNav)}}},[n("i",{staticClass:"add icon"})])])])],2)},staticRenderFns:[]};t.a=i},SUis:function(e,t,n){"use strict";(function(e){var i=n("PJh5"),o=n.n(i),r=n("RJtx"),a=n.n(r),s=n("lYDI");t.a={name:"posts",data:function(){return{postToDelete:{},filterValue:""}},beforeCreate:function(){},beforeMount:function(){this.$store.dispatch(s.a)},beforeDestroy:function(){e(".ui.basic.modal").remove()},mounted:function(){var t=this;e(".ui.basic.modal").modal({closable:!1,onDeny:function(){},onApprove:function(){t.$store.dispatch(s.d,t.postToDelete._id)}})},methods:{status:function(e){return!e.published?"Draft":"Published"},type:function(e){return e.type.replace(/\b\w/g,function(e){return e.toUpperCase()})},publishedAt:function(e){return!!e.published&&e.published_at&&o()(e.published_at).fromNow()||""},postCoverUrl:function(e){var t=e.image||"https://hubpress.github.io/img/logo.png",n=this.$store.state.application.config.urls.site+"/images",i=e.attributes&&e.attributes.imagesdir||n;return t=t.startsWith("http")?t:i+"/"+e.image},getPostStatusColor:function(e){return e.original?e.original.content!==e.content?"orange":"green":"red"},displayConfirmMessage:function(t){this.postToDelete=t,e(".ui.basic.modal").modal("show")},navigateToPost:function(e){this.$router.push({name:"post",params:{id:e._id}})},newPost:function(){this.$router.push({name:"post",params:{id:a.a.v4()}})},getPostTags:function(e){return e.tags||[]},getPostAuthor:function(e){return e.author||this.$store.state.authentication.userInformations},synchronize:function(){this.$store.dispatch(s.b)}},computed:{posts:function(){var e=this.filterValue.trim();return""===e?this.$store.state.hubpress.posts:this.$store.state.hubpress.posts.filter(function(t){return t.title.toLowerCase().indexOf(e.toLowerCase())>=0||t.tags&&t.tags.filter(function(t){return t.toLowerCase().indexOf(e.toLowerCase())>=0}).length})}}}}).call(t,n("7t+N"))},SjaB:function(e,t,n){var i=n("3fVB");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("2d76ba14",i,!0,{sourceMap:!1})},T23V:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,r,a=n("pFYg"),s=n.n(a),c=n("mvHQ"),u=n.n(c),l=n("fZjL"),p=n.n(l),d=n("woOf"),f=n.n(d),h=n("Zzip"),g=n.n(h),m=n("5QVw"),v=n.n(m),b=n("//Fk"),x=n.n(b),C=n("I3G/"),w=n.n(C),y=n("unZF"),P=n("qcny"),k=n("YLfZ"),S=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=x.a))(function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,s)}c((i=i.apply(e,t||[])).next())})},_=this&&this.__generator||function(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof v.a&&(r[g.a]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=i[2&r[0]?"return":r[0]?"throw":"next"])&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[0,o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1].row{padding-top:0;padding-bottom:0}.post-editor .ui.grid.light>.row{background-color:#f5f5f5;color:#202020}.post-editor .ui.grid.light>.row .ui.header{color:#202020}.post-editor .ui.grid.light>.row a{color:#aa759f}.post-editor .ui.grid.dark>.row,.post-editor .ui.grid.dark>.row .ui.header{background-color:#3f3f3f;color:#dcdccc}.post-editor .ui.grid.dark>.row .ui.header{color:#dcdccc}.post-editor .ui.grid.dark>.row a{color:#dcdcaa}.post-editor .ui.grid{padding-top:0;padding-bottom:0;margin:0}.post-editor .ui.grid .column{padding-top:0;margin-top:0;padding-bottom:0;margin-bottom:0}.vue-codemirror.container{min-height:100%;height:100%}#asciidoc-content,#asciidoc-preview{height:calc(100vh - 47px);min-height:calc(100vh - 47px)}#asciidoc-content.is-hidden{display:none}#asciidoc-preview{overflow-y:auto;padding-top:2em;font-size:1.2em;font-family:Menlo,Monaco,Consolas,Courier New,monospace;word-wrap:break-word}#asciidoc-preview.is-iframe{padding:0}#asciidoc-preview>div{max-width:750px!important;margin:auto}#asciidoc-preview.is-iframe>div{min-width:100%;margin:auto}#asciidoc-preview.is-fullscreen{width:100%!important}#asciidoc-preview>div .ui.header{font-family:Menlo,Monaco,Consolas,Courier New,monospace}#asciidoc-preview .content pre{background-color:#dcdccc;color:#2e2e2e;padding:10px;border-radius:5px;overflow:auto}#asciidoc-preview .paragraph{padding:.75em 0}#asciidoc-preview img{width:100%;max-width:100%}@media screen and (max-width:992px){#asciidoc-content{display:block}#asciidoc-content.is-preview-visible,#asciidoc-preview{display:none}#asciidoc-preview.is-preview-visible{display:block}}.item .ui.icon .rocket.unpublish{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.cm-s-zenburn.CodeMirror .CodeMirror-gutters{background:#3f3f3f!important}.cm-s-zenburn.CodeMirror .CodeMirror-foldgutter-open,.CodeMirror-foldgutter-folded{color:#999}.cm-s-zenburn.CodeMirror .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-zenburn.CodeMirror{background-color:#3f3f3f;color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-builtin{color:#dcdccc;font-weight:700}.cm-s-zenburn.CodeMirror span.cm-comment{color:#7f9f7f}.cm-s-zenburn.CodeMirror span.cm-keyword{color:#f0dfaf;font-weight:700}.cm-s-zenburn.CodeMirror span.cm-atom{color:#bfebbf}.cm-s-zenburn.CodeMirror span.cm-def{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-variable{color:#dfaf8f}.cm-s-zenburn.CodeMirror span.cm-variable-2{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-string,.cm-s-zenburn.CodeMirror span.cm-string-2{color:#cc9393}.cm-s-zenburn.CodeMirror span.cm-number{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-tag{color:#93e0e3}.cm-s-zenburn.CodeMirror span.cm-attribute,.cm-s-zenburn.CodeMirror span.cm-property{color:#dfaf8f}.cm-s-zenburn.CodeMirror span.cm-qualifier{color:#7cb8bb}.cm-s-zenburn.CodeMirror span.cm-meta{color:#f0dfaf}.cm-s-zenburn.CodeMirror span.cm-header,.cm-s-zenburn.CodeMirror span.cm-operator{color:#f0efd0}.cm-s-zenburn.CodeMirror span.CodeMirror-matchingbracket{-webkit-box-sizing:border-box;box-sizing:border-box;background:transparent;border-bottom:1px solid}.cm-s-zenburn.CodeMirror span.CodeMirror-nonmatchingbracket{border-bottom:1px solid;background:none}.cm-s-zenburn.CodeMirror .CodeMirror-activeline,.cm-s-zenburn.CodeMirror .CodeMirror-activeline-background{background:#000}.cm-s-zenburn.CodeMirror div.CodeMirror-selected{background:#545454}.cm-s-zenburn.CodeMirror .CodeMirror-focused div.CodeMirror-selected{background:#4f4f4f}.cm-s-base16-light.CodeMirror{background:#f5f5f5;color:#202020}.cm-s-base16-light.CodeMirror div.CodeMirror-selected{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-line::selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span::selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span>span::selection{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-line::-moz-selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span::-moz-selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span>span::-moz-selection{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-gutters{background:#f5f5f5;border-right:0}.cm-s-base16-light.CodeMirror .CodeMirror-guttermarker{color:#ac4142}.cm-s-base16-light.CodeMirror .CodeMirror-guttermarker-subtle,.cm-s-base16-light.CodeMirror .CodeMirror-linenumber{color:#b0b0b0}.cm-s-base16-light.CodeMirror .CodeMirror-cursor{border-left:1px solid #505050}.cm-s-base16-light.CodeMirror span.cm-comment{color:#8f5536}.cm-s-base16-light.CodeMirror span.cm-atom,.cm-s-base16-light.CodeMirror span.cm-number{color:#aa759f}.cm-s-base16-light.CodeMirror span.cm-attribute,.cm-s-base16-light.CodeMirror span.cm-property{color:#90a959}.cm-s-base16-light.CodeMirror span.cm-keyword{color:#ac4142}.cm-s-base16-light.CodeMirror span.cm-string{color:#f4bf75}.cm-s-base16-light.CodeMirror span.cm-variable{color:#90a959}.cm-s-base16-light.CodeMirror span.cm-variable-2{color:#6a9fb5}.cm-s-base16-light.CodeMirror span.cm-def{color:#d28445}.cm-s-base16-light.CodeMirror span.cm-bracket{color:#202020}.cm-s-base16-light.CodeMirror span.cm-tag{color:#ac4142}.cm-s-base16-light.CodeMirror span.cm-link{color:#aa759f}.cm-s-base16-light.CodeMirror span.cm-error{background:#ac4142;color:#505050}.cm-s-base16-light.CodeMirror .CodeMirror-activeline-background{background:#dddcdc}.cm-s-base16-light.CodeMirror .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}",""])},THns:function(e,t,n){"use strict";t.a=function(e){console.info("PostsGenerator - generate"),console.log("PostsGenerator - generate",e);var t=e;return e.nextState.publishedPosts.forEach(function(e){t=Object(o.a)(t,e)}),t};n("APUd");var i=n("j+6P"),o=(n.n(i),n("KgKs"))},ThI1:function(e,t,n){"use strict";var i=n("oz2E"),o=n("mBSI");var r=function(e){n("yJpT")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Tknw:function(e,t,n){"use strict";var i=n("wrAo"),o=n("zfI2");var r=function(e){n("YoMZ")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},WRRc:function(e,t,n){"use strict";t.a={name:"nuxt-link",functional:!0,render:function(e,t){return e("router-link",t.data,t.children)}}},WiUJ:function(e,t,n){"use strict";t.a=function(e){e.on("hubpress:request-theme",function(e){console.info("templatePlugin - hubpress:request-theme"),console.log("templatePlugin - hubpress:request-theme",e);var t,n,i,r,s,u=e.rootState.application.config.theme.name.toLowerCase(),p=e.rootState.application.config;return(t=u,n=p,i=a.a.defer(),r=[],s=n.urls.hubpress,c.a.get(s+"/themes/"+t+"/theme.json?dt="+Date.now()).end(function(e,n){if(e)i.reject(e);else{var o=n.body,u=o.version,p=!1,d=!1,f=!1;if(l.a.toPairs(o.files).forEach(function(e){var n=a.a.defer();r.push(n.promise),p=p||"pagination"===e[0],d=d||"nav"===e[0],f=f||"navigation"===e[0],c.a.get(s+"/themes/"+t+"/"+e[1]+"?v="+u).end(function(t,i){t?n.reject(t):n.resolve({name:e[0],path:e[1],content:i.text})})}),!p){var h=a.a.defer();r.push(h.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/pagination.hbs").end(function(e,t){e?h.reject(e):h.resolve({name:"pagination",path:"partials/pagination",content:t.text})})}if(!d){var g=a.a.defer();r.push(g.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/nav.hbs").end(function(e,t){e?g.reject(e):g.resolve({name:"nav",path:"partials/nav",content:t.text})})}if(!f){var m=a.a.defer();r.push(m.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/navigation.hbs").end(function(e,t){e?m.reject(e):m.resolve({name:"navigation",path:"partials/navigation",content:t.text})})}a.a.all(r).then(function(e){i.resolve({version:u,files:e})}).catch(function(e){console.log(e),i.reject(e)})}}),i.promise).then(function(t){var n={name:u,files:t.files,version:t.version};b.a.registerTheme(p,n),b.a.registerFiles(n.files);var i=o()({},n);return e.nextState=o()({},e.nextState,{theme:i}),e})}),e.on("requestGenerateIndex",function(e){console.info("templatePlugin - requestGenerateIndex"),console.log("templatePlugin - requestGenerateIndex",e);var t=Object(p.a)(e);return console.log("templatePlugin - requestGenerateIndex return",t),t}),e.on("requestGeneratePost",function(e){console.info("templatePlugin - requestGeneratePost"),console.log("templatePlugin - requestGeneratePost",e);var t=Object(d.a)(e,e.nextState.post);return console.log("templatePlugin - requestGeneratePost return",t),t}),e.on("requestGeneratePosts",function(e){console.info("templatePlugin - requestGeneratePosts"),console.log("templatePlugin - requestGeneratePosts",e);var t=Object(f.a)(e);return console.log("templatePlugin - requestGeneratePosts return",t),t}),e.on("requestGeneratePages",function(e){console.info("templatePlugin - requestGeneratePages"),console.log("templatePlugin - requestGeneratePages",e);var t=Object(h.a)(e);return console.log("templatePlugin - requestGeneratePages return",t),t}),e.on("requestGenerateTags",function(e){console.info("templatePlugin - requestGenerateTags"),console.log("templatePlugin - requestGenerateTags",e);var t=Object(g.a)(e);return console.log("templatePlugin - requestGenerateTags return",t),t}),e.on("requestGenerateAuthors",function(e){console.info("templatePlugin - requestGenerateAuthors"),console.log("templatePlugin - requestGenerateAuthors",e);var t=Object(m.a)(e);return console.log("templatePlugin - requestGenerateAuthors return",t),t})};var i=n("woOf"),o=n.n(i),r=n("/Luh"),a=n.n(r),s=n("GG98"),c=n.n(s),u=n("M4fF"),l=n.n(u),p=n("e3+D"),d=n("KgKs"),f=n("THns"),h=n("BdWi"),g=n("dZ6u"),m=n("KOTd"),v=n("j+6P"),b=n.n(v)},X5n4:function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"l",function(){return r}),n.d(t,"i",function(){return a}),n.d(t,"j",function(){return s}),n.d(t,"k",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"d",function(){return l}),n.d(t,"h",function(){return p}),n.d(t,"a",function(){return d}),n.d(t,"g",function(){return f}),n.d(t,"f",function(){return h});var i="application:initialize-routes",o="application:initialize-config",r="application:save-startup-config",a="application:prepare-config",s="application:save-config",c="application:save-config-done",u="application:initialize-app",l="application:initialize-plugins",p="application:notify",d="application:close-notification",f="application:loading",h="application:loaded"},X8TR:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"post-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.showAsciidocHelp()}}},[e._m(0)]),n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchLight()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.lightLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{sun:e.isDark,moon:!e.isDark}})])]),n("a",{staticClass:"item html-preview",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreview(!1)}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.previewLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{unhide:!e.isPreviewVisible||e.isIFrame,hide:e.isPreviewVisible&&!e.isIFrame}})])]),n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreview(!0)}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.previewLabelIFrame,"data-position":"bottom right"}},[n("i",{staticClass:"large icon globe"})])]),e.isPreviewVisible?n("a",{staticClass:"item preview-resize",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreviewSize()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.resizeLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{expand:!e.isFullScreen,compress:e.isFullScreen}})])]):e._e(),e.isRemoteActionVisible?n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.remoteSave()}}},[e._m(1)]):e._e(),e.isRemoteActionVisible?n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.publish()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.publishLabel,"data-position":"bottom right"}},[n("i",{staticClass:"icons"},[n("i",{staticClass:"cloud large icon",class:{download:e.isPostPublished,upload:!e.isPostPublished}})])])]):e._e()])]),e._m(2),n("div",{staticClass:"post-editor"},[n("div",{staticClass:"ui grid",class:{dark:e.isDark,light:!e.isDark}},[n("div",{staticClass:"row"},[n("div",{staticClass:"column",class:{"sixteen wide mobile height wide computer is-preview-visible":e.isPreviewVisible,"sixteen wide":!e.isPreviewVisible,"is-hidden":e.isFullScreen},attrs:{id:"asciidoc-content"}},[n("codemirror",{ref:"codeEditor",staticClass:"container",attrs:{code:e.content,options:e.editorOption},on:{input:e.contentChange}})],1),e.isPreviewVisible?n("div",{staticClass:"column",class:{"sixteen wide mobile height wide computer is-preview-visible":e.isPreviewVisible,"is-iframe":e.isIFrame,"is-fullscreen":e.isFullScreen},attrs:{id:"asciidoc-preview"}},[n("preview",{attrs:{post:e.post,iframe:e.isIFrame}})],1):e._e()])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Need some help?","data-position":"bottom right"}},[t("i",{staticClass:"help large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Save your post remotely","data-position":"bottom right"}},[t("i",{staticClass:"save large icon"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui modal",attrs:{id:"asciidoc-help"}},[n("i",{staticClass:"close icon"}),n("div",{staticClass:"header"},[e._v("\n Asciidoc syntax help\n ")]),n("div",{staticClass:"content"},[n("table",{staticClass:"ui table"},[n("thead",[n("tr",[n("th",{staticClass:"heigth wide"},[e._v("Result")]),n("th",{staticClass:"heigth wide"},[e._v("Asciidoc")])])]),n("tbody",[n("tr",[n("td",[e._v("H1")]),n("td",[e._v("= Title")])]),n("tr",[n("td",[e._v("H2")]),n("td",[e._v("== Title")])]),n("tr",[n("td",[e._v("H3")]),n("td",[e._v("=== Title")])]),n("tr",[n("td",[n("strong",[e._v("Bold")])]),n("td",[e._v("*content*")])]),n("tr",[n("td",[n("i",[e._v("Emphasize")])]),n("td",[e._v("_content_")])]),n("tr",[n("td",[n("a",{attrs:{href:"#"}},[e._v("Link")])]),n("td",[e._v("http://asciidoctor.org[Asciidoctor]")])]),n("tr",[n("td",[e._v("Image Block")]),n("td",[e._v("image::sunset.jpg[]")])]),n("tr",[n("td",[e._v("Image Inline")]),n("td",[e._v('Click image:icons/pause.png[title="Pause"] when you need a break.')])]),n("tr",[n("td",[e._v("Video")]),n("td",[e._v("video::video_file.mp4[]")])]),n("tr",[n("td",[e._v("Unordered list")]),n("td",[e._v("* item")])]),n("tr",[n("td",[e._v("Ordered list")]),n("td",[e._v(". item")])]),n("tr",[n("td",[n("code",[e._v("Inline code")])]),n("td",[e._v("`code`")])])])]),n("p",[e._v("\n More informations about the Asciidoc syntax here: "),n("a",{attrs:{href:"http://asciidoctor.org/docs/asciidoc-syntax-quick-reference/",target:"_blank"}},[e._v("AsciiDoc Syntax Quick Reference")])])])])}]};t.a=i},XO7e:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.iframe?e._e():n("div",{staticClass:"html-rendering"},[n("h1",{staticClass:"ui header"},[e._v(e._s(e.post.title))]),n("div",{staticClass:"content",attrs:{id:"html-content"},domProps:{innerHTML:e._s(e.post.html)}})]),e.iframe?n("div",{staticClass:"iframe-rendering"},[n("iframe",{staticClass:"published-preview",attrs:{srcdoc:e.post.publishedContent,frameborder:"0"}})]):e._e()])},staticRenderFns:[]};t.a=i},XSDV:function(e,t,n){var i=n("jAb+");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("5bd01218",i,!0,{sourceMap:!1})},XkEn:function(e,t,n){var i=n("dd07");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("1ce06800",i,!0,{sourceMap:!1})},Y2j8:function(e,t,n){"use strict";var i=n("woOf"),o=(n.n(i),n("/Luh")),r=(n.n(o),n("M4fF")),a=(n.n(r),n("RJtx")),s=(n.n(a),n("Wa/L")),c=n("tCkb");s.a.plugin(c.a),window.PouchDB=s.a},YDvP:function(e,t,n){var i=n("qZPA");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("3ecfbf5a",i,!0,{sourceMap:!1})},YG9q:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),t.a=function(e){return e.on("application:routes",function(e){return console.info("applicationPlugin - application:routes"),console.log("applicationPlugin - application:routes",e),e.nextState.routes.push({id:"application",entries:[{path:"settings",name:"settings",component:s.a}]}),console.log("applicationPlugin - application:routes - return",e),e}),e.on("application:stores",function(e){var t,n;console.info("applicationPlugin - application:stores"),console.log("applicationPlugin - application:stores",e);var i={state:{isInitialized:!1,isFetching:!1,isLoading:!1,requireInitilisation:!1,notification:{icon:"save",header:"My Header",message:"A message",level:"default",isVisible:!1},routes:[],settingsTabs:[]},mutations:(t={},o()(t,a.b,function(e,t){_.merge(e,t.application)}),o()(t,a.d,function(e,t){_.merge(e,t.application)}),o()(t,a.e,function(e,t){e.routes=t}),o()(t,a.c,function(e,t){_.merge(e,t)}),o()(t,a.i,function(e,t){_.merge(e,t)}),o()(t,a.l,function(e,t){_.merge(e,t)}),o()(t,a.j,function(e,t){_.merge(e,t.application)}),o()(t,a.k,function(e,t){_.merge(e,t.application)}),o()(t,a.h,function(e,t){t.isVisible=!0,_.merge(e.notification,t)}),o()(t,a.a,function(e,t){e.notification.isVisible=!1}),o()(t,a.g,function(e,t){e.isLoading=!0}),o()(t,a.f,function(e,t){e.isLoading=!1}),t),actions:(n={},o()(n,a.c,function(e){var t=e.commit,n=e.rootState,i=e.state,o={rootState:_.cloneDeep(n),currentState:_.cloneDeep(i)};return r.a.initializeConfig(o).then(function(e){t(a.c,e.nextState)})}),o()(n,a.b,function(e){var t=e.commit,n=e.rootState,i=(e.state,{rootState:_.cloneDeep(n),currentState:_.cloneDeep(n)});return r.a.initializeApp(i).then(function(e){console.log("helllllllo",e),t(a.b,e.nextState)})}),o()(n,a.d,function(e){var t=e.commit,n=e.rootState,i=(e.state,{rootState:_.cloneDeep(n),currentState:_.cloneDeep(n)});return r.a.initializePlugins(i).then(function(e){e.nextState.application.isInitialized=!0,t(a.d,e.nextState)})}),o()(n,a.i,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,s=e.state,c={rootState:_.cloneDeep(o),currentState:_.cloneDeep(s),nextState:_.cloneDeep(s),payload:{formData:t}};return c.currentState.isLoading=!0,c.nextState.isLoading=!0,n(a.g).then(function(e){return r.a.prepareConfig(c)}).then(function(e){return i(a.i,e.nextState),n(a.j)})}),o()(n,a.l,function(e,t){e.dispatch;var n=e.commit,i=e.rootState,o=e.state,s={rootState:_.cloneDeep(i),currentState:_.cloneDeep(o),nextState:_.cloneDeep(o)};return s.nextState.config.meta.username=t.username,s.nextState.config.meta.repositoryName=t.repositoryName,s.nextState.config.meta.branch=t.branch,s.nextState.config.meta.cname=t.cname,s.nextState.requireInitilisation=!1,r.a.startUpConfig(s).then(function(e){n(a.l,e.nextState)})}),o()(n,a.j,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,s=(e.state,{rootState:_.cloneDeep(o),currentState:_.cloneDeep(o),nextState:_.cloneDeep(o)});return console.log(s),r.a.saveConfig(s).then(function(e){if(console.log("testsettesse",e),i(a.j,e.nextState),!t)return n(a.k)})}),o()(n,a.k,function(e){var t=e.dispatch,n=e.commit,i=e.rootState,o=(e.state,{rootState:_.cloneDeep(i),currentState:_.cloneDeep(i),nextState:_.cloneDeep(i)});return r.a.saveConfigDone(o).then(function(e){n(a.k,e.nextState)}).then(function(e){return t("application:loaded")}).then(function(e){return t("application:notify",{icon:"save",header:"Settings saved",message:"Your settings have been saved and your blog was rebuild with success. ",level:"success"})})}),o()(n,a.h,function(e,t){e.dispatch;var n=e.commit;e.rootState,e.state,n(a.h,t)}),o()(n,a.a,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.a)}),o()(n,a.g,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.g)}),o()(n,a.f,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.f)}),n),getters:{navigations:function(e){return e.routes.filter(function(e){return e.label})}}};return e.nextState.stores.application=i,console.log("applicationPlugin - application:stores - return",e),e}),e.on("application:prepare-config",function(e){return console.info("applicationPlugin - application:prepare-config"),console.log("applicationPlugin - application:prepare-config",e),e.nextState.config.meta.cname=e.payload.formData.get("application-cname"),console.log("applicationPlugin - application:prepare-config - return",e),e}),e.on("application:save-config",function(e){return console.info("applicationPlugin - application:save-config"),console.log("applicationPlugin - application:save-config",e),console.log("applicationPlugin - application:save-config - return",e),e}),{getName:function(){return"applicationPlugin"}}};var i=n("bOdI"),o=n.n(i),r=n("RsIG"),a=n("X5n4"),s=n("kMyt"),c={APPLICATION_PREPARE_CONFIG:a.i}},YLfZ:function(e,t,n){"use strict";t.a=function(e,t){var n=e.options.data||x;if(!t&&e.options.hasAsyncData)return;e.options.hasAsyncData=!0,e.options.data=function(){var i=n.call(this);return this.$ssrContext&&(t=this.$ssrContext.asyncData[e.cid]),m()({},i,t)},e._Ctor&&e._Ctor.options&&(e._Ctor.options.data=e.options.data)},t.l=C,t.e=w,t.f=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],e.matched.map(function(e,n){return h()(e.instances).map(function(i){return t&&t.push(n),e.instances[i]})}))},t.c=y,t.k=P,n.d(t,"h",function(){return _}),n.d(t,"m",function(){return R}),t.i=function e(t,n){if(!t.length||n._redirected||n._errored)return d.a.resolve();return q(t[0],n).then(function(){return e(t.slice(1),n)})},t.j=q,t.d=function(e,t){var n=window.location.pathname;if("hash"===t)return window.location.hash.replace(/^#\//,"");e&&0===n.indexOf(e)&&(n=n.slice(e.length));return(n||"/")+window.location.search+window.location.hash},t.b=function(e,t){return function(e){for(var t=new Array(e.length),n=0;n1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],e.matched.map(function(e,n){return h()(e.components).map(function(i){return t&&t.push(n),e.components[i]})}))}function y(e,t){return Array.prototype.concat.apply([],e.matched.map(function(e,n){return h()(e.components).map(function(i){return t(e.components[i],e.instances[i],e,i,n)})}))}function P(e){var t,n=this;return d.a.all(y(e,(t=l()(c.a.mark(function e(t,i,o,r){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof t||t.options){e.next=4;break}return e.next=3,t();case 3:t=e.sent;case 4:return e.abrupt("return",o.components[r]=C(t));case 5:case"end":return e.stop()}},e,n)})),function(e,n,i,o){return t.apply(this,arguments)})))}window._nuxtReadyCbs=[],window.onNuxtReady=function(e){window._nuxtReadyCbs.push(e)};var k,S,_=(k=l()(c.a.mark(function e(t){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P(t);case 2:return e.abrupt("return",m()({},t,{meta:w(t).map(function(e){return e.options.meta||{}})}));case 3:case"end":return e.stop()}},e,this)})),function(e){return k.apply(this,arguments)}),R=(S=l()(c.a.mark(function e(t,n){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n.to?n.to:n.route,t.context){e.next=14;break}e.t0=!0,e.t1=t,e.t2=t.store,e.t3=n.payload,e.t4=n.error,e.t5={hubpressVersion:"0.9.2",baseUrl:"http://localhost:3000"},t.context={get isServer(){return console.warn("context.isServer has been deprecated, please use process.server instead."),!1},get isClient(){return console.warn("context.isClient has been deprecated, please use process.client instead."),!0},isStatic:e.t0,isDev:!1,isHMR:!1,app:e.t1,store:e.t2,payload:e.t3,error:e.t4,base:"..",env:e.t5},n.req&&(t.context.req=n.req),n.res&&(t.context.res=n.res),t.context.redirect=function(e,n,i){if(e){t.context._redirected=!0;var o=void 0===n?"undefined":a()(n);if("number"==typeof e||"undefined"!==o&&"object"!==o||(i=n||{},o=void 0===(n=e)?"undefined":a()(n),e=302),"object"===o&&(n=t.router.resolve(n).href),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(n))throw n=L(n,i),window.location.replace(n),new Error("ERR_REDIRECT");t.context.next({path:n,query:i,status:e})}},t.context.nuxtState=window.__NUXT__;case 14:if(t.context.next=n.next,t.context._redirected=!1,t.context._errored=!1,t.context.isHMR=!!n.isHMR,!n.route){e.next=22;break}return e.next=21,_(n.route);case 21:t.context.route=e.sent;case 22:if(t.context.params=t.context.route.params||{},t.context.query=t.context.route.query||{},!n.from){e.next=28;break}return e.next=27,_(n.from);case 27:t.context.from=e.sent;case 28:case"end":return e.stop()}},e,this)})),function(e,t){return S.apply(this,arguments)});function q(e,t){var n=void 0;return(n=2===e.length?new d.a(function(n){e(t,function(e,i){e&&t.error(e),n(i=i||{})})}):e(t))&&(n instanceof d.a||"function"==typeof n.then)||(n=d.a.resolve(n)),n}var M=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function $(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function D(e){return e.replace(/([.+*?=^!:()[\]|\/\\])/g,"\\$1")}function j(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function L(e,t){var n=void 0,i=e.indexOf("://");-1!==i?(n=e.substring(0,i),e=e.substring(i+3)):0===e.indexOf("//")&&(e=e.substring(2));var r=e.split("/"),a=(n?n+"://":"//")+r.shift(),s=r.filter(Boolean).join("/"),c=void 0;return 2===(r=s.split("#")).length&&(s=r[0],c=r[1]),a+=s?"/"+s:"",t&&"{}"!==o()(t)&&(a+=(2===e.split("?").length?"&":"?")+function(e){return h()(e).sort().map(function(t){var n=e[t];return null==n?"":Array.isArray(n)?n.slice().map(function(e){return[t,"=",e].join("")}).join("&"):t+"="+n}).filter(Boolean).join("&")}(t)),a+=c?"#"+c:""}},YMuy:function(e,t,n){"use strict";var i=n("6Ndi"),o=n("PJh5"),r=n.n(o);function a(e){return i.a.fireRequestRemoteSynchronization(e).then(function(e){return i.a.fireReceiveRemoteSynchronization(e)}).then(function(e){return i.a.fireRequestRenderingDocuments(e)}).then(function(e){return i.a.fireReceiveRenderingDocuments(e)}).then(function(e){return i.a.fireRequestLocalSynchronization(e)}).then(function(e){return i.a.fireReceiveLocalSynchronization(e)}).then(function(e){return i.a.fireRequestLocalPosts(e)}).then(function(e){return i.a.fireReceiveLocalPosts(e)}).then(function(e){return localStorage.setItem("hubpress:sync",r()().format()),e})}t.a={initialize:function(e){return i.a.fireRequestTheme(e).then(function(e){return i.a.fireReceiveTheme(e)}).then(function(e){return localStorage.getItem("hubpress:sync")?i.a.fireRequestLocalPosts(e).then(function(e){return i.a.fireReceiveLocalPosts(e)}):a(e)})},synchronize:a}},YoMZ:function(e,t,n){var i=n("7Rt3");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("9418214c",i,!0,{sourceMap:!1})},"bN/m":function(e,t,n){"use strict";function i(e,t){var n=void 0;return e.cname&&""!==e.cname?n=(!1===t?"":"http:")+"//"+e.cname:(n=(!1===t?"":"https:")+"//"+e.username+".github.io","master"!==e.branch&&(n=n+"/"+e.repositoryName)),n}function o(e,t){var n=e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"/$1/$2/$3/$4.html");return"page"===t&&(n=e.replace(/([\w-]*)\.adoc/,"/$1.html")),n}function r(e,t){var n=e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"$1/$2/$3/$4.html");return"page"===t&&(n=e.replace(/([\w-]*)\.adoc/,"$1.html")),n}function a(e){return e.match(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/)?"post":"page"}t.a=function(e){return{site:i(e.meta),hubpress:function(e,t){var n=t.protocol+"//"+t.host;if("localhost"===t.hostname)return n;t.host===e.username+".github.io"||t.host===e.username+".github.com"?"master"!==e.branch&&(n=n+"/"+e.repositoryName):"master"===e.branch||e.cname&&""!==e.cname||(n=n+"/"+e.repositoryName);return n}(e.meta,window.location),theme:i(e.meta,!1)+"/themes/"+e.theme.name,images:i(e.meta)+"/images",getContentUrl:o,getContentGhPath:r,getContentType:a,getPostUrl:function(e){return e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"/$1/$2/$3/$4.html")},getPostGhPath:function(e){return e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"$1/$2/$3/$4.html")},getPageUrl:function(e){return e.replace(/([\w-]*)\.adoc/,"/$1.html")},getPageGhPath:function(e){return e.replace(/([\w-]*)\.adoc/,"$1.html")},getSiteUrl:i}}},bxJ0:function(e,t,n){"use strict";t.a=function(e){e.on("application:request-config",function(e){return console.info("githubPlugin - application:request-config"),console.log("githubPlugin - application:request-config",e),l()("config.json?dt="+Date.now()).then(function(e){return e.json()}).then(function(t){return e.nextState.config=a()({},e.nextState.config,t),e.nextState.config.theme.name=e.nextState.config.theme.name.toLowerCase(),e})}),e.on("application:receive-config",function(e){console.info("githubPlugin - application:receive-config"),console.log("githubPlugin - application:receive-config",e);var t=Object(w.a)(e.nextState.config);return e.nextState.config=a()({},e.nextState.config,{urls:t}),e}),e.on("requestAuthentication",function(e){return console.info("githubPlugin - requestAuthentication"),console.log("githubPlugin - requestAuthentication",e),function(e){console.log("githubPlugin - login",e);var t=m.a.defer(),n=e.nextState.credentials,i=e.rootState.application.config.meta,o=(q=new h.a({auth:"basic",username:n.email,password:n.password,twoFactorCode:n.twoFactorCode})).getRepo(i.username,i.repositoryName),r=q.getAuthorization(),a=q.getUser(),s=void 0,c=void 0;return function(e){var t=m.a.defer();return e.getDetails(function(e,n){e?t.reject(e):t.resolve(n)}),t.promise}(o).then(function(e){s=e}).then(S(a)).then(function(e){return c=e,function(e){var t=m.a.defer();return console.log("getAuthorizations",e),e.listAuthorizations({},function(e,n){e?t.reject(e):(console.log("getAuthorizations list",n),t.resolve(n))}),t.promise}(r)}).then(function(e){return function(e,t,n){var i=m.a.defer(),o=-1,r=_(e);return t.forEach(function(e){e.note===r&&(o=e.id)}),-1!==o?n.deleteAuthorization(o,function(e,t){e?i.reject(e):i.resolve()}):i.resolve(),i.promise}(i.repositoryName,e,r)}).then(function(){return R(i.repositoryName,r)}).then(function(e){q=new h.a({auth:"oauth",token:e.token}),t.resolve({isAuthenticated:!0,credentials:{token:e.token},permissions:s.permissions,userInformations:c})}).catch(function(e){console.error("githubPlugin - login error",e,e.response);var n,o={type:"error",title:"Authentication"};e.response&&(n="required"===(e.response.headers&&e.response.headers["x-github-otp"]||"").split(";")[0]),n?(R(i.repositoryName,r),console.log("githubPlugin - OTP required : ",n),o.type="warning",o.content="A two-factor authentication code is needed.",o.otp=!0,t.resolve({isAuthenticated:!1,isTwoFactorCodeRequired:!0})):(console.error("githubPlugin - login error",e),t.reject({error:{code:e.error,message:"Unable to authenticate, check your credentials."}}))}),t.promise}(e).then(function(t){var n=a()({},e.nextState.credentials,t.credentials);return e.nextState=a()({},e.nextState,t,{credentials:n}),e})}),e.on("receiveSavedAuth",function(e){return console.info("githubPlugin - receiveSavedAuth"),console.log("githubPlugin - receiveSavedAuth",e),e.nextState.authentication.isAuthenticated&&(q=new h.a({auth:"oauth",token:e.nextState.authentication.credentials.token})),e}),e.on("hubpress:request-remote-synchronization",function(e){return console.info("githubPlugin - hubpress:request-remote-synchronization"),console.log("githubPlugin - hubpress:request-remote-synchronization",e),e.rootState.authentication.isAuthenticated?function(e){var t=e.application.config;console.log("Get posts",t);var n=t.meta,i=q.getRepo(n.username,n.repositoryName);return function(e,t){var n=m.a.defer();return e.getContents(t.meta.branch,"",!0,function(e,t){if(e)n.reject(e);else{var i=void 0;t.forEach(function(e){"_posts"===e.name&&(i=e.sha)}),n.resolve(i)}}),n.promise}(i,t).then(function(e){return function(e,t,n){var i=void 0;if(n===localStorage.postsSha)i=m.a.fcall(function(){return[]});else{var o=m.a.defer();e.getContents(t.meta.branch,"_posts",!0,function(e,t){e?o.reject(e):o.resolve(t)}),i=o.promise}return i}(i,t,e)}).then(function(e){return e.map(function(e){return b.a.pick(e,["name","path","sha","size"])})}).then(function(e){return function(e,t,n){var i=b.a.compact(n).map(function(e){return function(e,t){var n=m.a.defer(),i=e.meta,o=q.getRepo(i.username,i.repositoryName),r=e.urls.getContentType(t.name);return o.getSha(e.meta.branch,e.urls.getContentGhPath(t.name,r),function(e,i){if(e&&e.response&&404!==e.response.status)n.reject(e);else{var o=i?1:0,r=a()({},t,{published:o});n.resolve(r)}}),n.promise}(t,e)});return m.a.all(i)}(0,t,e)}).then(function(n){return function(e,t,n,i){var o=n.map(function(e){return M(t,e,i)});return m.a.all(o)}(0,t,n,e.authentication.userInformations)}).then(function(e){return function(e,t,n){var i=[];return n.forEach(function(n){var o=m.a.defer();i.push(o.promise),e.getContents(t.meta.branch,n.path,!0,function(e,t){var i;e?o.reject(e):(i=a()({},n,{content:t}),o.resolve(i))})}),m.a.all(i)}(i,t,e)})}(e.rootState).then(function(t){return e.nextState=a()({},e.nextState,{posts:t}),e}):e}),e.on("requestSaveRemotePost",function(e){console.info("githubPlugin - requestSaveRemotePost"),console.log("githubPlugin - requestSaveRemotePost",e);var t=e.rootState.application.config,n=e.nextState.post;return function(e,t){var n=e.meta,i=q.getRepo(n.username,n.repositoryName),o=void 0;if(t.original&&t.name!==t.original.name){var r=m.a.defer();o=r.promise;var a=e.meta.branch,s="_posts/"+t.original.name,c="_posts/"+t.name;i.move(a,s,c,function(n,o){if(n)r.reject(n);else if(t.published){var s=e.urls.getContentGhPath(t.original.name,t.original.type);(function(e,t,n){return function(e,t,n){var i=m.a.defer();return e.deleteFile(t,n,function(e,t){e?i.reject(e):(console.error(t),k=t.commit,i.resolve(t))}),i.promise}(e,t,n)})(i,a,s).then(function(e){r.resolve({post:t,sha:e})}).catch(function(e){r.reject(e)}).done()}else r.resolve({post:t,sha:o})})}else o=m()({post:t});return o}(t,n).then(function(e){return function(e,t){console.log("Write post",e,t);var n=e.meta,i=q.getRepo(n.username,n.repositoryName),o=n.branch,r="_posts/"+t.name,a="Update "+t.name,s=m.a.defer();return i.writeFile(o,r,t.content,a,function(n,i){n?s.reject(n):(t.original=b.a.omit(t,["original"]),t.original.url=e.urls.getContentUrl(t.original.name,t.original.type),t.original.path="_posts/"+t.original.name,t.original.sha=i,k=i.commit,console.info("Update lastCacheCommit",k),s.resolve(t))}),s.promise}(t,e.post)}).then(function(n){return M(t,n,e.rootState.authentication.userInformations)}).then(function(t){return e.nextState.post=t,e})}),e.on("requestSaveRemotePublishedElements",function(e){console.info("githubPlugin - requestSaveRemotePublishedElements"),console.log("githubPlugin - requestSaveRemotePublishedElements",e);var t=e.rootState.application.config.meta,n=q.getRepo(t.username,t.repositoryName),i=e.nextState.elementsToPublish.length,o=b.a.chunk(e.nextState.elementsToPublish,P);console.log("Writeall",e.nextState.elementsToPublish);var r=m.a.defer();return n.getBranch(t.branch,function(a,s){if(a){var c=m.a.defer();return r=c.promise,c.reject(a)}var u=0,l=o.reduce(function(e,o){return e.then(function(e){var r=m.a.defer(),a=o.map(function(e){return{path:e.path,mode:"100644",type:"blob",content:e.content}});return n.createTree(a,e,function(a,s){if(a)return r.reject(a);n.commit(e,s.sha,"Published "+(u+o.length)+"/"+i+" elements",function(e,i){if(e)return r.reject(e);u+=o.length,k=i,n.updateHead("heads/"+t.branch,i.sha,!1,function(e,t){if(console.log("updateHead",e,t),e)return r.reject(e);r.resolve(i.sha)})})}),r.promise})},m()(function(e,t){if(console.error(e,t),!t)return e.sha;var n=C()(e.committer.date);return C()(t.committer.date).isAfter(n)?t.sha:e.sha}({committer:s.commit.commit.committer,sha:s.commit.sha},k)));l.then(function(t){r.resolve(e)}).catch(function(e){r.reject(e)})}),r.promise}),e.on("requestDeleteRemotePost",function(e){console.info("githubPlugin - requestDeleteRemotePost"),console.log("githubPlugin - requestDeleteRemotePost",e);var t=m.a.defer(),n=e.rootState.application.config,i=n.meta,o=q.getRepo(i.username,i.repositoryName),r=e.nextState.post.original.path;return o.deleteFile(i.branch,r,function(n,i){n&&n.response&&404!==n.response.status?t.reject(n):(console.error("requestDeleteRemotePost",i),k=i.commit,t.resolve(e))}).catch(function(n){n&&n.response&&404===n.response.status&&t.resolve(e)}),t.promise}),e.on("requestDeleteRemotePublishedPost",function(e){console.info("githubPlugin - requestDeleteRemotePublishedPost"),console.log("githubPlugin - requestDeleteRemotePublishedPost",e);var t=m.a.defer(),n=e.rootState.application.config,i=n.meta,o=q.getRepo(i.username,i.repositoryName),r=n.urls.getContentGhPath(e.nextState.post.original.name,e.nextState.post.original.type);return o.deleteFile(i.branch,r,function(n,i){n?t.reject(n):(console.error("requestDeleteRemotePublishedPost",i),k=i.commit,t.resolve(e))}),t.promise}),e.on("application:request-save-config",function(e){console.info("githubPlugin - application:request-save-config"),console.log("githubPlugin - application:request-save-config",e);var t=e.nextState.application;return function(e){console.log("Write config",e);var t=m.a.defer(),n=e.meta,i=q.getRepo(n.username,n.repositoryName),r=n.branch;return i.writeFile(r,"hubpress/config.json",o()(e,null,2),"Update configuration file",function(e,n){e?t.reject(e):(k=n.commit,console.info("Update lastCacheCommit",k),t.resolve(n))}),t.promise}(t.config).then(function(e){return function(e){console.log("Github manageCname - ",e);var t=e.meta,n=q.getRepo(t.username,t.repositoryName),i=m.a.defer();t.cname&&""!==t.cname?(console.info("SettingsService - saveAndPublish save CNAME"),n.writeFile(t.branch,"CNAME",t.cname,"Update CNAME with "+t.cname,function(e,t){e?i.reject(e):(k=t.commit,console.info("Update lastCacheCommit",k),i.resolve(t))})):(console.info("SettingsService - saveAndPublish delete CNAME"),n.deleteFile(t.branch,"CNAME",function(e,t){e&&"not found"!==e?i.reject(e):i.resolve(t)}).then(function(e){console.log("SHA after delete",e),i.resolve(e)}).catch(function(e){404!==e.response.status?i.reject(e):i.resolve()}));return i.promise}(t.config)}).then(function(t){return e})}),e.on("receiveRenderingPost",function(e){return console.info("githubPlugin - receiveRenderingPost"),console.log("githubPlugin - receiveRenderingPost",e),e}),e.on("application:initialize-plugins",function(e){console.info("githubPlugin - application:initialize-plugins"),console.log("githubPlugin - application:initialize-plugins",e);var t="put your repository name here"===e.rootState.application.config.meta.repositoryName||"put your username here"===e.rootState.application.config.meta.username;return e.nextState.application.requireInitilisation=t,e.nextState.application.config.initialisationConfigComponent=y.a,e})};var i=n("mvHQ"),o=n.n(i),r=n("woOf"),a=n.n(r),s=n("6ltY"),c=n.n(s),u=n("j9g7"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=n("73D8"),h=n.n(f),g=n("/Luh"),m=n.n(g),v=n("M4fF"),b=n.n(v),x=n("PJh5"),C=n.n(x),w=n("bN/m"),y=n("IBrK"),P=50,k=null;function S(e){return function(){var t=m.a.defer();return e.getProfile(function(e,n){e?t.reject(e):t.resolve(b.a.pick(n,["login","id","name","location","blog","avatar_url","bio"]))}),t.promise}}function _(e){return d()(e+"-"+c.a.name+"-"+c.a.os)}function R(e,t){var n=m.a.defer(),i={scopes:["public_repo"],note:_(e)};return t.createAuthorization(i,function(e,t){e?n.reject(e):n.resolve(t)}),n.promise}var q=void 0;function M(e,t,n){var i=m.a.defer(),o=e.meta,r=q.getRepo(o.username,o.repositoryName);return console.log("getPostAuthor",t),r.listCommits({sha:e.meta.branch,path:t.original&&t.original.path||t.path},function(e,o){if(e&&404!==e.error)i.reject(e);else{var r=o[o.length-1].author;if(r&&r.login!==n.login){S(q.getUser(r.login))().then(function(e){r=a()({},e);var n=a()({},t,{author:r});i.resolve(n)}).catch(function(e){return i.reject(e)})}else{r=a()({},n);var s=a()({},t,{author:r});i.resolve(s)}}}),i.promise}},cOI0:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,'.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,.5)}.cm-animate-fat-cursor,.cm-fat-cursor-mark{-webkit-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;background-color:#7e7}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;-webkit-font-feature-settings:"calt";font-feature-settings:"calt";font-variant-ligatures:contextual}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-webkit-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}',""])},cmzl:function(e,t,n){"use strict";var i={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"nuxt-progress",style:{width:this.percent+"%",height:this.height,"background-color":this.canSuccess?this.color:this.failedColor,opacity:this.show?1:0}})},staticRenderFns:[]};t.a=i},ct3O:function(e,t,n){"use strict";var i=n("FIB3"),o=n("FdPX");var r=function(e){n("wGIl")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},"d/OL":function(e,t,n){"use strict";t.a=function(e){e.on("hubpress:request-rendering-documents",function(e){console.info("asciidocPlugin - hubpress:request-rendering-documents"),console.log("asciidocPlugin - hubpress:request-rendering-documents",e);var t=e.rootState.application.config,n=(e.nextState.posts||[]).map(function(e){var n=o()({},e,h(t,e.content),{content:e.content}),i=c.a.pick(n,"attributes","author","html","tags","content","name","path","sha");n.title=i.title=i.attributes.doctitle,n.image=i.image=i.attributes["hp-image"],n.type=i.type=i.attributes["hp-type"],n.tags=i.tags=g(i.attributes),n.url=i.url=m(t,n.type,i.name);var r=o()({},n,{original:i});return n.type&&"post"!==n.type||(r.original.published_at=r.published_at=i.name.split("-").slice(0,3).join("-")),r});return e.nextState.posts=n,e}),e.on("requestRenderingPost",function(e){console.info("asciidocPlugin - requestRenderingPost"),console.log("asciidocPlugin - requestRenderingPost",e);var t=h(e.rootState.application.config,e.nextState.post.content);e.nextState.post=o()({},e.nextState.post,t),e.nextState.post.title=t.attributes.doctitle,e.nextState.post.image=t.attributes["hp-image"],e.nextState.post.type=t.attributes["hp-type"],e.nextState.post.tags=g(t.attributes),e.nextState.post.published_at=t.attributes.published_at||e.nextState.post.published_at||l()().format("YYYY-MM-DD");var n=t.attributes["hp-alt-title"];return e.nextState.post.type&&"post"!==e.nextState.post.type?e.nextState.post.name=d()(""+(n||e.nextState.post.title))+".adoc":e.nextState.post.name=d()(e.nextState.post.published_at+"-"+(n||e.nextState.post.title))+".adoc",e.nextState.post.url=m(e.rootState.application.config,e.nextState.post.type,e.nextState.post.name),e})};var i=n("woOf"),o=n.n(i),r=n("rzLr"),a=n.n(r),s=n("M4fF"),c=n.n(s),u=n("PJh5"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=a()(!1,window.XMLHttpRequest);function h(e,t){var n={doctype:"article",backend:"html5",safe:"unsafe",attributes:["showtitle!","allow-uri-read","imagesdir="+e.urls.site+"/images","icons=font"]},i=function(e){var t=e.split("pass::[more]");return{excerpt:t[0],full:t.join("")}}(t.replace(/gist::([0-9]*)\[(lines=[0-9]*\.\.[0-9]*)?,?(type=([\w.]*))?,?(file=([\w.]*))?\]/g,"[source,$4]\n----\ninclude::https://gist.githubusercontent.com/raw/$1/$6[$2]\n----\n")),o=f.load(i.excerpt,n),r=f.load(i.full,n);return{attributes:r.getAttributes(),excerpt:o.$convert(),html:r.$convert()}}function g(e){return e["hp-tags"]&&e["hp-tags"].split(",").map(function(e){return e.trim()}).filter(function(e){return""!==e})}function m(e,t,n){return e.urls.getContentUrl(n,t)}},dCDI:function(e,t,n){"use strict";(function(e,t){var i,o=n("pFYg"),r=n.n(o);i=function(e){var t;(t=e).overlayMode=function(e,n,i){return{startState:function(){return{base:t.startState(e),overlay:t.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(i){return{base:t.copyState(e,i.base),overlay:t.copyState(n,i.overlay),basePos:i.basePos,baseCur:null,overlayPos:i.overlayPos,overlayCur:null}},token:function(t,o){return(t!=o.streamSeen||Math.min(o.basePos,o.overlayPos)"},redirect:"/content",meta:{auth:!0},children:t.nextState.routes.map(function(e){return console.log(e),e.entries}).reduce(function(e,t){return e.concat(t)},[])}]},i=new r.default(n);return i.routes=t.nextState.routes,i.beforeEach(function(e,t,n){var i=Object(a.default)();e.matched.some(function(e){return e.meta.auth})?i.state.authentication.isAuthenticated?n():n({path:"/login",query:{redirect:e.fullPath}}):n()}),i};var i=n("I3G/"),o=n.n(i),r=n("/ocq"),a=n("fbRD"),s=n("LEOq"),c=n.n(s),u=(n("7cn8"),n("YG9q")),l=n("QMmS"),p=n("3oxy"),d=n("H8Oa"),f=n("bxJ0"),h=n("WiUJ"),g=n("H1PK"),m=n("d/OL"),v=(n("Y2j8"),n("1AqL")),b=n("tLh+");console.log("router =============="),console.log("Router"),o.a.use(r.default),c.a.register(u.a,l.b,p.a,d.a,f.a,h.a,g.a,m.a,v.a,b.a),console.log("Registered plugins",c.a.list())},oz2E:function(e,t,n){"use strict";t.a={name:"dashboard",beforeCreate:function(){console.log("dashboard beforeCreate")},created:function(){console.log("dashboard created")}}},qZPA:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".html-rendering,.published-preview{min-width:100%;height:calc(100vh - 47px);min-height:calc(100vh - 47px)}",""])},qcny:function(e,t,n){"use strict";n.d(t,"b",function(){return D});var i=n("Xxa5"),o=n.n(i),r=n("//Fk"),a=(n.n(r),n("C4MV")),s=n.n(a),c=n("woOf"),u=n.n(c),l=n("Dd8w"),p=n.n(l),d=n("exGp"),f=n.n(d),h=n("MU8w"),g=(n.n(h),n("I3G/")),m=n.n(g),v=n("p3jY"),b=n.n(v),x=n("mtxM"),C=n("0F0d"),w=n("HBB+"),y=n("WRRc"),P=n("ct3O"),k=n("Hot+"),S=n("yTq1"),_=n("YLfZ"),R=n("J2Ti"),q=n("zQW4"),M=n("6hdJ");n.d(t,"a",function(){return P.a});var $,D=($=f()(o.a.mark(function e(t){var n,i,r,a,c,l,d;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(x.a)(t),(i=Object(R.a)(t)).$router=n,r=p()({router:n,store:i,nuxt:{defaultTransition:j,transitions:[j],setTransitions:function(e){return Array.isArray(e)||(e=[e]),e=e.map(function(e){return e=e?"string"==typeof e?u()({},j,{name:e}):u()({},j,e):j}),this.$options.nuxt.transitions=e,e},err:null,dateErr:null,error:function(e){e=e||null,r.context._errored=!!e,"string"==typeof e&&(e={statusCode:500,message:e});var n=this.nuxt||this.$options.nuxt;return n.dateErr=Date.now(),n.err=e,t&&(t.nuxt.error=e),e}}},S.a),i.app=r,a=t?t.next:function(e){return r.router.push(e)},c=void 0,t?c=n.resolve(t.url).route:(l=Object(_.d)(n.options.base),c=n.resolve(l).route),e.next=10,Object(_.m)(r,{route:c,next:a,error:r.nuxt.error.bind(r),store:i,payload:t?t.payload:void 0,req:t?t.req:void 0,res:t?t.res:void 0,beforeRenderFns:t?t.beforeRenderFns:void 0});case 10:if(d=function(e,t){if(!e)throw new Error("inject(key, value) has no key provided");if(!t)throw new Error("inject(key, value) has no value provided");r[e="$"+e]=t,i[e]=r[e];var n="__nuxt_"+e+"_installed__";m.a[n]||(m.a[n]=!0,m.a.use(function(){m.a.prototype.hasOwnProperty(e)||s()(m.a.prototype,e,{get:function(){return this.$root.$options[e]}})}))},window.__NUXT__&&window.__NUXT__.state&&i.replaceState(window.__NUXT__.state),"function"!=typeof q.a){e.next=15;break}return e.next=15,Object(q.a)(r.context,d);case 15:if("function"!=typeof M.a){e.next=18;break}return e.next=18,Object(M.a)(r.context,d);case 18:e.next=21;break;case 21:return e.abrupt("return",{app:r,router:n,store:i});case 22:case"end":return e.stop()}},e,this)})),function(e){return $.apply(this,arguments)});m.a.component(C.a.name,C.a),m.a.component(w.a.name,w.a),m.a.component(y.a.name,y.a),m.a.component(k.a.name,k.a),m.a.use(b.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var j={name:"page",mode:"out-in",appear:!0,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"}},r6qT:function(e,t,n){var i=n("HEYa");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("2b9275f1",i,!0,{sourceMap:!1})},"tLh+":function(e,t,n){"use strict";t.a=function(e){e.on("requestGenerateIndex",function(e){console.info("rssPlugin - requestGenerateIndex"),console.log("rssPlugin - requestGenerateIndex",e);var t=e.rootState.application.config.site||{},n=e.rootState.application.config.urls.site||"",i=e.nextState.publishedPosts||[],r=new o.a({title:t.title||"",description:t.description||"",feed_url:n+"/rss/",site_url:n,image_url:t.cover,ttl:"60"});i.forEach(function(e){r.item({title:e.title,description:e.html,url:""+n+e.url,categories:e.tags,author:e.author.name,date:e.published_at})});var a=r.xml(),s=[];return s.push({name:"RSS",path:"rss/index.xml",content:a,message:"Publish rss feed"}),e.nextState.elementsToPublish=(e.nextState.elementsToPublish||[]).concat(s),e})};var i=n("DVIz"),o=n.n(i)},u8s0:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"",""])},unZF:function(e,t,n){"use strict";var i=n("BO1k"),o=n.n(i),r=n("GfDd"),a=r.keys();function s(e){var t=r(e);return t.default?t.default:t}var c={},u=!0,l=!1,p=void 0;try{for(var d,f=o()(a);!(u=(d=f.next()).done);u=!0){var h=d.value;c[h.replace(/^\.\//,"").replace(/\.(js|ts)$/,"")]=s(h)}}catch(e){l=!0,p=e}finally{try{!u&&f.return&&f.return()}finally{if(l)throw p}}t.a=c},vXEZ:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".nuxt-progress{position:fixed;top:0;left:0;right:0;height:2px;width:0;-webkit-transition:width .2s,opacity .4s;transition:width .2s,opacity .4s;opacity:1;background-color:#efc14e;z-index:999999}",""])},wGIl:function(e,t,n){var i=n("m8kW");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("6bc7b368",i,!0,{sourceMap:!1})},wQtD:function(e,t,n){"use strict";t.a={name:"navigation-settings",data:function(){return{newNav:{label:"",url:""},navigation:this.$store.state.application.config.navigation||[]}},computed:{isNotValid:function(){return""===this.newNav.label.trim()||""===this.newNav.url.trim()}},methods:{remove:function(e){this.navigation.splice(e,1)},clear:function(){this.newNav={label:"",url:""}},add:function(e){this.navigation.push(e),this.clear()}}}},wrAo:function(e,t,n){"use strict";t.a={name:"hubpress-settings-social",computed:{social:function(){return this.$store.state.application.config.socialnetwork||{}}}}},yJpT:function(e,t,n){var i=n("j9sj");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("33615082",i,!0,{sourceMap:!1})},yTq1:function(e,t,n){"use strict";var i=n("//Fk"),o=n.n(i),r=n("I3G/"),a=n.n(r),s=n("F88d"),c=n("XSDV"),u=(n.n(c),{_default:function(){return n.e(0).then(n.bind(null,"Ma2J")).then(function(e){return e.default||e})}}),l={};t.a={head:{title:"Hubpress: A web application to build your Blog",meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{hid:"description",name:"description",content:"Nuxt.js project"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"},{rel:"stylesheet",href:"../static/semantic/semantic.min.css"}],style:[],script:[]},render:function(e,t){var n=e("nuxt-loading",{ref:"loading"}),i=e(this.layout||"nuxt");return e("div",{domProps:{id:"__nuxt"}},[n,e("transition",{props:{name:"layout",mode:"out-in"}},[e("div",{domProps:{id:"__layout"},key:this.layoutName},[i])])])},data:function(){return{layout:null,layoutName:""}},beforeCreate:function(){a.a.util.defineReactive(this,"nuxt",this.$options.nuxt)},created:function(){a.a.prototype.$nuxt=this,"undefined"!=typeof window&&(window.$nuxt=this),this.error=this.nuxt.error},mounted:function(){this.$loading=this.$refs.loading},watch:{"nuxt.err":"errorChanged"},methods:{errorChanged:function(){this.nuxt.err&&this.$loading&&(this.$loading.fail&&this.$loading.fail(),this.$loading.finish&&this.$loading.finish())},setLayout:function(e){e&&l["_"+e]||(e="default"),this.layoutName=e;var t="_"+e;return this.layout=l[t],this.layout},loadLayout:function(e){var t=this;e&&(u["_"+e]||l["_"+e])||(e="default");var n="_"+e;return l[n]?o.a.resolve(l[n]):u[n]().then(function(e){return l[n]=e,delete u[n],l[n]}).catch(function(e){if(t.$nuxt)return t.$nuxt.error({statusCode:500,message:e.message})})}},components:{NuxtLoading:s.a}}},yUYC:function(e,t,n){"use strict";var i=n("I3G/"),o=n.n(i);t.a={name:"nuxt-loading",data:function(){return{percent:0,show:!1,canSuccess:!0,duration:5e3,height:"2px",color:"#3B8070",failedColor:"red"}},methods:{start:function(){var e=this;return this.show=!0,this.canSuccess=!0,this._timer&&(clearInterval(this._timer),this.percent=0),this._cut=1e4/Math.floor(this.duration),this._timer=setInterval(function(){e.increase(e._cut*Math.random()),e.percent>95&&e.finish()},100),this},set:function(e){return this.show=!0,this.canSuccess=!0,this.percent=Math.floor(e),this},get:function(){return Math.floor(this.percent)},increase:function(e){return this.percent=this.percent+Math.floor(e),this},decrease:function(e){return this.percent=this.percent-Math.floor(e),this},finish:function(){return this.percent=100,this.hide(),this},pause:function(){return clearInterval(this._timer),this},hide:function(){var e=this;return clearInterval(this._timer),this._timer=null,setTimeout(function(){e.show=!1,o.a.nextTick(function(){setTimeout(function(){e.percent=0},200)})},500),this},fail:function(){return this.canSuccess=!1,this}}}},zFmT:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".posts-container .menu{min-height:47px}.posts-container{height:100%;overflow:auto}.posts.ui.container{padding-top:60px}.image.cover>div{width:100%;height:200px;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}@media screen and (max-width:622px){.posts.ui.container .ui.card .image.cover{display:none}}",""])},zQW4:function(e,t,n){"use strict";for(var i=n("woOf"),o=n.n(i),r=n("//Fk"),a=n.n(r),s=n("BO1k"),c=n.n(s),u=n("mtWM"),l=n.n(u),p={setHeader:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",i=!0,o=!1,r=void 0;try{for(var a,s=c()(Array.isArray(n)?n:[n]);!(i=(a=s.next()).done);i=!0){var u=a.value;if(!t)return void delete this.defaults.headers[u][e];this.defaults.headers[u][e]=t}}catch(e){o=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw r}}},setToken:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",i=e?(t?t+" ":"")+e:null;this.setHeader("Authorization",i,n)},onRequest:function(e){this.interceptors.request.use(function(t){return e(t)||t})},onResponse:function(e){this.interceptors.response.use(function(t){return e(t)||t})},onRequestError:function(e){this.interceptors.request.use(void 0,function(t){return e(t)||a.a.reject(t)})},onResponseError:function(e){this.interceptors.response.use(void 0,function(t){return e(t)||a.a.reject(t)})},onError:function(e){this.onRequestError(e),this.onResponseError(e)}},d=function(e){p["$"+e]=function(){return this[e].apply(this,arguments).then(function(e){return e&&e.data})}},f=["request","delete","get","head","options","post","put","patch"],h=0;h1&&(r=(e.path||"")+"page/"+o+"/index.html"),o>1&&(v=o-1),oo-1||g+1===t.length){var w=l.a.template(e.template,{pagination:{prev:v,next:m,page:o,pages:h,total:t.length,limit:u},context:"index"===e.template&&0===v?"home":e.template,posts:a,tag:e.tag,author:e.author,title:i.title,description:i.description,socialnetwork:p,relativeUrl:""},{config:n,theme:e.opts.nextState.theme});s.push({name:"page-"+o,path:r,content:w,message:"Publish page-"+o+" "+e.template}),a=[],o++}}),e.opts.nextState.elementsToPublish=(e.opts.nextState.elementsToPublish||[]).concat(s),e.opts}}]),e}();t.a=new f},BdWi:function(e,t,n){"use strict";t.a=function(e){console.info("PagesGenerator - generate"),console.log("PagesGenerator - generate",e);var t=e;return e.nextState.publishedPages.forEach(function(e){t=Object(o.a)(t,e)}),t};n("APUd");var i=n("j+6P"),o=(n.n(i),n("KgKs"))},E1SC:function(e,t,n){"use strict";var i=n("SUis"),o=n("7Fxy");var r=function(e){n("vKgl")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},EgsU:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".posts-container .menu{min-height:47px}.posts-container{height:100%;overflow:auto}.posts.ui.container{padding-top:60px}.image.cover>div{width:100%;height:200px;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}@media screen and (max-width:622px){.posts.ui.container .ui.card .image.cover{display:none}}",""])},F6eF:function(e,t,n){"use strict";var i=n("7t+N"),o=n.n(i);t.a={name:"initialise-configuration",data:function(){return{username:"",repositoryName:"hubpress.io",branch:"master",cname:void 0}},mounted:function(){o()("div.dropdown").dropdown()},computed:{isValid:function(){return""!=this.username.trim()&&""!=this.repositoryName.trim()}},methods:{submit:function(){var e={username:this.username,repositoryName:this.repositoryName,branch:this.branch,cname:this.cname};this.$store.dispatch("application:save-startup-config",e)}}}},F88d:function(e,t,n){"use strict";var i=n("yUYC"),o=n("cmzl");var r=function(e){n("0xYM")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},FIB3:function(e,t,n){"use strict";t.a={name:"nuxt-error",props:["error"],head:function(){return{title:this.message,meta:[{name:"viewport",content:"width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"}]}},computed:{statusCode:function(){return this.error&&this.error.statusCode||500},message:function(){return this.error.message||"Error"}}}},FdPX:function(e,t,n){"use strict";var i={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"__nuxt-error-page"},[t("div",{staticClass:"error"},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"90",height:"90",fill:"#DBE1EC",viewBox:"0 0 48 48"}},[t("path",{attrs:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}})]),t("div",{staticClass:"title"},[this._v(this._s(this.message))]),404===this.statusCode?t("p",{staticClass:"description"},[t("nuxt-link",{staticClass:"error-link",attrs:{to:"/"}},[this._v("Back to the home page")])],1):this._e(),this._m(0)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"logo"},[t("a",{attrs:{href:"https://nuxtjs.org",target:"_blank",rel:"noopener"}},[this._v("Nuxt.js")])])}]};t.a=i},FoP8:function(module,__webpack_exports__,__webpack_require__){"use strict";function applyScript(hasChanged){if(hasChanged){for(var element=document.getElementById("html-content"),scripts=element.getElementsByTagName("script"),addedScripts=[],i=0;i.menu[data-v-0536f20d]{height:47px}",""])},HUXV:function(e,t,n){"use strict";var i=n("6Ndi");t.a={refreshAfterSavedConfig:function(e){return i.a.fireRequestTheme(e).then(function(t){return i.a.fireReceiveTheme(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return console.time("Build content"),e}).then(function(e){return i.a.fireRequestGenerateIndex(e)}).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGeneratePosts(e)}).then(function(e){return i.a.fireReceiveGeneratePosts(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)}).then(function(e){return i.a.fireRequestLocalPublishedPages(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPages(e)}).then(function(e){return i.a.fireRequestGeneratePages(e)}).then(function(e){return i.a.fireReceiveGeneratePages(e)}).then(function(e){return console.timeEnd("Build content"),e}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})}}},"Hot+":function(e,t,n){"use strict";var i=n("I3G/"),o=n.n(i),r=n("HBB+"),a=n("ct3O"),s=n("YLfZ");t.a={name:"nuxt",props:["nuxtChildKey","keepAlive"],render:function(e){return this.nuxt.err?e("nuxt-error",{props:{error:this.nuxt.err}}):e("nuxt-child",{key:this.routerViewKey,props:this.$props})},beforeCreate:function(){o.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(s.b)(this.$route.matched[0].path)(this.$route.params);var e=this.$route.matched[0]&&this.$route.matched[0].components.default;return e&&e.options&&e.options.key?"function"==typeof e.options.key?e.options.key(this.$route):e.options.key:this.$route.path}},components:{NuxtChild:r.a,NuxtError:a.a}}},IBrK:function(e,t,n){"use strict";var i=n("F6eF"),o=n("N3Gg");var r=function(e){n("XkEn")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Ie2b:function(e,t){},Irdm:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"settings-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.submit(t)}}},[e._m(0)])])]),n("div",{staticClass:"ui container settings-content"},[e._m(1),n("div",{staticClass:"ui divider"}),n("form",{staticClass:"ui form",attrs:{id:"mainForm"}},[n("div",{staticClass:"ui secondary pointing menu"},[n("div",{staticClass:"item active",attrs:{"data-tab":"application",id:"application-tab"}},[e._v("Application")]),e._l(e.tabs,function(t){return n("div",{key:t.id,staticClass:"item",attrs:{"data-tab":t.id}},[e._v(e._s(t.label))])})],2),n("div",{staticClass:"ui bottom attached tab segment active",attrs:{"data-tab":"application"}},[n("h4",{staticClass:"ui dividing header"},[e._v("Domain")]),n("div",{staticClass:"field"},[n("label",[e._v("CNAME")]),n("input",{attrs:{type:"text",name:"application-cname",placeholder:"CNAME"},domProps:{value:e.config.meta.cname}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Metadata (set in config.json)")]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub username")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-username",placeholder:"Github username"},domProps:{value:e.config.meta.username}})]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub repository name")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-repository-name",placeholder:"GitHub repository name"},domProps:{value:e.config.meta.repositoryName}})]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub branch")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-branch",placeholder:"GitHub branch"},domProps:{value:e.config.meta.branch}})]),e._m(2)]),e._l(e.tabs,function(e){return n("div",{key:e.id,staticClass:"ui bottom attached tab segment ",attrs:{"data-tab":e.id}},[n(e.id,{tag:"component"})],1)})],2)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Save your settings","data-position":"bottom right"}},[t("i",{staticClass:"save large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"ui center aligned icon header"},[t("i",{staticClass:"circular settings icon"}),this._v("\n Settings\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"disabled field"},[t("label",[this._v("Blog URL")]),t("input",{attrs:{type:"text",disabled:"",name:"application-blog-url",placeholder:"Blog URL"}})])}]};t.a=i},J2Ti:function(e,t,n){"use strict";n.d(t,"a",function(){return y});var i=n("woOf"),o=n.n(i),r=n("BO1k"),a=n.n(r),s=n("I3G/"),c=n.n(s),u=n("NYxO");c.a.use(u.default);var l=n("1H2/"),p=l.keys(),d={},f=void 0;if(p.forEach(function(e){-1!==e.indexOf("./index.")&&(f=e)}),f&&(d=P(f)),"function"!=typeof d){d.modules||(d.modules={});var h=!0,g=!1,m=void 0;try{for(var v,b=a()(p);!(h=(v=b.next()).done);h=!0){var x=v.value,C=x.replace(/^\.\//,"").replace(/\.(js|ts)$/,"");if("index"!==C){var w=C.split(/\//);(e=k(d,w))[C=w.pop()]=P(x),e[C].namespaced=!0}}}catch(e){g=!0,m=e}finally{try{!h&&b.return&&b.return()}finally{if(g)throw m}}}var y=d instanceof Function?d:function(){return new u.default.Store(o()({strict:!1},d,{state:d.state instanceof Function?d.state():{}}))};function P(e){var t=l(e),n=t.default||t;if(n.commit)throw new Error("[nuxt] store/"+e.replace("./","")+" should export a method which returns a Vuex instance.");if(n.state&&"function"!=typeof n.state)throw new Error("[nuxt] state should be a function in store/"+e.replace("./",""));return n}function k(e,t){if(1===t.length)return e.modules;var n=t.shift();return e.modules[n]=e.modules[n]||{},e.modules[n].namespaced=!0,e.modules[n].modules=e.modules[n].modules||{},k(e.modules[n],t)}},JtYm:function(e,t,n){"use strict";var i=n("6Ndi");function o(e){return i.a.fireRequestLocalPosts(e).then(function(e){return i.a.fireReceiveLocalPosts(e)})}t.a={deletePost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=t,e}).then(function(e){return e.nextState.post.original?i.a.fireRequestDeleteRemotePost(e).then(function(e){return i.a.fireReceiveDeleteRemotePost(e)}):e}).then(function(e){return i.a.fireRequestDeleteLocalPost(e)}).then(function(e){return i.a.fireReceiveDeleteLocalPost(e)}).then(function(e){return e.nextState.post.published?i.a.fireRequestDeleteRemotePublishedPost(e).then(function(e){return i.a.fireReceiveDeleteRemotePublishedPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return i.a.fireRequestGenerateIndex(e)}).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)}):e}).then(o)},getLocalPost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)})},getLocalPosts:o,remoteSavePost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){return i.a.fireRequestSaveRemotePost(e)}).then(function(e){return i.a.fireReceiveSaveRemotePost(e)}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)})},renderAndSavePost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){return e.nextState.post.content=e.payload.post.content,e}).then(function(e){return i.a.fireRequestRenderingPost(e)}).then(function(e){return i.a.fireReceiveRenderingPost(e)}).then(function(e){return e.nextState.post&&e.nextState.post.title?i.a.fireRequestSaveLocalPost(e).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}):e}).then(function(e){var t=e.nextState.post.original;return e.nextState.post.original=e.nextState.post,i.a.fireRequestGeneratePost(e).then(function(e){return i.a.fireReceiveGeneratePost(e)}).then(function(e){var n=e.nextState.elementsToPublish[0]||{};return e.nextState.post.publishedContent=n.content,e.nextState.post.original=t,e})})},publishPost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=_.union(e.nextState.post.tags,t),e}).then(function(e){return i.a.fireRequestSaveRemotePost(e)}).then(function(e){return i.a.fireReceiveSaveRemotePost(e)}).then(function(e){return e.nextState.post.original.author=e.nextState.post.original.author||e.nextState.post.author,e.nextState.post.published=1,e}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return i.a.fireRequestGeneratePost(e)}).then(function(e){return i.a.fireReceiveGeneratePost(e)}).then(function(e){return"post"!==e.nextState.post.type?e:i.a.fireRequestGenerateIndex(e).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)})}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})},unpublishPost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=t,e}).then(function(e){return i.a.fireRequestDeleteRemotePublishedPost(e)}).then(function(e){return i.a.fireReceiveDeleteRemotePublishedPost(e)}).then(function(e){return e.nextState.post.published=0,e}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return"post"!==e.nextState.post.type?e:i.a.fireRequestGenerateIndex(e).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)})}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})}}},KMrN:function(e,t,n){"use strict";var i=n("LEOq"),o=n.n(i);t.a={authenticate:function(e){return function(e){return o.a.fire("requestAuthentication",e)}(e).then(function(e){return(t=e).nextState.twoFactorRequired?payload:o.a.fire("receiveAuthentication",t);var t})},initialize:function(e){return function(e){return o.a.fire("requestSavedAuth",e)}(e).then(function(e){return t=e,o.a.fire("receiveSavedAuth",t);var t})}}},KOTd:function(e,t,n){"use strict";t.a=function(e){console.info("AuthorGenerator - generate"),console.log("AuthorGenerator - generate",e);var t=void 0;if(!s.a.isTemplateAvailable("author"))return e;t=e.nextState.author?e.nextState.publishedPosts.filter(function(t){return t.author.login===e.nextState.author.login}):e.nextState.publishedPosts;var n=r.a.reduce(t,function(e,t){return e[t.author.login]=e[t.author.login]||[],e[t.author.login].push(t),e},{}),o=e;return r.a.each(n,function(e,t){var n=e[0].author;n.name=n.name||n.login,n.slug=t,n.website=n.blog,n.status="",o=i.a.generate({opts:o,posts:e,author:n,template:"author",path:"author/"+t+"/"})}),o};var i=n("APUd"),o=n("M4fF"),r=n.n(o),a=n("j+6P"),s=n.n(a),c=n("n+xr");n.n(c)},KgKs:function(e,t,n){"use strict";t.a=function(e,t){console.info("PostGenerator - generate"),console.log("PostGenerator - generate",e);var n=t,i=o()({},n.original);i.tags=a.a.map(i.tags,function(e){return{name:e,slug:l()(e)}});var r=i.author;i.author={id:r.id,name:r.name||r.login,location:r.location,website:r.blog,image:r.avatar_url,profile_image:r.avatar_url,bio:r.bio,status:"",slug:r.login};var s=e.rootState.application.config,u=s.urls;e.nextState.theme.name,e.nextState.theme.version,s.urls.theme;i.urls=u,i.status="published",i.feature_image=i.image;var p=c.a.template(n.type||"post",{context:n.type||"post",socialnetwork:s.socialnetwork,relativeUrl:n.url,post:i,author:i.author},{config:s,theme:e.nextState.theme}),d=[];return d.push({title:n.title,image:n.image,name:n.name,path:s.urls.getContentGhPath(n.name,n.type),url:s.urls.getContentGhPath(n.name,n.type),content:p,message:"Publish "+n.name,published_at:n.published_at}),e.nextState.elementsToPublish=(e.nextState.elementsToPublish||[]).concat(d),e};var i=n("woOf"),o=n.n(i),r=n("M4fF"),a=n.n(r),s=n("j+6P"),c=n.n(s),u=n("n+xr"),l=n.n(u)},LB67:function(e,t,n){"use strict";var i=n("6Ndi");t.a={authenticate:function(e){return i.a.fireRequestAuthentication(e).then(function(e){return i.a.fireReceiveAuthentication(e)})}}},LnjV:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"",""])},MHN4:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".about-content{padding-top:60px}",""])},Mha6:function(e,t,n){var i=n("ys1n");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("4942fa76",i,!0,{sourceMap:!1})},N3Gg:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"initialise-configuration"},[e._m(0),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"content"},[e._v("\n We need to initialize your configuration before a first use.\n ")]),n("div",{staticClass:"ui divider"}),n("form",{staticClass:"ui form",attrs:{id:"configurationForm"},on:{submit:function(t){t.preventDefault(),e.submit()}}},[n("div",{staticClass:"required field"},[n("label",[e._v("Username")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.username,expression:"username"}],attrs:{type:"text",name:"configuration-username",placeholder:"Your github username"},domProps:{value:e.username},on:{input:function(t){t.target.composing||(e.username=t.target.value)}}})]),n("div",{staticClass:"required field"},[n("label",[e._v("Repository name")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.repositoryName,expression:"repositoryName"}],attrs:{type:"text",name:"configuration-cname",placeholder:"The name of your repository"},domProps:{value:e.repositoryName},on:{input:function(t){t.target.composing||(e.repositoryName=t.target.value)}}})]),n("div",{staticClass:"required field"},[n("label",[e._v("Branch")]),n("div",{staticClass:"ui selection dropdown"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.branch,expression:"branch"}],attrs:{type:"hidden",name:"branch"},domProps:{value:e.branch},on:{input:function(t){t.target.composing||(e.branch=t.target.value)}}}),n("i",{staticClass:"dropdown icon"}),n("div",{staticClass:"default text"},[e._v("master")]),e._m(1)])]),n("div",{staticClass:"field"},[n("label",[e._v("Domain name")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.cname,expression:"cname"}],attrs:{type:"text",name:"configuration-cname",placeholder:"Your domain name if you have one"},domProps:{value:e.cname},on:{input:function(t){t.target.composing||(e.cname=t.target.value)}}})]),n("button",{staticClass:"ui fluid large submit button",attrs:{type:"submit",name:"button",disabled:!e.isValid}},[e._v("Ok, let's go!")])]),e._m(2)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"ui center aligned icon header"},[t("i",{staticClass:"circular configure icon"}),this._v("\n Configuration\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"menu"},[t("div",{staticClass:"item",attrs:{"data-value":"master"}},[this._v("master")]),t("div",{staticClass:"item",attrs:{"data-value":"gh-pages"}},[this._v("gh-pages")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui message"},[this._v("\n If you have questions about how to use HubPress, "),t("a",{attrs:{href:"https://hubpress.gitbooks.io/hubpress-knowledgebase/content/"}},[this._v("here is the right place.")])])}]};t.a=i},NpFX:function(e,t,n){"use strict";var i=n("FoP8"),o=n("XO7e");var r=function(e){n("YDvP")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Pm0L:function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"f",function(){return o}),n.d(t,"g",function(){return r}),n.d(t,"h",function(){return a}),n.d(t,"d",function(){return s}),n.d(t,"c",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"a",function(){return l});var i="login:submit",o="login:updateEmail",r="login:updatePassword",a="login:updateTwoFactorCode",s="authorisation:request-login",c="authorisation:receive-login",u="authorisation:failure-login",l="authorisation:authentication-done"},Q7NK:function(e,t,n){"use strict";(function(e,t){var i,o=n("pFYg"),r=n.n(o);i=function(e){e.defineMode("asciidoc",function(e,t){var n=1e3,i=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],i=[],o=0,r=this.matchMappings[t]={defaultToken:"text"},a="g",s=[],c=0;c1?this.$applyToken:u.token);p>1&&(/\\\d/.test(u.regex)?l=u.regex.replace(/\\([0-9]+)/g,function(e,t){return"\\"+(parseInt(t,10)+o+1)}):(p=1,l=this.removeCapturingGroups(u.regex)),u.splitRegex||"string"==typeof u.token||s.push(u)),r[o]=c,o+=p,i.push(l),u.onMatch||(u.onMatch=null)}}s.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)},this),this.regExps[t]=new RegExp("("+i.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(e){n=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var i=[],o=0,r=n.length;ol){var m=e.substring(l,g-h.length);p.type==d?p.value+=m:(p.type&&u.push(p),p={type:d,value:m})}for(var v=0;vn){for(;l1&&i[0]!==o&&i.unshift(o),{tokens:u,state:i.length?i:o}}}).call(i.prototype);var o={empty:null,text:null,keyword:"keyword",control:"keyword",operator:"operator",constant:"atom",numeric:"number",character:"atom",escape:"atom",variable:"variable",parameter:"variable-3",language:"variable-2",comment:"comment",line:"comment","double-slash":"comment","double-dash":"comment","number-sign":"comment",percentage:"comment",block:"comment",doc:"comment",string:"string",quoted:"string",single:"string",double:"string",triple:"string",unquoted:"string",interpolated:"string",regexp:"string-2",meta:"keyword",literal:"qualifier",support:"builtin",markup:"tag",underline:"link",link:"link",strong:"strong",heading:"header",heading2:"header-2",heading3:"header-3",heading4:"header-4",heading5:"header-5",heading6:"header-6",em:"em",list:"variable-2",numbered:"variable-2",unnumbered:"variable-2",quote:"quote",raw:"variable-2",invalid:"error",illegal:"invalidchar",deprecated:"error"},r=function(e,t){var n=t.plannedTokens.shift();return void 0===n?null:(e.match(n.value),function(e){for(var t=null,n=0;n0)return r(e,t);var n=t.current,i=e.match(/.*$/,!1)[0],o=s.getLineTokens(i,n);return t.plannedTokens=o.tokens,t.current=o.state,r(e,t)},s=new i((new function(){function e(e){return(/\w/.test(e)?"\\b":"(?:\\B|^)")+e+"[^"+e+"].*?"+e+"(?![\\w*])"}this.$rules={start:[{token:"empty",regex:/$/},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"literal",regex:/^-{4,}\s*$/,next:"literalBlock"},{token:"literal",regex:/^\+{4,}\s*$/,next:"passthroughBlock"},{token:"keyword",regex:/^={4,}\s*$/},{token:"text",regex:/^\s*$/},{token:"empty",regex:"",next:"dissallowDelimitedBlock"}],dissallowDelimitedBlock:[{include:"paragraphEnd"},{token:"comment",regex:"^//.+$"},{token:"keyword",regex:"^(?:NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s"},{include:"listStart"},{token:"literal",regex:/^\s+.+$/,next:"indentedBlock"},{token:"empty",regex:"",next:"text"}],paragraphEnd:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"commentBlock"},{token:"tableBlock",regex:/^\s*[|!]=+\s*$/,next:"tableBlock"},{token:"keyword",regex:/^(?:--|''')\s*$/,next:"start"},{token:"option",regex:/^\[.*\]\s*$/,next:"start"},{token:"pageBreak",regex:/^>{3,}$/,next:"start"},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"titleUnderline",regex:/^(?:={2,}|-{2,}|~{2,}|\^{2,}|\+{2,})\s*$/,next:"start"},{token:"singleLineTitle",regex:/^={1}\s+\S.*$/,next:"start"},{token:"singleLineTitle2",regex:/^={2}\s+\S.*$/,next:"start"},{token:"singleLineTitle3",regex:/^={3}\s+\S.*$/,next:"start"},{token:"singleLineTitle4",regex:/^={4}\s+\S.*$/,next:"start"},{token:"singleLineTitle5",regex:/^={5}\s+\S.*$/,next:"start"},{token:"singleLineTitle6",regex:/^={6}\s+\S.*$/,next:"start"},{token:"otherBlock",regex:/^(?:\*{2,}|_{2,})\s*$/,next:"start"},{token:"optionalTitle",regex:/^\.[^.\s].+$/,next:"start"}],listStart:[{token:"keyword",regex:/^\s*(?:\d+\.|[a-zA-Z]\.|[ixvmIXVM]+\)|\*{1,5}|-|\.{1,5})\s/,next:"listText"},{token:"meta.tag",regex:/^.+(?::{2,4}|;;)(?: |$)/,next:"listText"},{token:"keyword",regex:/^\+\s*$/,next:"start"}],text:[{token:["link","link"],regex:/((?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+)(\[.*?\])/},{token:["link","link"],regex:/(?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+/},{token:"link",regex:/\b[\w\.\/\-]+@[\w\.\/\-]+\b/},{include:"macros"},{include:"paragraphEnd"},{token:"literal",regex:/\+{3,}/,next:"smallPassthrough"},{token:"escape",regex:/\((?:C|TM|R)\)|\.{3}|->|<-|=>|<=|&#(?:\d+|x[a-fA-F\d]+);|(?: |^)--(?=\s+\S)/},{token:"escape",regex:/\\[_*'`+#]|\\{2}[_*'`+#]{2}/},{token:"keyword",regex:/\s\+$/},{token:"text",regex:"[a-zA-Z¡-￿]+\\b"},{token:["keyword","string","keyword"],regex:/(<<[\w\d\-$]+,)(.*?)(>>|$)/},{token:"keyword",regex:/<<[\w\d\-$]+,?|>>/},{token:"constant.character",regex:/\({2,3}.*?\){2,3}/},{token:"support.function.list.callout",regex:/^(?:<\d+>|\d+>|>) /,next:"text"},{token:"keyword",regex:/\[\[.+?\]\]/},{token:"support",regex:/^\[{3}[\w\d =\-]+\]{3}/},{include:"quotes"},{token:"empty",regex:/^\s*$/,next:"start"}],listText:[{include:"listStart"},{include:"text"}],indentedBlock:[{token:"literal",regex:/^[\s\w].+$/,next:"indentedBlock"},{token:"literal",regex:"",next:"start"}],listingBlock:[{token:"literal",regex:/^\.{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],literalBlock:[{token:"literal",regex:/^-{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],passthroughBlock:[{token:"literal",regex:/^\+{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:"[a-zA-Z¡-￿]+\\b|\\d+"},{include:"macros"},{token:"literal",regex:"."}],smallPassthrough:[{token:"literal",regex:/[+]{3,}/,next:"dissallowDelimitedBlock"},{token:"literal",regex:/^\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:"[a-zA-Z¡-￿]+\\b|\\d+"},{include:"macros"}],commentBlock:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"doc.comment",regex:"^.*$"}],tableBlock:[{token:"tableBlock",regex:/^\s*\|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"innerTableBlock"},{token:"tableBlock",regex:/\|/},{include:"text",noEscape:!0}],innerTableBlock:[{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"tableBlock"},{token:"tableBlock",regex:/^\s*|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/\!/}],macros:[{token:"macro",regex:/{[\w\-$]+}/},{token:["text","string","text","constant.character","text"],regex:/({)([\w\-$]+)(:)?(.+)?(})/},{token:["text","markup.list.macro","keyword","string"],regex:/(\w+)(footnote(?:ref)?::?)([^\s\[]+)?(\[.*?\])?/},{token:["markup.list.macro","keyword","string"],regex:/([a-zA-Z\-][\w\.\/\-]*::?)([^\s\[]+)(\[.*?\])?/},{token:["markup.list.macro","keyword"],regex:/([a-zA-Z\-][\w\.\/\-]+::?)(\[.*?\])/},{token:"keyword",regex:/^:.+?:(?= |$)/}],quotes:[{token:"string.italic",regex:/__[^_\s].*?__/},{token:"string.italic",regex:e("_")},{token:"keyword.bold",regex:/\*\*[^*\s].*?\*\*/},{token:"keyword.bold",regex:e("\\*")},{token:"literal",regex:/\+\+[^+\s].*?\+\+/},{token:"literal",regex:e("\\+")},{token:"literal",regex:/\$\$.+?\$\$/},{token:"literal",regex:e("\\$")},{token:"literal",regex:/``[^`\s].*?``/},{token:"literal",regex:e("`")},{token:"keyword",regex:/\^[^\^].*?\^/},{token:"keyword",regex:e("\\^")},{token:"keyword",regex:/~[^~].*?~/},{token:"keyword",regex:e("~")},{token:"keyword",regex:/##?/},{token:"keyword",regex:/(?:\B|^)``|\b''/}]};var t={macro:"constant.character",tableBlock:"doc.comment",titleUnderline:"markup.heading",singleLineTitle:"markup.heading",singleLineTitle2:"markup.heading2",singleLineTitle3:"markup.heading3",singleLineTitle4:"markup.heading4",singleLineTitle5:"markup.heading5",singleLineTitle6:"markup.heading6",pageBreak:"string",option:"string.regexp",otherBlock:"markup.list",literal:"support.function",optionalTitle:"constant.numeric",escape:"constant.language.escape",link:"markup.underline.list"};for(var n in this.$rules)for(var i=this.$rules[n],o=i.length;o--;){var r=i[o];if(r.include||"string"==typeof r){var a=[o,1].concat(this.$rules[r.include||r]);r.noEscape&&(a=a.filter(function(e){return!e.next})),i.splice.apply(i,a)}else r.token in t&&(r.token=t[r.token])}}).$rules);return{startState:function(){return{current:"start",plannedTokens:[]}},blankLine:function(e){a("",e)},token:a}}),e.defineMIME("text/x-asciidoc","asciidoc")},"object"==("undefined"==typeof exports?"undefined":r()(exports))&&"object"==r()(e)?i(n("8U58")):"object"==("undefined"==typeof brackets?"undefined":r()(brackets))&&brackets.getModule?i(brackets.getModule("thirdparty/CodeMirror2/lib/codemirror")):"function"==typeof define&&n("nErl")?define(["codemirror"],i):i(t)}).call(t,n("f1Eh")(e),n("8U58"))},QMmS:function(e,t,n){"use strict";t.b=function(e){return e.on("application:stores",function(e){var t;console.info("authenticationPlugin - application:stores"),console.log("authenticationPlugin - application:stores",e);var n={state:{isAuthenticated:!1,isTwoFactorCodeRequired:!1,credentials:{email:void 0,password:void 0,twoFactorCode:void 0}},mutations:(t={},o()(t,u.f,function(e,t){e.credentials.email=t}),o()(t,u.g,function(e,t){e.credentials.password=t}),o()(t,u.h,function(e,t){e.credentials.twoFactorCode=t}),o()(t,u.d,function(e){e.isLoading=!0}),o()(t,u.c,function(e,t){a.a.merge(e,t)}),o()(t,u.b,function(e,t){e.isAuthenticated=!1}),o()(t,l,function(e,t){a.a.merge(e,t.authentication)}),t),actions:o()({},u.e,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,r=e.state;i(u.d);var c={rootState:a.a.cloneDeep(o),currentState:a.a.cloneDeep(r)};n("application:loading").then(function(e){return s.a.authenticate(c)}).then(function(e){i(u.c,e.nextState)}).then(function(e){return r.isAuthenticated?n(p,!0).then(function(e){return n(u.a)}):r.isTwoFactorCodeRequired?n("application:notify",{icon:"unlock",header:"Two factor code",message:"A code is required to complete your authentication.",level:"warning"}):n("application:notify",{icon:"warning circle",header:"Authentication failed",message:"A error occured during the authentication.",level:"error"})}).then(function(e){return n("application:loaded")}).then(function(e){return t.push(t.currentRoute.query.redirect||"/")}).catch(function(e){n("application:loaded").then(function(e){return n("application:notify",{icon:"warning circle",header:"Authentication failed",message:"A error occured during the authentication.",level:"error"})})})}),getters:{}};return e.nextState.stores.authentication=n,console.log("authenticationPlugin - application:stores - return",e),e}),e.on("application:routes",function(e){return e}),e.on("application:initialize-app",function(e){return console.info("authenticationPlugin - application:initialize-app"),console.log("authenticationPlugin - application:initialize-app",e),s.a.initialize(e).then(function(e){return e})}),e.on("authentication:authenticate",function(e){return console.info("authenticationPlugin - authentication:authenticate"),console.log("authenticationPlugin - authentication:authenticate",e,s.a),s.a.authenticate(e)}),{getName:function(){return"authenticationPlugin"}}},n.d(t,"a",function(){return d});var i=n("bOdI"),o=n.n(i),r=n("M4fF"),a=n.n(r),s=n("KMrN"),c=n("RUoO"),u=n("Pm0L"),l="application:initialize-app",p="application:save-config";var d=c.a},RUoO:function(e,t,n){"use strict";var i=n("6yLl"),o=n("oS0V");var r=function(e){n("Mha6")},a=n("VU/8")(i.a,o.a,!1,r,"data-v-94154cf6",null);t.a=a.exports},RsIG:function(e,t,n){"use strict";var i=n("woOf"),o=n.n(i),r=n("LEOq"),a=n.n(r);function s(e){return a.a.fire("application:receive-config",e)}t.a={initializeRoutes:function(e){return a.a.fire("application:routes",e)},initializeApp:function(e,t){return a.a.fire("application:initialize-app",e,t)},initializePlugins:function(e,t){return a.a.fire("application:initialize-plugins",e,t)},initializeConfig:function(e){return console.log("application - initializeConfig",e),function(e){return a.a.fire("application:request-config",e)}(e).then(s)},startUpConfig:function(e){return console.log("application - startUpConfig",e),s(e)},prepareConfig:function(e){return a.a.fire("application:prepare-config",e)},saveConfig:function(e){return function(e){return console.log("application - fireRequestSaveConfig",e),a.a.fire("application:request-save-config",e)}(e).then(function(t){return o()({},e,{nextState:t.nextState.application})}).then(s).then(function(t){return e.nextState.application=t.nextState,o()({},e)}).catch(function(e){console.log(e)})},saveConfigDone:function(e){return a.a.fire("application:save-config-done",e)}}},SDLk:function(e,t,n){"use strict";var i={render:function(){this.$createElement;this._self._c;return this._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"about-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",attrs:{href:"https://twitter.com/HubPressIO",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Follow us on twitter","data-position":"bottom right"}},[n("i",{staticClass:"twitter large icon"})])]),n("a",{staticClass:"item",attrs:{href:"https://gitter.im/HubPress/hubpress.io",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Wanna chat with us?","data-position":"bottom right"}},[n("i",{staticClass:"gitter large icon"})])]),n("a",{staticClass:"item",attrs:{href:"https://github.com/HubPress",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"HubPress is opensource :)","data-position":"bottom right"}},[n("i",{staticClass:"github large icon"})])])])]),n("div",{staticClass:"about-content"},[n("div",{staticClass:"ui container"},[n("h2",{staticClass:"ui center aligned icon header"},[n("i",{staticClass:"circular users icon"}),e._v("\n The HubPress Team\n ")]),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"row"},[n("div",{staticClass:"ui items divided"},[n("div",{staticClass:"item"},[n("div",{staticClass:"image"},[n("img",{attrs:{src:"https://avatars1.githubusercontent.com/u/2006548?v=3&s=460"}})]),n("div",{staticClass:"content"},[n("a",{staticClass:"header"},[e._v("Anthonny Quérouil")]),n("div",{staticClass:"meta"},[n("span",[e._v("The creator of HubPress")])]),n("div",{staticClass:"description"},[n("p",[e._v("Anthonny is a freelance developer and the creator of HubPress")]),n("p",[e._v("He started HubPress two years ago")])]),n("div",{staticClass:"extra"},[n("a",{staticClass:"ui label",attrs:{href:"https://twitter.com/anthonny_q",target:"_blank"}},[n("i",{staticClass:"twitter icon"}),e._v(" Twitter\n ")]),n("a",{staticClass:"ui label",attrs:{href:"https://github.com/anthonny",target:"_blank"}},[n("i",{staticClass:"github icon"}),e._v(" GitHub\n ")]),n("a",{staticClass:"ui label",attrs:{href:"http://anthonnyquerouil.fr/",target:"_blank"}},[n("i",{staticClass:"home icon"}),e._v(" Website\n ")])])])]),n("div",{staticClass:"item"},[n("div",{staticClass:"image"},[n("img",{attrs:{src:"https://avatars0.githubusercontent.com/u/952793?v=3&s=460"}})]),n("div",{staticClass:"content"},[n("a",{staticClass:"header"},[e._v("Jared Morgan")]),n("div",{staticClass:"meta"},[n("span",[e._v("The Docs guy")])]),n("div",{staticClass:"description"},[n("p",[e._v("By day, Jared is a Certified Scrum Product Owner (CSPO) and Technical Writer for Ladbrokes in Brisbane, Australia.")]),n("p",[e._v("By night, he uses his craft to improve open source software products one README at a time.")]),n("p",[e._v("In between, he uses his expertise in Pinball machines and knowledge of Android beta testing to improve digital pinball apps.")])]),n("div",{staticClass:"extra"},[n("a",{staticClass:"ui label",attrs:{href:"https://twitter.com/jaredmorgs",target:"_blank"}},[n("i",{staticClass:"twitter icon"}),e._v(" Twitter\n ")]),n("a",{staticClass:"ui label",attrs:{href:"https://github.com/jaredmorgs",target:"_blank"}},[n("i",{staticClass:"github icon"}),e._v(" GitHub\n ")]),n("a",{staticClass:"ui label",attrs:{href:"http://jaredleonmorgan.net/",target:"_blank"}},[n("i",{staticClass:"home icon"}),e._v(" Website\n ")])])])])])])])])])}]};t.a=i},SHkU:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._l(e.navigation,function(t,i){return n("div",{key:t.label,staticClass:"fields"},[n("div",{staticClass:"four wide field"},[n("input",{attrs:{type:"text",placeholder:"Label",name:"navigation-label-"+i},domProps:{value:t.label}})]),n("div",{staticClass:"eleven wide field"},[n("input",{attrs:{type:"text",placeholder:"http://www.mysite.com",name:"navigation-url-"+i},domProps:{value:t.url}})]),n("div",{staticClass:"one wide field"},[n("button",{staticClass:"ui icon button",on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.remove(i)}}},[n("i",{staticClass:"trash icon"})])])])}),n("div",{staticClass:"fields"},[n("div",{staticClass:"four wide field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNav.label,expression:"newNav.label"}],attrs:{type:"text",placeholder:"Label"},domProps:{value:e.newNav.label},on:{input:function(t){t.target.composing||e.$set(e.newNav,"label",t.target.value)}}})]),n("div",{staticClass:"eleven wide field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNav.url,expression:"newNav.url"}],attrs:{type:"text",placeholder:"http://www.mysite.com"},domProps:{value:e.newNav.url},on:{input:function(t){t.target.composing||e.$set(e.newNav,"url",t.target.value)}}})]),n("div",{staticClass:"one wide field"},[n("button",{staticClass:"ui icon button",attrs:{disabled:e.isNotValid},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.add(e.newNav)}}},[n("i",{staticClass:"add icon"})])])])],2)},staticRenderFns:[]};t.a=i},SUis:function(e,t,n){"use strict";(function(e){var i=n("PJh5"),o=n.n(i),r=n("RJtx"),a=n.n(r),s=n("lYDI");t.a={name:"posts",data:function(){return{postToDelete:{},filterValue:""}},beforeCreate:function(){},beforeMount:function(){this.$store.dispatch(s.a)},beforeDestroy:function(){e(".ui.basic.modal").remove()},mounted:function(){var t=this;e(".ui.basic.modal").modal({closable:!1,onDeny:function(){},onApprove:function(){t.$store.dispatch(s.d,t.postToDelete._id)}})},methods:{status:function(e){return!e.published?"Draft":"Published"},type:function(e){return e.type.replace(/\b\w/g,function(e){return e.toUpperCase()})},publishedAt:function(e){return!!e.published&&e.published_at&&o()(e.published_at).fromNow()||""},postCoverUrl:function(e){var t=e.image||"https://hubpress.github.io/img/logo.png";return t=t.startsWith("http")?t:e.attributes.$$smap.imagesdir+"/"+e.image},getPostStatusColor:function(e){return e.original?e.original.content!==e.content?"orange":"green":"red"},displayConfirmMessage:function(t){this.postToDelete=t,e(".ui.basic.modal").modal("show")},navigateToPost:function(e){this.$router.push({name:"post",params:{id:e._id}})},newPost:function(){this.$router.push({name:"post",params:{id:a.a.v4()}})},getPostTags:function(e){return e.tags||[]},getPostAuthor:function(e){return e.author||this.$store.state.authentication.userInformations},synchronize:function(){this.$store.dispatch(s.b)}},computed:{posts:function(){var e=this.filterValue.trim();return""===e?this.$store.state.hubpress.posts:this.$store.state.hubpress.posts.filter(function(t){return t.title.toLowerCase().indexOf(e.toLowerCase())>=0||t.tags&&t.tags.filter(function(t){return t.toLowerCase().indexOf(e.toLowerCase())>=0}).length})}}}}).call(t,n("7t+N"))},SjaB:function(e,t,n){var i=n("3fVB");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("2d76ba14",i,!0,{sourceMap:!1})},T23V:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,r,a=n("pFYg"),s=n.n(a),c=n("mvHQ"),u=n.n(c),l=n("fZjL"),p=n.n(l),d=n("woOf"),f=n.n(d),h=n("Zzip"),g=n.n(h),m=n("5QVw"),v=n.n(m),b=n("//Fk"),x=n.n(b),C=n("I3G/"),w=n.n(C),y=n("unZF"),P=n("qcny"),k=n("YLfZ"),S=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=x.a))(function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,s)}c((i=i.apply(e,t||[])).next())})},_=this&&this.__generator||function(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof v.a&&(r[g.a]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=i[2&r[0]?"return":r[0]?"throw":"next"])&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[0,o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1].row{padding-top:0;padding-bottom:0}.post-editor .ui.grid.light>.row{background-color:#f5f5f5;color:#202020}.post-editor .ui.grid.light>.row .ui.header{color:#202020}.post-editor .ui.grid.light>.row a{color:#aa759f}.post-editor .ui.grid.dark>.row,.post-editor .ui.grid.dark>.row .ui.header{background-color:#3f3f3f;color:#dcdccc}.post-editor .ui.grid.dark>.row .ui.header{color:#dcdccc}.post-editor .ui.grid.dark>.row a{color:#dcdcaa}.post-editor .ui.grid{padding-top:0;padding-bottom:0;margin:0}.post-editor .ui.grid .column{padding-top:0;margin-top:0;padding-bottom:0;margin-bottom:0}.vue-codemirror.container{min-height:100%;height:100%}#asciidoc-content,#asciidoc-preview{height:calc(100vh - 47px);min-height:calc(100vh - 47px)}#asciidoc-content.is-hidden{display:none}#asciidoc-preview{overflow-y:auto;padding-top:2em;font-size:1.2em;font-family:Menlo,Monaco,Consolas,Courier New,monospace;word-wrap:break-word}#asciidoc-preview.is-iframe{padding:0}#asciidoc-preview>div{max-width:750px!important;margin:auto}#asciidoc-preview.is-iframe>div{min-width:100%;margin:auto}#asciidoc-preview.is-fullscreen{width:100%!important}#asciidoc-preview>div .ui.header{font-family:Menlo,Monaco,Consolas,Courier New,monospace}#asciidoc-preview .content pre{background-color:#dcdccc;color:#2e2e2e;padding:10px;border-radius:5px;overflow:auto}#asciidoc-preview .paragraph{padding:.75em 0}#asciidoc-preview img{width:100%;max-width:100%}@media screen and (max-width:992px){#asciidoc-content{display:block}#asciidoc-content.is-preview-visible,#asciidoc-preview{display:none}#asciidoc-preview.is-preview-visible{display:block}}.item .ui.icon .rocket.unpublish{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.cm-s-zenburn.CodeMirror .CodeMirror-gutters{background:#3f3f3f!important}.cm-s-zenburn.CodeMirror .CodeMirror-foldgutter-open,.CodeMirror-foldgutter-folded{color:#999}.cm-s-zenburn.CodeMirror .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-zenburn.CodeMirror{background-color:#3f3f3f;color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-builtin{color:#dcdccc;font-weight:700}.cm-s-zenburn.CodeMirror span.cm-comment{color:#7f9f7f}.cm-s-zenburn.CodeMirror span.cm-keyword{color:#f0dfaf;font-weight:700}.cm-s-zenburn.CodeMirror span.cm-atom{color:#bfebbf}.cm-s-zenburn.CodeMirror span.cm-def{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-variable{color:#dfaf8f}.cm-s-zenburn.CodeMirror span.cm-variable-2{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-string,.cm-s-zenburn.CodeMirror span.cm-string-2{color:#cc9393}.cm-s-zenburn.CodeMirror span.cm-number{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-tag{color:#93e0e3}.cm-s-zenburn.CodeMirror span.cm-attribute,.cm-s-zenburn.CodeMirror span.cm-property{color:#dfaf8f}.cm-s-zenburn.CodeMirror span.cm-qualifier{color:#7cb8bb}.cm-s-zenburn.CodeMirror span.cm-meta{color:#f0dfaf}.cm-s-zenburn.CodeMirror span.cm-header,.cm-s-zenburn.CodeMirror span.cm-operator{color:#f0efd0}.cm-s-zenburn.CodeMirror span.CodeMirror-matchingbracket{-webkit-box-sizing:border-box;box-sizing:border-box;background:transparent;border-bottom:1px solid}.cm-s-zenburn.CodeMirror span.CodeMirror-nonmatchingbracket{border-bottom:1px solid;background:none}.cm-s-zenburn.CodeMirror .CodeMirror-activeline,.cm-s-zenburn.CodeMirror .CodeMirror-activeline-background{background:#000}.cm-s-zenburn.CodeMirror div.CodeMirror-selected{background:#545454}.cm-s-zenburn.CodeMirror .CodeMirror-focused div.CodeMirror-selected{background:#4f4f4f}.cm-s-base16-light.CodeMirror{background:#f5f5f5;color:#202020}.cm-s-base16-light.CodeMirror div.CodeMirror-selected{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-line::selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span::selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span>span::selection{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-line::-moz-selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span::-moz-selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span>span::-moz-selection{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-gutters{background:#f5f5f5;border-right:0}.cm-s-base16-light.CodeMirror .CodeMirror-guttermarker{color:#ac4142}.cm-s-base16-light.CodeMirror .CodeMirror-guttermarker-subtle,.cm-s-base16-light.CodeMirror .CodeMirror-linenumber{color:#b0b0b0}.cm-s-base16-light.CodeMirror .CodeMirror-cursor{border-left:1px solid #505050}.cm-s-base16-light.CodeMirror span.cm-comment{color:#8f5536}.cm-s-base16-light.CodeMirror span.cm-atom,.cm-s-base16-light.CodeMirror span.cm-number{color:#aa759f}.cm-s-base16-light.CodeMirror span.cm-attribute,.cm-s-base16-light.CodeMirror span.cm-property{color:#90a959}.cm-s-base16-light.CodeMirror span.cm-keyword{color:#ac4142}.cm-s-base16-light.CodeMirror span.cm-string{color:#f4bf75}.cm-s-base16-light.CodeMirror span.cm-variable{color:#90a959}.cm-s-base16-light.CodeMirror span.cm-variable-2{color:#6a9fb5}.cm-s-base16-light.CodeMirror span.cm-def{color:#d28445}.cm-s-base16-light.CodeMirror span.cm-bracket{color:#202020}.cm-s-base16-light.CodeMirror span.cm-tag{color:#ac4142}.cm-s-base16-light.CodeMirror span.cm-link{color:#aa759f}.cm-s-base16-light.CodeMirror span.cm-error{background:#ac4142;color:#505050}.cm-s-base16-light.CodeMirror .CodeMirror-activeline-background{background:#dddcdc}.cm-s-base16-light.CodeMirror .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}",""])},THns:function(e,t,n){"use strict";t.a=function(e){console.info("PostsGenerator - generate"),console.log("PostsGenerator - generate",e);var t=e;return e.nextState.publishedPosts.forEach(function(e){t=Object(o.a)(t,e)}),t};n("APUd");var i=n("j+6P"),o=(n.n(i),n("KgKs"))},ThI1:function(e,t,n){"use strict";var i=n("oz2E"),o=n("mBSI");var r=function(e){n("yJpT")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Tknw:function(e,t,n){"use strict";var i=n("wrAo"),o=n("giiL");var r=function(e){n("xgbc")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},WRRc:function(e,t,n){"use strict";t.a={name:"nuxt-link",functional:!0,render:function(e,t){return e("router-link",t.data,t.children)}}},WiUJ:function(e,t,n){"use strict";t.a=function(e){e.on("hubpress:request-theme",function(e){console.info("templatePlugin - hubpress:request-theme"),console.log("templatePlugin - hubpress:request-theme",e);var t,n,i,r,s,u=e.rootState.application.config.theme.name.toLowerCase(),p=e.rootState.application.config;return(t=u,n=p,i=a.a.defer(),r=[],s=n.urls.hubpress,c.a.get(s+"/themes/"+t+"/theme.json?dt="+Date.now()).end(function(e,n){if(e)i.reject(e);else{var o=n.body,u=o.version,p=!1,d=!1,f=!1;if(l.a.toPairs(o.files).forEach(function(e){var n=a.a.defer();r.push(n.promise),p=p||"pagination"===e[0],d=d||"nav"===e[0],f=f||"navigation"===e[0],c.a.get(s+"/themes/"+t+"/"+e[1]+"?v="+u).end(function(t,i){t?n.reject(t):n.resolve({name:e[0],path:e[1],content:i.text})})}),!p){var h=a.a.defer();r.push(h.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/pagination.hbs").end(function(e,t){e?h.reject(e):h.resolve({name:"pagination",path:"partials/pagination",content:t.text})})}if(!d){var g=a.a.defer();r.push(g.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/nav.hbs").end(function(e,t){e?g.reject(e):g.resolve({name:"nav",path:"partials/nav",content:t.text})})}if(!f){var m=a.a.defer();r.push(m.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/navigation.hbs").end(function(e,t){e?m.reject(e):m.resolve({name:"navigation",path:"partials/navigation",content:t.text})})}a.a.all(r).then(function(e){i.resolve({version:u,files:e})}).catch(function(e){console.log(e),i.reject(e)})}}),i.promise).then(function(t){var n={name:u,files:t.files,version:t.version};b.a.registerTheme(p,n),b.a.registerFiles(n.files);var i=o()({},n);return e.nextState=o()({},e.nextState,{theme:i}),e})}),e.on("requestGenerateIndex",function(e){console.info("templatePlugin - requestGenerateIndex"),console.log("templatePlugin - requestGenerateIndex",e);var t=Object(p.a)(e);return console.log("templatePlugin - requestGenerateIndex return",t),t}),e.on("requestGeneratePost",function(e){console.info("templatePlugin - requestGeneratePost"),console.log("templatePlugin - requestGeneratePost",e);var t=Object(d.a)(e,e.nextState.post);return console.log("templatePlugin - requestGeneratePost return",t),t}),e.on("requestGeneratePosts",function(e){console.info("templatePlugin - requestGeneratePosts"),console.log("templatePlugin - requestGeneratePosts",e);var t=Object(f.a)(e);return console.log("templatePlugin - requestGeneratePosts return",t),t}),e.on("requestGeneratePages",function(e){console.info("templatePlugin - requestGeneratePages"),console.log("templatePlugin - requestGeneratePages",e);var t=Object(h.a)(e);return console.log("templatePlugin - requestGeneratePages return",t),t}),e.on("requestGenerateTags",function(e){console.info("templatePlugin - requestGenerateTags"),console.log("templatePlugin - requestGenerateTags",e);var t=Object(g.a)(e);return console.log("templatePlugin - requestGenerateTags return",t),t}),e.on("requestGenerateAuthors",function(e){console.info("templatePlugin - requestGenerateAuthors"),console.log("templatePlugin - requestGenerateAuthors",e);var t=Object(m.a)(e);return console.log("templatePlugin - requestGenerateAuthors return",t),t})};var i=n("woOf"),o=n.n(i),r=n("/Luh"),a=n.n(r),s=n("GG98"),c=n.n(s),u=n("M4fF"),l=n.n(u),p=n("e3+D"),d=n("KgKs"),f=n("THns"),h=n("BdWi"),g=n("dZ6u"),m=n("KOTd"),v=n("j+6P"),b=n.n(v)},X5n4:function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"l",function(){return r}),n.d(t,"i",function(){return a}),n.d(t,"j",function(){return s}),n.d(t,"k",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"d",function(){return l}),n.d(t,"h",function(){return p}),n.d(t,"a",function(){return d}),n.d(t,"g",function(){return f}),n.d(t,"f",function(){return h});var i="application:initialize-routes",o="application:initialize-config",r="application:save-startup-config",a="application:prepare-config",s="application:save-config",c="application:save-config-done",u="application:initialize-app",l="application:initialize-plugins",p="application:notify",d="application:close-notification",f="application:loading",h="application:loaded"},X8TR:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"post-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.showAsciidocHelp()}}},[e._m(0)]),n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchLight()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.lightLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{sun:e.isDark,moon:!e.isDark}})])]),n("a",{staticClass:"item html-preview",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreview(!1)}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.previewLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{unhide:!e.isPreviewVisible||e.isIFrame,hide:e.isPreviewVisible&&!e.isIFrame}})])]),n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreview(!0)}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.previewLabelIFrame,"data-position":"bottom right"}},[n("i",{staticClass:"large icon globe"})])]),e.isPreviewVisible?n("a",{staticClass:"item preview-resize",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreviewSize()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.resizeLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{expand:!e.isFullScreen,compress:e.isFullScreen}})])]):e._e(),e.isRemoteActionVisible?n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.remoteSave()}}},[e._m(1)]):e._e(),e.isRemoteActionVisible?n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.publish()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.publishLabel,"data-position":"bottom right"}},[n("i",{staticClass:"icons"},[n("i",{staticClass:"cloud large icon",class:{download:e.isPostPublished,upload:!e.isPostPublished}})])])]):e._e()])]),e._m(2),n("div",{staticClass:"post-editor"},[n("div",{staticClass:"ui grid",class:{dark:e.isDark,light:!e.isDark}},[n("div",{staticClass:"row"},[n("div",{staticClass:"column",class:{"sixteen wide mobile height wide computer is-preview-visible":e.isPreviewVisible,"sixteen wide":!e.isPreviewVisible,"is-hidden":e.isFullScreen},attrs:{id:"asciidoc-content"}},[n("codemirror",{ref:"codeEditor",staticClass:"container",attrs:{code:e.content,options:e.editorOption},on:{input:e.contentChange}})],1),e.isPreviewVisible?n("div",{staticClass:"column",class:{"sixteen wide mobile height wide computer is-preview-visible":e.isPreviewVisible,"is-iframe":e.isIFrame,"is-fullscreen":e.isFullScreen},attrs:{id:"asciidoc-preview"}},[n("preview",{attrs:{post:e.post,iframe:e.isIFrame}})],1):e._e()])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Need some help?","data-position":"bottom right"}},[t("i",{staticClass:"help large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Save your post remotely","data-position":"bottom right"}},[t("i",{staticClass:"save large icon"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui modal",attrs:{id:"asciidoc-help"}},[n("i",{staticClass:"close icon"}),n("div",{staticClass:"header"},[e._v("\n Asciidoc syntax help\n ")]),n("div",{staticClass:"content"},[n("table",{staticClass:"ui table"},[n("thead",[n("tr",[n("th",{staticClass:"heigth wide"},[e._v("Result")]),n("th",{staticClass:"heigth wide"},[e._v("Asciidoc")])])]),n("tbody",[n("tr",[n("td",[e._v("H1")]),n("td",[e._v("= Title")])]),n("tr",[n("td",[e._v("H2")]),n("td",[e._v("== Title")])]),n("tr",[n("td",[e._v("H3")]),n("td",[e._v("=== Title")])]),n("tr",[n("td",[n("strong",[e._v("Bold")])]),n("td",[e._v("*content*")])]),n("tr",[n("td",[n("i",[e._v("Emphasize")])]),n("td",[e._v("_content_")])]),n("tr",[n("td",[n("a",{attrs:{href:"#"}},[e._v("Link")])]),n("td",[e._v("http://asciidoctor.org[Asciidoctor]")])]),n("tr",[n("td",[e._v("Image Block")]),n("td",[e._v("image::sunset.jpg[]")])]),n("tr",[n("td",[e._v("Image Inline")]),n("td",[e._v('Click image:icons/pause.png[title="Pause"] when you need a break.')])]),n("tr",[n("td",[e._v("Video")]),n("td",[e._v("video::video_file.mp4[]")])]),n("tr",[n("td",[e._v("Unordered list")]),n("td",[e._v("* item")])]),n("tr",[n("td",[e._v("Ordered list")]),n("td",[e._v(". item")])]),n("tr",[n("td",[n("code",[e._v("Inline code")])]),n("td",[e._v("`code`")])])])]),n("p",[e._v("\n More informations about the Asciidoc syntax here: "),n("a",{attrs:{href:"http://asciidoctor.org/docs/asciidoc-syntax-quick-reference/",target:"_blank"}},[e._v("AsciiDoc Syntax Quick Reference")])])])])}]};t.a=i},XO7e:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.iframe?e._e():n("div",{staticClass:"html-rendering"},[n("h1",{staticClass:"ui header"},[e._v(e._s(e.post.title))]),n("div",{staticClass:"content",attrs:{id:"html-content"},domProps:{innerHTML:e._s(e.post.html)}})]),e.iframe?n("div",{staticClass:"iframe-rendering"},[n("iframe",{staticClass:"published-preview",attrs:{srcdoc:e.post.publishedContent,frameborder:"0"}})]):e._e()])},staticRenderFns:[]};t.a=i},XSDV:function(e,t,n){var i=n("jAb+");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("5bd01218",i,!0,{sourceMap:!1})},XkEn:function(e,t,n){var i=n("dd07");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("1ce06800",i,!0,{sourceMap:!1})},Y2j8:function(e,t,n){"use strict";var i=n("woOf"),o=(n.n(i),n("/Luh")),r=(n.n(o),n("M4fF")),a=(n.n(r),n("RJtx")),s=(n.n(a),n("Wa/L")),c=n("tCkb");s.a.plugin(c.a),window.PouchDB=s.a},YDvP:function(e,t,n){var i=n("qZPA");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("3ecfbf5a",i,!0,{sourceMap:!1})},YG9q:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),t.a=function(e){return e.on("application:routes",function(e){return console.info("applicationPlugin - application:routes"),console.log("applicationPlugin - application:routes",e),e.nextState.routes.push({id:"application",entries:[{path:"settings",name:"settings",component:s.a}]}),console.log("applicationPlugin - application:routes - return",e),e}),e.on("application:stores",function(e){var t,n;console.info("applicationPlugin - application:stores"),console.log("applicationPlugin - application:stores",e);var i={state:{isInitialized:!1,isFetching:!1,isLoading:!1,requireInitilisation:!1,notification:{icon:"save",header:"My Header",message:"A message",level:"default",isVisible:!1},routes:[],settingsTabs:[]},mutations:(t={},o()(t,a.b,function(e,t){_.merge(e,t.application)}),o()(t,a.d,function(e,t){_.merge(e,t.application)}),o()(t,a.e,function(e,t){e.routes=t}),o()(t,a.c,function(e,t){_.merge(e,t)}),o()(t,a.i,function(e,t){_.merge(e,t)}),o()(t,a.l,function(e,t){_.merge(e,t)}),o()(t,a.j,function(e,t){_.merge(e,t.application)}),o()(t,a.k,function(e,t){_.merge(e,t.application)}),o()(t,a.h,function(e,t){t.isVisible=!0,_.merge(e.notification,t)}),o()(t,a.a,function(e,t){e.notification.isVisible=!1}),o()(t,a.g,function(e,t){e.isLoading=!0}),o()(t,a.f,function(e,t){e.isLoading=!1}),t),actions:(n={},o()(n,a.c,function(e){var t=e.commit,n=e.rootState,i=e.state,o={rootState:_.cloneDeep(n),currentState:_.cloneDeep(i)};return r.a.initializeConfig(o).then(function(e){t(a.c,e.nextState)})}),o()(n,a.b,function(e){var t=e.commit,n=e.rootState,i=(e.state,{rootState:_.cloneDeep(n),currentState:_.cloneDeep(n)});return r.a.initializeApp(i).then(function(e){console.log("helllllllo",e),t(a.b,e.nextState)})}),o()(n,a.d,function(e){var t=e.commit,n=e.rootState,i=(e.state,{rootState:_.cloneDeep(n),currentState:_.cloneDeep(n)});return r.a.initializePlugins(i).then(function(e){e.nextState.application.isInitialized=!0,t(a.d,e.nextState)})}),o()(n,a.i,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,s=e.state,c={rootState:_.cloneDeep(o),currentState:_.cloneDeep(s),nextState:_.cloneDeep(s),payload:{formData:t}};return c.currentState.isLoading=!0,c.nextState.isLoading=!0,n(a.g).then(function(e){return r.a.prepareConfig(c)}).then(function(e){return i(a.i,e.nextState),n(a.j)})}),o()(n,a.l,function(e,t){e.dispatch;var n=e.commit,i=e.rootState,o=e.state,s={rootState:_.cloneDeep(i),currentState:_.cloneDeep(o),nextState:_.cloneDeep(o)};return s.nextState.config.meta.username=t.username,s.nextState.config.meta.repositoryName=t.repositoryName,s.nextState.config.meta.branch=t.branch,s.nextState.config.meta.cname=t.cname,s.nextState.requireInitilisation=!1,r.a.startUpConfig(s).then(function(e){n(a.l,e.nextState)})}),o()(n,a.j,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,s=(e.state,{rootState:_.cloneDeep(o),currentState:_.cloneDeep(o),nextState:_.cloneDeep(o)});return console.log(s),r.a.saveConfig(s).then(function(e){if(console.log("testsettesse",e),i(a.j,e.nextState),!t)return n(a.k)})}),o()(n,a.k,function(e){var t=e.dispatch,n=e.commit,i=e.rootState,o=(e.state,{rootState:_.cloneDeep(i),currentState:_.cloneDeep(i),nextState:_.cloneDeep(i)});return r.a.saveConfigDone(o).then(function(e){n(a.k,e.nextState)}).then(function(e){return t("application:loaded")}).then(function(e){return t("application:notify",{icon:"save",header:"Settings saved",message:"Your settings have been saved and your blog was rebuild with success. ",level:"success"})})}),o()(n,a.h,function(e,t){e.dispatch;var n=e.commit;e.rootState,e.state,n(a.h,t)}),o()(n,a.a,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.a)}),o()(n,a.g,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.g)}),o()(n,a.f,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.f)}),n),getters:{navigations:function(e){return e.routes.filter(function(e){return e.label})}}};return e.nextState.stores.application=i,console.log("applicationPlugin - application:stores - return",e),e}),e.on("application:prepare-config",function(e){return console.info("applicationPlugin - application:prepare-config"),console.log("applicationPlugin - application:prepare-config",e),e.nextState.config.meta.cname=e.payload.formData.get("application-cname"),console.log("applicationPlugin - application:prepare-config - return",e),e}),e.on("application:save-config",function(e){return console.info("applicationPlugin - application:save-config"),console.log("applicationPlugin - application:save-config",e),console.log("applicationPlugin - application:save-config - return",e),e}),{getName:function(){return"applicationPlugin"}}};var i=n("bOdI"),o=n.n(i),r=n("RsIG"),a=n("X5n4"),s=n("kMyt"),c={APPLICATION_PREPARE_CONFIG:a.i}},YLfZ:function(e,t,n){"use strict";t.a=function(e,t){var n=e.options.data||x;if(!t&&e.options.hasAsyncData)return;e.options.hasAsyncData=!0,e.options.data=function(){var i=n.call(this);return this.$ssrContext&&(t=this.$ssrContext.asyncData[e.cid]),m()({},i,t)},e._Ctor&&e._Ctor.options&&(e._Ctor.options.data=e.options.data)},t.l=C,t.e=w,t.f=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],e.matched.map(function(e,n){return h()(e.instances).map(function(i){return t&&t.push(n),e.instances[i]})}))},t.c=y,t.k=P,n.d(t,"h",function(){return _}),n.d(t,"m",function(){return R}),t.i=function e(t,n){if(!t.length||n._redirected||n._errored)return d.a.resolve();return q(t[0],n).then(function(){return e(t.slice(1),n)})},t.j=q,t.d=function(e,t){var n=window.location.pathname;if("hash"===t)return window.location.hash.replace(/^#\//,"");e&&0===n.indexOf(e)&&(n=n.slice(e.length));return(n||"/")+window.location.search+window.location.hash},t.b=function(e,t){return function(e){for(var t=new Array(e.length),n=0;n1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],e.matched.map(function(e,n){return h()(e.components).map(function(i){return t&&t.push(n),e.components[i]})}))}function y(e,t){return Array.prototype.concat.apply([],e.matched.map(function(e,n){return h()(e.components).map(function(i){return t(e.components[i],e.instances[i],e,i,n)})}))}function P(e){var t,n=this;return d.a.all(y(e,(t=l()(c.a.mark(function e(t,i,o,r){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof t||t.options){e.next=4;break}return e.next=3,t();case 3:t=e.sent;case 4:return e.abrupt("return",o.components[r]=C(t));case 5:case"end":return e.stop()}},e,n)})),function(e,n,i,o){return t.apply(this,arguments)})))}window._nuxtReadyCbs=[],window.onNuxtReady=function(e){window._nuxtReadyCbs.push(e)};var k,S,_=(k=l()(c.a.mark(function e(t){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P(t);case 2:return e.abrupt("return",m()({},t,{meta:w(t).map(function(e){return e.options.meta||{}})}));case 3:case"end":return e.stop()}},e,this)})),function(e){return k.apply(this,arguments)}),R=(S=l()(c.a.mark(function e(t,n){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n.to?n.to:n.route,t.context){e.next=14;break}e.t0=!0,e.t1=t,e.t2=t.store,e.t3=n.payload,e.t4=n.error,e.t5={hubpressVersion:"1.0.0",baseUrl:"http://localhost:3000"},t.context={get isServer(){return console.warn("context.isServer has been deprecated, please use process.server instead."),!1},get isClient(){return console.warn("context.isClient has been deprecated, please use process.client instead."),!0},isStatic:e.t0,isDev:!1,isHMR:!1,app:e.t1,store:e.t2,payload:e.t3,error:e.t4,base:"..",env:e.t5},n.req&&(t.context.req=n.req),n.res&&(t.context.res=n.res),t.context.redirect=function(e,n,i){if(e){t.context._redirected=!0;var o=void 0===n?"undefined":a()(n);if("number"==typeof e||"undefined"!==o&&"object"!==o||(i=n||{},o=void 0===(n=e)?"undefined":a()(n),e=302),"object"===o&&(n=t.router.resolve(n).href),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(n))throw n=L(n,i),window.location.replace(n),new Error("ERR_REDIRECT");t.context.next({path:n,query:i,status:e})}},t.context.nuxtState=window.__NUXT__;case 14:if(t.context.next=n.next,t.context._redirected=!1,t.context._errored=!1,t.context.isHMR=!!n.isHMR,!n.route){e.next=22;break}return e.next=21,_(n.route);case 21:t.context.route=e.sent;case 22:if(t.context.params=t.context.route.params||{},t.context.query=t.context.route.query||{},!n.from){e.next=28;break}return e.next=27,_(n.from);case 27:t.context.from=e.sent;case 28:case"end":return e.stop()}},e,this)})),function(e,t){return S.apply(this,arguments)});function q(e,t){var n=void 0;return(n=2===e.length?new d.a(function(n){e(t,function(e,i){e&&t.error(e),n(i=i||{})})}):e(t))&&(n instanceof d.a||"function"==typeof n.then)||(n=d.a.resolve(n)),n}var M=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function $(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function D(e){return e.replace(/([.+*?=^!:()[\]|\/\\])/g,"\\$1")}function j(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function L(e,t){var n=void 0,i=e.indexOf("://");-1!==i?(n=e.substring(0,i),e=e.substring(i+3)):0===e.indexOf("//")&&(e=e.substring(2));var r=e.split("/"),a=(n?n+"://":"//")+r.shift(),s=r.filter(Boolean).join("/"),c=void 0;return 2===(r=s.split("#")).length&&(s=r[0],c=r[1]),a+=s?"/"+s:"",t&&"{}"!==o()(t)&&(a+=(2===e.split("?").length?"&":"?")+function(e){return h()(e).sort().map(function(t){var n=e[t];return null==n?"":Array.isArray(n)?n.slice().map(function(e){return[t,"=",e].join("")}).join("&"):t+"="+n}).filter(Boolean).join("&")}(t)),a+=c?"#"+c:""}},YMuy:function(e,t,n){"use strict";var i=n("6Ndi"),o=n("PJh5"),r=n.n(o);function a(e){return i.a.fireRequestRemoteSynchronization(e).then(function(e){return i.a.fireReceiveRemoteSynchronization(e)}).then(function(e){return i.a.fireRequestRenderingDocuments(e)}).then(function(e){return i.a.fireReceiveRenderingDocuments(e)}).then(function(e){return i.a.fireRequestLocalSynchronization(e)}).then(function(e){return i.a.fireReceiveLocalSynchronization(e)}).then(function(e){return i.a.fireRequestLocalPosts(e)}).then(function(e){return i.a.fireReceiveLocalPosts(e)}).then(function(e){return localStorage.setItem("hubpress:sync",r()().format()),e})}t.a={initialize:function(e){return i.a.fireRequestTheme(e).then(function(e){return i.a.fireReceiveTheme(e)}).then(function(e){return localStorage.getItem("hubpress:sync")?i.a.fireRequestLocalPosts(e).then(function(e){return i.a.fireReceiveLocalPosts(e)}):a(e)})},synchronize:a}},"bN/m":function(e,t,n){"use strict";function i(e,t){var n=void 0;return e.cname&&""!==e.cname?n=(!1===t?"":"http:")+"//"+e.cname:(n=(!1===t?"":"https:")+"//"+e.username+".github.io","master"!==e.branch&&(n=n+"/"+e.repositoryName)),n}function o(e,t){var n=e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"/$1/$2/$3/$4.html");return"page"===t&&(n=e.replace(/([\w-]*)\.adoc/,"/$1.html")),n}function r(e,t){var n=e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"$1/$2/$3/$4.html");return"page"===t&&(n=e.replace(/([\w-]*)\.adoc/,"$1.html")),n}function a(e){return e.match(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/)?"post":"page"}t.a=function(e){return{site:i(e.meta),hubpress:function(e,t){var n=t.protocol+"//"+t.host;if("localhost"===t.hostname)return n;t.host===e.username+".github.io"||t.host===e.username+".github.com"?"master"!==e.branch&&(n=n+"/"+e.repositoryName):"master"===e.branch||e.cname&&""!==e.cname||(n=n+"/"+e.repositoryName);return n}(e.meta,window.location),theme:i(e.meta,!1)+"/themes/"+e.theme.name,images:i(e.meta)+"/images",getContentUrl:o,getContentGhPath:r,getContentType:a,getPostUrl:function(e){return e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"/$1/$2/$3/$4.html")},getPostGhPath:function(e){return e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"$1/$2/$3/$4.html")},getPageUrl:function(e){return e.replace(/([\w-]*)\.adoc/,"/$1.html")},getPageGhPath:function(e){return e.replace(/([\w-]*)\.adoc/,"$1.html")},getSiteUrl:i}}},bxJ0:function(e,t,n){"use strict";t.a=function(e){e.on("application:request-config",function(e){return console.info("githubPlugin - application:request-config"),console.log("githubPlugin - application:request-config",e),l()("config.json?dt="+Date.now()).then(function(e){return e.json()}).then(function(t){return e.nextState.config=a()({},e.nextState.config,t),e.nextState.config.theme.name=e.nextState.config.theme.name.toLowerCase(),e})}),e.on("application:receive-config",function(e){console.info("githubPlugin - application:receive-config"),console.log("githubPlugin - application:receive-config",e);var t=Object(w.a)(e.nextState.config);return e.nextState.config=a()({},e.nextState.config,{urls:t}),e}),e.on("requestAuthentication",function(e){return console.info("githubPlugin - requestAuthentication"),console.log("githubPlugin - requestAuthentication",e),function(e){console.log("githubPlugin - login",e);var t=m.a.defer(),n=e.nextState.credentials,i=e.rootState.application.config.meta,o=(q=new h.a({auth:"basic",username:n.email,password:n.password,twoFactorCode:n.twoFactorCode})).getRepo(i.username,i.repositoryName),r=q.getAuthorization(),a=q.getUser(),s=void 0,c=void 0;return function(e){var t=m.a.defer();return e.getDetails(function(e,n){e?t.reject(e):t.resolve(n)}),t.promise}(o).then(function(e){s=e}).then(S(a)).then(function(e){return c=e,function(e){var t=m.a.defer();return console.log("getAuthorizations",e),e.listAuthorizations({},function(e,n){e?t.reject(e):(console.log("getAuthorizations list",n),t.resolve(n))}),t.promise}(r)}).then(function(e){return function(e,t,n){var i=m.a.defer(),o=-1,r=_(e);return t.forEach(function(e){e.note===r&&(o=e.id)}),-1!==o?n.deleteAuthorization(o,function(e,t){e?i.reject(e):i.resolve()}):i.resolve(),i.promise}(i.repositoryName,e,r)}).then(function(){return R(i.repositoryName,r)}).then(function(e){q=new h.a({auth:"oauth",token:e.token}),t.resolve({isAuthenticated:!0,credentials:{token:e.token},permissions:s.permissions,userInformations:c})}).catch(function(e){console.error("githubPlugin - login error",e,e.response);var n,o={type:"error",title:"Authentication"};e.response&&(n="required"===(e.response.headers&&e.response.headers["x-github-otp"]||"").split(";")[0]),n?(R(i.repositoryName,r),console.log("githubPlugin - OTP required : ",n),o.type="warning",o.content="A two-factor authentication code is needed.",o.otp=!0,t.resolve({isAuthenticated:!1,isTwoFactorCodeRequired:!0})):(console.error("githubPlugin - login error",e),t.reject({error:{code:e.error,message:"Unable to authenticate, check your credentials."}}))}),t.promise}(e).then(function(t){var n=a()({},e.nextState.credentials,t.credentials);return e.nextState=a()({},e.nextState,t,{credentials:n}),e})}),e.on("receiveSavedAuth",function(e){return console.info("githubPlugin - receiveSavedAuth"),console.log("githubPlugin - receiveSavedAuth",e),e.nextState.authentication.isAuthenticated&&(q=new h.a({auth:"oauth",token:e.nextState.authentication.credentials.token})),e}),e.on("hubpress:request-remote-synchronization",function(e){return console.info("githubPlugin - hubpress:request-remote-synchronization"),console.log("githubPlugin - hubpress:request-remote-synchronization",e),e.rootState.authentication.isAuthenticated?function(e){var t=e.application.config;console.log("Get posts",t);var n=t.meta,i=q.getRepo(n.username,n.repositoryName);return function(e,t){var n=m.a.defer();return e.getContents(t.meta.branch,"",!0,function(e,t){if(e)n.reject(e);else{var i=void 0;t.forEach(function(e){"_posts"===e.name&&(i=e.sha)}),n.resolve(i)}}),n.promise}(i,t).then(function(e){return function(e,t,n){var i=void 0;if(n===localStorage.postsSha)i=m.a.fcall(function(){return[]});else{var o=m.a.defer();e.getContents(t.meta.branch,"_posts",!0,function(e,t){e?o.reject(e):o.resolve(t)}),i=o.promise}return i}(i,t,e)}).then(function(e){return e.map(function(e){return b.a.pick(e,["name","path","sha","size"])})}).then(function(e){return function(e,t,n){var i=b.a.compact(n).map(function(e){return function(e,t){var n=m.a.defer(),i=e.meta,o=q.getRepo(i.username,i.repositoryName),r=e.urls.getContentType(t.name);return o.getSha(e.meta.branch,e.urls.getContentGhPath(t.name,r),function(e,i){if(e&&e.response&&404!==e.response.status)n.reject(e);else{var o=i?1:0,r=a()({},t,{published:o});n.resolve(r)}}),n.promise}(t,e)});return m.a.all(i)}(0,t,e)}).then(function(n){return function(e,t,n,i){var o=n.map(function(e){return M(t,e,i)});return m.a.all(o)}(0,t,n,e.authentication.userInformations)}).then(function(e){return function(e,t,n){var i=[];return n.forEach(function(n){var o=m.a.defer();i.push(o.promise),e.getContents(t.meta.branch,n.path,!0,function(e,t){var i;e?o.reject(e):(i=a()({},n,{content:t}),o.resolve(i))})}),m.a.all(i)}(i,t,e)})}(e.rootState).then(function(t){return e.nextState=a()({},e.nextState,{posts:t}),e}):e}),e.on("requestSaveRemotePost",function(e){console.info("githubPlugin - requestSaveRemotePost"),console.log("githubPlugin - requestSaveRemotePost",e);var t=e.rootState.application.config,n=e.nextState.post;return function(e,t){var n=e.meta,i=q.getRepo(n.username,n.repositoryName),o=void 0;if(t.original&&t.name!==t.original.name){var r=m.a.defer();o=r.promise;var a=e.meta.branch,s="_posts/"+t.original.name,c="_posts/"+t.name;i.move(a,s,c,function(n,o){if(n)r.reject(n);else if(t.published){var s=e.urls.getContentGhPath(t.original.name,t.original.type);(function(e,t,n){return function(e,t,n){var i=m.a.defer();return e.deleteFile(t,n,function(e,t){e?i.reject(e):(console.error(t),k=t.commit,i.resolve(t))}),i.promise}(e,t,n)})(i,a,s).then(function(e){r.resolve({post:t,sha:e})}).catch(function(e){r.reject(e)}).done()}else r.resolve({post:t,sha:o})})}else o=m()({post:t});return o}(t,n).then(function(e){return function(e,t){console.log("Write post",e,t);var n=e.meta,i=q.getRepo(n.username,n.repositoryName),o=n.branch,r="_posts/"+t.name,a="Update "+t.name,s=m.a.defer();return i.writeFile(o,r,t.content,a,function(n,i){n?s.reject(n):(t.original=b.a.omit(t,["original"]),t.original.url=e.urls.getContentUrl(t.original.name,t.original.type),t.original.path="_posts/"+t.original.name,t.original.sha=i,k=i.commit,console.info("Update lastCacheCommit",k),s.resolve(t))}),s.promise}(t,e.post)}).then(function(n){return M(t,n,e.rootState.authentication.userInformations)}).then(function(t){return e.nextState.post=t,e})}),e.on("requestSaveRemotePublishedElements",function(e){console.info("githubPlugin - requestSaveRemotePublishedElements"),console.log("githubPlugin - requestSaveRemotePublishedElements",e);var t=e.rootState.application.config.meta,n=q.getRepo(t.username,t.repositoryName),i=e.nextState.elementsToPublish.length,o=b.a.chunk(e.nextState.elementsToPublish,P);console.log("Writeall",e.nextState.elementsToPublish);var r=m.a.defer();return n.getBranch(t.branch,function(a,s){if(a){var c=m.a.defer();return r=c.promise,c.reject(a)}var u=0,l=o.reduce(function(e,o){return e.then(function(e){var r=m.a.defer(),a=o.map(function(e){return{path:e.path,mode:"100644",type:"blob",content:e.content}});return n.createTree(a,e,function(a,s){if(a)return r.reject(a);n.commit(e,s.sha,"Published "+(u+o.length)+"/"+i+" elements",function(e,i){if(e)return r.reject(e);u+=o.length,k=i,n.updateHead("heads/"+t.branch,i.sha,!1,function(e,t){if(console.log("updateHead",e,t),e)return r.reject(e);r.resolve(i.sha)})})}),r.promise})},m()(function(e,t){if(console.error(e,t),!t)return e.sha;var n=C()(e.committer.date);return C()(t.committer.date).isAfter(n)?t.sha:e.sha}({committer:s.commit.commit.committer,sha:s.commit.sha},k)));l.then(function(t){r.resolve(e)}).catch(function(e){r.reject(e)})}),r.promise}),e.on("requestDeleteRemotePost",function(e){console.info("githubPlugin - requestDeleteRemotePost"),console.log("githubPlugin - requestDeleteRemotePost",e);var t=m.a.defer(),n=e.rootState.application.config,i=n.meta,o=q.getRepo(i.username,i.repositoryName),r=e.nextState.post.original.path;return o.deleteFile(i.branch,r,function(n,i){n&&n.response&&404!==n.response.status?t.reject(n):(console.error("requestDeleteRemotePost",i),k=i.commit,t.resolve(e))}).catch(function(n){n&&n.response&&404===n.response.status&&t.resolve(e)}),t.promise}),e.on("requestDeleteRemotePublishedPost",function(e){console.info("githubPlugin - requestDeleteRemotePublishedPost"),console.log("githubPlugin - requestDeleteRemotePublishedPost",e);var t=m.a.defer(),n=e.rootState.application.config,i=n.meta,o=q.getRepo(i.username,i.repositoryName),r=n.urls.getContentGhPath(e.nextState.post.original.name,e.nextState.post.original.type);return o.deleteFile(i.branch,r,function(n,i){n?t.reject(n):(console.error("requestDeleteRemotePublishedPost",i),k=i.commit,t.resolve(e))}),t.promise}),e.on("application:request-save-config",function(e){console.info("githubPlugin - application:request-save-config"),console.log("githubPlugin - application:request-save-config",e);var t=e.nextState.application;return function(e){console.log("Write config",e);var t=m.a.defer(),n=e.meta,i=q.getRepo(n.username,n.repositoryName),r=n.branch;return i.writeFile(r,"hubpress/config.json",o()(e,null,2),"Update configuration file",function(e,n){e?t.reject(e):(k=n.commit,console.info("Update lastCacheCommit",k),t.resolve(n))}),t.promise}(t.config).then(function(e){return function(e){console.log("Github manageCname - ",e);var t=e.meta,n=q.getRepo(t.username,t.repositoryName),i=m.a.defer();t.cname&&""!==t.cname?(console.info("SettingsService - saveAndPublish save CNAME"),n.writeFile(t.branch,"CNAME",t.cname,"Update CNAME with "+t.cname,function(e,t){e?i.reject(e):(k=t.commit,console.info("Update lastCacheCommit",k),i.resolve(t))})):(console.info("SettingsService - saveAndPublish delete CNAME"),n.deleteFile(t.branch,"CNAME",function(e,t){e&&"not found"!==e?i.reject(e):i.resolve(t)}).then(function(e){console.log("SHA after delete",e),i.resolve(e)}).catch(function(e){404!==e.response.status?i.reject(e):i.resolve()}));return i.promise}(t.config)}).then(function(t){return e})}),e.on("receiveRenderingPost",function(e){return console.info("githubPlugin - receiveRenderingPost"),console.log("githubPlugin - receiveRenderingPost",e),e}),e.on("application:initialize-plugins",function(e){console.info("githubPlugin - application:initialize-plugins"),console.log("githubPlugin - application:initialize-plugins",e);var t="put your repository name here"===e.rootState.application.config.meta.repositoryName||"put your username here"===e.rootState.application.config.meta.username;return e.nextState.application.requireInitilisation=t,e.nextState.application.config.initialisationConfigComponent=y.a,e})};var i=n("mvHQ"),o=n.n(i),r=n("woOf"),a=n.n(r),s=n("6ltY"),c=n.n(s),u=n("j9g7"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=n("73D8"),h=n.n(f),g=n("/Luh"),m=n.n(g),v=n("M4fF"),b=n.n(v),x=n("PJh5"),C=n.n(x),w=n("bN/m"),y=n("IBrK"),P=50,k=null;function S(e){return function(){var t=m.a.defer();return e.getProfile(function(e,n){e?t.reject(e):t.resolve(b.a.pick(n,["login","id","name","location","blog","avatar_url","bio"]))}),t.promise}}function _(e){return d()(e+"-"+c.a.name+"-"+c.a.os)}function R(e,t){var n=m.a.defer(),i={scopes:["public_repo"],note:_(e)};return t.createAuthorization(i,function(e,t){e?n.reject(e):n.resolve(t)}),n.promise}var q=void 0;function M(e,t,n){var i=m.a.defer(),o=e.meta,r=q.getRepo(o.username,o.repositoryName);return console.log("getPostAuthor",t),r.listCommits({sha:e.meta.branch,path:t.original&&t.original.path||t.path},function(e,o){if(e&&404!==e.error)i.reject(e);else{var r=o[o.length-1].author;if(r&&r.login!==n.login){S(q.getUser(r.login))().then(function(e){r=a()({},e);var n=a()({},t,{author:r});i.resolve(n)}).catch(function(e){return i.reject(e)})}else{r=a()({},n);var s=a()({},t,{author:r});i.resolve(s)}}}),i.promise}},cOI0:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,'.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,.5)}.cm-animate-fat-cursor,.cm-fat-cursor-mark{-webkit-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;background-color:#7e7}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;-webkit-font-feature-settings:"calt";font-feature-settings:"calt";font-variant-ligatures:contextual}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-webkit-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}',""])},cmzl:function(e,t,n){"use strict";var i={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"nuxt-progress",style:{width:this.percent+"%",height:this.height,"background-color":this.canSuccess?this.color:this.failedColor,opacity:this.show?1:0}})},staticRenderFns:[]};t.a=i},ct3O:function(e,t,n){"use strict";var i=n("FIB3"),o=n("FdPX");var r=function(e){n("wGIl")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},"d/OL":function(e,t,n){"use strict";t.a=function(e){e.on("hubpress:request-rendering-documents",function(e){console.info("asciidocPlugin - hubpress:request-rendering-documents"),console.log("asciidocPlugin - hubpress:request-rendering-documents",e);var t=e.rootState.application.config,n=(e.nextState.posts||[]).map(function(e){var n=o()({},e,h(t,e.content),{content:e.content}),i=c.a.pick(n,"attributes","author","html","tags","content","name","path","sha");n.title=i.title=i.attributes.doctitle,n.image=i.image=i.attributes["hp-image"],n.type=i.type=i.attributes["hp-type"],n.tags=i.tags=g(i.attributes),n.url=i.url=m(t,n.type,i.name);var r=o()({},n,{original:i});return n.type&&"post"!==n.type||(r.original.published_at=r.published_at=i.name.split("-").slice(0,3).join("-")),r});return e.nextState.posts=n,e}),e.on("requestRenderingPost",function(e){console.info("asciidocPlugin - requestRenderingPost"),console.log("asciidocPlugin - requestRenderingPost",e);var t=h(e.rootState.application.config,e.nextState.post.content);e.nextState.post=o()({},e.nextState.post,t),e.nextState.post.title=t.attributes.doctitle,e.nextState.post.image=t.attributes["hp-image"],e.nextState.post.type=t.attributes["hp-type"],e.nextState.post.tags=g(t.attributes),e.nextState.post.published_at=t.attributes.published_at||e.nextState.post.published_at||l()().format("YYYY-MM-DD");var n=t.attributes["hp-alt-title"];return e.nextState.post.type&&"post"!==e.nextState.post.type?e.nextState.post.name=d()(""+(n||e.nextState.post.title))+".adoc":e.nextState.post.name=d()(e.nextState.post.published_at+"-"+(n||e.nextState.post.title))+".adoc",e.nextState.post.url=m(e.rootState.application.config,e.nextState.post.type,e.nextState.post.name),e})};var i=n("woOf"),o=n.n(i),r=n("rzLr"),a=n.n(r),s=n("M4fF"),c=n.n(s),u=n("PJh5"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=a()(!1,window.XMLHttpRequest);function h(e,t){var n={doctype:"article",backend:"html5",safe:"unsafe",attributes:["showtitle!","allow-uri-read","imagesdir="+e.urls.site+"/images","icons=font"]},i=function(e){var t=e.split("pass::[more]");return{excerpt:t[0],full:t.join("")}}(t.replace(/gist::([0-9]*)\[(lines=[0-9]*\.\.[0-9]*)?,?(type=([\w.]*))?,?(file=([\w.]*))?\]/g,"[source,$4]\n----\ninclude::https://gist.githubusercontent.com/raw/$1/$6[$2]\n----\n")),o=f.load(i.excerpt,n),r=f.load(i.full,n);return{attributes:r.getAttributes(),excerpt:o.$convert(),html:r.$convert()}}function g(e){return e["hp-tags"]&&e["hp-tags"].split(",").map(function(e){return e.trim()}).filter(function(e){return""!==e})}function m(e,t,n){return e.urls.getContentUrl(n,t)}},dCDI:function(e,t,n){"use strict";(function(e,t){var i,o=n("pFYg"),r=n.n(o);i=function(e){var t;(t=e).overlayMode=function(e,n,i){return{startState:function(){return{base:t.startState(e),overlay:t.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(i){return{base:t.copyState(e,i.base),overlay:t.copyState(n,i.overlay),basePos:i.basePos,baseCur:null,overlayPos:i.overlayPos,overlayCur:null}},token:function(t,o){return(t!=o.streamSeen||Math.min(o.basePos,o.overlayPos)"},redirect:"/dashboard",meta:{auth:!0},children:t.nextState.routes.map(function(e){return console.log(e),e.entries}).reduce(function(e,t){return e.concat(t)},[])}]},i=new r.default(n);return i.routes=t.nextState.routes,i.beforeEach(function(e,t,n){var i=Object(a.default)();e.matched.some(function(e){return e.meta.auth})?i.state.authentication.isAuthenticated?n():n({path:"/login",query:{redirect:e.fullPath}}):n()}),i};var i=n("I3G/"),o=n.n(i),r=n("/ocq"),a=n("fbRD"),s=n("LEOq"),c=n.n(s),u=(n("7cn8"),n("YG9q")),l=n("QMmS"),p=n("3oxy"),d=n("H8Oa"),f=n("bxJ0"),h=n("WiUJ"),g=n("H1PK"),m=n("d/OL"),v=(n("Y2j8"),n("1AqL")),b=n("tLh+");console.log("router =============="),console.log("Router"),o.a.use(r.default),c.a.register(u.a,l.b,p.a,d.a,f.a,h.a,g.a,m.a,v.a,b.a),console.log("Registered plugins",c.a.list())},oS0V:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui center aligned grid"},[n("div",{staticClass:"ui middle aligned grid"},[e.requireInitilisation?n("div",{staticClass:"column"},[n("div",{staticClass:"ui segment"},[n("initialisation-component",{tag:"component"})],1)]):e._e(),e.requireInitilisation?e._e():n("div",{staticClass:"column",attrs:{id:"loginForm"}},[n("div",{staticClass:"ui segment"},[n("img",{staticClass:"image",attrs:{src:"https://hubpress.github.io/img/freeze/logo.png"}}),n("h2",{staticClass:"ui header"},[e._v("\n Welcome!\n ")]),n("div",{staticClass:"content"}),n("form",{staticClass:"ui medium form",on:{submit:function(t){t.preventDefault(),e.login({email:e.email,password:e.password})}}},[n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"user icon"}),n("input",{attrs:{type:"text",name:"email",placeholder:"Username or e-mail address"},domProps:{value:e.email},on:{input:e.updateEmail}})])]),n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"lock icon"}),n("input",{attrs:{type:"password",name:"password",placeholder:"Password"},domProps:{value:e.password},on:{input:e.updatePassword}})])]),e.isTwoFactorCodeRequired?n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"key icon"}),n("input",{attrs:{type:"text",name:"twoFactorCode",placeholder:"Two factor code"},domProps:{value:e.twoFactorCode},on:{input:e.updateTwoFactorCode}})])]):e._e(),n("button",{staticClass:"ui fluid large submit button",attrs:{type:"submit",name:"button"}},[e._v("Login")])]),e._m(0)])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui message"},[this._v("\n If you have questions about how to use HubPress, "),t("a",{attrs:{href:"https://hubpress.gitbooks.io/hubpress-knowledgebase/content/"}},[this._v("here is the right place.")])])}]};t.a=i},oz2E:function(e,t,n){"use strict";t.a={name:"dashboard",beforeCreate:function(){console.log("dashboard beforeCreate")},created:function(){console.log("dashboard created")}}},pSdL:function(e,t,n){var i=n("LnjV");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("2e903ce0",i,!0,{sourceMap:!1})},pyJH:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{},[n("h4",{staticClass:"ui dividing header"},[e._v("Informations")]),n("div",{staticClass:"field"},[n("label",[e._v("Title")]),n("input",{attrs:{type:"text",name:"hubpress-title",placeholder:"Title"},domProps:{value:e.site.title}})]),n("div",{staticClass:"field"},[n("label",[e._v("Description")]),n("input",{attrs:{type:"text",name:"hubpress-description",placeholder:"Description"},domProps:{value:e.site.description}})]),n("div",{staticClass:"field"},[n("label",[e._v("Logo")]),n("input",{attrs:{type:"text",name:"hubpress-logo",placeholder:"Logo"},domProps:{value:e.site.logo}})]),n("div",{staticClass:"field"},[n("label",[e._v("Cover image")]),n("input",{attrs:{type:"text",name:"hubpress-cover-image",placeholder:"Cover image"},domProps:{value:e.site.cover}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Rendering")]),n("div",{staticClass:"field"},[n("label",[e._v("Live preview render delay (ms)")]),n("input",{attrs:{type:"text",name:"hubpress-render-delay",placeholder:"300"},domProps:{value:e.meta.delay}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Generation")]),n("div",{staticClass:"field"},[n("label",[e._v("Theme")]),n("input",{attrs:{type:"text",name:"hubpress-theme",placeholder:"Theme"},domProps:{value:e.theme.name}})]),n("div",{staticClass:"field"},[n("label",[e._v("Posts per page")]),n("input",{attrs:{type:"text",name:"hubpress-posts-per-page",placeholder:"Posts per page"},domProps:{value:e.site.postsPerPage}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Services")]),n("div",{staticClass:"field"},[n("label",[e._v("Google analytics")]),n("input",{attrs:{type:"text",name:"hubpress-ga",placeholder:"Google analytics"},domProps:{value:e.site.googleAnalytics}})]),n("div",{staticClass:"field"},[n("label",[e._v("Disqus shortname")]),n("input",{attrs:{type:"text",name:"hubpress-disqus",placeholder:"Disqus shortname"},domProps:{value:e.site.disqus}})])])},staticRenderFns:[]};t.a=i},qZPA:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".html-rendering,.published-preview{min-width:100%;height:calc(100vh - 47px);min-height:calc(100vh - 47px)}",""])},qcny:function(e,t,n){"use strict";n.d(t,"b",function(){return D});var i=n("Xxa5"),o=n.n(i),r=n("//Fk"),a=(n.n(r),n("C4MV")),s=n.n(a),c=n("woOf"),u=n.n(c),l=n("Dd8w"),p=n.n(l),d=n("exGp"),f=n.n(d),h=n("MU8w"),g=(n.n(h),n("I3G/")),m=n.n(g),v=n("p3jY"),b=n.n(v),x=n("mtxM"),C=n("0F0d"),w=n("HBB+"),y=n("WRRc"),P=n("ct3O"),k=n("Hot+"),S=n("yTq1"),_=n("YLfZ"),R=n("J2Ti"),q=n("zQW4"),M=n("6hdJ");n.d(t,"a",function(){return P.a});var $,D=($=f()(o.a.mark(function e(t){var n,i,r,a,c,l,d;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(x.a)(t),(i=Object(R.a)(t)).$router=n,r=p()({router:n,store:i,nuxt:{defaultTransition:j,transitions:[j],setTransitions:function(e){return Array.isArray(e)||(e=[e]),e=e.map(function(e){return e=e?"string"==typeof e?u()({},j,{name:e}):u()({},j,e):j}),this.$options.nuxt.transitions=e,e},err:null,dateErr:null,error:function(e){e=e||null,r.context._errored=!!e,"string"==typeof e&&(e={statusCode:500,message:e});var n=this.nuxt||this.$options.nuxt;return n.dateErr=Date.now(),n.err=e,t&&(t.nuxt.error=e),e}}},S.a),i.app=r,a=t?t.next:function(e){return r.router.push(e)},c=void 0,t?c=n.resolve(t.url).route:(l=Object(_.d)(n.options.base),c=n.resolve(l).route),e.next=10,Object(_.m)(r,{route:c,next:a,error:r.nuxt.error.bind(r),store:i,payload:t?t.payload:void 0,req:t?t.req:void 0,res:t?t.res:void 0,beforeRenderFns:t?t.beforeRenderFns:void 0});case 10:if(d=function(e,t){if(!e)throw new Error("inject(key, value) has no key provided");if(!t)throw new Error("inject(key, value) has no value provided");r[e="$"+e]=t,i[e]=r[e];var n="__nuxt_"+e+"_installed__";m.a[n]||(m.a[n]=!0,m.a.use(function(){m.a.prototype.hasOwnProperty(e)||s()(m.a.prototype,e,{get:function(){return this.$root.$options[e]}})}))},window.__NUXT__&&window.__NUXT__.state&&i.replaceState(window.__NUXT__.state),"function"!=typeof q.a){e.next=15;break}return e.next=15,Object(q.a)(r.context,d);case 15:if("function"!=typeof M.a){e.next=18;break}return e.next=18,Object(M.a)(r.context,d);case 18:e.next=21;break;case 21:return e.abrupt("return",{app:r,router:n,store:i});case 22:case"end":return e.stop()}},e,this)})),function(e){return $.apply(this,arguments)});m.a.component(C.a.name,C.a),m.a.component(w.a.name,w.a),m.a.component(y.a.name,y.a),m.a.component(k.a.name,k.a),m.a.use(b.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var j={name:"page",mode:"out-in",appear:!0,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"}},r6qT:function(e,t,n){var i=n("HEYa");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("2b9275f1",i,!0,{sourceMap:!1})},"tLh+":function(e,t,n){"use strict";t.a=function(e){e.on("requestGenerateIndex",function(e){console.info("rssPlugin - requestGenerateIndex"),console.log("rssPlugin - requestGenerateIndex",e);var t=e.rootState.application.config.site||{},n=e.rootState.application.config.urls.site||"",i=e.nextState.publishedPosts||[],r=new o.a({title:t.title||"",description:t.description||"",feed_url:n+"/rss/",site_url:n,image_url:t.cover,ttl:"60"});i.forEach(function(e){r.item({title:e.title,description:e.html,url:""+n+e.url,categories:e.tags,author:e.author.name,date:e.published_at})});var a=r.xml(),s=[];return s.push({name:"RSS",path:"rss/index.xml",content:a,message:"Publish rss feed"}),e.nextState.elementsToPublish=(e.nextState.elementsToPublish||[]).concat(s),e})};var i=n("DVIz"),o=n.n(i)},unZF:function(e,t,n){"use strict";var i=n("BO1k"),o=n.n(i),r=n("GfDd"),a=r.keys();function s(e){var t=r(e);return t.default?t.default:t}var c={},u=!0,l=!1,p=void 0;try{for(var d,f=o()(a);!(u=(d=f.next()).done);u=!0){var h=d.value;c[h.replace(/^\.\//,"").replace(/\.(js|ts)$/,"")]=s(h)}}catch(e){l=!0,p=e}finally{try{!u&&f.return&&f.return()}finally{if(l)throw p}}t.a=c},vKgl:function(e,t,n){var i=n("EgsU");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("44921a73",i,!0,{sourceMap:!1})},vXEZ:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".nuxt-progress{position:fixed;top:0;left:0;right:0;height:2px;width:0;-webkit-transition:width .2s,opacity .4s;transition:width .2s,opacity .4s;opacity:1;background-color:#efc14e;z-index:999999}",""])},wGIl:function(e,t,n){var i=n("m8kW");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("6bc7b368",i,!0,{sourceMap:!1})},wQtD:function(e,t,n){"use strict";t.a={name:"navigation-settings",data:function(){return{newNav:{label:"",url:""},navigation:this.$store.state.application.config.navigation||[]}},computed:{isNotValid:function(){return""===this.newNav.label.trim()||""===this.newNav.url.trim()}},methods:{remove:function(e){this.navigation.splice(e,1)},clear:function(){this.newNav={label:"",url:""}},add:function(e){this.navigation.push(e),this.clear()}}}},wrAo:function(e,t,n){"use strict";t.a={name:"hubpress-settings-social",computed:{social:function(){return this.$store.state.application.config.socialnetwork||{}}}}},xgbc:function(e,t,n){var i=n("y4OV");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("0c6dd1d8",i,!0,{sourceMap:!1})},y4OV:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"",""])},yJpT:function(e,t,n){var i=n("j9sj");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("33615082",i,!0,{sourceMap:!1})},yTq1:function(e,t,n){"use strict";var i=n("//Fk"),o=n.n(i),r=n("I3G/"),a=n.n(r),s=n("F88d"),c=n("XSDV"),u=(n.n(c),{_default:function(){return n.e(0).then(n.bind(null,"Ma2J")).then(function(e){return e.default||e})}}),l={};t.a={head:{title:"Hubpress: A web application to build your Blog",meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{hid:"description",name:"description",content:"Nuxt.js project"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"},{rel:"stylesheet",href:"../static/semantic/semantic.min.css"}],style:[],script:[]},render:function(e,t){var n=e("nuxt-loading",{ref:"loading"}),i=e(this.layout||"nuxt");return e("div",{domProps:{id:"__nuxt"}},[n,e("transition",{props:{name:"layout",mode:"out-in"}},[e("div",{domProps:{id:"__layout"},key:this.layoutName},[i])])])},data:function(){return{layout:null,layoutName:""}},beforeCreate:function(){a.a.util.defineReactive(this,"nuxt",this.$options.nuxt)},created:function(){a.a.prototype.$nuxt=this,"undefined"!=typeof window&&(window.$nuxt=this),this.error=this.nuxt.error},mounted:function(){this.$loading=this.$refs.loading},watch:{"nuxt.err":"errorChanged"},methods:{errorChanged:function(){this.nuxt.err&&this.$loading&&(this.$loading.fail&&this.$loading.fail(),this.$loading.finish&&this.$loading.finish())},setLayout:function(e){e&&l["_"+e]||(e="default"),this.layoutName=e;var t="_"+e;return this.layout=l[t],this.layout},loadLayout:function(e){var t=this;e&&(u["_"+e]||l["_"+e])||(e="default");var n="_"+e;return l[n]?o.a.resolve(l[n]):u[n]().then(function(e){return l[n]=e,delete u[n],l[n]}).catch(function(e){if(t.$nuxt)return t.$nuxt.error({statusCode:500,message:e.message})})}},components:{NuxtLoading:s.a}}},yUYC:function(e,t,n){"use strict";var i=n("I3G/"),o=n.n(i);t.a={name:"nuxt-loading",data:function(){return{percent:0,show:!1,canSuccess:!0,duration:5e3,height:"2px",color:"#3B8070",failedColor:"red"}},methods:{start:function(){var e=this;return this.show=!0,this.canSuccess=!0,this._timer&&(clearInterval(this._timer),this.percent=0),this._cut=1e4/Math.floor(this.duration),this._timer=setInterval(function(){e.increase(e._cut*Math.random()),e.percent>95&&e.finish()},100),this},set:function(e){return this.show=!0,this.canSuccess=!0,this.percent=Math.floor(e),this},get:function(){return Math.floor(this.percent)},increase:function(e){return this.percent=this.percent+Math.floor(e),this},decrease:function(e){return this.percent=this.percent-Math.floor(e),this},finish:function(){return this.percent=100,this.hide(),this},pause:function(){return clearInterval(this._timer),this},hide:function(){var e=this;return clearInterval(this._timer),this._timer=null,setTimeout(function(){e.show=!1,o.a.nextTick(function(){setTimeout(function(){e.percent=0},200)})},500),this},fail:function(){return this.canSuccess=!1,this}}}},ys1n:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".grid[data-v-94154cf6]{margin:0;height:100%;background-color:#dadada}#loginForm.column[data-v-94154cf6]{max-width:450px;text-align:center}.column[data-v-94154cf6]{max-width:750px}",""])},zQW4:function(e,t,n){"use strict";for(var i=n("woOf"),o=n.n(i),r=n("//Fk"),a=n.n(r),s=n("BO1k"),c=n.n(s),u=n("mtWM"),l=n.n(u),p={setHeader:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",i=!0,o=!1,r=void 0;try{for(var a,s=c()(Array.isArray(n)?n:[n]);!(i=(a=s.next()).done);i=!0){var u=a.value;if(!t)return void delete this.defaults.headers[u][e];this.defaults.headers[u][e]=t}}catch(e){o=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw r}}},setToken:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",i=e?(t?t+" ":"")+e:null;this.setHeader("Authorization",i,n)},onRequest:function(e){this.interceptors.request.use(function(t){return e(t)||t})},onResponse:function(e){this.interceptors.response.use(function(t){return e(t)||t})},onRequestError:function(e){this.interceptors.request.use(void 0,function(t){return e(t)||a.a.reject(t)})},onResponseError:function(e){this.interceptors.response.use(void 0,function(t){return e(t)||a.a.reject(t)})},onError:function(e){this.onRequestError(e),this.onResponseError(e)}},d=function(e){p["$"+e]=function(){return this[e].apply(this,arguments).then(function(e){return e&&e.data})}},f=["request","delete","get","head","options","post","put","patch"],h=0;h1&&(r=(e.path||"")+"page/"+o+"/index.html"),o>1&&(v=o-1),oo-1||g+1===t.length){var w=l.a.template(e.template,{pagination:{prev:v,next:m,page:o,pages:h,total:t.length,limit:u},context:"index"===e.template&&0===v?"home":e.template,posts:a,tag:e.tag,author:e.author,title:i.title,description:i.description,socialnetwork:p,relativeUrl:""},{config:n,theme:e.opts.nextState.theme});s.push({name:"page-"+o,path:r,content:w,message:"Publish page-"+o+" "+e.template}),a=[],o++}}),e.opts.nextState.elementsToPublish=(e.opts.nextState.elementsToPublish||[]).concat(s),e.opts}}]),e}();t.a=new f},BdWi:function(e,t,n){"use strict";t.a=function(e){console.info("PagesGenerator - generate"),console.log("PagesGenerator - generate",e);var t=e;return e.nextState.publishedPages.forEach(function(e){t=Object(o.a)(t,e)}),t};n("APUd");var i=n("j+6P"),o=(n.n(i),n("KgKs"))},E1SC:function(e,t,n){"use strict";var i=n("SUis"),o=n("7Fxy");var r=function(e){n("vKgl")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},EgsU:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".posts-container .menu{min-height:47px}.posts-container{height:100%;overflow:auto}.posts.ui.container{padding-top:60px}.image.cover>div{width:100%;height:200px;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}@media screen and (max-width:622px){.posts.ui.container .ui.card .image.cover{display:none}}",""])},F6eF:function(e,t,n){"use strict";var i=n("7t+N"),o=n.n(i);t.a={name:"initialise-configuration",data:function(){return{username:"",repositoryName:"hubpress.io",branch:"master",cname:void 0}},mounted:function(){o()("div.dropdown").dropdown()},computed:{isValid:function(){return""!=this.username.trim()&&""!=this.repositoryName.trim()}},methods:{submit:function(){var e={username:this.username,repositoryName:this.repositoryName,branch:this.branch,cname:this.cname};this.$store.dispatch("application:save-startup-config",e)}}}},F88d:function(e,t,n){"use strict";var i=n("yUYC"),o=n("cmzl");var r=function(e){n("0xYM")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},FIB3:function(e,t,n){"use strict";t.a={name:"nuxt-error",props:["error"],head:function(){return{title:this.message,meta:[{name:"viewport",content:"width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"}]}},computed:{statusCode:function(){return this.error&&this.error.statusCode||500},message:function(){return this.error.message||"Error"}}}},FdPX:function(e,t,n){"use strict";var i={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"__nuxt-error-page"},[t("div",{staticClass:"error"},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"90",height:"90",fill:"#DBE1EC",viewBox:"0 0 48 48"}},[t("path",{attrs:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}})]),t("div",{staticClass:"title"},[this._v(this._s(this.message))]),404===this.statusCode?t("p",{staticClass:"description"},[t("nuxt-link",{staticClass:"error-link",attrs:{to:"/"}},[this._v("Back to the home page")])],1):this._e(),this._m(0)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"logo"},[t("a",{attrs:{href:"https://nuxtjs.org",target:"_blank",rel:"noopener"}},[this._v("Nuxt.js")])])}]};t.a=i},FoP8:function(module,__webpack_exports__,__webpack_require__){"use strict";function applyScript(hasChanged){if(hasChanged){for(var element=document.getElementById("html-content"),scripts=element.getElementsByTagName("script"),addedScripts=[],i=0;i.menu[data-v-0536f20d]{height:47px}",""])},HUXV:function(e,t,n){"use strict";var i=n("6Ndi");t.a={refreshAfterSavedConfig:function(e){return i.a.fireRequestTheme(e).then(function(t){return i.a.fireReceiveTheme(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return console.time("Build content"),e}).then(function(e){return i.a.fireRequestGenerateIndex(e)}).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGeneratePosts(e)}).then(function(e){return i.a.fireReceiveGeneratePosts(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)}).then(function(e){return i.a.fireRequestLocalPublishedPages(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPages(e)}).then(function(e){return i.a.fireRequestGeneratePages(e)}).then(function(e){return i.a.fireReceiveGeneratePages(e)}).then(function(e){return console.timeEnd("Build content"),e}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})}}},"Hot+":function(e,t,n){"use strict";var i=n("I3G/"),o=n.n(i),r=n("HBB+"),a=n("ct3O"),s=n("YLfZ");t.a={name:"nuxt",props:["nuxtChildKey","keepAlive"],render:function(e){return this.nuxt.err?e("nuxt-error",{props:{error:this.nuxt.err}}):e("nuxt-child",{key:this.routerViewKey,props:this.$props})},beforeCreate:function(){o.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(s.b)(this.$route.matched[0].path)(this.$route.params);var e=this.$route.matched[0]&&this.$route.matched[0].components.default;return e&&e.options&&e.options.key?"function"==typeof e.options.key?e.options.key(this.$route):e.options.key:this.$route.path}},components:{NuxtChild:r.a,NuxtError:a.a}}},IBrK:function(e,t,n){"use strict";var i=n("F6eF"),o=n("N3Gg");var r=function(e){n("XkEn")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Ie2b:function(e,t){},Irdm:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"settings-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.submit(t)}}},[e._m(0)])])]),n("div",{staticClass:"ui container settings-content"},[e._m(1),n("div",{staticClass:"ui divider"}),n("form",{staticClass:"ui form",attrs:{id:"mainForm"}},[n("div",{staticClass:"ui secondary pointing menu"},[n("div",{staticClass:"item active",attrs:{"data-tab":"application",id:"application-tab"}},[e._v("Application")]),e._l(e.tabs,function(t){return n("div",{key:t.id,staticClass:"item",attrs:{"data-tab":t.id}},[e._v(e._s(t.label))])})],2),n("div",{staticClass:"ui bottom attached tab segment active",attrs:{"data-tab":"application"}},[n("h4",{staticClass:"ui dividing header"},[e._v("Domain")]),n("div",{staticClass:"field"},[n("label",[e._v("CNAME")]),n("input",{attrs:{type:"text",name:"application-cname",placeholder:"CNAME"},domProps:{value:e.config.meta.cname}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Metadata (set in config.json)")]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub username")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-username",placeholder:"Github username"},domProps:{value:e.config.meta.username}})]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub repository name")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-repository-name",placeholder:"GitHub repository name"},domProps:{value:e.config.meta.repositoryName}})]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub branch")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-branch",placeholder:"GitHub branch"},domProps:{value:e.config.meta.branch}})]),e._m(2)]),e._l(e.tabs,function(e){return n("div",{key:e.id,staticClass:"ui bottom attached tab segment ",attrs:{"data-tab":e.id}},[n(e.id,{tag:"component"})],1)})],2)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Save your settings","data-position":"bottom right"}},[t("i",{staticClass:"save large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"ui center aligned icon header"},[t("i",{staticClass:"circular settings icon"}),this._v("\n Settings\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"disabled field"},[t("label",[this._v("Blog URL")]),t("input",{attrs:{type:"text",disabled:"",name:"application-blog-url",placeholder:"Blog URL"}})])}]};t.a=i},J2Ti:function(e,t,n){"use strict";n.d(t,"a",function(){return y});var i=n("woOf"),o=n.n(i),r=n("BO1k"),a=n.n(r),s=n("I3G/"),c=n.n(s),u=n("NYxO");c.a.use(u.default);var l=n("1H2/"),p=l.keys(),d={},f=void 0;if(p.forEach(function(e){-1!==e.indexOf("./index.")&&(f=e)}),f&&(d=P(f)),"function"!=typeof d){d.modules||(d.modules={});var h=!0,g=!1,m=void 0;try{for(var v,b=a()(p);!(h=(v=b.next()).done);h=!0){var x=v.value,C=x.replace(/^\.\//,"").replace(/\.(js|ts)$/,"");if("index"!==C){var w=C.split(/\//);(e=k(d,w))[C=w.pop()]=P(x),e[C].namespaced=!0}}}catch(e){g=!0,m=e}finally{try{!h&&b.return&&b.return()}finally{if(g)throw m}}}var y=d instanceof Function?d:function(){return new u.default.Store(o()({strict:!1},d,{state:d.state instanceof Function?d.state():{}}))};function P(e){var t=l(e),n=t.default||t;if(n.commit)throw new Error("[nuxt] store/"+e.replace("./","")+" should export a method which returns a Vuex instance.");if(n.state&&"function"!=typeof n.state)throw new Error("[nuxt] state should be a function in store/"+e.replace("./",""));return n}function k(e,t){if(1===t.length)return e.modules;var n=t.shift();return e.modules[n]=e.modules[n]||{},e.modules[n].namespaced=!0,e.modules[n].modules=e.modules[n].modules||{},k(e.modules[n],t)}},JtYm:function(e,t,n){"use strict";var i=n("6Ndi");function o(e){return i.a.fireRequestLocalPosts(e).then(function(e){return i.a.fireReceiveLocalPosts(e)})}t.a={deletePost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=t,e}).then(function(e){return e.nextState.post.original?i.a.fireRequestDeleteRemotePost(e).then(function(e){return i.a.fireReceiveDeleteRemotePost(e)}):e}).then(function(e){return i.a.fireRequestDeleteLocalPost(e)}).then(function(e){return i.a.fireReceiveDeleteLocalPost(e)}).then(function(e){return e.nextState.post.published?i.a.fireRequestDeleteRemotePublishedPost(e).then(function(e){return i.a.fireReceiveDeleteRemotePublishedPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return i.a.fireRequestGenerateIndex(e)}).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)}):e}).then(o)},getLocalPost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)})},getLocalPosts:o,remoteSavePost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){return i.a.fireRequestSaveRemotePost(e)}).then(function(e){return i.a.fireReceiveSaveRemotePost(e)}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)})},renderAndSavePost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){return e.nextState.post.content=e.payload.post.content,e}).then(function(e){return i.a.fireRequestRenderingPost(e)}).then(function(e){return i.a.fireReceiveRenderingPost(e)}).then(function(e){return e.nextState.post&&e.nextState.post.title?i.a.fireRequestSaveLocalPost(e).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}):e}).then(function(e){var t=e.nextState.post.original;return e.nextState.post.original=e.nextState.post,e.nextState.post.original.author=e.nextState.post.original.author||e.rootState.authentication.userInformations,i.a.fireRequestGeneratePost(e).then(function(e){return i.a.fireReceiveGeneratePost(e)}).then(function(e){var n=e.nextState.elementsToPublish[0]||{};return e.nextState.post.publishedContent=n.content,e.nextState.post.original=t,e})})},publishPost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=_.union(e.nextState.post.tags,t),e}).then(function(e){return i.a.fireRequestSaveRemotePost(e)}).then(function(e){return i.a.fireReceiveSaveRemotePost(e)}).then(function(e){return e.nextState.post.original.author=e.nextState.post.original.author||e.nextState.post.author,e.nextState.post.published=1,e}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return i.a.fireRequestGeneratePost(e)}).then(function(e){return i.a.fireReceiveGeneratePost(e)}).then(function(e){return"post"!==e.nextState.post.type?e:i.a.fireRequestGenerateIndex(e).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)})}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})},unpublishPost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=t,e}).then(function(e){return i.a.fireRequestDeleteRemotePublishedPost(e)}).then(function(e){return i.a.fireReceiveDeleteRemotePublishedPost(e)}).then(function(e){return e.nextState.post.published=0,e}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return"post"!==e.nextState.post.type?e:i.a.fireRequestGenerateIndex(e).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)})}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})}}},KMrN:function(e,t,n){"use strict";var i=n("LEOq"),o=n.n(i);t.a={authenticate:function(e){return function(e){return o.a.fire("requestAuthentication",e)}(e).then(function(e){return(t=e).nextState.twoFactorRequired?payload:o.a.fire("receiveAuthentication",t);var t})},initialize:function(e){return function(e){return o.a.fire("requestSavedAuth",e)}(e).then(function(e){return t=e,o.a.fire("receiveSavedAuth",t);var t})}}},KOTd:function(e,t,n){"use strict";t.a=function(e){console.info("AuthorGenerator - generate"),console.log("AuthorGenerator - generate",e);var t=void 0;if(!s.a.isTemplateAvailable("author"))return e;t=e.nextState.author?e.nextState.publishedPosts.filter(function(t){return t.author.login===e.nextState.author.login}):e.nextState.publishedPosts;var n=r.a.reduce(t,function(e,t){return e[t.author.login]=e[t.author.login]||[],e[t.author.login].push(t),e},{}),o=e;return r.a.each(n,function(e,t){var n=e[0].author;n.name=n.name||n.login,n.slug=t,n.website=n.blog,n.status="",o=i.a.generate({opts:o,posts:e,author:n,template:"author",path:"author/"+t+"/"})}),o};var i=n("APUd"),o=n("M4fF"),r=n.n(o),a=n("j+6P"),s=n.n(a),c=n("n+xr");n.n(c)},KgKs:function(e,t,n){"use strict";t.a=function(e,t){console.info("PostGenerator - generate"),console.log("PostGenerator - generate",e);var n=t,i=o()({},n.original);i.tags=a.a.map(i.tags,function(e){return{name:e,slug:l()(e)}});var r=i.author;i.author={id:r.id,name:r.name||r.login,location:r.location,website:r.blog,image:r.avatar_url,profile_image:r.avatar_url,bio:r.bio,status:"",slug:r.login};var s=e.rootState.application.config,u=s.urls;e.nextState.theme.name,e.nextState.theme.version,s.urls.theme;i.urls=u,i.status="published",i.feature_image=i.image;var p=c.a.template(n.type||"post",{context:n.type||"post",socialnetwork:s.socialnetwork,relativeUrl:n.url,post:i,author:i.author},{config:s,theme:e.nextState.theme}),d=[];return d.push({title:n.title,image:n.image,name:n.name,path:s.urls.getContentGhPath(n.name,n.type),url:s.urls.getContentGhPath(n.name,n.type),content:p,message:"Publish "+n.name,published_at:n.published_at}),e.nextState.elementsToPublish=(e.nextState.elementsToPublish||[]).concat(d),e};var i=n("woOf"),o=n.n(i),r=n("M4fF"),a=n.n(r),s=n("j+6P"),c=n.n(s),u=n("n+xr"),l=n.n(u)},LB67:function(e,t,n){"use strict";var i=n("6Ndi");t.a={authenticate:function(e){return i.a.fireRequestAuthentication(e).then(function(e){return i.a.fireReceiveAuthentication(e)})}}},LnjV:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"",""])},MHN4:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".about-content{padding-top:60px}",""])},Mha6:function(e,t,n){var i=n("ys1n");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("4942fa76",i,!0,{sourceMap:!1})},N3Gg:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"initialise-configuration"},[e._m(0),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"content"},[e._v("\n We need to initialize your configuration before a first use.\n ")]),n("div",{staticClass:"ui divider"}),n("form",{staticClass:"ui form",attrs:{id:"configurationForm"},on:{submit:function(t){t.preventDefault(),e.submit()}}},[n("div",{staticClass:"required field"},[n("label",[e._v("Username")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.username,expression:"username"}],attrs:{type:"text",name:"configuration-username",placeholder:"Your github username"},domProps:{value:e.username},on:{input:function(t){t.target.composing||(e.username=t.target.value)}}})]),n("div",{staticClass:"required field"},[n("label",[e._v("Repository name")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.repositoryName,expression:"repositoryName"}],attrs:{type:"text",name:"configuration-cname",placeholder:"The name of your repository"},domProps:{value:e.repositoryName},on:{input:function(t){t.target.composing||(e.repositoryName=t.target.value)}}})]),n("div",{staticClass:"required field"},[n("label",[e._v("Branch")]),n("div",{staticClass:"ui selection dropdown"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.branch,expression:"branch"}],attrs:{type:"hidden",name:"branch"},domProps:{value:e.branch},on:{input:function(t){t.target.composing||(e.branch=t.target.value)}}}),n("i",{staticClass:"dropdown icon"}),n("div",{staticClass:"default text"},[e._v("master")]),e._m(1)])]),n("div",{staticClass:"field"},[n("label",[e._v("Domain name")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.cname,expression:"cname"}],attrs:{type:"text",name:"configuration-cname",placeholder:"Your domain name if you have one"},domProps:{value:e.cname},on:{input:function(t){t.target.composing||(e.cname=t.target.value)}}})]),n("button",{staticClass:"ui fluid large submit button",attrs:{type:"submit",name:"button",disabled:!e.isValid}},[e._v("Ok, let's go!")])]),e._m(2)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"ui center aligned icon header"},[t("i",{staticClass:"circular configure icon"}),this._v("\n Configuration\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"menu"},[t("div",{staticClass:"item",attrs:{"data-value":"master"}},[this._v("master")]),t("div",{staticClass:"item",attrs:{"data-value":"gh-pages"}},[this._v("gh-pages")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui message"},[this._v("\n If you have questions about how to use HubPress, "),t("a",{attrs:{href:"https://hubpress.gitbooks.io/hubpress-knowledgebase/content/"}},[this._v("here is the right place.")])])}]};t.a=i},NpFX:function(e,t,n){"use strict";var i=n("FoP8"),o=n("XO7e");var r=function(e){n("YDvP")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Pm0L:function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"f",function(){return o}),n.d(t,"g",function(){return r}),n.d(t,"h",function(){return a}),n.d(t,"d",function(){return s}),n.d(t,"c",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"a",function(){return l});var i="login:submit",o="login:updateEmail",r="login:updatePassword",a="login:updateTwoFactorCode",s="authorisation:request-login",c="authorisation:receive-login",u="authorisation:failure-login",l="authorisation:authentication-done"},Q7NK:function(e,t,n){"use strict";(function(e,t){var i,o=n("pFYg"),r=n.n(o);i=function(e){e.defineMode("asciidoc",function(e,t){var n=1e3,i=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],i=[],o=0,r=this.matchMappings[t]={defaultToken:"text"},a="g",s=[],c=0;c1?this.$applyToken:u.token);p>1&&(/\\\d/.test(u.regex)?l=u.regex.replace(/\\([0-9]+)/g,function(e,t){return"\\"+(parseInt(t,10)+o+1)}):(p=1,l=this.removeCapturingGroups(u.regex)),u.splitRegex||"string"==typeof u.token||s.push(u)),r[o]=c,o+=p,i.push(l),u.onMatch||(u.onMatch=null)}}s.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)},this),this.regExps[t]=new RegExp("("+i.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(e){n=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var i=[],o=0,r=n.length;ol){var m=e.substring(l,g-h.length);p.type==d?p.value+=m:(p.type&&u.push(p),p={type:d,value:m})}for(var v=0;vn){for(;l1&&i[0]!==o&&i.unshift(o),{tokens:u,state:i.length?i:o}}}).call(i.prototype);var o={empty:null,text:null,keyword:"keyword",control:"keyword",operator:"operator",constant:"atom",numeric:"number",character:"atom",escape:"atom",variable:"variable",parameter:"variable-3",language:"variable-2",comment:"comment",line:"comment","double-slash":"comment","double-dash":"comment","number-sign":"comment",percentage:"comment",block:"comment",doc:"comment",string:"string",quoted:"string",single:"string",double:"string",triple:"string",unquoted:"string",interpolated:"string",regexp:"string-2",meta:"keyword",literal:"qualifier",support:"builtin",markup:"tag",underline:"link",link:"link",strong:"strong",heading:"header",heading2:"header-2",heading3:"header-3",heading4:"header-4",heading5:"header-5",heading6:"header-6",em:"em",list:"variable-2",numbered:"variable-2",unnumbered:"variable-2",quote:"quote",raw:"variable-2",invalid:"error",illegal:"invalidchar",deprecated:"error"},r=function(e,t){var n=t.plannedTokens.shift();return void 0===n?null:(e.match(n.value),function(e){for(var t=null,n=0;n0)return r(e,t);var n=t.current,i=e.match(/.*$/,!1)[0],o=s.getLineTokens(i,n);return t.plannedTokens=o.tokens,t.current=o.state,r(e,t)},s=new i((new function(){function e(e){return(/\w/.test(e)?"\\b":"(?:\\B|^)")+e+"[^"+e+"].*?"+e+"(?![\\w*])"}this.$rules={start:[{token:"empty",regex:/$/},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"literal",regex:/^-{4,}\s*$/,next:"literalBlock"},{token:"literal",regex:/^\+{4,}\s*$/,next:"passthroughBlock"},{token:"keyword",regex:/^={4,}\s*$/},{token:"text",regex:/^\s*$/},{token:"empty",regex:"",next:"dissallowDelimitedBlock"}],dissallowDelimitedBlock:[{include:"paragraphEnd"},{token:"comment",regex:"^//.+$"},{token:"keyword",regex:"^(?:NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s"},{include:"listStart"},{token:"literal",regex:/^\s+.+$/,next:"indentedBlock"},{token:"empty",regex:"",next:"text"}],paragraphEnd:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"commentBlock"},{token:"tableBlock",regex:/^\s*[|!]=+\s*$/,next:"tableBlock"},{token:"keyword",regex:/^(?:--|''')\s*$/,next:"start"},{token:"option",regex:/^\[.*\]\s*$/,next:"start"},{token:"pageBreak",regex:/^>{3,}$/,next:"start"},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"titleUnderline",regex:/^(?:={2,}|-{2,}|~{2,}|\^{2,}|\+{2,})\s*$/,next:"start"},{token:"singleLineTitle",regex:/^={1}\s+\S.*$/,next:"start"},{token:"singleLineTitle2",regex:/^={2}\s+\S.*$/,next:"start"},{token:"singleLineTitle3",regex:/^={3}\s+\S.*$/,next:"start"},{token:"singleLineTitle4",regex:/^={4}\s+\S.*$/,next:"start"},{token:"singleLineTitle5",regex:/^={5}\s+\S.*$/,next:"start"},{token:"singleLineTitle6",regex:/^={6}\s+\S.*$/,next:"start"},{token:"otherBlock",regex:/^(?:\*{2,}|_{2,})\s*$/,next:"start"},{token:"optionalTitle",regex:/^\.[^.\s].+$/,next:"start"}],listStart:[{token:"keyword",regex:/^\s*(?:\d+\.|[a-zA-Z]\.|[ixvmIXVM]+\)|\*{1,5}|-|\.{1,5})\s/,next:"listText"},{token:"meta.tag",regex:/^.+(?::{2,4}|;;)(?: |$)/,next:"listText"},{token:"keyword",regex:/^\+\s*$/,next:"start"}],text:[{token:["link","link"],regex:/((?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+)(\[.*?\])/},{token:["link","link"],regex:/(?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+/},{token:"link",regex:/\b[\w\.\/\-]+@[\w\.\/\-]+\b/},{include:"macros"},{include:"paragraphEnd"},{token:"literal",regex:/\+{3,}/,next:"smallPassthrough"},{token:"escape",regex:/\((?:C|TM|R)\)|\.{3}|->|<-|=>|<=|&#(?:\d+|x[a-fA-F\d]+);|(?: |^)--(?=\s+\S)/},{token:"escape",regex:/\\[_*'`+#]|\\{2}[_*'`+#]{2}/},{token:"keyword",regex:/\s\+$/},{token:"text",regex:"[a-zA-Z¡-￿]+\\b"},{token:["keyword","string","keyword"],regex:/(<<[\w\d\-$]+,)(.*?)(>>|$)/},{token:"keyword",regex:/<<[\w\d\-$]+,?|>>/},{token:"constant.character",regex:/\({2,3}.*?\){2,3}/},{token:"support.function.list.callout",regex:/^(?:<\d+>|\d+>|>) /,next:"text"},{token:"keyword",regex:/\[\[.+?\]\]/},{token:"support",regex:/^\[{3}[\w\d =\-]+\]{3}/},{include:"quotes"},{token:"empty",regex:/^\s*$/,next:"start"}],listText:[{include:"listStart"},{include:"text"}],indentedBlock:[{token:"literal",regex:/^[\s\w].+$/,next:"indentedBlock"},{token:"literal",regex:"",next:"start"}],listingBlock:[{token:"literal",regex:/^\.{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],literalBlock:[{token:"literal",regex:/^-{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],passthroughBlock:[{token:"literal",regex:/^\+{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:"[a-zA-Z¡-￿]+\\b|\\d+"},{include:"macros"},{token:"literal",regex:"."}],smallPassthrough:[{token:"literal",regex:/[+]{3,}/,next:"dissallowDelimitedBlock"},{token:"literal",regex:/^\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:"[a-zA-Z¡-￿]+\\b|\\d+"},{include:"macros"}],commentBlock:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"doc.comment",regex:"^.*$"}],tableBlock:[{token:"tableBlock",regex:/^\s*\|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"innerTableBlock"},{token:"tableBlock",regex:/\|/},{include:"text",noEscape:!0}],innerTableBlock:[{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"tableBlock"},{token:"tableBlock",regex:/^\s*|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/\!/}],macros:[{token:"macro",regex:/{[\w\-$]+}/},{token:["text","string","text","constant.character","text"],regex:/({)([\w\-$]+)(:)?(.+)?(})/},{token:["text","markup.list.macro","keyword","string"],regex:/(\w+)(footnote(?:ref)?::?)([^\s\[]+)?(\[.*?\])?/},{token:["markup.list.macro","keyword","string"],regex:/([a-zA-Z\-][\w\.\/\-]*::?)([^\s\[]+)(\[.*?\])?/},{token:["markup.list.macro","keyword"],regex:/([a-zA-Z\-][\w\.\/\-]+::?)(\[.*?\])/},{token:"keyword",regex:/^:.+?:(?= |$)/}],quotes:[{token:"string.italic",regex:/__[^_\s].*?__/},{token:"string.italic",regex:e("_")},{token:"keyword.bold",regex:/\*\*[^*\s].*?\*\*/},{token:"keyword.bold",regex:e("\\*")},{token:"literal",regex:/\+\+[^+\s].*?\+\+/},{token:"literal",regex:e("\\+")},{token:"literal",regex:/\$\$.+?\$\$/},{token:"literal",regex:e("\\$")},{token:"literal",regex:/``[^`\s].*?``/},{token:"literal",regex:e("`")},{token:"keyword",regex:/\^[^\^].*?\^/},{token:"keyword",regex:e("\\^")},{token:"keyword",regex:/~[^~].*?~/},{token:"keyword",regex:e("~")},{token:"keyword",regex:/##?/},{token:"keyword",regex:/(?:\B|^)``|\b''/}]};var t={macro:"constant.character",tableBlock:"doc.comment",titleUnderline:"markup.heading",singleLineTitle:"markup.heading",singleLineTitle2:"markup.heading2",singleLineTitle3:"markup.heading3",singleLineTitle4:"markup.heading4",singleLineTitle5:"markup.heading5",singleLineTitle6:"markup.heading6",pageBreak:"string",option:"string.regexp",otherBlock:"markup.list",literal:"support.function",optionalTitle:"constant.numeric",escape:"constant.language.escape",link:"markup.underline.list"};for(var n in this.$rules)for(var i=this.$rules[n],o=i.length;o--;){var r=i[o];if(r.include||"string"==typeof r){var a=[o,1].concat(this.$rules[r.include||r]);r.noEscape&&(a=a.filter(function(e){return!e.next})),i.splice.apply(i,a)}else r.token in t&&(r.token=t[r.token])}}).$rules);return{startState:function(){return{current:"start",plannedTokens:[]}},blankLine:function(e){a("",e)},token:a}}),e.defineMIME("text/x-asciidoc","asciidoc")},"object"==("undefined"==typeof exports?"undefined":r()(exports))&&"object"==r()(e)?i(n("8U58")):"object"==("undefined"==typeof brackets?"undefined":r()(brackets))&&brackets.getModule?i(brackets.getModule("thirdparty/CodeMirror2/lib/codemirror")):"function"==typeof define&&n("nErl")?define(["codemirror"],i):i(t)}).call(t,n("f1Eh")(e),n("8U58"))},QMmS:function(e,t,n){"use strict";t.b=function(e){return e.on("application:stores",function(e){var t;console.info("authenticationPlugin - application:stores"),console.log("authenticationPlugin - application:stores",e);var n={state:{isAuthenticated:!1,isTwoFactorCodeRequired:!1,credentials:{email:void 0,password:void 0,twoFactorCode:void 0}},mutations:(t={},o()(t,u.f,function(e,t){e.credentials.email=t}),o()(t,u.g,function(e,t){e.credentials.password=t}),o()(t,u.h,function(e,t){e.credentials.twoFactorCode=t}),o()(t,u.d,function(e){e.isLoading=!0}),o()(t,u.c,function(e,t){a.a.merge(e,t)}),o()(t,u.b,function(e,t){e.isAuthenticated=!1}),o()(t,l,function(e,t){a.a.merge(e,t.authentication)}),t),actions:o()({},u.e,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,r=e.state;i(u.d);var c={rootState:a.a.cloneDeep(o),currentState:a.a.cloneDeep(r)};n("application:loading").then(function(e){return s.a.authenticate(c)}).then(function(e){i(u.c,e.nextState)}).then(function(e){return r.isAuthenticated?n(p,!0).then(function(e){return n(u.a)}):r.isTwoFactorCodeRequired?n("application:notify",{icon:"unlock",header:"Two factor code",message:"A code is required to complete your authentication.",level:"warning"}):n("application:notify",{icon:"warning circle",header:"Authentication failed",message:"A error occured during the authentication.",level:"error"})}).then(function(e){return n("application:loaded")}).then(function(e){return t.push(t.currentRoute.query.redirect||"/")}).catch(function(e){n("application:loaded").then(function(e){return n("application:notify",{icon:"warning circle",header:"Authentication failed",message:"A error occured during the authentication.",level:"error"})})})}),getters:{}};return e.nextState.stores.authentication=n,console.log("authenticationPlugin - application:stores - return",e),e}),e.on("application:routes",function(e){return e}),e.on("application:initialize-app",function(e){return console.info("authenticationPlugin - application:initialize-app"),console.log("authenticationPlugin - application:initialize-app",e),s.a.initialize(e).then(function(e){return e})}),e.on("authentication:authenticate",function(e){return console.info("authenticationPlugin - authentication:authenticate"),console.log("authenticationPlugin - authentication:authenticate",e,s.a),s.a.authenticate(e)}),{getName:function(){return"authenticationPlugin"}}},n.d(t,"a",function(){return d});var i=n("bOdI"),o=n.n(i),r=n("M4fF"),a=n.n(r),s=n("KMrN"),c=n("RUoO"),u=n("Pm0L"),l="application:initialize-app",p="application:save-config";var d=c.a},RUoO:function(e,t,n){"use strict";var i=n("6yLl"),o=n("oS0V");var r=function(e){n("Mha6")},a=n("VU/8")(i.a,o.a,!1,r,"data-v-94154cf6",null);t.a=a.exports},RsIG:function(e,t,n){"use strict";var i=n("woOf"),o=n.n(i),r=n("LEOq"),a=n.n(r);function s(e){return a.a.fire("application:receive-config",e)}t.a={initializeRoutes:function(e){return a.a.fire("application:routes",e)},initializeApp:function(e,t){return a.a.fire("application:initialize-app",e,t)},initializePlugins:function(e,t){return a.a.fire("application:initialize-plugins",e,t)},initializeConfig:function(e){return console.log("application - initializeConfig",e),function(e){return a.a.fire("application:request-config",e)}(e).then(s)},startUpConfig:function(e){return console.log("application - startUpConfig",e),s(e)},prepareConfig:function(e){return a.a.fire("application:prepare-config",e)},saveConfig:function(e){return function(e){return console.log("application - fireRequestSaveConfig",e),a.a.fire("application:request-save-config",e)}(e).then(function(t){return o()({},e,{nextState:t.nextState.application})}).then(s).then(function(t){return e.nextState.application=t.nextState,o()({},e)}).catch(function(e){console.log(e)})},saveConfigDone:function(e){return a.a.fire("application:save-config-done",e)}}},SDLk:function(e,t,n){"use strict";var i={render:function(){this.$createElement;this._self._c;return this._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"about-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",attrs:{href:"https://twitter.com/HubPressIO",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Follow us on twitter","data-position":"bottom right"}},[n("i",{staticClass:"twitter large icon"})])]),n("a",{staticClass:"item",attrs:{href:"https://gitter.im/HubPress/hubpress.io",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Wanna chat with us?","data-position":"bottom right"}},[n("i",{staticClass:"gitter large icon"})])]),n("a",{staticClass:"item",attrs:{href:"https://github.com/HubPress",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"HubPress is opensource :)","data-position":"bottom right"}},[n("i",{staticClass:"github large icon"})])])])]),n("div",{staticClass:"about-content"},[n("div",{staticClass:"ui container"},[n("h2",{staticClass:"ui center aligned icon header"},[n("i",{staticClass:"circular users icon"}),e._v("\n The HubPress Team\n ")]),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"row"},[n("div",{staticClass:"ui items divided"},[n("div",{staticClass:"item"},[n("div",{staticClass:"image"},[n("img",{attrs:{src:"https://avatars1.githubusercontent.com/u/2006548?v=3&s=460"}})]),n("div",{staticClass:"content"},[n("a",{staticClass:"header"},[e._v("Anthonny Quérouil")]),n("div",{staticClass:"meta"},[n("span",[e._v("The creator of HubPress")])]),n("div",{staticClass:"description"},[n("p",[e._v("Anthonny is a freelance developer and the creator of HubPress")]),n("p",[e._v("He started HubPress two years ago")])]),n("div",{staticClass:"extra"},[n("a",{staticClass:"ui label",attrs:{href:"https://twitter.com/anthonny_q",target:"_blank"}},[n("i",{staticClass:"twitter icon"}),e._v(" Twitter\n ")]),n("a",{staticClass:"ui label",attrs:{href:"https://github.com/anthonny",target:"_blank"}},[n("i",{staticClass:"github icon"}),e._v(" GitHub\n ")]),n("a",{staticClass:"ui label",attrs:{href:"http://anthonnyquerouil.fr/",target:"_blank"}},[n("i",{staticClass:"home icon"}),e._v(" Website\n ")])])])]),n("div",{staticClass:"item"},[n("div",{staticClass:"image"},[n("img",{attrs:{src:"https://avatars0.githubusercontent.com/u/952793?v=3&s=460"}})]),n("div",{staticClass:"content"},[n("a",{staticClass:"header"},[e._v("Jared Morgan")]),n("div",{staticClass:"meta"},[n("span",[e._v("The Docs guy")])]),n("div",{staticClass:"description"},[n("p",[e._v("By day, Jared is a Certified Scrum Product Owner (CSPO) and Technical Writer for Ladbrokes in Brisbane, Australia.")]),n("p",[e._v("By night, he uses his craft to improve open source software products one README at a time.")]),n("p",[e._v("In between, he uses his expertise in Pinball machines and knowledge of Android beta testing to improve digital pinball apps.")])]),n("div",{staticClass:"extra"},[n("a",{staticClass:"ui label",attrs:{href:"https://twitter.com/jaredmorgs",target:"_blank"}},[n("i",{staticClass:"twitter icon"}),e._v(" Twitter\n ")]),n("a",{staticClass:"ui label",attrs:{href:"https://github.com/jaredmorgs",target:"_blank"}},[n("i",{staticClass:"github icon"}),e._v(" GitHub\n ")]),n("a",{staticClass:"ui label",attrs:{href:"http://jaredleonmorgan.net/",target:"_blank"}},[n("i",{staticClass:"home icon"}),e._v(" Website\n ")])])])])])])])])])}]};t.a=i},SHkU:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._l(e.navigation,function(t,i){return n("div",{key:t.label,staticClass:"fields"},[n("div",{staticClass:"four wide field"},[n("input",{attrs:{type:"text",placeholder:"Label",name:"navigation-label-"+i},domProps:{value:t.label}})]),n("div",{staticClass:"eleven wide field"},[n("input",{attrs:{type:"text",placeholder:"http://www.mysite.com",name:"navigation-url-"+i},domProps:{value:t.url}})]),n("div",{staticClass:"one wide field"},[n("button",{staticClass:"ui icon button",on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.remove(i)}}},[n("i",{staticClass:"trash icon"})])])])}),n("div",{staticClass:"fields"},[n("div",{staticClass:"four wide field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNav.label,expression:"newNav.label"}],attrs:{type:"text",placeholder:"Label"},domProps:{value:e.newNav.label},on:{input:function(t){t.target.composing||e.$set(e.newNav,"label",t.target.value)}}})]),n("div",{staticClass:"eleven wide field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNav.url,expression:"newNav.url"}],attrs:{type:"text",placeholder:"http://www.mysite.com"},domProps:{value:e.newNav.url},on:{input:function(t){t.target.composing||e.$set(e.newNav,"url",t.target.value)}}})]),n("div",{staticClass:"one wide field"},[n("button",{staticClass:"ui icon button",attrs:{disabled:e.isNotValid},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.add(e.newNav)}}},[n("i",{staticClass:"add icon"})])])])],2)},staticRenderFns:[]};t.a=i},SUis:function(e,t,n){"use strict";(function(e){var i=n("PJh5"),o=n.n(i),r=n("RJtx"),a=n.n(r),s=n("lYDI");t.a={name:"posts",data:function(){return{postToDelete:{},filterValue:""}},beforeCreate:function(){},beforeMount:function(){this.$store.dispatch(s.a)},beforeDestroy:function(){e(".ui.basic.modal").remove()},mounted:function(){var t=this;e(".ui.basic.modal").modal({closable:!1,onDeny:function(){},onApprove:function(){t.$store.dispatch(s.d,t.postToDelete._id)}})},methods:{status:function(e){return!e.published?"Draft":"Published"},type:function(e){return e.type.replace(/\b\w/g,function(e){return e.toUpperCase()})},publishedAt:function(e){return!!e.published&&e.published_at&&o()(e.published_at).fromNow()||""},postCoverUrl:function(e){var t=e.image||"https://hubpress.github.io/img/logo.png";return t=t.startsWith("http")?t:e.attributes.$$smap.imagesdir+"/"+e.image},getPostStatusColor:function(e){return e.original?e.original.content!==e.content?"orange":"green":"red"},displayConfirmMessage:function(t){this.postToDelete=t,e(".ui.basic.modal").modal("show")},navigateToPost:function(e){this.$router.push({name:"post",params:{id:e._id}})},newPost:function(){this.$router.push({name:"post",params:{id:a.a.v4()}})},getPostTags:function(e){return e.tags||[]},getPostAuthor:function(e){return e.author||this.$store.state.authentication.userInformations},synchronize:function(){this.$store.dispatch(s.b)}},computed:{posts:function(){var e=this.filterValue.trim();return""===e?this.$store.state.hubpress.posts:this.$store.state.hubpress.posts.filter(function(t){return t.title.toLowerCase().indexOf(e.toLowerCase())>=0||t.tags&&t.tags.filter(function(t){return t.toLowerCase().indexOf(e.toLowerCase())>=0}).length})}}}}).call(t,n("7t+N"))},SjaB:function(e,t,n){var i=n("3fVB");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("2d76ba14",i,!0,{sourceMap:!1})},T23V:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,r,a=n("pFYg"),s=n.n(a),c=n("mvHQ"),u=n.n(c),l=n("fZjL"),p=n.n(l),d=n("woOf"),f=n.n(d),h=n("Zzip"),g=n.n(h),m=n("5QVw"),v=n.n(m),b=n("//Fk"),x=n.n(b),C=n("I3G/"),w=n.n(C),y=n("unZF"),P=n("qcny"),k=n("YLfZ"),S=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=x.a))(function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,s)}c((i=i.apply(e,t||[])).next())})},_=this&&this.__generator||function(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof v.a&&(r[g.a]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=i[2&r[0]?"return":r[0]?"throw":"next"])&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[0,o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1].row{padding-top:0;padding-bottom:0}.post-editor .ui.grid.light>.row{background-color:#f5f5f5;color:#202020}.post-editor .ui.grid.light>.row .ui.header{color:#202020}.post-editor .ui.grid.light>.row a{color:#aa759f}.post-editor .ui.grid.dark>.row,.post-editor .ui.grid.dark>.row .ui.header{background-color:#3f3f3f;color:#dcdccc}.post-editor .ui.grid.dark>.row .ui.header{color:#dcdccc}.post-editor .ui.grid.dark>.row a{color:#dcdcaa}.post-editor .ui.grid{padding-top:0;padding-bottom:0;margin:0}.post-editor .ui.grid .column{padding-top:0;margin-top:0;padding-bottom:0;margin-bottom:0}.vue-codemirror.container{min-height:100%;height:100%}#asciidoc-content,#asciidoc-preview{height:calc(100vh - 47px);min-height:calc(100vh - 47px)}#asciidoc-content.is-hidden{display:none}#asciidoc-preview{overflow-y:auto;padding-top:2em;font-size:1.2em;font-family:Menlo,Monaco,Consolas,Courier New,monospace;word-wrap:break-word}#asciidoc-preview.is-iframe{padding:0}#asciidoc-preview>div{max-width:750px!important;margin:auto}#asciidoc-preview.is-iframe>div{min-width:100%;margin:auto}#asciidoc-preview.is-fullscreen{width:100%!important}#asciidoc-preview>div .ui.header{font-family:Menlo,Monaco,Consolas,Courier New,monospace}#asciidoc-preview .content pre{background-color:#dcdccc;color:#2e2e2e;padding:10px;border-radius:5px;overflow:auto}#asciidoc-preview .paragraph{padding:.75em 0}#asciidoc-preview img{width:100%;max-width:100%}@media screen and (max-width:992px){#asciidoc-content{display:block}#asciidoc-content.is-preview-visible,#asciidoc-preview{display:none}#asciidoc-preview.is-preview-visible{display:block}}.item .ui.icon .rocket.unpublish{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.cm-s-zenburn.CodeMirror .CodeMirror-gutters{background:#3f3f3f!important}.cm-s-zenburn.CodeMirror .CodeMirror-foldgutter-open,.CodeMirror-foldgutter-folded{color:#999}.cm-s-zenburn.CodeMirror .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-zenburn.CodeMirror{background-color:#3f3f3f;color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-builtin{color:#dcdccc;font-weight:700}.cm-s-zenburn.CodeMirror span.cm-comment{color:#7f9f7f}.cm-s-zenburn.CodeMirror span.cm-keyword{color:#f0dfaf;font-weight:700}.cm-s-zenburn.CodeMirror span.cm-atom{color:#bfebbf}.cm-s-zenburn.CodeMirror span.cm-def{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-variable{color:#dfaf8f}.cm-s-zenburn.CodeMirror span.cm-variable-2{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-string,.cm-s-zenburn.CodeMirror span.cm-string-2{color:#cc9393}.cm-s-zenburn.CodeMirror span.cm-number{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-tag{color:#93e0e3}.cm-s-zenburn.CodeMirror span.cm-attribute,.cm-s-zenburn.CodeMirror span.cm-property{color:#dfaf8f}.cm-s-zenburn.CodeMirror span.cm-qualifier{color:#7cb8bb}.cm-s-zenburn.CodeMirror span.cm-meta{color:#f0dfaf}.cm-s-zenburn.CodeMirror span.cm-header,.cm-s-zenburn.CodeMirror span.cm-operator{color:#f0efd0}.cm-s-zenburn.CodeMirror span.CodeMirror-matchingbracket{-webkit-box-sizing:border-box;box-sizing:border-box;background:transparent;border-bottom:1px solid}.cm-s-zenburn.CodeMirror span.CodeMirror-nonmatchingbracket{border-bottom:1px solid;background:none}.cm-s-zenburn.CodeMirror .CodeMirror-activeline,.cm-s-zenburn.CodeMirror .CodeMirror-activeline-background{background:#000}.cm-s-zenburn.CodeMirror div.CodeMirror-selected{background:#545454}.cm-s-zenburn.CodeMirror .CodeMirror-focused div.CodeMirror-selected{background:#4f4f4f}.cm-s-base16-light.CodeMirror{background:#f5f5f5;color:#202020}.cm-s-base16-light.CodeMirror div.CodeMirror-selected{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-line::selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span::selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span>span::selection{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-line::-moz-selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span::-moz-selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span>span::-moz-selection{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-gutters{background:#f5f5f5;border-right:0}.cm-s-base16-light.CodeMirror .CodeMirror-guttermarker{color:#ac4142}.cm-s-base16-light.CodeMirror .CodeMirror-guttermarker-subtle,.cm-s-base16-light.CodeMirror .CodeMirror-linenumber{color:#b0b0b0}.cm-s-base16-light.CodeMirror .CodeMirror-cursor{border-left:1px solid #505050}.cm-s-base16-light.CodeMirror span.cm-comment{color:#8f5536}.cm-s-base16-light.CodeMirror span.cm-atom,.cm-s-base16-light.CodeMirror span.cm-number{color:#aa759f}.cm-s-base16-light.CodeMirror span.cm-attribute,.cm-s-base16-light.CodeMirror span.cm-property{color:#90a959}.cm-s-base16-light.CodeMirror span.cm-keyword{color:#ac4142}.cm-s-base16-light.CodeMirror span.cm-string{color:#f4bf75}.cm-s-base16-light.CodeMirror span.cm-variable{color:#90a959}.cm-s-base16-light.CodeMirror span.cm-variable-2{color:#6a9fb5}.cm-s-base16-light.CodeMirror span.cm-def{color:#d28445}.cm-s-base16-light.CodeMirror span.cm-bracket{color:#202020}.cm-s-base16-light.CodeMirror span.cm-tag{color:#ac4142}.cm-s-base16-light.CodeMirror span.cm-link{color:#aa759f}.cm-s-base16-light.CodeMirror span.cm-error{background:#ac4142;color:#505050}.cm-s-base16-light.CodeMirror .CodeMirror-activeline-background{background:#dddcdc}.cm-s-base16-light.CodeMirror .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}",""])},THns:function(e,t,n){"use strict";t.a=function(e){console.info("PostsGenerator - generate"),console.log("PostsGenerator - generate",e);var t=e;return e.nextState.publishedPosts.forEach(function(e){t=Object(o.a)(t,e)}),t};n("APUd");var i=n("j+6P"),o=(n.n(i),n("KgKs"))},ThI1:function(e,t,n){"use strict";var i=n("oz2E"),o=n("mBSI");var r=function(e){n("yJpT")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Tknw:function(e,t,n){"use strict";var i=n("wrAo"),o=n("zfI2");var r=function(e){n("YoMZ")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},WRRc:function(e,t,n){"use strict";t.a={name:"nuxt-link",functional:!0,render:function(e,t){return e("router-link",t.data,t.children)}}},WiUJ:function(e,t,n){"use strict";t.a=function(e){e.on("hubpress:request-theme",function(e){console.info("templatePlugin - hubpress:request-theme"),console.log("templatePlugin - hubpress:request-theme",e);var t,n,i,r,s,u=e.rootState.application.config.theme.name.toLowerCase(),p=e.rootState.application.config;return(t=u,n=p,i=a.a.defer(),r=[],s=n.urls.hubpress,c.a.get(s+"/themes/"+t+"/theme.json?dt="+Date.now()).end(function(e,n){if(e)i.reject(e);else{var o=n.body,u=o.version,p=!1,d=!1,f=!1;if(l.a.toPairs(o.files).forEach(function(e){var n=a.a.defer();r.push(n.promise),p=p||"pagination"===e[0],d=d||"nav"===e[0],f=f||"navigation"===e[0],c.a.get(s+"/themes/"+t+"/"+e[1]+"?v="+u).end(function(t,i){t?n.reject(t):n.resolve({name:e[0],path:e[1],content:i.text})})}),!p){var h=a.a.defer();r.push(h.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/pagination.hbs").end(function(e,t){e?h.reject(e):h.resolve({name:"pagination",path:"partials/pagination",content:t.text})})}if(!d){var g=a.a.defer();r.push(g.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/nav.hbs").end(function(e,t){e?g.reject(e):g.resolve({name:"nav",path:"partials/nav",content:t.text})})}if(!f){var m=a.a.defer();r.push(m.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/navigation.hbs").end(function(e,t){e?m.reject(e):m.resolve({name:"navigation",path:"partials/navigation",content:t.text})})}a.a.all(r).then(function(e){i.resolve({version:u,files:e})}).catch(function(e){console.log(e),i.reject(e)})}}),i.promise).then(function(t){var n={name:u,files:t.files,version:t.version};b.a.registerTheme(p,n),b.a.registerFiles(n.files);var i=o()({},n);return e.nextState=o()({},e.nextState,{theme:i}),e})}),e.on("requestGenerateIndex",function(e){console.info("templatePlugin - requestGenerateIndex"),console.log("templatePlugin - requestGenerateIndex",e);var t=Object(p.a)(e);return console.log("templatePlugin - requestGenerateIndex return",t),t}),e.on("requestGeneratePost",function(e){console.info("templatePlugin - requestGeneratePost"),console.log("templatePlugin - requestGeneratePost",e);var t=Object(d.a)(e,e.nextState.post);return console.log("templatePlugin - requestGeneratePost return",t),t}),e.on("requestGeneratePosts",function(e){console.info("templatePlugin - requestGeneratePosts"),console.log("templatePlugin - requestGeneratePosts",e);var t=Object(f.a)(e);return console.log("templatePlugin - requestGeneratePosts return",t),t}),e.on("requestGeneratePages",function(e){console.info("templatePlugin - requestGeneratePages"),console.log("templatePlugin - requestGeneratePages",e);var t=Object(h.a)(e);return console.log("templatePlugin - requestGeneratePages return",t),t}),e.on("requestGenerateTags",function(e){console.info("templatePlugin - requestGenerateTags"),console.log("templatePlugin - requestGenerateTags",e);var t=Object(g.a)(e);return console.log("templatePlugin - requestGenerateTags return",t),t}),e.on("requestGenerateAuthors",function(e){console.info("templatePlugin - requestGenerateAuthors"),console.log("templatePlugin - requestGenerateAuthors",e);var t=Object(m.a)(e);return console.log("templatePlugin - requestGenerateAuthors return",t),t})};var i=n("woOf"),o=n.n(i),r=n("/Luh"),a=n.n(r),s=n("GG98"),c=n.n(s),u=n("M4fF"),l=n.n(u),p=n("e3+D"),d=n("KgKs"),f=n("THns"),h=n("BdWi"),g=n("dZ6u"),m=n("KOTd"),v=n("j+6P"),b=n.n(v)},X5n4:function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"l",function(){return r}),n.d(t,"i",function(){return a}),n.d(t,"j",function(){return s}),n.d(t,"k",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"d",function(){return l}),n.d(t,"h",function(){return p}),n.d(t,"a",function(){return d}),n.d(t,"g",function(){return f}),n.d(t,"f",function(){return h});var i="application:initialize-routes",o="application:initialize-config",r="application:save-startup-config",a="application:prepare-config",s="application:save-config",c="application:save-config-done",u="application:initialize-app",l="application:initialize-plugins",p="application:notify",d="application:close-notification",f="application:loading",h="application:loaded"},X8TR:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"post-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.showAsciidocHelp()}}},[e._m(0)]),n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchLight()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.lightLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{sun:e.isDark,moon:!e.isDark}})])]),n("a",{staticClass:"item html-preview",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreview(!1)}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.previewLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{unhide:!e.isPreviewVisible||e.isIFrame,hide:e.isPreviewVisible&&!e.isIFrame}})])]),n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreview(!0)}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.previewLabelIFrame,"data-position":"bottom right"}},[n("i",{staticClass:"large icon globe"})])]),e.isPreviewVisible?n("a",{staticClass:"item preview-resize",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreviewSize()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.resizeLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{expand:!e.isFullScreen,compress:e.isFullScreen}})])]):e._e(),e.isRemoteActionVisible?n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.remoteSave()}}},[e._m(1)]):e._e(),e.isRemoteActionVisible?n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.publish()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.publishLabel,"data-position":"bottom right"}},[n("i",{staticClass:"icons"},[n("i",{staticClass:"cloud large icon",class:{download:e.isPostPublished,upload:!e.isPostPublished}})])])]):e._e()])]),e._m(2),n("div",{staticClass:"post-editor"},[n("div",{staticClass:"ui grid",class:{dark:e.isDark,light:!e.isDark}},[n("div",{staticClass:"row"},[n("div",{staticClass:"column",class:{"sixteen wide mobile height wide computer is-preview-visible":e.isPreviewVisible,"sixteen wide":!e.isPreviewVisible,"is-hidden":e.isFullScreen},attrs:{id:"asciidoc-content"}},[n("codemirror",{ref:"codeEditor",staticClass:"container",attrs:{code:e.content,options:e.editorOption},on:{input:e.contentChange}})],1),e.isPreviewVisible?n("div",{staticClass:"column",class:{"sixteen wide mobile height wide computer is-preview-visible":e.isPreviewVisible,"is-iframe":e.isIFrame,"is-fullscreen":e.isFullScreen},attrs:{id:"asciidoc-preview"}},[n("preview",{attrs:{post:e.post,iframe:e.isIFrame}})],1):e._e()])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Need some help?","data-position":"bottom right"}},[t("i",{staticClass:"help large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Save your post remotely","data-position":"bottom right"}},[t("i",{staticClass:"save large icon"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui modal",attrs:{id:"asciidoc-help"}},[n("i",{staticClass:"close icon"}),n("div",{staticClass:"header"},[e._v("\n Asciidoc syntax help\n ")]),n("div",{staticClass:"content"},[n("table",{staticClass:"ui table"},[n("thead",[n("tr",[n("th",{staticClass:"heigth wide"},[e._v("Result")]),n("th",{staticClass:"heigth wide"},[e._v("Asciidoc")])])]),n("tbody",[n("tr",[n("td",[e._v("H1")]),n("td",[e._v("= Title")])]),n("tr",[n("td",[e._v("H2")]),n("td",[e._v("== Title")])]),n("tr",[n("td",[e._v("H3")]),n("td",[e._v("=== Title")])]),n("tr",[n("td",[n("strong",[e._v("Bold")])]),n("td",[e._v("*content*")])]),n("tr",[n("td",[n("i",[e._v("Emphasize")])]),n("td",[e._v("_content_")])]),n("tr",[n("td",[n("a",{attrs:{href:"#"}},[e._v("Link")])]),n("td",[e._v("http://asciidoctor.org[Asciidoctor]")])]),n("tr",[n("td",[e._v("Image Block")]),n("td",[e._v("image::sunset.jpg[]")])]),n("tr",[n("td",[e._v("Image Inline")]),n("td",[e._v('Click image:icons/pause.png[title="Pause"] when you need a break.')])]),n("tr",[n("td",[e._v("Video")]),n("td",[e._v("video::video_file.mp4[]")])]),n("tr",[n("td",[e._v("Unordered list")]),n("td",[e._v("* item")])]),n("tr",[n("td",[e._v("Ordered list")]),n("td",[e._v(". item")])]),n("tr",[n("td",[n("code",[e._v("Inline code")])]),n("td",[e._v("`code`")])])])]),n("p",[e._v("\n More informations about the Asciidoc syntax here: "),n("a",{attrs:{href:"http://asciidoctor.org/docs/asciidoc-syntax-quick-reference/",target:"_blank"}},[e._v("AsciiDoc Syntax Quick Reference")])])])])}]};t.a=i},XO7e:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.iframe?e._e():n("div",{staticClass:"html-rendering"},[n("h1",{staticClass:"ui header"},[e._v(e._s(e.post.title))]),n("div",{staticClass:"content",attrs:{id:"html-content"},domProps:{innerHTML:e._s(e.post.html)}})]),e.iframe?n("div",{staticClass:"iframe-rendering"},[n("iframe",{staticClass:"published-preview",attrs:{srcdoc:e.post.publishedContent,frameborder:"0"}})]):e._e()])},staticRenderFns:[]};t.a=i},XSDV:function(e,t,n){var i=n("jAb+");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("5bd01218",i,!0,{sourceMap:!1})},XkEn:function(e,t,n){var i=n("dd07");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("1ce06800",i,!0,{sourceMap:!1})},Y2j8:function(e,t,n){"use strict";var i=n("woOf"),o=(n.n(i),n("/Luh")),r=(n.n(o),n("M4fF")),a=(n.n(r),n("RJtx")),s=(n.n(a),n("Wa/L")),c=n("tCkb");s.a.plugin(c.a),window.PouchDB=s.a},YDvP:function(e,t,n){var i=n("qZPA");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("3ecfbf5a",i,!0,{sourceMap:!1})},YG9q:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),t.a=function(e){return e.on("application:routes",function(e){return console.info("applicationPlugin - application:routes"),console.log("applicationPlugin - application:routes",e),e.nextState.routes.push({id:"application",entries:[{path:"settings",name:"settings",component:s.a}]}),console.log("applicationPlugin - application:routes - return",e),e}),e.on("application:stores",function(e){var t,n;console.info("applicationPlugin - application:stores"),console.log("applicationPlugin - application:stores",e);var i={state:{isInitialized:!1,isFetching:!1,isLoading:!1,requireInitilisation:!1,notification:{icon:"save",header:"My Header",message:"A message",level:"default",isVisible:!1},routes:[],settingsTabs:[]},mutations:(t={},o()(t,a.b,function(e,t){_.merge(e,t.application)}),o()(t,a.d,function(e,t){_.merge(e,t.application)}),o()(t,a.e,function(e,t){e.routes=t}),o()(t,a.c,function(e,t){_.merge(e,t)}),o()(t,a.i,function(e,t){_.merge(e,t)}),o()(t,a.l,function(e,t){_.merge(e,t)}),o()(t,a.j,function(e,t){_.merge(e,t.application)}),o()(t,a.k,function(e,t){_.merge(e,t.application)}),o()(t,a.h,function(e,t){t.isVisible=!0,_.merge(e.notification,t)}),o()(t,a.a,function(e,t){e.notification.isVisible=!1}),o()(t,a.g,function(e,t){e.isLoading=!0}),o()(t,a.f,function(e,t){e.isLoading=!1}),t),actions:(n={},o()(n,a.c,function(e){var t=e.commit,n=e.rootState,i=e.state,o={rootState:_.cloneDeep(n),currentState:_.cloneDeep(i)};return r.a.initializeConfig(o).then(function(e){t(a.c,e.nextState)})}),o()(n,a.b,function(e){var t=e.commit,n=e.rootState,i=(e.state,{rootState:_.cloneDeep(n),currentState:_.cloneDeep(n)});return r.a.initializeApp(i).then(function(e){console.log("helllllllo",e),t(a.b,e.nextState)})}),o()(n,a.d,function(e){var t=e.commit,n=e.rootState,i=(e.state,{rootState:_.cloneDeep(n),currentState:_.cloneDeep(n)});return r.a.initializePlugins(i).then(function(e){e.nextState.application.isInitialized=!0,t(a.d,e.nextState)})}),o()(n,a.i,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,s=e.state,c={rootState:_.cloneDeep(o),currentState:_.cloneDeep(s),nextState:_.cloneDeep(s),payload:{formData:t}};return c.currentState.isLoading=!0,c.nextState.isLoading=!0,n(a.g).then(function(e){return r.a.prepareConfig(c)}).then(function(e){return i(a.i,e.nextState),n(a.j)})}),o()(n,a.l,function(e,t){e.dispatch;var n=e.commit,i=e.rootState,o=e.state,s={rootState:_.cloneDeep(i),currentState:_.cloneDeep(o),nextState:_.cloneDeep(o)};return s.nextState.config.meta.username=t.username,s.nextState.config.meta.repositoryName=t.repositoryName,s.nextState.config.meta.branch=t.branch,s.nextState.config.meta.cname=t.cname,s.nextState.requireInitilisation=!1,r.a.startUpConfig(s).then(function(e){n(a.l,e.nextState)})}),o()(n,a.j,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,s=(e.state,{rootState:_.cloneDeep(o),currentState:_.cloneDeep(o),nextState:_.cloneDeep(o)});return console.log(s),r.a.saveConfig(s).then(function(e){if(console.log("testsettesse",e),i(a.j,e.nextState),!t)return n(a.k)})}),o()(n,a.k,function(e){var t=e.dispatch,n=e.commit,i=e.rootState,o=(e.state,{rootState:_.cloneDeep(i),currentState:_.cloneDeep(i),nextState:_.cloneDeep(i)});return r.a.saveConfigDone(o).then(function(e){n(a.k,e.nextState)}).then(function(e){return t("application:loaded")}).then(function(e){return t("application:notify",{icon:"save",header:"Settings saved",message:"Your settings have been saved and your blog was rebuild with success. ",level:"success"})})}),o()(n,a.h,function(e,t){e.dispatch;var n=e.commit;e.rootState,e.state,n(a.h,t)}),o()(n,a.a,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.a)}),o()(n,a.g,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.g)}),o()(n,a.f,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.f)}),n),getters:{navigations:function(e){return e.routes.filter(function(e){return e.label})}}};return e.nextState.stores.application=i,console.log("applicationPlugin - application:stores - return",e),e}),e.on("application:prepare-config",function(e){return console.info("applicationPlugin - application:prepare-config"),console.log("applicationPlugin - application:prepare-config",e),e.nextState.config.meta.cname=e.payload.formData.get("application-cname"),console.log("applicationPlugin - application:prepare-config - return",e),e}),e.on("application:save-config",function(e){return console.info("applicationPlugin - application:save-config"),console.log("applicationPlugin - application:save-config",e),console.log("applicationPlugin - application:save-config - return",e),e}),{getName:function(){return"applicationPlugin"}}};var i=n("bOdI"),o=n.n(i),r=n("RsIG"),a=n("X5n4"),s=n("kMyt"),c={APPLICATION_PREPARE_CONFIG:a.i}},YLfZ:function(e,t,n){"use strict";t.a=function(e,t){var n=e.options.data||x;if(!t&&e.options.hasAsyncData)return;e.options.hasAsyncData=!0,e.options.data=function(){var i=n.call(this);return this.$ssrContext&&(t=this.$ssrContext.asyncData[e.cid]),m()({},i,t)},e._Ctor&&e._Ctor.options&&(e._Ctor.options.data=e.options.data)},t.l=C,t.e=w,t.f=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],e.matched.map(function(e,n){return h()(e.instances).map(function(i){return t&&t.push(n),e.instances[i]})}))},t.c=y,t.k=P,n.d(t,"h",function(){return _}),n.d(t,"m",function(){return R}),t.i=function e(t,n){if(!t.length||n._redirected||n._errored)return d.a.resolve();return q(t[0],n).then(function(){return e(t.slice(1),n)})},t.j=q,t.d=function(e,t){var n=window.location.pathname;if("hash"===t)return window.location.hash.replace(/^#\//,"");e&&0===n.indexOf(e)&&(n=n.slice(e.length));return(n||"/")+window.location.search+window.location.hash},t.b=function(e,t){return function(e){for(var t=new Array(e.length),n=0;n1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],e.matched.map(function(e,n){return h()(e.components).map(function(i){return t&&t.push(n),e.components[i]})}))}function y(e,t){return Array.prototype.concat.apply([],e.matched.map(function(e,n){return h()(e.components).map(function(i){return t(e.components[i],e.instances[i],e,i,n)})}))}function P(e){var t,n=this;return d.a.all(y(e,(t=l()(c.a.mark(function e(t,i,o,r){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof t||t.options){e.next=4;break}return e.next=3,t();case 3:t=e.sent;case 4:return e.abrupt("return",o.components[r]=C(t));case 5:case"end":return e.stop()}},e,n)})),function(e,n,i,o){return t.apply(this,arguments)})))}window._nuxtReadyCbs=[],window.onNuxtReady=function(e){window._nuxtReadyCbs.push(e)};var k,S,_=(k=l()(c.a.mark(function e(t){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P(t);case 2:return e.abrupt("return",m()({},t,{meta:w(t).map(function(e){return e.options.meta||{}})}));case 3:case"end":return e.stop()}},e,this)})),function(e){return k.apply(this,arguments)}),R=(S=l()(c.a.mark(function e(t,n){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n.to?n.to:n.route,t.context){e.next=14;break}e.t0=!0,e.t1=t,e.t2=t.store,e.t3=n.payload,e.t4=n.error,e.t5={hubpressVersion:"1.0.0",baseUrl:"http://localhost:3000"},t.context={get isServer(){return console.warn("context.isServer has been deprecated, please use process.server instead."),!1},get isClient(){return console.warn("context.isClient has been deprecated, please use process.client instead."),!0},isStatic:e.t0,isDev:!1,isHMR:!1,app:e.t1,store:e.t2,payload:e.t3,error:e.t4,base:"..",env:e.t5},n.req&&(t.context.req=n.req),n.res&&(t.context.res=n.res),t.context.redirect=function(e,n,i){if(e){t.context._redirected=!0;var o=void 0===n?"undefined":a()(n);if("number"==typeof e||"undefined"!==o&&"object"!==o||(i=n||{},o=void 0===(n=e)?"undefined":a()(n),e=302),"object"===o&&(n=t.router.resolve(n).href),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(n))throw n=j(n,i),window.location.replace(n),new Error("ERR_REDIRECT");t.context.next({path:n,query:i,status:e})}},t.context.nuxtState=window.__NUXT__;case 14:if(t.context.next=n.next,t.context._redirected=!1,t.context._errored=!1,t.context.isHMR=!!n.isHMR,!n.route){e.next=22;break}return e.next=21,_(n.route);case 21:t.context.route=e.sent;case 22:if(t.context.params=t.context.route.params||{},t.context.query=t.context.route.query||{},!n.from){e.next=28;break}return e.next=27,_(n.from);case 27:t.context.from=e.sent;case 28:case"end":return e.stop()}},e,this)})),function(e,t){return S.apply(this,arguments)});function q(e,t){var n=void 0;return(n=2===e.length?new d.a(function(n){e(t,function(e,i){e&&t.error(e),n(i=i||{})})}):e(t))&&(n instanceof d.a||"function"==typeof n.then)||(n=d.a.resolve(n)),n}var M=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function $(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function D(e){return e.replace(/([.+*?=^!:()[\]|\/\\])/g,"\\$1")}function L(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function j(e,t){var n=void 0,i=e.indexOf("://");-1!==i?(n=e.substring(0,i),e=e.substring(i+3)):0===e.indexOf("//")&&(e=e.substring(2));var r=e.split("/"),a=(n?n+"://":"//")+r.shift(),s=r.filter(Boolean).join("/"),c=void 0;return 2===(r=s.split("#")).length&&(s=r[0],c=r[1]),a+=s?"/"+s:"",t&&"{}"!==o()(t)&&(a+=(2===e.split("?").length?"&":"?")+function(e){return h()(e).sort().map(function(t){var n=e[t];return null==n?"":Array.isArray(n)?n.slice().map(function(e){return[t,"=",e].join("")}).join("&"):t+"="+n}).filter(Boolean).join("&")}(t)),a+=c?"#"+c:""}},YMuy:function(e,t,n){"use strict";var i=n("6Ndi"),o=n("PJh5"),r=n.n(o);function a(e){return i.a.fireRequestRemoteSynchronization(e).then(function(e){return i.a.fireReceiveRemoteSynchronization(e)}).then(function(e){return i.a.fireRequestRenderingDocuments(e)}).then(function(e){return i.a.fireReceiveRenderingDocuments(e)}).then(function(e){return i.a.fireRequestLocalSynchronization(e)}).then(function(e){return i.a.fireReceiveLocalSynchronization(e)}).then(function(e){return i.a.fireRequestLocalPosts(e)}).then(function(e){return i.a.fireReceiveLocalPosts(e)}).then(function(e){return localStorage.setItem("hubpress:sync",r()().format()),e})}t.a={initialize:function(e){return i.a.fireRequestTheme(e).then(function(e){return i.a.fireReceiveTheme(e)}).then(function(e){return localStorage.getItem("hubpress:sync")?i.a.fireRequestLocalPosts(e).then(function(e){return i.a.fireReceiveLocalPosts(e)}):a(e)})},synchronize:a}},YoMZ:function(e,t,n){var i=n("7Rt3");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("9418214c",i,!0,{sourceMap:!1})},"bN/m":function(e,t,n){"use strict";function i(e,t){var n=void 0;return e.cname&&""!==e.cname?n=(!1===t?"":"http:")+"//"+e.cname:(n=(!1===t?"":"https:")+"//"+e.username+".github.io","master"!==e.branch&&(n=n+"/"+e.repositoryName)),n}function o(e,t){var n=e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"/$1/$2/$3/$4.html");return"page"===t&&(n=e.replace(/([\w-]*)\.adoc/,"/$1.html")),n}function r(e,t){var n=e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"$1/$2/$3/$4.html");return"page"===t&&(n=e.replace(/([\w-]*)\.adoc/,"$1.html")),n}function a(e){return e.match(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/)?"post":"page"}t.a=function(e){return{site:i(e.meta),hubpress:function(e,t){var n=t.protocol+"//"+t.host;if("localhost"===t.hostname)return n;t.host===e.username+".github.io"||t.host===e.username+".github.com"?"master"!==e.branch&&(n=n+"/"+e.repositoryName):"master"===e.branch||e.cname&&""!==e.cname||(n=n+"/"+e.repositoryName);return n}(e.meta,window.location),theme:i(e.meta,!1)+"/themes/"+e.theme.name,images:i(e.meta)+"/images",getContentUrl:o,getContentGhPath:r,getContentType:a,getPostUrl:function(e){return e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"/$1/$2/$3/$4.html")},getPostGhPath:function(e){return e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"$1/$2/$3/$4.html")},getPageUrl:function(e){return e.replace(/([\w-]*)\.adoc/,"/$1.html")},getPageGhPath:function(e){return e.replace(/([\w-]*)\.adoc/,"$1.html")},getSiteUrl:i}}},bxJ0:function(e,t,n){"use strict";t.a=function(e){e.on("application:request-config",function(e){return console.info("githubPlugin - application:request-config"),console.log("githubPlugin - application:request-config",e),l()("config.json?dt="+Date.now()).then(function(e){return e.json()}).then(function(t){return e.nextState.config=a()({},e.nextState.config,t),e.nextState.config.theme.name=e.nextState.config.theme.name.toLowerCase(),e})}),e.on("application:receive-config",function(e){console.info("githubPlugin - application:receive-config"),console.log("githubPlugin - application:receive-config",e);var t=Object(w.a)(e.nextState.config);return e.nextState.config=a()({},e.nextState.config,{urls:t}),e}),e.on("requestAuthentication",function(e){return console.info("githubPlugin - requestAuthentication"),console.log("githubPlugin - requestAuthentication",e),function(e){console.log("githubPlugin - login",e);var t=m.a.defer(),n=e.nextState.credentials,i=e.rootState.application.config.meta,o=(q=new h.a({auth:"basic",username:n.email,password:n.password,twoFactorCode:n.twoFactorCode})).getRepo(i.username,i.repositoryName),r=q.getAuthorization(),a=q.getUser(),s=void 0,c=void 0;return function(e){var t=m.a.defer();return e.getDetails(function(e,n){e?t.reject(e):t.resolve(n)}),t.promise}(o).then(function(e){s=e}).then(S(a)).then(function(e){return c=e,function(e){var t=m.a.defer();return console.log("getAuthorizations",e),e.listAuthorizations({},function(e,n){e?t.reject(e):(console.log("getAuthorizations list",n),t.resolve(n))}),t.promise}(r)}).then(function(e){return function(e,t,n){var i=m.a.defer(),o=-1,r=_(e);return t.forEach(function(e){e.note===r&&(o=e.id)}),-1!==o?n.deleteAuthorization(o,function(e,t){e?i.reject(e):i.resolve()}):i.resolve(),i.promise}(i.repositoryName,e,r)}).then(function(){return R(i.repositoryName,r)}).then(function(e){q=new h.a({auth:"oauth",token:e.token}),t.resolve({isAuthenticated:!0,credentials:{token:e.token},permissions:s.permissions,userInformations:c})}).catch(function(e){console.error("githubPlugin - login error",e,e.response);var n,o={type:"error",title:"Authentication"};e.response&&(n="required"===(e.response.headers&&e.response.headers["x-github-otp"]||"").split(";")[0]),n?(R(i.repositoryName,r),console.log("githubPlugin - OTP required : ",n),o.type="warning",o.content="A two-factor authentication code is needed.",o.otp=!0,t.resolve({isAuthenticated:!1,isTwoFactorCodeRequired:!0})):(console.error("githubPlugin - login error",e),t.reject({error:{code:e.error,message:"Unable to authenticate, check your credentials."}}))}),t.promise}(e).then(function(t){var n=a()({},e.nextState.credentials,t.credentials);return e.nextState=a()({},e.nextState,t,{credentials:n}),e})}),e.on("receiveSavedAuth",function(e){return console.info("githubPlugin - receiveSavedAuth"),console.log("githubPlugin - receiveSavedAuth",e),e.nextState.authentication.isAuthenticated&&(q=new h.a({auth:"oauth",token:e.nextState.authentication.credentials.token})),e}),e.on("hubpress:request-remote-synchronization",function(e){return console.info("githubPlugin - hubpress:request-remote-synchronization"),console.log("githubPlugin - hubpress:request-remote-synchronization",e),e.rootState.authentication.isAuthenticated?function(e){var t=e.application.config;console.log("Get posts",t);var n=t.meta,i=q.getRepo(n.username,n.repositoryName);return function(e,t){var n=m.a.defer();return e.getContents(t.meta.branch,"",!0,function(e,t){if(e)n.reject(e);else{var i=void 0;t.forEach(function(e){"_posts"===e.name&&(i=e.sha)}),n.resolve(i)}}),n.promise}(i,t).then(function(e){return function(e,t,n){var i=void 0;if(n===localStorage.postsSha)i=m.a.fcall(function(){return[]});else{var o=m.a.defer();e.getContents(t.meta.branch,"_posts",!0,function(e,t){e?o.reject(e):o.resolve(t)}),i=o.promise}return i}(i,t,e)}).then(function(e){return e.map(function(e){return b.a.pick(e,["name","path","sha","size"])})}).then(function(e){return function(e,t,n){var i=b.a.compact(n).map(function(e){return function(e,t){var n=m.a.defer(),i=e.meta,o=q.getRepo(i.username,i.repositoryName),r=e.urls.getContentType(t.name);return o.getSha(e.meta.branch,e.urls.getContentGhPath(t.name,r),function(e,i){if(e&&e.response&&404!==e.response.status)n.reject(e);else{var o=i?1:0,r=a()({},t,{published:o});n.resolve(r)}}),n.promise}(t,e)});return m.a.all(i)}(0,t,e)}).then(function(n){return function(e,t,n,i){var o=n.map(function(e){return M(t,e,i)});return m.a.all(o)}(0,t,n,e.authentication.userInformations)}).then(function(e){return function(e,t,n){var i=[];return n.forEach(function(n){var o=m.a.defer();i.push(o.promise),e.getContents(t.meta.branch,n.path,!0,function(e,t){var i;e?o.reject(e):(i=a()({},n,{content:t}),o.resolve(i))})}),m.a.all(i)}(i,t,e)})}(e.rootState).then(function(t){return e.nextState=a()({},e.nextState,{posts:t}),e}):e}),e.on("requestSaveRemotePost",function(e){console.info("githubPlugin - requestSaveRemotePost"),console.log("githubPlugin - requestSaveRemotePost",e);var t=e.rootState.application.config,n=e.nextState.post;return function(e,t){var n=e.meta,i=q.getRepo(n.username,n.repositoryName),o=void 0;if(t.original&&t.name!==t.original.name){var r=m.a.defer();o=r.promise;var a=e.meta.branch,s="_posts/"+t.original.name,c="_posts/"+t.name;i.move(a,s,c,function(n,o){if(n)r.reject(n);else if(t.published){var s=e.urls.getContentGhPath(t.original.name,t.original.type);(function(e,t,n){return function(e,t,n){var i=m.a.defer();return e.deleteFile(t,n,function(e,t){e?i.reject(e):(console.error(t),k=t.commit,i.resolve(t))}),i.promise}(e,t,n)})(i,a,s).then(function(e){r.resolve({post:t,sha:e})}).catch(function(e){r.reject(e)}).done()}else r.resolve({post:t,sha:o})})}else o=m()({post:t});return o}(t,n).then(function(e){return function(e,t){console.log("Write post",e,t);var n=e.meta,i=q.getRepo(n.username,n.repositoryName),o=n.branch,r="_posts/"+t.name,a="Update "+t.name,s=m.a.defer();return i.writeFile(o,r,t.content,a,function(n,i){n?s.reject(n):(t.original=b.a.omit(t,["original"]),t.original.url=e.urls.getContentUrl(t.original.name,t.original.type),t.original.path="_posts/"+t.original.name,t.original.sha=i,k=i.commit,console.info("Update lastCacheCommit",k),s.resolve(t))}),s.promise}(t,e.post)}).then(function(n){return M(t,n,e.rootState.authentication.userInformations)}).then(function(t){return e.nextState.post=t,e})}),e.on("requestSaveRemotePublishedElements",function(e){console.info("githubPlugin - requestSaveRemotePublishedElements"),console.log("githubPlugin - requestSaveRemotePublishedElements",e);var t=e.rootState.application.config.meta,n=q.getRepo(t.username,t.repositoryName),i=e.nextState.elementsToPublish.length,o=b.a.chunk(e.nextState.elementsToPublish,P);console.log("Writeall",e.nextState.elementsToPublish);var r=m.a.defer();return n.getBranch(t.branch,function(a,s){if(a){var c=m.a.defer();return r=c.promise,c.reject(a)}var u=0,l=o.reduce(function(e,o){return e.then(function(e){var r=m.a.defer(),a=o.map(function(e){return{path:e.path,mode:"100644",type:"blob",content:e.content}});return n.createTree(a,e,function(a,s){if(a)return r.reject(a);n.commit(e,s.sha,"Published "+(u+o.length)+"/"+i+" elements",function(e,i){if(e)return r.reject(e);u+=o.length,k=i,n.updateHead("heads/"+t.branch,i.sha,!1,function(e,t){if(console.log("updateHead",e,t),e)return r.reject(e);r.resolve(i.sha)})})}),r.promise})},m()(function(e,t){if(console.error(e,t),!t)return e.sha;var n=C()(e.committer.date);return C()(t.committer.date).isAfter(n)?t.sha:e.sha}({committer:s.commit.commit.committer,sha:s.commit.sha},k)));l.then(function(t){r.resolve(e)}).catch(function(e){r.reject(e)})}),r.promise}),e.on("requestDeleteRemotePost",function(e){console.info("githubPlugin - requestDeleteRemotePost"),console.log("githubPlugin - requestDeleteRemotePost",e);var t=m.a.defer(),n=e.rootState.application.config,i=n.meta,o=q.getRepo(i.username,i.repositoryName),r=e.nextState.post.original.path;return o.deleteFile(i.branch,r,function(n,i){n&&n.response&&404!==n.response.status?t.reject(n):(console.error("requestDeleteRemotePost",i),k=i.commit,t.resolve(e))}).catch(function(n){n&&n.response&&404===n.response.status&&t.resolve(e)}),t.promise}),e.on("requestDeleteRemotePublishedPost",function(e){console.info("githubPlugin - requestDeleteRemotePublishedPost"),console.log("githubPlugin - requestDeleteRemotePublishedPost",e);var t=m.a.defer(),n=e.rootState.application.config,i=n.meta,o=q.getRepo(i.username,i.repositoryName),r=n.urls.getContentGhPath(e.nextState.post.original.name,e.nextState.post.original.type);return o.deleteFile(i.branch,r,function(n,i){n?t.reject(n):(console.error("requestDeleteRemotePublishedPost",i),k=i.commit,t.resolve(e))}),t.promise}),e.on("application:request-save-config",function(e){console.info("githubPlugin - application:request-save-config"),console.log("githubPlugin - application:request-save-config",e);var t=e.nextState.application;return function(e){console.log("Write config",e);var t=m.a.defer(),n=e.meta,i=q.getRepo(n.username,n.repositoryName),r=n.branch;return i.writeFile(r,"hubpress/config.json",o()(e,null,2),"Update configuration file",function(e,n){e?t.reject(e):(k=n.commit,console.info("Update lastCacheCommit",k),t.resolve(n))}),t.promise}(t.config).then(function(e){return function(e){console.log("Github manageCname - ",e);var t=e.meta,n=q.getRepo(t.username,t.repositoryName),i=m.a.defer();t.cname&&""!==t.cname?(console.info("SettingsService - saveAndPublish save CNAME"),n.writeFile(t.branch,"CNAME",t.cname,"Update CNAME with "+t.cname,function(e,t){e?i.reject(e):(k=t.commit,console.info("Update lastCacheCommit",k),i.resolve(t))})):(console.info("SettingsService - saveAndPublish delete CNAME"),n.deleteFile(t.branch,"CNAME",function(e,t){e&&"not found"!==e?i.reject(e):i.resolve(t)}).then(function(e){console.log("SHA after delete",e),i.resolve(e)}).catch(function(e){404!==e.response.status?i.reject(e):i.resolve()}));return i.promise}(t.config)}).then(function(t){return e})}),e.on("receiveRenderingPost",function(e){return console.info("githubPlugin - receiveRenderingPost"),console.log("githubPlugin - receiveRenderingPost",e),e}),e.on("application:initialize-plugins",function(e){console.info("githubPlugin - application:initialize-plugins"),console.log("githubPlugin - application:initialize-plugins",e);var t="put your repository name here"===e.rootState.application.config.meta.repositoryName||"put your username here"===e.rootState.application.config.meta.username;return e.nextState.application.requireInitilisation=t,e.nextState.application.config.initialisationConfigComponent=y.a,e})};var i=n("mvHQ"),o=n.n(i),r=n("woOf"),a=n.n(r),s=n("6ltY"),c=n.n(s),u=n("j9g7"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=n("73D8"),h=n.n(f),g=n("/Luh"),m=n.n(g),v=n("M4fF"),b=n.n(v),x=n("PJh5"),C=n.n(x),w=n("bN/m"),y=n("IBrK"),P=50,k=null;function S(e){return function(){var t=m.a.defer();return e.getProfile(function(e,n){e?t.reject(e):t.resolve(b.a.pick(n,["login","id","name","location","blog","avatar_url","bio"]))}),t.promise}}function _(e){return d()(e+"-"+c.a.name+"-"+c.a.os)}function R(e,t){var n=m.a.defer(),i={scopes:["public_repo"],note:_(e)};return t.createAuthorization(i,function(e,t){e?n.reject(e):n.resolve(t)}),n.promise}var q=void 0;function M(e,t,n){var i=m.a.defer(),o=e.meta,r=q.getRepo(o.username,o.repositoryName);return console.log("getPostAuthor",t),r.listCommits({sha:e.meta.branch,path:t.original&&t.original.path||t.path},function(e,o){if(e&&404!==e.error)i.reject(e);else{var r=o[o.length-1].author;if(r&&r.login!==n.login){S(q.getUser(r.login))().then(function(e){r=a()({},e);var n=a()({},t,{author:r});i.resolve(n)}).catch(function(e){return i.reject(e)})}else{r=a()({},n);var s=a()({},t,{author:r});i.resolve(s)}}}),i.promise}},cOI0:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,'.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,.5)}.cm-animate-fat-cursor,.cm-fat-cursor-mark{-webkit-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;background-color:#7e7}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;-webkit-font-feature-settings:"calt";font-feature-settings:"calt";font-variant-ligatures:contextual}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-webkit-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}',""])},cmzl:function(e,t,n){"use strict";var i={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"nuxt-progress",style:{width:this.percent+"%",height:this.height,"background-color":this.canSuccess?this.color:this.failedColor,opacity:this.show?1:0}})},staticRenderFns:[]};t.a=i},ct3O:function(e,t,n){"use strict";var i=n("FIB3"),o=n("FdPX");var r=function(e){n("wGIl")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},"d/OL":function(e,t,n){"use strict";t.a=function(e){e.on("hubpress:request-rendering-documents",function(e){console.info("asciidocPlugin - hubpress:request-rendering-documents"),console.log("asciidocPlugin - hubpress:request-rendering-documents",e);var t=e.rootState.application.config,n=(e.nextState.posts||[]).map(function(e){var n=o()({},e,h(t,e.content),{content:e.content}),i=c.a.pick(n,"attributes","author","html","tags","content","name","path","sha");n.title=i.title=i.attributes.doctitle,n.image=i.image=i.attributes["hp-image"],n.type=i.type=i.attributes["hp-type"],n.tags=i.tags=g(i.attributes),n.url=i.url=m(t,n.type,i.name);var r=o()({},n,{original:i});return n.type&&"post"!==n.type||(r.original.published_at=r.published_at=i.name.split("-").slice(0,3).join("-")),r});return e.nextState.posts=n,e}),e.on("requestRenderingPost",function(e){console.info("asciidocPlugin - requestRenderingPost"),console.log("asciidocPlugin - requestRenderingPost",e);var t=h(e.rootState.application.config,e.nextState.post.content);e.nextState.post=o()({},e.nextState.post,t),e.nextState.post.title=t.attributes.doctitle,e.nextState.post.image=t.attributes["hp-image"],e.nextState.post.type=t.attributes["hp-type"],e.nextState.post.tags=g(t.attributes),e.nextState.post.published_at=t.attributes.published_at||e.nextState.post.published_at||l()().format("YYYY-MM-DD");var n=t.attributes["hp-alt-title"];return e.nextState.post.type&&"post"!==e.nextState.post.type?e.nextState.post.name=d()(""+(n||e.nextState.post.title))+".adoc":e.nextState.post.name=d()(e.nextState.post.published_at+"-"+(n||e.nextState.post.title))+".adoc",e.nextState.post.url=m(e.rootState.application.config,e.nextState.post.type,e.nextState.post.name),e})};var i=n("woOf"),o=n.n(i),r=n("rzLr"),a=n.n(r),s=n("M4fF"),c=n.n(s),u=n("PJh5"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=a()(!1,window.XMLHttpRequest);function h(e,t){var n={doctype:"article",backend:"html5",safe:"unsafe",attributes:["showtitle!","allow-uri-read","imagesdir="+e.urls.site+"/images","icons=font"]},i=function(e){var t=e.split("pass::[more]");return{excerpt:t[0],full:t.join("")}}(t.replace(/gist::([0-9]*)\[(lines=[0-9]*\.\.[0-9]*)?,?(type=([\w.]*))?,?(file=([\w.]*))?\]/g,"[source,$4]\n----\ninclude::https://gist.githubusercontent.com/raw/$1/$6[$2]\n----\n")),o=f.load(i.excerpt,n),r=f.load(i.full,n);return{attributes:r.getAttributes(),excerpt:o.$convert(),html:r.$convert()}}function g(e){return e["hp-tags"]&&e["hp-tags"].split(",").map(function(e){return e.trim()}).filter(function(e){return""!==e})}function m(e,t,n){return e.urls.getContentUrl(n,t)}},dCDI:function(e,t,n){"use strict";(function(e,t){var i,o=n("pFYg"),r=n.n(o);i=function(e){var t;(t=e).overlayMode=function(e,n,i){return{startState:function(){return{base:t.startState(e),overlay:t.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(i){return{base:t.copyState(e,i.base),overlay:t.copyState(n,i.overlay),basePos:i.basePos,baseCur:null,overlayPos:i.overlayPos,overlayCur:null}},token:function(t,o){return(t!=o.streamSeen||Math.min(o.basePos,o.overlayPos)"},redirect:"/dashboard",meta:{auth:!0},children:t.nextState.routes.map(function(e){return console.log(e),e.entries}).reduce(function(e,t){return e.concat(t)},[])}]},i=new r.default(n);return i.routes=t.nextState.routes,i.beforeEach(function(e,t,n){var i=Object(a.default)();e.matched.some(function(e){return e.meta.auth})?i.state.authentication.isAuthenticated?n():n({path:"/login",query:{redirect:e.fullPath}}):n()}),i};var i=n("I3G/"),o=n.n(i),r=n("/ocq"),a=n("fbRD"),s=n("LEOq"),c=n.n(s),u=(n("7cn8"),n("YG9q")),l=n("QMmS"),p=n("3oxy"),d=n("H8Oa"),f=n("bxJ0"),h=n("WiUJ"),g=n("H1PK"),m=n("d/OL"),v=(n("Y2j8"),n("1AqL")),b=n("tLh+");console.log("router =============="),console.log("Router"),o.a.use(r.default),c.a.register(u.a,l.b,p.a,d.a,f.a,h.a,g.a,m.a,v.a,b.a),console.log("Registered plugins",c.a.list())},oS0V:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui center aligned grid"},[n("div",{staticClass:"ui middle aligned grid"},[e.requireInitilisation?n("div",{staticClass:"column"},[n("div",{staticClass:"ui segment"},[n("initialisation-component",{tag:"component"})],1)]):e._e(),e.requireInitilisation?e._e():n("div",{staticClass:"column",attrs:{id:"loginForm"}},[n("div",{staticClass:"ui segment"},[n("img",{staticClass:"image",attrs:{src:"https://hubpress.github.io/img/freeze/logo.png"}}),n("h2",{staticClass:"ui header"},[e._v("\n Welcome!\n ")]),n("div",{staticClass:"content"}),n("form",{staticClass:"ui medium form",on:{submit:function(t){t.preventDefault(),e.login({email:e.email,password:e.password})}}},[n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"user icon"}),n("input",{attrs:{type:"text",name:"email",placeholder:"Username or e-mail address"},domProps:{value:e.email},on:{input:e.updateEmail}})])]),n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"lock icon"}),n("input",{attrs:{type:"password",name:"password",placeholder:"Password"},domProps:{value:e.password},on:{input:e.updatePassword}})])]),e.isTwoFactorCodeRequired?n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"key icon"}),n("input",{attrs:{type:"text",name:"twoFactorCode",placeholder:"Two factor code"},domProps:{value:e.twoFactorCode},on:{input:e.updateTwoFactorCode}})])]):e._e(),n("button",{staticClass:"ui fluid large submit button",attrs:{type:"submit",name:"button"}},[e._v("Login")])]),e._m(0)])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui message"},[this._v("\n If you have questions about how to use HubPress, "),t("a",{attrs:{href:"https://hubpress.gitbooks.io/hubpress-knowledgebase/content/"}},[this._v("here is the right place.")])])}]};t.a=i},oz2E:function(e,t,n){"use strict";t.a={name:"dashboard",beforeCreate:function(){console.log("dashboard beforeCreate")},created:function(){console.log("dashboard created")}}},pSdL:function(e,t,n){var i=n("LnjV");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("2e903ce0",i,!0,{sourceMap:!1})},pyJH:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{},[n("h4",{staticClass:"ui dividing header"},[e._v("Informations")]),n("div",{staticClass:"field"},[n("label",[e._v("Title")]),n("input",{attrs:{type:"text",name:"hubpress-title",placeholder:"Title"},domProps:{value:e.site.title}})]),n("div",{staticClass:"field"},[n("label",[e._v("Description")]),n("input",{attrs:{type:"text",name:"hubpress-description",placeholder:"Description"},domProps:{value:e.site.description}})]),n("div",{staticClass:"field"},[n("label",[e._v("Logo")]),n("input",{attrs:{type:"text",name:"hubpress-logo",placeholder:"Logo"},domProps:{value:e.site.logo}})]),n("div",{staticClass:"field"},[n("label",[e._v("Cover image")]),n("input",{attrs:{type:"text",name:"hubpress-cover-image",placeholder:"Cover image"},domProps:{value:e.site.cover}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Rendering")]),n("div",{staticClass:"field"},[n("label",[e._v("Live preview render delay (ms)")]),n("input",{attrs:{type:"text",name:"hubpress-render-delay",placeholder:"300"},domProps:{value:e.meta.delay}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Generation")]),n("div",{staticClass:"field"},[n("label",[e._v("Theme")]),n("input",{attrs:{type:"text",name:"hubpress-theme",placeholder:"Theme"},domProps:{value:e.theme.name}})]),n("div",{staticClass:"field"},[n("label",[e._v("Posts per page")]),n("input",{attrs:{type:"text",name:"hubpress-posts-per-page",placeholder:"Posts per page"},domProps:{value:e.site.postsPerPage}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Services")]),n("div",{staticClass:"field"},[n("label",[e._v("Google analytics")]),n("input",{attrs:{type:"text",name:"hubpress-ga",placeholder:"Google analytics"},domProps:{value:e.site.googleAnalytics}})]),n("div",{staticClass:"field"},[n("label",[e._v("Disqus shortname")]),n("input",{attrs:{type:"text",name:"hubpress-disqus",placeholder:"Disqus shortname"},domProps:{value:e.site.disqus}})])])},staticRenderFns:[]};t.a=i},qZPA:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".html-rendering,.published-preview{min-width:100%;height:calc(100vh - 47px);min-height:calc(100vh - 47px)}",""])},qcny:function(e,t,n){"use strict";n.d(t,"b",function(){return D});var i=n("Xxa5"),o=n.n(i),r=n("//Fk"),a=(n.n(r),n("C4MV")),s=n.n(a),c=n("woOf"),u=n.n(c),l=n("Dd8w"),p=n.n(l),d=n("exGp"),f=n.n(d),h=n("MU8w"),g=(n.n(h),n("I3G/")),m=n.n(g),v=n("p3jY"),b=n.n(v),x=n("mtxM"),C=n("0F0d"),w=n("HBB+"),y=n("WRRc"),P=n("ct3O"),k=n("Hot+"),S=n("yTq1"),_=n("YLfZ"),R=n("J2Ti"),q=n("zQW4"),M=n("6hdJ");n.d(t,"a",function(){return P.a});var $,D=($=f()(o.a.mark(function e(t){var n,i,r,a,c,l,d;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(x.a)(t),(i=Object(R.a)(t)).$router=n,r=p()({router:n,store:i,nuxt:{defaultTransition:L,transitions:[L],setTransitions:function(e){return Array.isArray(e)||(e=[e]),e=e.map(function(e){return e=e?"string"==typeof e?u()({},L,{name:e}):u()({},L,e):L}),this.$options.nuxt.transitions=e,e},err:null,dateErr:null,error:function(e){e=e||null,r.context._errored=!!e,"string"==typeof e&&(e={statusCode:500,message:e});var n=this.nuxt||this.$options.nuxt;return n.dateErr=Date.now(),n.err=e,t&&(t.nuxt.error=e),e}}},S.a),i.app=r,a=t?t.next:function(e){return r.router.push(e)},c=void 0,t?c=n.resolve(t.url).route:(l=Object(_.d)(n.options.base),c=n.resolve(l).route),e.next=10,Object(_.m)(r,{route:c,next:a,error:r.nuxt.error.bind(r),store:i,payload:t?t.payload:void 0,req:t?t.req:void 0,res:t?t.res:void 0,beforeRenderFns:t?t.beforeRenderFns:void 0});case 10:if(d=function(e,t){if(!e)throw new Error("inject(key, value) has no key provided");if(!t)throw new Error("inject(key, value) has no value provided");r[e="$"+e]=t,i[e]=r[e];var n="__nuxt_"+e+"_installed__";m.a[n]||(m.a[n]=!0,m.a.use(function(){m.a.prototype.hasOwnProperty(e)||s()(m.a.prototype,e,{get:function(){return this.$root.$options[e]}})}))},window.__NUXT__&&window.__NUXT__.state&&i.replaceState(window.__NUXT__.state),"function"!=typeof q.a){e.next=15;break}return e.next=15,Object(q.a)(r.context,d);case 15:if("function"!=typeof M.a){e.next=18;break}return e.next=18,Object(M.a)(r.context,d);case 18:e.next=21;break;case 21:return e.abrupt("return",{app:r,router:n,store:i});case 22:case"end":return e.stop()}},e,this)})),function(e){return $.apply(this,arguments)});m.a.component(C.a.name,C.a),m.a.component(w.a.name,w.a),m.a.component(y.a.name,y.a),m.a.component(k.a.name,k.a),m.a.use(b.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var L={name:"page",mode:"out-in",appear:!0,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"}},r6qT:function(e,t,n){var i=n("HEYa");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("2b9275f1",i,!0,{sourceMap:!1})},"tLh+":function(e,t,n){"use strict";t.a=function(e){e.on("requestGenerateIndex",function(e){console.info("rssPlugin - requestGenerateIndex"),console.log("rssPlugin - requestGenerateIndex",e);var t=e.rootState.application.config.site||{},n=e.rootState.application.config.urls.site||"",i=e.nextState.publishedPosts||[],r=new o.a({title:t.title||"",description:t.description||"",feed_url:n+"/rss/",site_url:n,image_url:t.cover,ttl:"60"});i.forEach(function(e){r.item({title:e.title,description:e.html,url:""+n+e.url,categories:e.tags,author:e.author.name,date:e.published_at})});var a=r.xml(),s=[];return s.push({name:"RSS",path:"rss/index.xml",content:a,message:"Publish rss feed"}),e.nextState.elementsToPublish=(e.nextState.elementsToPublish||[]).concat(s),e})};var i=n("DVIz"),o=n.n(i)},unZF:function(e,t,n){"use strict";var i=n("BO1k"),o=n.n(i),r=n("GfDd"),a=r.keys();function s(e){var t=r(e);return t.default?t.default:t}var c={},u=!0,l=!1,p=void 0;try{for(var d,f=o()(a);!(u=(d=f.next()).done);u=!0){var h=d.value;c[h.replace(/^\.\//,"").replace(/\.(js|ts)$/,"")]=s(h)}}catch(e){l=!0,p=e}finally{try{!u&&f.return&&f.return()}finally{if(l)throw p}}t.a=c},vKgl:function(e,t,n){var i=n("EgsU");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("44921a73",i,!0,{sourceMap:!1})},vXEZ:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".nuxt-progress{position:fixed;top:0;left:0;right:0;height:2px;width:0;-webkit-transition:width .2s,opacity .4s;transition:width .2s,opacity .4s;opacity:1;background-color:#efc14e;z-index:999999}",""])},wGIl:function(e,t,n){var i=n("m8kW");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("6bc7b368",i,!0,{sourceMap:!1})},wQtD:function(e,t,n){"use strict";t.a={name:"navigation-settings",data:function(){return{newNav:{label:"",url:""},navigation:this.$store.state.application.config.navigation||[]}},computed:{isNotValid:function(){return""===this.newNav.label.trim()||""===this.newNav.url.trim()}},methods:{remove:function(e){this.navigation.splice(e,1)},clear:function(){this.newNav={label:"",url:""}},add:function(e){this.navigation.push(e),this.clear()}}}},wrAo:function(e,t,n){"use strict";t.a={name:"hubpress-settings-social",computed:{social:function(){return this.$store.state.application.config.socialnetwork||{}}}}},yJpT:function(e,t,n){var i=n("j9sj");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("33615082",i,!0,{sourceMap:!1})},yTq1:function(e,t,n){"use strict";var i=n("//Fk"),o=n.n(i),r=n("I3G/"),a=n.n(r),s=n("F88d"),c=n("XSDV"),u=(n.n(c),{_default:function(){return n.e(0).then(n.bind(null,"Ma2J")).then(function(e){return e.default||e})}}),l={};t.a={head:{title:"Hubpress: A web application to build your Blog",meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{hid:"description",name:"description",content:"Nuxt.js project"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"},{rel:"stylesheet",href:"../static/semantic/semantic.min.css"}],style:[],script:[]},render:function(e,t){var n=e("nuxt-loading",{ref:"loading"}),i=e(this.layout||"nuxt");return e("div",{domProps:{id:"__nuxt"}},[n,e("transition",{props:{name:"layout",mode:"out-in"}},[e("div",{domProps:{id:"__layout"},key:this.layoutName},[i])])])},data:function(){return{layout:null,layoutName:""}},beforeCreate:function(){a.a.util.defineReactive(this,"nuxt",this.$options.nuxt)},created:function(){a.a.prototype.$nuxt=this,"undefined"!=typeof window&&(window.$nuxt=this),this.error=this.nuxt.error},mounted:function(){this.$loading=this.$refs.loading},watch:{"nuxt.err":"errorChanged"},methods:{errorChanged:function(){this.nuxt.err&&this.$loading&&(this.$loading.fail&&this.$loading.fail(),this.$loading.finish&&this.$loading.finish())},setLayout:function(e){e&&l["_"+e]||(e="default"),this.layoutName=e;var t="_"+e;return this.layout=l[t],this.layout},loadLayout:function(e){var t=this;e&&(u["_"+e]||l["_"+e])||(e="default");var n="_"+e;return l[n]?o.a.resolve(l[n]):u[n]().then(function(e){return l[n]=e,delete u[n],l[n]}).catch(function(e){if(t.$nuxt)return t.$nuxt.error({statusCode:500,message:e.message})})}},components:{NuxtLoading:s.a}}},yUYC:function(e,t,n){"use strict";var i=n("I3G/"),o=n.n(i);t.a={name:"nuxt-loading",data:function(){return{percent:0,show:!1,canSuccess:!0,duration:5e3,height:"2px",color:"#3B8070",failedColor:"red"}},methods:{start:function(){var e=this;return this.show=!0,this.canSuccess=!0,this._timer&&(clearInterval(this._timer),this.percent=0),this._cut=1e4/Math.floor(this.duration),this._timer=setInterval(function(){e.increase(e._cut*Math.random()),e.percent>95&&e.finish()},100),this},set:function(e){return this.show=!0,this.canSuccess=!0,this.percent=Math.floor(e),this},get:function(){return Math.floor(this.percent)},increase:function(e){return this.percent=this.percent+Math.floor(e),this},decrease:function(e){return this.percent=this.percent-Math.floor(e),this},finish:function(){return this.percent=100,this.hide(),this},pause:function(){return clearInterval(this._timer),this},hide:function(){var e=this;return clearInterval(this._timer),this._timer=null,setTimeout(function(){e.show=!1,o.a.nextTick(function(){setTimeout(function(){e.percent=0},200)})},500),this},fail:function(){return this.canSuccess=!1,this}}}},ys1n:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".grid[data-v-94154cf6]{margin:0;height:100%;background-color:#dadada}#loginForm.column[data-v-94154cf6]{max-width:450px;text-align:center}.column[data-v-94154cf6]{max-width:750px}",""])},zQW4:function(e,t,n){"use strict";for(var i=n("woOf"),o=n.n(i),r=n("//Fk"),a=n.n(r),s=n("BO1k"),c=n.n(s),u=n("mtWM"),l=n.n(u),p={setHeader:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",i=!0,o=!1,r=void 0;try{for(var a,s=c()(Array.isArray(n)?n:[n]);!(i=(a=s.next()).done);i=!0){var u=a.value;if(!t)return void delete this.defaults.headers[u][e];this.defaults.headers[u][e]=t}}catch(e){o=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw r}}},setToken:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",i=e?(t?t+" ":"")+e:null;this.setHeader("Authorization",i,n)},onRequest:function(e){this.interceptors.request.use(function(t){return e(t)||t})},onResponse:function(e){this.interceptors.response.use(function(t){return e(t)||t})},onRequestError:function(e){this.interceptors.request.use(void 0,function(t){return e(t)||a.a.reject(t)})},onResponseError:function(e){this.interceptors.response.use(void 0,function(t){return e(t)||a.a.reject(t)})},onError:function(e){this.onRequestError(e),this.onResponseError(e)}},d=function(e){p["$"+e]=function(){return this[e].apply(this,arguments).then(function(e){return e&&e.data})}},f=["request","delete","get","head","options","post","put","patch"],h=0;h1&&(r=(e.path||"")+"page/"+o+"/index.html"),o>1&&(v=o-1),oo-1||g+1===t.length){var w=l.a.template(e.template,{pagination:{prev:v,next:m,page:o,pages:h,total:t.length,limit:u},context:"index"===e.template&&0===v?"home":e.template,posts:a,tag:e.tag,author:e.author,title:i.title,description:i.description,socialnetwork:p,relativeUrl:""},{config:n,theme:e.opts.nextState.theme});s.push({name:"page-"+o,path:r,content:w,message:"Publish page-"+o+" "+e.template}),a=[],o++}}),e.opts.nextState.elementsToPublish=(e.opts.nextState.elementsToPublish||[]).concat(s),e.opts}}]),e}();t.a=new f},BdWi:function(e,t,n){"use strict";t.a=function(e){console.info("PagesGenerator - generate"),console.log("PagesGenerator - generate",e);var t=e;return e.nextState.publishedPages.forEach(function(e){t=Object(o.a)(t,e)}),t};n("APUd");var i=n("j+6P"),o=(n.n(i),n("KgKs"))},E1SC:function(e,t,n){"use strict";var i=n("SUis"),o=n("7Fxy");var r=function(e){n("vKgl")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},EgsU:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".posts-container .menu{min-height:47px}.posts-container{height:100%;overflow:auto}.posts.ui.container{padding-top:60px}.image.cover>div{width:100%;height:200px;background-size:cover;background-repeat:no-repeat;background-position:50% 50%}@media screen and (max-width:622px){.posts.ui.container .ui.card .image.cover{display:none}}",""])},F6eF:function(e,t,n){"use strict";var i=n("7t+N"),o=n.n(i);t.a={name:"initialise-configuration",data:function(){return{username:"",repositoryName:"hubpress.io",branch:"master",cname:void 0}},mounted:function(){o()("div.dropdown").dropdown()},computed:{isValid:function(){return""!=this.username.trim()&&""!=this.repositoryName.trim()}},methods:{submit:function(){var e={username:this.username,repositoryName:this.repositoryName,branch:this.branch,cname:this.cname};this.$store.dispatch("application:save-startup-config",e)}}}},F88d:function(e,t,n){"use strict";var i=n("yUYC"),o=n("cmzl");var r=function(e){n("0xYM")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},FIB3:function(e,t,n){"use strict";t.a={name:"nuxt-error",props:["error"],head:function(){return{title:this.message,meta:[{name:"viewport",content:"width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"}]}},computed:{statusCode:function(){return this.error&&this.error.statusCode||500},message:function(){return this.error.message||"Error"}}}},FdPX:function(e,t,n){"use strict";var i={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"__nuxt-error-page"},[t("div",{staticClass:"error"},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"90",height:"90",fill:"#DBE1EC",viewBox:"0 0 48 48"}},[t("path",{attrs:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}})]),t("div",{staticClass:"title"},[this._v(this._s(this.message))]),404===this.statusCode?t("p",{staticClass:"description"},[t("nuxt-link",{staticClass:"error-link",attrs:{to:"/"}},[this._v("Back to the home page")])],1):this._e(),this._m(0)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"logo"},[t("a",{attrs:{href:"https://nuxtjs.org",target:"_blank",rel:"noopener"}},[this._v("Nuxt.js")])])}]};t.a=i},FoP8:function(module,__webpack_exports__,__webpack_require__){"use strict";function applyScript(hasChanged){if(hasChanged){for(var element=document.getElementById("html-content"),scripts=element.getElementsByTagName("script"),addedScripts=[],i=0;i.menu[data-v-0536f20d]{height:47px}",""])},HUXV:function(e,t,n){"use strict";var i=n("6Ndi");t.a={refreshAfterSavedConfig:function(e){return i.a.fireRequestTheme(e).then(function(t){return i.a.fireReceiveTheme(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return console.time("Build content"),e}).then(function(e){return i.a.fireRequestGenerateIndex(e)}).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGeneratePosts(e)}).then(function(e){return i.a.fireReceiveGeneratePosts(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)}).then(function(e){return i.a.fireRequestLocalPublishedPages(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPages(e)}).then(function(e){return i.a.fireRequestGeneratePages(e)}).then(function(e){return i.a.fireReceiveGeneratePages(e)}).then(function(e){return console.timeEnd("Build content"),e}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})}}},"Hot+":function(e,t,n){"use strict";var i=n("I3G/"),o=n.n(i),r=n("HBB+"),a=n("ct3O"),s=n("YLfZ");t.a={name:"nuxt",props:["nuxtChildKey","keepAlive"],render:function(e){return this.nuxt.err?e("nuxt-error",{props:{error:this.nuxt.err}}):e("nuxt-child",{key:this.routerViewKey,props:this.$props})},beforeCreate:function(){o.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(s.b)(this.$route.matched[0].path)(this.$route.params);var e=this.$route.matched[0]&&this.$route.matched[0].components.default;return e&&e.options&&e.options.key?"function"==typeof e.options.key?e.options.key(this.$route):e.options.key:this.$route.path}},components:{NuxtChild:r.a,NuxtError:a.a}}},IBrK:function(e,t,n){"use strict";var i=n("F6eF"),o=n("N3Gg");var r=function(e){n("XkEn")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Ie2b:function(e,t){},Irdm:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"settings-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.submit(t)}}},[e._m(0)])])]),n("div",{staticClass:"ui container settings-content"},[e._m(1),n("div",{staticClass:"ui divider"}),n("form",{staticClass:"ui form",attrs:{id:"mainForm"}},[n("div",{staticClass:"ui secondary pointing menu"},[n("div",{staticClass:"item active",attrs:{"data-tab":"application",id:"application-tab"}},[e._v("Application")]),e._l(e.tabs,function(t){return n("div",{key:t.id,staticClass:"item",attrs:{"data-tab":t.id}},[e._v(e._s(t.label))])})],2),n("div",{staticClass:"ui bottom attached tab segment active",attrs:{"data-tab":"application"}},[n("h4",{staticClass:"ui dividing header"},[e._v("Domain")]),n("div",{staticClass:"field"},[n("label",[e._v("CNAME")]),n("input",{attrs:{type:"text",name:"application-cname",placeholder:"CNAME"},domProps:{value:e.config.meta.cname}})]),n("h4",{staticClass:"ui dividing header"},[e._v("Metadata (set in config.json)")]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub username")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-username",placeholder:"Github username"},domProps:{value:e.config.meta.username}})]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub repository name")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-repository-name",placeholder:"GitHub repository name"},domProps:{value:e.config.meta.repositoryName}})]),n("div",{staticClass:"disabled field"},[n("label",[e._v("GitHub branch")]),n("input",{attrs:{type:"text",disabled:"",name:"application-github-branch",placeholder:"GitHub branch"},domProps:{value:e.config.meta.branch}})]),e._m(2)]),e._l(e.tabs,function(e){return n("div",{key:e.id,staticClass:"ui bottom attached tab segment ",attrs:{"data-tab":e.id}},[n(e.id,{tag:"component"})],1)})],2)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Save your settings","data-position":"bottom right"}},[t("i",{staticClass:"save large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"ui center aligned icon header"},[t("i",{staticClass:"circular settings icon"}),this._v("\n Settings\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"disabled field"},[t("label",[this._v("Blog URL")]),t("input",{attrs:{type:"text",disabled:"",name:"application-blog-url",placeholder:"Blog URL"}})])}]};t.a=i},J2Ti:function(e,t,n){"use strict";n.d(t,"a",function(){return y});var i=n("woOf"),o=n.n(i),r=n("BO1k"),a=n.n(r),s=n("I3G/"),c=n.n(s),u=n("NYxO");c.a.use(u.default);var l=n("1H2/"),p=l.keys(),d={},f=void 0;if(p.forEach(function(e){-1!==e.indexOf("./index.")&&(f=e)}),f&&(d=P(f)),"function"!=typeof d){d.modules||(d.modules={});var h=!0,g=!1,m=void 0;try{for(var v,b=a()(p);!(h=(v=b.next()).done);h=!0){var x=v.value,C=x.replace(/^\.\//,"").replace(/\.(js|ts)$/,"");if("index"!==C){var w=C.split(/\//);(e=k(d,w))[C=w.pop()]=P(x),e[C].namespaced=!0}}}catch(e){g=!0,m=e}finally{try{!h&&b.return&&b.return()}finally{if(g)throw m}}}var y=d instanceof Function?d:function(){return new u.default.Store(o()({strict:!1},d,{state:d.state instanceof Function?d.state():{}}))};function P(e){var t=l(e),n=t.default||t;if(n.commit)throw new Error("[nuxt] store/"+e.replace("./","")+" should export a method which returns a Vuex instance.");if(n.state&&"function"!=typeof n.state)throw new Error("[nuxt] state should be a function in store/"+e.replace("./",""));return n}function k(e,t){if(1===t.length)return e.modules;var n=t.shift();return e.modules[n]=e.modules[n]||{},e.modules[n].namespaced=!0,e.modules[n].modules=e.modules[n].modules||{},k(e.modules[n],t)}},JtYm:function(e,t,n){"use strict";var i=n("6Ndi");function o(e){return i.a.fireRequestLocalPosts(e).then(function(e){return i.a.fireReceiveLocalPosts(e)})}t.a={deletePost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=t,e}).then(function(e){return e.nextState.post.original?i.a.fireRequestDeleteRemotePost(e).then(function(e){return i.a.fireReceiveDeleteRemotePost(e)}):e}).then(function(e){return i.a.fireRequestDeleteLocalPost(e)}).then(function(e){return i.a.fireReceiveDeleteLocalPost(e)}).then(function(e){return e.nextState.post.published?i.a.fireRequestDeleteRemotePublishedPost(e).then(function(e){return i.a.fireReceiveDeleteRemotePublishedPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return i.a.fireRequestGenerateIndex(e)}).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)}):e}).then(o)},getLocalPost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)})},getLocalPosts:o,remoteSavePost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){return i.a.fireRequestSaveRemotePost(e)}).then(function(e){return i.a.fireReceiveSaveRemotePost(e)}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)})},renderAndSavePost:function(e){return i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){return e.nextState.post.content=e.payload.post.content,e}).then(function(e){return i.a.fireRequestRenderingPost(e)}).then(function(e){return i.a.fireReceiveRenderingPost(e)}).then(function(e){return e.nextState.post&&e.nextState.post.title?i.a.fireRequestSaveLocalPost(e).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}):e}).then(function(e){var t=e.nextState.post.original;return e.nextState.post.original=e.nextState.post,e.nextState.post.original.author=e.nextState.post.original.author||e.rootState.authentication.userInformations,i.a.fireRequestGeneratePost(e).then(function(e){return i.a.fireReceiveGeneratePost(e)}).then(function(e){var n=e.nextState.elementsToPublish[0]||{};return e.nextState.post.publishedContent=n.content,e.nextState.post.original=t,e})})},publishPost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=_.union(e.nextState.post.tags,t),e}).then(function(e){return i.a.fireRequestSaveRemotePost(e)}).then(function(e){return i.a.fireReceiveSaveRemotePost(e)}).then(function(e){return e.nextState.post.original.author=e.nextState.post.original.author||e.nextState.post.author,e.nextState.post.published=1,e}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return i.a.fireRequestGeneratePost(e)}).then(function(e){return i.a.fireReceiveGeneratePost(e)}).then(function(e){return"post"!==e.nextState.post.type?e:i.a.fireRequestGenerateIndex(e).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)})}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})},unpublishPost:function(e){return e.currentState.elementsToPublish=[],i.a.fireRequestLocalPost(e).then(function(e){return i.a.fireReceiveLocalPost(e)}).then(function(e){var t=e.nextState.post.original&&e.nextState.post.original.tags||[];return e.nextState.tags=t,e}).then(function(e){return i.a.fireRequestDeleteRemotePublishedPost(e)}).then(function(e){return i.a.fireReceiveDeleteRemotePublishedPost(e)}).then(function(e){return e.nextState.post.published=0,e}).then(function(e){return i.a.fireRequestSaveLocalPost(e)}).then(function(e){return i.a.fireReceiveSaveLocalPost(e)}).then(function(e){return i.a.fireRequestLocalPublishedPosts(e)}).then(function(e){return i.a.fireReceiveLocalPublishedPosts(e)}).then(function(e){return"post"!==e.nextState.post.type?e:i.a.fireRequestGenerateIndex(e).then(function(e){return i.a.fireReceiveGenerateIndex(e)}).then(function(e){return i.a.fireRequestGenerateTags(e)}).then(function(e){return i.a.fireReceiveGenerateTags(e)}).then(function(e){return i.a.fireRequestGenerateAuthors(e)}).then(function(e){return i.a.fireReceiveGenerateAuthors(e)})}).then(function(e){return i.a.fireRequestSaveRemotePublishedElements(e)}).then(function(e){return i.a.fireReceiveSaveRemotePublishedElements(e)})}}},KMrN:function(e,t,n){"use strict";var i=n("LEOq"),o=n.n(i);t.a={authenticate:function(e){return function(e){return o.a.fire("requestAuthentication",e)}(e).then(function(e){return(t=e).nextState.twoFactorRequired?payload:o.a.fire("receiveAuthentication",t);var t})},initialize:function(e){return function(e){return o.a.fire("requestSavedAuth",e)}(e).then(function(e){return t=e,o.a.fire("receiveSavedAuth",t);var t})}}},KOTd:function(e,t,n){"use strict";t.a=function(e){console.info("AuthorGenerator - generate"),console.log("AuthorGenerator - generate",e);var t=void 0;if(!s.a.isTemplateAvailable("author"))return e;t=e.nextState.author?e.nextState.publishedPosts.filter(function(t){return t.author.login===e.nextState.author.login}):e.nextState.publishedPosts;var n=r.a.reduce(t,function(e,t){return e[t.author.login]=e[t.author.login]||[],e[t.author.login].push(t),e},{}),o=e;return r.a.each(n,function(e,t){var n=e[0].author;n.name=n.name||n.login,n.slug=t,n.website=n.blog,n.status="",o=i.a.generate({opts:o,posts:e,author:n,template:"author",path:"author/"+t+"/"})}),o};var i=n("APUd"),o=n("M4fF"),r=n.n(o),a=n("j+6P"),s=n.n(a),c=n("n+xr");n.n(c)},KgKs:function(e,t,n){"use strict";t.a=function(e,t){console.info("PostGenerator - generate"),console.log("PostGenerator - generate",e);var n=t,i=o()({},n.original);i.tags=a.a.map(i.tags,function(e){return{name:e,slug:l()(e)}});var r=i.author;i.author={id:r.id,name:r.name||r.login,location:r.location,website:r.blog,image:r.avatar_url,profile_image:r.avatar_url,bio:r.bio,status:"",slug:r.login};var s=e.rootState.application.config,u=s.urls;e.nextState.theme.name,e.nextState.theme.version,s.urls.theme;i.urls=u,i.status="published",i.feature_image=i.image;var p="index.adoc"===n.name?"home":n.type||"post";if(!c.a.isTemplateAvailable(p))return e;var d=c.a.template(p,{context:n.type||"post",socialnetwork:s.socialnetwork,relativeUrl:n.url,post:i,author:i.author},{config:s,theme:e.nextState.theme}),f=[];return f.push({title:n.title,image:n.image,name:n.name,path:s.urls.getContentGhPath(n.name,n.type),url:s.urls.getContentGhPath(n.name,n.type),content:d,message:"Publish "+n.name,published_at:n.published_at}),e.nextState.elementsToPublish=(e.nextState.elementsToPublish||[]).concat(f),e};var i=n("woOf"),o=n.n(i),r=n("M4fF"),a=n.n(r),s=n("j+6P"),c=n.n(s),u=n("n+xr"),l=n.n(u)},LB67:function(e,t,n){"use strict";var i=n("6Ndi");t.a={authenticate:function(e){return i.a.fireRequestAuthentication(e).then(function(e){return i.a.fireReceiveAuthentication(e)})}}},MHN4:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".about-content{padding-top:60px}",""])},Mha6:function(e,t,n){var i=n("ys1n");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("4942fa76",i,!0,{sourceMap:!1})},N3Gg:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"initialise-configuration"},[e._m(0),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"content"},[e._v("\n We need to initialize your configuration before a first use.\n ")]),n("div",{staticClass:"ui divider"}),n("form",{staticClass:"ui form",attrs:{id:"configurationForm"},on:{submit:function(t){t.preventDefault(),e.submit()}}},[n("div",{staticClass:"required field"},[n("label",[e._v("Username")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.username,expression:"username"}],attrs:{type:"text",name:"configuration-username",placeholder:"Your github username"},domProps:{value:e.username},on:{input:function(t){t.target.composing||(e.username=t.target.value)}}})]),n("div",{staticClass:"required field"},[n("label",[e._v("Repository name")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.repositoryName,expression:"repositoryName"}],attrs:{type:"text",name:"configuration-cname",placeholder:"The name of your repository"},domProps:{value:e.repositoryName},on:{input:function(t){t.target.composing||(e.repositoryName=t.target.value)}}})]),n("div",{staticClass:"required field"},[n("label",[e._v("Branch")]),n("div",{staticClass:"ui selection dropdown"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.branch,expression:"branch"}],attrs:{type:"hidden",name:"branch"},domProps:{value:e.branch},on:{input:function(t){t.target.composing||(e.branch=t.target.value)}}}),n("i",{staticClass:"dropdown icon"}),n("div",{staticClass:"default text"},[e._v("master")]),e._m(1)])]),n("div",{staticClass:"field"},[n("label",[e._v("Domain name")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.cname,expression:"cname"}],attrs:{type:"text",name:"configuration-cname",placeholder:"Your domain name if you have one"},domProps:{value:e.cname},on:{input:function(t){t.target.composing||(e.cname=t.target.value)}}})]),n("button",{staticClass:"ui fluid large submit button",attrs:{type:"submit",name:"button",disabled:!e.isValid}},[e._v("Ok, let's go!")])]),e._m(2)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"ui center aligned icon header"},[t("i",{staticClass:"circular configure icon"}),this._v("\n Configuration\n ")])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"menu"},[t("div",{staticClass:"item",attrs:{"data-value":"master"}},[this._v("master")]),t("div",{staticClass:"item",attrs:{"data-value":"gh-pages"}},[this._v("gh-pages")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui message"},[this._v("\n If you have questions about how to use HubPress, "),t("a",{attrs:{href:"https://hubpress.gitbooks.io/hubpress-knowledgebase/content/"}},[this._v("here is the right place.")])])}]};t.a=i},NpFX:function(e,t,n){"use strict";var i=n("FoP8"),o=n("XO7e");var r=function(e){n("YDvP")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Pm0L:function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"f",function(){return o}),n.d(t,"g",function(){return r}),n.d(t,"h",function(){return a}),n.d(t,"d",function(){return s}),n.d(t,"c",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"a",function(){return l});var i="login:submit",o="login:updateEmail",r="login:updatePassword",a="login:updateTwoFactorCode",s="authorisation:request-login",c="authorisation:receive-login",u="authorisation:failure-login",l="authorisation:authentication-done"},Q7NK:function(e,t,n){"use strict";(function(e,t){var i,o=n("pFYg"),r=n.n(o);i=function(e){e.defineMode("asciidoc",function(e,t){var n=1e3,i=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],i=[],o=0,r=this.matchMappings[t]={defaultToken:"text"},a="g",s=[],c=0;c1?this.$applyToken:u.token);p>1&&(/\\\d/.test(u.regex)?l=u.regex.replace(/\\([0-9]+)/g,function(e,t){return"\\"+(parseInt(t,10)+o+1)}):(p=1,l=this.removeCapturingGroups(u.regex)),u.splitRegex||"string"==typeof u.token||s.push(u)),r[o]=c,o+=p,i.push(l),u.onMatch||(u.onMatch=null)}}s.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)},this),this.regExps[t]=new RegExp("("+i.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(e){n=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var i=[],o=0,r=n.length;ol){var m=e.substring(l,g-h.length);p.type==d?p.value+=m:(p.type&&u.push(p),p={type:d,value:m})}for(var v=0;vn){for(;l1&&i[0]!==o&&i.unshift(o),{tokens:u,state:i.length?i:o}}}).call(i.prototype);var o={empty:null,text:null,keyword:"keyword",control:"keyword",operator:"operator",constant:"atom",numeric:"number",character:"atom",escape:"atom",variable:"variable",parameter:"variable-3",language:"variable-2",comment:"comment",line:"comment","double-slash":"comment","double-dash":"comment","number-sign":"comment",percentage:"comment",block:"comment",doc:"comment",string:"string",quoted:"string",single:"string",double:"string",triple:"string",unquoted:"string",interpolated:"string",regexp:"string-2",meta:"keyword",literal:"qualifier",support:"builtin",markup:"tag",underline:"link",link:"link",strong:"strong",heading:"header",heading2:"header-2",heading3:"header-3",heading4:"header-4",heading5:"header-5",heading6:"header-6",em:"em",list:"variable-2",numbered:"variable-2",unnumbered:"variable-2",quote:"quote",raw:"variable-2",invalid:"error",illegal:"invalidchar",deprecated:"error"},r=function(e,t){var n=t.plannedTokens.shift();return void 0===n?null:(e.match(n.value),function(e){for(var t=null,n=0;n0)return r(e,t);var n=t.current,i=e.match(/.*$/,!1)[0],o=s.getLineTokens(i,n);return t.plannedTokens=o.tokens,t.current=o.state,r(e,t)},s=new i((new function(){function e(e){return(/\w/.test(e)?"\\b":"(?:\\B|^)")+e+"[^"+e+"].*?"+e+"(?![\\w*])"}this.$rules={start:[{token:"empty",regex:/$/},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"literal",regex:/^-{4,}\s*$/,next:"literalBlock"},{token:"literal",regex:/^\+{4,}\s*$/,next:"passthroughBlock"},{token:"keyword",regex:/^={4,}\s*$/},{token:"text",regex:/^\s*$/},{token:"empty",regex:"",next:"dissallowDelimitedBlock"}],dissallowDelimitedBlock:[{include:"paragraphEnd"},{token:"comment",regex:"^//.+$"},{token:"keyword",regex:"^(?:NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s"},{include:"listStart"},{token:"literal",regex:/^\s+.+$/,next:"indentedBlock"},{token:"empty",regex:"",next:"text"}],paragraphEnd:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"commentBlock"},{token:"tableBlock",regex:/^\s*[|!]=+\s*$/,next:"tableBlock"},{token:"keyword",regex:/^(?:--|''')\s*$/,next:"start"},{token:"option",regex:/^\[.*\]\s*$/,next:"start"},{token:"pageBreak",regex:/^>{3,}$/,next:"start"},{token:"literal",regex:/^\.{4,}\s*$/,next:"listingBlock"},{token:"titleUnderline",regex:/^(?:={2,}|-{2,}|~{2,}|\^{2,}|\+{2,})\s*$/,next:"start"},{token:"singleLineTitle",regex:/^={1}\s+\S.*$/,next:"start"},{token:"singleLineTitle2",regex:/^={2}\s+\S.*$/,next:"start"},{token:"singleLineTitle3",regex:/^={3}\s+\S.*$/,next:"start"},{token:"singleLineTitle4",regex:/^={4}\s+\S.*$/,next:"start"},{token:"singleLineTitle5",regex:/^={5}\s+\S.*$/,next:"start"},{token:"singleLineTitle6",regex:/^={6}\s+\S.*$/,next:"start"},{token:"otherBlock",regex:/^(?:\*{2,}|_{2,})\s*$/,next:"start"},{token:"optionalTitle",regex:/^\.[^.\s].+$/,next:"start"}],listStart:[{token:"keyword",regex:/^\s*(?:\d+\.|[a-zA-Z]\.|[ixvmIXVM]+\)|\*{1,5}|-|\.{1,5})\s/,next:"listText"},{token:"meta.tag",regex:/^.+(?::{2,4}|;;)(?: |$)/,next:"listText"},{token:"keyword",regex:/^\+\s*$/,next:"start"}],text:[{token:["link","link"],regex:/((?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+)(\[.*?\])/},{token:["link","link"],regex:/(?:https?:\/\/|ftp:\/\/|file:\/\/|mailto:|callto:)[^\s\[]+/},{token:"link",regex:/\b[\w\.\/\-]+@[\w\.\/\-]+\b/},{include:"macros"},{include:"paragraphEnd"},{token:"literal",regex:/\+{3,}/,next:"smallPassthrough"},{token:"escape",regex:/\((?:C|TM|R)\)|\.{3}|->|<-|=>|<=|&#(?:\d+|x[a-fA-F\d]+);|(?: |^)--(?=\s+\S)/},{token:"escape",regex:/\\[_*'`+#]|\\{2}[_*'`+#]{2}/},{token:"keyword",regex:/\s\+$/},{token:"text",regex:"[a-zA-Z¡-￿]+\\b"},{token:["keyword","string","keyword"],regex:/(<<[\w\d\-$]+,)(.*?)(>>|$)/},{token:"keyword",regex:/<<[\w\d\-$]+,?|>>/},{token:"constant.character",regex:/\({2,3}.*?\){2,3}/},{token:"support.function.list.callout",regex:/^(?:<\d+>|\d+>|>) /,next:"text"},{token:"keyword",regex:/\[\[.+?\]\]/},{token:"support",regex:/^\[{3}[\w\d =\-]+\]{3}/},{include:"quotes"},{token:"empty",regex:/^\s*$/,next:"start"}],listText:[{include:"listStart"},{include:"text"}],indentedBlock:[{token:"literal",regex:/^[\s\w].+$/,next:"indentedBlock"},{token:"literal",regex:"",next:"start"}],listingBlock:[{token:"literal",regex:/^\.{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],literalBlock:[{token:"literal",regex:/^-{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"constant.numeric",regex:"<\\d+>"},{token:"literal",regex:"[^<]+"},{token:"literal",regex:"<"}],passthroughBlock:[{token:"literal",regex:/^\+{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:"[a-zA-Z¡-￿]+\\b|\\d+"},{include:"macros"},{token:"literal",regex:"."}],smallPassthrough:[{token:"literal",regex:/[+]{3,}/,next:"dissallowDelimitedBlock"},{token:"literal",regex:/^\s*$/,next:"dissallowDelimitedBlock"},{token:"literal",regex:"[a-zA-Z¡-￿]+\\b|\\d+"},{include:"macros"}],commentBlock:[{token:"doc.comment",regex:/^\/{4,}\s*$/,next:"dissallowDelimitedBlock"},{token:"doc.comment",regex:"^.*$"}],tableBlock:[{token:"tableBlock",regex:/^\s*\|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"innerTableBlock"},{token:"tableBlock",regex:/\|/},{include:"text",noEscape:!0}],innerTableBlock:[{token:"tableBlock",regex:/^\s*!={3,}\s*$/,next:"tableBlock"},{token:"tableBlock",regex:/^\s*|={3,}\s*$/,next:"dissallowDelimitedBlock"},{token:"tableBlock",regex:/\!/}],macros:[{token:"macro",regex:/{[\w\-$]+}/},{token:["text","string","text","constant.character","text"],regex:/({)([\w\-$]+)(:)?(.+)?(})/},{token:["text","markup.list.macro","keyword","string"],regex:/(\w+)(footnote(?:ref)?::?)([^\s\[]+)?(\[.*?\])?/},{token:["markup.list.macro","keyword","string"],regex:/([a-zA-Z\-][\w\.\/\-]*::?)([^\s\[]+)(\[.*?\])?/},{token:["markup.list.macro","keyword"],regex:/([a-zA-Z\-][\w\.\/\-]+::?)(\[.*?\])/},{token:"keyword",regex:/^:.+?:(?= |$)/}],quotes:[{token:"string.italic",regex:/__[^_\s].*?__/},{token:"string.italic",regex:e("_")},{token:"keyword.bold",regex:/\*\*[^*\s].*?\*\*/},{token:"keyword.bold",regex:e("\\*")},{token:"literal",regex:/\+\+[^+\s].*?\+\+/},{token:"literal",regex:e("\\+")},{token:"literal",regex:/\$\$.+?\$\$/},{token:"literal",regex:e("\\$")},{token:"literal",regex:/``[^`\s].*?``/},{token:"literal",regex:e("`")},{token:"keyword",regex:/\^[^\^].*?\^/},{token:"keyword",regex:e("\\^")},{token:"keyword",regex:/~[^~].*?~/},{token:"keyword",regex:e("~")},{token:"keyword",regex:/##?/},{token:"keyword",regex:/(?:\B|^)``|\b''/}]};var t={macro:"constant.character",tableBlock:"doc.comment",titleUnderline:"markup.heading",singleLineTitle:"markup.heading",singleLineTitle2:"markup.heading2",singleLineTitle3:"markup.heading3",singleLineTitle4:"markup.heading4",singleLineTitle5:"markup.heading5",singleLineTitle6:"markup.heading6",pageBreak:"string",option:"string.regexp",otherBlock:"markup.list",literal:"support.function",optionalTitle:"constant.numeric",escape:"constant.language.escape",link:"markup.underline.list"};for(var n in this.$rules)for(var i=this.$rules[n],o=i.length;o--;){var r=i[o];if(r.include||"string"==typeof r){var a=[o,1].concat(this.$rules[r.include||r]);r.noEscape&&(a=a.filter(function(e){return!e.next})),i.splice.apply(i,a)}else r.token in t&&(r.token=t[r.token])}}).$rules);return{startState:function(){return{current:"start",plannedTokens:[]}},blankLine:function(e){a("",e)},token:a}}),e.defineMIME("text/x-asciidoc","asciidoc")},"object"==("undefined"==typeof exports?"undefined":r()(exports))&&"object"==r()(e)?i(n("8U58")):"object"==("undefined"==typeof brackets?"undefined":r()(brackets))&&brackets.getModule?i(brackets.getModule("thirdparty/CodeMirror2/lib/codemirror")):"function"==typeof define&&n("nErl")?define(["codemirror"],i):i(t)}).call(t,n("f1Eh")(e),n("8U58"))},QMmS:function(e,t,n){"use strict";t.b=function(e){return e.on("application:stores",function(e){var t;console.info("authenticationPlugin - application:stores"),console.log("authenticationPlugin - application:stores",e);var n={state:{isAuthenticated:!1,isTwoFactorCodeRequired:!1,credentials:{email:void 0,password:void 0,twoFactorCode:void 0}},mutations:(t={},o()(t,u.f,function(e,t){e.credentials.email=t}),o()(t,u.g,function(e,t){e.credentials.password=t}),o()(t,u.h,function(e,t){e.credentials.twoFactorCode=t}),o()(t,u.d,function(e){e.isLoading=!0}),o()(t,u.c,function(e,t){a.a.merge(e,t)}),o()(t,u.b,function(e,t){e.isAuthenticated=!1}),o()(t,l,function(e,t){a.a.merge(e,t.authentication)}),t),actions:o()({},u.e,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,r=e.state;i(u.d);var c={rootState:a.a.cloneDeep(o),currentState:a.a.cloneDeep(r)};n("application:loading").then(function(e){return s.a.authenticate(c)}).then(function(e){i(u.c,e.nextState)}).then(function(e){return r.isAuthenticated?n(p,!0).then(function(e){return n(u.a)}):r.isTwoFactorCodeRequired?n("application:notify",{icon:"unlock",header:"Two factor code",message:"A code is required to complete your authentication.",level:"warning"}):n("application:notify",{icon:"warning circle",header:"Authentication failed",message:"A error occured during the authentication.",level:"error"})}).then(function(e){return n("application:loaded")}).then(function(e){return t.push(t.currentRoute.query.redirect||"/")}).catch(function(e){n("application:loaded").then(function(e){return n("application:notify",{icon:"warning circle",header:"Authentication failed",message:"A error occured during the authentication.",level:"error"})})})}),getters:{}};return e.nextState.stores.authentication=n,console.log("authenticationPlugin - application:stores - return",e),e}),e.on("application:routes",function(e){return e}),e.on("application:initialize-app",function(e){return console.info("authenticationPlugin - application:initialize-app"),console.log("authenticationPlugin - application:initialize-app",e),s.a.initialize(e).then(function(e){return e})}),e.on("authentication:authenticate",function(e){return console.info("authenticationPlugin - authentication:authenticate"),console.log("authenticationPlugin - authentication:authenticate",e,s.a),s.a.authenticate(e)}),{getName:function(){return"authenticationPlugin"}}},n.d(t,"a",function(){return d});var i=n("bOdI"),o=n.n(i),r=n("M4fF"),a=n.n(r),s=n("KMrN"),c=n("RUoO"),u=n("Pm0L"),l="application:initialize-app",p="application:save-config";var d=c.a},RUoO:function(e,t,n){"use strict";var i=n("6yLl"),o=n("oS0V");var r=function(e){n("Mha6")},a=n("VU/8")(i.a,o.a,!1,r,"data-v-94154cf6",null);t.a=a.exports},RsIG:function(e,t,n){"use strict";var i=n("woOf"),o=n.n(i),r=n("LEOq"),a=n.n(r);function s(e){return a.a.fire("application:receive-config",e)}t.a={initializeRoutes:function(e){return a.a.fire("application:routes",e)},initializeApp:function(e,t){return a.a.fire("application:initialize-app",e,t)},initializePlugins:function(e,t){return a.a.fire("application:initialize-plugins",e,t)},initializeConfig:function(e){return console.log("application - initializeConfig",e),function(e){return a.a.fire("application:request-config",e)}(e).then(s)},startUpConfig:function(e){return console.log("application - startUpConfig",e),s(e)},prepareConfig:function(e){return a.a.fire("application:prepare-config",e)},saveConfig:function(e){return function(e){return console.log("application - fireRequestSaveConfig",e),a.a.fire("application:request-save-config",e)}(e).then(function(t){return o()({},e,{nextState:t.nextState.application})}).then(s).then(function(t){return e.nextState.application=t.nextState,o()({},e)}).catch(function(e){console.log(e)})},saveConfigDone:function(e){return a.a.fire("application:save-config-done",e)}}},SDLk:function(e,t,n){"use strict";var i={render:function(){this.$createElement;this._self._c;return this._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"about-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",attrs:{href:"https://twitter.com/HubPressIO",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Follow us on twitter","data-position":"bottom right"}},[n("i",{staticClass:"twitter large icon"})])]),n("a",{staticClass:"item",attrs:{href:"https://gitter.im/HubPress/hubpress.io",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Wanna chat with us?","data-position":"bottom right"}},[n("i",{staticClass:"gitter large icon"})])]),n("a",{staticClass:"item",attrs:{href:"https://github.com/HubPress",target:"_blank"}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":"HubPress is opensource :)","data-position":"bottom right"}},[n("i",{staticClass:"github large icon"})])])])]),n("div",{staticClass:"about-content"},[n("div",{staticClass:"ui container"},[n("h2",{staticClass:"ui center aligned icon header"},[n("i",{staticClass:"circular users icon"}),e._v("\n The HubPress Team\n ")]),n("div",{staticClass:"ui divider"}),n("div",{staticClass:"row"},[n("div",{staticClass:"ui items divided"},[n("div",{staticClass:"item"},[n("div",{staticClass:"image"},[n("img",{attrs:{src:"https://avatars1.githubusercontent.com/u/2006548?v=3&s=460"}})]),n("div",{staticClass:"content"},[n("a",{staticClass:"header"},[e._v("Anthonny Quérouil")]),n("div",{staticClass:"meta"},[n("span",[e._v("The creator of HubPress")])]),n("div",{staticClass:"description"},[n("p",[e._v("Anthonny is a freelance developer and the creator of HubPress")]),n("p",[e._v("He started HubPress two years ago")])]),n("div",{staticClass:"extra"},[n("a",{staticClass:"ui label",attrs:{href:"https://twitter.com/anthonny_q",target:"_blank"}},[n("i",{staticClass:"twitter icon"}),e._v(" Twitter\n ")]),n("a",{staticClass:"ui label",attrs:{href:"https://github.com/anthonny",target:"_blank"}},[n("i",{staticClass:"github icon"}),e._v(" GitHub\n ")]),n("a",{staticClass:"ui label",attrs:{href:"http://anthonnyquerouil.fr/",target:"_blank"}},[n("i",{staticClass:"home icon"}),e._v(" Website\n ")])])])]),n("div",{staticClass:"item"},[n("div",{staticClass:"image"},[n("img",{attrs:{src:"https://avatars0.githubusercontent.com/u/952793?v=3&s=460"}})]),n("div",{staticClass:"content"},[n("a",{staticClass:"header"},[e._v("Jared Morgan")]),n("div",{staticClass:"meta"},[n("span",[e._v("The Docs guy")])]),n("div",{staticClass:"description"},[n("p",[e._v("By day, Jared is a Certified Scrum Product Owner (CSPO) and Technical Writer for Ladbrokes in Brisbane, Australia.")]),n("p",[e._v("By night, he uses his craft to improve open source software products one README at a time.")]),n("p",[e._v("In between, he uses his expertise in Pinball machines and knowledge of Android beta testing to improve digital pinball apps.")])]),n("div",{staticClass:"extra"},[n("a",{staticClass:"ui label",attrs:{href:"https://twitter.com/jaredmorgs",target:"_blank"}},[n("i",{staticClass:"twitter icon"}),e._v(" Twitter\n ")]),n("a",{staticClass:"ui label",attrs:{href:"https://github.com/jaredmorgs",target:"_blank"}},[n("i",{staticClass:"github icon"}),e._v(" GitHub\n ")]),n("a",{staticClass:"ui label",attrs:{href:"http://jaredleonmorgan.net/",target:"_blank"}},[n("i",{staticClass:"home icon"}),e._v(" Website\n ")])])])])])])])])])}]};t.a=i},SHkU:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._l(e.navigation,function(t,i){return n("div",{key:t.label,staticClass:"fields"},[n("div",{staticClass:"four wide field"},[n("input",{attrs:{type:"text",placeholder:"Label",name:"navigation-label-"+i},domProps:{value:t.label}})]),n("div",{staticClass:"eleven wide field"},[n("input",{attrs:{type:"text",placeholder:"http://www.mysite.com",name:"navigation-url-"+i},domProps:{value:t.url}})]),n("div",{staticClass:"one wide field"},[n("button",{staticClass:"ui icon button",on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.remove(i)}}},[n("i",{staticClass:"trash icon"})])])])}),n("div",{staticClass:"fields"},[n("div",{staticClass:"four wide field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNav.label,expression:"newNav.label"}],attrs:{type:"text",placeholder:"Label"},domProps:{value:e.newNav.label},on:{input:function(t){t.target.composing||e.$set(e.newNav,"label",t.target.value)}}})]),n("div",{staticClass:"eleven wide field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.newNav.url,expression:"newNav.url"}],attrs:{type:"text",placeholder:"http://www.mysite.com"},domProps:{value:e.newNav.url},on:{input:function(t){t.target.composing||e.$set(e.newNav,"url",t.target.value)}}})]),n("div",{staticClass:"one wide field"},[n("button",{staticClass:"ui icon button",attrs:{disabled:e.isNotValid},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.add(e.newNav)}}},[n("i",{staticClass:"add icon"})])])])],2)},staticRenderFns:[]};t.a=i},SUis:function(e,t,n){"use strict";(function(e){var i=n("PJh5"),o=n.n(i),r=n("RJtx"),a=n.n(r),s=n("lYDI");t.a={name:"posts",data:function(){return{postToDelete:{},filterValue:""}},beforeCreate:function(){},beforeMount:function(){this.$store.dispatch(s.a)},beforeDestroy:function(){e(".ui.basic.modal").remove()},mounted:function(){var t=this;e(".ui.basic.modal").modal({closable:!1,onDeny:function(){},onApprove:function(){t.$store.dispatch(s.d,t.postToDelete._id)}})},methods:{status:function(e){return!e.published?"Draft":"Published"},type:function(e){return e.type.replace(/\b\w/g,function(e){return e.toUpperCase()})},publishedAt:function(e){return!!e.published&&e.published_at&&o()(e.published_at).fromNow()||""},postCoverUrl:function(e){var t=e.image||"https://hubpress.github.io/img/logo.png";return t=t.startsWith("http")?t:e.attributes.$$smap.imagesdir+"/"+e.image},getPostStatusColor:function(e){return e.original?e.original.content!==e.content?"orange":"green":"red"},displayConfirmMessage:function(t){this.postToDelete=t,e(".ui.basic.modal").modal("show")},navigateToPost:function(e){this.$router.push({name:"post",params:{id:e._id}})},newPost:function(){this.$router.push({name:"post",params:{id:a.a.v4()}})},getPostTags:function(e){return e.tags||[]},getPostAuthor:function(e){return e.author||this.$store.state.authentication.userInformations},synchronize:function(){this.$store.dispatch(s.b)}},computed:{posts:function(){var e=this.filterValue.trim();return""===e?this.$store.state.hubpress.posts:this.$store.state.hubpress.posts.filter(function(t){return t.title.toLowerCase().indexOf(e.toLowerCase())>=0||t.tags&&t.tags.filter(function(t){return t.toLowerCase().indexOf(e.toLowerCase())>=0}).length})}}}}).call(t,n("7t+N"))},SjaB:function(e,t,n){var i=n("3fVB");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("2d76ba14",i,!0,{sourceMap:!1})},T23V:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o,r,a=n("pFYg"),s=n.n(a),c=n("mvHQ"),u=n.n(c),l=n("fZjL"),p=n.n(l),d=n("woOf"),f=n.n(d),h=n("Zzip"),g=n.n(h),m=n("5QVw"),v=n.n(m),b=n("//Fk"),x=n.n(b),C=n("I3G/"),w=n.n(C),y=n("unZF"),P=n("qcny"),k=n("YLfZ"),S=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=x.a))(function(o,r){function a(e){try{c(i.next(e))}catch(e){r(e)}}function s(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,s)}c((i=i.apply(e,t||[])).next())})},_=this&&this.__generator||function(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof v.a&&(r[g.a]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=i[2&r[0]?"return":r[0]?"throw":"next"])&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[0,o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1].row{padding-top:0;padding-bottom:0}.post-editor .ui.grid.light>.row{background-color:#f5f5f5;color:#202020}.post-editor .ui.grid.light>.row .ui.header{color:#202020}.post-editor .ui.grid.light>.row a{color:#aa759f}.post-editor .ui.grid.dark>.row,.post-editor .ui.grid.dark>.row .ui.header{background-color:#3f3f3f;color:#dcdccc}.post-editor .ui.grid.dark>.row .ui.header{color:#dcdccc}.post-editor .ui.grid.dark>.row a{color:#dcdcaa}.post-editor .ui.grid{padding-top:0;padding-bottom:0;margin:0}.post-editor .ui.grid .column{padding-top:0;margin-top:0;padding-bottom:0;margin-bottom:0}.vue-codemirror.container{min-height:100%;height:100%}#asciidoc-content,#asciidoc-preview{height:calc(100vh - 47px);min-height:calc(100vh - 47px)}#asciidoc-content.is-hidden{display:none}#asciidoc-preview{overflow-y:auto;padding-top:2em;font-size:1.2em;font-family:Menlo,Monaco,Consolas,Courier New,monospace;word-wrap:break-word}#asciidoc-preview.is-iframe{padding:0}#asciidoc-preview>div{max-width:750px!important;margin:auto}#asciidoc-preview.is-iframe>div{min-width:100%;margin:auto}#asciidoc-preview.is-fullscreen{width:100%!important}#asciidoc-preview>div .ui.header{font-family:Menlo,Monaco,Consolas,Courier New,monospace}#asciidoc-preview .content pre{background-color:#dcdccc;color:#2e2e2e;padding:10px;border-radius:5px;overflow:auto}#asciidoc-preview .paragraph{padding:.75em 0}#asciidoc-preview img{width:100%;max-width:100%}@media screen and (max-width:992px){#asciidoc-content{display:block}#asciidoc-content.is-preview-visible,#asciidoc-preview{display:none}#asciidoc-preview.is-preview-visible{display:block}}.item .ui.icon .rocket.unpublish{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.cm-s-zenburn.CodeMirror .CodeMirror-gutters{background:#3f3f3f!important}.cm-s-zenburn.CodeMirror .CodeMirror-foldgutter-open,.CodeMirror-foldgutter-folded{color:#999}.cm-s-zenburn.CodeMirror .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-zenburn.CodeMirror{background-color:#3f3f3f;color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-builtin{color:#dcdccc;font-weight:700}.cm-s-zenburn.CodeMirror span.cm-comment{color:#7f9f7f}.cm-s-zenburn.CodeMirror span.cm-keyword{color:#f0dfaf;font-weight:700}.cm-s-zenburn.CodeMirror span.cm-atom{color:#bfebbf}.cm-s-zenburn.CodeMirror span.cm-def{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-variable{color:#dfaf8f}.cm-s-zenburn.CodeMirror span.cm-variable-2{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-string,.cm-s-zenburn.CodeMirror span.cm-string-2{color:#cc9393}.cm-s-zenburn.CodeMirror span.cm-number{color:#dcdccc}.cm-s-zenburn.CodeMirror span.cm-tag{color:#93e0e3}.cm-s-zenburn.CodeMirror span.cm-attribute,.cm-s-zenburn.CodeMirror span.cm-property{color:#dfaf8f}.cm-s-zenburn.CodeMirror span.cm-qualifier{color:#7cb8bb}.cm-s-zenburn.CodeMirror span.cm-meta{color:#f0dfaf}.cm-s-zenburn.CodeMirror span.cm-header,.cm-s-zenburn.CodeMirror span.cm-operator{color:#f0efd0}.cm-s-zenburn.CodeMirror span.CodeMirror-matchingbracket{-webkit-box-sizing:border-box;box-sizing:border-box;background:transparent;border-bottom:1px solid}.cm-s-zenburn.CodeMirror span.CodeMirror-nonmatchingbracket{border-bottom:1px solid;background:none}.cm-s-zenburn.CodeMirror .CodeMirror-activeline,.cm-s-zenburn.CodeMirror .CodeMirror-activeline-background{background:#000}.cm-s-zenburn.CodeMirror div.CodeMirror-selected{background:#545454}.cm-s-zenburn.CodeMirror .CodeMirror-focused div.CodeMirror-selected{background:#4f4f4f}.cm-s-base16-light.CodeMirror{background:#f5f5f5;color:#202020}.cm-s-base16-light.CodeMirror div.CodeMirror-selected{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-line::selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span::selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span>span::selection{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-line::-moz-selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span::-moz-selection,.cm-s-base16-light.CodeMirror .CodeMirror-line>span>span::-moz-selection{background:#e0e0e0}.cm-s-base16-light.CodeMirror .CodeMirror-gutters{background:#f5f5f5;border-right:0}.cm-s-base16-light.CodeMirror .CodeMirror-guttermarker{color:#ac4142}.cm-s-base16-light.CodeMirror .CodeMirror-guttermarker-subtle,.cm-s-base16-light.CodeMirror .CodeMirror-linenumber{color:#b0b0b0}.cm-s-base16-light.CodeMirror .CodeMirror-cursor{border-left:1px solid #505050}.cm-s-base16-light.CodeMirror span.cm-comment{color:#8f5536}.cm-s-base16-light.CodeMirror span.cm-atom,.cm-s-base16-light.CodeMirror span.cm-number{color:#aa759f}.cm-s-base16-light.CodeMirror span.cm-attribute,.cm-s-base16-light.CodeMirror span.cm-property{color:#90a959}.cm-s-base16-light.CodeMirror span.cm-keyword{color:#ac4142}.cm-s-base16-light.CodeMirror span.cm-string{color:#f4bf75}.cm-s-base16-light.CodeMirror span.cm-variable{color:#90a959}.cm-s-base16-light.CodeMirror span.cm-variable-2{color:#6a9fb5}.cm-s-base16-light.CodeMirror span.cm-def{color:#d28445}.cm-s-base16-light.CodeMirror span.cm-bracket{color:#202020}.cm-s-base16-light.CodeMirror span.cm-tag{color:#ac4142}.cm-s-base16-light.CodeMirror span.cm-link{color:#aa759f}.cm-s-base16-light.CodeMirror span.cm-error{background:#ac4142;color:#505050}.cm-s-base16-light.CodeMirror .CodeMirror-activeline-background{background:#dddcdc}.cm-s-base16-light.CodeMirror .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}",""])},THns:function(e,t,n){"use strict";t.a=function(e){console.info("PostsGenerator - generate"),console.log("PostsGenerator - generate",e);var t=e;return e.nextState.publishedPosts.forEach(function(e){t=Object(o.a)(t,e)}),t};n("APUd");var i=n("j+6P"),o=(n.n(i),n("KgKs"))},ThI1:function(e,t,n){"use strict";var i=n("oz2E"),o=n("mBSI");var r=function(e){n("yJpT")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},Tknw:function(e,t,n){"use strict";var i=n("wrAo"),o=n("zfI2");var r=function(e){n("YoMZ")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},WRRc:function(e,t,n){"use strict";t.a={name:"nuxt-link",functional:!0,render:function(e,t){return e("router-link",t.data,t.children)}}},WiUJ:function(e,t,n){"use strict";t.a=function(e){e.on("hubpress:request-theme",function(e){console.info("templatePlugin - hubpress:request-theme"),console.log("templatePlugin - hubpress:request-theme",e);var t,n,i,r,s,u=e.rootState.application.config.theme.name.toLowerCase(),p=e.rootState.application.config;return(t=u,n=p,i=a.a.defer(),r=[],s=n.urls.hubpress,c.a.get(s+"/themes/"+t+"/theme.json?dt="+Date.now()).end(function(e,n){if(e)i.reject(e);else{var o=n.body,u=o.version,p=!1,d=!1,f=!1;if(l.a.toPairs(o.files).forEach(function(e){var n=a.a.defer();r.push(n.promise),p=p||"pagination"===e[0],d=d||"nav"===e[0],f=f||"navigation"===e[0],c.a.get(s+"/themes/"+t+"/"+e[1]+"?v="+u).end(function(t,i){t?n.reject(t):n.resolve({name:e[0],path:e[1],content:i.text})})}),!p){var h=a.a.defer();r.push(h.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/pagination.hbs").end(function(e,t){e?h.reject(e):h.resolve({name:"pagination",path:"partials/pagination",content:t.text})})}if(!d){var g=a.a.defer();r.push(g.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/nav.hbs").end(function(e,t){e?g.reject(e):g.resolve({name:"nav",path:"partials/nav",content:t.text})})}if(!f){var m=a.a.defer();r.push(m.promise),c.a.get(s+"/hubpress/scripts/helpers/tpl/navigation.hbs").end(function(e,t){e?m.reject(e):m.resolve({name:"navigation",path:"partials/navigation",content:t.text})})}a.a.all(r).then(function(e){i.resolve({version:u,files:e})}).catch(function(e){console.log(e),i.reject(e)})}}),i.promise).then(function(t){var n={name:u,files:t.files,version:t.version};b.a.registerTheme(p,n),b.a.registerFiles(n.files);var i=o()({},n);return e.nextState=o()({},e.nextState,{theme:i}),e})}),e.on("requestGenerateIndex",function(e){console.info("templatePlugin - requestGenerateIndex"),console.log("templatePlugin - requestGenerateIndex",e);var t=Object(p.a)(e);return console.log("templatePlugin - requestGenerateIndex return",t),t}),e.on("requestGeneratePost",function(e){console.info("templatePlugin - requestGeneratePost"),console.log("templatePlugin - requestGeneratePost",e);var t=Object(d.a)(e,e.nextState.post);return console.log("templatePlugin - requestGeneratePost return",t),t}),e.on("requestGeneratePosts",function(e){console.info("templatePlugin - requestGeneratePosts"),console.log("templatePlugin - requestGeneratePosts",e);var t=Object(f.a)(e);return console.log("templatePlugin - requestGeneratePosts return",t),t}),e.on("requestGeneratePages",function(e){console.info("templatePlugin - requestGeneratePages"),console.log("templatePlugin - requestGeneratePages",e);var t=Object(h.a)(e);return console.log("templatePlugin - requestGeneratePages return",t),t}),e.on("requestGenerateTags",function(e){console.info("templatePlugin - requestGenerateTags"),console.log("templatePlugin - requestGenerateTags",e);var t=Object(g.a)(e);return console.log("templatePlugin - requestGenerateTags return",t),t}),e.on("requestGenerateAuthors",function(e){console.info("templatePlugin - requestGenerateAuthors"),console.log("templatePlugin - requestGenerateAuthors",e);var t=Object(m.a)(e);return console.log("templatePlugin - requestGenerateAuthors return",t),t})};var i=n("woOf"),o=n.n(i),r=n("/Luh"),a=n.n(r),s=n("GG98"),c=n.n(s),u=n("M4fF"),l=n.n(u),p=n("e3+D"),d=n("KgKs"),f=n("THns"),h=n("BdWi"),g=n("dZ6u"),m=n("KOTd"),v=n("j+6P"),b=n.n(v)},X5n4:function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"l",function(){return r}),n.d(t,"i",function(){return a}),n.d(t,"j",function(){return s}),n.d(t,"k",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"d",function(){return l}),n.d(t,"h",function(){return p}),n.d(t,"a",function(){return d}),n.d(t,"g",function(){return f}),n.d(t,"f",function(){return h});var i="application:initialize-routes",o="application:initialize-config",r="application:save-startup-config",a="application:prepare-config",s="application:save-config",c="application:save-config-done",u="application:initialize-app",l="application:initialize-plugins",p="application:notify",d="application:close-notification",f="application:loading",h="application:loaded"},X8TR:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"post-container"},[n("div",{staticClass:"ui fixed inverted menu"},[n("div",{staticClass:"right menu"},[n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.showAsciidocHelp()}}},[e._m(0)]),n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchLight()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.lightLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{sun:e.isDark,moon:!e.isDark}})])]),n("a",{staticClass:"item html-preview",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreview(!1)}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.previewLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{unhide:!e.isPreviewVisible||e.isIFrame,hide:e.isPreviewVisible&&!e.isIFrame}})])]),n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreview(!0)}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.previewLabelIFrame,"data-position":"bottom right"}},[n("i",{staticClass:"large icon globe"})])]),e.isPreviewVisible?n("a",{staticClass:"item preview-resize",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.switchPreviewSize()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.resizeLabel,"data-position":"bottom right"}},[n("i",{staticClass:"large icon",class:{expand:!e.isFullScreen,compress:e.isFullScreen}})])]):e._e(),e.isRemoteActionVisible?n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.remoteSave()}}},[e._m(1)]):e._e(),e.isRemoteActionVisible?n("a",{staticClass:"item",attrs:{href:"#"},on:{click:function(t){t.stopPropagation(),t.preventDefault(),e.publish()}}},[n("div",{staticClass:"ui icon",attrs:{"data-tooltip":e.publishLabel,"data-position":"bottom right"}},[n("i",{staticClass:"icons"},[n("i",{staticClass:"cloud large icon",class:{download:e.isPostPublished,upload:!e.isPostPublished}})])])]):e._e()])]),e._m(2),n("div",{staticClass:"post-editor"},[n("div",{staticClass:"ui grid",class:{dark:e.isDark,light:!e.isDark}},[n("div",{staticClass:"row"},[n("div",{staticClass:"column",class:{"sixteen wide mobile height wide computer is-preview-visible":e.isPreviewVisible,"sixteen wide":!e.isPreviewVisible,"is-hidden":e.isFullScreen},attrs:{id:"asciidoc-content"}},[n("codemirror",{ref:"codeEditor",staticClass:"container",attrs:{code:e.content,options:e.editorOption},on:{input:e.contentChange}})],1),e.isPreviewVisible?n("div",{staticClass:"column",class:{"sixteen wide mobile height wide computer is-preview-visible":e.isPreviewVisible,"is-iframe":e.isIFrame,"is-fullscreen":e.isFullScreen},attrs:{id:"asciidoc-preview"}},[n("preview",{attrs:{post:e.post,iframe:e.isIFrame}})],1):e._e()])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Need some help?","data-position":"bottom right"}},[t("i",{staticClass:"help large icon"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui icon",attrs:{"data-tooltip":"Save your post remotely","data-position":"bottom right"}},[t("i",{staticClass:"save large icon"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui modal",attrs:{id:"asciidoc-help"}},[n("i",{staticClass:"close icon"}),n("div",{staticClass:"header"},[e._v("\n Asciidoc syntax help\n ")]),n("div",{staticClass:"content"},[n("table",{staticClass:"ui table"},[n("thead",[n("tr",[n("th",{staticClass:"heigth wide"},[e._v("Result")]),n("th",{staticClass:"heigth wide"},[e._v("Asciidoc")])])]),n("tbody",[n("tr",[n("td",[e._v("H1")]),n("td",[e._v("= Title")])]),n("tr",[n("td",[e._v("H2")]),n("td",[e._v("== Title")])]),n("tr",[n("td",[e._v("H3")]),n("td",[e._v("=== Title")])]),n("tr",[n("td",[n("strong",[e._v("Bold")])]),n("td",[e._v("*content*")])]),n("tr",[n("td",[n("i",[e._v("Emphasize")])]),n("td",[e._v("_content_")])]),n("tr",[n("td",[n("a",{attrs:{href:"#"}},[e._v("Link")])]),n("td",[e._v("http://asciidoctor.org[Asciidoctor]")])]),n("tr",[n("td",[e._v("Image Block")]),n("td",[e._v("image::sunset.jpg[]")])]),n("tr",[n("td",[e._v("Image Inline")]),n("td",[e._v('Click image:icons/pause.png[title="Pause"] when you need a break.')])]),n("tr",[n("td",[e._v("Video")]),n("td",[e._v("video::video_file.mp4[]")])]),n("tr",[n("td",[e._v("Unordered list")]),n("td",[e._v("* item")])]),n("tr",[n("td",[e._v("Ordered list")]),n("td",[e._v(". item")])]),n("tr",[n("td",[n("code",[e._v("Inline code")])]),n("td",[e._v("`code`")])])])]),n("p",[e._v("\n More informations about the Asciidoc syntax here: "),n("a",{attrs:{href:"http://asciidoctor.org/docs/asciidoc-syntax-quick-reference/",target:"_blank"}},[e._v("AsciiDoc Syntax Quick Reference")])])])])}]};t.a=i},XO7e:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.iframe?e._e():n("div",{staticClass:"html-rendering"},[n("h1",{staticClass:"ui header"},[e._v(e._s(e.post.title))]),n("div",{staticClass:"content",attrs:{id:"html-content"},domProps:{innerHTML:e._s(e.post.html)}})]),e.iframe?n("div",{staticClass:"iframe-rendering"},[n("iframe",{staticClass:"published-preview",attrs:{srcdoc:e.post.publishedContent,frameborder:"0"}})]):e._e()])},staticRenderFns:[]};t.a=i},XSDV:function(e,t,n){var i=n("jAb+");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("5bd01218",i,!0,{sourceMap:!1})},XkEn:function(e,t,n){var i=n("dd07");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("1ce06800",i,!0,{sourceMap:!1})},Y2j8:function(e,t,n){"use strict";var i=n("woOf"),o=(n.n(i),n("/Luh")),r=(n.n(o),n("M4fF")),a=(n.n(r),n("RJtx")),s=(n.n(a),n("Wa/L")),c=n("tCkb");s.a.plugin(c.a),window.PouchDB=s.a},YDvP:function(e,t,n){var i=n("qZPA");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("3ecfbf5a",i,!0,{sourceMap:!1})},YG9q:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),t.a=function(e){return e.on("application:routes",function(e){return console.info("applicationPlugin - application:routes"),console.log("applicationPlugin - application:routes",e),e.nextState.routes.push({id:"application",entries:[{path:"settings",name:"settings",component:s.a}]}),console.log("applicationPlugin - application:routes - return",e),e}),e.on("application:stores",function(e){var t,n;console.info("applicationPlugin - application:stores"),console.log("applicationPlugin - application:stores",e);var i={state:{isInitialized:!1,isFetching:!1,isLoading:!1,requireInitilisation:!1,notification:{icon:"save",header:"My Header",message:"A message",level:"default",isVisible:!1},routes:[],settingsTabs:[]},mutations:(t={},o()(t,a.b,function(e,t){_.merge(e,t.application)}),o()(t,a.d,function(e,t){_.merge(e,t.application)}),o()(t,a.e,function(e,t){e.routes=t}),o()(t,a.c,function(e,t){_.merge(e,t)}),o()(t,a.i,function(e,t){_.merge(e,t)}),o()(t,a.l,function(e,t){_.merge(e,t)}),o()(t,a.j,function(e,t){_.merge(e,t.application)}),o()(t,a.k,function(e,t){_.merge(e,t.application)}),o()(t,a.h,function(e,t){t.isVisible=!0,_.merge(e.notification,t)}),o()(t,a.a,function(e,t){e.notification.isVisible=!1}),o()(t,a.g,function(e,t){e.isLoading=!0}),o()(t,a.f,function(e,t){e.isLoading=!1}),t),actions:(n={},o()(n,a.c,function(e){var t=e.commit,n=e.rootState,i=e.state,o={rootState:_.cloneDeep(n),currentState:_.cloneDeep(i)};return r.a.initializeConfig(o).then(function(e){t(a.c,e.nextState)})}),o()(n,a.b,function(e){var t=e.commit,n=e.rootState,i=(e.state,{rootState:_.cloneDeep(n),currentState:_.cloneDeep(n)});return r.a.initializeApp(i).then(function(e){console.log("helllllllo",e),t(a.b,e.nextState)})}),o()(n,a.d,function(e){var t=e.commit,n=e.rootState,i=(e.state,{rootState:_.cloneDeep(n),currentState:_.cloneDeep(n)});return r.a.initializePlugins(i).then(function(e){e.nextState.application.isInitialized=!0,t(a.d,e.nextState)})}),o()(n,a.i,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,s=e.state,c={rootState:_.cloneDeep(o),currentState:_.cloneDeep(s),nextState:_.cloneDeep(s),payload:{formData:t}};return c.currentState.isLoading=!0,c.nextState.isLoading=!0,n(a.g).then(function(e){return r.a.prepareConfig(c)}).then(function(e){return i(a.i,e.nextState),n(a.j)})}),o()(n,a.l,function(e,t){e.dispatch;var n=e.commit,i=e.rootState,o=e.state,s={rootState:_.cloneDeep(i),currentState:_.cloneDeep(o),nextState:_.cloneDeep(o)};return s.nextState.config.meta.username=t.username,s.nextState.config.meta.repositoryName=t.repositoryName,s.nextState.config.meta.branch=t.branch,s.nextState.config.meta.cname=t.cname,s.nextState.requireInitilisation=!1,r.a.startUpConfig(s).then(function(e){n(a.l,e.nextState)})}),o()(n,a.j,function(e,t){var n=e.dispatch,i=e.commit,o=e.rootState,s=(e.state,{rootState:_.cloneDeep(o),currentState:_.cloneDeep(o),nextState:_.cloneDeep(o)});return console.log(s),r.a.saveConfig(s).then(function(e){if(console.log("testsettesse",e),i(a.j,e.nextState),!t)return n(a.k)})}),o()(n,a.k,function(e){var t=e.dispatch,n=e.commit,i=e.rootState,o=(e.state,{rootState:_.cloneDeep(i),currentState:_.cloneDeep(i),nextState:_.cloneDeep(i)});return r.a.saveConfigDone(o).then(function(e){n(a.k,e.nextState)}).then(function(e){return t("application:loaded")}).then(function(e){return t("application:notify",{icon:"save",header:"Settings saved",message:"Your settings have been saved and your blog was rebuild with success. ",level:"success"})})}),o()(n,a.h,function(e,t){e.dispatch;var n=e.commit;e.rootState,e.state,n(a.h,t)}),o()(n,a.a,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.a)}),o()(n,a.g,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.g)}),o()(n,a.f,function(e){e.dispatch;var t=e.commit;e.rootState,e.state,t(a.f)}),n),getters:{navigations:function(e){return e.routes.filter(function(e){return e.label})}}};return e.nextState.stores.application=i,console.log("applicationPlugin - application:stores - return",e),e}),e.on("application:prepare-config",function(e){return console.info("applicationPlugin - application:prepare-config"),console.log("applicationPlugin - application:prepare-config",e),e.nextState.config.meta.cname=e.payload.formData.get("application-cname"),console.log("applicationPlugin - application:prepare-config - return",e),e}),e.on("application:save-config",function(e){return console.info("applicationPlugin - application:save-config"),console.log("applicationPlugin - application:save-config",e),console.log("applicationPlugin - application:save-config - return",e),e}),{getName:function(){return"applicationPlugin"}}};var i=n("bOdI"),o=n.n(i),r=n("RsIG"),a=n("X5n4"),s=n("kMyt"),c={APPLICATION_PREPARE_CONFIG:a.i}},YLfZ:function(e,t,n){"use strict";t.a=function(e,t){var n=e.options.data||x;if(!t&&e.options.hasAsyncData)return;e.options.hasAsyncData=!0,e.options.data=function(){var i=n.call(this);return this.$ssrContext&&(t=this.$ssrContext.asyncData[e.cid]),m()({},i,t)},e._Ctor&&e._Ctor.options&&(e._Ctor.options.data=e.options.data)},t.l=C,t.e=w,t.f=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],e.matched.map(function(e,n){return h()(e.instances).map(function(i){return t&&t.push(n),e.instances[i]})}))},t.c=y,t.k=P,n.d(t,"h",function(){return _}),n.d(t,"m",function(){return R}),t.i=function e(t,n){if(!t.length||n._redirected||n._errored)return d.a.resolve();return q(t[0],n).then(function(){return e(t.slice(1),n)})},t.j=q,t.d=function(e,t){var n=window.location.pathname;if("hash"===t)return window.location.hash.replace(/^#\//,"");e&&0===n.indexOf(e)&&(n=n.slice(e.length));return(n||"/")+window.location.search+window.location.hash},t.b=function(e,t){return function(e){for(var t=new Array(e.length),n=0;n1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],e.matched.map(function(e,n){return h()(e.components).map(function(i){return t&&t.push(n),e.components[i]})}))}function y(e,t){return Array.prototype.concat.apply([],e.matched.map(function(e,n){return h()(e.components).map(function(i){return t(e.components[i],e.instances[i],e,i,n)})}))}function P(e){var t,n=this;return d.a.all(y(e,(t=l()(c.a.mark(function e(t,i,o,r){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof t||t.options){e.next=4;break}return e.next=3,t();case 3:t=e.sent;case 4:return e.abrupt("return",o.components[r]=C(t));case 5:case"end":return e.stop()}},e,n)})),function(e,n,i,o){return t.apply(this,arguments)})))}window._nuxtReadyCbs=[],window.onNuxtReady=function(e){window._nuxtReadyCbs.push(e)};var k,S,_=(k=l()(c.a.mark(function e(t){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P(t);case 2:return e.abrupt("return",m()({},t,{meta:w(t).map(function(e){return e.options.meta||{}})}));case 3:case"end":return e.stop()}},e,this)})),function(e){return k.apply(this,arguments)}),R=(S=l()(c.a.mark(function e(t,n){return c.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n.to?n.to:n.route,t.context){e.next=14;break}e.t0=!0,e.t1=t,e.t2=t.store,e.t3=n.payload,e.t4=n.error,e.t5={hubpressVersion:"0.9.0",baseUrl:"http://localhost:3000"},t.context={get isServer(){return console.warn("context.isServer has been deprecated, please use process.server instead."),!1},get isClient(){return console.warn("context.isClient has been deprecated, please use process.client instead."),!0},isStatic:e.t0,isDev:!1,isHMR:!1,app:e.t1,store:e.t2,payload:e.t3,error:e.t4,base:"..",env:e.t5},n.req&&(t.context.req=n.req),n.res&&(t.context.res=n.res),t.context.redirect=function(e,n,i){if(e){t.context._redirected=!0;var o=void 0===n?"undefined":a()(n);if("number"==typeof e||"undefined"!==o&&"object"!==o||(i=n||{},o=void 0===(n=e)?"undefined":a()(n),e=302),"object"===o&&(n=t.router.resolve(n).href),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(n))throw n=L(n,i),window.location.replace(n),new Error("ERR_REDIRECT");t.context.next({path:n,query:i,status:e})}},t.context.nuxtState=window.__NUXT__;case 14:if(t.context.next=n.next,t.context._redirected=!1,t.context._errored=!1,t.context.isHMR=!!n.isHMR,!n.route){e.next=22;break}return e.next=21,_(n.route);case 21:t.context.route=e.sent;case 22:if(t.context.params=t.context.route.params||{},t.context.query=t.context.route.query||{},!n.from){e.next=28;break}return e.next=27,_(n.from);case 27:t.context.from=e.sent;case 28:case"end":return e.stop()}},e,this)})),function(e,t){return S.apply(this,arguments)});function q(e,t){var n=void 0;return(n=2===e.length?new d.a(function(n){e(t,function(e,i){e&&t.error(e),n(i=i||{})})}):e(t))&&(n instanceof d.a||"function"==typeof n.then)||(n=d.a.resolve(n)),n}var M=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function $(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function D(e){return e.replace(/([.+*?=^!:()[\]|\/\\])/g,"\\$1")}function j(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function L(e,t){var n=void 0,i=e.indexOf("://");-1!==i?(n=e.substring(0,i),e=e.substring(i+3)):0===e.indexOf("//")&&(e=e.substring(2));var r=e.split("/"),a=(n?n+"://":"//")+r.shift(),s=r.filter(Boolean).join("/"),c=void 0;return 2===(r=s.split("#")).length&&(s=r[0],c=r[1]),a+=s?"/"+s:"",t&&"{}"!==o()(t)&&(a+=(2===e.split("?").length?"&":"?")+function(e){return h()(e).sort().map(function(t){var n=e[t];return null==n?"":Array.isArray(n)?n.slice().map(function(e){return[t,"=",e].join("")}).join("&"):t+"="+n}).filter(Boolean).join("&")}(t)),a+=c?"#"+c:""}},YMuy:function(e,t,n){"use strict";var i=n("6Ndi"),o=n("PJh5"),r=n.n(o);function a(e){return i.a.fireRequestRemoteSynchronization(e).then(function(e){return i.a.fireReceiveRemoteSynchronization(e)}).then(function(e){return i.a.fireRequestRenderingDocuments(e)}).then(function(e){return i.a.fireReceiveRenderingDocuments(e)}).then(function(e){return i.a.fireRequestLocalSynchronization(e)}).then(function(e){return i.a.fireReceiveLocalSynchronization(e)}).then(function(e){return i.a.fireRequestLocalPosts(e)}).then(function(e){return i.a.fireReceiveLocalPosts(e)}).then(function(e){return localStorage.setItem("hubpress:sync",r()().format()),e})}t.a={initialize:function(e){return i.a.fireRequestTheme(e).then(function(e){return i.a.fireReceiveTheme(e)}).then(function(e){return localStorage.getItem("hubpress:sync")?i.a.fireRequestLocalPosts(e).then(function(e){return i.a.fireReceiveLocalPosts(e)}):a(e)})},synchronize:a}},YoMZ:function(e,t,n){var i=n("7Rt3");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("9418214c",i,!0,{sourceMap:!1})},"bN/m":function(e,t,n){"use strict";function i(e,t){var n=void 0;return e.cname&&""!==e.cname?n=(!1===t?"":"http:")+"//"+e.cname:(n=(!1===t?"":"https:")+"//"+e.username+".github.io","master"!==e.branch&&(n=n+"/"+e.repositoryName)),n}function o(e,t){var n=e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"/$1/$2/$3/$4.html");return"page"===t&&(n=e.replace(/([\w-]*)\.adoc/,"/$1.html")),n}function r(e,t){var n=e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"$1/$2/$3/$4.html");return"page"===t&&(n=e.replace(/([\w-]*)\.adoc/,"$1.html")),n}function a(e){return e.match(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/)?"post":"page"}t.a=function(e){return{site:i(e.meta),hubpress:function(e,t){var n=t.protocol+"//"+t.host;if("localhost"===t.hostname)return n;t.host===e.username+".github.io"||t.host===e.username+".github.com"?"master"!==e.branch&&(n=n+"/"+e.repositoryName):"master"===e.branch||e.cname&&""!==e.cname||(n=n+"/"+e.repositoryName);return n}(e.meta,window.location),theme:i(e.meta,!1)+"/themes/"+e.theme.name,images:i(e.meta)+"/images",getContentUrl:o,getContentGhPath:r,getContentType:a,getPostUrl:function(e){return e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"/$1/$2/$3/$4.html")},getPostGhPath:function(e){return e.replace(/([\d]{4})-([\d]{2})-([\d]{2})-([\w-]*)\.adoc/,"$1/$2/$3/$4.html")},getPageUrl:function(e){return e.replace(/([\w-]*)\.adoc/,"/$1.html")},getPageGhPath:function(e){return e.replace(/([\w-]*)\.adoc/,"$1.html")},getSiteUrl:i}}},bxJ0:function(e,t,n){"use strict";t.a=function(e){e.on("application:request-config",function(e){return console.info("githubPlugin - application:request-config"),console.log("githubPlugin - application:request-config",e),l()("config.json?dt="+Date.now()).then(function(e){return e.json()}).then(function(t){return e.nextState.config=a()({},e.nextState.config,t),e.nextState.config.theme.name=e.nextState.config.theme.name.toLowerCase(),e})}),e.on("application:receive-config",function(e){console.info("githubPlugin - application:receive-config"),console.log("githubPlugin - application:receive-config",e);var t=Object(w.a)(e.nextState.config);return e.nextState.config=a()({},e.nextState.config,{urls:t}),e}),e.on("requestAuthentication",function(e){return console.info("githubPlugin - requestAuthentication"),console.log("githubPlugin - requestAuthentication",e),function(e){console.log("githubPlugin - login",e);var t=m.a.defer(),n=e.nextState.credentials,i=e.rootState.application.config.meta,o=(q=new h.a({auth:"basic",username:n.email,password:n.password,twoFactorCode:n.twoFactorCode})).getRepo(i.username,i.repositoryName),r=q.getAuthorization(),a=q.getUser(),s=void 0,c=void 0;return function(e){var t=m.a.defer();return e.getDetails(function(e,n){e?t.reject(e):t.resolve(n)}),t.promise}(o).then(function(e){s=e}).then(S(a)).then(function(e){return c=e,function(e){var t=m.a.defer();return console.log("getAuthorizations",e),e.listAuthorizations({},function(e,n){e?t.reject(e):(console.log("getAuthorizations list",n),t.resolve(n))}),t.promise}(r)}).then(function(e){return function(e,t,n){var i=m.a.defer(),o=-1,r=_(e);return t.forEach(function(e){e.note===r&&(o=e.id)}),-1!==o?n.deleteAuthorization(o,function(e,t){e?i.reject(e):i.resolve()}):i.resolve(),i.promise}(i.repositoryName,e,r)}).then(function(){return R(i.repositoryName,r)}).then(function(e){q=new h.a({auth:"oauth",token:e.token}),t.resolve({isAuthenticated:!0,credentials:{token:e.token},permissions:s.permissions,userInformations:c})}).catch(function(e){console.error("githubPlugin - login error",e,e.response);var n,o={type:"error",title:"Authentication"};e.response&&(n="required"===(e.response.headers&&e.response.headers["x-github-otp"]||"").split(";")[0]),n?(R(i.repositoryName,r),console.log("githubPlugin - OTP required : ",n),o.type="warning",o.content="A two-factor authentication code is needed.",o.otp=!0,t.resolve({isAuthenticated:!1,isTwoFactorCodeRequired:!0})):(console.error("githubPlugin - login error",e),t.reject({error:{code:e.error,message:"Unable to authenticate, check your credentials."}}))}),t.promise}(e).then(function(t){var n=a()({},e.nextState.credentials,t.credentials);return e.nextState=a()({},e.nextState,t,{credentials:n}),e})}),e.on("receiveSavedAuth",function(e){return console.info("githubPlugin - receiveSavedAuth"),console.log("githubPlugin - receiveSavedAuth",e),e.nextState.authentication.isAuthenticated&&(q=new h.a({auth:"oauth",token:e.nextState.authentication.credentials.token})),e}),e.on("hubpress:request-remote-synchronization",function(e){return console.info("githubPlugin - hubpress:request-remote-synchronization"),console.log("githubPlugin - hubpress:request-remote-synchronization",e),e.rootState.authentication.isAuthenticated?function(e){var t=e.application.config;console.log("Get posts",t);var n=t.meta,i=q.getRepo(n.username,n.repositoryName);return function(e,t){var n=m.a.defer();return e.getContents(t.meta.branch,"",!0,function(e,t){if(e)n.reject(e);else{var i=void 0;t.forEach(function(e){"_posts"===e.name&&(i=e.sha)}),n.resolve(i)}}),n.promise}(i,t).then(function(e){return function(e,t,n){var i=void 0;if(n===localStorage.postsSha)i=m.a.fcall(function(){return[]});else{var o=m.a.defer();e.getContents(t.meta.branch,"_posts",!0,function(e,t){e?o.reject(e):o.resolve(t)}),i=o.promise}return i}(i,t,e)}).then(function(e){return e.map(function(e){return b.a.pick(e,["name","path","sha","size"])})}).then(function(e){return function(e,t,n){var i=b.a.compact(n).map(function(e){return function(e,t){var n=m.a.defer(),i=e.meta,o=q.getRepo(i.username,i.repositoryName),r=e.urls.getContentType(t.name);return o.getSha(e.meta.branch,e.urls.getContentGhPath(t.name,r),function(e,i){if(e&&e.response&&404!==e.response.status)n.reject(e);else{var o=i?1:0,r=a()({},t,{published:o});n.resolve(r)}}),n.promise}(t,e)});return m.a.all(i)}(0,t,e)}).then(function(n){return function(e,t,n,i){var o=n.map(function(e){return M(t,e,i)});return m.a.all(o)}(0,t,n,e.authentication.userInformations)}).then(function(e){return function(e,t,n){var i=[];return n.forEach(function(n){var o=m.a.defer();i.push(o.promise),e.getContents(t.meta.branch,n.path,!0,function(e,t){var i;e?o.reject(e):(i=a()({},n,{content:t}),o.resolve(i))})}),m.a.all(i)}(i,t,e)})}(e.rootState).then(function(t){return e.nextState=a()({},e.nextState,{posts:t}),e}):e}),e.on("requestSaveRemotePost",function(e){console.info("githubPlugin - requestSaveRemotePost"),console.log("githubPlugin - requestSaveRemotePost",e);var t=e.rootState.application.config,n=e.nextState.post;return function(e,t){var n=e.meta,i=q.getRepo(n.username,n.repositoryName),o=void 0;if(t.original&&t.name!==t.original.name){var r=m.a.defer();o=r.promise;var a=e.meta.branch,s="_posts/"+t.original.name,c="_posts/"+t.name;i.move(a,s,c,function(n,o){if(n)r.reject(n);else if(t.published){var s=e.urls.getContentGhPath(t.original.name,t.original.type);(function(e,t,n){return function(e,t,n){var i=m.a.defer();return e.deleteFile(t,n,function(e,t){e?i.reject(e):(console.error(t),k=t.commit,i.resolve(t))}),i.promise}(e,t,n)})(i,a,s).then(function(e){r.resolve({post:t,sha:e})}).catch(function(e){r.reject(e)}).done()}else r.resolve({post:t,sha:o})})}else o=m()({post:t});return o}(t,n).then(function(e){return function(e,t){console.log("Write post",e,t);var n=e.meta,i=q.getRepo(n.username,n.repositoryName),o=n.branch,r="_posts/"+t.name,a="Update "+t.name,s=m.a.defer();return i.writeFile(o,r,t.content,a,function(n,i){n?s.reject(n):(t.original=b.a.omit(t,["original"]),t.original.url=e.urls.getContentUrl(t.original.name,t.original.type),t.original.path="_posts/"+t.original.name,t.original.sha=i,k=i.commit,console.info("Update lastCacheCommit",k),s.resolve(t))}),s.promise}(t,e.post)}).then(function(n){return M(t,n,e.rootState.authentication.userInformations)}).then(function(t){return e.nextState.post=t,e})}),e.on("requestSaveRemotePublishedElements",function(e){console.info("githubPlugin - requestSaveRemotePublishedElements"),console.log("githubPlugin - requestSaveRemotePublishedElements",e);var t=e.rootState.application.config.meta,n=q.getRepo(t.username,t.repositoryName),i=e.nextState.elementsToPublish.length,o=b.a.chunk(e.nextState.elementsToPublish,P);console.log("Writeall",e.nextState.elementsToPublish);var r=m.a.defer();return n.getBranch(t.branch,function(a,s){if(a){var c=m.a.defer();return r=c.promise,c.reject(a)}var u=0,l=o.reduce(function(e,o){return e.then(function(e){var r=m.a.defer(),a=o.map(function(e){return{path:e.path,mode:"100644",type:"blob",content:e.content}});return n.createTree(a,e,function(a,s){if(a)return r.reject(a);n.commit(e,s.sha,"Published "+(u+o.length)+"/"+i+" elements",function(e,i){if(e)return r.reject(e);u+=o.length,k=i,n.updateHead("heads/"+t.branch,i.sha,!1,function(e,t){if(console.log("updateHead",e,t),e)return r.reject(e);r.resolve(i.sha)})})}),r.promise})},m()(function(e,t){if(console.error(e,t),!t)return e.sha;var n=C()(e.committer.date);return C()(t.committer.date).isAfter(n)?t.sha:e.sha}({committer:s.commit.commit.committer,sha:s.commit.sha},k)));l.then(function(t){r.resolve(e)}).catch(function(e){r.reject(e)})}),r.promise}),e.on("requestDeleteRemotePost",function(e){console.info("githubPlugin - requestDeleteRemotePost"),console.log("githubPlugin - requestDeleteRemotePost",e);var t=m.a.defer(),n=e.rootState.application.config,i=n.meta,o=q.getRepo(i.username,i.repositoryName),r=e.nextState.post.original.path;return o.deleteFile(i.branch,r,function(n,i){n&&n.response&&404!==n.response.status?t.reject(n):(console.error("requestDeleteRemotePost",i),k=i.commit,t.resolve(e))}).catch(function(n){n&&n.response&&404===n.response.status&&t.resolve(e)}),t.promise}),e.on("requestDeleteRemotePublishedPost",function(e){console.info("githubPlugin - requestDeleteRemotePublishedPost"),console.log("githubPlugin - requestDeleteRemotePublishedPost",e);var t=m.a.defer(),n=e.rootState.application.config,i=n.meta,o=q.getRepo(i.username,i.repositoryName),r=n.urls.getContentGhPath(e.nextState.post.original.name,e.nextState.post.original.type);return o.deleteFile(i.branch,r,function(n,i){n?t.reject(n):(console.error("requestDeleteRemotePublishedPost",i),k=i.commit,t.resolve(e))}),t.promise}),e.on("application:request-save-config",function(e){console.info("githubPlugin - application:request-save-config"),console.log("githubPlugin - application:request-save-config",e);var t=e.nextState.application;return function(e){console.log("Write config",e);var t=m.a.defer(),n=e.meta,i=q.getRepo(n.username,n.repositoryName),r=n.branch;return i.writeFile(r,"hubpress/config.json",o()(e,null,2),"Update configuration file",function(e,n){e?t.reject(e):(k=n.commit,console.info("Update lastCacheCommit",k),t.resolve(n))}),t.promise}(t.config).then(function(e){return function(e){console.log("Github manageCname - ",e);var t=e.meta,n=q.getRepo(t.username,t.repositoryName),i=m.a.defer();t.cname&&""!==t.cname?(console.info("SettingsService - saveAndPublish save CNAME"),n.writeFile(t.branch,"CNAME",t.cname,"Update CNAME with "+t.cname,function(e,t){e?i.reject(e):(k=t.commit,console.info("Update lastCacheCommit",k),i.resolve(t))})):(console.info("SettingsService - saveAndPublish delete CNAME"),n.deleteFile(t.branch,"CNAME",function(e,t){e&&"not found"!==e?i.reject(e):i.resolve(t)}).then(function(e){console.log("SHA after delete",e),i.resolve(e)}).catch(function(e){404!==e.response.status?i.reject(e):i.resolve()}));return i.promise}(t.config)}).then(function(t){return e})}),e.on("receiveRenderingPost",function(e){return console.info("githubPlugin - receiveRenderingPost"),console.log("githubPlugin - receiveRenderingPost",e),e}),e.on("application:initialize-plugins",function(e){console.info("githubPlugin - application:initialize-plugins"),console.log("githubPlugin - application:initialize-plugins",e);var t="put your repository name here"===e.rootState.application.config.meta.repositoryName||"put your username here"===e.rootState.application.config.meta.username;return e.nextState.application.requireInitilisation=t,e.nextState.application.config.initialisationConfigComponent=y.a,e})};var i=n("mvHQ"),o=n.n(i),r=n("woOf"),a=n.n(r),s=n("6ltY"),c=n.n(s),u=n("j9g7"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=n("73D8"),h=n.n(f),g=n("/Luh"),m=n.n(g),v=n("M4fF"),b=n.n(v),x=n("PJh5"),C=n.n(x),w=n("bN/m"),y=n("IBrK"),P=50,k=null;function S(e){return function(){var t=m.a.defer();return e.getProfile(function(e,n){e?t.reject(e):t.resolve(b.a.pick(n,["login","id","name","location","blog","avatar_url","bio"]))}),t.promise}}function _(e){return d()(e+"-"+c.a.name+"-"+c.a.os)}function R(e,t){var n=m.a.defer(),i={scopes:["public_repo"],note:_(e)};return t.createAuthorization(i,function(e,t){e?n.reject(e):n.resolve(t)}),n.promise}var q=void 0;function M(e,t,n){var i=m.a.defer(),o=e.meta,r=q.getRepo(o.username,o.repositoryName);return console.log("getPostAuthor",t),r.listCommits({sha:e.meta.branch,path:t.original&&t.original.path||t.path},function(e,o){if(e&&404!==e.error)i.reject(e);else{var r=o[o.length-1].author;if(r&&r.login!==n.login){S(q.getUser(r.login))().then(function(e){r=a()({},e);var n=a()({},t,{author:r});i.resolve(n)}).catch(function(e){return i.reject(e)})}else{r=a()({},n);var s=a()({},t,{author:r});i.resolve(s)}}}),i.promise}},cOI0:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,'.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,.5)}.cm-animate-fat-cursor,.cm-fat-cursor-mark{-webkit-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;background-color:#7e7}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;-webkit-font-feature-settings:"calt";font-feature-settings:"calt";font-variant-ligatures:contextual}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-webkit-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}',""])},cmzl:function(e,t,n){"use strict";var i={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"nuxt-progress",style:{width:this.percent+"%",height:this.height,"background-color":this.canSuccess?this.color:this.failedColor,opacity:this.show?1:0}})},staticRenderFns:[]};t.a=i},ct3O:function(e,t,n){"use strict";var i=n("FIB3"),o=n("FdPX");var r=function(e){n("wGIl")},a=n("VU/8")(i.a,o.a,!1,r,null,null);t.a=a.exports},"d/OL":function(e,t,n){"use strict";t.a=function(e){e.on("hubpress:request-rendering-documents",function(e){console.info("asciidocPlugin - hubpress:request-rendering-documents"),console.log("asciidocPlugin - hubpress:request-rendering-documents",e);var t=e.rootState.application.config,n=(e.nextState.posts||[]).map(function(e){var n=o()({},e,h(t,e.content),{content:e.content}),i=c.a.pick(n,"attributes","author","html","tags","content","name","path","sha");n.title=i.title=i.attributes.doctitle,n.image=i.image=i.attributes["hp-image"],n.type=i.type=i.attributes["hp-type"],n.tags=i.tags=g(i.attributes),n.url=i.url=m(t,n.type,i.name);var r=o()({},n,{original:i});return n.type&&"post"!==n.type||(r.original.published_at=r.published_at=i.name.split("-").slice(0,3).join("-")),r});return e.nextState.posts=n,e}),e.on("requestRenderingPost",function(e){console.info("asciidocPlugin - requestRenderingPost"),console.log("asciidocPlugin - requestRenderingPost",e);var t=h(e.rootState.application.config,e.nextState.post.content);e.nextState.post=o()({},e.nextState.post,t),e.nextState.post.title=t.attributes.doctitle,e.nextState.post.image=t.attributes["hp-image"],e.nextState.post.type=t.attributes["hp-type"],e.nextState.post.tags=g(t.attributes),e.nextState.post.published_at=t.attributes.published_at||e.nextState.post.published_at||l()().format("YYYY-MM-DD");var n=t.attributes["hp-alt-title"];return e.nextState.post.type&&"post"!==e.nextState.post.type?e.nextState.post.name=d()(""+(n||e.nextState.post.title))+".adoc":e.nextState.post.name=d()(e.nextState.post.published_at+"-"+(n||e.nextState.post.title))+".adoc",e.nextState.post.url=m(e.rootState.application.config,e.nextState.post.type,e.nextState.post.name),e})};var i=n("woOf"),o=n.n(i),r=n("rzLr"),a=n.n(r),s=n("M4fF"),c=n.n(s),u=n("PJh5"),l=n.n(u),p=n("n+xr"),d=n.n(p),f=a()(!1,window.XMLHttpRequest);function h(e,t){var n={doctype:"article",backend:"html5",safe:"unsafe",attributes:["showtitle!","allow-uri-read","imagesdir="+e.urls.site+"/images","icons=font"]},i=function(e){var t=e.split("pass::[more]");return{excerpt:t[0],full:t.join("")}}(t.replace(/gist::([0-9]*)\[(lines=[0-9]*\.\.[0-9]*)?,?(type=([\w.]*))?,?(file=([\w.]*))?\]/g,"[source,$4]\n----\ninclude::https://gist.githubusercontent.com/raw/$1/$6[$2]\n----\n")),o=f.load(i.excerpt,n),r=f.load(i.full,n);return{attributes:r.getAttributes(),excerpt:o.$convert(),html:r.$convert()}}function g(e){return e["hp-tags"]&&e["hp-tags"].split(",").map(function(e){return e.trim()}).filter(function(e){return""!==e})}function m(e,t,n){return e.urls.getContentUrl(n,t)}},dCDI:function(e,t,n){"use strict";(function(e,t){var i,o=n("pFYg"),r=n.n(o);i=function(e){var t;(t=e).overlayMode=function(e,n,i){return{startState:function(){return{base:t.startState(e),overlay:t.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(i){return{base:t.copyState(e,i.base),overlay:t.copyState(n,i.overlay),basePos:i.basePos,baseCur:null,overlayPos:i.overlayPos,overlayCur:null}},token:function(t,o){return(t!=o.streamSeen||Math.min(o.basePos,o.overlayPos)"},redirect:"/dashboard",meta:{auth:!0},children:t.nextState.routes.map(function(e){return console.log(e),e.entries}).reduce(function(e,t){return e.concat(t)},[])}]},i=new r.default(n);return i.routes=t.nextState.routes,i.beforeEach(function(e,t,n){var i=Object(a.default)();e.matched.some(function(e){return e.meta.auth})?i.state.authentication.isAuthenticated?n():n({path:"/login",query:{redirect:e.fullPath}}):n()}),i};var i=n("I3G/"),o=n.n(i),r=n("/ocq"),a=n("fbRD"),s=n("LEOq"),c=n.n(s),u=(n("7cn8"),n("YG9q")),l=n("QMmS"),p=n("3oxy"),d=n("H8Oa"),f=n("bxJ0"),h=n("WiUJ"),g=n("H1PK"),m=n("d/OL"),v=(n("Y2j8"),n("1AqL")),b=n("tLh+");console.log("router =============="),console.log("Router"),o.a.use(r.default),c.a.register(u.a,l.b,p.a,d.a,f.a,h.a,g.a,m.a,v.a,b.a),console.log("Registered plugins",c.a.list())},oS0V:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui center aligned grid"},[n("div",{staticClass:"ui middle aligned grid"},[e.requireInitilisation?n("div",{staticClass:"column"},[n("div",{staticClass:"ui segment"},[n("initialisation-component",{tag:"component"})],1)]):e._e(),e.requireInitilisation?e._e():n("div",{staticClass:"column",attrs:{id:"loginForm"}},[n("div",{staticClass:"ui segment"},[n("img",{staticClass:"image",attrs:{src:"https://hubpress.github.io/img/freeze/logo.png"}}),n("h2",{staticClass:"ui header"},[e._v("\n Welcome!\n ")]),n("div",{staticClass:"content"}),n("form",{staticClass:"ui medium form",on:{submit:function(t){t.preventDefault(),e.login({email:e.email,password:e.password})}}},[n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"user icon"}),n("input",{attrs:{type:"text",name:"email",placeholder:"Username or e-mail address"},domProps:{value:e.email},on:{input:e.updateEmail}})])]),n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"lock icon"}),n("input",{attrs:{type:"password",name:"password",placeholder:"Password"},domProps:{value:e.password},on:{input:e.updatePassword}})])]),e.isTwoFactorCodeRequired?n("div",{staticClass:"field"},[n("div",{staticClass:"ui left icon input"},[n("i",{staticClass:"key icon"}),n("input",{attrs:{type:"text",name:"twoFactorCode",placeholder:"Two factor code"},domProps:{value:e.twoFactorCode},on:{input:e.updateTwoFactorCode}})])]):e._e(),n("button",{staticClass:"ui fluid large submit button",attrs:{type:"submit",name:"button"}},[e._v("Login")])]),e._m(0)])])])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"ui message"},[this._v("\n If you have questions about how to use HubPress, "),t("a",{attrs:{href:"https://hubpress.gitbooks.io/hubpress-knowledgebase/content/"}},[this._v("here is the right place.")])])}]};t.a=i},oz2E:function(e,t,n){"use strict";t.a={name:"dashboard",beforeCreate:function(){console.log("dashboard beforeCreate")},created:function(){console.log("dashboard created")}}},qZPA:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".html-rendering,.published-preview{min-width:100%;height:calc(100vh - 47px);min-height:calc(100vh - 47px)}",""])},qcny:function(e,t,n){"use strict";n.d(t,"b",function(){return D});var i=n("Xxa5"),o=n.n(i),r=n("//Fk"),a=(n.n(r),n("C4MV")),s=n.n(a),c=n("woOf"),u=n.n(c),l=n("Dd8w"),p=n.n(l),d=n("exGp"),f=n.n(d),h=n("MU8w"),g=(n.n(h),n("I3G/")),m=n.n(g),v=n("p3jY"),b=n.n(v),x=n("mtxM"),C=n("0F0d"),w=n("HBB+"),y=n("WRRc"),P=n("ct3O"),k=n("Hot+"),S=n("yTq1"),_=n("YLfZ"),R=n("J2Ti"),q=n("zQW4"),M=n("6hdJ");n.d(t,"a",function(){return P.a});var $,D=($=f()(o.a.mark(function e(t){var n,i,r,a,c,l,d;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(x.a)(t),(i=Object(R.a)(t)).$router=n,r=p()({router:n,store:i,nuxt:{defaultTransition:j,transitions:[j],setTransitions:function(e){return Array.isArray(e)||(e=[e]),e=e.map(function(e){return e=e?"string"==typeof e?u()({},j,{name:e}):u()({},j,e):j}),this.$options.nuxt.transitions=e,e},err:null,dateErr:null,error:function(e){e=e||null,r.context._errored=!!e,"string"==typeof e&&(e={statusCode:500,message:e});var n=this.nuxt||this.$options.nuxt;return n.dateErr=Date.now(),n.err=e,t&&(t.nuxt.error=e),e}}},S.a),i.app=r,a=t?t.next:function(e){return r.router.push(e)},c=void 0,t?c=n.resolve(t.url).route:(l=Object(_.d)(n.options.base),c=n.resolve(l).route),e.next=10,Object(_.m)(r,{route:c,next:a,error:r.nuxt.error.bind(r),store:i,payload:t?t.payload:void 0,req:t?t.req:void 0,res:t?t.res:void 0,beforeRenderFns:t?t.beforeRenderFns:void 0});case 10:if(d=function(e,t){if(!e)throw new Error("inject(key, value) has no key provided");if(!t)throw new Error("inject(key, value) has no value provided");r[e="$"+e]=t,i[e]=r[e];var n="__nuxt_"+e+"_installed__";m.a[n]||(m.a[n]=!0,m.a.use(function(){m.a.prototype.hasOwnProperty(e)||s()(m.a.prototype,e,{get:function(){return this.$root.$options[e]}})}))},window.__NUXT__&&window.__NUXT__.state&&i.replaceState(window.__NUXT__.state),"function"!=typeof q.a){e.next=15;break}return e.next=15,Object(q.a)(r.context,d);case 15:if("function"!=typeof M.a){e.next=18;break}return e.next=18,Object(M.a)(r.context,d);case 18:e.next=21;break;case 21:return e.abrupt("return",{app:r,router:n,store:i});case 22:case"end":return e.stop()}},e,this)})),function(e){return $.apply(this,arguments)});m.a.component(C.a.name,C.a),m.a.component(w.a.name,w.a),m.a.component(y.a.name,y.a),m.a.component(k.a.name,k.a),m.a.use(b.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var j={name:"page",mode:"out-in",appear:!0,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"}},r6qT:function(e,t,n){var i=n("HEYa");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("2b9275f1",i,!0,{sourceMap:!1})},"tLh+":function(e,t,n){"use strict";t.a=function(e){e.on("requestGenerateIndex",function(e){console.info("rssPlugin - requestGenerateIndex"),console.log("rssPlugin - requestGenerateIndex",e);var t=e.rootState.application.config.site||{},n=e.rootState.application.config.urls.site||"",i=e.nextState.publishedPosts||[],r=new o.a({title:t.title||"",description:t.description||"",feed_url:n+"/rss/",site_url:n,image_url:t.cover,ttl:"60"});i.forEach(function(e){r.item({title:e.title,description:e.html,url:""+n+e.url,categories:e.tags,author:e.author.name,date:e.published_at})});var a=r.xml(),s=[];return s.push({name:"RSS",path:"rss/index.xml",content:a,message:"Publish rss feed"}),e.nextState.elementsToPublish=(e.nextState.elementsToPublish||[]).concat(s),e})};var i=n("DVIz"),o=n.n(i)},u8s0:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"",""])},unZF:function(e,t,n){"use strict";var i=n("BO1k"),o=n.n(i),r=n("GfDd"),a=r.keys();function s(e){var t=r(e);return t.default?t.default:t}var c={},u=!0,l=!1,p=void 0;try{for(var d,f=o()(a);!(u=(d=f.next()).done);u=!0){var h=d.value;c[h.replace(/^\.\//,"").replace(/\.(js|ts)$/,"")]=s(h)}}catch(e){l=!0,p=e}finally{try{!u&&f.return&&f.return()}finally{if(l)throw p}}t.a=c},vKgl:function(e,t,n){var i=n("EgsU");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("44921a73",i,!0,{sourceMap:!1})},vXEZ:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".nuxt-progress{position:fixed;top:0;left:0;right:0;height:2px;width:0;-webkit-transition:width .2s,opacity .4s;transition:width .2s,opacity .4s;opacity:1;background-color:#efc14e;z-index:999999}",""])},wGIl:function(e,t,n){var i=n("m8kW");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("6bc7b368",i,!0,{sourceMap:!1})},wQtD:function(e,t,n){"use strict";t.a={name:"navigation-settings",data:function(){return{newNav:{label:"",url:""},navigation:this.$store.state.application.config.navigation||[]}},computed:{isNotValid:function(){return""===this.newNav.label.trim()||""===this.newNav.url.trim()}},methods:{remove:function(e){this.navigation.splice(e,1)},clear:function(){this.newNav={label:"",url:""}},add:function(e){this.navigation.push(e),this.clear()}}}},wrAo:function(e,t,n){"use strict";t.a={name:"hubpress-settings-social",computed:{social:function(){return this.$store.state.application.config.socialnetwork||{}}}}},yJpT:function(e,t,n){var i=n("j9sj");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("33615082",i,!0,{sourceMap:!1})},yTq1:function(e,t,n){"use strict";var i=n("//Fk"),o=n.n(i),r=n("I3G/"),a=n.n(r),s=n("F88d"),c=n("XSDV"),u=(n.n(c),{_default:function(){return n.e(0).then(n.bind(null,"Ma2J")).then(function(e){return e.default||e})}}),l={};t.a={head:{title:"Hubpress: A web application to build your Blog",meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{hid:"description",name:"description",content:"Nuxt.js project"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"},{rel:"stylesheet",href:"../static/semantic/semantic.min.css"}],style:[],script:[]},render:function(e,t){var n=e("nuxt-loading",{ref:"loading"}),i=e(this.layout||"nuxt");return e("div",{domProps:{id:"__nuxt"}},[n,e("transition",{props:{name:"layout",mode:"out-in"}},[e("div",{domProps:{id:"__layout"},key:this.layoutName},[i])])])},data:function(){return{layout:null,layoutName:""}},beforeCreate:function(){a.a.util.defineReactive(this,"nuxt",this.$options.nuxt)},created:function(){a.a.prototype.$nuxt=this,"undefined"!=typeof window&&(window.$nuxt=this),this.error=this.nuxt.error},mounted:function(){this.$loading=this.$refs.loading},watch:{"nuxt.err":"errorChanged"},methods:{errorChanged:function(){this.nuxt.err&&this.$loading&&(this.$loading.fail&&this.$loading.fail(),this.$loading.finish&&this.$loading.finish())},setLayout:function(e){e&&l["_"+e]||(e="default"),this.layoutName=e;var t="_"+e;return this.layout=l[t],this.layout},loadLayout:function(e){var t=this;e&&(u["_"+e]||l["_"+e])||(e="default");var n="_"+e;return l[n]?o.a.resolve(l[n]):u[n]().then(function(e){return l[n]=e,delete u[n],l[n]}).catch(function(e){if(t.$nuxt)return t.$nuxt.error({statusCode:500,message:e.message})})}},components:{NuxtLoading:s.a}}},yUYC:function(e,t,n){"use strict";var i=n("I3G/"),o=n.n(i);t.a={name:"nuxt-loading",data:function(){return{percent:0,show:!1,canSuccess:!0,duration:5e3,height:"2px",color:"#3B8070",failedColor:"red"}},methods:{start:function(){var e=this;return this.show=!0,this.canSuccess=!0,this._timer&&(clearInterval(this._timer),this.percent=0),this._cut=1e4/Math.floor(this.duration),this._timer=setInterval(function(){e.increase(e._cut*Math.random()),e.percent>95&&e.finish()},100),this},set:function(e){return this.show=!0,this.canSuccess=!0,this.percent=Math.floor(e),this},get:function(){return Math.floor(this.percent)},increase:function(e){return this.percent=this.percent+Math.floor(e),this},decrease:function(e){return this.percent=this.percent-Math.floor(e),this},finish:function(){return this.percent=100,this.hide(),this},pause:function(){return clearInterval(this._timer),this},hide:function(){var e=this;return clearInterval(this._timer),this._timer=null,setTimeout(function(){e.show=!1,o.a.nextTick(function(){setTimeout(function(){e.percent=0},200)})},500),this},fail:function(){return this.canSuccess=!1,this}}}},ys1n:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,".grid[data-v-94154cf6]{margin:0;height:100%;background-color:#dadada}#loginForm.column[data-v-94154cf6]{max-width:450px;text-align:center}.column[data-v-94154cf6]{max-width:750px}",""])},zQW4:function(e,t,n){"use strict";for(var i=n("woOf"),o=n.n(i),r=n("//Fk"),a=n.n(r),s=n("BO1k"),c=n.n(s),u=n("mtWM"),l=n.n(u),p={setHeader:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",i=!0,o=!1,r=void 0;try{for(var a,s=c()(Array.isArray(n)?n:[n]);!(i=(a=s.next()).done);i=!0){var u=a.value;if(!t)return void delete this.defaults.headers[u][e];this.defaults.headers[u][e]=t}}catch(e){o=!0,r=e}finally{try{!i&&s.return&&s.return()}finally{if(o)throw r}}},setToken:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",i=e?(t?t+" ":"")+e:null;this.setHeader("Authorization",i,n)},onRequest:function(e){this.interceptors.request.use(function(t){return e(t)||t})},onResponse:function(e){this.interceptors.response.use(function(t){return e(t)||t})},onRequestError:function(e){this.interceptors.request.use(void 0,function(t){return e(t)||a.a.reject(t)})},onResponseError:function(e){this.interceptors.response.use(void 0,function(t){return e(t)||a.a.reject(t)})},onError:function(e){this.onRequestError(e),this.onResponseError(e)}},d=function(e){p["$"+e]=function(){return this[e].apply(this,arguments).then(function(e){return e&&e.data})}},f=["request","delete","get","head","options","post","put","patch"],h=0;h.header[data-v-d7646c16]{margin-top:10px}.item.user .header[data-v-d7646c16],.item.user .subheader[data-v-d7646c16]{text-align:center}.ui.uncover.sidebar[data-v-d7646c16]{z-index:1000}img.logo[data-v-d7646c16]{width:30px}.version[data-v-d7646c16]{padding-top:5px;text-align:center}",""])},I8H5:function(e,t,n){"use strict";var i=n("i+pb"),o=n("hn7T");var a=function(e){n("0h/D")},r=n("VU/8")(i.a,o.a,!1,a,"data-v-d7646c16",null);t.a=r.exports},Ma2J:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("aGFA"),o=n("wQ3+");var a=function(e){n("deMZ")},r=n("VU/8")(i.a,o.a,!1,a,null,null);t.default=r.exports},Pvge:function(e,t,n){"use strict";var i=n("4M/C"),o=n("ya+C");var a=function(e){n("Wkd0")},r=n("VU/8")(i.a,o.a,!1,a,"data-v-23ee4933",null);t.a=r.exports},SVNF:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"#menu-button.launch.button .icon[data-v-23ee4933]{margin-left:0}.fixed.launch.button[data-v-23ee4933]{display:block;position:fixed;top:0;left:0;padding-right:.75em;height:47px;white-space:nowrap;overflow:hidden;-webkit-transition:width .3s ease,transform .5s ease;-webkit-transition:width .3s ease,-webkit-transform .5s ease;transition:width .3s ease,-webkit-transform .5s ease;transition:width .3s ease,transform .5s ease;transition:width .3s ease,transform .5s ease,-webkit-transform .5s ease}.fixed.launch.button .text[data-v-23ee4933]{position:absolute;white-space:nowrap;top:auto;left:54px;opacity:0;-webkit-transition:opacity .3s .3s;transition:opacity .3s .3s}.fixed.launch.button:hover .text[data-v-23ee4933]{opacity:1}",""])},VR64:function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,"#__layout,#__nuxt{height:100%}#app.pushable:not(body){-webkit-transform:none;transform:none}#global-notification{position:absolute;width:90vw;left:5vw;bottom:50px;z-index:10000}@media only screen and (min-width:768px){#global-notification{width:750px;left:calc(50vw - 375px)}}.pushable{background-color:#fff}.pusher{height:0;min-height:100%}.gitter-chat-embed,.gitter-open-chat-button{z-index:1001}.gitter-open-chat-button{background-color:#e74c3c}.gitter-open-chat-button:hover{background-color:#bd3a2c}",""])},Wkd0:function(e,t,n){var i=n("SVNF");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("3743f2b5",i,!0,{sourceMap:!1})},aGFA:function(e,t,n){"use strict";(function(e){var i=n("pXBF"),o=(n.n(i),n("I8H5")),a=n("Pvge"),r=n("X5n4");t.a={name:"app",components:{Navigation:o.a,MenuButton:a.a},created:function(){var e=this;console.log(this),this.$store.dispatch(r.c).then(function(t){return e.$store.dispatch(r.b)}).then(function(t){return e.$store.dispatch(r.d)}).then(function(t){return e.$router.push(e.$router.currentRoute.query.redirect||"/")})},mounted:function(){var t=this;this.$store.watch(function(e){return e.application.notification.isVisible},function(n,i){if(n){e(".message .close").removeClass("hidden");setTimeout(function(){t.$store.state.application.notification.isVisible&&t.closeNotification()},4e3);e(".message .close").on("click",function(){return t.closeNotification()})}else e(".message .close").off("click")})},methods:{closeNotification:function(){this.$store.dispatch("application:close-notification")}},computed:{isAuthenticatedAndReady:function(){return this.$store.state.application.isInitialized&&this.$store.state.authentication.isAuthenticated&&"/login"!==this.$route.path},isInitializing:function(){return!this.$store.state.application.isInitialized},isInitialized:function(){return this.$store.state.application.isInitialized},isLoading:function(){return this.$store.state.application.isLoading},notification:function(){return this.$store.state.application.notification}}}}).call(t,n("7t+N"))},deMZ:function(e,t,n){var i=n("VR64");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("05b2e4e8",i,!0,{sourceMap:!1})},hn7T:function(e,t,n){"use strict";var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ui vertical inverted sidebar menu left"},[n("div",{staticClass:"item user"},[n("img",{staticClass:"ui tiny centered bordered circular image",attrs:{src:e.currentUser.avatar_url}}),n("div",{staticClass:"header"},[e._v("\n "+e._s(e.currentUser.name)+"\n ")]),n("div",{staticClass:"subheader centered"},[e._v("@"+e._s(e.currentUser.login))])]),e._l(e.sections,function(t){return n("div",{key:t.id,staticClass:"item"},[n("div",{staticClass:"header"},[e._v(e._s(t.label))]),n("div",{staticClass:"menu"},e._l(e.filterEntries(t.entries),function(t){return n("router-link",{key:t.name,staticClass:"item",attrs:{"active-class":"active",to:"/"+t.path,replace:""},nativeOn:{click:function(t){return e.toggleMenu(t)}}},[e._v("\n "+e._s(t.label)+"\n ")])}))])}),n("router-link",{staticClass:"item",attrs:{"active-class":"active",to:"/settings",replace:""},nativeOn:{click:function(t){return e.toggleMenu(t)}}},[e._v("\n Settings\n ")]),e._m(0),n("div",{staticClass:"item"},[n("div",{staticClass:"header"},[e._v("About HubPress")]),n("div",{staticClass:"menu"},[n("router-link",{staticClass:"item",attrs:{"active-class":"active",to:"/about",replace:""},nativeOn:{click:function(t){return e.toggleMenu(t)}}},[e._v("\n Team"),n("i",{staticClass:"users icon"})]),e._m(1),n("a",{staticClass:"item",attrs:{href:e.upgrade,target:"_blank"}},[e._v("Check for upgrade"),n("i",{staticClass:"checkmark icon"})]),n("div",{staticClass:"item"},[n("img",{staticClass:"ui centered logo image",attrs:{src:"https://hubpress.github.io/images/logo.png"}}),n("div",{staticClass:"version"},[e._v("\n v"+e._s(e.hubpressVersion)+"\n ")])])],1)])],2)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"item"},[t("div",{staticClass:"header"},[this._v("Help us")]),t("div",{staticClass:"menu"},[t("a",{staticClass:"item",attrs:{href:"https://hubpress.gitbooks.io/contributing-to-hubpress/content/",target:"_blank"}},[this._v("Contribute"),t("i",{staticClass:"smile icon"})]),t("a",{staticClass:"item",attrs:{href:"https://opencollective.com/hubpressio/",target:"_blank"}},[this._v("Donation OpenCollective"),t("i",{staticClass:"payment icon"})]),t("a",{staticClass:"item",attrs:{href:"https://www.paypal.me/anthonny/5",target:"_blank"}},[this._v("Donation PayPal"),t("i",{staticClass:"paypal icon"})])])])},function(){var e=this.$createElement,t=this._self._c||e;return t("a",{staticClass:"item",attrs:{href:"https://github.com/orgs/HubPress/people",target:"_blank"}},[this._v("Contributors"),t("i",{staticClass:"heart icon"})])}]};t.a=i},"i+pb":function(e,t,n){"use strict";var i=n("7t+N"),o=n.n(i);t.a={name:"navigation",mounted:function(){o()("#app .ui.sidebar").sidebar({context:o()("#app")}).sidebar("setting","transition","overlay")},methods:{toggleMenu:function(){o()(".ui.sidebar").sidebar("toggle")},filterEntries:function(e){return e.filter(function(e){return e.label})}},computed:{sections:function(){return this.$store.getters.navigations},currentUser:function(){return this.$store.state.authentication.userInformations},hubpressVersion:function(){return"0.9.1"},upgrade:function(){return"https://github.com/"+this.$store.state.application.config.meta.username+"/"+this.$store.state.application.config.meta.repositoryName+"/compare/"+this.$store.state.application.config.meta.branch+"...HubPress:"+this.$store.state.application.config.meta.branch}}}},pXBF:function(e,t,n){(function(e){!function(e,t,n,i){e.site=e.fn.site=function(i){var o,a,r=(new Date).getTime(),s=[],l=arguments[0],c="string"==typeof l,u=[].slice.call(arguments,1),d=e.isPlainObject(i)?e.extend(!0,{},e.site.settings,i):e.extend({},e.site.settings),f=d.namespace,m=d.error,g="module-"+f,p=e(n),v=this,h=p.data(g);return o={initialize:function(){o.instantiate()},instantiate:function(){o.verbose("Storing instance of site",o),h=o,p.data(g,o)},normalize:function(){o.fix.console(),o.fix.requestAnimationFrame()},fix:{console:function(){o.debug("Normalizing window.console"),void 0!==console&&void 0!==console.log||(o.verbose("Console not available, normalizing events"),o.disable.console()),void 0!==console.group&&void 0!==console.groupEnd&&void 0!==console.groupCollapsed||(o.verbose("Console group not available, normalizing events"),t.console.group=function(){},t.console.groupEnd=function(){},t.console.groupCollapsed=function(){}),void 0===console.markTimeline&&(o.verbose("Mark timeline not available, normalizing events"),t.console.markTimeline=function(){})},consoleClear:function(){o.debug("Disabling programmatic console clearing"),t.console.clear=function(){}},requestAnimationFrame:function(){o.debug("Normalizing requestAnimationFrame"),void 0===t.requestAnimationFrame&&(o.debug("RequestAnimationFrame not available, normalizing event"),t.requestAnimationFrame=t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame||function(e){setTimeout(e,0)})}},moduleExists:function(t){return void 0!==e.fn[t]&&void 0!==e.fn[t].settings},enabled:{modules:function(t){var n=[];return t=t||d.modules,e.each(t,function(e,t){o.moduleExists(t)&&n.push(t)}),n}},disabled:{modules:function(t){var n=[];return t=t||d.modules,e.each(t,function(e,t){o.moduleExists(t)||n.push(t)}),n}},change:{setting:function(t,n,i,a){i="string"==typeof i?"all"===i?d.modules:[i]:i||d.modules,a=void 0===a||a,e.each(i,function(i,r){var s,l=!o.moduleExists(r)||(e.fn[r].settings.namespace||!1);o.moduleExists(r)&&(o.verbose("Changing default setting",t,n,r),e.fn[r].settings[t]=n,a&&l&&(s=e(":data(module-"+l+")")).length>0&&(o.verbose("Modifying existing settings",s),s[r]("setting",t,n)))})},settings:function(t,n,i){n="string"==typeof n?[n]:n||d.modules,i=void 0===i||i,e.each(n,function(n,a){var r;o.moduleExists(a)&&(o.verbose("Changing default setting",t,a),e.extend(!0,e.fn[a].settings,t),i&&f&&(r=e(":data(module-"+f+")")).length>0&&(o.verbose("Modifying existing settings",r),r[a]("setting",t)))})}},enable:{console:function(){o.console(!0)},debug:function(e,t){e=e||d.modules,o.debug("Enabling debug for modules",e),o.change.setting("debug",!0,e,t)},verbose:function(e,t){e=e||d.modules,o.debug("Enabling verbose debug for modules",e),o.change.setting("verbose",!0,e,t)}},disable:{console:function(){o.console(!1)},debug:function(e,t){e=e||d.modules,o.debug("Disabling debug for modules",e),o.change.setting("debug",!1,e,t)},verbose:function(e,t){e=e||d.modules,o.debug("Disabling verbose debug for modules",e),o.change.setting("verbose",!1,e,t)}},console:function(e){if(e){if(void 0===h.cache.console)return void o.error(m.console);o.debug("Restoring console function"),t.console=h.cache.console}else o.debug("Disabling console function"),h.cache.console=t.console,t.console={clear:function(){},error:function(){},group:function(){},groupCollapsed:function(){},groupEnd:function(){},info:function(){},log:function(){},markTimeline:function(){},warn:function(){}}},destroy:function(){o.verbose("Destroying previous site for",p),p.removeData(g)},cache:{},setting:function(t,n){if(e.isPlainObject(t))e.extend(!0,d,t);else{if(void 0===n)return d[t];d[t]=n}},internal:function(t,n){if(e.isPlainObject(t))e.extend(!0,o,t);else{if(void 0===n)return o[t];o[t]=n}},debug:function(){d.debug&&(d.performance?o.performance.log(arguments):(o.debug=Function.prototype.bind.call(console.info,console,d.name+":"),o.debug.apply(console,arguments)))},verbose:function(){d.verbose&&d.debug&&(d.performance?o.performance.log(arguments):(o.verbose=Function.prototype.bind.call(console.info,console,d.name+":"),o.verbose.apply(console,arguments)))},error:function(){o.error=Function.prototype.bind.call(console.error,console,d.name+":"),o.error.apply(console,arguments)},performance:{log:function(e){var t,n;d.performance&&(n=(t=(new Date).getTime())-(r||t),r=t,s.push({Element:v,Name:e[0],Arguments:[].slice.call(e,1)||"","Execution Time":n})),clearTimeout(o.performance.timer),o.performance.timer=setTimeout(o.performance.display,500)},display:function(){var t=d.name+":",n=0;r=!1,clearTimeout(o.performance.timer),e.each(s,function(e,t){n+=t["Execution Time"]}),t+=" "+n+"ms",(void 0!==console.group||void 0!==console.table)&&s.length>0&&(console.groupCollapsed(t),console.table?console.table(s):e.each(s,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),s=[]}},invoke:function(t,n,i){var r,s,l,c=h;return n=n||u,i=v||i,"string"==typeof t&&void 0!==c&&(t=t.split(/[\. ]/),r=t.length-1,e.each(t,function(n,i){var a=n!=r?i+t[n+1].charAt(0).toUpperCase()+t[n+1].slice(1):t;if(e.isPlainObject(c[a])&&n!=r)c=c[a];else{if(void 0!==c[a])return s=c[a],!1;if(!e.isPlainObject(c[i])||n==r)return void 0!==c[i]?(s=c[i],!1):(o.error(m.method,t),!1);c=c[i]}})),e.isFunction(s)?l=s.apply(i,n):void 0!==s&&(l=s),e.isArray(a)?a.push(l):void 0!==a?a=[a,l]:void 0!==l&&(a=l),s}},c?(void 0===h&&o.initialize(),o.invoke(l)):(void 0!==h&&o.destroy(),o.initialize()),void 0!==a?a:this},e.site.settings={name:"Site",namespace:"site",error:{console:"Console cannot be restored, most likely it was overwritten outside of module",method:"The method you called is not defined."},debug:!1,verbose:!1,performance:!0,modules:["accordion","api","checkbox","dimmer","dropdown","embed","form","modal","nag","popup","rating","shape","sidebar","state","sticky","tab","transition","visit","visibility"],siteNamespace:"site",namespaceStub:{cache:{},config:{},sections:{},section:{},utilities:{}}},e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(n){return!!e.data(n,t)}}):function(t,n,i){return!!e.data(t,i[3])}})}(e,window,document),function(e,t,n,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),e.fn.form=function(t){var i,o=e(this),a=o.selector||"",r=(new Date).getTime(),s=[],l=arguments[0],c=arguments[1],u="string"==typeof l,d=[].slice.call(arguments,1);return o.each(function(){var f,m,g,p,v,h,b,y,x,C,w,k,S,T,A,R,P=e(this),E=this,F=[],O=!1;(R={initialize:function(){R.get.settings(),u?(void 0===A&&R.instantiate(),R.invoke(l)):(void 0!==A&&A.invoke("destroy"),R.verbose("Initializing form validation",P,v),R.bindEvents(),R.set.defaults(),R.instantiate())},instantiate:function(){R.verbose("Storing instance of module",R),A=R,P.data(S,R)},destroy:function(){R.verbose("Destroying previous module",A),R.removeEvents(),P.removeData(S)},refresh:function(){R.verbose("Refreshing selector cache"),f=P.find(y.field),m=P.find(y.group),g=P.find(y.message),P.find(y.prompt),p=P.find(y.submit),P.find(y.clear),P.find(y.reset)},submit:function(){R.verbose("Submitting form",P),P.submit()},attachEvents:function(t,n){n=n||"submit",e(t).on("click"+T,function(e){R[n](),e.preventDefault()})},bindEvents:function(){R.verbose("Attaching form events"),P.on("submit"+T,R.validate.form).on("blur"+T,y.field,R.event.field.blur).on("click"+T,y.submit,R.submit).on("click"+T,y.reset,R.reset).on("click"+T,y.clear,R.clear),v.keyboardShortcuts&&P.on("keydown"+T,y.field,R.event.field.keydown),f.each(function(){var t=e(this),n=t.prop("type"),i=R.get.changeEvent(n,t);e(this).on(i+T,R.event.field.change)})},clear:function(){f.each(function(){var t=e(this),n=t.parent(),i=t.closest(m),o=i.find(y.prompt),a=t.data(b.defaultValue)||"",r=n.is(y.uiCheckbox),s=n.is(y.uiDropdown);i.hasClass(x.error)&&(R.verbose("Resetting error on field",i),i.removeClass(x.error),o.remove()),s?(R.verbose("Resetting dropdown value",n,a),n.dropdown("clear")):r?t.prop("checked",!1):(R.verbose("Resetting field value",t,a),t.val(""))})},reset:function(){f.each(function(){var t=e(this),n=t.parent(),i=t.closest(m),o=i.find(y.prompt),a=t.data(b.defaultValue),r=n.is(y.uiCheckbox),s=n.is(y.uiDropdown),l=i.hasClass(x.error);void 0!==a&&(l&&(R.verbose("Resetting error on field",i),i.removeClass(x.error),o.remove()),s?(R.verbose("Resetting dropdown value",n,a),n.dropdown("restore defaults")):r?(R.verbose("Resetting checkbox value",n,a),t.prop("checked",a)):(R.verbose("Resetting field value",t,a),t.val(a)))})},determine:{isValid:function(){var t=!0;return e.each(h,function(e,n){R.validate.field(n,e,!0)||(t=!1)}),t}},is:{bracketedRule:function(e){return e.type&&e.type.match(v.regExp.bracket)},shorthandFields:function(e){var t=e[Object.keys(e)[0]];return R.is.shorthandRules(t)},shorthandRules:function(t){return"string"==typeof t||e.isArray(t)},empty:function(e){return!e||0===e.length||(e.is('input[type="checkbox"]')?!e.is(":checked"):R.is.blank(e))},blank:function(t){return""===e.trim(t.val())},valid:function(t){var n=!0;return t?(R.verbose("Checking if field is valid",t),R.validate.field(h[t],t,!1)):(R.verbose("Checking if form is valid"),e.each(h,function(e,t){R.is.valid(e)||(n=!1)}),n)}},removeEvents:function(){P.off(T),f.off(T),p.off(T),f.off(T)},event:{field:{keydown:function(t){var n=e(this),i=t.which,o=n.is(y.input),a=n.is(y.checkbox),r=n.closest(y.uiDropdown).length>0,s=13;i==27&&(R.verbose("Escape key pressed blurring field"),n.blur()),t.ctrlKey||i!=s||!o||r||a||(O||(n.one("keyup"+T,R.event.field.keyup),R.submit(),R.debug("Enter pressed on input submitting form")),O=!0)},keyup:function(){O=!1},blur:function(t){var n=e(this),i=n.closest(m),o=R.get.validation(n);i.hasClass(x.error)?(R.debug("Revalidating field",n,o),o&&R.validate.field(o)):"blur"==v.on&&o&&R.validate.field(o)},change:function(t){var n=e(this),i=n.closest(m),o=R.get.validation(n);o&&("change"==v.on||i.hasClass(x.error)&&v.revalidate)&&(clearTimeout(R.timer),R.timer=setTimeout(function(){R.debug("Revalidating field",n,R.get.validation(n)),R.validate.field(o)},v.delay))}}},get:{ancillaryValue:function(e){return!(!e.type||!e.value&&!R.is.bracketedRule(e))&&(void 0!==e.value?e.value:e.type.match(v.regExp.bracket)[1]+"")},ruleName:function(e){return R.is.bracketedRule(e)?e.type.replace(e.type.match(v.regExp.bracket)[0],""):e.type},changeEvent:function(e,t){return"checkbox"==e||"radio"==e||"hidden"==e||t.is("select")?"change":R.get.inputEvent()},inputEvent:function(){return void 0!==n.createElement("input").oninput?"input":void 0!==n.createElement("input").onpropertychange?"propertychange":"keyup"},fieldsFromShorthand:function(t){var n={};return e.each(t,function(t,i){"string"==typeof i&&(i=[i]),n[t]={rules:[]},e.each(i,function(e,i){n[t].rules.push({type:i})})}),n},prompt:function(t,n){var i,o,a=R.get.ruleName(t),r=R.get.ancillaryValue(t),s=R.get.field(n.identifier),l=s.val(),c=e.isFunction(t.prompt)?t.prompt(l):t.prompt||v.prompt[a]||v.text.unspecifiedRule,u=-1!==c.search("{value}"),d=-1!==c.search("{name}");return u&&(c=c.replace("{value}",s.val())),d&&(o=1==(i=s.closest(y.group).find("label").eq(0)).length?i.text():s.prop("placeholder")||v.text.unspecifiedField,c=c.replace("{name}",o)),c=(c=c.replace("{identifier}",n.identifier)).replace("{ruleValue}",r),t.prompt||R.verbose("Using default validation prompt for type",c,a),c},settings:function(){if(e.isPlainObject(t)){var n=Object.keys(t);n.length>0&&(void 0!==t[n[0]].identifier&&void 0!==t[n[0]].rules)?(v=e.extend(!0,{},e.fn.form.settings,c),h=e.extend({},e.fn.form.settings.defaults,t),R.error(v.error.oldSyntax,E),R.verbose("Extending settings from legacy parameters",h,v)):(t.fields&&R.is.shorthandFields(t.fields)&&(t.fields=R.get.fieldsFromShorthand(t.fields)),v=e.extend(!0,{},e.fn.form.settings,t),h=e.extend({},e.fn.form.settings.defaults,v.fields),R.verbose("Extending settings",h,v))}else v=e.fn.form.settings,h=e.fn.form.settings.defaults,R.verbose("Using default form validation",h,v);k=v.namespace,b=v.metadata,y=v.selector,x=v.className,C=v.regExp,w=v.error,S="module-"+k,T="."+k,A=P.data(S),R.refresh()},field:function(t){return R.verbose("Finding field with identifier",t),t=R.escape.string(t),f.filter("#"+t).length>0?f.filter("#"+t):f.filter('[name="'+t+'"]').length>0?f.filter('[name="'+t+'"]'):f.filter('[name="'+t+'[]"]').length>0?f.filter('[name="'+t+'[]"]'):f.filter("[data-"+b.validate+'="'+t+'"]').length>0?f.filter("[data-"+b.validate+'="'+t+'"]'):e("")},fields:function(t){var n=e();return e.each(t,function(e,t){n=n.add(R.get.field(t))}),n},validation:function(t){var n,i;return!!h&&(e.each(h,function(e,o){i=o.identifier||e,R.get.field(i)[0]==t[0]&&(o.identifier=i,n=o)}),n||!1)},value:function(e){var t=[];return t.push(e),R.get.values.call(E,t)[e]},values:function(t){var n={};return(e.isArray(t)?R.get.fields(t):f).each(function(t,i){var o=e(i),a=(o.prop("type"),o.prop("name")),r=o.val(),s=o.is(y.checkbox),l=o.is(y.radio),c=-1!==a.indexOf("[]"),u=!!s&&o.is(":checked");a&&(c?(a=a.replace("[]",""),n[a]||(n[a]=[]),s?u?n[a].push(r||!0):n[a].push(!1):n[a].push(r)):l?void 0!==n[a]&&0!=n[a]||(n[a]=!!u&&(r||!0)):n[a]=s?!!u&&(r||!0):r)}),n}},has:{field:function(e){return R.verbose("Checking for existence of a field with identifier",e),"string"!=typeof(e=R.escape.string(e))&&R.error(w.identifier,e),f.filter("#"+e).length>0||(f.filter('[name="'+e+'"]').length>0||f.filter("[data-"+b.validate+'="'+e+'"]').length>0)}},escape:{string:function(e){return(e=String(e)).replace(C.escape,"\\$&")}},add:{rule:function(e,t){R.add.field(e,t)},field:function(t,n){var i={};R.is.shorthandRules(n)?(n=e.isArray(n)?n:[n],i[t]={rules:[]},e.each(n,function(e,n){i[t].rules.push({type:n})})):i[t]=n,h=e.extend({},h,i),R.debug("Adding rules",i,h)},fields:function(t){var n;n=t&&R.is.shorthandFields(t)?R.get.fieldsFromShorthand(t):t,h=e.extend({},h,n)},prompt:function(t,n){var i=R.get.field(t).closest(m),o=i.children(y.prompt),a=0!==o.length;n="string"==typeof n?[n]:n,R.verbose("Adding field error state",t),i.addClass(x.error),v.inline&&(a||(o=v.templates.prompt(n)).appendTo(i),o.html(n[0]),a?R.verbose("Inline errors are disabled, no inline error added",t):v.transition&&void 0!==e.fn.transition&&P.transition("is supported")?(R.verbose("Displaying error with css transition",v.transition),o.transition(v.transition+" in",v.duration)):(R.verbose("Displaying error with fallback javascript animation"),o.fadeIn(v.duration)))},errors:function(e){R.debug("Adding form error messages",e),R.set.error(),g.html(v.templates.error(e))}},remove:{rule:function(t,n){var i=e.isArray(n)?n:[n];if(void 0==n)return R.debug("Removed all rules"),void(h[t].rules=[]);void 0!=h[t]&&e.isArray(h[t].rules)&&e.each(h[t].rules,function(e,n){-1!==i.indexOf(n.type)&&(R.debug("Removed rule",n.type),h[t].rules.splice(e,1))})},field:function(t){var n=e.isArray(t)?t:[t];e.each(n,function(e,t){R.remove.rule(t)})},rules:function(t,n){e.isArray(t)?e.each(fields,function(e,t){R.remove.rule(t,n)}):R.remove.rule(t,n)},fields:function(e){R.remove.field(e)},prompt:function(t){var n=R.get.field(t).closest(m),i=n.children(y.prompt);n.removeClass(x.error),v.inline&&i.is(":visible")&&(R.verbose("Removing prompt for field",t),v.transition&&void 0!==e.fn.transition&&P.transition("is supported")?i.transition(v.transition+" out",v.duration,function(){i.remove()}):i.fadeOut(v.duration,function(){i.remove()}))}},set:{success:function(){P.removeClass(x.error).addClass(x.success)},defaults:function(){f.each(function(){var t=e(this),n=t.filter(y.checkbox).length>0?t.is(":checked"):t.val();t.data(b.defaultValue,n)})},error:function(){P.removeClass(x.success).addClass(x.error)},value:function(e,t){var n={};return n[e]=t,R.set.values.call(E,n)},values:function(t){e.isEmptyObject(t)||e.each(t,function(t,n){var i,o=R.get.field(t),a=o.parent(),r=e.isArray(n),s=a.is(y.uiCheckbox),l=a.is(y.uiDropdown),c=o.is(y.radio)&&s;o.length>0&&(r&&s?(R.verbose("Selecting multiple",n,o),a.checkbox("uncheck"),e.each(n,function(e,t){i=o.filter('[value="'+t+'"]'),a=i.parent(),i.length>0&&a.checkbox("check")})):c?(R.verbose("Selecting radio value",n,o),o.filter('[value="'+n+'"]').parent(y.uiCheckbox).checkbox("check")):s?(R.verbose("Setting checkbox value",n,a),!0===n?a.checkbox("check"):a.checkbox("uncheck")):l?(R.verbose("Setting dropdown value",n,a),a.dropdown("set selected",n)):(R.verbose("Setting field value",n,o),o.val(n)))})}},validate:{form:function(e,t){var n=R.get.values();if(O)return!1;if(F=[],R.determine.isValid()){if(R.debug("Form has no validation errors, submitting"),R.set.success(),!0!==t)return v.onSuccess.call(E,e,n)}else if(R.debug("Form has errors"),R.set.error(),v.inline||R.add.errors(F),void 0!==P.data("moduleApi")&&e.stopImmediatePropagation(),!0!==t)return v.onFailure.call(E,F,n)},field:function(t,n,i){i=void 0===i||i,"string"==typeof t&&(R.verbose("Validating field",t),n=t,t=h[t]);var o=t.identifier||n,a=R.get.field(o),r=!!t.depends&&R.get.field(t.depends),s=!0,l=[];return t.identifier||(R.debug("Using field name as identifier",o),t.identifier=o),a.prop("disabled")?(R.debug("Field is disabled. Skipping",o),s=!0):t.optional&&R.is.blank(a)?(R.debug("Field is optional and blank. Skipping",o),s=!0):t.depends&&R.is.empty(r)?(R.debug("Field depends on another value that is not present or empty. Skipping",r),s=!0):void 0!==t.rules&&e.each(t.rules,function(e,n){R.has.field(o)&&!R.validate.rule(t,n)&&(R.debug("Field is invalid",o,n.type),l.push(R.get.prompt(n,t)),s=!1)}),s?(i&&(R.remove.prompt(o,l),v.onValid.call(a)),!0):(i&&(F=F.concat(l),R.add.prompt(o,l),v.onInvalid.call(a,l)),!1)},rule:function(t,n){var i=R.get.field(t.identifier),o=(n.type,i.val()),a=R.get.ancillaryValue(n),r=R.get.ruleName(n),s=v.rules[r];if(e.isFunction(s))return o=void 0===o||""===o||null===o?"":e.trim(o+""),s.call(i,o,a);R.error(w.noRule,r)}},setting:function(t,n){if(e.isPlainObject(t))e.extend(!0,v,t);else{if(void 0===n)return v[t];v[t]=n}},internal:function(t,n){if(e.isPlainObject(t))e.extend(!0,R,t);else{if(void 0===n)return R[t];R[t]=n}},debug:function(){!v.silent&&v.debug&&(v.performance?R.performance.log(arguments):(R.debug=Function.prototype.bind.call(console.info,console,v.name+":"),R.debug.apply(console,arguments)))},verbose:function(){!v.silent&&v.verbose&&v.debug&&(v.performance?R.performance.log(arguments):(R.verbose=Function.prototype.bind.call(console.info,console,v.name+":"),R.verbose.apply(console,arguments)))},error:function(){v.silent||(R.error=Function.prototype.bind.call(console.error,console,v.name+":"),R.error.apply(console,arguments))},performance:{log:function(e){var t,n;v.performance&&(n=(t=(new Date).getTime())-(r||t),r=t,s.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:E,"Execution Time":n})),clearTimeout(R.performance.timer),R.performance.timer=setTimeout(R.performance.display,500)},display:function(){var t=v.name+":",n=0;r=!1,clearTimeout(R.performance.timer),e.each(s,function(e,t){n+=t["Execution Time"]}),t+=" "+n+"ms",a&&(t+=" '"+a+"'"),o.length>1&&(t+=" ("+o.length+")"),(void 0!==console.group||void 0!==console.table)&&s.length>0&&(console.groupCollapsed(t),console.table?console.table(s):e.each(s,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),s=[]}},invoke:function(t,n,o){var a,r,s,l=A;return n=n||d,o=E||o,"string"==typeof t&&void 0!==l&&(t=t.split(/[\. ]/),a=t.length-1,e.each(t,function(n,i){var o=n!=a?i+t[n+1].charAt(0).toUpperCase()+t[n+1].slice(1):t;if(e.isPlainObject(l[o])&&n!=a)l=l[o];else{if(void 0!==l[o])return r=l[o],!1;if(!e.isPlainObject(l[i])||n==a)return void 0!==l[i]&&(r=l[i],!1);l=l[i]}})),e.isFunction(r)?s=r.apply(o,n):void 0!==r&&(s=r),e.isArray(i)?i.push(s):void 0!==i?i=[i,s]:void 0!==s&&(i=s),r}}).initialize()}),void 0!==i?i:this},e.fn.form.settings={name:"Form",namespace:"form",debug:!1,verbose:!1,performance:!0,fields:!1,keyboardShortcuts:!0,on:"submit",inline:!1,delay:200,revalidate:!0,transition:"scale",duration:200,onValid:function(){},onInvalid:function(){},onSuccess:function(){return!0},onFailure:function(){return!1},metadata:{defaultValue:"default",validate:"validate"},regExp:{htmlID:/^[a-zA-Z][\w:.-]*$/g,bracket:/\[(.*)\]/i,decimal:/^\d+\.?\d*$/,email:/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,escape:/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,flags:/^\/(.*)\/(.*)?/,integer:/^\-?\d+$/,number:/^\-?\d*(\.\d+)?$/,url:/(https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/i},text:{unspecifiedRule:"Please enter a valid value",unspecifiedField:"This field"},prompt:{empty:"{name} must have a value",checked:"{name} must be checked",email:"{name} must be a valid e-mail",url:"{name} must be a valid url",regExp:"{name} is not formatted correctly",integer:"{name} must be an integer",decimal:"{name} must be a decimal number",number:"{name} must be set to a number",is:'{name} must be "{ruleValue}"',isExactly:'{name} must be exactly "{ruleValue}"',not:'{name} cannot be set to "{ruleValue}"',notExactly:'{name} cannot be set to exactly "{ruleValue}"',contain:'{name} must contain "{ruleValue}"',containExactly:'{name} must contain exactly "{ruleValue}"',doesntContain:'{name} cannot contain "{ruleValue}"',doesntContainExactly:'{name} cannot contain exactly "{ruleValue}"',minLength:"{name} must be at least {ruleValue} characters",length:"{name} must be at least {ruleValue} characters",exactLength:"{name} must be exactly {ruleValue} characters",maxLength:"{name} cannot be longer than {ruleValue} characters",match:"{name} must match {ruleValue} field",different:"{name} must have a different value than {ruleValue} field",creditCard:"{name} must be a valid credit card number",minCount:"{name} must have at least {ruleValue} choices",exactCount:"{name} must have exactly {ruleValue} choices",maxCount:"{name} must have {ruleValue} or less choices"},selector:{checkbox:'input[type="checkbox"], input[type="radio"]',clear:".clear",field:"input, textarea, select",group:".field",input:"input",message:".error.message",prompt:".prompt.label",radio:'input[type="radio"]',reset:'.reset:not([type="reset"])',submit:'.submit:not([type="submit"])',uiCheckbox:".ui.checkbox",uiDropdown:".ui.dropdown"},className:{error:"error",label:"ui prompt label",pressed:"down",success:"success"},error:{identifier:"You must specify a string identifier for each field",method:"The method you called is not defined.",noRule:"There is no rule matching the one you specified",oldSyntax:"Starting in 2.0 forms now only take a single settings object. Validation settings converted to new syntax automatically."},templates:{error:function(t){var n='
    ';return e.each(t,function(e,t){n+="
  • "+t+"
  • "}),e(n+="
")},prompt:function(t){return e("
").addClass("ui basic red pointing prompt label").html(t[0])}},rules:{empty:function(t){return!(void 0===t||""===t||e.isArray(t)&&0===t.length)},checked:function(){return e(this).filter(":checked").length>0},email:function(t){return e.fn.form.settings.regExp.email.test(t)},url:function(t){return e.fn.form.settings.regExp.url.test(t)},regExp:function(t,n){if(n instanceof RegExp)return t.match(n);var i,o=n.match(e.fn.form.settings.regExp.flags);return o&&(n=o.length>=2?o[1]:n,i=o.length>=3?o[2]:""),t.match(new RegExp(n,i))},integer:function(t,n){var i,o,a,r=e.fn.form.settings.regExp.integer;return n&&-1===["",".."].indexOf(n)&&(-1==n.indexOf("..")?r.test(n)&&(i=o=n-0):(a=n.split("..",2),r.test(a[0])&&(i=a[0]-0),r.test(a[1])&&(o=a[1]-0))),r.test(t)&&(void 0===i||t>=i)&&(void 0===o||t<=o)},decimal:function(t){return e.fn.form.settings.regExp.decimal.test(t)},number:function(t){return e.fn.form.settings.regExp.number.test(t)},is:function(e,t){return t="string"==typeof t?t.toLowerCase():t,(e="string"==typeof e?e.toLowerCase():e)==t},isExactly:function(e,t){return e==t},not:function(e,t){return(e="string"==typeof e?e.toLowerCase():e)!=(t="string"==typeof t?t.toLowerCase():t)},notExactly:function(e,t){return e!=t},contains:function(t,n){return n=n.replace(e.fn.form.settings.regExp.escape,"\\$&"),-1!==t.search(new RegExp(n,"i"))},containsExactly:function(t,n){return n=n.replace(e.fn.form.settings.regExp.escape,"\\$&"),-1!==t.search(new RegExp(n))},doesntContain:function(t,n){return n=n.replace(e.fn.form.settings.regExp.escape,"\\$&"),-1===t.search(new RegExp(n,"i"))},doesntContainExactly:function(t,n){return n=n.replace(e.fn.form.settings.regExp.escape,"\\$&"),-1===t.search(new RegExp(n))},minLength:function(e,t){return void 0!==e&&e.length>=t},length:function(e,t){return void 0!==e&&e.length>=t},exactLength:function(e,t){return void 0!==e&&e.length==t},maxLength:function(e,t){return void 0!==e&&e.length<=t},match:function(t,n){var i;e(this);return e('[data-validate="'+n+'"]').length>0?i=e('[data-validate="'+n+'"]').val():e("#"+n).length>0?i=e("#"+n).val():e('[name="'+n+'"]').length>0?i=e('[name="'+n+'"]').val():e('[name="'+n+'[]"]').length>0&&(i=e('[name="'+n+'[]"]')),void 0!==i&&t.toString()==i.toString()},different:function(t,n){var i;e(this);return e('[data-validate="'+n+'"]').length>0?i=e('[data-validate="'+n+'"]').val():e("#"+n).length>0?i=e("#"+n).val():e('[name="'+n+'"]').length>0?i=e('[name="'+n+'"]').val():e('[name="'+n+'[]"]').length>0&&(i=e('[name="'+n+'[]"]')),void 0!==i&&t.toString()!==i.toString()},creditCard:function(t,n){var i,o,a={visa:{pattern:/^4/,length:[16]},amex:{pattern:/^3[47]/,length:[15]},mastercard:{pattern:/^5[1-5]/,length:[16]},discover:{pattern:/^(6011|622(12[6-9]|1[3-9][0-9]|[2-8][0-9]{2}|9[0-1][0-9]|92[0-5]|64[4-9])|65)/,length:[16]},unionPay:{pattern:/^(62|88)/,length:[16,17,18,19]},jcb:{pattern:/^35(2[89]|[3-8][0-9])/,length:[16]},maestro:{pattern:/^(5018|5020|5038|6304|6759|676[1-3])/,length:[12,13,14,15,16,17,18,19]},dinersClub:{pattern:/^(30[0-5]|^36)/,length:[14]},laser:{pattern:/^(6304|670[69]|6771)/,length:[16,17,18,19]},visaElectron:{pattern:/^(4026|417500|4508|4844|491(3|7))/,length:[16]}},r={},s=!1,l="string"==typeof n&&n.split(",");if("string"==typeof t&&0!==t.length){if(t=t.replace(/[\-]/g,""),l&&(e.each(l,function(n,i){(o=a[i])&&(r={length:-1!==e.inArray(t.length,o.length),pattern:-1!==t.search(o.pattern)}).length&&r.pattern&&(s=!0)}),!s))return!1;if((i={number:-1!==e.inArray(t.length,a.unionPay.length),pattern:-1!==t.search(a.unionPay.pattern)}).number&&i.pattern)return!0;for(var c=t.length,u=0,d=[[0,1,2,3,4,5,6,7,8,9],[0,2,4,6,8,1,3,5,7,9]],f=0;c--;)f+=d[u][parseInt(t.charAt(c),10)],u^=1;return f%10==0&&f>0}},minCount:function(e,t){return 0==t||(1==t?""!==e:e.split(",").length>=t)},exactCount:function(e,t){return 0==t?""===e:1==t?""!==e&&-1===e.search(","):e.split(",").length==t},maxCount:function(e,t){return 0!=t&&(1==t?-1===e.search(","):e.split(",").length<=t)}}}}(e,window,document),function(e,t,n,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),e.fn.accordion=function(n){var i,o=e(this),a=(new Date).getTime(),r=[],s=arguments[0],l="string"==typeof s,c=[].slice.call(arguments,1);t.requestAnimationFrame||t.mozRequestAnimationFrame||t.webkitRequestAnimationFrame||t.msRequestAnimationFrame;return o.each(function(){var u,d,f=e.isPlainObject(n)?e.extend(!0,{},e.fn.accordion.settings,n):e.extend({},e.fn.accordion.settings),m=f.className,g=f.namespace,p=f.selector,v=f.error,h="."+g,b="module-"+g,y=o.selector||"",x=e(this),C=x.find(p.title),w=x.find(p.content),k=this,S=x.data(b);d={initialize:function(){d.debug("Initializing",x),d.bind.events(),f.observeChanges&&d.observeChanges(),d.instantiate()},instantiate:function(){S=d,x.data(b,d)},destroy:function(){d.debug("Destroying previous instance",x),x.off(h).removeData(b)},refresh:function(){C=x.find(p.title),w=x.find(p.content)},observeChanges:function(){"MutationObserver"in t&&((u=new MutationObserver(function(e){d.debug("DOM tree modified, updating selector cache"),d.refresh()})).observe(k,{childList:!0,subtree:!0}),d.debug("Setting up mutation observer",u))},bind:{events:function(){d.debug("Binding delegated events"),x.on(f.on+h,p.trigger,d.event.click)}},event:{click:function(){d.toggle.call(this)}},toggle:function(t){var n=void 0!==t?"number"==typeof t?C.eq(t):e(t).closest(p.title):e(this).closest(p.title),i=n.next(w),o=i.hasClass(m.animating),a=i.hasClass(m.active),r=a&&!o,s=!a&&o;d.debug("Toggling visibility of content",n),r||s?f.collapsible?d.close.call(n):d.debug("Cannot close accordion content collapsing is disabled"):d.open.call(n)},open:function(t){var n=void 0!==t?"number"==typeof t?C.eq(t):e(t).closest(p.title):e(this).closest(p.title),i=n.next(w),o=i.hasClass(m.animating);i.hasClass(m.active)||o?d.debug("Accordion already open, skipping",i):(d.debug("Opening accordion content",n),f.onOpening.call(i),f.onChanging.call(i),f.exclusive&&d.closeOthers.call(n),n.addClass(m.active),i.stop(!0,!0).addClass(m.animating),f.animateChildren&&(void 0!==e.fn.transition&&x.transition("is supported")?i.children().transition({animation:"fade in",queue:!1,useFailSafe:!0,debug:f.debug,verbose:f.verbose,duration:f.duration}):i.children().stop(!0,!0).animate({opacity:1},f.duration,d.resetOpacity)),i.slideDown(f.duration,f.easing,function(){i.removeClass(m.animating).addClass(m.active),d.reset.display.call(this),f.onOpen.call(this),f.onChange.call(this)}))},close:function(t){var n=void 0!==t?"number"==typeof t?C.eq(t):e(t).closest(p.title):e(this).closest(p.title),i=n.next(w),o=i.hasClass(m.animating),a=i.hasClass(m.active);!a&&!(!a&&o)||a&&o||(d.debug("Closing accordion content",i),f.onClosing.call(i),f.onChanging.call(i),n.removeClass(m.active),i.stop(!0,!0).addClass(m.animating),f.animateChildren&&(void 0!==e.fn.transition&&x.transition("is supported")?i.children().transition({animation:"fade out",queue:!1,useFailSafe:!0,debug:f.debug,verbose:f.verbose,duration:f.duration}):i.children().stop(!0,!0).animate({opacity:0},f.duration,d.resetOpacity)),i.slideUp(f.duration,f.easing,function(){i.removeClass(m.animating).removeClass(m.active),d.reset.display.call(this),f.onClose.call(this),f.onChange.call(this)}))},closeOthers:function(t){var n,i,o,a=void 0!==t?C.eq(t):e(this).closest(p.title),r=a.parents(p.content).prev(p.title),s=a.closest(p.accordion),l=p.title+"."+m.active+":visible",c=p.content+"."+m.active+":visible";f.closeNested?o=(n=s.find(l).not(r)).next(w):(n=s.find(l).not(r),i=s.find(c).find(l).not(r),o=(n=n.not(i)).next(w)),n.length>0&&(d.debug("Exclusive enabled, closing other content",n),n.removeClass(m.active),o.removeClass(m.animating).stop(!0,!0),f.animateChildren&&(void 0!==e.fn.transition&&x.transition("is supported")?o.children().transition({animation:"fade out",useFailSafe:!0,debug:f.debug,verbose:f.verbose,duration:f.duration}):o.children().stop(!0,!0).animate({opacity:0},f.duration,d.resetOpacity)),o.slideUp(f.duration,f.easing,function(){e(this).removeClass(m.active),d.reset.display.call(this)}))},reset:{display:function(){d.verbose("Removing inline display from element",this),e(this).css("display",""),""===e(this).attr("style")&&e(this).attr("style","").removeAttr("style")},opacity:function(){d.verbose("Removing inline opacity from element",this),e(this).css("opacity",""),""===e(this).attr("style")&&e(this).attr("style","").removeAttr("style")}},setting:function(t,n){if(d.debug("Changing setting",t,n),e.isPlainObject(t))e.extend(!0,f,t);else{if(void 0===n)return f[t];e.isPlainObject(f[t])?e.extend(!0,f[t],n):f[t]=n}},internal:function(t,n){if(d.debug("Changing internal",t,n),void 0===n)return d[t];e.isPlainObject(t)?e.extend(!0,d,t):d[t]=n},debug:function(){!f.silent&&f.debug&&(f.performance?d.performance.log(arguments):(d.debug=Function.prototype.bind.call(console.info,console,f.name+":"),d.debug.apply(console,arguments)))},verbose:function(){!f.silent&&f.verbose&&f.debug&&(f.performance?d.performance.log(arguments):(d.verbose=Function.prototype.bind.call(console.info,console,f.name+":"),d.verbose.apply(console,arguments)))},error:function(){f.silent||(d.error=Function.prototype.bind.call(console.error,console,f.name+":"),d.error.apply(console,arguments))},performance:{log:function(e){var t,n;f.performance&&(n=(t=(new Date).getTime())-(a||t),a=t,r.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:k,"Execution Time":n})),clearTimeout(d.performance.timer),d.performance.timer=setTimeout(d.performance.display,500)},display:function(){var t=f.name+":",n=0;a=!1,clearTimeout(d.performance.timer),e.each(r,function(e,t){n+=t["Execution Time"]}),t+=" "+n+"ms",y&&(t+=" '"+y+"'"),(void 0!==console.group||void 0!==console.table)&&r.length>0&&(console.groupCollapsed(t),console.table?console.table(r):e.each(r,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),r=[]}},invoke:function(t,n,o){var a,r,s,l=S;return n=n||c,o=k||o,"string"==typeof t&&void 0!==l&&(t=t.split(/[\. ]/),a=t.length-1,e.each(t,function(n,i){var o=n!=a?i+t[n+1].charAt(0).toUpperCase()+t[n+1].slice(1):t;if(e.isPlainObject(l[o])&&n!=a)l=l[o];else{if(void 0!==l[o])return r=l[o],!1;if(!e.isPlainObject(l[i])||n==a)return void 0!==l[i]?(r=l[i],!1):(d.error(v.method,t),!1);l=l[i]}})),e.isFunction(r)?s=r.apply(o,n):void 0!==r&&(s=r),e.isArray(i)?i.push(s):void 0!==i?i=[i,s]:void 0!==s&&(i=s),r}},l?(void 0===S&&d.initialize(),d.invoke(s)):(void 0!==S&&S.invoke("destroy"),d.initialize())}),void 0!==i?i:this},e.fn.accordion.settings={name:"Accordion",namespace:"accordion",silent:!1,debug:!1,verbose:!1,performance:!0,on:"click",observeChanges:!0,exclusive:!0,collapsible:!0,closeNested:!1,animateChildren:!0,duration:350,easing:"easeOutQuad",onOpening:function(){},onClosing:function(){},onChanging:function(){},onOpen:function(){},onClose:function(){},onChange:function(){},error:{method:"The method you called is not defined"},className:{active:"active",animating:"animating"},selector:{accordion:".accordion",title:".title",trigger:".title",content:".content"}},e.extend(e.easing,{easeOutQuad:function(e,t,n,i,o){return-i*(t/=o)*(t-2)+n}})}(e,window,document),function(e,t,n,i){"use strict";t=void 0!==t&&t.Math==Math?t:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),e.fn.checkbox=function(i){var o,a=e(this),r=a.selector||"",s=(new Date).getTime(),l=[],c=arguments[0],u="string"==typeof c,d=[].slice.call(arguments,1);return a.each(function(){var a,f,m=e.extend(!0,{},e.fn.checkbox.settings,i),g=m.className,p=m.namespace,v=m.selector,h=m.error,b="."+p,y="module-"+p,x=e(this),C=e(this).children(v.label),w=e(this).children(v.input),k=w[0],S=!1,T=!1,A=x.data(y),R=this;f={initialize:function(){f.verbose("Initializing checkbox",m),f.create.label(),f.bind.events(),f.set.tabbable(),f.hide.input(),f.observeChanges(),f.instantiate(),f.setup()},instantiate:function(){f.verbose("Storing instance of module",f),A=f,x.data(y,f)},destroy:function(){f.verbose("Destroying module"),f.unbind.events(),f.show.input(),x.removeData(y)},fix:{reference:function(){x.is(v.input)&&(f.debug("Behavior called on adjusting invoked element"),x=x.closest(v.checkbox),f.refresh())}},setup:function(){f.set.initialLoad(),f.is.indeterminate()?(f.debug("Initial value is indeterminate"),f.indeterminate()):f.is.checked()?(f.debug("Initial value is checked"),f.check()):(f.debug("Initial value is unchecked"),f.uncheck()),f.remove.initialLoad()},refresh:function(){C=x.children(v.label),w=x.children(v.input),k=w[0]},hide:{input:function(){f.verbose("Modifying z-index to be unselectable"),w.addClass(g.hidden)}},show:{input:function(){f.verbose("Modifying z-index to be selectable"),w.removeClass(g.hidden)}},observeChanges:function(){"MutationObserver"in t&&((a=new MutationObserver(function(e){f.debug("DOM tree modified, updating selector cache"),f.refresh()})).observe(R,{childList:!0,subtree:!0}),f.debug("Setting up mutation observer",a))},attachEvents:function(t,n){var i=e(t);n=e.isFunction(f[n])?f[n]:f.toggle,i.length>0?(f.debug("Attaching checkbox events to element",t,n),i.on("click"+b,n)):f.error(h.notFound)},event:{click:function(t){var n=e(t.target);n.is(v.input)?f.verbose("Using default check action on initialized checkbox"):n.is(v.link)?f.debug("Clicking link inside checkbox, skipping toggle"):(f.toggle(),w.focus(),t.preventDefault())},keydown:function(e){var t=e.which,n=13,i=32;t==27?(f.verbose("Escape key pressed blurring field"),w.blur(),T=!0):e.ctrlKey||t!=i&&t!=n?T=!1:(f.verbose("Enter/space key pressed, toggling checkbox"),f.toggle(),T=!0)},keyup:function(e){T&&e.preventDefault()}},check:function(){f.should.allowCheck()&&(f.debug("Checking checkbox",w),f.set.checked(),f.should.ignoreCallbacks()||(m.onChecked.call(k),m.onChange.call(k)))},uncheck:function(){f.should.allowUncheck()&&(f.debug("Unchecking checkbox"),f.set.unchecked(),f.should.ignoreCallbacks()||(m.onUnchecked.call(k),m.onChange.call(k)))},indeterminate:function(){f.should.allowIndeterminate()?f.debug("Checkbox is already indeterminate"):(f.debug("Making checkbox indeterminate"),f.set.indeterminate(),f.should.ignoreCallbacks()||(m.onIndeterminate.call(k),m.onChange.call(k)))},determinate:function(){f.should.allowDeterminate()?f.debug("Checkbox is already determinate"):(f.debug("Making checkbox determinate"),f.set.determinate(),f.should.ignoreCallbacks()||(m.onDeterminate.call(k),m.onChange.call(k)))},enable:function(){f.is.enabled()?f.debug("Checkbox is already enabled"):(f.debug("Enabling checkbox"),f.set.enabled(),m.onEnable.call(k),m.onEnabled.call(k))},disable:function(){f.is.disabled()?f.debug("Checkbox is already disabled"):(f.debug("Disabling checkbox"),f.set.disabled(),m.onDisable.call(k),m.onDisabled.call(k))},get:{radios:function(){var t=f.get.name();return e('input[name="'+t+'"]').closest(v.checkbox)},otherRadios:function(){return f.get.radios().not(x)},name:function(){return w.attr("name")}},is:{initialLoad:function(){return S},radio:function(){return w.hasClass(g.radio)||"radio"==w.attr("type")},indeterminate:function(){return void 0!==w.prop("indeterminate")&&w.prop("indeterminate")},checked:function(){return void 0!==w.prop("checked")&&w.prop("checked")},disabled:function(){return void 0!==w.prop("disabled")&&w.prop("disabled")},enabled:function(){return!f.is.disabled()},determinate:function(){return!f.is.indeterminate()},unchecked:function(){return!f.is.checked()}},should:{allowCheck:function(){return f.is.determinate()&&f.is.checked()&&!f.should.forceCallbacks()?(f.debug("Should not allow check, checkbox is already checked"),!1):!1!==m.beforeChecked.apply(k)||(f.debug("Should not allow check, beforeChecked cancelled"),!1)},allowUncheck:function(){return f.is.determinate()&&f.is.unchecked()&&!f.should.forceCallbacks()?(f.debug("Should not allow uncheck, checkbox is already unchecked"),!1):!1!==m.beforeUnchecked.apply(k)||(f.debug("Should not allow uncheck, beforeUnchecked cancelled"),!1)},allowIndeterminate:function(){return f.is.indeterminate()&&!f.should.forceCallbacks()?(f.debug("Should not allow indeterminate, checkbox is already indeterminate"),!1):!1!==m.beforeIndeterminate.apply(k)||(f.debug("Should not allow indeterminate, beforeIndeterminate cancelled"),!1)},allowDeterminate:function(){return f.is.determinate()&&!f.should.forceCallbacks()?(f.debug("Should not allow determinate, checkbox is already determinate"),!1):!1!==m.beforeDeterminate.apply(k)||(f.debug("Should not allow determinate, beforeDeterminate cancelled"),!1)},forceCallbacks:function(){return f.is.initialLoad()&&m.fireOnInit},ignoreCallbacks:function(){return S&&!m.fireOnInit}},can:{change:function(){return!(x.hasClass(g.disabled)||x.hasClass(g.readOnly)||w.prop("disabled")||w.prop("readonly"))},uncheck:function(){return"boolean"==typeof m.uncheckable?m.uncheckable:!f.is.radio()}},set:{initialLoad:function(){S=!0},checked:function(){f.verbose("Setting class to checked"),x.removeClass(g.indeterminate).addClass(g.checked),f.is.radio()&&f.uncheckOthers(),f.is.indeterminate()||!f.is.checked()?(f.verbose("Setting state to checked",k),w.prop("indeterminate",!1).prop("checked",!0),f.trigger.change()):f.debug("Input is already checked, skipping input property change")},unchecked:function(){f.verbose("Removing checked class"),x.removeClass(g.indeterminate).removeClass(g.checked),f.is.indeterminate()||!f.is.unchecked()?(f.debug("Setting state to unchecked"),w.prop("indeterminate",!1).prop("checked",!1),f.trigger.change()):f.debug("Input is already unchecked")},indeterminate:function(){f.verbose("Setting class to indeterminate"),x.addClass(g.indeterminate),f.is.indeterminate()?f.debug("Input is already indeterminate, skipping input property change"):(f.debug("Setting state to indeterminate"),w.prop("indeterminate",!0),f.trigger.change())},determinate:function(){f.verbose("Removing indeterminate class"),x.removeClass(g.indeterminate),f.is.determinate()?f.debug("Input is already determinate, skipping input property change"):(f.debug("Setting state to determinate"),w.prop("indeterminate",!1))},disabled:function(){f.verbose("Setting class to disabled"),x.addClass(g.disabled),f.is.disabled()?f.debug("Input is already disabled, skipping input property change"):(f.debug("Setting state to disabled"),w.prop("disabled","disabled"),f.trigger.change())},enabled:function(){f.verbose("Removing disabled class"),x.removeClass(g.disabled),f.is.enabled()?f.debug("Input is already enabled, skipping input property change"):(f.debug("Setting state to enabled"),w.prop("disabled",!1),f.trigger.change())},tabbable:function(){f.verbose("Adding tabindex to checkbox"),void 0===w.attr("tabindex")&&w.attr("tabindex",0)}},remove:{initialLoad:function(){S=!1}},trigger:{change:function(){var e=n.createEvent("HTMLEvents"),t=w[0];t&&(f.verbose("Triggering native change event"),e.initEvent("change",!0,!1),t.dispatchEvent(e))}},create:{label:function(){w.prevAll(v.label).length>0?(w.prev(v.label).detach().insertAfter(w),f.debug("Moving existing label",C)):f.has.label()||(C=e("