diff --git a/assets/main.css b/assets/main.css index 6808741..ea91105 100644 --- a/assets/main.css +++ b/assets/main.css @@ -1 +1 @@ -.clearfix{zoom:1}.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}@font-face{font-family:'Bitter';font-weight:100 900;font-stretch:normal;font-named-instance:'Regular';src:url("/assets/fonts/Bitter-Roman.woff2") format("woff2");font-display:swap}@font-face{font-family:'Bitter';font-weight:100 900;font-style:italic;font-named-instance:'Italic';src:url("/assets/fonts/Bitter-Italic.woff2") format("woff2");font-display:swap}@font-face{font-family:'Jost';font-weight:100 900;font-stretch:normal;font-named-instance:'Regular';src:url("/assets/fonts/Jost-Roman.woff2") format("woff2");font-display:swap}@font-face{font-family:'Jost';font-weight:100 900;font-style:italic;font-named-instance:'Italic';src:url("/assets/fonts/Jost-Italic.woff2") format("woff2");font-display:swap}@font-face{font-family:'RobotoMono';font-weight:100 800;font-stretch:normal;font-named-instance:'Regular';src:url("/assets/fonts/RobotoMono-Roman.woff2") format("woff2");font-display:swap}@font-face{font-family:'RobotoMono';font-weight:100 800;font-style:italic;font-named-instance:'Italic';src:url("/assets/fonts/RobotoMono-Italic.woff2") format("woff2");font-display:swap}*{box-sizing:border-box;margin:0;padding:0}html{font-size:10px}body{margin:0;padding:0;position:relative;overflow-x:hidden;color:#000;font-family:"Bitter",serif;font-size:1.6em;font-style:normal;font-weight:400;line-height:1}@media (min-width: 66em){body{font-size:calc(1em + 0.55vw)}}@media (min-width: 90em){body{font-size:1.8em}}a{color:#000;font-weight:550;margin:-.2rem;padding:.2rem;text-decoration:underline;text-decoration-thickness:0.1em;text-decoration-width:0.1rem}a:visited{color:#000}@media (hover: hover){a:hover{text-decoration-color:#ffe801;text-decoration-thickness:0.2em;text-decoration-width:0.2em}}a:active{color:#000}h1,h2,h3{margin-top:1.5em;margin-bottom:0.75em;font-family:"Jost",sans-serif;font-weight:600;letter-spacing:-.01em;line-height:1.1em;text-align:center;word-wrap:break-word}h1{margin-top:2em;font-size:2.25em;font-weight:700}h2{margin-top:2.5em;font-size:1.75em;text-align:center}h3{margin-top:2.5em;font-size:1.25em;font-weight:500;letter-spacing:0.01em}ul,ol{line-height:1.6;margin-bottom:1.5em}li{margin-left:1em;margin-bottom:1em}li ul,li ol{margin-top:0.5em;margin-bottom:0}p{line-height:1.6;margin-bottom:1.5em}strong{font-weight:600}blockquote{position:relative;margin-bottom:1.5em;padding:0 0 0 2em;border-left:2px solid #000;text-align:left}blockquote:before{content:"";position:absolute;top:0;left:0;display:block;width:1.5rem;height:1.5rem;background:url("/assets/logo.svg") left top/contain no-repeat}blockquote h1,blockquote h2,blockquote h3{margin-top:2rem;text-align:left}hr{display:block;height:1px;margin:2em 0 3em 0;padding:0;border:none;border-top:1px solid #f7f5f2}code,pre{font-family:"RobotoMono",monospace;line-height:1.25;padding:0 0.1em;background-color:#fbf7f0;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre{position:relative;overflow:auto;margin:0 -1em 2em -1em;margin:calc(min(5vw, 4rem)*-1);margin-top:0;margin-bottom:2em;font-weight:400;background:#fbf7f0}@media (min-width: 40em){pre{margin:0 0 2em 0}}pre::after{display:block;content:"";pointer-events:none;position:absolute;top:0;bottom:0;right:0;width:2em;background:linear-gradient(to right, rgba(251,247,240,0), #fbf7f0)}code{padding:0.125em;word-wrap:break-word}pre>code{display:block;max-width:100%;overflow:auto;padding:1em;word-wrap:normal}table{width:100%;border-collapse:collapse;border-spacing:0;text-align:left}thead{background-color:#fbf7f0;font-family:"Jost",sans-serif}tr{border-bottom:0.125em solid #fbf7f0}th,td{vertical-align:middle;padding:0.5em}input,select{vertical-align:middle}.anchor{float:left;margin:0 0 0 -1em;padding:0;font-size:.75em;text-decoration:none;opacity:0.5}@media (hover: hover){.anchor{opacity:0;transition:opacity 60ms ease-in-out}[id]:hover>.anchor{opacity:0.7}[id]:hover>.anchor:hover{opacity:1}}.button{transition:font-weight 0.1s ease, clip-path 0.2s ease, background-color 0.2s ease;display:inline-block;padding:1em 1.5em;color:#000;font-family:"Jost",sans-serif;text-decoration:none;text-align:center;line-height:normal;-webkit-appearance:none;background-color:#77e8b9;border:0;box-shadow:none;clip-path:polygon(5% 10%, 46% 1%, 46% 10%, 100% 0, 95% 90%, 31% 100%, 31% 90%, 0% 100%)}.button:visited{color:#000}@media (hover: hover){.button:hover{color:#000;background-color:#ffe801;cursor:pointer;text-decoration:none;font-weight:800;clip-path:polygon(5% 10%, 66% 1%, 66% 10%, 100% 0, 95% 90%, 51% 100%, 51% 90%, 0% 100%)}}.jump{width:100%;margin:0;padding:0 1em;color:#fff;background-color:#000;display:flex;align-items:center;justify-content:center;font-family:"Jost",sans-serif;text-transform:uppercase;font-style:italic}@media (min-width: 40em){.jump{justify-content:flex-start}}.jump__list{list-style-type:none;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;margin:0;padding:0}.jump__list li{margin:0;padding:0}.jump__list li:nth-child(2)::after,.jump__list li:nth-child(3)::after{content:"/";display:inline-block;margin:0 0.25em 0 0.125em}.jump__list-link{display:inline-block;margin:0;padding:0.5em 0.125em;color:#fff;font-weight:500;text-decoration:none}@media (min-width: 40em){.jump__list-link{padding:0.125em;font-size:.85em}}.jump__list-link:visited{color:#fff}.jump__list-link:hover{color:#ffe801}.jump__list-link--hotwire{font-weight:700;margin-right:0.25em}.jump__list-link--active{color:#77e8b9 !important;text-decoration:none;pointer-events:none}.jump__list-link--disabled{opacity:0.5;text-decoration:none;pointer-events:none}@media (max-width: 39.99em){.jump__list-info{clip:rect(1px, 1px, 1px, 1px);position:absolute !important;height:1px;width:1px;overflow:hidden}}.nav-skip{clip:rect(1px, 1px, 1px, 1px);position:absolute !important;height:1px;width:1px;overflow:hidden;background-color:#fff}.nav-skip:hover,.nav-skip:active,.nav-skip:focus{clip:auto !important;top:1rem;left:1rem;width:auto;height:auto;z-index:100000}.nav-logo{display:block;height:2em;margin:0;max-height:100%}.nav-logo .logo{height:100%;width:auto}.nav-logo .logo__icon{fill:#77e8b9}.nav-logo path{transition:fill 0.2s ease}@media (hover: hover){.nav-logo:hover path{fill:#ffe801}}@media (max-width: 39.99em){.nav{-webkit-transform:translate(-100%, 0);-moz-transform:translate(-100%, 0);-ms-transform:translate(-100%, 0);transform:translate(-100%, 0);-webkit-transition:transform 0.3s ease-in-out;-moz-transition:transform 0.3s ease-in-out;-ms-transition:transform 0.3s ease-in-out;transition:transform 0.3s ease-in-out;opacity:0;position:fixed;overflow-y:auto;top:0;left:0;display:block;margin:0;padding:0 1.5em;width:100%;height:100%;z-index:3000;text-align:right;background-color:#77e8b9}}@media (min-width: 40em){.nav{-webkit-transform:translate(0, 0);-moz-transform:translate(0, 0);-ms-transform:translate(0, 0);transform:translate(0, 0);-webkit-transition:transform 0s ease-in-out;-moz-transition:transform 0s ease-in-out;-ms-transition:transform 0s ease-in-out;transition:transform 0s ease-in-out;margin:0;padding:0;opacity:1;background-color:#fff}}.nav__list{margin:1em 0 0 0;text-align:right;list-style-type:none;border-top:0.2rem solid #77e8b9}@media (min-width: 40em){.nav__list{text-align:left}}.nav__list.active{display:block}.nav__list li{margin:0;padding:0}@media (max-width: 39.99em){.nav__list--horizontal{font-size:1.25em}}@media (min-width: 40em){.nav__list--horizontal{display:flex;margin:0;border:none}.nav__list--horizontal li{margin:0 0.25em}}.nav__list-link{display:block;margin:0.5em 0;padding:0.25em 0;font-size:1.25em;font-family:"Jost",sans-serif;font-weight:600;font-style:italic;line-height:1.25}.nav__list-link.active{text-decoration:none;pointer-events:none;font-weight:800}@media (min-width: 40em){.nav__list-link{line-height:1.4;font-size:1em}.nav__list--horizontal .nav__list-link{padding:0;margin:0}.nav__list--horizontal li:not(:last-child) .nav__list-link::after{display:inline-block;margin-left:0.5rem;margin-right:-0.5rem;content:"/"}}.nav__sublist{display:none;list-style-type:none;margin:0;border-right:0.2rem solid #000}@media (min-width: 40em){.nav__sublist{border-right:0;border-left:0.2rem solid #000}}.nav__sublist.active{display:block}.nav__sublist li{margin:0;padding:0 0.25em}.nav__sublist-link{display:block;margin:0;padding:0.5em;font-size:1.125em;font-family:"Jost",sans-serif;font-weight:400;line-height:1.25}.nav__sublist-link.active{text-decoration:none;pointer-events:none;font-weight:800}@media (min-width: 40em){.nav__sublist-link{text-align:left;margin-bottom:0.5em;padding:0.25em;font-size:.85em;line-height:1.4}.nav__sublist-link.active{color:#000;background-color:#fbf7f0;border-radius:0.125em}}.nav-checkbox{display:none}.nav-checkbox:checked ~ .nav{-webkit-transform:translate(0, 0);-moz-transform:translate(0, 0);-ms-transform:translate(0, 0);transform:translate(0, 0);opacity:1}.nav-mobile-button{display:block;margin:0;padding:0.5em 1em;cursor:pointer;z-index:2000;font-family:"Jost",sans-serif;font-size:1.125em;font-weight:800;text-transform:uppercase;background-color:#77e8b9;border-radius:0.2rem}@media (min-width: 40em){.nav-mobile-button{display:none}}.nav-mobile-button span{position:relative;display:inline-flex;top:-0.5rem;width:1.25em;height:0.2rem;background-color:#fff}.nav-mobile-button span::after,.nav-mobile-button span::before{content:'';position:absolute;display:block;width:1.25em;height:0.2rem;background-color:#fff}.nav-mobile-button span::before{margin-top:-0.3em}.nav-mobile-button span::after{margin-top:0.3em}.nav-mobile-button--close{margin:1.5em auto 1.5em auto;padding:0;background-color:#77e8b9}.nav-mobile-button--close span{background-color:rgba(0,0,0,0)}.nav-mobile-button--close span::before,.nav-mobile-button--close span::after{background-color:#000;margin-top:0}.nav-mobile-button--close span::before{-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.nav-mobile-button--close span::after{-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.nav__github-corner{position:absolute;right:0px;z-index:1;@namespace svg url(github-corner)}@media (max-width: 39.99em){.nav__github-corner{display:none}}.nav__github-corner .github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width: 500px){.nav__github-corner .github-corner:hover .octo-arm{animation:none}.nav__github-corner .github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}.nav__github-corner svg|a:link,.nav__github-corner svg|a:visited{cursor:pointer}.nav__github-corner svg|a text,.nav__github-corner text svg|a{fill:blue;text-decoration:underline}.nav__github-corner svg|a:hover,.nav__github-corner svg|a:active{outline:dotted 1px blue}.footer{align-items:center;display:flex;flex-direction:column}.footer__headline{font-size:85%;font-style:italic;margin:0 0 0.6em 0}.footer__links{align-items:center;display:flex;gap:0.4em;justify-content:center;margin:0}.footer__links li{display:flex;margin:0}.footer__links li a{display:flex}.footer__links li a img{height:1.7em;width:auto}.footer__links li span{display:flex;font-size:65%;font-style:italic;margin-top:0.5em}.footer__copyright{font-size:85%;margin:2.5em 0 0 0}.page-header{display:flex;justify-content:space-between;align-items:center;padding:0.75em 1em}.page-footer{position:relative;margin:6em 0 0 0;padding:3em 0;text-align:center}@media (min-width: 40em){.page-footer:before{content:'';display:block;position:absolute;bottom:0;z-index:-1;width:100%;height:100%;background:url("/assets/pattern.svg") right -20em top 7.5em/80% auto no-repeat}}.docs{position:relative}.docs__content{grid-column-start:2}@media (min-width: 40em){.docs__content{grid-column:6 / span 8}}@media (min-width: 66em){.docs__content{grid-column:5 / span 8}}.docs__content h1,.docs__content h2,.docs__content h3,.docs__content h4,.docs__content h5,.docs__content h6{text-align:left}.docs__content h1{margin-top:1.3em}.docs__content p>img:not([class]){min-width:15em}.docs__index{grid-column-start:2;margin:0;text-align:left;overflow-y:auto}@media (max-width: 39.99em){.docs__index{display:flex;justify-content:space-between;align-items:center;padding:1em 0}}@media (min-width: 40em){.docs__index{grid-column:2 / span 4;position:-webkit-sticky;position:sticky;top:0;bottom:0;min-height:100vh;padding:3.25em 0 0 0}}@media (min-width: 66em){.docs__index{grid-column:2 / span 3}}.docs__footer{margin:4em 0 3em 0}.docs__screenshot{max-width:100%;height:auto;border:0.2rem solid #fff;border-radius:5px;box-shadow:0 0 1em rgba(0,0,0,0.1)}.landing-intro{position:relative;margin:0;padding:0;background-color:#fbf7f0;border-top:0.4rem solid #77e8b9}.landing-intro__text{position:relative;z-index:1;margin:1.25em 0 2.25em 0;text-align:center;color:#000;font-size:1.75em;font-weight:800;line-height:1.3}@media (min-width: 40em){.landing-intro__text{font-size:3em}}.landing-hero{position:relative;margin:-2em 0 0 0;padding:0}@media (min-width: 40em){.landing-hero{display:flex;justify-content:space-between;margin:-4em 0 2em 0}.landing-hero:before{content:"";display:block;position:absolute;width:120%;height:120%;z-index:-1;top:-25%;left:-10%;background:url("/assets/pattern.svg") no-repeat center;background-size:100%}}.landing-hero__step{position:relative;width:100%;margin-bottom:2em;background-color:#fbf7f0;border:0.25em solid #fff;box-shadow:0 0 2em rgba(0,0,0,0.1)}@media (min-width: 40em){.landing-hero__step{width:48%;margin:0}}.landing-hero__step code[class*="language-"]{padding:0;overflow:visible !important}.landing-hero__step pre[class*="language-"]{padding:1.5em 0.5em 1.5em 0.5em;overflow:auto;margin:0}@media (min-width: 40em){.landing-hero__step pre[class*="language-"]{padding:1.5em 0.5em 1.5em 1.5em;font-size:0.875em}}@media (min-width: 66em){.landing-hero__step pre[class*="language-"]{font-size:0.875em;font-size:1.4vw}}@media (min-width: 90em){.landing-hero__step pre[class*="language-"]{font-size:1.05em}}.landing-hero__step--pointer:before{content:"";position:absolute;display:block;width:3.5em;height:3.5em;top:93%;right:40%;z-index:1;background:url("/assets/arrow.svg") no-repeat center;background-size:100%;transform:rotate(110deg)}@media (min-width: 40em){.landing-hero__step--pointer:before{width:3.5em;height:3.5em;top:30%;right:-3.25em;transform:rotate(10deg)}}.landing-hero__step-title{margin:0 0 0.25em 0;padding:1em;font-family:"Jost",sans-serif;font-size:1em;font-weight:bold;text-align:center;color:#fff;background-color:#000}@media (min-width: 66em){.landing-hero__step-title{padding:1em 2em;font-size:1.75vw}}@media (min-width: 90em){.landing-hero__step-title{font-size:1.5em}}.landing-hello{position:relative;grid-column:2/5;margin-bottom:2em;padding:1em;background-color:#fbf7f0;border:0.25em solid #fff;box-shadow:0 0 2em rgba(0,0,0,0.1)}@media (min-width: 40em){.landing-hello{display:flex;align-items:stretch}}.landing-hello:before{content:"";position:absolute;display:block;width:3.5em;height:3.5em;top:-30%;right:40%;z-index:1;background:url("/assets/arrow.svg") no-repeat center;background-size:100%;transform:rotate(110deg)}@media (min-width: 40em){.landing-hello:before{top:-55%;right:35%;transform:rotate(130deg)}}@media (min-width: 66em){.landing-hello:before{top:-60%;right:35%}}.landing-hello__label{clip:rect(1px, 1px, 1px, 1px);position:absolute !important;height:1px;width:1px;overflow:hidden}.landing-hello__input{display:block;margin:0;padding:0.5em;width:100%;border:2px solid #000;font-family:"Jost",sans-serif;font-size:1em;transition:border-color 0.2s ease}@media (min-width: 40em){.landing-hello__input{width:46%}}.landing-hello__input:focus{outline:none;border-color:#77e8b9 !important}.landing-hello__button{display:block;width:100%;padding:0.5em 1em;background-color:#000;color:#77e8b9;font-family:"Jost",sans-serif;font-size:1em;font-weight:bold;text-decoration:none;text-align:center;line-height:normal;-webkit-appearance:none;border:none;outline:none;cursor:pointer}@media (min-width: 40em){.landing-hello__button{width:auto}}.landing-hello__output{display:block;width:100%;margin:1em 0 0 0;padding:1.1em 0.25em;font-size:1.25em;line-height:0;color:#000;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;border-bottom:0.1em solid #000}@media (min-width: 40em){.landing-hello__output{margin:0 0 0 0.5em;width:50%}}.landing-hello__output:not(:empty)::before{content:"“"}.landing-hello__output:not(:empty)::after{content:"”"}.landing-summary{text-align:center}@media (min-width: 40em){.landing-summary{font-size:1.125em}}.landing-version{grid-column:2/5;position:relative;padding:0;margin:0 0 4em 0;font-family:"Jost",sans-serif;font-weight:600;font-style:italic;font-size:.85em;text-align:center}.landing-version>span{display:inline-block;padding:1em 2em;background-color:#77e8b9;clip-path:polygon(5% 10%, 46% 1%, 46% 10%, 100% 0, 95% 90%, 31% 100%, 31% 90%, 0% 100%)}.landing-actions{grid-column:3/4;margin:0}@media (min-width: 40em){.landing-actions{display:flex;justify-content:space-between;align-items:stretch}}.landing-actions__item{display:block;margin-bottom:1em;padding:1.5em 1em;font-family:"Jost",sans-serif;font-style:italic;text-align:center;line-height:1.25;background-color:#fff;box-shadow:0 0 2em rgba(0,0,0,0.075);border-radius:0.5em}@media (max-width: 39.99em){.landing-actions__item{max-width:20em;margin-left:auto;margin-right:auto}}@media (min-width: 40em){.landing-actions__item{width:32%;margin-bottom:0}}.landing-actions__icon{display:block;width:3.75em;height:3.75em;margin:0 auto 1em auto;background-color:#77e8b9}.landing-actions__item:hover .landing-actions__icon{background-color:#ffe801}.landing-actions__icon--guide{-webkit-mask:url("/assets/icon-guide.svg") center/100% no-repeat;mask:url("/assets/icon-guide.svg") center/100% no-repeat}.landing-actions__icon--install{-webkit-mask:url("/assets/icon-install.svg") center/100% no-repeat;mask:url("/assets/icon-install.svg") center/100% no-repeat}.landing-actions__icon--github{-webkit-mask:url("/assets/icon-github.svg") center/100% no-repeat;mask:url("/assets/icon-github.svg") center/100% no-repeat}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:rgba(0,0,0,0.6);font-style:italic}.token.namespace{opacity:.7}.token.string,.token.attr-value,.token.attr-name{color:#4070a0;font-weight:normal}.token.punctuation,.token.operator{color:#393A34}.token.entity,.token.url,.token.symbol,.token.number,.token.variable,.token.constant,.token.property,.token.regex,.token.inserted{color:#002070;font-weight:bold}.token.boolean{color:#007020;font-weight:bold}.token.atrule,.token.keyword,.language-autohotkey .token.selector{color:#007020;font-weight:bold}.token.function,.token.deleted,.language-autohotkey .token.tag{color:#9a050f}.token.tag,.token.selector,.language-autohotkey .token.keyword{color:#062873;font-weight:bold}.token.important,.token.function,.token.bold{font-weight:bold}.token.italic{font-style:italic}.callout{background-color:#fe8;color:#000}.callout--avoid{text-decoration:line-through;color:#c00}.callout--prefer{color:#0a0}.callout--pink{background-color:#fac;color:#000}.callout--blue{background-color:#8cf;color:#000}.callout--green{background-color:#afc;color:#000}.grid{display:grid;grid-template-columns:1fr minmax(80vw, 100%) 1fr;align-items:start;column-gap:min(5vw, 4rem)}.grid>.grid{grid-column:1 / -1}.grid>*:not([class*="grid"]){grid-column:2}@media (min-width: 40em){.grid{grid-template-columns:1fr repeat(12, minmax(2rem, 100%)) 1fr;column-gap:min(3vw, 5rem)}.grid>*:not([class*="grid"]){grid-column:4 / span 8}}@media (min-width: 90em){.grid{grid-template-columns:1fr repeat(12, 7.5rem) 1fr;column-gap:4rem}}.grid__item{grid-column-start:2}.grid__item--bleed-left{grid-column:1 / span 2}.grid__item--bleed-right{grid-column-end:-1}.grid__item--bleed-full{grid-column:1 / -1}@media (min-width: 40em){.grid__item--span-3{grid-column-end:span 3}.grid__item--span-4{grid-column-end:span 4}.grid__item--span-5{grid-column-end:span 5}.grid__item--span-6{grid-column-end:span 6}.grid__item--span-7{grid-column-end:span 7}.grid__item--span-8{grid-column-end:span 8}.grid__item--span-9{grid-column-end:span 9}.grid__item--span-10{grid-column-end:span 10}.grid__item--span-11{grid-column-end:span 11}.grid__item--span-12{grid-column:2 / span 12}.grid__item--start-1{grid-column-start:2}.grid__item--start-2{grid-column-start:3}.grid__item--start-3{grid-column-start:4}.grid__item--start-4{grid-column-start:5}.grid__item--start-5{grid-column-start:6}.grid__item--start-6{grid-column-start:7}.grid__item--start-7{grid-column-start:8}.grid__item--start-8{grid-column-start:9}.grid__item--start-9{grid-column-start:10}.grid__item--start-10{grid-column-start:11}.grid__item--start-auto{grid-column-start:auto}} +.clearfix{zoom:1}.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}@font-face{font-family:"Bitter";font-weight:100 900;font-stretch:normal;font-named-instance:"Regular";src:url("/assets/fonts/Bitter-Roman.woff2") format("woff2");font-display:swap}@font-face{font-family:"Bitter";font-weight:100 900;font-style:italic;font-named-instance:"Italic";src:url("/assets/fonts/Bitter-Italic.woff2") format("woff2");font-display:swap}@font-face{font-family:"Jost";font-weight:100 900;font-stretch:normal;font-named-instance:"Regular";src:url("/assets/fonts/Jost-Roman.woff2") format("woff2");font-display:swap}@font-face{font-family:"Jost";font-weight:100 900;font-style:italic;font-named-instance:"Italic";src:url("/assets/fonts/Jost-Italic.woff2") format("woff2");font-display:swap}@font-face{font-family:"RobotoMono";font-weight:100 800;font-stretch:normal;font-named-instance:"Regular";src:url("/assets/fonts/RobotoMono-Roman.woff2") format("woff2");font-display:swap}@font-face{font-family:"RobotoMono";font-weight:100 800;font-style:italic;font-named-instance:"Italic";src:url("/assets/fonts/RobotoMono-Italic.woff2") format("woff2");font-display:swap}*{box-sizing:border-box;margin:0;padding:0}html{font-size:10px}body{margin:0;padding:0;position:relative;overflow-x:hidden;color:#000;font-family:"Bitter",serif;font-size:1.6em;font-style:normal;font-weight:400;line-height:1}@media(min-width: 66em){body{font-size:calc(1em + .55vw)}}@media(min-width: 90em){body{font-size:1.8em}}a{color:#000;font-weight:550;margin:-0.2rem;padding:.2rem;text-decoration:underline;text-decoration-thickness:.1em;text-decoration-width:.1rem}a:visited{color:#000}@media(hover: hover){a:hover{text-decoration-color:#ffe801;text-decoration-thickness:.2em;text-decoration-width:.2em}}a:active{color:#000}h1,h2,h3{margin-top:1.5em;margin-bottom:.75em;font-family:"Jost",sans-serif;font-weight:600;letter-spacing:-0.01em;line-height:1.1em;text-align:center;word-wrap:break-word}h1{margin-top:2em;font-size:2.25em;font-weight:700}h2{margin-top:2.5em;font-size:1.75em;text-align:center}h3{margin-top:2.5em;font-size:1.25em;font-weight:500;letter-spacing:.01em}ul,ol{line-height:1.6;margin-bottom:1.5em}li{margin-left:1em;margin-bottom:1em}li ul,li ol{margin-top:.5em;margin-bottom:0}p{line-height:1.6;margin-bottom:1.5em}strong{font-weight:600}blockquote{position:relative;margin-bottom:1.5em;padding:0 0 0 2em;border-left:2px solid #000;text-align:left}blockquote:before{content:"";position:absolute;top:0;left:0;display:block;width:1.5rem;height:1.5rem;background:url("/assets/logo.svg") left top/contain no-repeat}blockquote h1,blockquote h2,blockquote h3{margin-top:2rem;text-align:left}hr{display:block;height:1px;margin:2em 0 3em 0;padding:0;border:none;border-top:1px solid #f7f5f2}code,pre{font-family:"RobotoMono",monospace;line-height:1.25;padding:0 .1em;background-color:#fbf7f0;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre{position:relative;overflow:auto;margin:0 -1em 2em -1em;margin:calc(min(5vw,4rem)*-1);margin-top:0;margin-bottom:2em;font-weight:400;background:#fbf7f0}@media(min-width: 40em){pre{margin:0 0 2em 0}}pre::after{display:block;content:"";pointer-events:none;position:absolute;top:0;bottom:0;right:0;width:2em;background:linear-gradient(to right, rgba(251, 247, 240, 0), #fbf7f0)}code{padding:.125em;word-wrap:break-word}pre>code{display:block;max-width:100%;overflow:auto;padding:1em;word-wrap:normal}table{width:100%;border-collapse:collapse;border-spacing:0;text-align:left}thead{background-color:#fbf7f0;font-family:"Jost",sans-serif}tr{border-bottom:.125em solid #fbf7f0}th,td{vertical-align:middle;padding:.5em}input,select{vertical-align:middle}.anchor{float:left;margin:0 0 0 -1em;padding:0;font-size:.75em;text-decoration:none;opacity:.5}@media(hover: hover){.anchor{opacity:0;transition:opacity 60ms ease-in-out}[id]:hover>.anchor{opacity:.7}[id]:hover>.anchor:hover{opacity:1}}.button{transition:font-weight .1s ease,clip-path .2s ease,background-color .2s ease;display:inline-block;padding:1em 1.5em;color:#000;font-family:"Jost",sans-serif;text-decoration:none;text-align:center;line-height:normal;-webkit-appearance:none;background-color:#77e8b9;border:0;box-shadow:none;clip-path:polygon(5% 10%, 46% 1%, 46% 10%, 100% 0, 95% 90%, 31% 100%, 31% 90%, 0% 100%)}.button:visited{color:#000}@media(hover: hover){.button:hover{color:#000;background-color:#ffe801;cursor:pointer;text-decoration:none;font-weight:800;clip-path:polygon(5% 10%, 66% 1%, 66% 10%, 100% 0, 95% 90%, 51% 100%, 51% 90%, 0% 100%)}}.jump{width:100%;margin:0;padding:0 1em;color:#fff;background-color:#000;display:flex;align-items:center;justify-content:center;font-family:"Jost",sans-serif;text-transform:uppercase;font-style:italic}@media(min-width: 40em){.jump{justify-content:flex-start}}.jump__list{list-style-type:none;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;margin:0;padding:0}.jump__list li{margin:0;padding:0}.jump__list li:nth-child(2)::after,.jump__list li:nth-child(3)::after{content:"/";display:inline-block;margin:0 .25em 0 .125em}.jump__list-link{display:inline-block;margin:0;padding:.5em .125em;color:#fff;font-weight:500;text-decoration:none}@media(min-width: 40em){.jump__list-link{padding:.125em;font-size:.85em}}.jump__list-link:visited{color:#fff}.jump__list-link:hover{color:#ffe801}.jump__list-link--hotwire{font-weight:700;margin-right:.25em}.jump__list-link--active{color:#77e8b9 !important;text-decoration:none;pointer-events:none}.jump__list-link--disabled{opacity:.5;text-decoration:none;pointer-events:none}@media(max-width: 39.99em){.jump__list-info{clip:rect(1px, 1px, 1px, 1px);position:absolute !important;height:1px;width:1px;overflow:hidden}}.nav-skip{clip:rect(1px, 1px, 1px, 1px);position:absolute !important;height:1px;width:1px;overflow:hidden;background-color:#fff}.nav-skip:hover,.nav-skip:active,.nav-skip:focus{clip:auto !important;top:1rem;left:1rem;width:auto;height:auto;z-index:100000}.nav-logo{display:block;height:2em;margin:0;max-height:100%}.nav-logo .logo{height:100%;width:auto}.nav-logo .logo__icon{fill:#77e8b9}.nav-logo path{transition:fill .2s ease}@media(hover: hover){.nav-logo:hover path{fill:#ffe801}}@media(max-width: 39.99em){.nav{-webkit-transform:translate(-100%, 0);-moz-transform:translate(-100%, 0);-ms-transform:translate(-100%, 0);transform:translate(-100%, 0);-webkit-transition:transform .3s ease-in-out;-moz-transition:transform .3s ease-in-out;-ms-transition:transform .3s ease-in-out;transition:transform .3s ease-in-out;opacity:0;position:fixed;overflow-y:auto;top:0;left:0;display:block;margin:0;padding:0 1.5em;width:100%;height:100%;z-index:3000;text-align:right;background-color:#77e8b9}}@media(min-width: 40em){.nav{-webkit-transform:translate(0, 0);-moz-transform:translate(0, 0);-ms-transform:translate(0, 0);transform:translate(0, 0);-webkit-transition:transform 0s ease-in-out;-moz-transition:transform 0s ease-in-out;-ms-transition:transform 0s ease-in-out;transition:transform 0s ease-in-out;margin:0;padding:0;opacity:1;background-color:#fff}}.nav__list{margin:1em 0 0 0;text-align:right;list-style-type:none;border-top:.2rem solid #77e8b9}@media(min-width: 40em){.nav__list{text-align:left}}.nav__list.active{display:block}.nav__list li{margin:0;padding:0}@media(max-width: 39.99em){.nav__list--horizontal{font-size:1.25em}}@media(min-width: 40em){.nav__list--horizontal{display:flex;margin:0;border:none}.nav__list--horizontal li{margin:0 .25em}}.nav__list-link{display:block;margin:.5em 0;padding:.25em 0;font-size:1.25em;font-family:"Jost",sans-serif;font-weight:600;font-style:italic;line-height:1.25}.nav__list-link.active{text-decoration:none;pointer-events:none;font-weight:800}@media(min-width: 40em){.nav__list-link{line-height:1.4;font-size:1em}.nav__list--horizontal .nav__list-link{padding:0;margin:0}.nav__list--horizontal li:not(:last-child) .nav__list-link::after{display:inline-block;margin-left:.5rem;margin-right:-0.5rem;content:"/"}}.nav__sublist{display:none;list-style-type:none;margin:0;border-right:.2rem solid #000}@media(min-width: 40em){.nav__sublist{border-right:0;border-left:.2rem solid #000}}.nav__sublist.active{display:block}.nav__sublist li{margin:0;padding:0 .25em}.nav__sublist-link{display:block;margin:0;padding:.5em;font-size:1.125em;font-family:"Jost",sans-serif;font-weight:400;line-height:1.25}.nav__sublist-link.active{text-decoration:none;pointer-events:none;font-weight:800}@media(min-width: 40em){.nav__sublist-link{text-align:left;margin-bottom:.5em;padding:.25em;font-size:.85em;line-height:1.4}.nav__sublist-link.active{color:#000;background-color:#fbf7f0;border-radius:.125em}}.nav-checkbox{display:none}.nav-checkbox:checked~.nav{-webkit-transform:translate(0, 0);-moz-transform:translate(0, 0);-ms-transform:translate(0, 0);transform:translate(0, 0);opacity:1}.nav-mobile-button{display:block;margin:0;padding:.5em 1em;cursor:pointer;z-index:2000;font-family:"Jost",sans-serif;font-size:1.125em;font-weight:800;text-transform:uppercase;background-color:#77e8b9;border-radius:.2rem}@media(min-width: 40em){.nav-mobile-button{display:none}}.nav-mobile-button span{position:relative;display:inline-flex;top:-0.5rem;width:1.25em;height:.2rem;background-color:#fff}.nav-mobile-button span::after,.nav-mobile-button span::before{content:"";position:absolute;display:block;width:1.25em;height:.2rem;background-color:#fff}.nav-mobile-button span::before{margin-top:-0.3em}.nav-mobile-button span::after{margin-top:.3em}.nav-mobile-button--close{margin:1.5em auto 1.5em auto;padding:0;background-color:#77e8b9}.nav-mobile-button--close span{background-color:rgba(0,0,0,0)}.nav-mobile-button--close span::before,.nav-mobile-button--close span::after{background-color:#000;margin-top:0}.nav-mobile-button--close span::before{-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.nav-mobile-button--close span::after{-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.nav__github-corner{position:absolute;right:0px;z-index:1;@namespace svg url(github-corner)}@media(max-width: 39.99em){.nav__github-corner{display:none}}.nav__github-corner .github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media(max-width: 500px){.nav__github-corner .github-corner:hover .octo-arm{animation:none}.nav__github-corner .github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}.nav__github-corner svg|a:link,.nav__github-corner svg|a:visited{cursor:pointer}.nav__github-corner svg|a text,.nav__github-corner text svg|a{fill:blue;text-decoration:underline}.nav__github-corner svg|a:hover,.nav__github-corner svg|a:active{outline:dotted 1px blue}.footer{align-items:center;display:flex;flex-direction:column}.footer__headline{font-size:85%;font-style:italic;margin:0 0 .6em 0}.footer__links{align-items:center;display:flex;gap:.4em;justify-content:center;margin:0}.footer__links li{display:flex;margin:0}.footer__links li a{display:flex}.footer__links li a img{height:1.7em;width:auto}.footer__links li span{display:flex;font-size:65%;font-style:italic;margin-top:.5em}.footer__copyright{font-size:85%;margin:2.5em 0 0 0}.page-header{display:flex;justify-content:space-between;align-items:center;padding:.75em 1em}.page-footer{position:relative;margin:6em 0 0 0;padding:3em 0;text-align:center}@media(min-width: 40em){.page-footer:before{content:"";display:block;position:absolute;bottom:0;z-index:-1;width:100%;height:100%;background:url("/assets/pattern.svg") right -20em top 7.5em/80% auto no-repeat}}.docs{position:relative}.docs__content{grid-column-start:2}@media(min-width: 40em){.docs__content{grid-column:6/span 8}}@media(min-width: 66em){.docs__content{grid-column:5/span 8}}.docs__content h1,.docs__content h2,.docs__content h3,.docs__content h4,.docs__content h5,.docs__content h6{text-align:left}.docs__content h1{margin-top:1.3em}.docs__content p>img:not([class]){min-width:15em}.docs__index{grid-column-start:2;margin:0;text-align:left;overflow-y:auto}@media(max-width: 39.99em){.docs__index{display:flex;justify-content:space-between;align-items:center;padding:1em 0}}@media(min-width: 40em){.docs__index{grid-column:2/span 4;position:-webkit-sticky;position:sticky;top:0;bottom:0;min-height:100vh;padding:3.25em 0 0 0}}@media(min-width: 66em){.docs__index{grid-column:2/span 3}}.docs__footer{margin:4em 0 3em 0}.docs__screenshot{max-width:100%;height:auto;border:.2rem solid #fff;border-radius:5px;box-shadow:0 0 1em rgba(0,0,0,.1)}.landing-intro{position:relative;margin:0;padding:0;background-color:#fbf7f0;border-top:.4rem solid #77e8b9}.landing-intro__text{position:relative;z-index:1;margin:1.25em 0 2.25em 0;text-align:center;color:#000;font-size:1.75em;font-weight:800;line-height:1.3}@media(min-width: 40em){.landing-intro__text{font-size:3em}}.landing-hero{position:relative;margin:-2em 0 0 0;padding:0}@media(min-width: 40em){.landing-hero{display:flex;justify-content:space-between;margin:-4em 0 2em 0}.landing-hero:before{content:"";display:block;position:absolute;width:120%;height:120%;z-index:-1;top:-25%;left:-10%;background:url("/assets/pattern.svg") no-repeat center;background-size:100%}}.landing-hero__step{position:relative;width:100%;margin-bottom:2em;background-color:#fbf7f0;border:.25em solid #fff;box-shadow:0 0 2em rgba(0,0,0,.1)}@media(min-width: 40em){.landing-hero__step{width:48%;margin:0}}.landing-hero__step code[class*=language-]{padding:0;overflow:visible !important}.landing-hero__step pre[class*=language-]{padding:1.5em .5em 1.5em .5em;overflow:auto;margin:0}@media(min-width: 40em){.landing-hero__step pre[class*=language-]{padding:1.5em .5em 1.5em 1.5em;font-size:.875em}}@media(min-width: 66em){.landing-hero__step pre[class*=language-]{font-size:.875em;font-size:1.4vw}}@media(min-width: 90em){.landing-hero__step pre[class*=language-]{font-size:1.05em}}.landing-hero__step--pointer:before{content:"";position:absolute;display:block;width:3.5em;height:3.5em;top:93%;right:40%;z-index:1;background:url("/assets/arrow.svg") no-repeat center;background-size:100%;transform:rotate(110deg)}@media(min-width: 40em){.landing-hero__step--pointer:before{width:3.5em;height:3.5em;top:30%;right:-3.25em;transform:rotate(10deg)}}.landing-hero__step-title{margin:0 0 .25em 0;padding:1em;font-family:"Jost",sans-serif;font-size:1em;font-weight:bold;text-align:center;color:#fff;background-color:#000}@media(min-width: 66em){.landing-hero__step-title{padding:1em 2em;font-size:1.75vw}}@media(min-width: 90em){.landing-hero__step-title{font-size:1.5em}}.landing-hello{position:relative;grid-column:2/5;margin-bottom:2em;padding:1em;background-color:#fbf7f0;border:.25em solid #fff;box-shadow:0 0 2em rgba(0,0,0,.1)}@media(min-width: 40em){.landing-hello{display:flex;align-items:stretch}}.landing-hello:before{content:"";position:absolute;display:block;width:3.5em;height:3.5em;top:-30%;right:40%;z-index:1;background:url("/assets/arrow.svg") no-repeat center;background-size:100%;transform:rotate(110deg)}@media(min-width: 40em){.landing-hello:before{top:-55%;right:35%;transform:rotate(130deg)}}@media(min-width: 66em){.landing-hello:before{top:-60%;right:35%}}.landing-hello__label{clip:rect(1px, 1px, 1px, 1px);position:absolute !important;height:1px;width:1px;overflow:hidden}.landing-hello__input{display:block;margin:0;padding:.5em;width:100%;border:2px solid #000;font-family:"Jost",sans-serif;font-size:1em;transition:border-color .2s ease}@media(min-width: 40em){.landing-hello__input{width:46%}}.landing-hello__input:focus{outline:none;border-color:#77e8b9 !important}.landing-hello__button{display:block;width:100%;padding:.5em 1em;background-color:#000;color:#77e8b9;font-family:"Jost",sans-serif;font-size:1em;font-weight:bold;text-decoration:none;text-align:center;line-height:normal;-webkit-appearance:none;border:none;outline:none;cursor:pointer}@media(min-width: 40em){.landing-hello__button{width:auto}}.landing-hello__output{display:block;width:100%;margin:1em 0 0 0;padding:1.1em .25em;font-size:1.25em;line-height:0;color:#000;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;border-bottom:.1em solid #000}@media(min-width: 40em){.landing-hello__output{margin:0 0 0 .5em;width:50%}}.landing-hello__output:not(:empty)::before{content:"“"}.landing-hello__output:not(:empty)::after{content:"”"}.landing-summary{text-align:center}@media(min-width: 40em){.landing-summary{font-size:1.125em}}.landing-version{grid-column:2/5;position:relative;padding:0;margin:0 0 4em 0;font-family:"Jost",sans-serif;font-weight:600;font-style:italic;font-size:.85em;text-align:center}.landing-version>span{display:inline-block;padding:1em 2em;background-color:#77e8b9;clip-path:polygon(5% 10%, 46% 1%, 46% 10%, 100% 0, 95% 90%, 31% 100%, 31% 90%, 0% 100%)}.landing-actions{grid-column:3/4;margin:0}@media(min-width: 40em){.landing-actions{display:flex;justify-content:space-between;align-items:stretch}}.landing-actions__item{display:block;margin-bottom:1em;padding:1.5em 1em;font-family:"Jost",sans-serif;font-style:italic;text-align:center;line-height:1.25;background-color:#fff;box-shadow:0 0 2em rgba(0,0,0,.075);border-radius:.5em}@media(max-width: 39.99em){.landing-actions__item{max-width:20em;margin-left:auto;margin-right:auto}}@media(min-width: 40em){.landing-actions__item{width:32%;margin-bottom:0}}.landing-actions__icon{display:block;width:3.75em;height:3.75em;margin:0 auto 1em auto;background-color:#77e8b9}.landing-actions__item:hover .landing-actions__icon{background-color:#ffe801}.landing-actions__icon--guide{-webkit-mask:url("/assets/icon-guide.svg") center/100% no-repeat;mask:url("/assets/icon-guide.svg") center/100% no-repeat}.landing-actions__icon--install{-webkit-mask:url("/assets/icon-install.svg") center/100% no-repeat;mask:url("/assets/icon-install.svg") center/100% no-repeat}.landing-actions__icon--github{-webkit-mask:url("/assets/icon-github.svg") center/100% no-repeat;mask:url("/assets/icon-github.svg") center/100% no-repeat}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:rgba(0,0,0,.6);font-style:italic}.token.namespace{opacity:.7}.token.string,.token.attr-value,.token.attr-name{color:#4070a0;font-weight:normal}.token.punctuation,.token.operator{color:#393a34}.token.entity,.token.url,.token.symbol,.token.number,.token.variable,.token.constant,.token.property,.token.regex,.token.inserted{color:#002070;font-weight:bold}.token.boolean{color:#007020;font-weight:bold}.token.atrule,.token.keyword,.language-autohotkey .token.selector{color:#007020;font-weight:bold}.token.function,.token.deleted,.language-autohotkey .token.tag{color:#9a050f}.token.tag,.token.selector,.language-autohotkey .token.keyword{color:#062873;font-weight:bold}.token.important,.token.function,.token.bold{font-weight:bold}.token.italic{font-style:italic}.callout{background-color:#fe8;color:#000}.callout--avoid{text-decoration:line-through;color:#c00}.callout--prefer{color:#0a0}.callout--pink{background-color:#fac;color:#000}.callout--blue{background-color:#8cf;color:#000}.callout--green{background-color:#afc;color:#000}.grid{display:grid;grid-template-columns:1fr minmax(80vw, 100%) 1fr;align-items:start;column-gap:min(5vw, 4rem)}.grid>.grid{grid-column:1/-1}.grid>*:not([class*=grid]){grid-column:2}@media(min-width: 40em){.grid{grid-template-columns:1fr repeat(12, minmax(2rem, 100%)) 1fr;column-gap:min(3vw, 5rem)}.grid>*:not([class*=grid]){grid-column:4/span 8}}@media(min-width: 90em){.grid{grid-template-columns:1fr repeat(12, 7.5rem) 1fr;column-gap:4rem}}.grid__item{grid-column-start:2}.grid__item--bleed-left{grid-column:1/span 2}.grid__item--bleed-right{grid-column-end:-1}.grid__item--bleed-full{grid-column:1/-1}@media(min-width: 40em){.grid__item--span-3{grid-column-end:span 3}.grid__item--span-4{grid-column-end:span 4}.grid__item--span-5{grid-column-end:span 5}.grid__item--span-6{grid-column-end:span 6}.grid__item--span-7{grid-column-end:span 7}.grid__item--span-8{grid-column-end:span 8}.grid__item--span-9{grid-column-end:span 9}.grid__item--span-10{grid-column-end:span 10}.grid__item--span-11{grid-column-end:span 11}.grid__item--span-12{grid-column:2/span 12}.grid__item--start-1{grid-column-start:2}.grid__item--start-2{grid-column-start:3}.grid__item--start-3{grid-column-start:4}.grid__item--start-4{grid-column-start:5}.grid__item--start-5{grid-column-start:6}.grid__item--start-6{grid-column-start:7}.grid__item--start-7{grid-column-start:8}.grid__item--start-8{grid-column-start:9}.grid__item--start-9{grid-column-start:10}.grid__item--start-10{grid-column-start:11}.grid__item--start-auto{grid-column-start:auto}}/*# sourceMappingURL=main.css.map */ diff --git a/assets/main.css.map b/assets/main.css.map new file mode 100644 index 0000000..faa222c --- /dev/null +++ b/assets/main.css.map @@ -0,0 +1 @@ +{"version":3,"sourceRoot":"","sources":["../../_source/_assets/css/base/_mixins.scss","../../_source/_assets/css/base/_fonts.scss","../../_source/_assets/css/base/_elements.scss","../../_source/_assets/css/components/_anchor.scss","../../_source/_assets/css/components/_button.scss","../../_source/_assets/css/components/_jump.scss","../../_source/_assets/css/components/_nav.scss","../../_source/_assets/css/components/_foot.scss","../../_source/_assets/css/components/_page.scss","../../_source/_assets/css/components/_docs.scss","../../_source/_assets/css/components/_landing.scss","../../_source/_assets/css/components/_highlighter.scss","../../_source/_assets/css/components/_callout.scss","../../_source/_assets/css/components/_grid.scss"],"names":[],"mappings":"CA4EA,UAXE,OAEA,gBACE,YACA,cACA,SACA,WACA,kBCtEJ,WACE,qBACA,oBACA,oBACA,8BACA,4DACA,kBAGF,WACE,qBACA,oBACA,kBACA,6BACA,6DACA,kBAGF,WACE,mBACA,oBACA,oBACA,8BACA,0DACA,kBAGF,WACE,mBACA,oBACA,kBACA,6BACA,2DACA,kBAGF,WACE,yBACA,oBACA,oBACA,8BACA,gEACA,kBAGF,WACE,yBACA,oBACA,kBACA,6BACA,iEACA,kBCnDF,EACE,sBACA,SACA,UAGF,KACE,eAGF,KACE,SACA,UACA,kBACA,kBACA,MFcW,KEbX,YFVY,eEWZ,UFPgB,MEQhB,kBACA,gBACA,cFkEE,wBE5EJ,KAaI,UFZe,mBA6Ef,wBE9EJ,KAiBI,UFfc,OEmBlB,EACE,MFHW,KEIX,gBACA,eACA,cACA,0BACA,+BACA,4BAEA,UACE,MFZS,KEeX,qBAEE,QACE,sBFjBS,QEkBT,+BACA,4BAIJ,SACE,MFzBS,KE6Bb,SACE,iBACA,oBACA,YFtDW,kBEuDX,gBACA,uBACA,kBACA,kBACA,qBAGF,GACE,eACA,UFjDe,OEkDf,gBAGF,GACE,iBACA,UFxDc,OEyDd,kBAGF,GACE,iBACA,UF/Da,OEgEb,gBACA,qBAGF,MAEE,gBACA,oBAGF,GACE,gBACA,kBAEA,YAEE,gBACA,gBAIJ,EACE,gBACA,oBAGF,OACE,gBAGF,WACE,kBACA,oBACA,kBACA,2BACA,gBAEA,kBACE,WACA,kBACA,MACA,OACA,cACA,aACA,cACA,8DAGF,0CAGE,gBACA,gBAIJ,GACE,cACA,WACA,mBACA,UACA,YACA,6BAGF,SAEE,YF/IW,uBEgJX,iBACA,eACA,iBF3HW,QE4HX,cACA,gBACA,gBACA,oBACA,kBACA,gBACA,cACA,WACA,qBACA,kBACA,iBACA,aAGF,IACE,kBACA,cACA,uBACA,8BACA,aACA,kBACA,gBACA,WFlJW,QAqDT,wBEqFJ,IAWI,kBAGF,WACE,cACA,WACA,oBACA,kBACA,MACA,SACA,QACA,UACA,sEAIJ,KACE,eACA,qBAGF,SACE,cACA,eACA,cACA,YACA,iBAGF,MACE,WACA,yBACA,iBACA,gBAGF,MACE,iBF1LW,QE2LX,YFnNW,kBEsNb,GACE,mCAGF,MAEE,sBACA,aAGF,aAEE,sBC3OF,QACE,WACA,kBACA,UACA,UHca,MGbb,qBACA,WAGF,qBACE,QACE,UACA,oCAGF,mBACE,WACA,oCCjBJ,QACE,6EACA,qBACA,kBACA,MJ2BW,KI1BX,YJIW,kBIHX,qBACA,kBACA,mBACA,wBACA,iBJwBY,QIvBZ,SACA,gBACA,wFAEA,gBACE,MJeS,KIZX,qBAEE,cACE,MJSO,KIRP,iBJSS,QIRT,eACA,qBACA,gBACA,yFCzBN,MACE,WACA,SACA,cACA,MLwBiB,KKvBjB,iBLwBW,KKvBX,aACA,mBACA,uBACA,YLFW,kBKGX,yBACA,kBLyEE,wBKpFJ,MAcI,4BAIJ,YACE,qBACA,aACA,mBACA,uBACA,eACA,SACA,UAEA,eACE,SACA,UAEA,sEAEE,YACA,qBACA,wBAKN,iBACE,qBACA,SACA,oBACA,MLhBiB,KKiBjB,gBACA,qBLsCE,wBK5CJ,iBASI,eACA,ULjCS,OKoCX,yBACE,ML1Be,KK6BjB,uBACE,ML5BW,QKgCf,0BACE,gBACA,mBAGF,yBACE,yBACA,qBACA,oBAGF,2BACE,WACA,qBACA,oBLME,2BKHJ,iBAGI,8BACA,6BACA,WACA,UACA,iBCtFJ,UACE,8BACA,6BACA,WACA,UACA,gBACA,iBNsBiB,KMpBjB,iDAGE,qBACA,SACA,UACA,WACA,YACA,eAIJ,UACE,cACA,WACA,SACA,gBAEA,gBACE,YACA,WAGF,sBACE,aAGF,eACE,yBAGF,qBAEE,qBACE,KNZS,SAoDX,2BMnCJ,KNFE,kBMKqB,oBNJlB,eMIkB,oBNHjB,cMGiB,oBNFb,UMEa,oBNErB,mBMDE,0BNEC,gBMFD,0BNGE,eMHF,0BNIM,WMJN,0BACA,UACA,eACA,gBACA,MACA,OACA,cACA,SACA,gBACA,WACA,YACA,aACA,iBACA,iBNhCU,SAoDV,wBMrCJ,KNFE,kBMuBqB,gBNtBlB,eMsBkB,gBNrBjB,cMqBiB,gBNpBb,UMoBa,gBNhBrB,mBMiBE,yBNhBC,gBMgBD,yBNfE,eMeF,yBNdM,WMcN,yBACA,SACA,UACA,UACA,iBN7Ce,MMmDnB,WACE,iBACA,iBACA,qBACA,+BNCE,wBMLJ,WAOI,iBAGF,kBACE,cAGF,cACE,SACA,UNbA,2BMiBJ,uBAGI,UNlFW,QAgEX,wBMeJ,uBAOI,aACA,SACA,YAEA,0BACE,gBAMN,gBACE,cACA,cACA,gBACA,UNrGa,OMsGb,YNnHW,kBMoHX,gBACA,kBACA,iBAEA,uBACE,qBACA,oBACA,gBN9CA,wBMiCJ,gBAiBI,gBACA,UNrHU,IMuHV,uCACE,UACA,SAGF,kEACE,qBACA,kBACA,qBACA,aAKN,cACE,aACA,qBACA,SACA,8BNvEE,wBMmEJ,cAOI,eACA,8BAGF,qBACE,cAGF,iBACE,SACA,gBAIJ,mBACE,cACA,SACA,aACA,UN7JW,QM8JX,YN1KW,kBM2KX,gBACA,iBAEA,0BACE,qBACA,oBACA,gBNpGA,wBMwFJ,mBAgBI,gBACA,mBACA,cACA,UN9KS,MM+KT,gBAEA,0BACE,MNtKO,KMuKP,iBNrKO,QMsKP,sBAKN,cACE,aAGF,2BNjKE,kBMkKmB,gBNjKhB,eMiKgB,gBNhKf,cMgKe,gBN/JX,UM+JW,gBACnB,UAGF,mBACE,cACA,SACA,iBACA,eACA,aACA,YNlNW,kBMmNX,UNvMW,QMwMX,gBACA,yBACA,iBN7LY,QM8LZ,oBN1IE,wBM+HJ,mBAcI,cAGF,wBACE,kBACA,oBACA,YACA,aACA,aACA,iBN9Me,KMgNf,+DAEE,WACA,kBACA,cACA,aACA,aACA,iBNvNa,KM0Nf,gCACE,kBAGF,+BACE,gBAKN,0BACE,6BACA,UACA,iBNnOY,QMqOZ,+BACE,+BAEA,6EAEE,iBN7OO,KM8OP,aAGF,uCNjOF,kBMkOuB,cNjOpB,eMiOoB,cNhOnB,cMgOmB,cN/Nf,UM+Ne,cAGrB,sCNrOF,kBMsOuB,eNrOpB,eMqOoB,eNpOnB,cMoOmB,eNnOf,UMmOe,eAKzB,oBAMI,sCA4BF,kCNxOE,2BMsMJ,oBAGM,cAKF,mDACE,yCAGF,wBACE,QACE,oBAEF,QACE,yBAEF,QACE,yBAIJ,yBACE,mDACE,eAGF,6CACE,0CAQN,iEACE,eAGF,8DAEE,UACA,0BAGF,iEACE,wBC3UJ,QAEE,mBACA,aACA,sBAEA,kBACE,cACA,kBACA,kBAGF,eAEE,mBACA,aACA,SACA,uBACA,SAEA,kBAEE,aACA,SAEA,oBAEE,aAEA,wBACE,aACA,WAKJ,uBACE,aACA,cACA,kBACA,gBAON,mBACE,cACA,mBC/CJ,aACE,aACA,8BACA,mBACA,kBAGF,aACE,kBACA,iBACA,cACA,kBRyEE,wBQrEA,oBACE,WACA,cACA,kBACA,SACA,WACA,WACA,YACA,gFCvBN,MACE,kBAGF,eACE,oBT+EE,wBShFJ,eAII,sBT8EA,wBSlFJ,eAQI,sBAGF,4GACE,gBAGF,kBACE,iBAGF,kCACE,eAIJ,aACE,oBACA,SACA,gBACA,gBTkDE,2BStDJ,aAOI,aACA,8BACA,mBACA,eT8CA,wBSxDJ,aAcI,qBACA,wBACA,gBACA,MACA,SACA,iBACA,sBTsCA,wBS1DJ,aAwBI,sBAIJ,cACE,mBAGF,kBACE,eACA,YACA,wBACA,kBACA,kCC/DF,eACE,kBACA,SACA,UACA,iBVyBW,QUxBX,+BAGF,qBACE,kBACA,UACA,yBACA,kBACA,MVcW,KUbX,UVKc,OUJd,gBACA,gBVkEE,wBU1EJ,qBAWI,UVEc,KUIlB,cACE,kBACA,kBACA,UVsDE,wBUzDJ,cAMI,aACA,8BACA,oBAEA,qBACE,WACA,cACA,kBACA,WACA,YACA,WACA,SACA,UACA,uDACA,sBAKN,oBACE,kBACA,WACA,kBACA,iBVzBW,QU0BX,wBACA,kCV0BE,wBUhCJ,oBASI,UACA,UAGF,2CACE,UACA,4BAGF,0CACE,8BACA,cACA,SVWA,wBUdF,0CAMI,+BACA,kBVSF,wBUhBF,0CAWI,iBACA,iBVMF,wBUlBF,0CAgBI,kBAOJ,oCACE,WACA,kBACA,cACA,YACA,aACA,QACA,UACA,UACA,qDACA,qBACA,yBVpBA,wBUyBA,oCACE,YACA,aACA,QACA,cACA,yBAKN,0BACE,mBACA,YACA,YVnHW,kBUoHX,UVzGY,IU0GZ,iBACA,kBACA,MVlGiB,KUmGjB,iBVlGW,KAyDT,wBUiCJ,0BAWI,gBACA,kBV3CA,wBU+BJ,0BAgBI,iBAMJ,eACE,kBACA,gBACA,kBACA,YACA,iBVnHW,QUoHX,wBACA,kCVhEE,wBUyDJ,eAUI,aACA,qBAGF,sBACE,WACA,kBACA,cACA,YACA,aACA,SACA,UACA,UACA,qDACA,qBACA,yBVlFA,wBUuEF,sBAcI,SACA,UACA,0BVrFF,wBUqEF,sBAoBI,SACA,WAKN,sBACE,8BACA,6BACA,WACA,UACA,gBAGF,sBACE,cACA,SACA,aACA,WACA,sBACA,YV5LW,kBU6LX,cACA,iCVjHE,wBUyGJ,sBAWI,WAGF,4BACE,aACA,gCAIJ,uBACE,cACA,WACA,iBACA,iBVxLW,KUyLX,MVtLY,QUuLZ,YVhNW,kBUiNX,cACA,iBACA,qBACA,kBACA,mBACA,wBACA,YACA,aACA,eV5IE,wBU6HJ,uBAkBI,YAIJ,uBACE,cACA,WACA,iBACA,oBACA,iBACA,cACA,MVjNW,KUkNX,uBACA,gBACA,mBACA,8BV9JE,wBUmJJ,uBAcI,kBACA,WAIA,2CACE,YAGF,0CACE,YAON,iBACE,kBVnLE,wBUkLJ,iBAII,UVvPS,SU2Pb,iBACE,gBACA,kBACA,UACA,iBACA,YV5QW,kBU6QX,gBACA,kBACA,UVrQW,MUsQX,kBAEA,sBACE,qBACA,gBACA,iBV5PU,QU6PV,wFAIJ,iBACE,gBACA,SV/ME,wBU6MJ,iBAKI,aACA,8BACA,qBAIJ,uBACE,cACA,kBACA,kBACA,YVzSW,kBU0SX,kBACA,kBACA,iBACA,iBVxRiB,KUyRjB,oCACA,mBVpOE,2BU0NJ,uBAaI,eACA,iBACA,mBVvOA,wBUwNJ,uBAmBI,UACA,iBAIJ,uBACE,cACA,aACA,cACA,uBACA,iBVzSY,QU2SZ,oDACE,iBV9SW,QUkTf,8BACE,iEACA,yDAGF,gCACE,mEACA,2DAGF,+BACE,kEACA,0DC9VF,yDAIC,qBACA,kBAGD,iBACC,WAGD,iDAGE,cACA,mBAGF,mCAEC,cAGD,kIASE,cACA,iBAGF,eACE,cACA,iBAGF,kEAGE,cACA,iBAGF,+DAGC,cAGD,+DAGE,cACA,iBAGF,6CAGC,iBAGD,cACC,kBCrED,SACE,sBACA,WAGF,gBACE,6BACA,WAGF,iBACE,WAGF,eACE,sBACA,WAGF,eACE,sBACA,WAGF,gBACE,sBACA,WCzBF,MACE,aACA,iDACA,kBACA,0BAEA,YACE,iBAGF,2BACE,cb0EA,wBarFJ,MAeI,6DACA,0BAEA,2BACE,sBbsEF,wBazFJ,MAwBI,iDACA,iBAKJ,YACE,oBAEA,6CACA,4CACA,yCbkDE,wBa7CA,2CACA,2CACA,2CACA,2CACA,2CACA,2CACA,2CACA,6CACA,6CACA,2CAEA,yCACA,yCACA,yCACA,yCACA,yCACA,yCACA,yCACA,yCACA,0CACA,2CACA","file":"main.css"} \ No newline at end of file diff --git a/assets/main.js b/assets/main.js index e061465..ed32035 100644 --- a/assets/main.js +++ b/assets/main.js @@ -1,6 +1,6 @@ -(()=>{(function(){if(window.Reflect===void 0||window.customElements===void 0||window.customElements.polyfillWrapFlushCallback)return;let s=HTMLElement,e={HTMLElement:function(){return Reflect.construct(s,[],this.constructor)}};window.HTMLElement=e.HTMLElement,HTMLElement.prototype=s.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,s)})();(function(s){if(typeof s.requestSubmit=="function")return;s.requestSubmit=function(r){r?(e(r,this),r.click()):(r=document.createElement("input"),r.type="submit",r.hidden=!0,this.appendChild(r),r.click(),this.removeChild(r))};function e(r,i){r instanceof HTMLElement||t(TypeError,"parameter 1 is not of type 'HTMLElement'"),r.type=="submit"||t(TypeError,"The specified element is not a submit button"),r.form==i||t(DOMException,"The specified element is not owned by this form element","NotFoundError")}function t(r,i,n){throw new r("Failed to execute 'requestSubmit' on 'HTMLFormElement': "+i+".",n)}})(HTMLFormElement.prototype);var ie=new WeakMap;function ft(s){let e=s instanceof Element?s:s instanceof Node?s.parentElement:null,t=e?e.closest("input, button"):null;return(t==null?void 0:t.type)=="submit"?t:null}function pt(s){let e=ft(s.target);e&&e.form&&ie.set(e.form,e)}(function(){if("submitter"in Event.prototype)return;let s;if("SubmitEvent"in window&&/Apple Computer/.test(navigator.vendor))s=window.SubmitEvent.prototype;else{if("SubmitEvent"in window)return;s=window.Event.prototype}addEventListener("click",pt,!0),Object.defineProperty(s,"submitter",{get(){if(this.type=="submit"&&this.target instanceof HTMLFormElement)return ie.get(this.target)}})})();var b;(function(s){s.eager="eager",s.lazy="lazy"})(b||(b={}));var p=class extends HTMLElement{constructor(){super();this.loaded=Promise.resolve(),this.delegate=new p.delegateConstructor(this)}static get observedAttributes(){return["disabled","loading","src"]}connectedCallback(){this.delegate.connect()}disconnectedCallback(){this.delegate.disconnect()}reload(){let{src:e}=this;this.src=null,this.src=e}attributeChangedCallback(e){e=="loading"?this.delegate.loadingStyleChanged():e=="src"?this.delegate.sourceURLChanged():this.delegate.disabledChanged()}get src(){return this.getAttribute("src")}set src(e){e?this.setAttribute("src",e):this.removeAttribute("src")}get loading(){return gt(this.getAttribute("loading")||"")}set loading(e){e?this.setAttribute("loading",e):this.removeAttribute("loading")}get disabled(){return this.hasAttribute("disabled")}set disabled(e){e?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get autoscroll(){return this.hasAttribute("autoscroll")}set autoscroll(e){e?this.setAttribute("autoscroll",""):this.removeAttribute("autoscroll")}get complete(){return!this.delegate.isLoading}get isActive(){return this.ownerDocument===document&&!this.isPreview}get isPreview(){var e,t;return(t=(e=this.ownerDocument)===null||e===void 0?void 0:e.documentElement)===null||t===void 0?void 0:t.hasAttribute("data-turbo-preview")}};function gt(s){switch(s.toLowerCase()){case"lazy":return b.lazy;default:return b.eager}}function c(s){return new URL(s.toString(),document.baseURI)}function A(s){let e;if(s.hash)return s.hash.slice(1);if(e=s.href.match(/#(.*)$/))return e[1]}function H(s,e){let t=(e==null?void 0:e.getAttribute("formaction"))||s.getAttribute("action")||s.action;return c(t)}function bt(s){return(vt(s).match(/\.[^.]*$/)||[])[0]||""}function yt(s){return!!bt(s).match(/^(?:|\.(?:htm|html|xhtml))$/)}function Et(s,e){let t=wt(e);return s.href===c(t).href||s.href.startsWith(t)}function M(s,e){return Et(s,e)&&yt(s)}function $(s){let e=A(s);return e!=null?s.href.slice(0,-(e.length+1)):s.href}function O(s){return $(s)}function St(s,e){return c(s).href==c(e).href}function At(s){return s.pathname.split("/").slice(1)}function vt(s){return At(s).slice(-1)[0]}function wt(s){return Ct(s.origin+s.pathname)}function Ct(s){return s.endsWith("/")?s:s+"/"}var W=class{constructor(e){this.response=e}get succeeded(){return this.response.ok}get failed(){return!this.succeeded}get clientError(){return this.statusCode>=400&&this.statusCode<=499}get serverError(){return this.statusCode>=500&&this.statusCode<=599}get redirected(){return this.response.redirected}get location(){return c(this.response.url)}get isHTML(){return this.contentType&&this.contentType.match(/^(?:text\/([^\s;,]+\b)?html|application\/xhtml\+xml)\b/)}get statusCode(){return this.response.status}get contentType(){return this.header("Content-Type")}get responseText(){return this.response.clone().text()}get responseHTML(){return this.isHTML?this.response.clone().text():Promise.resolve(void 0)}header(e){return this.response.headers.get(e)}};function u(s,{target:e,cancelable:t,detail:r}={}){let i=new CustomEvent(s,{cancelable:t,bubbles:!0,detail:r});return e&&e.isConnected?e.dispatchEvent(i):document.documentElement.dispatchEvent(i),i}function I(){return new Promise(s=>requestAnimationFrame(()=>s()))}function Lt(){return new Promise(s=>setTimeout(()=>s(),0))}function Tt(){return Promise.resolve()}function ne(s=""){return new DOMParser().parseFromString(s,"text/html")}function oe(s,...e){let t=Rt(s,e).replace(/^\n/,"").split(` -`),r=t[0].match(/^\s+/),i=r?r[0].length:0;return t.map(n=>n.slice(i)).join(` -`)}function Rt(s,e){return s.reduce((t,r,i)=>{let n=e[i]==null?"":e[i];return t+r+n},"")}function k(){return Array.apply(null,{length:36}).map((s,e)=>e==8||e==13||e==18||e==23?"-":e==14?"4":e==19?(Math.floor(Math.random()*4)+8).toString(16):Math.floor(Math.random()*15).toString(16)).join("")}function B(s,...e){for(let t of e.map(r=>r==null?void 0:r.getAttribute(s)))if(typeof t=="string")return t;return null}function j(...s){for(let e of s)e.localName=="turbo-frame"&&e.setAttribute("busy",""),e.setAttribute("aria-busy","true")}function U(...s){for(let e of s)e.localName=="turbo-frame"&&e.removeAttribute("busy"),e.removeAttribute("aria-busy")}var l;(function(s){s[s.get=0]="get",s[s.post=1]="post",s[s.put=2]="put",s[s.patch=3]="patch",s[s.delete=4]="delete"})(l||(l={}));function Mt(s){switch(s.toLowerCase()){case"get":return l.get;case"post":return l.post;case"put":return l.put;case"patch":return l.patch;case"delete":return l.delete}}var N=class{constructor(e,t,r,i=new URLSearchParams,n=null){this.abortController=new AbortController,this.resolveRequestPromise=o=>{},this.delegate=e,this.method=t,this.headers=this.defaultHeaders,this.body=i,this.url=r,this.target=n}get location(){return this.url}get params(){return this.url.searchParams}get entries(){return this.body?Array.from(this.body.entries()):[]}cancel(){this.abortController.abort()}async perform(){var e,t;let{fetchOptions:r}=this;(t=(e=this.delegate).prepareHeadersForRequest)===null||t===void 0||t.call(e,this.headers,this),await this.allowRequestToBeIntercepted(r);try{this.delegate.requestStarted(this);let i=await fetch(this.url.href,r);return await this.receive(i)}catch(i){if(i.name!=="AbortError")throw this.delegate.requestErrored(this,i),i}finally{this.delegate.requestFinished(this)}}async receive(e){let t=new W(e);return u("turbo:before-fetch-response",{cancelable:!0,detail:{fetchResponse:t},target:this.target}).defaultPrevented?this.delegate.requestPreventedHandlingResponse(this,t):t.succeeded?this.delegate.requestSucceededWithResponse(this,t):this.delegate.requestFailedWithResponse(this,t),t}get fetchOptions(){var e;return{method:l[this.method].toUpperCase(),credentials:"same-origin",headers:this.headers,redirect:"follow",body:this.isIdempotent?null:this.body,signal:this.abortSignal,referrer:(e=this.delegate.referrer)===null||e===void 0?void 0:e.href}}get defaultHeaders(){return{Accept:"text/html, application/xhtml+xml"}}get isIdempotent(){return this.method==l.get}get abortSignal(){return this.abortController.signal}async allowRequestToBeIntercepted(e){let t=new Promise(i=>this.resolveRequestPromise=i);u("turbo:before-fetch-request",{cancelable:!0,detail:{fetchOptions:e,url:this.url,resume:this.resolveRequestPromise},target:this.target}).defaultPrevented&&await t}},ae=class{constructor(e,t){this.started=!1,this.intersect=r=>{let i=r.slice(-1)[0];(i==null?void 0:i.isIntersecting)&&this.delegate.elementAppearedInViewport(this.element)},this.delegate=e,this.element=t,this.intersectionObserver=new IntersectionObserver(this.intersect)}start(){this.started||(this.started=!0,this.intersectionObserver.observe(this.element))}stop(){this.started&&(this.started=!1,this.intersectionObserver.unobserve(this.element))}},C=class{constructor(e){this.templateElement=document.createElement("template"),this.templateElement.innerHTML=e}static wrap(e){return typeof e=="string"?new this(e):e}get fragment(){let e=document.createDocumentFragment();for(let t of this.foreignElements)e.appendChild(document.importNode(t,!0));return e}get foreignElements(){return this.templateChildren.reduce((e,t)=>t.tagName.toLowerCase()=="turbo-stream"?[...e,t]:e,[])}get templateChildren(){return Array.from(this.templateElement.content.children)}};C.contentType="text/vnd.turbo-stream.html";var y;(function(s){s[s.initialized=0]="initialized",s[s.requesting=1]="requesting",s[s.waiting=2]="waiting",s[s.receiving=3]="receiving",s[s.stopping=4]="stopping",s[s.stopped=5]="stopped"})(y||(y={}));var w;(function(s){s.urlEncoded="application/x-www-form-urlencoded",s.multipart="multipart/form-data",s.plain="text/plain"})(w||(w={}));function kt(s){switch(s.toLowerCase()){case w.multipart:return w.multipart;case w.plain:return w.plain;default:return w.urlEncoded}}var L=class{constructor(e,t,r,i=!1){this.state=y.initialized,this.delegate=e,this.formElement=t,this.submitter=r,this.formData=Pt(t,r),this.location=c(this.action),this.method==l.get&&It(this.location,[...this.body.entries()]),this.fetchRequest=new N(this,this.method,this.location,this.body,this.formElement),this.mustRedirect=i}static confirmMethod(e,t){return confirm(e)}get method(){var e;let t=((e=this.submitter)===null||e===void 0?void 0:e.getAttribute("formmethod"))||this.formElement.getAttribute("method")||"";return Mt(t.toLowerCase())||l.get}get action(){var e;let t=typeof this.formElement.action=="string"?this.formElement.action:null;return((e=this.submitter)===null||e===void 0?void 0:e.getAttribute("formaction"))||this.formElement.getAttribute("action")||t||""}get body(){return this.enctype==w.urlEncoded||this.method==l.get?new URLSearchParams(this.stringFormData):this.formData}get enctype(){var e;return kt(((e=this.submitter)===null||e===void 0?void 0:e.getAttribute("formenctype"))||this.formElement.enctype)}get isIdempotent(){return this.fetchRequest.isIdempotent}get stringFormData(){return[...this.formData].reduce((e,[t,r])=>e.concat(typeof r=="string"?[[t,r]]:[]),[])}get confirmationMessage(){return this.formElement.getAttribute("data-turbo-confirm")}get needsConfirmation(){return this.confirmationMessage!==null}async start(){let{initialized:e,requesting:t}=y;if(!(this.needsConfirmation&&!L.confirmMethod(this.confirmationMessage,this.formElement))&&this.state==e)return this.state=t,this.fetchRequest.perform()}stop(){let{stopping:e,stopped:t}=y;if(this.state!=e&&this.state!=t)return this.state=e,this.fetchRequest.cancel(),!0}prepareHeadersForRequest(e,t){if(!t.isIdempotent){let r=Ft(ce("csrf-param"))||ce("csrf-token");r&&(e["X-CSRF-Token"]=r),e.Accept=[C.contentType,e.Accept].join(", ")}}requestStarted(e){var t;this.state=y.waiting,(t=this.submitter)===null||t===void 0||t.setAttribute("disabled",""),u("turbo:submit-start",{target:this.formElement,detail:{formSubmission:this}}),this.delegate.formSubmissionStarted(this)}requestPreventedHandlingResponse(e,t){this.result={success:t.succeeded,fetchResponse:t}}requestSucceededWithResponse(e,t){if(t.clientError||t.serverError)this.delegate.formSubmissionFailedWithResponse(this,t);else if(this.requestMustRedirect(e)&&Ot(t)){let r=new Error("Form responses must redirect to another location");this.delegate.formSubmissionErrored(this,r)}else this.state=y.receiving,this.result={success:!0,fetchResponse:t},this.delegate.formSubmissionSucceededWithResponse(this,t)}requestFailedWithResponse(e,t){this.result={success:!1,fetchResponse:t},this.delegate.formSubmissionFailedWithResponse(this,t)}requestErrored(e,t){this.result={success:!1,error:t},this.delegate.formSubmissionErrored(this,t)}requestFinished(e){var t;this.state=y.stopped,(t=this.submitter)===null||t===void 0||t.removeAttribute("disabled"),u("turbo:submit-end",{target:this.formElement,detail:Object.assign({formSubmission:this},this.result)}),this.delegate.formSubmissionFinished(this)}requestMustRedirect(e){return!e.isIdempotent&&this.mustRedirect}};function Pt(s,e){let t=new FormData(s),r=e==null?void 0:e.getAttribute("name"),i=e==null?void 0:e.getAttribute("value");return r&&i!=null&&t.get(r)!=i&&t.append(r,i),t}function Ft(s){if(s!=null){let t=(document.cookie?document.cookie.split("; "):[]).find(r=>r.startsWith(s));if(t){let r=t.split("=").slice(1).join("=");return r?decodeURIComponent(r):void 0}}}function ce(s){let e=document.querySelector(`meta[name="${s}"]`);return e&&e.content}function Ot(s){return s.statusCode==200&&!s.redirected}function It(s,e){let t=new URLSearchParams;for(let[r,i]of e)i instanceof File||t.append(r,i);return s.search=t.toString(),s}var P=class{constructor(e){this.element=e}get children(){return[...this.element.children]}hasAnchor(e){return this.getElementForAnchor(e)!=null}getElementForAnchor(e){return e?this.element.querySelector(`[id='${e}'], a[name='${e}']`):null}get isConnected(){return this.element.isConnected}get firstAutofocusableElement(){return this.element.querySelector("[autofocus]")}get permanentElements(){return[...this.element.querySelectorAll("[id][data-turbo-permanent]")]}getPermanentElementById(e){return this.element.querySelector(`#${e}[data-turbo-permanent]`)}getPermanentElementMapForSnapshot(e){let t={};for(let r of this.permanentElements){let{id:i}=r,n=e.getPermanentElementById(i);n&&(t[i]=[r,n])}return t}},K=class{constructor(e,t){this.submitBubbled=r=>{let i=r.target;if(!r.defaultPrevented&&i instanceof HTMLFormElement&&i.closest("turbo-frame, html")==this.element){let n=r.submitter||void 0;((n==null?void 0:n.getAttribute("formmethod"))||i.method)!="dialog"&&this.delegate.shouldInterceptFormSubmission(i,n)&&(r.preventDefault(),r.stopImmediatePropagation(),this.delegate.formSubmissionIntercepted(i,n))}},this.delegate=e,this.element=t}start(){this.element.addEventListener("submit",this.submitBubbled)}stop(){this.element.removeEventListener("submit",this.submitBubbled)}},_=class{constructor(e,t){this.resolveRenderPromise=r=>{},this.resolveInterceptionPromise=r=>{},this.delegate=e,this.element=t}scrollToAnchor(e){let t=this.snapshot.getElementForAnchor(e);t?(this.scrollToElement(t),this.focusElement(t)):this.scrollToPosition({x:0,y:0})}scrollToAnchorFromLocation(e){this.scrollToAnchor(A(e))}scrollToElement(e){e.scrollIntoView()}focusElement(e){e instanceof HTMLElement&&(e.hasAttribute("tabindex")?e.focus():(e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")))}scrollToPosition({x:e,y:t}){this.scrollRoot.scrollTo(e,t)}scrollToTop(){this.scrollToPosition({x:0,y:0})}get scrollRoot(){return window}async render(e){let{isPreview:t,shouldRender:r,newSnapshot:i}=e;if(r)try{this.renderPromise=new Promise(a=>this.resolveRenderPromise=a),this.renderer=e,this.prepareToRenderSnapshot(e);let n=new Promise(a=>this.resolveInterceptionPromise=a);this.delegate.allowsImmediateRender(i,this.resolveInterceptionPromise)||await n,await this.renderSnapshot(e),this.delegate.viewRenderedSnapshot(i,t),this.finishRenderingSnapshot(e)}finally{delete this.renderer,this.resolveRenderPromise(void 0),delete this.renderPromise}else this.invalidate()}invalidate(){this.delegate.viewInvalidated()}prepareToRenderSnapshot(e){this.markAsPreview(e.isPreview),e.prepareToRender()}markAsPreview(e){e?this.element.setAttribute("data-turbo-preview",""):this.element.removeAttribute("data-turbo-preview")}async renderSnapshot(e){await e.render()}finishRenderingSnapshot(e){e.finishRendering()}},le=class extends _{invalidate(){this.element.innerHTML=""}get snapshot(){return new P(this.element)}},z=class{constructor(e,t){this.clickBubbled=r=>{this.respondsToEventTarget(r.target)?this.clickEvent=r:delete this.clickEvent},this.linkClicked=r=>{this.clickEvent&&this.respondsToEventTarget(r.target)&&r.target instanceof Element&&this.delegate.shouldInterceptLinkClick(r.target,r.detail.url)&&(this.clickEvent.preventDefault(),r.preventDefault(),this.delegate.linkClickIntercepted(r.target,r.detail.url)),delete this.clickEvent},this.willVisit=()=>{delete this.clickEvent},this.delegate=e,this.element=t}start(){this.element.addEventListener("click",this.clickBubbled),document.addEventListener("turbo:click",this.linkClicked),document.addEventListener("turbo:before-visit",this.willVisit)}stop(){this.element.removeEventListener("click",this.clickBubbled),document.removeEventListener("turbo:click",this.linkClicked),document.removeEventListener("turbo:before-visit",this.willVisit)}respondsToEventTarget(e){let t=e instanceof Element?e:e instanceof Node?e.parentElement:null;return t&&t.closest("turbo-frame, html")==this.element}},he=class{constructor(e){this.permanentElementMap=e}static preservingPermanentElements(e,t){let r=new this(e);r.enter(),t(),r.leave()}enter(){for(let e in this.permanentElementMap){let[,t]=this.permanentElementMap[e];this.replaceNewPermanentElementWithPlaceholder(t)}}leave(){for(let e in this.permanentElementMap){let[t]=this.permanentElementMap[e];this.replaceCurrentPermanentElementWithClone(t),this.replacePlaceholderWithPermanentElement(t)}}replaceNewPermanentElementWithPlaceholder(e){let t=Bt(e);e.replaceWith(t)}replaceCurrentPermanentElementWithClone(e){let t=e.cloneNode(!0);e.replaceWith(t)}replacePlaceholderWithPermanentElement(e){let t=this.getPlaceholderById(e.id);t==null||t.replaceWith(e)}getPlaceholderById(e){return this.placeholders.find(t=>t.content==e)}get placeholders(){return[...document.querySelectorAll("meta[name=turbo-permanent-placeholder][content]")]}};function Bt(s){let e=document.createElement("meta");return e.setAttribute("name","turbo-permanent-placeholder"),e.setAttribute("content",s.id),e}var x=class{constructor(e,t,r,i=!0){this.currentSnapshot=e,this.newSnapshot=t,this.isPreview=r,this.willRender=i,this.promise=new Promise((n,o)=>this.resolvingFunctions={resolve:n,reject:o})}get shouldRender(){return!0}prepareToRender(){}finishRendering(){this.resolvingFunctions&&(this.resolvingFunctions.resolve(),delete this.resolvingFunctions)}createScriptElement(e){if(e.getAttribute("data-turbo-eval")=="false")return e;{let t=document.createElement("script");return this.cspNonce&&(t.nonce=this.cspNonce),t.textContent=e.textContent,t.async=!1,Nt(t,e),t}}preservingPermanentElements(e){he.preservingPermanentElements(this.permanentElementMap,e)}focusFirstAutofocusableElement(){let e=this.connectedSnapshot.firstAutofocusableElement;xt(e)&&e.focus()}get connectedSnapshot(){return this.newSnapshot.isConnected?this.newSnapshot:this.currentSnapshot}get currentElement(){return this.currentSnapshot.element}get newElement(){return this.newSnapshot.element}get permanentElementMap(){return this.currentSnapshot.getPermanentElementMapForSnapshot(this.newSnapshot)}get cspNonce(){var e;return(e=document.head.querySelector('meta[name="csp-nonce"]'))===null||e===void 0?void 0:e.getAttribute("content")}};function Nt(s,e){for(let{name:t,value:r}of[...e.attributes])s.setAttribute(t,r)}function xt(s){return s&&typeof s.focus=="function"}var de=class extends x{get shouldRender(){return!0}async render(){await I(),this.preservingPermanentElements(()=>{this.loadFrameElement()}),this.scrollFrameIntoView(),await I(),this.focusFirstAutofocusableElement(),await I(),this.activateScriptElements()}loadFrameElement(){var e;let t=document.createRange();t.selectNodeContents(this.currentElement),t.deleteContents();let r=this.newElement,i=(e=r.ownerDocument)===null||e===void 0?void 0:e.createRange();i&&(i.selectNodeContents(r),this.currentElement.appendChild(i.extractContents()))}scrollFrameIntoView(){if(this.currentElement.autoscroll||this.newElement.autoscroll){let e=this.currentElement.firstElementChild,t=Dt(this.currentElement.getAttribute("data-autoscroll-block"),"end");if(e)return e.scrollIntoView({block:t}),!0}return!1}activateScriptElements(){for(let e of this.newScriptElements){let t=this.createScriptElement(e);e.replaceWith(t)}}get newScriptElements(){return this.currentElement.querySelectorAll("script")}};function Dt(s,e){return s=="end"||s=="start"||s=="center"||s=="nearest"?s:e}var f=class{constructor(){this.hiding=!1,this.value=0,this.visible=!1,this.trickle=()=>{this.setValue(this.value+Math.random()/100)},this.stylesheetElement=this.createStylesheetElement(),this.progressElement=this.createProgressElement(),this.installStylesheetElement(),this.setValue(0)}static get defaultCSS(){return oe` +(()=>{(function(){if(window.Reflect===void 0||window.customElements===void 0||window.customElements.polyfillWrapFlushCallback)return;let r=HTMLElement,e={HTMLElement:function(){return Reflect.construct(r,[],this.constructor)}};window.HTMLElement=e.HTMLElement,HTMLElement.prototype=r.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,r)})();(function(r){if(typeof r.requestSubmit=="function")return;r.requestSubmit=function(s){s?(e(s,this),s.click()):(s=document.createElement("input"),s.type="submit",s.hidden=!0,this.appendChild(s),s.click(),this.removeChild(s))};function e(s,i){s instanceof HTMLElement||t(TypeError,"parameter 1 is not of type 'HTMLElement'"),s.type=="submit"||t(TypeError,"The specified element is not a submit button"),s.form==i||t(DOMException,"The specified element is not owned by this form element","NotFoundError")}function t(s,i,n){throw new s("Failed to execute 'requestSubmit' on 'HTMLFormElement': "+i+".",n)}})(HTMLFormElement.prototype);var Ee=new WeakMap;function _t(r){let e=r instanceof Element?r:r instanceof Node?r.parentElement:null,t=e?e.closest("input, button"):null;return(t==null?void 0:t.type)=="submit"?t:null}function jt(r){let e=_t(r.target);e&&e.form&&Ee.set(e.form,e)}(function(){if("submitter"in Event.prototype)return;let r=window.Event.prototype;if("SubmitEvent"in window&&/Apple Computer/.test(navigator.vendor))r=window.SubmitEvent.prototype;else if("SubmitEvent"in window)return;addEventListener("click",jt,!0),Object.defineProperty(r,"submitter",{get(){if(this.type=="submit"&&this.target instanceof HTMLFormElement)return Ee.get(this.target)}})})();var w;(function(r){r.eager="eager",r.lazy="lazy"})(w||(w={}));var g=class extends HTMLElement{static get observedAttributes(){return["disabled","complete","loading","src"]}constructor(){super();this.loaded=Promise.resolve(),this.delegate=new g.delegateConstructor(this)}connectedCallback(){this.delegate.connect()}disconnectedCallback(){this.delegate.disconnect()}reload(){return this.delegate.sourceURLReloaded()}attributeChangedCallback(e){e=="loading"?this.delegate.loadingStyleChanged():e=="complete"?this.delegate.completeChanged():e=="src"?this.delegate.sourceURLChanged():this.delegate.disabledChanged()}get src(){return this.getAttribute("src")}set src(e){e?this.setAttribute("src",e):this.removeAttribute("src")}get loading(){return Wt(this.getAttribute("loading")||"")}set loading(e){e?this.setAttribute("loading",e):this.removeAttribute("loading")}get disabled(){return this.hasAttribute("disabled")}set disabled(e){e?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get autoscroll(){return this.hasAttribute("autoscroll")}set autoscroll(e){e?this.setAttribute("autoscroll",""):this.removeAttribute("autoscroll")}get complete(){return!this.delegate.isLoading}get isActive(){return this.ownerDocument===document&&!this.isPreview}get isPreview(){var e,t;return(t=(e=this.ownerDocument)===null||e===void 0?void 0:e.documentElement)===null||t===void 0?void 0:t.hasAttribute("data-turbo-preview")}};function Wt(r){switch(r.toLowerCase()){case"lazy":return w.lazy;default:return w.eager}}function u(r){return new URL(r.toString(),document.baseURI)}function F(r){let e;if(r.hash)return r.hash.slice(1);if(e=r.href.match(/#(.*)$/))return e[1]}function te(r,e){let t=(e==null?void 0:e.getAttribute("formaction"))||r.getAttribute("action")||r.action;return u(t)}function Ut(r){return(Xt(r).match(/\.[^.]*$/)||[])[0]||""}function Kt(r){return!!Ut(r).match(/^(?:|\.(?:htm|html|xhtml|php))$/)}function zt(r,e){let t=Yt(e);return r.href===u(t).href||r.href.startsWith(t)}function M(r,e){return zt(r,e)&&Kt(r)}function se(r){let e=F(r);return e!=null?r.href.slice(0,-(e.length+1)):r.href}function H(r){return se(r)}function Jt(r,e){return u(r).href==u(e).href}function Qt(r){return r.pathname.split("/").slice(1)}function Xt(r){return Qt(r).slice(-1)[0]}function Yt(r){return Gt(r.origin+r.pathname)}function Gt(r){return r.endsWith("/")?r:r+"/"}var q=class{constructor(e){this.response=e}get succeeded(){return this.response.ok}get failed(){return!this.succeeded}get clientError(){return this.statusCode>=400&&this.statusCode<=499}get serverError(){return this.statusCode>=500&&this.statusCode<=599}get redirected(){return this.response.redirected}get location(){return u(this.response.url)}get isHTML(){return this.contentType&&this.contentType.match(/^(?:text\/([^\s;,]+\b)?html|application\/xhtml\+xml)\b/)}get statusCode(){return this.response.status}get contentType(){return this.header("Content-Type")}get responseText(){return this.response.clone().text()}get responseHTML(){return this.isHTML?this.response.clone().text():Promise.resolve(void 0)}header(e){return this.response.headers.get(e)}};function I(r){if(r.getAttribute("data-turbo-eval")=="false")return r;{let e=document.createElement("script"),t=W("csp-nonce");return t&&(e.nonce=t),e.textContent=r.textContent,e.async=!1,Zt(e,r),e}}function Zt(r,e){for(let{name:t,value:s}of e.attributes)r.setAttribute(t,s)}function es(r){let e=document.createElement("template");return e.innerHTML=r,e.content}function h(r,{target:e,cancelable:t,detail:s}={}){let i=new CustomEvent(r,{cancelable:t,bubbles:!0,composed:!0,detail:s});return e&&e.isConnected?e.dispatchEvent(i):document.documentElement.dispatchEvent(i),i}function $(){return new Promise(r=>requestAnimationFrame(()=>r()))}function ts(){return new Promise(r=>setTimeout(()=>r(),0))}function ss(){return Promise.resolve()}function we(r=""){return new DOMParser().parseFromString(r,"text/html")}function Se(r,...e){let t=rs(r,e).replace(/^\n/,"").split(` +`),s=t[0].match(/^\s+/),i=s?s[0].length:0;return t.map(n=>n.slice(i)).join(` +`)}function rs(r,e){return r.reduce((t,s,i)=>{let n=e[i]==null?"":e[i];return t+s+n},"")}function R(){return Array.from({length:36}).map((r,e)=>e==8||e==13||e==18||e==23?"-":e==14?"4":e==19?(Math.floor(Math.random()*4)+8).toString(16):Math.floor(Math.random()*15).toString(16)).join("")}function _(r,...e){for(let t of e.map(s=>s==null?void 0:s.getAttribute(r)))if(typeof t=="string")return t;return null}function is(r,...e){return e.some(t=>t&&t.hasAttribute(r))}function re(...r){for(let e of r)e.localName=="turbo-frame"&&e.setAttribute("busy",""),e.setAttribute("aria-busy","true")}function ie(...r){for(let e of r)e.localName=="turbo-frame"&&e.removeAttribute("busy"),e.removeAttribute("aria-busy")}function ns(r,e=2e3){return new Promise(t=>{let s=()=>{r.removeEventListener("error",s),r.removeEventListener("load",s),t()};r.addEventListener("load",s,{once:!0}),r.addEventListener("error",s,{once:!0}),setTimeout(t,e)})}function Ae(r){switch(r){case"replace":return history.replaceState;case"advance":case"restore":return history.pushState}}function os(r){return r=="advance"||r=="replace"||r=="restore"}function j(...r){let e=_("data-turbo-action",...r);return os(e)?e:null}function Ce(r){return document.querySelector(`meta[name="${r}"]`)}function W(r){let e=Ce(r);return e&&e.content}function as(r,e){let t=Ce(r);return t||(t=document.createElement("meta"),t.setAttribute("name",r),document.head.appendChild(t)),t.setAttribute("content",e),t}function U(r,e){var t;if(r instanceof Element)return r.closest(e)||U(r.assignedSlot||((t=r.getRootNode())===null||t===void 0?void 0:t.host),e)}var m;(function(r){r[r.get=0]="get",r[r.post=1]="post",r[r.put=2]="put",r[r.patch=3]="patch",r[r.delete=4]="delete"})(m||(m={}));function cs(r){switch(r.toLowerCase()){case"get":return m.get;case"post":return m.post;case"put":return m.put;case"patch":return m.patch;case"delete":return m.delete}}var K=class{constructor(e,t,s,i=new URLSearchParams,n=null){this.abortController=new AbortController,this.resolveRequestPromise=o=>{},this.delegate=e,this.method=t,this.headers=this.defaultHeaders,this.body=i,this.url=s,this.target=n}get location(){return this.url}get params(){return this.url.searchParams}get entries(){return this.body?Array.from(this.body.entries()):[]}cancel(){this.abortController.abort()}async perform(){let{fetchOptions:e}=this;this.delegate.prepareRequest(this),await this.allowRequestToBeIntercepted(e);try{this.delegate.requestStarted(this);let t=await fetch(this.url.href,e);return await this.receive(t)}catch(t){if(t.name!=="AbortError")throw this.willDelegateErrorHandling(t)&&this.delegate.requestErrored(this,t),t}finally{this.delegate.requestFinished(this)}}async receive(e){let t=new q(e);return h("turbo:before-fetch-response",{cancelable:!0,detail:{fetchResponse:t},target:this.target}).defaultPrevented?this.delegate.requestPreventedHandlingResponse(this,t):t.succeeded?this.delegate.requestSucceededWithResponse(this,t):this.delegate.requestFailedWithResponse(this,t),t}get fetchOptions(){var e;return{method:m[this.method].toUpperCase(),credentials:"same-origin",headers:this.headers,redirect:"follow",body:this.isSafe?null:this.body,signal:this.abortSignal,referrer:(e=this.delegate.referrer)===null||e===void 0?void 0:e.href}}get defaultHeaders(){return{Accept:"text/html, application/xhtml+xml"}}get isSafe(){return this.method===m.get}get abortSignal(){return this.abortController.signal}acceptResponseType(e){this.headers.Accept=[e,this.headers.Accept].join(", ")}async allowRequestToBeIntercepted(e){let t=new Promise(i=>this.resolveRequestPromise=i);h("turbo:before-fetch-request",{cancelable:!0,detail:{fetchOptions:e,url:this.url,resume:this.resolveRequestPromise},target:this.target}).defaultPrevented&&await t}willDelegateErrorHandling(e){return!h("turbo:fetch-request-error",{target:this.target,cancelable:!0,detail:{request:this,error:e}}).defaultPrevented}},Te=class{constructor(e,t){this.started=!1,this.intersect=s=>{let i=s.slice(-1)[0];(i==null?void 0:i.isIntersecting)&&this.delegate.elementAppearedInViewport(this.element)},this.delegate=e,this.element=t,this.intersectionObserver=new IntersectionObserver(this.intersect)}start(){this.started||(this.started=!0,this.intersectionObserver.observe(this.element))}stop(){this.started&&(this.started=!1,this.intersectionObserver.unobserve(this.element))}},S=class{static wrap(e){return typeof e=="string"?new this(es(e)):e}constructor(e){this.fragment=ls(e)}};S.contentType="text/vnd.turbo-stream.html";function ls(r){for(let e of r.querySelectorAll("turbo-stream")){let t=document.importNode(e,!0);for(let s of t.templateElement.content.querySelectorAll("script"))s.replaceWith(I(s));e.replaceWith(t)}return r}var A;(function(r){r[r.initialized=0]="initialized",r[r.requesting=1]="requesting",r[r.waiting=2]="waiting",r[r.receiving=3]="receiving",r[r.stopping=4]="stopping",r[r.stopped=5]="stopped"})(A||(A={}));var C;(function(r){r.urlEncoded="application/x-www-form-urlencoded",r.multipart="multipart/form-data",r.plain="text/plain"})(C||(C={}));function hs(r){switch(r.toLowerCase()){case C.multipart:return C.multipart;case C.plain:return C.plain;default:return C.urlEncoded}}var k=class{static confirmMethod(e,t,s){return Promise.resolve(confirm(e))}constructor(e,t,s,i=!1){this.state=A.initialized,this.delegate=e,this.formElement=t,this.submitter=s,this.formData=us(t,s),this.location=u(this.action),this.method==m.get&&fs(this.location,[...this.body.entries()]),this.fetchRequest=new K(this,this.method,this.location,this.body,this.formElement),this.mustRedirect=i}get method(){var e;let t=((e=this.submitter)===null||e===void 0?void 0:e.getAttribute("formmethod"))||this.formElement.getAttribute("method")||"";return cs(t.toLowerCase())||m.get}get action(){var e;let t=typeof this.formElement.action=="string"?this.formElement.action:null;return((e=this.submitter)===null||e===void 0?void 0:e.hasAttribute("formaction"))?this.submitter.getAttribute("formaction")||"":this.formElement.getAttribute("action")||t||""}get body(){return this.enctype==C.urlEncoded||this.method==m.get?new URLSearchParams(this.stringFormData):this.formData}get enctype(){var e;return hs(((e=this.submitter)===null||e===void 0?void 0:e.getAttribute("formenctype"))||this.formElement.enctype)}get isSafe(){return this.fetchRequest.isSafe}get stringFormData(){return[...this.formData].reduce((e,[t,s])=>e.concat(typeof s=="string"?[[t,s]]:[]),[])}async start(){let{initialized:e,requesting:t}=A,s=_("data-turbo-confirm",this.submitter,this.formElement);if(!(typeof s=="string"&&!await k.confirmMethod(s,this.formElement,this.submitter))&&this.state==e)return this.state=t,this.fetchRequest.perform()}stop(){let{stopping:e,stopped:t}=A;if(this.state!=e&&this.state!=t)return this.state=e,this.fetchRequest.cancel(),!0}prepareRequest(e){if(!e.isSafe){let t=ds(W("csrf-param"))||W("csrf-token");t&&(e.headers["X-CSRF-Token"]=t)}this.requestAcceptsTurboStreamResponse(e)&&e.acceptResponseType(S.contentType)}requestStarted(e){var t;this.state=A.waiting,(t=this.submitter)===null||t===void 0||t.setAttribute("disabled",""),this.setSubmitsWith(),h("turbo:submit-start",{target:this.formElement,detail:{formSubmission:this}}),this.delegate.formSubmissionStarted(this)}requestPreventedHandlingResponse(e,t){this.result={success:t.succeeded,fetchResponse:t}}requestSucceededWithResponse(e,t){if(t.clientError||t.serverError)this.delegate.formSubmissionFailedWithResponse(this,t);else if(this.requestMustRedirect(e)&&ms(t)){let s=new Error("Form responses must redirect to another location");this.delegate.formSubmissionErrored(this,s)}else this.state=A.receiving,this.result={success:!0,fetchResponse:t},this.delegate.formSubmissionSucceededWithResponse(this,t)}requestFailedWithResponse(e,t){this.result={success:!1,fetchResponse:t},this.delegate.formSubmissionFailedWithResponse(this,t)}requestErrored(e,t){this.result={success:!1,error:t},this.delegate.formSubmissionErrored(this,t)}requestFinished(e){var t;this.state=A.stopped,(t=this.submitter)===null||t===void 0||t.removeAttribute("disabled"),this.resetSubmitterText(),h("turbo:submit-end",{target:this.formElement,detail:Object.assign({formSubmission:this},this.result)}),this.delegate.formSubmissionFinished(this)}setSubmitsWith(){if(!(!this.submitter||!this.submitsWith)){if(this.submitter.matches("button"))this.originalSubmitText=this.submitter.innerHTML,this.submitter.innerHTML=this.submitsWith;else if(this.submitter.matches("input")){let e=this.submitter;this.originalSubmitText=e.value,e.value=this.submitsWith}}}resetSubmitterText(){if(!(!this.submitter||!this.originalSubmitText)){if(this.submitter.matches("button"))this.submitter.innerHTML=this.originalSubmitText;else if(this.submitter.matches("input")){let e=this.submitter;e.value=this.originalSubmitText}}}requestMustRedirect(e){return!e.isSafe&&this.mustRedirect}requestAcceptsTurboStreamResponse(e){return!e.isSafe||is("data-turbo-stream",this.submitter,this.formElement)}get submitsWith(){var e;return(e=this.submitter)===null||e===void 0?void 0:e.getAttribute("data-turbo-submits-with")}};function us(r,e){let t=new FormData(r),s=e==null?void 0:e.getAttribute("name"),i=e==null?void 0:e.getAttribute("value");return s&&t.append(s,i||""),t}function ds(r){if(r!=null){let t=(document.cookie?document.cookie.split("; "):[]).find(s=>s.startsWith(r));if(t){let s=t.split("=").slice(1).join("=");return s?decodeURIComponent(s):void 0}}}function ms(r){return r.statusCode==200&&!r.redirected}function fs(r,e){let t=new URLSearchParams;for(let[s,i]of e)i instanceof File||t.append(s,i);return r.search=t.toString(),r}var B=class{constructor(e){this.element=e}get activeElement(){return this.element.ownerDocument.activeElement}get children(){return[...this.element.children]}hasAnchor(e){return this.getElementForAnchor(e)!=null}getElementForAnchor(e){return e?this.element.querySelector(`[id='${e}'], a[name='${e}']`):null}get isConnected(){return this.element.isConnected}get firstAutofocusableElement(){let e="[inert], :disabled, [hidden], details:not([open]), dialog:not([open])";for(let t of this.element.querySelectorAll("[autofocus]"))if(t.closest(e)==null)return t;return null}get permanentElements(){return Oe(this.element)}getPermanentElementById(e){return Le(this.element,e)}getPermanentElementMapForSnapshot(e){let t={};for(let s of this.permanentElements){let{id:i}=s,n=e.getPermanentElementById(i);n&&(t[i]=[s,n])}return t}};function Le(r,e){return r.querySelector(`#${e}[data-turbo-permanent]`)}function Oe(r){return r.querySelectorAll("[id][data-turbo-permanent]")}var z=class{constructor(e,t){this.started=!1,this.submitCaptured=()=>{this.eventTarget.removeEventListener("submit",this.submitBubbled,!1),this.eventTarget.addEventListener("submit",this.submitBubbled,!1)},this.submitBubbled=s=>{if(!s.defaultPrevented){let i=s.target instanceof HTMLFormElement?s.target:void 0,n=s.submitter||void 0;i&&ps(i,n)&&gs(i,n)&&this.delegate.willSubmitForm(i,n)&&(s.preventDefault(),s.stopImmediatePropagation(),this.delegate.formSubmitted(i,n))}},this.delegate=e,this.eventTarget=t}start(){this.started||(this.eventTarget.addEventListener("submit",this.submitCaptured,!0),this.started=!0)}stop(){this.started&&(this.eventTarget.removeEventListener("submit",this.submitCaptured,!0),this.started=!1)}};function ps(r,e){return((e==null?void 0:e.getAttribute("formmethod"))||r.getAttribute("method"))!="dialog"}function gs(r,e){if((e==null?void 0:e.hasAttribute("formtarget"))||r.hasAttribute("target")){let t=(e==null?void 0:e.getAttribute("formtarget"))||r.target;for(let s of document.getElementsByName(t))if(s instanceof HTMLIFrameElement)return!1;return!0}else return!0}var ne=class{constructor(e,t){this.resolveRenderPromise=s=>{},this.resolveInterceptionPromise=s=>{},this.delegate=e,this.element=t}scrollToAnchor(e){let t=this.snapshot.getElementForAnchor(e);t?(this.scrollToElement(t),this.focusElement(t)):this.scrollToPosition({x:0,y:0})}scrollToAnchorFromLocation(e){this.scrollToAnchor(F(e))}scrollToElement(e){e.scrollIntoView()}focusElement(e){e instanceof HTMLElement&&(e.hasAttribute("tabindex")?e.focus():(e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")))}scrollToPosition({x:e,y:t}){this.scrollRoot.scrollTo(e,t)}scrollToTop(){this.scrollToPosition({x:0,y:0})}get scrollRoot(){return window}async render(e){let{isPreview:t,shouldRender:s,newSnapshot:i}=e;if(s)try{this.renderPromise=new Promise(c=>this.resolveRenderPromise=c),this.renderer=e,await this.prepareToRenderSnapshot(e);let n=new Promise(c=>this.resolveInterceptionPromise=c),o={resume:this.resolveInterceptionPromise,render:this.renderer.renderElement};this.delegate.allowsImmediateRender(i,o)||await n,await this.renderSnapshot(e),this.delegate.viewRenderedSnapshot(i,t),this.delegate.preloadOnLoadLinksForView(this.element),this.finishRenderingSnapshot(e)}finally{delete this.renderer,this.resolveRenderPromise(void 0),delete this.renderPromise}else this.invalidate(e.reloadReason)}invalidate(e){this.delegate.viewInvalidated(e)}async prepareToRenderSnapshot(e){this.markAsPreview(e.isPreview),await e.prepareToRender()}markAsPreview(e){e?this.element.setAttribute("data-turbo-preview",""):this.element.removeAttribute("data-turbo-preview")}async renderSnapshot(e){await e.render()}finishRenderingSnapshot(e){e.finishRendering()}},Fe=class extends ne{missing(){this.element.innerHTML='Content missing'}get snapshot(){return new B(this.element)}},oe=class{constructor(e,t){this.clickBubbled=s=>{this.respondsToEventTarget(s.target)?this.clickEvent=s:delete this.clickEvent},this.linkClicked=s=>{this.clickEvent&&this.respondsToEventTarget(s.target)&&s.target instanceof Element&&this.delegate.shouldInterceptLinkClick(s.target,s.detail.url,s.detail.originalEvent)&&(this.clickEvent.preventDefault(),s.preventDefault(),this.delegate.linkClickIntercepted(s.target,s.detail.url,s.detail.originalEvent)),delete this.clickEvent},this.willVisit=s=>{delete this.clickEvent},this.delegate=e,this.element=t}start(){this.element.addEventListener("click",this.clickBubbled),document.addEventListener("turbo:click",this.linkClicked),document.addEventListener("turbo:before-visit",this.willVisit)}stop(){this.element.removeEventListener("click",this.clickBubbled),document.removeEventListener("turbo:click",this.linkClicked),document.removeEventListener("turbo:before-visit",this.willVisit)}respondsToEventTarget(e){let t=e instanceof Element?e:e instanceof Node?e.parentElement:null;return t&&t.closest("turbo-frame, html")==this.element}},ae=class{constructor(e,t){this.started=!1,this.clickCaptured=()=>{this.eventTarget.removeEventListener("click",this.clickBubbled,!1),this.eventTarget.addEventListener("click",this.clickBubbled,!1)},this.clickBubbled=s=>{if(s instanceof MouseEvent&&this.clickEventIsSignificant(s)){let i=s.composedPath&&s.composedPath()[0]||s.target,n=this.findLinkFromClickTarget(i);if(n&&vs(n)){let o=this.getLocationForLink(n);this.delegate.willFollowLinkToLocation(n,o,s)&&(s.preventDefault(),this.delegate.followedLinkToLocation(n,o))}}},this.delegate=e,this.eventTarget=t}start(){this.started||(this.eventTarget.addEventListener("click",this.clickCaptured,!0),this.started=!0)}stop(){this.started&&(this.eventTarget.removeEventListener("click",this.clickCaptured,!0),this.started=!1)}clickEventIsSignificant(e){return!(e.target&&e.target.isContentEditable||e.defaultPrevented||e.which>1||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)}findLinkFromClickTarget(e){return U(e,"a[href]:not([target^=_]):not([download])")}getLocationForLink(e){return u(e.getAttribute("href")||"")}};function vs(r){if(r.hasAttribute("target")){for(let e of document.getElementsByName(r.target))if(e instanceof HTMLIFrameElement)return!1;return!0}else return!0}var ce=class{constructor(e,t){this.delegate=e,this.linkInterceptor=new ae(this,t)}start(){this.linkInterceptor.start()}stop(){this.linkInterceptor.stop()}willFollowLinkToLocation(e,t,s){return this.delegate.willSubmitFormLinkToLocation(e,t,s)&&e.hasAttribute("data-turbo-method")}followedLinkToLocation(e,t){let s=document.createElement("form"),i="hidden";for(let[E,V]of t.searchParams)s.append(Object.assign(document.createElement("input"),{type:i,name:E,value:V}));let n=Object.assign(t,{search:""});s.setAttribute("data-turbo","true"),s.setAttribute("action",n.href),s.setAttribute("hidden","");let o=e.getAttribute("data-turbo-method");o&&s.setAttribute("method",o);let a=e.getAttribute("data-turbo-frame");a&&s.setAttribute("data-turbo-frame",a);let c=j(e);c&&s.setAttribute("data-turbo-action",c);let d=e.getAttribute("data-turbo-confirm");d&&s.setAttribute("data-turbo-confirm",d),e.hasAttribute("data-turbo-stream")&&s.setAttribute("data-turbo-stream",""),this.delegate.submittedFormLinkToLocation(e,t,s),document.body.appendChild(s),s.addEventListener("turbo:submit-end",()=>s.remove(),{once:!0}),requestAnimationFrame(()=>s.requestSubmit())}},le=class{static async preservingPermanentElements(e,t,s){let i=new this(e,t);i.enter(),await s(),i.leave()}constructor(e,t){this.delegate=e,this.permanentElementMap=t}enter(){for(let e in this.permanentElementMap){let[t,s]=this.permanentElementMap[e];this.delegate.enteringBardo(t,s),this.replaceNewPermanentElementWithPlaceholder(s)}}leave(){for(let e in this.permanentElementMap){let[t]=this.permanentElementMap[e];this.replaceCurrentPermanentElementWithClone(t),this.replacePlaceholderWithPermanentElement(t),this.delegate.leavingBardo(t)}}replaceNewPermanentElementWithPlaceholder(e){let t=bs(e);e.replaceWith(t)}replaceCurrentPermanentElementWithClone(e){let t=e.cloneNode(!0);e.replaceWith(t)}replacePlaceholderWithPermanentElement(e){let t=this.getPlaceholderById(e.id);t==null||t.replaceWith(e)}getPlaceholderById(e){return this.placeholders.find(t=>t.content==e)}get placeholders(){return[...document.querySelectorAll("meta[name=turbo-permanent-placeholder][content]")]}};function bs(r){let e=document.createElement("meta");return e.setAttribute("name","turbo-permanent-placeholder"),e.setAttribute("content",r.id),e}var J=class{constructor(e,t,s,i,n=!0){this.activeElement=null,this.currentSnapshot=e,this.newSnapshot=t,this.isPreview=i,this.willRender=n,this.renderElement=s,this.promise=new Promise((o,a)=>this.resolvingFunctions={resolve:o,reject:a})}get shouldRender(){return!0}get reloadReason(){}prepareToRender(){}finishRendering(){this.resolvingFunctions&&(this.resolvingFunctions.resolve(),delete this.resolvingFunctions)}async preservingPermanentElements(e){await le.preservingPermanentElements(this,this.permanentElementMap,e)}focusFirstAutofocusableElement(){let e=this.connectedSnapshot.firstAutofocusableElement;ys(e)&&e.focus()}enteringBardo(e){this.activeElement||e.contains(this.currentSnapshot.activeElement)&&(this.activeElement=this.currentSnapshot.activeElement)}leavingBardo(e){e.contains(this.activeElement)&&this.activeElement instanceof HTMLElement&&(this.activeElement.focus(),this.activeElement=null)}get connectedSnapshot(){return this.newSnapshot.isConnected?this.newSnapshot:this.currentSnapshot}get currentElement(){return this.currentSnapshot.element}get newElement(){return this.newSnapshot.element}get permanentElementMap(){return this.currentSnapshot.getPermanentElementMapForSnapshot(this.newSnapshot)}};function ys(r){return r&&typeof r.focus=="function"}var Q=class extends J{static renderElement(e,t){var s;let i=document.createRange();i.selectNodeContents(e),i.deleteContents();let n=t,o=(s=n.ownerDocument)===null||s===void 0?void 0:s.createRange();o&&(o.selectNodeContents(n),e.appendChild(o.extractContents()))}constructor(e,t,s,i,n,o=!0){super(t,s,i,n,o);this.delegate=e}get shouldRender(){return!0}async render(){await $(),this.preservingPermanentElements(()=>{this.loadFrameElement()}),this.scrollFrameIntoView(),await $(),this.focusFirstAutofocusableElement(),await $(),this.activateScriptElements()}loadFrameElement(){this.delegate.willRenderFrame(this.currentElement,this.newElement),this.renderElement(this.currentElement,this.newElement)}scrollFrameIntoView(){if(this.currentElement.autoscroll||this.newElement.autoscroll){let e=this.currentElement.firstElementChild,t=Es(this.currentElement.getAttribute("data-autoscroll-block"),"end"),s=ws(this.currentElement.getAttribute("data-autoscroll-behavior"),"auto");if(e)return e.scrollIntoView({block:t,behavior:s}),!0}return!1}activateScriptElements(){for(let e of this.newScriptElements){let t=I(e);e.replaceWith(t)}}get newScriptElements(){return this.currentElement.querySelectorAll("script")}};function Es(r,e){return r=="end"||r=="start"||r=="center"||r=="nearest"?r:e}function ws(r,e){return r=="auto"||r=="smooth"?r:e}var v=class{static get defaultCSS(){return Se` .turbo-progress-bar { position: fixed; display: block; @@ -8,13 +8,13 @@ left: 0; height: 3px; background: #0076ff; - z-index: 9999; + z-index: 2147483647; transition: - width ${f.animationDuration}ms ease-out, - opacity ${f.animationDuration/2}ms ${f.animationDuration/2}ms ease-in; + width ${v.animationDuration}ms ease-out, + opacity ${v.animationDuration/2}ms ${v.animationDuration/2}ms ease-in; transform: translate3d(0, 0, 0); } - `}show(){this.visible||(this.visible=!0,this.installProgressElement(),this.startTrickling())}hide(){this.visible&&!this.hiding&&(this.hiding=!0,this.fadeProgressElement(()=>{this.uninstallProgressElement(),this.stopTrickling(),this.visible=!1,this.hiding=!1}))}setValue(e){this.value=e,this.refresh()}installStylesheetElement(){document.head.insertBefore(this.stylesheetElement,document.head.firstChild)}installProgressElement(){this.progressElement.style.width="0",this.progressElement.style.opacity="1",document.documentElement.insertBefore(this.progressElement,document.body),this.refresh()}fadeProgressElement(e){this.progressElement.style.opacity="0",setTimeout(e,f.animationDuration*1.5)}uninstallProgressElement(){this.progressElement.parentNode&&document.documentElement.removeChild(this.progressElement)}startTrickling(){this.trickleInterval||(this.trickleInterval=window.setInterval(this.trickle,f.animationDuration))}stopTrickling(){window.clearInterval(this.trickleInterval),delete this.trickleInterval}refresh(){requestAnimationFrame(()=>{this.progressElement.style.width=`${10+this.value*90}%`})}createStylesheetElement(){let e=document.createElement("style");return e.type="text/css",e.textContent=f.defaultCSS,e}createProgressElement(){let e=document.createElement("div");return e.className="turbo-progress-bar",e}};f.animationDuration=300;var ue=class extends P{constructor(){super(...arguments);this.detailsByOuterHTML=this.children.filter(e=>!Ht(e)).map(e=>Wt(e)).reduce((e,t)=>{let{outerHTML:r}=t,i=r in e?e[r]:{type:qt(t),tracked:Vt(t),elements:[]};return Object.assign(Object.assign({},e),{[r]:Object.assign(Object.assign({},i),{elements:[...i.elements,t]})})},{})}get trackedElementSignature(){return Object.keys(this.detailsByOuterHTML).filter(e=>this.detailsByOuterHTML[e].tracked).join("")}getScriptElementsNotInSnapshot(e){return this.getElementsMatchingTypeNotInSnapshot("script",e)}getStylesheetElementsNotInSnapshot(e){return this.getElementsMatchingTypeNotInSnapshot("stylesheet",e)}getElementsMatchingTypeNotInSnapshot(e,t){return Object.keys(this.detailsByOuterHTML).filter(r=>!(r in t.detailsByOuterHTML)).map(r=>this.detailsByOuterHTML[r]).filter(({type:r})=>r==e).map(({elements:[r]})=>r)}get provisionalElements(){return Object.keys(this.detailsByOuterHTML).reduce((e,t)=>{let{type:r,tracked:i,elements:n}=this.detailsByOuterHTML[t];return r==null&&!i?[...e,...n]:n.length>1?[...e,...n.slice(1)]:e},[])}getMetaValue(e){let t=this.findMetaElementByName(e);return t?t.getAttribute("content"):null}findMetaElementByName(e){return Object.keys(this.detailsByOuterHTML).reduce((t,r)=>{let{elements:[i]}=this.detailsByOuterHTML[r];return $t(i,e)?i:t},void 0)}};function qt(s){if(jt(s))return"script";if(Ut(s))return"stylesheet"}function Vt(s){return s.getAttribute("data-turbo-track")=="reload"}function jt(s){return s.tagName.toLowerCase()=="script"}function Ht(s){return s.tagName.toLowerCase()=="noscript"}function Ut(s){let e=s.tagName.toLowerCase();return e=="style"||e=="link"&&s.getAttribute("rel")=="stylesheet"}function $t(s,e){return s.tagName.toLowerCase()=="meta"&&s.getAttribute("name")==e}function Wt(s){return s.hasAttribute("nonce")&&s.setAttribute("nonce",""),s}var g=class extends P{constructor(e,t){super(e);this.headSnapshot=t}static fromHTMLString(e=""){return this.fromDocument(ne(e))}static fromElement(e){return this.fromDocument(e.ownerDocument)}static fromDocument({head:e,body:t}){return new this(t,new ue(e))}clone(){return new g(this.element.cloneNode(!0),this.headSnapshot)}get headElement(){return this.headSnapshot.element}get rootLocation(){var e;let t=(e=this.getSetting("root"))!==null&&e!==void 0?e:"/";return c(t)}get cacheControlValue(){return this.getSetting("cache-control")}get isPreviewable(){return this.cacheControlValue!="no-preview"}get isCacheable(){return this.cacheControlValue!="no-cache"}get isVisitable(){return this.getSetting("visit-control")!="reload"}getSetting(e){return this.headSnapshot.getMetaValue(`turbo-${e}`)}},T;(function(s){s.visitStart="visitStart",s.requestStart="requestStart",s.requestEnd="requestEnd",s.visitEnd="visitEnd"})(T||(T={}));var m;(function(s){s.initialized="initialized",s.started="started",s.canceled="canceled",s.failed="failed",s.completed="completed"})(m||(m={}));var Kt={action:"advance",historyChanged:!1,visitCachedSnapshot:()=>{},willRender:!0},E;(function(s){s[s.networkFailure=0]="networkFailure",s[s.timeoutFailure=-1]="timeoutFailure",s[s.contentTypeMismatch=-2]="contentTypeMismatch"})(E||(E={}));var me=class{constructor(e,t,r,i={}){this.identifier=k(),this.timingMetrics={},this.followedRedirect=!1,this.historyChanged=!1,this.scrolled=!1,this.snapshotCached=!1,this.state=m.initialized,this.delegate=e,this.location=t,this.restorationIdentifier=r||k();let{action:n,historyChanged:o,referrer:a,snapshotHTML:d,response:R,visitCachedSnapshot:V,willRender:re}=Object.assign(Object.assign({},Kt),i);this.action=n,this.historyChanged=o,this.referrer=a,this.snapshotHTML=d,this.response=R,this.isSamePage=this.delegate.locationWithActionIsSamePage(this.location,this.action),this.visitCachedSnapshot=V,this.willRender=re,this.scrolled=!re}get adapter(){return this.delegate.adapter}get view(){return this.delegate.view}get history(){return this.delegate.history}get restorationData(){return this.history.getRestorationDataForIdentifier(this.restorationIdentifier)}get silent(){return this.isSamePage}start(){this.state==m.initialized&&(this.recordTimingMetric(T.visitStart),this.state=m.started,this.adapter.visitStarted(this),this.delegate.visitStarted(this))}cancel(){this.state==m.started&&(this.request&&this.request.cancel(),this.cancelRender(),this.state=m.canceled)}complete(){this.state==m.started&&(this.recordTimingMetric(T.visitEnd),this.state=m.completed,this.adapter.visitCompleted(this),this.delegate.visitCompleted(this),this.followRedirect())}fail(){this.state==m.started&&(this.state=m.failed,this.adapter.visitFailed(this))}changeHistory(){var e;if(!this.historyChanged){let t=this.location.href===((e=this.referrer)===null||e===void 0?void 0:e.href)?"replace":this.action,r=this.getHistoryMethodForAction(t);this.history.update(r,this.location,this.restorationIdentifier),this.historyChanged=!0}}issueRequest(){this.hasPreloadedResponse()?this.simulateRequest():this.shouldIssueRequest()&&!this.request&&(this.request=new N(this,l.get,this.location),this.request.perform())}simulateRequest(){this.response&&(this.startRequest(),this.recordResponse(),this.finishRequest())}startRequest(){this.recordTimingMetric(T.requestStart),this.adapter.visitRequestStarted(this)}recordResponse(e=this.response){if(this.response=e,e){let{statusCode:t}=e;fe(t)?this.adapter.visitRequestCompleted(this):this.adapter.visitRequestFailedWithStatusCode(this,t)}}finishRequest(){this.recordTimingMetric(T.requestEnd),this.adapter.visitRequestFinished(this)}loadResponse(){if(this.response){let{statusCode:e,responseHTML:t}=this.response;this.render(async()=>{this.cacheSnapshot(),this.view.renderPromise&&await this.view.renderPromise,fe(e)&&t!=null?(await this.view.renderPage(g.fromHTMLString(t),!1,this.willRender),this.adapter.visitRendered(this),this.complete()):(await this.view.renderError(g.fromHTMLString(t)),this.adapter.visitRendered(this),this.fail())})}}getCachedSnapshot(){let e=this.view.getCachedSnapshotForLocation(this.location)||this.getPreloadedSnapshot();if(e&&(!A(this.location)||e.hasAnchor(A(this.location)))&&(this.action=="restore"||e.isPreviewable))return e}getPreloadedSnapshot(){if(this.snapshotHTML)return g.fromHTMLString(this.snapshotHTML)}hasCachedSnapshot(){return this.getCachedSnapshot()!=null}loadCachedSnapshot(){let e=this.getCachedSnapshot();if(e){let t=this.shouldIssueRequest();this.render(async()=>{this.cacheSnapshot(),this.isSamePage?this.adapter.visitRendered(this):(this.view.renderPromise&&await this.view.renderPromise,await this.view.renderPage(e,t,this.willRender),this.adapter.visitRendered(this),t||this.complete())})}}followRedirect(){var e;this.redirectedToLocation&&!this.followedRedirect&&((e=this.response)===null||e===void 0?void 0:e.redirected)&&(this.adapter.visitProposedToLocation(this.redirectedToLocation,{action:"replace",response:this.response}),this.followedRedirect=!0)}goToSamePageAnchor(){this.isSamePage&&this.render(async()=>{this.cacheSnapshot(),this.adapter.visitRendered(this)})}requestStarted(){this.startRequest()}requestPreventedHandlingResponse(e,t){}async requestSucceededWithResponse(e,t){let r=await t.responseHTML,{redirected:i,statusCode:n}=t;r==null?this.recordResponse({statusCode:E.contentTypeMismatch,redirected:i}):(this.redirectedToLocation=t.redirected?t.location:void 0,this.recordResponse({statusCode:n,responseHTML:r,redirected:i}))}async requestFailedWithResponse(e,t){let r=await t.responseHTML,{redirected:i,statusCode:n}=t;r==null?this.recordResponse({statusCode:E.contentTypeMismatch,redirected:i}):this.recordResponse({statusCode:n,responseHTML:r,redirected:i})}requestErrored(e,t){this.recordResponse({statusCode:E.networkFailure,redirected:!1})}requestFinished(){this.finishRequest()}performScroll(){this.scrolled||(this.action=="restore"?this.scrollToRestoredPosition()||this.scrollToAnchor()||this.view.scrollToTop():this.scrollToAnchor()||this.view.scrollToTop(),this.isSamePage&&this.delegate.visitScrolledToSamePageLocation(this.view.lastRenderedLocation,this.location),this.scrolled=!0)}scrollToRestoredPosition(){let{scrollPosition:e}=this.restorationData;if(e)return this.view.scrollToPosition(e),!0}scrollToAnchor(){let e=A(this.location);if(e!=null)return this.view.scrollToAnchor(e),!0}recordTimingMetric(e){this.timingMetrics[e]=new Date().getTime()}getTimingMetrics(){return Object.assign({},this.timingMetrics)}getHistoryMethodForAction(e){switch(e){case"replace":return history.replaceState;case"advance":case"restore":return history.pushState}}hasPreloadedResponse(){return typeof this.response=="object"}shouldIssueRequest(){return this.isSamePage?!1:this.action=="restore"?!this.hasCachedSnapshot():this.willRender}cacheSnapshot(){this.snapshotCached||(this.view.cacheSnapshot().then(e=>e&&this.visitCachedSnapshot(e)),this.snapshotCached=!0)}async render(e){this.cancelRender(),await new Promise(t=>{this.frame=requestAnimationFrame(()=>t())}),await e(),delete this.frame,this.performScroll()}cancelRender(){this.frame&&(cancelAnimationFrame(this.frame),delete this.frame)}};function fe(s){return s>=200&&s<300}var pe=class{constructor(e){this.progressBar=new f,this.showProgressBar=()=>{this.progressBar.show()},this.session=e}visitProposedToLocation(e,t){this.navigator.startVisit(e,k(),t)}visitStarted(e){e.loadCachedSnapshot(),e.issueRequest(),e.changeHistory(),e.goToSamePageAnchor()}visitRequestStarted(e){this.progressBar.setValue(0),e.hasCachedSnapshot()||e.action!="restore"?this.showVisitProgressBarAfterDelay():this.showProgressBar()}visitRequestCompleted(e){e.loadResponse()}visitRequestFailedWithStatusCode(e,t){switch(t){case E.networkFailure:case E.timeoutFailure:case E.contentTypeMismatch:return this.reload();default:return e.loadResponse()}}visitRequestFinished(e){this.progressBar.setValue(1),this.hideVisitProgressBar()}visitCompleted(e){}pageInvalidated(){this.reload()}visitFailed(e){}visitRendered(e){}formSubmissionStarted(e){this.progressBar.setValue(0),this.showFormProgressBarAfterDelay()}formSubmissionFinished(e){this.progressBar.setValue(1),this.hideFormProgressBar()}showVisitProgressBarAfterDelay(){this.visitProgressBarTimeout=window.setTimeout(this.showProgressBar,this.session.progressBarDelay)}hideVisitProgressBar(){this.progressBar.hide(),this.visitProgressBarTimeout!=null&&(window.clearTimeout(this.visitProgressBarTimeout),delete this.visitProgressBarTimeout)}showFormProgressBarAfterDelay(){this.formProgressBarTimeout==null&&(this.formProgressBarTimeout=window.setTimeout(this.showProgressBar,this.session.progressBarDelay))}hideFormProgressBar(){this.progressBar.hide(),this.formProgressBarTimeout!=null&&(window.clearTimeout(this.formProgressBarTimeout),delete this.formProgressBarTimeout)}reload(){window.location.reload()}get navigator(){return this.session.navigator}},ge=class{constructor(){this.started=!1}start(){this.started||(this.started=!0,addEventListener("turbo:before-cache",this.removeStaleElements,!1))}stop(){this.started&&(this.started=!1,removeEventListener("turbo:before-cache",this.removeStaleElements,!1))}removeStaleElements(){let e=[...document.querySelectorAll('[data-turbo-cache="false"]')];for(let t of e)t.remove()}},ve=class{constructor(e){this.started=!1,this.submitCaptured=()=>{removeEventListener("submit",this.submitBubbled,!1),addEventListener("submit",this.submitBubbled,!1)},this.submitBubbled=t=>{if(!t.defaultPrevented){let r=t.target instanceof HTMLFormElement?t.target:void 0,i=t.submitter||void 0;r&&((i==null?void 0:i.getAttribute("formmethod"))||r.getAttribute("method"))!="dialog"&&this.delegate.willSubmitForm(r,i)&&(t.preventDefault(),this.delegate.formSubmitted(r,i))}},this.delegate=e}start(){this.started||(addEventListener("submit",this.submitCaptured,!0),this.started=!0)}stop(){this.started&&(removeEventListener("submit",this.submitCaptured,!0),this.started=!1)}},be=class{constructor(e){this.element=e,this.linkInterceptor=new z(this,e),this.formInterceptor=new K(this,e)}start(){this.linkInterceptor.start(),this.formInterceptor.start()}stop(){this.linkInterceptor.stop(),this.formInterceptor.stop()}shouldInterceptLinkClick(e,t){return this.shouldRedirect(e)}linkClickIntercepted(e,t){let r=this.findFrameElement(e);r&&r.delegate.linkClickIntercepted(e,t)}shouldInterceptFormSubmission(e,t){return this.shouldSubmit(e,t)}formSubmissionIntercepted(e,t){let r=this.findFrameElement(e,t);r&&(r.removeAttribute("reloadable"),r.delegate.formSubmissionIntercepted(e,t))}shouldSubmit(e,t){var r;let i=H(e,t),n=this.element.ownerDocument.querySelector('meta[name="turbo-root"]'),o=c((r=n==null?void 0:n.content)!==null&&r!==void 0?r:"/");return this.shouldRedirect(e,t)&&M(i,o)}shouldRedirect(e,t){let r=this.findFrameElement(e,t);return r?r!=e.closest("turbo-frame"):!1}findFrameElement(e,t){let r=(t==null?void 0:t.getAttribute("data-turbo-frame"))||e.getAttribute("data-turbo-frame");if(r&&r!="_top"){let i=this.element.querySelector(`#${r}:not([disabled])`);if(i instanceof p)return i}}},ye=class{constructor(e){this.restorationIdentifier=k(),this.restorationData={},this.started=!1,this.pageLoaded=!1,this.onPopState=t=>{if(this.shouldHandlePopState()){let{turbo:r}=t.state||{};if(r){this.location=new URL(window.location.href);let{restorationIdentifier:i}=r;this.restorationIdentifier=i,this.delegate.historyPoppedToLocationWithRestorationIdentifier(this.location,i)}}},this.onPageLoad=async t=>{await Tt(),this.pageLoaded=!0},this.delegate=e}start(){this.started||(addEventListener("popstate",this.onPopState,!1),addEventListener("load",this.onPageLoad,!1),this.started=!0,this.replace(new URL(window.location.href)))}stop(){this.started&&(removeEventListener("popstate",this.onPopState,!1),removeEventListener("load",this.onPageLoad,!1),this.started=!1)}push(e,t){this.update(history.pushState,e,t)}replace(e,t){this.update(history.replaceState,e,t)}update(e,t,r=k()){let i={turbo:{restorationIdentifier:r}};e.call(history,i,"",t.href),this.location=t,this.restorationIdentifier=r}getRestorationDataForIdentifier(e){return this.restorationData[e]||{}}updateRestorationData(e){let{restorationIdentifier:t}=this,r=this.restorationData[t];this.restorationData[t]=Object.assign(Object.assign({},r),e)}assumeControlOfScrollRestoration(){var e;this.previousScrollRestoration||(this.previousScrollRestoration=(e=history.scrollRestoration)!==null&&e!==void 0?e:"auto",history.scrollRestoration="manual")}relinquishControlOfScrollRestoration(){this.previousScrollRestoration&&(history.scrollRestoration=this.previousScrollRestoration,delete this.previousScrollRestoration)}shouldHandlePopState(){return this.pageIsLoaded()}pageIsLoaded(){return this.pageLoaded||document.readyState=="complete"}},we=class{constructor(e){this.started=!1,this.clickCaptured=()=>{removeEventListener("click",this.clickBubbled,!1),addEventListener("click",this.clickBubbled,!1)},this.clickBubbled=t=>{if(this.clickEventIsSignificant(t)){let r=t.composedPath&&t.composedPath()[0]||t.target,i=this.findLinkFromClickTarget(r);if(i){let n=this.getLocationForLink(i);this.delegate.willFollowLinkToLocation(i,n)&&(t.preventDefault(),this.delegate.followedLinkToLocation(i,n))}}},this.delegate=e}start(){this.started||(addEventListener("click",this.clickCaptured,!0),this.started=!0)}stop(){this.started&&(removeEventListener("click",this.clickCaptured,!0),this.started=!1)}clickEventIsSignificant(e){return!(e.target&&e.target.isContentEditable||e.defaultPrevented||e.which>1||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)}findLinkFromClickTarget(e){if(e instanceof Element)return e.closest("a[href]:not([target^=_]):not([download])")}getLocationForLink(e){return c(e.getAttribute("href")||"")}};function J(s){return s=="advance"||s=="replace"||s=="restore"}var Ee=class{constructor(e){this.delegate=e}proposeVisit(e,t={}){this.delegate.allowsVisitingLocationWithAction(e,t.action)&&(M(e,this.view.snapshot.rootLocation)?this.delegate.visitProposedToLocation(e,t):window.location.href=e.toString())}startVisit(e,t,r={}){this.stop(),this.currentVisit=new me(this,c(e),t,Object.assign({referrer:this.location},r)),this.currentVisit.start()}submitForm(e,t){this.stop(),this.formSubmission=new L(this,e,t,!0),this.formSubmission.start()}stop(){this.formSubmission&&(this.formSubmission.stop(),delete this.formSubmission),this.currentVisit&&(this.currentVisit.cancel(),delete this.currentVisit)}get adapter(){return this.delegate.adapter}get view(){return this.delegate.view}get history(){return this.delegate.history}formSubmissionStarted(e){typeof this.adapter.formSubmissionStarted=="function"&&this.adapter.formSubmissionStarted(e)}async formSubmissionSucceededWithResponse(e,t){if(e==this.formSubmission){let r=await t.responseHTML;if(r){e.method!=l.get&&this.view.clearSnapshotCache();let{statusCode:i,redirected:n}=t,a={action:this.getActionForFormSubmission(e),response:{statusCode:i,responseHTML:r,redirected:n}};this.proposeVisit(t.location,a)}}}async formSubmissionFailedWithResponse(e,t){let r=await t.responseHTML;if(r){let i=g.fromHTMLString(r);t.serverError?await this.view.renderError(i):await this.view.renderPage(i),this.view.scrollToTop(),this.view.clearSnapshotCache()}}formSubmissionErrored(e,t){console.error(t)}formSubmissionFinished(e){typeof this.adapter.formSubmissionFinished=="function"&&this.adapter.formSubmissionFinished(e)}visitStarted(e){this.delegate.visitStarted(e)}visitCompleted(e){this.delegate.visitCompleted(e)}locationWithActionIsSamePage(e,t){let r=A(e),i=A(this.view.lastRenderedLocation),n=t==="restore"&&typeof r=="undefined";return t!=="replace"&&$(e)===$(this.view.lastRenderedLocation)&&(n||r!=null&&r!==i)}visitScrolledToSamePageLocation(e,t){this.delegate.visitScrolledToSamePageLocation(e,t)}get location(){return this.history.location}get restorationIdentifier(){return this.history.restorationIdentifier}getActionForFormSubmission(e){let{formElement:t,submitter:r}=e,i=B("data-turbo-action",r,t);return J(i)?i:"advance"}},v;(function(s){s[s.initial=0]="initial",s[s.loading=1]="loading",s[s.interactive=2]="interactive",s[s.complete=3]="complete"})(v||(v={}));var Se=class{constructor(e){this.stage=v.initial,this.started=!1,this.interpretReadyState=()=>{let{readyState:t}=this;t=="interactive"?this.pageIsInteractive():t=="complete"&&this.pageIsComplete()},this.pageWillUnload=()=>{this.delegate.pageWillUnload()},this.delegate=e}start(){this.started||(this.stage==v.initial&&(this.stage=v.loading),document.addEventListener("readystatechange",this.interpretReadyState,!1),addEventListener("pagehide",this.pageWillUnload,!1),this.started=!0)}stop(){this.started&&(document.removeEventListener("readystatechange",this.interpretReadyState,!1),removeEventListener("pagehide",this.pageWillUnload,!1),this.started=!1)}pageIsInteractive(){this.stage==v.loading&&(this.stage=v.interactive,this.delegate.pageBecameInteractive())}pageIsComplete(){this.pageIsInteractive(),this.stage==v.interactive&&(this.stage=v.complete,this.delegate.pageLoaded())}get readyState(){return document.readyState}},Ae=class{constructor(e){this.started=!1,this.onScroll=()=>{this.updatePosition({x:window.pageXOffset,y:window.pageYOffset})},this.delegate=e}start(){this.started||(addEventListener("scroll",this.onScroll,!1),this.onScroll(),this.started=!0)}stop(){this.started&&(removeEventListener("scroll",this.onScroll,!1),this.started=!1)}updatePosition(e){this.delegate.scrollPositionChanged(e)}},Ce=class{constructor(e){this.sources=new Set,this.started=!1,this.inspectFetchResponse=t=>{let r=_t(t);r&&zt(r)&&(t.preventDefault(),this.receiveMessageResponse(r))},this.receiveMessageEvent=t=>{this.started&&typeof t.data=="string"&&this.receiveMessageHTML(t.data)},this.delegate=e}start(){this.started||(this.started=!0,addEventListener("turbo:before-fetch-response",this.inspectFetchResponse,!1))}stop(){this.started&&(this.started=!1,removeEventListener("turbo:before-fetch-response",this.inspectFetchResponse,!1))}connectStreamSource(e){this.streamSourceIsConnected(e)||(this.sources.add(e),e.addEventListener("message",this.receiveMessageEvent,!1))}disconnectStreamSource(e){this.streamSourceIsConnected(e)&&(this.sources.delete(e),e.removeEventListener("message",this.receiveMessageEvent,!1))}streamSourceIsConnected(e){return this.sources.has(e)}async receiveMessageResponse(e){let t=await e.responseHTML;t&&this.receiveMessageHTML(t)}receiveMessageHTML(e){this.delegate.receivedMessageFromStream(new C(e))}};function _t(s){var e;let t=(e=s.detail)===null||e===void 0?void 0:e.fetchResponse;if(t instanceof W)return t}function zt(s){var e;return((e=s.contentType)!==null&&e!==void 0?e:"").startsWith(C.contentType)}var Le=class extends x{async render(){this.replaceHeadAndBody(),this.activateScriptElements()}replaceHeadAndBody(){let{documentElement:e,head:t,body:r}=document;e.replaceChild(this.newHead,t),e.replaceChild(this.newElement,r)}activateScriptElements(){for(let e of this.scriptElements){let t=e.parentNode;if(t){let r=this.createScriptElement(e);t.replaceChild(r,e)}}}get newHead(){return this.newSnapshot.headSnapshot.element}get scriptElements(){return[...document.documentElement.querySelectorAll("script")]}},Q=class extends x{get shouldRender(){return this.newSnapshot.isVisitable&&this.trackedElementsAreIdentical}prepareToRender(){this.mergeHead()}async render(){this.willRender&&this.replaceBody()}finishRendering(){super.finishRendering(),this.isPreview||this.focusFirstAutofocusableElement()}get currentHeadSnapshot(){return this.currentSnapshot.headSnapshot}get newHeadSnapshot(){return this.newSnapshot.headSnapshot}get newElement(){return this.newSnapshot.element}mergeHead(){this.copyNewHeadStylesheetElements(),this.copyNewHeadScriptElements(),this.removeCurrentHeadProvisionalElements(),this.copyNewHeadProvisionalElements()}replaceBody(){this.preservingPermanentElements(()=>{this.activateNewBody(),this.assignNewBody()})}get trackedElementsAreIdentical(){return this.currentHeadSnapshot.trackedElementSignature==this.newHeadSnapshot.trackedElementSignature}copyNewHeadStylesheetElements(){for(let e of this.newHeadStylesheetElements)document.head.appendChild(e)}copyNewHeadScriptElements(){for(let e of this.newHeadScriptElements)document.head.appendChild(this.createScriptElement(e))}removeCurrentHeadProvisionalElements(){for(let e of this.currentHeadProvisionalElements)document.head.removeChild(e)}copyNewHeadProvisionalElements(){for(let e of this.newHeadProvisionalElements)document.head.appendChild(e)}activateNewBody(){document.adoptNode(this.newElement),this.activateNewBodyScriptElements()}activateNewBodyScriptElements(){for(let e of this.newBodyScriptElements){let t=this.createScriptElement(e);e.replaceWith(t)}}assignNewBody(){document.body&&this.newElement instanceof HTMLBodyElement?document.body.replaceWith(this.newElement):document.documentElement.appendChild(this.newElement)}get newHeadStylesheetElements(){return this.newHeadSnapshot.getStylesheetElementsNotInSnapshot(this.currentHeadSnapshot)}get newHeadScriptElements(){return this.newHeadSnapshot.getScriptElementsNotInSnapshot(this.currentHeadSnapshot)}get currentHeadProvisionalElements(){return this.currentHeadSnapshot.provisionalElements}get newHeadProvisionalElements(){return this.newHeadSnapshot.provisionalElements}get newBodyScriptElements(){return this.newElement.querySelectorAll("script")}},Te=class{constructor(e){this.keys=[],this.snapshots={},this.size=e}has(e){return O(e)in this.snapshots}get(e){if(this.has(e)){let t=this.read(e);return this.touch(e),t}}put(e,t){return this.write(e,t),this.touch(e),t}clear(){this.snapshots={}}read(e){return this.snapshots[O(e)]}write(e,t){this.snapshots[O(e)]=t}touch(e){let t=O(e),r=this.keys.indexOf(t);r>-1&&this.keys.splice(r,1),this.keys.unshift(t),this.trim()}trim(){for(let e of this.keys.splice(this.size))delete this.snapshots[e]}},Re=class extends _{constructor(){super(...arguments);this.snapshotCache=new Te(10),this.lastRenderedLocation=new URL(location.href)}renderPage(e,t=!1,r=!0){let i=new Q(this.snapshot,e,t,r);return this.render(i)}renderError(e){let t=new Le(this.snapshot,e,!1);return this.render(t)}clearSnapshotCache(){this.snapshotCache.clear()}async cacheSnapshot(){if(this.shouldCacheSnapshot){this.delegate.viewWillCacheSnapshot();let{snapshot:e,lastRenderedLocation:t}=this;await Lt();let r=e.clone();return this.snapshotCache.put(t,r),r}}getCachedSnapshotForLocation(e){return this.snapshotCache.get(e)}get snapshot(){return g.fromElement(this.element)}get shouldCacheSnapshot(){return this.snapshot.isCacheable}},Me=class{constructor(){this.navigator=new Ee(this),this.history=new ye(this),this.view=new Re(this,document.documentElement),this.adapter=new pe(this),this.pageObserver=new Se(this),this.cacheObserver=new ge,this.linkClickObserver=new we(this),this.formSubmitObserver=new ve(this),this.scrollObserver=new Ae(this),this.streamObserver=new Ce(this),this.frameRedirector=new be(document.documentElement),this.drive=!0,this.enabled=!0,this.progressBarDelay=500,this.started=!1}start(){this.started||(this.pageObserver.start(),this.cacheObserver.start(),this.linkClickObserver.start(),this.formSubmitObserver.start(),this.scrollObserver.start(),this.streamObserver.start(),this.frameRedirector.start(),this.history.start(),this.started=!0,this.enabled=!0)}disable(){this.enabled=!1}stop(){this.started&&(this.pageObserver.stop(),this.cacheObserver.stop(),this.linkClickObserver.stop(),this.formSubmitObserver.stop(),this.scrollObserver.stop(),this.streamObserver.stop(),this.frameRedirector.stop(),this.history.stop(),this.started=!1)}registerAdapter(e){this.adapter=e}visit(e,t={}){this.navigator.proposeVisit(c(e),t)}connectStreamSource(e){this.streamObserver.connectStreamSource(e)}disconnectStreamSource(e){this.streamObserver.disconnectStreamSource(e)}renderStreamMessage(e){document.documentElement.appendChild(C.wrap(e).fragment)}clearCache(){this.view.clearSnapshotCache()}setProgressBarDelay(e){this.progressBarDelay=e}get location(){return this.history.location}get restorationIdentifier(){return this.history.restorationIdentifier}historyPoppedToLocationWithRestorationIdentifier(e,t){this.enabled?this.navigator.startVisit(e,t,{action:"restore",historyChanged:!0}):this.adapter.pageInvalidated()}scrollPositionChanged(e){this.history.updateRestorationData({scrollPosition:e})}willFollowLinkToLocation(e,t){return this.elementDriveEnabled(e)&&M(t,this.snapshot.rootLocation)&&this.applicationAllowsFollowingLinkToLocation(e,t)}followedLinkToLocation(e,t){let r=this.getActionForLink(e);this.convertLinkWithMethodClickToFormSubmission(e)||this.visit(t.href,{action:r})}convertLinkWithMethodClickToFormSubmission(e){let t=e.getAttribute("data-turbo-method");if(t){let r=document.createElement("form");r.method=t,r.action=e.getAttribute("href")||"undefined",r.hidden=!0,e.hasAttribute("data-turbo-confirm")&&r.setAttribute("data-turbo-confirm",e.getAttribute("data-turbo-confirm"));let i=this.getTargetFrameForLink(e);return i?(r.setAttribute("data-turbo-frame",i),r.addEventListener("turbo:submit-start",()=>r.remove())):r.addEventListener("submit",()=>r.remove()),document.body.appendChild(r),u("submit",{cancelable:!0,target:r})}else return!1}allowsVisitingLocationWithAction(e,t){return this.locationWithActionIsSamePage(e,t)||this.applicationAllowsVisitingLocation(e)}visitProposedToLocation(e,t){ke(e),this.adapter.visitProposedToLocation(e,t)}visitStarted(e){ke(e.location),e.silent||this.notifyApplicationAfterVisitingLocation(e.location,e.action)}visitCompleted(e){this.notifyApplicationAfterPageLoad(e.getTimingMetrics())}locationWithActionIsSamePage(e,t){return this.navigator.locationWithActionIsSamePage(e,t)}visitScrolledToSamePageLocation(e,t){this.notifyApplicationAfterVisitingSamePageLocation(e,t)}willSubmitForm(e,t){let r=H(e,t);return this.elementDriveEnabled(e)&&(!t||this.elementDriveEnabled(t))&&M(c(r),this.snapshot.rootLocation)}formSubmitted(e,t){this.navigator.submitForm(e,t)}pageBecameInteractive(){this.view.lastRenderedLocation=this.location,this.notifyApplicationAfterPageLoad()}pageLoaded(){this.history.assumeControlOfScrollRestoration()}pageWillUnload(){this.history.relinquishControlOfScrollRestoration()}receivedMessageFromStream(e){this.renderStreamMessage(e)}viewWillCacheSnapshot(){var e;((e=this.navigator.currentVisit)===null||e===void 0?void 0:e.silent)||this.notifyApplicationBeforeCachingSnapshot()}allowsImmediateRender({element:e},t){return!this.notifyApplicationBeforeRender(e,t).defaultPrevented}viewRenderedSnapshot(e,t){this.view.lastRenderedLocation=this.history.location,this.notifyApplicationAfterRender()}viewInvalidated(){this.adapter.pageInvalidated()}frameLoaded(e){this.notifyApplicationAfterFrameLoad(e)}frameRendered(e,t){this.notifyApplicationAfterFrameRender(e,t)}applicationAllowsFollowingLinkToLocation(e,t){return!this.notifyApplicationAfterClickingLinkToLocation(e,t).defaultPrevented}applicationAllowsVisitingLocation(e){return!this.notifyApplicationBeforeVisitingLocation(e).defaultPrevented}notifyApplicationAfterClickingLinkToLocation(e,t){return u("turbo:click",{target:e,detail:{url:t.href},cancelable:!0})}notifyApplicationBeforeVisitingLocation(e){return u("turbo:before-visit",{detail:{url:e.href},cancelable:!0})}notifyApplicationAfterVisitingLocation(e,t){return j(document.documentElement),u("turbo:visit",{detail:{url:e.href,action:t}})}notifyApplicationBeforeCachingSnapshot(){return u("turbo:before-cache")}notifyApplicationBeforeRender(e,t){return u("turbo:before-render",{detail:{newBody:e,resume:t},cancelable:!0})}notifyApplicationAfterRender(){return u("turbo:render")}notifyApplicationAfterPageLoad(e={}){return U(document.documentElement),u("turbo:load",{detail:{url:this.location.href,timing:e}})}notifyApplicationAfterVisitingSamePageLocation(e,t){dispatchEvent(new HashChangeEvent("hashchange",{oldURL:e.toString(),newURL:t.toString()}))}notifyApplicationAfterFrameLoad(e){return u("turbo:frame-load",{target:e})}notifyApplicationAfterFrameRender(e,t){return u("turbo:frame-render",{detail:{fetchResponse:e},target:t,cancelable:!0})}elementDriveEnabled(e){let t=e==null?void 0:e.closest("[data-turbo]");return this.drive?t?t.getAttribute("data-turbo")!="false":!0:t?t.getAttribute("data-turbo")=="true":!1}getActionForLink(e){let t=e.getAttribute("data-turbo-action");return J(t)?t:"advance"}getTargetFrameForLink(e){let t=e.getAttribute("data-turbo-frame");if(t)return t;{let r=e.closest("turbo-frame");if(r)return r.id}}get snapshot(){return this.view.snapshot}};function ke(s){Object.defineProperties(s,Jt)}var Jt={absoluteURL:{get(){return this.toString()}}},h=new Me,{navigator:Qt}=h;function Pe(){h.start()}function Xt(s){h.registerAdapter(s)}function Gt(s,e){h.visit(s,e)}function Yt(s){h.connectStreamSource(s)}function Zt(s){h.disconnectStreamSource(s)}function es(s){h.renderStreamMessage(s)}function ts(){h.clearCache()}function ss(s){h.setProgressBarDelay(s)}function rs(s){L.confirmMethod=s}var is=Object.freeze({__proto__:null,navigator:Qt,session:h,PageRenderer:Q,PageSnapshot:g,start:Pe,registerAdapter:Xt,visit:Gt,connectStreamSource:Yt,disconnectStreamSource:Zt,renderStreamMessage:es,clearCache:ts,setProgressBarDelay:ss,setConfirmMethod:rs}),Fe=class{constructor(e){this.fetchResponseLoaded=t=>{},this.currentFetchRequest=null,this.resolveVisitPromise=()=>{},this.connected=!1,this.hasBeenLoaded=!1,this.settingSourceURL=!1,this.element=e,this.view=new le(this,this.element),this.appearanceObserver=new ae(this,this.element),this.linkInterceptor=new z(this,this.element),this.formInterceptor=new K(this,this.element)}connect(){this.connected||(this.connected=!0,this.reloadable=!1,this.loadingStyle==b.lazy&&this.appearanceObserver.start(),this.linkInterceptor.start(),this.formInterceptor.start(),this.sourceURLChanged())}disconnect(){this.connected&&(this.connected=!1,this.appearanceObserver.stop(),this.linkInterceptor.stop(),this.formInterceptor.stop())}disabledChanged(){this.loadingStyle==b.eager&&this.loadSourceURL()}sourceURLChanged(){(this.loadingStyle==b.eager||this.hasBeenLoaded)&&this.loadSourceURL()}loadingStyleChanged(){this.loadingStyle==b.lazy?this.appearanceObserver.start():(this.appearanceObserver.stop(),this.loadSourceURL())}async loadSourceURL(){if(!this.settingSourceURL&&this.enabled&&this.isActive&&(this.reloadable||this.sourceURL!=this.currentURL)){let e=this.currentURL;if(this.currentURL=this.sourceURL,this.sourceURL)try{this.element.loaded=this.visit(c(this.sourceURL)),this.appearanceObserver.stop(),await this.element.loaded,this.hasBeenLoaded=!0}catch(t){throw this.currentURL=e,t}}}async loadResponse(e){(e.redirected||e.succeeded&&e.isHTML)&&(this.sourceURL=e.response.url);try{let t=await e.responseHTML;if(t){let{body:r}=ne(t),i=new P(await this.extractForeignFrameElement(r)),n=new de(this.view.snapshot,i,!1,!1);this.view.renderPromise&&await this.view.renderPromise,await this.view.render(n),h.frameRendered(e,this.element),h.frameLoaded(this.element),this.fetchResponseLoaded(e)}}catch(t){console.error(t),this.view.invalidate()}finally{this.fetchResponseLoaded=()=>{}}}elementAppearedInViewport(e){this.loadSourceURL()}shouldInterceptLinkClick(e,t){return e.hasAttribute("data-turbo-method")?!1:this.shouldInterceptNavigation(e)}linkClickIntercepted(e,t){this.reloadable=!0,this.navigateFrame(e,t)}shouldInterceptFormSubmission(e,t){return this.shouldInterceptNavigation(e,t)}formSubmissionIntercepted(e,t){this.formSubmission&&this.formSubmission.stop(),this.reloadable=!1,this.formSubmission=new L(this,e,t);let{fetchRequest:r}=this.formSubmission;this.prepareHeadersForRequest(r.headers,r),this.formSubmission.start()}prepareHeadersForRequest(e,t){e["Turbo-Frame"]=this.id}requestStarted(e){j(this.element)}requestPreventedHandlingResponse(e,t){this.resolveVisitPromise()}async requestSucceededWithResponse(e,t){await this.loadResponse(t),this.resolveVisitPromise()}requestFailedWithResponse(e,t){console.error(t),this.resolveVisitPromise()}requestErrored(e,t){console.error(t),this.resolveVisitPromise()}requestFinished(e){U(this.element)}formSubmissionStarted({formElement:e}){j(e,this.findFrameElement(e))}formSubmissionSucceededWithResponse(e,t){let r=this.findFrameElement(e.formElement,e.submitter);this.proposeVisitIfNavigatedWithAction(r,e.formElement,e.submitter),r.delegate.loadResponse(t)}formSubmissionFailedWithResponse(e,t){this.element.delegate.loadResponse(t)}formSubmissionErrored(e,t){console.error(t)}formSubmissionFinished({formElement:e}){U(e,this.findFrameElement(e))}allowsImmediateRender(e,t){return!0}viewRenderedSnapshot(e,t){}viewInvalidated(){}async visit(e){var t;let r=new N(this,l.get,e,new URLSearchParams,this.element);return(t=this.currentFetchRequest)===null||t===void 0||t.cancel(),this.currentFetchRequest=r,new Promise(i=>{this.resolveVisitPromise=()=>{this.resolveVisitPromise=()=>{},this.currentFetchRequest=null,i()},r.perform()})}navigateFrame(e,t,r){let i=this.findFrameElement(e,r);this.proposeVisitIfNavigatedWithAction(i,e,r),i.setAttribute("reloadable",""),i.src=t}proposeVisitIfNavigatedWithAction(e,t,r){let i=B("data-turbo-action",r,t,e);if(J(i)){let{visitCachedSnapshot:n}=new Oe(e);e.delegate.fetchResponseLoaded=o=>{if(e.src){let{statusCode:a,redirected:d}=o,R=e.ownerDocument.documentElement.outerHTML,V={statusCode:a,redirected:d,responseHTML:R};h.visit(e.src,{action:i,response:V,visitCachedSnapshot:n,willRender:!1})}}}}findFrameElement(e,t){var r;let i=B("data-turbo-frame",t,e)||this.element.getAttribute("target");return(r=Ie(i))!==null&&r!==void 0?r:this.element}async extractForeignFrameElement(e){let t,r=CSS.escape(this.id);try{if(t=Be(e.querySelector(`turbo-frame#${r}`),this.currentURL))return t;if(t=Be(e.querySelector(`turbo-frame[src][recurse~=${r}]`),this.currentURL))return await t.loaded,await this.extractForeignFrameElement(t);console.error(`Response has no matching element`)}catch(i){console.error(i)}return new p}formActionIsVisitable(e,t){let r=H(e,t);return M(c(r),this.rootLocation)}shouldInterceptNavigation(e,t){let r=B("data-turbo-frame",t,e)||this.element.getAttribute("target");if(e instanceof HTMLFormElement&&!this.formActionIsVisitable(e,t)||!this.enabled||r=="_top")return!1;if(r){let i=Ie(r);if(i)return!i.disabled}return!(!h.elementDriveEnabled(e)||t&&!h.elementDriveEnabled(t))}get id(){return this.element.id}get enabled(){return!this.element.disabled}get sourceURL(){if(this.element.src)return this.element.src}get reloadable(){return this.findFrameElement(this.element).hasAttribute("reloadable")}set reloadable(e){let t=this.findFrameElement(this.element);e?t.setAttribute("reloadable",""):t.removeAttribute("reloadable")}set sourceURL(e){this.settingSourceURL=!0,this.element.src=e??null,this.currentURL=this.element.src,this.settingSourceURL=!1}get loadingStyle(){return this.element.loading}get isLoading(){return this.formSubmission!==void 0||this.resolveVisitPromise()!==void 0}get isActive(){return this.element.isActive&&this.connected}get rootLocation(){var e;let t=this.element.ownerDocument.querySelector('meta[name="turbo-root"]'),r=(e=t==null?void 0:t.content)!==null&&e!==void 0?e:"/";return c(r)}},Oe=class{constructor(e){this.visitCachedSnapshot=({element:t})=>{var r;let{id:i,clone:n}=this;(r=t.querySelector("#"+i))===null||r===void 0||r.replaceWith(n)},this.clone=e.cloneNode(!0),this.id=e.id}};function Ie(s){if(s!=null){let e=document.getElementById(s);if(e instanceof p)return e}}function Be(s,e){if(s){let t=s.getAttribute("src");if(t!=null&&e!=null&&St(t,e))throw new Error(`Matching element has a source URL which references itself`);if(s.ownerDocument!==document&&(s=document.importNode(s,!0)),s instanceof p)return s.connectedCallback(),s.disconnectedCallback(),s}}var ns={after(){this.targetElements.forEach(s=>{var e;return(e=s.parentElement)===null||e===void 0?void 0:e.insertBefore(this.templateContent,s.nextSibling)})},append(){this.removeDuplicateTargetChildren(),this.targetElements.forEach(s=>s.append(this.templateContent))},before(){this.targetElements.forEach(s=>{var e;return(e=s.parentElement)===null||e===void 0?void 0:e.insertBefore(this.templateContent,s)})},prepend(){this.removeDuplicateTargetChildren(),this.targetElements.forEach(s=>s.prepend(this.templateContent))},remove(){this.targetElements.forEach(s=>s.remove())},replace(){this.targetElements.forEach(s=>s.replaceWith(this.templateContent))},update(){this.targetElements.forEach(s=>{s.innerHTML="",s.append(this.templateContent)})}},Ne=class extends HTMLElement{async connectedCallback(){try{await this.render()}catch(e){console.error(e)}finally{this.disconnect()}}async render(){var e;return(e=this.renderPromise)!==null&&e!==void 0?e:this.renderPromise=(async()=>{this.dispatchEvent(this.beforeRenderEvent)&&(await I(),this.performAction())})()}disconnect(){try{this.remove()}catch(e){}}removeDuplicateTargetChildren(){this.duplicateChildren.forEach(e=>e.remove())}get duplicateChildren(){var e;let t=this.targetElements.flatMap(i=>[...i.children]).filter(i=>!!i.id),r=[...(e=this.templateContent)===null||e===void 0?void 0:e.children].filter(i=>!!i.id).map(i=>i.id);return t.filter(i=>r.includes(i.id))}get performAction(){if(this.action){let e=ns[this.action];if(e)return e;this.raise("unknown action")}this.raise("action attribute is missing")}get targetElements(){if(this.target)return this.targetElementsById;if(this.targets)return this.targetElementsByQuery;this.raise("target or targets attribute is missing")}get templateContent(){return this.templateElement.content.cloneNode(!0)}get templateElement(){if(this.firstElementChild instanceof HTMLTemplateElement)return this.firstElementChild;this.raise("first child element must be a