diff --git a/admin/assets/css/admin-dark.min.css b/admin/assets/css/admin-dark.min.css index 504eed7c..3449a614 100644 --- a/admin/assets/css/admin-dark.min.css +++ b/admin/assets/css/admin-dark.min.css @@ -1 +1 @@ -@import"https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,400;0,600;1,400;1,600&display=swap";html{font-size:100%;-webkit-text-size-adjust:100%}body{box-sizing:border-box;margin:0;background-color:#1f2123;color:#f2f2f3;font-family:"Nunito Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.5}*{box-sizing:inherit;line-height:inherit;-webkit-tap-highlight-color:rgba(242,242,243,0)}main{display:block}a{outline-color:rgba(4,138,255,.25);background-color:transparent;color:#1e88e5;text-decoration:none;transition:color 150ms}a:hover{color:#186db7}a:not([href]){cursor:default}img{max-width:100%;border-style:none}button{-webkit-appearance:button}button::-moz-focus-inner{padding:0;border:none}mark{background-color:gold}[hidden]{display:none}.focused{box-shadow:0 0 0 2px rgba(4,138,255,.25)}::selection{background-color:rgba(30,136,229,.25)}::placeholder{color:#979ca1}@media(min-width: 568px){.hide-from-xs{display:none}}@media(max-width: 568px){.show-from-xs{display:none}}@media(min-width: 768px){.hide-from-s{display:none}}@media(max-width: 768px){.show-from-s{display:none}}@media(min-width: 992px){.hide-from-m{display:none}}@media(max-width: 992px){.show-from-m{display:none}}@media(min-width: 1200px){.hide-from-l{display:none}}@media(max-width: 1200px){.show-from-l{display:none}}h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6{margin-top:0;margin-bottom:.5rem;font-weight:600;line-height:1.2}h1,.h1,h2,.h2,h3,.h3{letter-spacing:-0.027rem}h1,.h1{font-size:2.369rem}h2,.h2{font-size:2.104rem}h3,.h3{font-size:1.777rem}h4,.h4{font-size:1.579rem}h5,.h5{font-size:1.184rem}h6,.h6{font-size:1rem}strong{font-weight:600}p{margin-top:0;margin-bottom:.5rem;line-height:1.5}ul{margin-top:0;margin-bottom:.5rem;margin-left:1.25rem;padding:0;list-style-position:outside}.container,.container-full,.container-no-margin{margin:0 auto;padding:0 15px}.container{max-width:1200px}.container-no-margin{padding-right:0;padding-left:0}.row{display:flex;flex-wrap:wrap;margin:0 -15px}@media(max-width: 768px){.container-no-margin .row{margin:0}.container-no-margin div[class^=col-]{padding:0}}.col-xs,.col-xs-1-12,.col-xs-2-12,.col-xs-1-6,.col-xs-3-12,.col-xs-1-4,.col-xs-4-12,.col-xs-1-3,.col-xs-5-12,.col-xs-6-12,.col-xs-1-2,.col-xs-7-12,.col-xs-8-12,.col-xs-2-3,.col-xs-9-12,.col-xs-3-4,.col-xs-10-12,.col-xs-5-6,.col-xs-11-12,.col-xs-12-12,.col-xs-1-1,.col-s,.col-s-1-12,.col-s-2-12,.col-s-1-6,.col-s-3-12,.col-s-1-4,.col-s-4-12,.col-s-1-3,.col-s-5-12,.col-s-6-12,.col-s-1-2,.col-s-7-12,.col-s-8-12,.col-s-2-3,.col-s-9-12,.col-s-3-4,.col-s-10-12,.col-s-5-6,.col-s-11-12,.col-s-12-12,.col-s-1-1,.col-m,.col-m-1-12,.col-m-2-12,.col-m-1-6,.col-m-3-12,.col-m-1-4,.col-m-4-12,.col-m-1-3,.col-m-5-12,.col-m-6-12,.col-m-1-2,.col-m-7-12,.col-m-8-12,.col-m-2-3,.col-m-9-12,.col-m-3-4,.col-m-10-12,.col-m-5-6,.col-m-11-12,.col-m-12-12,.col-m-1-1,.col-l,.col-l-1-12,.col-l-2-12,.col-l-1-6,.col-l-3-12,.col-l-1-4,.col-l-4-12,.col-l-1-3,.col-l-5-12,.col-l-6-12,.col-l-1-2,.col-l-7-12,.col-l-8-12,.col-l-2-3,.col-l-9-12,.col-l-3-4,.col-l-10-12,.col-l-5-6,.col-l-11-12,.col-l-12-12,.col-l-1-1{padding:0 15px;width:100%}.col-xs{flex:1 0 auto;max-width:100%;width:auto}.col-xs-1-12{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-xs-2-12,.col-xs-1-6{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-xs-3-12,.col-xs-1-4{flex:0 0 25%;max-width:25%}.col-xs-4-12,.col-xs-1-3{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-xs-5-12{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-xs-6-12,.col-xs-1-2{flex:0 0 50%;max-width:50%}.col-xs-7-12{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-xs-8-12,.col-xs-2-3{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-xs-9-12,.col-xs-3-4{flex:0 0 75%;max-width:75%}.col-xs-10-12,.col-xs-5-6{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-xs-11-12{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-xs-12-12,.col-xs-1-1{flex:0 0 100%;max-width:100%}@media(min-width: 768px){.col-s{flex:1 0 auto;max-width:100%;width:auto}.col-s-1-12{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-s-2-12,.col-s-1-6{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-s-3-12,.col-s-1-4{flex:0 0 25%;max-width:25%}.col-s-4-12,.col-s-1-3{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-s-5-12{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-s-6-12,.col-s-1-2{flex:0 0 50%;max-width:50%}.col-s-7-12{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-s-8-12,.col-s-2-3{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-s-9-12,.col-s-3-4{flex:0 0 75%;max-width:75%}.col-s-10-12,.col-s-5-6{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-s-11-12{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-s-12-12,.col-s-1-1{flex:0 0 100%;max-width:100%}}@media(min-width: 992px){.col-m{flex:1 0 auto;max-width:100%;width:auto}.col-m-1-12{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-m-2-12,.col-m-1-6{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-m-3-12,.col-m-1-4{flex:0 0 25%;max-width:25%}.col-m-4-12,.col-m-1-3{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-m-5-12{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-m-6-12,.col-m-1-2{flex:0 0 50%;max-width:50%}.col-m-7-12{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-m-8-12,.col-m-2-3{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-m-9-12,.col-m-3-4{flex:0 0 75%;max-width:75%}.col-m-10-12,.col-m-5-6{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-m-11-12{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-m-12-12,.col-m-1-1{flex:0 0 100%;max-width:100%}}@media(min-width: 1200px){.col-l{flex:1 0 auto;max-width:100%;width:auto}.col-l-1-12{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-l-2-12,.col-l-1-6{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-l-3-12,.col-l-1-4{flex:0 0 25%;max-width:25%}.col-l-4-12,.col-l-1-3{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-l-5-12{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-l-6-12,.col-l-1-2{flex:0 0 50%;max-width:50%}.col-l-7-12{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-l-8-12,.col-l-2-3{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-l-9-12,.col-l-3-4{flex:0 0 75%;max-width:75%}.col-l-10-12,.col-l-5-6{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-l-11-12{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-l-12-12,.col-l-1-1{flex:0 0 100%;max-width:100%}}button,.button{display:inline-block;overflow:visible;margin:0;margin-right:.25rem;margin-bottom:.5rem;padding:.375rem .5rem;min-width:2rem;outline:none;border:1px solid #292b2e;border-radius:3px;background-color:#292b2e;color:#f2f2f3;vertical-align:middle;white-space:nowrap;font-size:.875rem;font-family:"Nunito Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.15;cursor:default;transition:border-color 150ms,background-color 150ms,color 150ms;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}button:hover,button:focus,.button:hover,.button:focus{border-color:#333638;background-color:#333638;color:#f2f2f3}button:focus,.button:focus{box-shadow:0 0 0 2px rgba(242,242,243,.25)}button[disabled],button[disabled]:hover,button.disabled,button.disabled:hover,.button[disabled],.button[disabled]:hover,.button.disabled,.button.disabled:hover{border-color:#1f2123;background-color:#1f2123;color:#4b4f53;pointer-events:none}button.active,.button.active{border-color:#4b4f53;background-color:#4b4f53}a.button{text-align:center}.button-right{float:right;margin-right:0;margin-left:.25rem}.button-accent{border:1px solid #1e88e5;background-color:#1e88e5;color:#fff}.button-accent:hover,.button-accent:focus{border-color:#186db7;background-color:#186db7;color:#fff}.button-accent:focus{box-shadow:0 0 0 2px rgba(4,138,255,.25)}.button-success{border:1px solid #2ecc70;background-color:#2ecc70;color:#fff}.button-success:hover,.button-success:focus{border-color:#25a35a;background-color:#25a35a;color:#fff}.button-success:focus{box-shadow:0 0 0 2px rgba(37,163,90,.25)}.button-warning{border:1px solid #f39c11;background-color:#f39c11;color:#fff}.button-warning:hover,.button-warning:focus{border-color:#c27d0e;background-color:#c27d0e;color:#fff}.button-warning:focus{box-shadow:0 0 0 2px rgba(194,125,14,.25)}.button-error{border:1px solid #e74c3b;background-color:#e74c3b;color:#fff}.button-error:hover,.button-error:focus{border-color:#b93d2f;background-color:#b93d2f;color:#fff}.button-error:focus{box-shadow:0 0 0 2px rgba(185,61,47,.25)}.button-link{margin:0;border:0;background-color:transparent;font-size:inherit;cursor:pointer}.button-link:hover,.button-link:focus{background-color:transparent;color:#1e88e5}.button-link:focus{box-shadow:0 0 0 2px rgba(4,138,255,.25)}.button-link[disabled],.button-link[disabled]:hover,.button-link.disabled,.button-link.disabled:hover{background-color:transparent;cursor:default}input,select,textarea{display:inline-block;margin:0;margin-bottom:.5rem;padding:.25rem .5rem;width:100%;border:1px solid #4b4f53;border-radius:3px;background-color:#181a1b;color:#f2f2f3;vertical-align:middle;font-size:.875rem;font-family:"Nunito Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.5;-webkit-appearance:none;-moz-appearance:none}input:focus,select:focus,textarea:focus{outline:none;border-color:#1e88e5;box-shadow:0 0 0 2px rgba(4,138,255,.25)}input[disabled],select[disabled],textarea[disabled]{background-color:#292b2e;color:#979ca1}input[readonly],select[readonly],textarea[readonly]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}input[type=checkbox],input[type=radio]{margin-bottom:0;padding:0;width:auto;height:inherit;vertical-align:text-top}input[type=checkbox]:focus,input[type=radio]:focus{box-shadow:none}input[type=file]{padding:0;border:none;border-radius:0}input[type=file]::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}select{padding:.25rem 1.5rem .25rem .5rem;background:#181a1b url("data:image/svg+xml;utf8,") no-repeat right .75rem center;background-color:#181a1b;background-size:8px 6px}select:-moz-focusring{color:transparent;text-shadow:0 0 0 #f2f2f3}textarea{overflow:auto;min-height:3.125rem;max-height:16.25rem;height:5.75rem;resize:vertical}.input-accent{border-color:#1e88e5}.input-success{border-color:#2ecc70}.input-warning{border-color:#f39c11}.input-error{border-color:#e74c3b}.input-invalid{animation:shake 500ms;animation-fill-mode:both}.input-wrap{position:relative}.input-wrap input{padding-right:1.5rem}.input-reset{position:absolute;top:calc(0.25rem + 1px);right:.25rem;color:#f2f2f3;font-size:.875rem;line-height:1.5;transition:color 150ms}.input-reset:hover{color:#1e88e5}label{display:inline-block;margin-bottom:.25rem;font-size:.875rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none}.label-suggestion{color:#979ca1;font-size:.75rem;line-height:1}.label-required::after{display:inline-block;margin-left:.125rem;color:#e74c3b;content:"*"}.custom-checkbox{position:absolute;opacity:0}.custom-checkbox+.custom-checkbox-text::before{position:relative;top:.125rem;display:inline-block;box-sizing:border-box;margin-right:.5rem;width:1rem;height:1rem;border:1px solid #4b4f53;border-radius:3px;content:" ";transition:border-color 150ms,background-color 150ms}.custom-checkbox+.custom-checkbox-text:hover::before,.custom-checkbox[disabled]+.custom-checkbox-text::before{background-color:#1f2123}.custom-checkbox:checked+.custom-checkbox-text::before{border-color:#1e88e5;background-color:#1e88e5}.custom-checkbox:focus+.custom-checkbox-text::before{border-color:#1e88e5;box-shadow:0 0 0 2px rgba(4,138,255,.25)}.custom-checkbox:checked+.custom-checkbox-text:hover::before{border-color:#186db7;background-color:#186db7}.custom-checkbox:checked+.custom-checkbox-text::after{position:absolute;top:.125rem;left:0;display:block;width:1rem;height:1rem;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11'%3E%3Cpath fill='%23fff' d='M4.727 7.036L8.263 3.5l.707.707L4.727 8.45 2 5.722l.707-.707z'/%3E%3C/svg%3E");content:" "}.custom-checkbox:checked[disabled]+.custom-checkbox-text::before{border-color:#4b4f53;background-color:#4b4f53}.checkbox-label{position:relative;line-height:1.5}.image-input{padding-right:1.875rem;background:#181a1b url("data:image/svg+xml;utf8,") no-repeat right .5rem center;background-size:1rem 1rem;cursor:default}.input-wrap .image-input{padding-right:3.375rem;background-position:right 1.75rem center}.tag-input{position:relative;display:block;box-sizing:border-box;margin-top:0;margin-bottom:.5rem;padding:.25rem .25rem;padding-bottom:0;border:1px solid #4b4f53;border-radius:3px;font-size:.875rem;line-height:1.5;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tag-input.focused{border-color:#1e88e5}.tag-inner-input{display:inline-block;box-sizing:border-box;margin-bottom:.25rem;padding:0 .25rem;max-width:100%;width:auto;outline:none;border:0;border-radius:0;vertical-align:baseline;font-size:.875rem;font-family:inherit;line-height:inherit}.tag-inner-input:focus{box-shadow:none}.tag-hidden-input{display:none}.tag-input .tag{display:inline-block;box-sizing:border-box;margin-bottom:.25rem;padding:0 .375rem;border-radius:3px;background-color:#292b2e;font-size:.875rem;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tag-input.disabled,.tag-input.disabled .tag-inner-input{background-color:#1f2123}.tag-input.disabled .tag{background-color:#333638}.tag-remove{display:inline-block;margin-left:.25rem;padding:0 .125rem;color:#f2f2f3;font-style:normal;transition:color 150ms}.tag-remove:hover{color:#1e88e5}.tag-remove::after{content:"×";font-weight:600}.title-input{font-size:1.125rem}.file-input{display:none}.file-input-label{display:block;clear:both;margin-bottom:1rem;padding:.5rem;background-color:#1f2123}.file-input-label>span{display:block;padding:1.5rem 1rem;border:2px dashed #4b4f53;color:#f2f2f3;text-align:center;transition:background-color 300ms}.file-input-label.drag>span{background-color:#181a1b}.toggle-group{display:inline-block;margin:0;margin-bottom:.5rem;border:1px solid #4b4f53;border-radius:3px;font-size:0}.toggle-group:focus-within{border-color:#1e88e5;box-shadow:0 0 0 2px rgba(4,138,255,.25)}.toggle-group label{margin:0}.toggle-group input[type=radio]{position:absolute;opacity:0}.toggle-group input[type=radio]+span{display:inline-block;padding:.25rem .75rem;border-radius:2px;font-size:.875rem;transition:background-color 150ms,color 150ms}.toggle-group input[type=radio]:hover+span{background-color:#1f2123}.toggle-group input[type=radio]:checked+span{background-color:#1e88e5;color:#fff}.toggle-group input[type=radio]:focus+span{background-color:#186db7}.toggle-group[disabled] input[type=radio]+span{background-color:transparent;color:#f2f2f3}.toggle-group[disabled] input[type=radio]:checked+span{background-color:#333638}.toggle-group input[type=radio]:checked:hover+span{background-color:#186db7}input[type=range]{padding:.875rem 0;width:15rem;border:0;-webkit-appearance:none}input[type=range]::-webkit-slider-runnable-track{width:100%;height:.25rem;border:0;border-radius:.125rem;background-color:#333638;cursor:default}input[type=range]::-webkit-slider-thumb{margin-top:-0.375rem;width:1rem;height:1rem;border:0;border-radius:50%;background-color:#1e88e5;transition:background-color 150ms;-webkit-appearance:none}input[type=range]::-moz-range-track{width:100%;height:.25rem;border:0;border-radius:.125rem;background-color:#333638}input[type=range]::-moz-range-thumb{width:1rem;height:1rem;border:0;border-radius:50%;background-color:#1e88e5;cursor:default}input[type=range]::-ms-track{width:100%;height:.25rem;border-color:transparent;background-color:transparent;color:transparent;cursor:default}input[type=range]::-ms-fill-lower,input[type=range]::-ms-fill-upper{border:0;border-radius:.125rem;background:#333638;box-shadow:none}input[type=range]::-ms-thumb{margin-top:0;width:1rem;height:1rem;border:0;border-radius:50%;background-color:#1e88e5;cursor:default}input[type=range]:focus{box-shadow:none}input[type=range]:hover::-webkit-slider-thumb{background-color:#186db7}input[type=range][disabled]{background-color:transparent}input[type=range][disabled]::-webkit-slider-thumb,input[type=range][disabled]::-moz-range-thumb,input[type=range][disabled]::-ms-thumb{background-color:#979ca1}input[type=range]:focus::-webkit-slider-thumb{background-color:#186db7;box-shadow:0 0 0 2px rgba(4,138,255,.25)}input[type=range]:focus::-moz-range-thumb{background-color:#186db7;box-shadow:0 0 0 2px rgba(4,138,255,.25)}input[type=range]:focus::-ms-thumb{background-color:#186db7;box-shadow:0 0 0 2px rgba(4,138,255,.25)}.range-input-value{padding:0 .5rem;vertical-align:.1875rem;font-size:.875rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.array-input{margin-bottom:.5rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.array-input-row{margin:0 -0.5rem;padding:.25rem .5rem;white-space:nowrap}.array-input-key,.array-input-value{display:inline-block;margin-bottom:0}.array-input-key{margin-right:.125rem;width:30%}.array-input-value{margin-right:.25rem;width:81%}@media(min-width: 568px){.array-input-value{width:86%}}.array-input-associative .array-input-value{margin-right:.25rem;width:50%}@media(min-width: 568px){.array-input-associative .array-input-value{width:55%}}.array-input-add,.array-input-remove{padding:0;min-width:0}.array-input-add::before{font-family:Icons,sans-serif}.array-input-remove::before{font-family:Icons,sans-serif}.dropdown{position:relative;display:inline-block;margin-bottom:.5rem}.dropdown-button{margin-bottom:0}.dropdown-button::after{display:inline-block;margin-left:.25rem;height:0;border-top:.25rem solid;border-right:.25rem solid transparent;border-left:.25rem solid transparent;content:" ";vertical-align:.125rem}.dropdown-menu,.dropdown-list{position:absolute;top:100%;left:0;z-index:8;display:none;float:left;margin-top:3px;padding:.25rem 0;min-width:8rem;border:1px solid #4b4f53;border-radius:3px;background-color:#181a1b;box-shadow:1px 1px .75rem 0 rgba(0,0,0,.25)}.dropdown-list{overflow-y:scroll;max-height:10.15625rem;width:100%}.dropdown-item{display:block;padding:.25rem 1rem;width:100%;color:#f2f2f3;white-space:nowrap;font-size:.875rem}.dropdown-item:hover{background-color:#292b2e;color:#f2f2f3}.dropdown-item.selected{background-color:#1e88e5;color:#fff}.dropdown-separator{margin:.25rem 0;height:0;border-top:1px solid #4b4f53}.CodeMirror{font-family:monospace;height:300px;color:black;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:white}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:black}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0 !important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20, 255, 20, 0.5);-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:bold}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:blue}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:red}.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255, 150, 0, 0.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll !important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none !important;border:none !important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255, 255, 0, 0.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.editor-toolbar{padding:.125rem .25rem;border:1px solid #4b4f53;border-top-left-radius:3px;border-top-right-radius:3px;background-color:#1f2123;font-size:0}.toolbar-button{margin-bottom:0;padding:.5rem;border:0;background-color:#1f2123}.toolbar-button:hover,.toolbar-button:focus{background-color:transparent;color:#1e88e5}.toolbar-button:focus{box-shadow:0 0 0 2px rgba(4,138,255,.25)}.editor-textarea{margin-bottom:1rem;padding:.75rem 1rem;min-height:24rem;border:1px solid #4b4f53;border-radius:3px;font-size:1rem;font-family:"Nunito Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}.editor-textarea:focus{box-shadow:none}.CodeMirror{margin-bottom:1rem;padding:0 1rem;min-height:24rem;border:1px solid #4b4f53;border-radius:3px;background:#181a1b;color:#f2f2f3;font-size:1rem;font-family:"Nunito Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}.CodeMirror-lines{padding:.75rem 0}.CodeMirror-lines pre{padding:0 !important}.editor-toolbar+.editor-textarea,.editor-textarea+.CodeMirror{border-top-width:0;border-top-left-radius:0;border-top-right-radius:0}.CodeMirror-cursor{border-left-color:#f2f2f3}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler{background-color:inherit}.CodeMirror-selected{background:transparent}.CodeMirror-focused .CodeMirror-selected{background:rgba(30,136,229,.25)}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:rgba(30,136,229,.25)}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:rgba(30,136,229,.25)}.cm-formatting-code-block,.cm-formatting-list{display:inline !important}.cm-formatting,.cm-image-alt-text,.cm-url{display:none}.CodeMirror-activeline .cm-formatting,.CodeMirror-activeline .cm-image-alt-text,.CodeMirror-activeline .cm-url{display:inline}.cm-s-formwork .cm-formatting{color:#979ca1}.cm-s-formwork .cm-header-1{font-size:1.75rem}.cm-s-formwork .cm-header-2{font-size:1.5rem}.cm-s-formwork .cm-header-3{font-size:1.25rem}.cm-s-formwork .cm-comment{font-size:.875rem;font-family:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace}.cm-s-formwork .cm-comment.cm-header-1{font-size:1.53125rem}.cm-s-formwork .cm-comment.cm-header-2{font-size:1.3125rem}.cm-s-formwork .cm-comment.cm-header-3{font-size:1.09375rem}.cm-s-formwork .cm-quote{color:#979ca1}.cm-s-formwork .cm-formatting-quote+.cm-quote::before{margin-right:.25rem;color:#979ca1;content:" ";font-family:Icons,sans-serif}.cm-s-formwork .CodeMirror-activeline .cm-formatting-quote+.cm-quote::before{display:none}.cm-s-formwork .cm-link{color:#1e88e5;text-decoration:underline}.cm-s-formwork .cm-url.cm-formatting,.cm-s-formwork .cm-image-alt-text.cm-formatting,.cm-s-formwork .cm-image-marker{color:#1e88e5}.cm-s-formwork .cm-url,.cm-s-formwork .cm-image-alt-text{color:#979ca1;text-decoration:none}.cm-s-formwork .cm-image~.cm-url:not(.cm-formatting){display:inline;padding:0 .25rem;border-radius:3px;background-color:#292b2e;color:#f2f2f3}.cm-s-formwork .cm-image~.cm-url:not(.cm-formatting)::before{margin-right:.25rem;color:#979ca1;content:" ";font-family:Icons,sans-serif}.cm-s-formwork .CodeMirror-activeline .cm-image~.cm-url:not(.cm-formatting){padding:0;background-color:transparent;color:#979ca1}.cm-s-formwork .CodeMirror-activeline .cm-image~.cm-url:not(.cm-formatting)::before{display:none}.cm-s-formwork .cm-hr{color:#979ca1}.cm-s-formwork .cm-tag{color:#25a35a}.cm-s-formwork .cm-bracket{color:#f2f2f3}.cm-s-formwork .cm-attribute{color:#8c68cd}.cm-s-formwork .cm-bracket,.cm-s-formwork .cm-m-xml{font-size:.875rem;font-family:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace}.date-input{position:relative;cursor:default}.calendar{position:absolute;top:100%;z-index:8;display:none;margin:3px 1rem 1rem;padding:.5rem;width:18rem;border:1px solid #4b4f53;border-radius:3px;background-color:#181a1b;box-shadow:1px 1px .75rem 0 rgba(0,0,0,.25);color:#f2f2f3}.calendar-header{margin-bottom:.5rem}.calendar-buttons{margin:0 -0.5rem;font-size:0}.calendar-buttons button{margin:0;padding:0 .5rem;width:33.3%;outline:none;border:0;background-color:transparent;color:#f2f2f3;font-size:.875rem;cursor:pointer}.calendar-buttons button:hover{color:#1e88e5}.calendar-buttons button:focus{box-shadow:none}.calendar-buttons .currentMonth{font-weight:600}.calendar-table{width:100%}.calendar-table td{width:14%;text-align:center;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.calendar-header-day{font-size:.875rem}.calendar-day{border-radius:3px;transition:background-color 150ms,color 150ms}.calendar-day:hover{background-color:#186db7;color:#fff}.calendar-day.selected{background-color:#1e88e5;color:#fff}.calendar-prev-month-day,.calendar-next-month-day{color:#4b4f53}.calendar-separator{margin:.5rem -0.5rem;height:0;border-top:1px solid #4b4f53}.image-picker-thumbnails{overflow:auto;margin-bottom:1rem;padding:.5rem;height:15rem}.image-picker-thumbnail{position:relative;display:inline-block;box-sizing:border-box;margin:.25rem;padding:.5rem;width:8rem;height:8rem;border:1px solid #4b4f53;background-position:center;background-origin:content-box;background-size:contain;background-repeat:no-repeat}.image-picker-thumbnail::after{position:absolute;right:.75rem;bottom:.5rem;left:.75rem;display:block;padding:0 .375rem;border-radius:3px;background-color:rgba(51,54,56,.9);content:attr(data-filename);text-align:center;font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-picker-thumbnail.selected{border-color:#1e88e5;box-shadow:0 0 0 2px rgba(4,138,255,.25)}.image-picker-empty-state{margin:3rem auto 4rem;text-align:center}.image-picker-empty-state-icon{color:#4b4f53;font-size:2rem}.files-list{margin:0;margin-bottom:1rem;padding:0;list-style-type:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.files-item{display:flex;align-items:center}.files-item-cell{overflow:hidden;padding:.25rem;white-space:nowrap;font-size:.875rem}.file-name{flex:0 0 80%;max-width:80%;font-size:.9375rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-name::before{margin-right:.5rem;color:#f2f2f3;font-size:1rem;font-family:Icons,sans-serif}.file-name.file-type-image::before{font-family:Icons,sans-serif}.file-name.file-type-document::before{font-family:Icons,sans-serif}.file-name.file-type-audio::before{font-family:Icons,sans-serif}.file-name.file-type-video::before{font-family:Icons,sans-serif}.file-name.file-type-archive::before{font-family:Icons,sans-serif}.file-size{color:#979ca1}.file-actions{flex:0 0 20%;max-width:20%;text-align:right;font-size:1rem}.tabs{overflow-x:auto;margin-bottom:1rem;padding:2px 2px 0;border-bottom:1px solid #333638;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tabs-tab{display:inline-block;padding:.5rem 1.25rem;color:#f2f2f3;cursor:pointer}.tabs-tab:hover{color:#f2f2f3}.tabs-tab.active{border-bottom:3px solid #1e88e5;font-weight:600}.caption+.tabs{margin-top:-0.5rem}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:16;background-color:rgba(0,0,0,.75)}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:flex;display:none;align-items:center;outline:0}.modal.show{display:block;display:flex}.modal-content{margin:3rem .5rem;padding:2rem;max-width:26rem;border-radius:3px;background-color:#181a1b}@media(min-width: 26rem){.modal-content{margin:3rem auto}}.modal-size-large{max-width:40rem;width:40rem}@media(max-width: 40rem){.modal-size-large{margin:3rem .5rem}}.modal-error{margin:-2rem -2rem 1rem -2rem;padding:1rem;background-color:#e74c3b;color:#181a1b}.modal-text{margin-bottom:2.5rem}.notification-container{position:fixed;top:20px;right:20px;z-index:12}.notification{position:relative;overflow:hidden;margin-bottom:.5rem;padding:1.5rem 2.5rem;width:350px;border-radius:3px;background-color:#292b2e;box-shadow:1px 1px .75rem 0 rgba(0,0,0,.25);text-overflow:ellipsis;cursor:default;transition:top 300ms ease-in,opacity 150ms;animation:fadeInRight 300ms cubic-bezier(0.4, 0, 0.2, 1)}.notification:hover{opacity:.95}.notification.fadeout{opacity:0;animation:fadeOutRight 300ms cubic-bezier(0.4, 0, 0.2, 1)}.notification::before{position:absolute;top:50%;left:1rem;display:block;font-size:1.25rem;transform:translate(0, -50%)}.notification-info,.notification-success,.notification-warning,.notification-error{padding-left:3.25rem}.notification-info{background-color:#1e88e5;color:#fff}.notification-success{background-color:#25a259;color:#fff}.notification-warning{background-color:#c77e0a;color:#fff}.notification-error{background-color:#d52d1a;color:#fff}.notification-info::before{font-family:Icons,sans-serif}.notification-success::before{font-family:Icons,sans-serif}.notification-warning::before{font-family:Icons,sans-serif}.notification-error::before{font-family:Icons,sans-serif}.tooltip{position:absolute;z-index:20;display:none;padding:.25rem;min-width:2rem;border-radius:3px;background-color:rgba(242,242,243,.8);color:#181a1b;text-align:center;font-size:.75rem;pointer-events:none}.spinner{display:inline-block;margin-right:.5rem}.spinner::before{display:inline-block;width:.8rem;height:.8rem;border-width:.2rem;border-style:solid;border-color:#1e88e5;border-bottom-color:transparent;border-left-color:transparent;border-radius:50%;color:transparent;content:" ";vertical-align:text-top;text-align:center;font-size:.625rem;line-height:1.3;transition:border 500ms;transition-timing-function:ease-out;animation:750ms spin infinite linear}.spinner-info::before{border-color:#1e88e5;color:#1e88e5;animation:none;font-family:Icons,sans-serif}.spinner-success::before{border-color:#2ecc70;color:#2ecc70;animation:none;font-family:Icons,sans-serif}.spinner-error::before{border-color:#e74c3b;color:#e74c3b;animation:none;font-family:Icons,sans-serif}.ct-label{fill:rgba(0, 0, 0, 0.4);color:rgba(0, 0, 0, 0.4);font-size:.75rem;line-height:1}.ct-chart-line .ct-label,.ct-chart-bar .ct-label{display:block;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex}.ct-chart-pie .ct-label,.ct-chart-donut .ct-label{dominant-baseline:central}.ct-label.ct-horizontal.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-label.ct-horizontal.ct-end{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-label.ct-vertical.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-end;-webkit-justify-content:flex-end;-ms-flex-pack:flex-end;justify-content:flex-end;text-align:right;text-anchor:end}.ct-label.ct-vertical.ct-end{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar .ct-label.ct-horizontal.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;text-anchor:start}.ct-chart-bar .ct-label.ct-horizontal.ct-end{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:flex-end;-webkit-justify-content:flex-end;-ms-flex-pack:flex-end;justify-content:flex-end;text-align:right;text-anchor:end}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:end}.ct-grid{stroke:rgba(0, 0, 0, 0.2);stroke-width:1px;stroke-dasharray:2px}.ct-grid-background{fill:none}.ct-point{stroke-width:10px;stroke-linecap:round}.ct-line{fill:none;stroke-width:4px}.ct-area{stroke:none;fill-opacity:.1}.ct-bar{fill:none;stroke-width:10px}.ct-slice-donut{fill:none;stroke-width:60px}.ct-series-a .ct-point,.ct-series-a .ct-line,.ct-series-a .ct-bar,.ct-series-a .ct-slice-donut{stroke:#d70206}.ct-series-a .ct-slice-pie,.ct-series-a .ct-slice-donut-solid,.ct-series-a .ct-area{fill:#d70206}.ct-series-b .ct-point,.ct-series-b .ct-line,.ct-series-b .ct-bar,.ct-series-b .ct-slice-donut{stroke:#f05b4f}.ct-series-b .ct-slice-pie,.ct-series-b .ct-slice-donut-solid,.ct-series-b .ct-area{fill:#f05b4f}.ct-series-c .ct-point,.ct-series-c .ct-line,.ct-series-c .ct-bar,.ct-series-c .ct-slice-donut{stroke:#f4c63d}.ct-series-c .ct-slice-pie,.ct-series-c .ct-slice-donut-solid,.ct-series-c .ct-area{fill:#f4c63d}.ct-series-d .ct-point,.ct-series-d .ct-line,.ct-series-d .ct-bar,.ct-series-d .ct-slice-donut{stroke:#d17905}.ct-series-d .ct-slice-pie,.ct-series-d .ct-slice-donut-solid,.ct-series-d .ct-area{fill:#d17905}.ct-series-e .ct-point,.ct-series-e .ct-line,.ct-series-e .ct-bar,.ct-series-e .ct-slice-donut{stroke:#453d3f}.ct-series-e .ct-slice-pie,.ct-series-e .ct-slice-donut-solid,.ct-series-e .ct-area{fill:#453d3f}.ct-series-f .ct-point,.ct-series-f .ct-line,.ct-series-f .ct-bar,.ct-series-f .ct-slice-donut{stroke:#59922b}.ct-series-f .ct-slice-pie,.ct-series-f .ct-slice-donut-solid,.ct-series-f .ct-area{fill:#59922b}.ct-series-g .ct-point,.ct-series-g .ct-line,.ct-series-g .ct-bar,.ct-series-g .ct-slice-donut{stroke:#0544d3}.ct-series-g .ct-slice-pie,.ct-series-g .ct-slice-donut-solid,.ct-series-g .ct-area{fill:#0544d3}.ct-series-h .ct-point,.ct-series-h .ct-line,.ct-series-h .ct-bar,.ct-series-h .ct-slice-donut{stroke:#6b0392}.ct-series-h .ct-slice-pie,.ct-series-h .ct-slice-donut-solid,.ct-series-h .ct-area{fill:#6b0392}.ct-series-i .ct-point,.ct-series-i .ct-line,.ct-series-i .ct-bar,.ct-series-i .ct-slice-donut{stroke:#f05b4f}.ct-series-i .ct-slice-pie,.ct-series-i .ct-slice-donut-solid,.ct-series-i .ct-area{fill:#f05b4f}.ct-series-j .ct-point,.ct-series-j .ct-line,.ct-series-j .ct-bar,.ct-series-j .ct-slice-donut{stroke:#dda458}.ct-series-j .ct-slice-pie,.ct-series-j .ct-slice-donut-solid,.ct-series-j .ct-area{fill:#dda458}.ct-series-k .ct-point,.ct-series-k .ct-line,.ct-series-k .ct-bar,.ct-series-k .ct-slice-donut{stroke:#eacf7d}.ct-series-k .ct-slice-pie,.ct-series-k .ct-slice-donut-solid,.ct-series-k .ct-area{fill:#eacf7d}.ct-series-l .ct-point,.ct-series-l .ct-line,.ct-series-l .ct-bar,.ct-series-l .ct-slice-donut{stroke:#86797d}.ct-series-l .ct-slice-pie,.ct-series-l .ct-slice-donut-solid,.ct-series-l .ct-area{fill:#86797d}.ct-series-m .ct-point,.ct-series-m .ct-line,.ct-series-m .ct-bar,.ct-series-m .ct-slice-donut{stroke:#b2c326}.ct-series-m .ct-slice-pie,.ct-series-m .ct-slice-donut-solid,.ct-series-m .ct-area{fill:#b2c326}.ct-series-n .ct-point,.ct-series-n .ct-line,.ct-series-n .ct-bar,.ct-series-n .ct-slice-donut{stroke:#6188e2}.ct-series-n .ct-slice-pie,.ct-series-n .ct-slice-donut-solid,.ct-series-n .ct-area{fill:#6188e2}.ct-series-o .ct-point,.ct-series-o .ct-line,.ct-series-o .ct-bar,.ct-series-o .ct-slice-donut{stroke:#a748ca}.ct-series-o .ct-slice-pie,.ct-series-o .ct-slice-donut-solid,.ct-series-o .ct-area{fill:#a748ca}.ct-square{display:block;position:relative;width:100%}.ct-square:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:100%}.ct-square:after{content:"";display:table;clear:both}.ct-square>svg{display:block;position:absolute;top:0;left:0}.ct-minor-second{display:block;position:relative;width:100%}.ct-minor-second:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:93.75%}.ct-minor-second:after{content:"";display:table;clear:both}.ct-minor-second>svg{display:block;position:absolute;top:0;left:0}.ct-major-second{display:block;position:relative;width:100%}.ct-major-second:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:88.8888888889%}.ct-major-second:after{content:"";display:table;clear:both}.ct-major-second>svg{display:block;position:absolute;top:0;left:0}.ct-minor-third{display:block;position:relative;width:100%}.ct-minor-third:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:83.3333333333%}.ct-minor-third:after{content:"";display:table;clear:both}.ct-minor-third>svg{display:block;position:absolute;top:0;left:0}.ct-major-third{display:block;position:relative;width:100%}.ct-major-third:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:80%}.ct-major-third:after{content:"";display:table;clear:both}.ct-major-third>svg{display:block;position:absolute;top:0;left:0}.ct-perfect-fourth{display:block;position:relative;width:100%}.ct-perfect-fourth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:75%}.ct-perfect-fourth:after{content:"";display:table;clear:both}.ct-perfect-fourth>svg{display:block;position:absolute;top:0;left:0}.ct-perfect-fifth{display:block;position:relative;width:100%}.ct-perfect-fifth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:66.6666666667%}.ct-perfect-fifth:after{content:"";display:table;clear:both}.ct-perfect-fifth>svg{display:block;position:absolute;top:0;left:0}.ct-minor-sixth{display:block;position:relative;width:100%}.ct-minor-sixth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:62.5%}.ct-minor-sixth:after{content:"";display:table;clear:both}.ct-minor-sixth>svg{display:block;position:absolute;top:0;left:0}.ct-golden-section{display:block;position:relative;width:100%}.ct-golden-section:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:61.804697157%}.ct-golden-section:after{content:"";display:table;clear:both}.ct-golden-section>svg{display:block;position:absolute;top:0;left:0}.ct-major-sixth{display:block;position:relative;width:100%}.ct-major-sixth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:60%}.ct-major-sixth:after{content:"";display:table;clear:both}.ct-major-sixth>svg{display:block;position:absolute;top:0;left:0}.ct-minor-seventh{display:block;position:relative;width:100%}.ct-minor-seventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:56.25%}.ct-minor-seventh:after{content:"";display:table;clear:both}.ct-minor-seventh>svg{display:block;position:absolute;top:0;left:0}.ct-major-seventh{display:block;position:relative;width:100%}.ct-major-seventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:53.3333333333%}.ct-major-seventh:after{content:"";display:table;clear:both}.ct-major-seventh>svg{display:block;position:absolute;top:0;left:0}.ct-octave{display:block;position:relative;width:100%}.ct-octave:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:50%}.ct-octave:after{content:"";display:table;clear:both}.ct-octave>svg{display:block;position:absolute;top:0;left:0}.ct-major-tenth{display:block;position:relative;width:100%}.ct-major-tenth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:40%}.ct-major-tenth:after{content:"";display:table;clear:both}.ct-major-tenth>svg{display:block;position:absolute;top:0;left:0}.ct-major-eleventh{display:block;position:relative;width:100%}.ct-major-eleventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:37.5%}.ct-major-eleventh:after{content:"";display:table;clear:both}.ct-major-eleventh>svg{display:block;position:absolute;top:0;left:0}.ct-major-twelfth,.ct-chart{display:block;position:relative;width:100%}.ct-major-twelfth:before,.ct-chart:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:33.3333333333%}.ct-major-twelfth:after,.ct-chart:after{content:"";display:table;clear:both}.ct-major-twelfth>svg,.ct-chart>svg{display:block;position:absolute;top:0;left:0}.ct-double-octave{display:block;position:relative;width:100%}.ct-double-octave:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:25%}.ct-double-octave:after{content:"";display:table;clear:both}.ct-double-octave>svg{display:block;position:absolute;top:0;left:0}.ct-chart{position:relative;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ct-label{color:rgba(242,242,243,.4);fill:rgba(242,242,243,.4)}.ct-grid{stroke:rgba(242,242,243,.2)}.ct-series-a .ct-line,.ct-series-a .ct-point{stroke:#1e88e5}.ct-series-a .ct-area{fill:#1e88e5}.ct-series-b .ct-line,.ct-series-b .ct-point{stroke:#f39c11}.ct-series-b .ct-area{fill:#f39c11}.ct-label.ct-horizontal,.ct-label.ct-horizontal.ct-end{display:inline-block;min-width:3rem;width:auto !important;color:#f2f2f3;text-align:center;transform:translateX(-50%)}.ct-legend{font-size:.875rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ct-legend-right{text-align:right}.ct-legend-label{white-space:nowrap}.ct-legend-label::before{display:inline-block;margin:0 .375rem;font-size:.75rem;font-family:Icons,sans-serif}.ct-legend-label.ct-series-a::before{color:#1e88e5}.ct-legend-label.ct-series-b::before{color:#f39c11}@keyframes fadeInRight{from{opacity:0;transform:translate3d(150%, 0, 0)}to{opacity:1;transform:none}}@keyframes fadeOutRight{from{opacity:1;transform:none}to{opacity:0;transform:translate3d(150%, 0, 0)}}@keyframes shake{from,to{transform:translate3d(0, 0, 0)}10%,50%,70%,90%{transform:translate3d(-10px, 0, 0)}30%,70%{transform:translate3d(10px, 0, 0)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.login-modal-container{margin:3rem .5rem;padding:2rem;max-width:24rem;border-radius:3px;background-color:#181a1b}@media(min-width: 24rem){.login-modal-container{margin:3rem auto}}.login-modal-info,.login-modal-success,.login-modal-warning,.login-modal-error{position:relative;margin:-2rem -2rem 1rem -2rem;padding:1rem 2rem 1rem 3.5rem;border-top-left-radius:3px;border-top-right-radius:3px}.login-modal-info a,.login-modal-success a,.login-modal-warning a,.login-modal-error a{display:block;color:#fff;text-decoration:underline;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.login-modal-info::before,.login-modal-success::before,.login-modal-warning::before,.login-modal-error::before{position:absolute;top:50%;left:1rem;display:block;font-size:1.25rem;font-family:Icons,sans-serif;transform:translate(0, -50%)}.login-modal-info{background-color:#1e88e5;color:#fff}.login-modal-info::before{font-family:Icons,sans-serif}.login-modal-success{background-color:#25a35a;color:#fff}.login-modal-success::before{font-family:Icons,sans-serif}.login-modal-warning{background-color:#f39c11;color:#fff}.login-modal-warning::before{font-family:Icons,sans-serif}.login-modal-error{background-color:#e74c3b;color:#fff}.login-modal-error::before{font-family:Icons,sans-serif}.title-bar{position:fixed;top:0;right:0;left:0;z-index:8;padding:1rem;padding-left:4rem;background-color:#292b2e;box-shadow:0 0 .75rem -0.25rem rgba(0,0,0,.05);color:#f2f2f3;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(min-width: 768px){.title-bar{left:14rem;padding-left:1.5rem}}.panel-title{float:left}.view-site{float:right;color:#f2f2f3}.view-site:hover{color:#1e88e5}.view-site i{margin-left:.5rem}.sidebar{position:fixed;top:0;bottom:0;left:0;z-index:10;padding:1rem 1.5rem;width:14rem;background:linear-gradient(to bottom, #181a1b 0%, #1f2123 100%);background-color:#181a1b;box-shadow:0 0 .75rem -0.25rem rgba(0,0,0,.05);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sidebar.show{display:block}.sidebar-wrapper{overflow-y:auto;height:calc(100% - 9rem)}.toggle-navigation{position:fixed;top:.75rem;left:.75rem;z-index:12;margin:0;border:none;background-color:transparent;font-size:1rem;cursor:pointer}.toggle-navigation:hover{background-color:transparent;box-shadow:none;color:#1e88e5}.toggle-navigation:focus{background-color:transparent;box-shadow:none}.logo{margin-bottom:2rem;color:#f2f2f3;text-align:center;font-weight:600;font-size:1.184rem;line-height:1.5rem}@media(min-width: 768px){.logo{text-align:left}}.logo img{margin-right:.25rem;height:1.5rem;vertical-align:-0.25rem}.logo a{padding-top:2px;color:#f2f2f3}.sidebar-navigation{margin:0;margin-bottom:1rem;padding:0;list-style-type:none}.sidebar-navigation:last-child{margin-bottom:0}.sidebar-navigation>li{position:relative;margin:0;margin-bottom:.5rem;padding:.25rem 0;padding-left:1rem}.sidebar-navigation>li a{color:#f2f2f3}.sidebar-navigation>li.active{font-weight:600}.sidebar-navigation>li.active::before{position:absolute;top:0;bottom:0;left:0;width:3px;background-color:#1e88e5;content:" "}.admin-user-card{display:flex;align-items:center;margin-bottom:2rem;cursor:pointer}.admin-user-card:hover img{box-shadow:0 0 0 .5rem #333638}.admin-user-avatar{width:48px}.admin-user-avatar img{width:48px;border-radius:50%;transition:box-shadow 300ms ease-out}.admin-user-details{padding:0 .75rem}.admin-user-fullname{color:#f2f2f3}.admin-user-username{color:#979ca1;font-size:.875rem}.main{margin-top:4.5rem}@media(min-width: 768px){.main{margin:1.875rem;margin-top:4.5rem;margin-left:15.875rem}}.component{margin-bottom:1rem;padding:1.5rem;border-radius:3px;background-color:#181a1b;box-shadow:0 0 .75rem -0.25rem rgba(0,0,0,.05)}.component::before,.component::after{display:table;content:""}.component::after{clear:both}.caption{margin-bottom:1rem;text-transform:uppercase;letter-spacing:1px;font-weight:600;font-size:.9375rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.separator{height:.5rem}.separator-l{height:1rem}.section-header{margin-bottom:.5rem;padding:.25rem .5rem;border-bottom:1px solid #333638;font-weight:600;font-size:1rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sort-handle{margin-right:.25rem;margin-bottom:0;width:.75rem;cursor:grab}.sort-handle::before{color:#7c8288;font-size:.75rem;cursor:inherit;font-family:Icons,sans-serif}.sortable-chosen,.sortable-ghost{background-color:#181a1b;cursor:grabbing}.sortable-chosen *{cursor:grabbing}.sortable-fallback{box-shadow:0 0 .75rem .25rem rgba(0,0,0,.15)}.pages-list{margin:0;padding:0;list-style-type:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pages-list .pages-list{display:none}.pages-list-headers{display:none;padding:.25rem 0;font-weight:600;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.page-children-toggle{display:inline-block;margin:0 .25rem .125rem 0;padding:0;min-width:auto;border-color:transparent;background-color:transparent;color:#f2f2f3;font-weight:400;font-size:.875rem;cursor:pointer}.page-children-toggle:hover,.page-children-toggle:focus{border-color:transparent;background-color:transparent}.page-children-toggle:focus{box-shadow:0 0 0 2px rgba(4,138,255,.25)}.toggle-collapsed::before{font-family:Icons,sans-serif}.toggle-expanded::before{font-family:Icons,sans-serif}.pages-item{padding:.5rem 0;border-bottom:1px solid #333638}.pages-item:hover{background-color:#1f2123}.pages-item .sort-handle{display:none}.pages-list-top{border-top:1px solid #333638}.pages-item-cell,.pages-headers-cell{padding:.25rem .5rem;font-size:.875rem}.pages-item-cell div,.pages-headers-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-title{margin:-2px;padding:2px;font-size:1rem}.page-language{display:inline-block;padding:.125rem .25rem;min-width:1.125rem;border-radius:3px;background-color:#d2e7fa;color:#1e88e5;text-align:center;font-weight:600;font-size:.875rem;line-height:1}button .page-language,.button .page-language{font-size:.75rem}.page-route{color:#979ca1;font-size:.875rem}.page-route-changeable{margin:-2px;padding:2px}.page-status-label::before{display:inline-block;margin-right:.375rem;font-size:.75rem;font-family:Icons,sans-serif}.page-status-published .page-status-label::before{color:#2ecc70}.page-status-not-published .page-status-label::before{color:#e74c3b}.page-status-not-routable .page-status-label::before{color:#f39c11}.page-date,.page-status,.page-actions{display:none}.page-actions .button-link{font-size:1rem}@media(min-width: 568px){.pages-item,.pages-list-headers{display:flex;align-items:center}.pages-item-cell,.pages-headers-cell{display:block}.page-details{flex:0 0 55%;max-width:55%}.page-date,.page-status,.page-actions{flex:0 0 15%;max-width:15%;text-align:center}}.pages-level-2 .page-details{padding-left:1.5rem}.pages-level-3 .page-details{padding-left:3rem}.pages-level-4 .page-details{padding-left:4.5rem}.pages-level-5 .page-details{padding-left:6rem}.page-search{padding-right:1.5rem;max-width:28rem;background:#181a1b url("data:image/svg+xml;utf8,") no-repeat right .5rem center;background-size:.875rem .875rem}.page-info{margin-bottom:.75rem;padding:0 .25rem}.page-info>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-slug-change{margin:0;padding:0;border-color:transparent;background-color:transparent;color:#979ca1;cursor:pointer}.page-slug-change:hover,.page-slug-change:focus{border-color:transparent;background-color:transparent;color:#979ca1}.page-slug-change:focus{box-shadow:0 0 0 2px rgba(4,138,255,.25)}.page-slug-change::after{display:inline-block;margin-left:.25rem;color:#f2f2f3;content:"";font-family:Icons,sans-serif;opacity:0;transition:opacity 150ms}.page-slug-change:hover::after,.page-slug-change:focus::after{opacity:1}.dragging [data-sortable=false] .pages-item:hover{background-color:#fce8e5;cursor:no-drop}.options-form .checkbox-label{margin-bottom:.5rem;font-size:1rem}.info-data{margin-bottom:1rem;width:100%;table-layout:fixed}.info-data td{overflow:hidden;padding:.5rem;vertical-align:top}.info-data-key{width:25%}.info-data-value{width:75%;word-break:break-word;font-size:.875rem;font-family:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace}.user-summary{display:flex;align-items:center}.user-summary-avatar{flex:0 0 33.33333%;padding:.75rem;max-width:33.33333%;text-align:center}.user-summary-avatar img{width:180px;border-radius:50%}.user-summary-data{padding:.75rem}.users-list{border-top:1px solid #333638;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.users-list-headers{display:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.users-item{padding:.5rem 0;border-bottom:1px solid #333638}.users-item:hover{background-color:#1f2123}.users-item-cell,.users-headers-cell{padding:.125rem .25rem;vertical-align:middle;font-size:.875rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-username,.user-fullname{display:inline-block}.users-item .user-username{font-size:1rem}.user-last-access,.user-actions{display:none}.user-actions .button-link{font-size:1rem}@media(min-width: 568px){.users-item,.users-list-headers{display:flex;align-items:center}.users-list-headers{padding:.25rem 0;font-weight:600}.users-item-cell,.users-headers-cell{display:block;padding:.25rem .5rem}.user-username,.user-last-access{flex:0 0 20%;max-width:20%}.user-fullname,.user-email{flex:0 0 25%;max-width:25%}.user-last-access,.user-actions{text-align:center}.user-actions{flex:0 0 10%;max-width:10%}}.error-container{margin:4rem auto;padding:1rem;max-width:32rem;text-align:center}.error-container h1{color:#7c8288;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.error-container h2{margin-bottom:1rem;font-size:2rem}.error-code{display:block;font-weight:400;font-size:8rem}.error-status{display:block;font-size:1.75rem}.error-container .action{font-size:1.125rem}.error-container .logo{margin:2rem auto;width:3.5rem;height:3.5rem;background-position:center;background-size:cover;background-repeat:no-repeat}@font-face{font-weight:normal;font-style:normal;font-family:"Icons";src:url("../icons/icons.eot");src:url("../icons/icons.eot#iefix") format("embedded-opentype"),url("../icons/icons.woff2") format("woff2"),url("../icons/icons.woff") format("woff"),url("../icons/icons.ttf") format("truetype"),url("../icons/icons.svg#icons") format("svg")}[class^=i-]::before,[class*=" i-"]::before{display:inline-block;width:1.25em;text-decoration:inherit;text-transform:none;font-weight:normal;font-style:normal;font-variant:normal;font-family:Icons,sans-serif;line-height:1em}.i-align-center::before{content:""}.i-align-left::before{content:""}.i-align-justify::before{content:""}.i-align-right::before{content:""}.i-archive::before{content:""}.i-arrow-down::before{content:""}.i-arrow-left::before{content:""}.i-arrow-right::before{content:""}.i-arrow-up::before{content:""}.i-at::before{content:""}.i-bars::before,.sort-handle::before{content:""}.i-bell::before{content:""}.i-bold::before{content:""}.i-bolt::before{content:""}.i-book::before{content:""}.i-box-open::before{content:""}.i-box::before{content:""}.i-boxes::before{content:""}.i-briefcase::before{content:""}.i-calendar::before{content:""}.i-chart-area::before{content:""}.i-chart-bar::before{content:""}.i-check-circle::before,.notification-success::before,.login-modal-success::before{content:""}.i-check-double::before{content:""}.i-check::before,.spinner-success::before{content:""}.i-chevron-down::before,.toggle-collapsed::before{content:""}.i-chevron-right::before{content:""}.i-chevron-left::before{content:""}.i-chevron-up::before,.toggle-expanded::before{content:""}.i-circle-open::before{content:""}.i-circle::before,.ct-legend-label::before,.page-status-label::before{content:""}.i-clipboard::before{content:""}.i-cloud-download::before{content:""}.i-cloud-upload::before{content:""}.i-code::before{content:""}.i-cog::before{content:""}.i-comment::before{content:""}.i-cookie-bite::before{content:""}.i-cookie::before{content:""}.i-copy::before{content:""}.i-crop::before{content:""}.i-cut::before{content:""}.i-database::before{content:""}.i-download::before{content:""}.i-edit::before{content:""}.i-ellipsis-v::before{content:""}.i-ellipsis::before{content:""}.i-envelope::before{content:""}.i-error-circle::before,.notification-error::before,.login-modal-error::before{content:""}.i-exclamation-triangle::before,.notification-warning::before,.login-modal-warning::before{content:""}.i-exclamation::before,.spinner-error::before{content:""}.i-external-link-square::before{content:""}.i-external-link::before{content:""}.i-eye-slash::before{content:""}.i-eye::before{content:""}.i-file-archive::before,.file-name.file-type-archive::before{content:""}.i-file-audio::before,.file-name.file-type-audio::before{content:""}.i-file-code::before{content:""}.i-file-image::before,.file-name.file-type-image::before{content:""}.i-file-pdf::before{content:""}.i-file-text::before,.file-name.file-type-document::before{content:""}.i-file-video::before,.file-name.file-type-video::before{content:""}.i-file::before,.file-name::before{content:""}.i-folder-open::before{content:""}.i-folder::before{content:""}.i-font::before{content:""}.i-hashtag::before{content:""}.i-heading::before{content:""}.i-history::before{content:""}.i-home::before{content:""}.i-image::before,.cm-s-formwork .cm-image~.cm-url:not(.cm-formatting)::before{content:""}.i-images::before{content:""}.i-info-circle::before,.notification-info::before,.login-modal-info::before{content:""}.i-info::before,.spinner-info::before{content:""}.i-italic::before{content:""}.i-language::before{content:""}.i-link::before{content:""}.i-list-ol::before{content:""}.i-list-ul::before{content:""}.i-list::before{content:""}.i-location-arrow::before{content:""}.i-lock::before{content:""}.i-markdown::before{content:""}.i-microchip::before{content:""}.i-minus-circle::before{content:""}.i-mobile::before{content:""}.i-paste::before{content:""}.i-pencil::before{content:""}.i-plus-circle::before,.array-input-add::before{content:""}.i-question-circle::before{content:""}.i-quote::before,.cm-s-formwork .cm-formatting-quote+.cm-quote::before{content:""}.i-read-more::before{content:""}.i-redo::before{content:""}.i-rss::before{content:""}.i-search-plus::before{content:""}.i-search::before{content:""}.i-search-minus::before{content:""}.i-stopwatch::before{content:""}.i-sync::before{content:""}.i-table::before{content:""}.i-tablet::before{content:""}.i-tag::before{content:""}.i-tags::before{content:""}.i-tasks::before{content:""}.i-times-circle::before,.array-input-remove::before{content:""}.i-times::before{content:""}.i-trash::before{content:""}.i-underline::before{content:""}.i-undo::before{content:""}.i-user-circle::before{content:""}.i-user::before{content:""}.i-users::before{content:""}.i-move::before{content:""} +@import"https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,400;0,600;1,400;1,600&display=swap";html{font-size:100%;-webkit-text-size-adjust:100%}body{box-sizing:border-box;margin:0;background-color:#1f2123;color:#f2f2f3;font-family:"Nunito Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.5}*{box-sizing:inherit;line-height:inherit;-webkit-tap-highlight-color:rgba(242,242,243,0)}main{display:block}a{outline-color:rgba(4,138,255,.25);background-color:transparent;color:#1e88e5;text-decoration:none;transition:color 150ms}a:hover{color:#186db7}a:not([href]){cursor:default}img{max-width:100%;border-style:none}button{-webkit-appearance:button}button::-moz-focus-inner{padding:0;border:none}mark{background-color:gold}[hidden]{display:none}.focused{box-shadow:0 0 0 2px rgba(4,138,255,.25)}::selection{background-color:rgba(30,136,229,.25)}::placeholder{color:#979ca1}@media(min-width: 568px){.hide-from-xs{display:none}}@media(max-width: 568px){.show-from-xs{display:none}}@media(min-width: 768px){.hide-from-s{display:none}}@media(max-width: 768px){.show-from-s{display:none}}@media(min-width: 992px){.hide-from-m{display:none}}@media(max-width: 992px){.show-from-m{display:none}}@media(min-width: 1200px){.hide-from-l{display:none}}@media(max-width: 1200px){.show-from-l{display:none}}h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6{margin-top:0;margin-bottom:.5rem;font-weight:600;line-height:1.2}h1,.h1,h2,.h2,h3,.h3{letter-spacing:-0.027rem}h1,.h1{font-size:2.369rem}h2,.h2{font-size:2.104rem}h3,.h3{font-size:1.777rem}h4,.h4{font-size:1.579rem}h5,.h5{font-size:1.184rem}h6,.h6{font-size:1rem}strong{font-weight:600}p{margin-top:0;margin-bottom:.5rem;line-height:1.5}ul{margin-top:0;margin-bottom:.5rem;margin-left:1.25rem;padding:0;list-style-position:outside}.container,.container-full,.container-no-margin{margin:0 auto;padding:0 15px}.container{max-width:1200px}.container-no-margin{padding-right:0;padding-left:0}.row{display:flex;flex-wrap:wrap;margin:0 -15px}@media(max-width: 768px){.container-no-margin .row{margin:0}.container-no-margin div[class^=col-]{padding:0}}.col-xs,.col-xs-1-12,.col-xs-2-12,.col-xs-1-6,.col-xs-3-12,.col-xs-1-4,.col-xs-4-12,.col-xs-1-3,.col-xs-5-12,.col-xs-6-12,.col-xs-1-2,.col-xs-7-12,.col-xs-8-12,.col-xs-2-3,.col-xs-9-12,.col-xs-3-4,.col-xs-10-12,.col-xs-5-6,.col-xs-11-12,.col-xs-12-12,.col-xs-1-1,.col-s,.col-s-1-12,.col-s-2-12,.col-s-1-6,.col-s-3-12,.col-s-1-4,.col-s-4-12,.col-s-1-3,.col-s-5-12,.col-s-6-12,.col-s-1-2,.col-s-7-12,.col-s-8-12,.col-s-2-3,.col-s-9-12,.col-s-3-4,.col-s-10-12,.col-s-5-6,.col-s-11-12,.col-s-12-12,.col-s-1-1,.col-m,.col-m-1-12,.col-m-2-12,.col-m-1-6,.col-m-3-12,.col-m-1-4,.col-m-4-12,.col-m-1-3,.col-m-5-12,.col-m-6-12,.col-m-1-2,.col-m-7-12,.col-m-8-12,.col-m-2-3,.col-m-9-12,.col-m-3-4,.col-m-10-12,.col-m-5-6,.col-m-11-12,.col-m-12-12,.col-m-1-1,.col-l,.col-l-1-12,.col-l-2-12,.col-l-1-6,.col-l-3-12,.col-l-1-4,.col-l-4-12,.col-l-1-3,.col-l-5-12,.col-l-6-12,.col-l-1-2,.col-l-7-12,.col-l-8-12,.col-l-2-3,.col-l-9-12,.col-l-3-4,.col-l-10-12,.col-l-5-6,.col-l-11-12,.col-l-12-12,.col-l-1-1{padding:0 15px;width:100%}.col-xs{flex:1 0 auto;max-width:100%;width:auto}.col-xs-1-12{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-xs-2-12,.col-xs-1-6{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-xs-3-12,.col-xs-1-4{flex:0 0 25%;max-width:25%}.col-xs-4-12,.col-xs-1-3{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-xs-5-12{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-xs-6-12,.col-xs-1-2{flex:0 0 50%;max-width:50%}.col-xs-7-12{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-xs-8-12,.col-xs-2-3{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-xs-9-12,.col-xs-3-4{flex:0 0 75%;max-width:75%}.col-xs-10-12,.col-xs-5-6{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-xs-11-12{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-xs-12-12,.col-xs-1-1{flex:0 0 100%;max-width:100%}@media(min-width: 768px){.col-s{flex:1 0 auto;max-width:100%;width:auto}.col-s-1-12{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-s-2-12,.col-s-1-6{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-s-3-12,.col-s-1-4{flex:0 0 25%;max-width:25%}.col-s-4-12,.col-s-1-3{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-s-5-12{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-s-6-12,.col-s-1-2{flex:0 0 50%;max-width:50%}.col-s-7-12{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-s-8-12,.col-s-2-3{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-s-9-12,.col-s-3-4{flex:0 0 75%;max-width:75%}.col-s-10-12,.col-s-5-6{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-s-11-12{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-s-12-12,.col-s-1-1{flex:0 0 100%;max-width:100%}}@media(min-width: 992px){.col-m{flex:1 0 auto;max-width:100%;width:auto}.col-m-1-12{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-m-2-12,.col-m-1-6{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-m-3-12,.col-m-1-4{flex:0 0 25%;max-width:25%}.col-m-4-12,.col-m-1-3{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-m-5-12{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-m-6-12,.col-m-1-2{flex:0 0 50%;max-width:50%}.col-m-7-12{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-m-8-12,.col-m-2-3{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-m-9-12,.col-m-3-4{flex:0 0 75%;max-width:75%}.col-m-10-12,.col-m-5-6{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-m-11-12{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-m-12-12,.col-m-1-1{flex:0 0 100%;max-width:100%}}@media(min-width: 1200px){.col-l{flex:1 0 auto;max-width:100%;width:auto}.col-l-1-12{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-l-2-12,.col-l-1-6{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-l-3-12,.col-l-1-4{flex:0 0 25%;max-width:25%}.col-l-4-12,.col-l-1-3{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-l-5-12{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-l-6-12,.col-l-1-2{flex:0 0 50%;max-width:50%}.col-l-7-12{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-l-8-12,.col-l-2-3{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-l-9-12,.col-l-3-4{flex:0 0 75%;max-width:75%}.col-l-10-12,.col-l-5-6{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-l-11-12{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-l-12-12,.col-l-1-1{flex:0 0 100%;max-width:100%}}button,.button{display:inline-block;overflow:visible;margin:0;margin-right:.25rem;margin-bottom:.5rem;padding:.375rem .5rem;min-width:2rem;outline:none;border:1px solid #292b2e;border-radius:3px;background-color:#292b2e;color:#f2f2f3;vertical-align:middle;white-space:nowrap;font-size:.875rem;font-family:"Nunito Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.15;cursor:default;transition:border-color 150ms,background-color 150ms,color 150ms;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}button:hover,button:focus,.button:hover,.button:focus{border-color:#333638;background-color:#333638;color:#f2f2f3}button:focus,.button:focus{box-shadow:0 0 0 2px rgba(242,242,243,.25)}button[disabled],button[disabled]:hover,button.disabled,button.disabled:hover,.button[disabled],.button[disabled]:hover,.button.disabled,.button.disabled:hover{border-color:#1f2123;background-color:#1f2123;color:#4b4f53;pointer-events:none}button.active,.button.active{border-color:#4b4f53;background-color:#4b4f53}a.button{text-align:center}.button-right{float:right;margin-right:0;margin-left:.25rem}.button-accent{border:1px solid #1e88e5;background-color:#1e88e5;color:#fff}.button-accent:hover,.button-accent:focus{border-color:#186db7;background-color:#186db7;color:#fff}.button-accent:focus{box-shadow:0 0 0 2px rgba(4,138,255,.25)}.button-success{border:1px solid #2ecc70;background-color:#2ecc70;color:#fff}.button-success:hover,.button-success:focus{border-color:#25a35a;background-color:#25a35a;color:#fff}.button-success:focus{box-shadow:0 0 0 2px rgba(37,163,90,.25)}.button-warning{border:1px solid #f39c11;background-color:#f39c11;color:#fff}.button-warning:hover,.button-warning:focus{border-color:#c27d0e;background-color:#c27d0e;color:#fff}.button-warning:focus{box-shadow:0 0 0 2px rgba(194,125,14,.25)}.button-error{border:1px solid #e74c3b;background-color:#e74c3b;color:#fff}.button-error:hover,.button-error:focus{border-color:#b93d2f;background-color:#b93d2f;color:#fff}.button-error:focus{box-shadow:0 0 0 2px rgba(185,61,47,.25)}.button-link{margin:0;border:0;background-color:transparent;font-size:inherit;cursor:pointer}.button-link:hover,.button-link:focus{background-color:transparent;color:#1e88e5}.button-link:focus{box-shadow:0 0 0 2px rgba(4,138,255,.25)}.button-link[disabled],.button-link[disabled]:hover,.button-link.disabled,.button-link.disabled:hover{background-color:transparent;cursor:default}input,select,textarea{display:inline-block;margin:0;margin-bottom:.5rem;padding:.25rem .5rem;width:100%;border:1px solid #4b4f53;border-radius:3px;background-color:#181a1b;color:#f2f2f3;vertical-align:middle;font-size:.875rem;font-family:"Nunito Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.5;-webkit-appearance:none;-moz-appearance:none}input:focus,select:focus,textarea:focus{outline:none;border-color:#1e88e5;box-shadow:0 0 0 2px rgba(4,138,255,.25)}input[disabled],select[disabled],textarea[disabled]{background-color:#292b2e;color:#979ca1}input[readonly],select[readonly],textarea[readonly]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}input[type=checkbox],input[type=radio]{margin-bottom:0;padding:0;width:auto;height:inherit;vertical-align:text-top}input[type=checkbox]:focus,input[type=radio]:focus{box-shadow:none}input[type=file]{padding:0;border:none;border-radius:0}input[type=file]::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}select{padding:.25rem 1.5rem .25rem .5rem;background:#181a1b url("data:image/svg+xml;utf8,") no-repeat right .75rem center;background-color:#181a1b;background-size:8px 6px}select:-moz-focusring{color:transparent;text-shadow:0 0 0 #f2f2f3}textarea{overflow:auto;min-height:3.125rem;max-height:16.25rem;height:5.75rem;resize:vertical}.input-accent{border-color:#1e88e5}.input-success{border-color:#2ecc70}.input-warning{border-color:#f39c11}.input-error{border-color:#e74c3b}.input-invalid{animation:shake 500ms;animation-fill-mode:both}.input-wrap{position:relative}.input-wrap input{padding-right:1.5rem}.input-reset{position:absolute;top:calc(0.25rem + 1px);right:.25rem;color:#f2f2f3;font-size:.875rem;line-height:1.5;transition:color 150ms}.input-reset:hover{color:#1e88e5}label{display:inline-block;margin-bottom:.25rem;font-size:.875rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none}.label-suggestion{color:#979ca1;font-size:.75rem;line-height:1}.label-required::after{display:inline-block;margin-left:.125rem;color:#e74c3b;content:"*"}.custom-checkbox{position:absolute;opacity:0}.custom-checkbox+.custom-checkbox-text::before{position:relative;top:.125rem;display:inline-block;box-sizing:border-box;margin-right:.5rem;width:1rem;height:1rem;border:1px solid #4b4f53;border-radius:3px;content:" ";transition:border-color 150ms,background-color 150ms}.custom-checkbox+.custom-checkbox-text:hover::before,.custom-checkbox[disabled]+.custom-checkbox-text::before{background-color:#1f2123}.custom-checkbox:checked+.custom-checkbox-text::before{border-color:#1e88e5;background-color:#1e88e5}.custom-checkbox:focus+.custom-checkbox-text::before{border-color:#1e88e5;box-shadow:0 0 0 2px rgba(4,138,255,.25)}.custom-checkbox:checked+.custom-checkbox-text:hover::before{border-color:#186db7;background-color:#186db7}.custom-checkbox:checked+.custom-checkbox-text::after{position:absolute;top:.125rem;left:0;display:block;width:1rem;height:1rem;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11'%3E%3Cpath fill='%23fff' d='M4.727 7.036L8.263 3.5l.707.707L4.727 8.45 2 5.722l.707-.707z'/%3E%3C/svg%3E");content:" "}.custom-checkbox:checked[disabled]+.custom-checkbox-text::before{border-color:#4b4f53;background-color:#4b4f53}.checkbox-label{position:relative;line-height:1.5}.image-input{padding-right:1.875rem;background:#181a1b url("data:image/svg+xml;utf8,") no-repeat right .5rem center;background-size:1rem 1rem;cursor:default}.input-wrap .image-input{padding-right:3.375rem;background-position:right 1.75rem center}.tag-input{position:relative;display:block;box-sizing:border-box;margin-top:0;margin-bottom:.5rem;padding:.25rem .25rem;padding-bottom:0;border:1px solid #4b4f53;border-radius:3px;font-size:.875rem;line-height:1.5;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tag-input.focused{border-color:#1e88e5}.tag-inner-input{display:inline-block;box-sizing:border-box;margin-bottom:.25rem;padding:0 .25rem;max-width:100%;width:auto;outline:none;border:0;border-radius:0;vertical-align:baseline;font-size:.875rem;font-family:inherit;line-height:inherit}.tag-inner-input:focus{box-shadow:none}.tag-hidden-input{display:none}.tag-input .tag{display:inline-block;box-sizing:border-box;margin-bottom:.25rem;padding:0 .375rem;border-radius:3px;background-color:#292b2e;font-size:.875rem;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tag-input.disabled,.tag-input.disabled .tag-inner-input{background-color:#1f2123}.tag-input.disabled .tag{background-color:#333638}.tag-remove{display:inline-block;margin-left:.25rem;padding:0 .125rem;color:#f2f2f3;font-style:normal;transition:color 150ms}.tag-remove:hover{color:#1e88e5}.tag-remove::after{content:"×";font-weight:600}.duration-input{box-sizing:border-box;margin-top:0;margin-bottom:.5rem;padding:.25rem .25rem;border:1px solid #4b4f53;border-radius:3px;font-size:.875rem;line-height:1.5;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.duration-input.focused{border-color:#1e88e5}.duration-input>span{text-align:center}.duration-input input{margin:0;padding:0;width:2rem;border:0;background-color:#292b2e;vertical-align:baseline;text-align:center;-moz-appearance:textfield}.duration-input input::-webkit-inner-spin-button,.duration-input input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.duration-input input:focus{box-shadow:none}.duration-input label{margin:0;padding:0 .5rem}.duration-hidden-input{display:none}.title-input{font-size:1.125rem}.file-input{display:none}.file-input-label{display:block;clear:both;margin-bottom:1rem;padding:.5rem;background-color:#1f2123}.file-input-label>span{display:block;padding:1.5rem 1rem;border:2px dashed #4b4f53;color:#f2f2f3;text-align:center;transition:background-color 300ms}.file-input-label.drag>span{background-color:#181a1b}.toggle-group{display:inline-block;margin:0;margin-bottom:.5rem;border:1px solid #4b4f53;border-radius:3px;font-size:0}.toggle-group:focus-within{border-color:#1e88e5;box-shadow:0 0 0 2px rgba(4,138,255,.25)}.toggle-group label{margin:0}.toggle-group input[type=radio]{position:absolute;opacity:0}.toggle-group input[type=radio]+span{display:inline-block;padding:.25rem .75rem;border-radius:2px;font-size:.875rem;transition:background-color 150ms,color 150ms}.toggle-group input[type=radio]:hover+span{background-color:#1f2123}.toggle-group input[type=radio]:checked+span{background-color:#1e88e5;color:#fff}.toggle-group input[type=radio]:focus+span{background-color:#186db7}.toggle-group[disabled] input[type=radio]+span{background-color:transparent;color:#f2f2f3}.toggle-group[disabled] input[type=radio]:checked+span{background-color:#333638}.toggle-group input[type=radio]:checked:hover+span{background-color:#186db7}input[type=range]{padding:.875rem 0;width:15rem;border:0;-webkit-appearance:none}input[type=range]::-webkit-slider-runnable-track{width:100%;height:.25rem;border:0;border-radius:.125rem;background-color:#333638;cursor:default}input[type=range]::-webkit-slider-thumb{margin-top:-0.375rem;width:1rem;height:1rem;border:0;border-radius:50%;background-color:#1e88e5;transition:background-color 150ms;-webkit-appearance:none}input[type=range]::-moz-range-track{width:100%;height:.25rem;border:0;border-radius:.125rem;background-color:#333638}input[type=range]::-moz-range-thumb{width:1rem;height:1rem;border:0;border-radius:50%;background-color:#1e88e5;cursor:default}input[type=range]::-ms-track{width:100%;height:.25rem;border-color:transparent;background-color:transparent;color:transparent;cursor:default}input[type=range]::-ms-fill-lower,input[type=range]::-ms-fill-upper{border:0;border-radius:.125rem;background:#333638;box-shadow:none}input[type=range]::-ms-thumb{margin-top:0;width:1rem;height:1rem;border:0;border-radius:50%;background-color:#1e88e5;cursor:default}input[type=range]:focus{box-shadow:none}input[type=range]:hover::-webkit-slider-thumb{background-color:#186db7}input[type=range][disabled]{background-color:transparent}input[type=range][disabled]::-webkit-slider-thumb,input[type=range][disabled]::-moz-range-thumb,input[type=range][disabled]::-ms-thumb{background-color:#979ca1}input[type=range]:focus::-webkit-slider-thumb{background-color:#186db7;box-shadow:0 0 0 2px rgba(4,138,255,.25)}input[type=range]:focus::-moz-range-thumb{background-color:#186db7;box-shadow:0 0 0 2px rgba(4,138,255,.25)}input[type=range]:focus::-ms-thumb{background-color:#186db7;box-shadow:0 0 0 2px rgba(4,138,255,.25)}.range-input-value{padding:0 .5rem;vertical-align:.1875rem;font-size:.875rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.array-input{margin-bottom:.5rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.array-input-row{margin:0 -0.5rem;padding:.25rem .5rem;white-space:nowrap}.array-input-key,.array-input-value{display:inline-block;margin-bottom:0}.array-input-key{margin-right:.125rem;width:30%}.array-input-value{margin-right:.25rem;width:81%}@media(min-width: 568px){.array-input-value{width:86%}}.array-input-associative .array-input-value{margin-right:.25rem;width:50%}@media(min-width: 568px){.array-input-associative .array-input-value{width:55%}}.array-input-add,.array-input-remove{padding:0;min-width:0}.array-input-add::before{font-family:Icons,sans-serif}.array-input-remove::before{font-family:Icons,sans-serif}.dropdown{position:relative;display:inline-block;margin-bottom:.5rem}.dropdown-button{margin-bottom:0}.dropdown-button::after{display:inline-block;margin-left:.25rem;height:0;border-top:.25rem solid;border-right:.25rem solid transparent;border-left:.25rem solid transparent;content:" ";vertical-align:.125rem}.dropdown-menu,.dropdown-list{position:absolute;top:100%;left:0;z-index:8;display:none;float:left;margin-top:3px;padding:.25rem 0;min-width:8rem;border:1px solid #4b4f53;border-radius:3px;background-color:#181a1b;box-shadow:1px 1px .75rem 0 rgba(0,0,0,.25)}.dropdown-list{overflow-y:scroll;max-height:10.15625rem;width:100%}.dropdown-item{display:block;padding:.25rem 1rem;width:100%;color:#f2f2f3;white-space:nowrap;font-size:.875rem}.dropdown-item:hover{background-color:#292b2e;color:#f2f2f3}.dropdown-item.selected{background-color:#1e88e5;color:#fff}.dropdown-separator{margin:.25rem 0;height:0;border-top:1px solid #4b4f53}.CodeMirror{font-family:monospace;height:300px;color:black;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:white}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:black}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0 !important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20, 255, 20, 0.5);-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:bold}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:blue}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:red}.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255, 150, 0, 0.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll !important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none !important;border:none !important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255, 255, 0, 0.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.editor-toolbar{padding:.125rem .25rem;border:1px solid #4b4f53;border-top-left-radius:3px;border-top-right-radius:3px;background-color:#1f2123;font-size:0}.toolbar-button{margin-bottom:0;padding:.5rem;border:0;background-color:#1f2123}.toolbar-button:hover,.toolbar-button:focus{background-color:transparent;color:#1e88e5}.toolbar-button:focus{box-shadow:0 0 0 2px rgba(4,138,255,.25)}.editor-textarea{margin-bottom:1rem;padding:.75rem 1rem;min-height:24rem;border:1px solid #4b4f53;border-radius:3px;font-size:1rem;font-family:"Nunito Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}.editor-textarea:focus{box-shadow:none}.CodeMirror{margin-bottom:1rem;padding:0 1rem;min-height:24rem;border:1px solid #4b4f53;border-radius:3px;background:#181a1b;color:#f2f2f3;font-size:1rem;font-family:"Nunito Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}.CodeMirror-lines{padding:.75rem 0}.CodeMirror-lines pre{padding:0 !important}.editor-toolbar+.editor-textarea,.editor-textarea+.CodeMirror{border-top-width:0;border-top-left-radius:0;border-top-right-radius:0}.CodeMirror-cursor{border-left-color:#f2f2f3}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler{background-color:inherit}.CodeMirror-selected{background:transparent}.CodeMirror-focused .CodeMirror-selected{background:rgba(30,136,229,.25)}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:rgba(30,136,229,.25)}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:rgba(30,136,229,.25)}.cm-formatting-code-block,.cm-formatting-list{display:inline !important}.cm-formatting,.cm-image-alt-text,.cm-url{display:none}.CodeMirror-activeline .cm-formatting,.CodeMirror-activeline .cm-image-alt-text,.CodeMirror-activeline .cm-url{display:inline}.cm-s-formwork .cm-formatting{color:#979ca1}.cm-s-formwork .cm-header-1{font-size:1.75rem}.cm-s-formwork .cm-header-2{font-size:1.5rem}.cm-s-formwork .cm-header-3{font-size:1.25rem}.cm-s-formwork .cm-comment{font-size:.875rem;font-family:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace}.cm-s-formwork .cm-comment.cm-header-1{font-size:1.53125rem}.cm-s-formwork .cm-comment.cm-header-2{font-size:1.3125rem}.cm-s-formwork .cm-comment.cm-header-3{font-size:1.09375rem}.cm-s-formwork .cm-quote{color:#979ca1}.cm-s-formwork .cm-formatting-quote+.cm-quote::before{margin-right:.25rem;color:#979ca1;content:" ";font-family:Icons,sans-serif}.cm-s-formwork .CodeMirror-activeline .cm-formatting-quote+.cm-quote::before{display:none}.cm-s-formwork .cm-link{color:#1e88e5;text-decoration:underline}.cm-s-formwork .cm-url.cm-formatting,.cm-s-formwork .cm-image-alt-text.cm-formatting,.cm-s-formwork .cm-image-marker{color:#1e88e5}.cm-s-formwork .cm-url,.cm-s-formwork .cm-image-alt-text{color:#979ca1;text-decoration:none}.cm-s-formwork .cm-image~.cm-url:not(.cm-formatting){display:inline;padding:0 .25rem;border-radius:3px;background-color:#292b2e;color:#f2f2f3}.cm-s-formwork .cm-image~.cm-url:not(.cm-formatting)::before{margin-right:.25rem;color:#979ca1;content:" ";font-family:Icons,sans-serif}.cm-s-formwork .CodeMirror-activeline .cm-image~.cm-url:not(.cm-formatting){padding:0;background-color:transparent;color:#979ca1}.cm-s-formwork .CodeMirror-activeline .cm-image~.cm-url:not(.cm-formatting)::before{display:none}.cm-s-formwork .cm-hr{color:#979ca1}.cm-s-formwork .cm-tag{color:#25a35a}.cm-s-formwork .cm-bracket{color:#f2f2f3}.cm-s-formwork .cm-attribute{color:#8c68cd}.cm-s-formwork .cm-bracket,.cm-s-formwork .cm-m-xml{font-size:.875rem;font-family:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace}.date-input{position:relative;cursor:default}.calendar{position:absolute;top:100%;z-index:8;display:none;margin:3px 1rem 1rem;padding:.5rem;width:18rem;border:1px solid #4b4f53;border-radius:3px;background-color:#181a1b;box-shadow:1px 1px .75rem 0 rgba(0,0,0,.25);color:#f2f2f3}.calendar-header{margin-bottom:.5rem}.calendar-buttons{margin:0 -0.5rem;font-size:0}.calendar-buttons button{margin:0;padding:0 .5rem;width:33.3%;outline:none;border:0;background-color:transparent;color:#f2f2f3;font-size:.875rem;cursor:pointer}.calendar-buttons button:hover{color:#1e88e5}.calendar-buttons button:focus{box-shadow:none}.calendar-buttons .currentMonth{font-weight:600}.calendar-table{width:100%}.calendar-table td{width:14%;text-align:center;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.calendar-header-day{font-size:.875rem}.calendar-day{border-radius:3px;transition:background-color 150ms,color 150ms}.calendar-day:hover{background-color:#186db7;color:#fff}.calendar-day.selected{background-color:#1e88e5;color:#fff}.calendar-prev-month-day,.calendar-next-month-day{color:#4b4f53}.calendar-separator{margin:.5rem -0.5rem;height:0;border-top:1px solid #4b4f53}.image-picker-thumbnails{overflow:auto;margin-bottom:1rem;padding:.5rem;height:15rem}.image-picker-thumbnail{position:relative;display:inline-block;box-sizing:border-box;margin:.25rem;padding:.5rem;width:8rem;height:8rem;border:1px solid #4b4f53;background-position:center;background-origin:content-box;background-size:contain;background-repeat:no-repeat}.image-picker-thumbnail::after{position:absolute;right:.75rem;bottom:.5rem;left:.75rem;display:block;padding:0 .375rem;border-radius:3px;background-color:rgba(51,54,56,.9);content:attr(data-filename);text-align:center;font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-picker-thumbnail.selected{border-color:#1e88e5;box-shadow:0 0 0 2px rgba(4,138,255,.25)}.image-picker-empty-state{margin:3rem auto 4rem;text-align:center}.image-picker-empty-state-icon{color:#4b4f53;font-size:2rem}.files-list{margin:0;margin-bottom:1rem;padding:0;list-style-type:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.files-item{display:flex;align-items:center}.files-item-cell{overflow:hidden;padding:.25rem;white-space:nowrap;font-size:.875rem}.file-name{flex:0 0 80%;max-width:80%;font-size:.9375rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-name::before{margin-right:.5rem;color:#f2f2f3;font-size:1rem;font-family:Icons,sans-serif}.file-name.file-type-image::before{font-family:Icons,sans-serif}.file-name.file-type-document::before{font-family:Icons,sans-serif}.file-name.file-type-audio::before{font-family:Icons,sans-serif}.file-name.file-type-video::before{font-family:Icons,sans-serif}.file-name.file-type-archive::before{font-family:Icons,sans-serif}.file-size{color:#979ca1}.file-actions{flex:0 0 20%;max-width:20%;text-align:right;font-size:1rem}.tabs{overflow-x:auto;margin-bottom:1rem;padding:2px 2px 0;border-bottom:1px solid #333638;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tabs-tab{display:inline-block;padding:.5rem 1.25rem;color:#f2f2f3;cursor:pointer}.tabs-tab:hover{color:#f2f2f3}.tabs-tab.active{border-bottom:3px solid #1e88e5;font-weight:600}.caption+.tabs{margin-top:-0.5rem}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:16;background-color:rgba(0,0,0,.75)}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:flex;display:none;align-items:center;outline:0}.modal.show{display:block;display:flex}.modal-content{margin:3rem .5rem;padding:2rem;max-width:26rem;border-radius:3px;background-color:#181a1b}@media(min-width: 26rem){.modal-content{margin:3rem auto}}.modal-size-large{max-width:40rem;width:40rem}@media(max-width: 40rem){.modal-size-large{margin:3rem .5rem}}.modal-error{margin:-2rem -2rem 1rem -2rem;padding:1rem;background-color:#e74c3b;color:#181a1b}.modal-text{margin-bottom:2.5rem}.notification-container{position:fixed;top:20px;right:20px;z-index:12}.notification{position:relative;overflow:hidden;margin-bottom:.5rem;padding:1.5rem 2.5rem;width:350px;border-radius:3px;background-color:#292b2e;box-shadow:1px 1px .75rem 0 rgba(0,0,0,.25);text-overflow:ellipsis;cursor:default;transition:top 300ms ease-in,opacity 150ms;animation:fadeInRight 300ms cubic-bezier(0.4, 0, 0.2, 1)}.notification:hover{opacity:.95}.notification.fadeout{opacity:0;animation:fadeOutRight 300ms cubic-bezier(0.4, 0, 0.2, 1)}.notification::before{position:absolute;top:50%;left:1rem;display:block;font-size:1.25rem;transform:translate(0, -50%)}.notification-info,.notification-success,.notification-warning,.notification-error{padding-left:3.25rem}.notification-info{background-color:#1e88e5;color:#fff}.notification-success{background-color:#25a259;color:#fff}.notification-warning{background-color:#c77e0a;color:#fff}.notification-error{background-color:#d52d1a;color:#fff}.notification-info::before{font-family:Icons,sans-serif}.notification-success::before{font-family:Icons,sans-serif}.notification-warning::before{font-family:Icons,sans-serif}.notification-error::before{font-family:Icons,sans-serif}.tooltip{position:absolute;z-index:20;display:none;padding:.25rem;min-width:2rem;border-radius:3px;background-color:rgba(242,242,243,.8);color:#181a1b;text-align:center;font-size:.75rem;pointer-events:none}.spinner{display:inline-block;margin-right:.5rem}.spinner::before{display:inline-block;width:.8rem;height:.8rem;border-width:.2rem;border-style:solid;border-color:#1e88e5;border-bottom-color:transparent;border-left-color:transparent;border-radius:50%;color:transparent;content:" ";vertical-align:text-top;text-align:center;font-size:.625rem;line-height:1.3;transition:border 500ms;transition-timing-function:ease-out;animation:750ms spin infinite linear}.spinner-info::before{border-color:#1e88e5;color:#1e88e5;animation:none;font-family:Icons,sans-serif}.spinner-success::before{border-color:#2ecc70;color:#2ecc70;animation:none;font-family:Icons,sans-serif}.spinner-error::before{border-color:#e74c3b;color:#e74c3b;animation:none;font-family:Icons,sans-serif}.ct-label{fill:rgba(0, 0, 0, 0.4);color:rgba(0, 0, 0, 0.4);font-size:.75rem;line-height:1}.ct-chart-line .ct-label,.ct-chart-bar .ct-label{display:block;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex}.ct-chart-pie .ct-label,.ct-chart-donut .ct-label{dominant-baseline:central}.ct-label.ct-horizontal.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-label.ct-horizontal.ct-end{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-label.ct-vertical.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-end;-webkit-justify-content:flex-end;-ms-flex-pack:flex-end;justify-content:flex-end;text-align:right;text-anchor:end}.ct-label.ct-vertical.ct-end{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar .ct-label.ct-horizontal.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;text-anchor:start}.ct-chart-bar .ct-label.ct-horizontal.ct-end{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:flex-end;-webkit-justify-content:flex-end;-ms-flex-pack:flex-end;justify-content:flex-end;text-align:right;text-anchor:end}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:end}.ct-grid{stroke:rgba(0, 0, 0, 0.2);stroke-width:1px;stroke-dasharray:2px}.ct-grid-background{fill:none}.ct-point{stroke-width:10px;stroke-linecap:round}.ct-line{fill:none;stroke-width:4px}.ct-area{stroke:none;fill-opacity:.1}.ct-bar{fill:none;stroke-width:10px}.ct-slice-donut{fill:none;stroke-width:60px}.ct-series-a .ct-point,.ct-series-a .ct-line,.ct-series-a .ct-bar,.ct-series-a .ct-slice-donut{stroke:#d70206}.ct-series-a .ct-slice-pie,.ct-series-a .ct-slice-donut-solid,.ct-series-a .ct-area{fill:#d70206}.ct-series-b .ct-point,.ct-series-b .ct-line,.ct-series-b .ct-bar,.ct-series-b .ct-slice-donut{stroke:#f05b4f}.ct-series-b .ct-slice-pie,.ct-series-b .ct-slice-donut-solid,.ct-series-b .ct-area{fill:#f05b4f}.ct-series-c .ct-point,.ct-series-c .ct-line,.ct-series-c .ct-bar,.ct-series-c .ct-slice-donut{stroke:#f4c63d}.ct-series-c .ct-slice-pie,.ct-series-c .ct-slice-donut-solid,.ct-series-c .ct-area{fill:#f4c63d}.ct-series-d .ct-point,.ct-series-d .ct-line,.ct-series-d .ct-bar,.ct-series-d .ct-slice-donut{stroke:#d17905}.ct-series-d .ct-slice-pie,.ct-series-d .ct-slice-donut-solid,.ct-series-d .ct-area{fill:#d17905}.ct-series-e .ct-point,.ct-series-e .ct-line,.ct-series-e .ct-bar,.ct-series-e .ct-slice-donut{stroke:#453d3f}.ct-series-e .ct-slice-pie,.ct-series-e .ct-slice-donut-solid,.ct-series-e .ct-area{fill:#453d3f}.ct-series-f .ct-point,.ct-series-f .ct-line,.ct-series-f .ct-bar,.ct-series-f .ct-slice-donut{stroke:#59922b}.ct-series-f .ct-slice-pie,.ct-series-f .ct-slice-donut-solid,.ct-series-f .ct-area{fill:#59922b}.ct-series-g .ct-point,.ct-series-g .ct-line,.ct-series-g .ct-bar,.ct-series-g .ct-slice-donut{stroke:#0544d3}.ct-series-g .ct-slice-pie,.ct-series-g .ct-slice-donut-solid,.ct-series-g .ct-area{fill:#0544d3}.ct-series-h .ct-point,.ct-series-h .ct-line,.ct-series-h .ct-bar,.ct-series-h .ct-slice-donut{stroke:#6b0392}.ct-series-h .ct-slice-pie,.ct-series-h .ct-slice-donut-solid,.ct-series-h .ct-area{fill:#6b0392}.ct-series-i .ct-point,.ct-series-i .ct-line,.ct-series-i .ct-bar,.ct-series-i .ct-slice-donut{stroke:#f05b4f}.ct-series-i .ct-slice-pie,.ct-series-i .ct-slice-donut-solid,.ct-series-i .ct-area{fill:#f05b4f}.ct-series-j .ct-point,.ct-series-j .ct-line,.ct-series-j .ct-bar,.ct-series-j .ct-slice-donut{stroke:#dda458}.ct-series-j .ct-slice-pie,.ct-series-j .ct-slice-donut-solid,.ct-series-j .ct-area{fill:#dda458}.ct-series-k .ct-point,.ct-series-k .ct-line,.ct-series-k .ct-bar,.ct-series-k .ct-slice-donut{stroke:#eacf7d}.ct-series-k .ct-slice-pie,.ct-series-k .ct-slice-donut-solid,.ct-series-k .ct-area{fill:#eacf7d}.ct-series-l .ct-point,.ct-series-l .ct-line,.ct-series-l .ct-bar,.ct-series-l .ct-slice-donut{stroke:#86797d}.ct-series-l .ct-slice-pie,.ct-series-l .ct-slice-donut-solid,.ct-series-l .ct-area{fill:#86797d}.ct-series-m .ct-point,.ct-series-m .ct-line,.ct-series-m .ct-bar,.ct-series-m .ct-slice-donut{stroke:#b2c326}.ct-series-m .ct-slice-pie,.ct-series-m .ct-slice-donut-solid,.ct-series-m .ct-area{fill:#b2c326}.ct-series-n .ct-point,.ct-series-n .ct-line,.ct-series-n .ct-bar,.ct-series-n .ct-slice-donut{stroke:#6188e2}.ct-series-n .ct-slice-pie,.ct-series-n .ct-slice-donut-solid,.ct-series-n .ct-area{fill:#6188e2}.ct-series-o .ct-point,.ct-series-o .ct-line,.ct-series-o .ct-bar,.ct-series-o .ct-slice-donut{stroke:#a748ca}.ct-series-o .ct-slice-pie,.ct-series-o .ct-slice-donut-solid,.ct-series-o .ct-area{fill:#a748ca}.ct-square{display:block;position:relative;width:100%}.ct-square:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:100%}.ct-square:after{content:"";display:table;clear:both}.ct-square>svg{display:block;position:absolute;top:0;left:0}.ct-minor-second{display:block;position:relative;width:100%}.ct-minor-second:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:93.75%}.ct-minor-second:after{content:"";display:table;clear:both}.ct-minor-second>svg{display:block;position:absolute;top:0;left:0}.ct-major-second{display:block;position:relative;width:100%}.ct-major-second:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:88.8888888889%}.ct-major-second:after{content:"";display:table;clear:both}.ct-major-second>svg{display:block;position:absolute;top:0;left:0}.ct-minor-third{display:block;position:relative;width:100%}.ct-minor-third:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:83.3333333333%}.ct-minor-third:after{content:"";display:table;clear:both}.ct-minor-third>svg{display:block;position:absolute;top:0;left:0}.ct-major-third{display:block;position:relative;width:100%}.ct-major-third:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:80%}.ct-major-third:after{content:"";display:table;clear:both}.ct-major-third>svg{display:block;position:absolute;top:0;left:0}.ct-perfect-fourth{display:block;position:relative;width:100%}.ct-perfect-fourth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:75%}.ct-perfect-fourth:after{content:"";display:table;clear:both}.ct-perfect-fourth>svg{display:block;position:absolute;top:0;left:0}.ct-perfect-fifth{display:block;position:relative;width:100%}.ct-perfect-fifth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:66.6666666667%}.ct-perfect-fifth:after{content:"";display:table;clear:both}.ct-perfect-fifth>svg{display:block;position:absolute;top:0;left:0}.ct-minor-sixth{display:block;position:relative;width:100%}.ct-minor-sixth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:62.5%}.ct-minor-sixth:after{content:"";display:table;clear:both}.ct-minor-sixth>svg{display:block;position:absolute;top:0;left:0}.ct-golden-section{display:block;position:relative;width:100%}.ct-golden-section:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:61.804697157%}.ct-golden-section:after{content:"";display:table;clear:both}.ct-golden-section>svg{display:block;position:absolute;top:0;left:0}.ct-major-sixth{display:block;position:relative;width:100%}.ct-major-sixth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:60%}.ct-major-sixth:after{content:"";display:table;clear:both}.ct-major-sixth>svg{display:block;position:absolute;top:0;left:0}.ct-minor-seventh{display:block;position:relative;width:100%}.ct-minor-seventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:56.25%}.ct-minor-seventh:after{content:"";display:table;clear:both}.ct-minor-seventh>svg{display:block;position:absolute;top:0;left:0}.ct-major-seventh{display:block;position:relative;width:100%}.ct-major-seventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:53.3333333333%}.ct-major-seventh:after{content:"";display:table;clear:both}.ct-major-seventh>svg{display:block;position:absolute;top:0;left:0}.ct-octave{display:block;position:relative;width:100%}.ct-octave:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:50%}.ct-octave:after{content:"";display:table;clear:both}.ct-octave>svg{display:block;position:absolute;top:0;left:0}.ct-major-tenth{display:block;position:relative;width:100%}.ct-major-tenth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:40%}.ct-major-tenth:after{content:"";display:table;clear:both}.ct-major-tenth>svg{display:block;position:absolute;top:0;left:0}.ct-major-eleventh{display:block;position:relative;width:100%}.ct-major-eleventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:37.5%}.ct-major-eleventh:after{content:"";display:table;clear:both}.ct-major-eleventh>svg{display:block;position:absolute;top:0;left:0}.ct-major-twelfth,.ct-chart{display:block;position:relative;width:100%}.ct-major-twelfth:before,.ct-chart:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:33.3333333333%}.ct-major-twelfth:after,.ct-chart:after{content:"";display:table;clear:both}.ct-major-twelfth>svg,.ct-chart>svg{display:block;position:absolute;top:0;left:0}.ct-double-octave{display:block;position:relative;width:100%}.ct-double-octave:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:25%}.ct-double-octave:after{content:"";display:table;clear:both}.ct-double-octave>svg{display:block;position:absolute;top:0;left:0}.ct-chart{position:relative;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ct-label{color:rgba(242,242,243,.4);fill:rgba(242,242,243,.4)}.ct-grid{stroke:rgba(242,242,243,.2)}.ct-series-a .ct-line,.ct-series-a .ct-point{stroke:#1e88e5}.ct-series-a .ct-area{fill:#1e88e5}.ct-series-b .ct-line,.ct-series-b .ct-point{stroke:#f39c11}.ct-series-b .ct-area{fill:#f39c11}.ct-label.ct-horizontal,.ct-label.ct-horizontal.ct-end{display:inline-block;min-width:3rem;width:auto !important;color:#f2f2f3;text-align:center;transform:translateX(-50%)}.ct-legend{font-size:.875rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ct-legend-right{text-align:right}.ct-legend-label{white-space:nowrap}.ct-legend-label::before{display:inline-block;margin:0 .375rem;font-size:.75rem;font-family:Icons,sans-serif}.ct-legend-label.ct-series-a::before{color:#1e88e5}.ct-legend-label.ct-series-b::before{color:#f39c11}@keyframes fadeInRight{from{opacity:0;transform:translate3d(150%, 0, 0)}to{opacity:1;transform:none}}@keyframes fadeOutRight{from{opacity:1;transform:none}to{opacity:0;transform:translate3d(150%, 0, 0)}}@keyframes shake{from,to{transform:translate3d(0, 0, 0)}10%,50%,70%,90%{transform:translate3d(-10px, 0, 0)}30%,70%{transform:translate3d(10px, 0, 0)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.login-modal-container{margin:3rem .5rem;padding:2rem;max-width:24rem;border-radius:3px;background-color:#181a1b}@media(min-width: 24rem){.login-modal-container{margin:3rem auto}}.login-modal-info,.login-modal-success,.login-modal-warning,.login-modal-error{position:relative;margin:-2rem -2rem 1rem -2rem;padding:1rem 2rem 1rem 3.5rem;border-top-left-radius:3px;border-top-right-radius:3px}.login-modal-info a,.login-modal-success a,.login-modal-warning a,.login-modal-error a{display:block;color:#fff;text-decoration:underline;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.login-modal-info::before,.login-modal-success::before,.login-modal-warning::before,.login-modal-error::before{position:absolute;top:50%;left:1rem;display:block;font-size:1.25rem;font-family:Icons,sans-serif;transform:translate(0, -50%)}.login-modal-info{background-color:#1e88e5;color:#fff}.login-modal-info::before{font-family:Icons,sans-serif}.login-modal-success{background-color:#25a35a;color:#fff}.login-modal-success::before{font-family:Icons,sans-serif}.login-modal-warning{background-color:#f39c11;color:#fff}.login-modal-warning::before{font-family:Icons,sans-serif}.login-modal-error{background-color:#e74c3b;color:#fff}.login-modal-error::before{font-family:Icons,sans-serif}.title-bar{position:fixed;top:0;right:0;left:0;z-index:8;padding:1rem;padding-left:4rem;background-color:#292b2e;box-shadow:0 0 .75rem -0.25rem rgba(0,0,0,.05);color:#f2f2f3;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(min-width: 768px){.title-bar{left:14rem;padding-left:1.5rem}}.panel-title{float:left}.view-site{float:right;color:#f2f2f3}.view-site:hover{color:#1e88e5}.view-site i{margin-left:.5rem}.sidebar{position:fixed;top:0;bottom:0;left:0;z-index:10;padding:1rem 1.5rem;width:14rem;background:linear-gradient(to bottom, #181a1b 0%, #1f2123 100%);background-color:#181a1b;box-shadow:0 0 .75rem -0.25rem rgba(0,0,0,.05);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sidebar.show{display:block}.sidebar-wrapper{overflow-y:auto;height:calc(100% - 9rem)}.toggle-navigation{position:fixed;top:.75rem;left:.75rem;z-index:12;margin:0;border:none;background-color:transparent;font-size:1rem;cursor:pointer}.toggle-navigation:hover{background-color:transparent;box-shadow:none;color:#1e88e5}.toggle-navigation:focus{background-color:transparent;box-shadow:none}.logo{margin-bottom:2rem;color:#f2f2f3;text-align:center;font-weight:600;font-size:1.184rem;line-height:1.5rem}@media(min-width: 768px){.logo{text-align:left}}.logo img{margin-right:.25rem;height:1.5rem;vertical-align:-0.25rem}.logo a{padding-top:2px;color:#f2f2f3}.sidebar-navigation{margin:0;margin-bottom:1rem;padding:0;list-style-type:none}.sidebar-navigation:last-child{margin-bottom:0}.sidebar-navigation>li{position:relative;margin:0;margin-bottom:.5rem;padding:.25rem 0;padding-left:1rem}.sidebar-navigation>li a{color:#f2f2f3}.sidebar-navigation>li.active{font-weight:600}.sidebar-navigation>li.active::before{position:absolute;top:0;bottom:0;left:0;width:3px;background-color:#1e88e5;content:" "}.admin-user-card{display:flex;align-items:center;margin-bottom:2rem;cursor:pointer}.admin-user-card:hover img{box-shadow:0 0 0 .5rem #333638}.admin-user-avatar{width:48px}.admin-user-avatar img{width:48px;border-radius:50%;transition:box-shadow 300ms ease-out}.admin-user-details{padding:0 .75rem}.admin-user-fullname{color:#f2f2f3}.admin-user-username{color:#979ca1;font-size:.875rem}.main{margin-top:4.5rem}@media(min-width: 768px){.main{margin:1.875rem;margin-top:4.5rem;margin-left:15.875rem}}.component{margin-bottom:1rem;padding:1.5rem;border-radius:3px;background-color:#181a1b;box-shadow:0 0 .75rem -0.25rem rgba(0,0,0,.05)}.component::before,.component::after{display:table;content:""}.component::after{clear:both}.caption{margin-bottom:1rem;text-transform:uppercase;letter-spacing:1px;font-weight:600;font-size:.9375rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.separator{height:.5rem}.separator-l{height:1rem}.section-header{margin-bottom:.5rem;padding:.25rem .5rem;border-bottom:1px solid #333638;font-weight:600;font-size:1rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sort-handle{margin-right:.25rem;margin-bottom:0;width:.75rem;cursor:grab}.sort-handle::before{color:#7c8288;font-size:.75rem;cursor:inherit;font-family:Icons,sans-serif}.sortable-chosen,.sortable-ghost{background-color:#181a1b;cursor:grabbing}.sortable-chosen *{cursor:grabbing}.sortable-fallback{box-shadow:0 0 .75rem .25rem rgba(0,0,0,.15)}.pages-list{margin:0;padding:0;list-style-type:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pages-list .pages-list{display:none}.pages-list-headers{display:none;padding:.25rem 0;font-weight:600;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.page-children-toggle{display:inline-block;margin:0 .25rem .125rem 0;padding:0;min-width:auto;border-color:transparent;background-color:transparent;color:#f2f2f3;font-weight:400;font-size:.875rem;cursor:pointer}.page-children-toggle:hover,.page-children-toggle:focus{border-color:transparent;background-color:transparent}.page-children-toggle:focus{box-shadow:0 0 0 2px rgba(4,138,255,.25)}.toggle-collapsed::before{font-family:Icons,sans-serif}.toggle-expanded::before{font-family:Icons,sans-serif}.pages-item{padding:.5rem 0;border-bottom:1px solid #333638}.pages-item:hover{background-color:#1f2123}.pages-item .sort-handle{display:none}.pages-list-top{border-top:1px solid #333638}.pages-item-cell,.pages-headers-cell{padding:.25rem .5rem;font-size:.875rem}.pages-item-cell div,.pages-headers-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-title{margin:-2px;padding:2px;font-size:1rem}.page-language{display:inline-block;padding:.125rem .25rem;min-width:1.125rem;border-radius:3px;background-color:#d2e7fa;color:#1e88e5;text-align:center;font-weight:600;font-size:.875rem;line-height:1}button .page-language,.button .page-language{font-size:.75rem}.page-route{color:#979ca1;font-size:.875rem}.page-route-changeable{margin:-2px;padding:2px}.page-status-label::before{display:inline-block;margin-right:.375rem;font-size:.75rem;font-family:Icons,sans-serif}.page-status-published .page-status-label::before{color:#2ecc70}.page-status-not-published .page-status-label::before{color:#e74c3b}.page-status-not-routable .page-status-label::before{color:#f39c11}.page-date,.page-status,.page-actions{display:none}.page-actions .button-link{font-size:1rem}@media(min-width: 568px){.pages-item,.pages-list-headers{display:flex;align-items:center}.pages-item-cell,.pages-headers-cell{display:block}.page-details{flex:0 0 55%;max-width:55%}.page-date,.page-status,.page-actions{flex:0 0 15%;max-width:15%;text-align:center}}.pages-level-2 .page-details{padding-left:1.5rem}.pages-level-3 .page-details{padding-left:3rem}.pages-level-4 .page-details{padding-left:4.5rem}.pages-level-5 .page-details{padding-left:6rem}.page-search{padding-right:1.5rem;max-width:28rem;background:#181a1b url("data:image/svg+xml;utf8,") no-repeat right .5rem center;background-size:.875rem .875rem}.page-info{margin-bottom:.75rem;padding:0 .25rem}.page-info>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-slug-change{margin:0;padding:0;border-color:transparent;background-color:transparent;color:#979ca1;cursor:pointer}.page-slug-change:hover,.page-slug-change:focus{border-color:transparent;background-color:transparent;color:#979ca1}.page-slug-change:focus{box-shadow:0 0 0 2px rgba(4,138,255,.25)}.page-slug-change::after{display:inline-block;margin-left:.25rem;color:#f2f2f3;content:"";font-family:Icons,sans-serif;opacity:0;transition:opacity 150ms}.page-slug-change:hover::after,.page-slug-change:focus::after{opacity:1}.dragging [data-sortable=false] .pages-item:hover{background-color:#fce8e5;cursor:no-drop}.options-form .checkbox-label{margin-bottom:.5rem;font-size:1rem}.info-data{margin-bottom:1rem;width:100%;table-layout:fixed}.info-data td{overflow:hidden;padding:.5rem;vertical-align:top}.info-data-key{width:25%}.info-data-value{width:75%;word-break:break-word;font-size:.875rem;font-family:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace}.user-summary{display:flex;align-items:center}.user-summary-avatar{flex:0 0 33.33333%;padding:.75rem;max-width:33.33333%;text-align:center}.user-summary-avatar img{width:180px;border-radius:50%}.user-summary-data{padding:.75rem}.users-list{border-top:1px solid #333638;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.users-list-headers{display:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.users-item{padding:.5rem 0;border-bottom:1px solid #333638}.users-item:hover{background-color:#1f2123}.users-item-cell,.users-headers-cell{padding:.125rem .25rem;vertical-align:middle;font-size:.875rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-username,.user-fullname{display:inline-block}.users-item .user-username{font-size:1rem}.user-last-access,.user-actions{display:none}.user-actions .button-link{font-size:1rem}@media(min-width: 568px){.users-item,.users-list-headers{display:flex;align-items:center}.users-list-headers{padding:.25rem 0;font-weight:600}.users-item-cell,.users-headers-cell{display:block;padding:.25rem .5rem}.user-username,.user-last-access{flex:0 0 20%;max-width:20%}.user-fullname,.user-email{flex:0 0 25%;max-width:25%}.user-last-access,.user-actions{text-align:center}.user-actions{flex:0 0 10%;max-width:10%}}.error-container{margin:4rem auto;padding:1rem;max-width:32rem;text-align:center}.error-container h1{color:#7c8288;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.error-container h2{margin-bottom:1rem;font-size:2rem}.error-code{display:block;font-weight:400;font-size:8rem}.error-status{display:block;font-size:1.75rem}.error-container .action{font-size:1.125rem}.error-container .logo{margin:2rem auto;width:3.5rem;height:3.5rem;background-position:center;background-size:cover;background-repeat:no-repeat}@font-face{font-weight:normal;font-style:normal;font-family:"Icons";src:url("../icons/icons.eot");src:url("../icons/icons.eot#iefix") format("embedded-opentype"),url("../icons/icons.woff2") format("woff2"),url("../icons/icons.woff") format("woff"),url("../icons/icons.ttf") format("truetype"),url("../icons/icons.svg#icons") format("svg")}[class^=i-]::before,[class*=" i-"]::before{display:inline-block;width:1.25em;text-decoration:inherit;text-transform:none;font-weight:normal;font-style:normal;font-variant:normal;font-family:Icons,sans-serif;line-height:1em}.i-align-center::before{content:""}.i-align-left::before{content:""}.i-align-justify::before{content:""}.i-align-right::before{content:""}.i-archive::before{content:""}.i-arrow-down::before{content:""}.i-arrow-left::before{content:""}.i-arrow-right::before{content:""}.i-arrow-up::before{content:""}.i-at::before{content:""}.i-bars::before,.sort-handle::before{content:""}.i-bell::before{content:""}.i-bold::before{content:""}.i-bolt::before{content:""}.i-book::before{content:""}.i-box-open::before{content:""}.i-box::before{content:""}.i-boxes::before{content:""}.i-briefcase::before{content:""}.i-calendar::before{content:""}.i-chart-area::before{content:""}.i-chart-bar::before{content:""}.i-check-circle::before,.notification-success::before,.login-modal-success::before{content:""}.i-check-double::before{content:""}.i-check::before,.spinner-success::before{content:""}.i-chevron-down::before,.toggle-collapsed::before{content:""}.i-chevron-right::before{content:""}.i-chevron-left::before{content:""}.i-chevron-up::before,.toggle-expanded::before{content:""}.i-circle-open::before{content:""}.i-circle::before,.ct-legend-label::before,.page-status-label::before{content:""}.i-clipboard::before{content:""}.i-cloud-download::before{content:""}.i-cloud-upload::before{content:""}.i-code::before{content:""}.i-cog::before{content:""}.i-comment::before{content:""}.i-cookie-bite::before{content:""}.i-cookie::before{content:""}.i-copy::before{content:""}.i-crop::before{content:""}.i-cut::before{content:""}.i-database::before{content:""}.i-download::before{content:""}.i-edit::before{content:""}.i-ellipsis-v::before{content:""}.i-ellipsis::before{content:""}.i-envelope::before{content:""}.i-error-circle::before,.notification-error::before,.login-modal-error::before{content:""}.i-exclamation-triangle::before,.notification-warning::before,.login-modal-warning::before{content:""}.i-exclamation::before,.spinner-error::before{content:""}.i-external-link-square::before{content:""}.i-external-link::before{content:""}.i-eye-slash::before{content:""}.i-eye::before{content:""}.i-file-archive::before,.file-name.file-type-archive::before{content:""}.i-file-audio::before,.file-name.file-type-audio::before{content:""}.i-file-code::before{content:""}.i-file-image::before,.file-name.file-type-image::before{content:""}.i-file-pdf::before{content:""}.i-file-text::before,.file-name.file-type-document::before{content:""}.i-file-video::before,.file-name.file-type-video::before{content:""}.i-file::before,.file-name::before{content:""}.i-folder-open::before{content:""}.i-folder::before{content:""}.i-font::before{content:""}.i-hashtag::before{content:""}.i-heading::before{content:""}.i-history::before{content:""}.i-home::before{content:""}.i-image::before,.cm-s-formwork .cm-image~.cm-url:not(.cm-formatting)::before{content:""}.i-images::before{content:""}.i-info-circle::before,.notification-info::before,.login-modal-info::before{content:""}.i-info::before,.spinner-info::before{content:""}.i-italic::before{content:""}.i-language::before{content:""}.i-link::before{content:""}.i-list-ol::before{content:""}.i-list-ul::before{content:""}.i-list::before{content:""}.i-location-arrow::before{content:""}.i-lock::before{content:""}.i-markdown::before{content:""}.i-microchip::before{content:""}.i-minus-circle::before{content:""}.i-mobile::before{content:""}.i-paste::before{content:""}.i-pencil::before{content:""}.i-plus-circle::before,.array-input-add::before{content:""}.i-question-circle::before{content:""}.i-quote::before,.cm-s-formwork .cm-formatting-quote+.cm-quote::before{content:""}.i-read-more::before{content:""}.i-redo::before{content:""}.i-rss::before{content:""}.i-search-plus::before{content:""}.i-search::before{content:""}.i-search-minus::before{content:""}.i-stopwatch::before{content:""}.i-sync::before{content:""}.i-table::before{content:""}.i-tablet::before{content:""}.i-tag::before{content:""}.i-tags::before{content:""}.i-tasks::before{content:""}.i-times-circle::before,.array-input-remove::before{content:""}.i-times::before{content:""}.i-trash::before{content:""}.i-underline::before{content:""}.i-undo::before{content:""}.i-user-circle::before{content:""}.i-user::before{content:""}.i-users::before{content:""}.i-move::before{content:""} diff --git a/admin/assets/css/admin.min.css b/admin/assets/css/admin.min.css index a27eb346..5b6bbfb4 100644 --- a/admin/assets/css/admin.min.css +++ b/admin/assets/css/admin.min.css @@ -1 +1 @@ -@import"https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,400;0,600;1,400;1,600&display=swap";html{font-size:100%;-webkit-text-size-adjust:100%}body{box-sizing:border-box;margin:0;background-color:#f7f7f7;color:#262626;font-family:"Nunito Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.5}*{box-sizing:inherit;line-height:inherit;-webkit-tap-highlight-color:rgba(38,38,38,0)}main{display:block}a{outline-color:rgba(4,138,255,.25);background-color:transparent;color:#1e88e5;text-decoration:none;transition:color 150ms}a:hover{color:#186db7}a:not([href]){cursor:default}img{max-width:100%;border-style:none}button{-webkit-appearance:button}button::-moz-focus-inner{padding:0;border:none}mark{background-color:gold}[hidden]{display:none}.focused{box-shadow:0 0 0 2px rgba(4,138,255,.25)}::selection{background-color:rgba(30,136,229,.25)}::placeholder{color:#7d7d7d}@media(min-width: 568px){.hide-from-xs{display:none}}@media(max-width: 568px){.show-from-xs{display:none}}@media(min-width: 768px){.hide-from-s{display:none}}@media(max-width: 768px){.show-from-s{display:none}}@media(min-width: 992px){.hide-from-m{display:none}}@media(max-width: 992px){.show-from-m{display:none}}@media(min-width: 1200px){.hide-from-l{display:none}}@media(max-width: 1200px){.show-from-l{display:none}}h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6{margin-top:0;margin-bottom:.5rem;font-weight:600;line-height:1.2}h1,.h1,h2,.h2,h3,.h3{letter-spacing:-0.027rem}h1,.h1{font-size:2.369rem}h2,.h2{font-size:2.104rem}h3,.h3{font-size:1.777rem}h4,.h4{font-size:1.579rem}h5,.h5{font-size:1.184rem}h6,.h6{font-size:1rem}strong{font-weight:600}p{margin-top:0;margin-bottom:.5rem;line-height:1.5}ul{margin-top:0;margin-bottom:.5rem;margin-left:1.25rem;padding:0;list-style-position:outside}.container,.container-full,.container-no-margin{margin:0 auto;padding:0 15px}.container{max-width:1200px}.container-no-margin{padding-right:0;padding-left:0}.row{display:flex;flex-wrap:wrap;margin:0 -15px}@media(max-width: 768px){.container-no-margin .row{margin:0}.container-no-margin div[class^=col-]{padding:0}}.col-xs,.col-xs-1-12,.col-xs-2-12,.col-xs-1-6,.col-xs-3-12,.col-xs-1-4,.col-xs-4-12,.col-xs-1-3,.col-xs-5-12,.col-xs-6-12,.col-xs-1-2,.col-xs-7-12,.col-xs-8-12,.col-xs-2-3,.col-xs-9-12,.col-xs-3-4,.col-xs-10-12,.col-xs-5-6,.col-xs-11-12,.col-xs-12-12,.col-xs-1-1,.col-s,.col-s-1-12,.col-s-2-12,.col-s-1-6,.col-s-3-12,.col-s-1-4,.col-s-4-12,.col-s-1-3,.col-s-5-12,.col-s-6-12,.col-s-1-2,.col-s-7-12,.col-s-8-12,.col-s-2-3,.col-s-9-12,.col-s-3-4,.col-s-10-12,.col-s-5-6,.col-s-11-12,.col-s-12-12,.col-s-1-1,.col-m,.col-m-1-12,.col-m-2-12,.col-m-1-6,.col-m-3-12,.col-m-1-4,.col-m-4-12,.col-m-1-3,.col-m-5-12,.col-m-6-12,.col-m-1-2,.col-m-7-12,.col-m-8-12,.col-m-2-3,.col-m-9-12,.col-m-3-4,.col-m-10-12,.col-m-5-6,.col-m-11-12,.col-m-12-12,.col-m-1-1,.col-l,.col-l-1-12,.col-l-2-12,.col-l-1-6,.col-l-3-12,.col-l-1-4,.col-l-4-12,.col-l-1-3,.col-l-5-12,.col-l-6-12,.col-l-1-2,.col-l-7-12,.col-l-8-12,.col-l-2-3,.col-l-9-12,.col-l-3-4,.col-l-10-12,.col-l-5-6,.col-l-11-12,.col-l-12-12,.col-l-1-1{padding:0 15px;width:100%}.col-xs{flex:1 0 auto;max-width:100%;width:auto}.col-xs-1-12{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-xs-2-12,.col-xs-1-6{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-xs-3-12,.col-xs-1-4{flex:0 0 25%;max-width:25%}.col-xs-4-12,.col-xs-1-3{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-xs-5-12{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-xs-6-12,.col-xs-1-2{flex:0 0 50%;max-width:50%}.col-xs-7-12{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-xs-8-12,.col-xs-2-3{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-xs-9-12,.col-xs-3-4{flex:0 0 75%;max-width:75%}.col-xs-10-12,.col-xs-5-6{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-xs-11-12{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-xs-12-12,.col-xs-1-1{flex:0 0 100%;max-width:100%}@media(min-width: 768px){.col-s{flex:1 0 auto;max-width:100%;width:auto}.col-s-1-12{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-s-2-12,.col-s-1-6{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-s-3-12,.col-s-1-4{flex:0 0 25%;max-width:25%}.col-s-4-12,.col-s-1-3{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-s-5-12{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-s-6-12,.col-s-1-2{flex:0 0 50%;max-width:50%}.col-s-7-12{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-s-8-12,.col-s-2-3{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-s-9-12,.col-s-3-4{flex:0 0 75%;max-width:75%}.col-s-10-12,.col-s-5-6{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-s-11-12{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-s-12-12,.col-s-1-1{flex:0 0 100%;max-width:100%}}@media(min-width: 992px){.col-m{flex:1 0 auto;max-width:100%;width:auto}.col-m-1-12{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-m-2-12,.col-m-1-6{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-m-3-12,.col-m-1-4{flex:0 0 25%;max-width:25%}.col-m-4-12,.col-m-1-3{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-m-5-12{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-m-6-12,.col-m-1-2{flex:0 0 50%;max-width:50%}.col-m-7-12{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-m-8-12,.col-m-2-3{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-m-9-12,.col-m-3-4{flex:0 0 75%;max-width:75%}.col-m-10-12,.col-m-5-6{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-m-11-12{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-m-12-12,.col-m-1-1{flex:0 0 100%;max-width:100%}}@media(min-width: 1200px){.col-l{flex:1 0 auto;max-width:100%;width:auto}.col-l-1-12{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-l-2-12,.col-l-1-6{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-l-3-12,.col-l-1-4{flex:0 0 25%;max-width:25%}.col-l-4-12,.col-l-1-3{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-l-5-12{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-l-6-12,.col-l-1-2{flex:0 0 50%;max-width:50%}.col-l-7-12{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-l-8-12,.col-l-2-3{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-l-9-12,.col-l-3-4{flex:0 0 75%;max-width:75%}.col-l-10-12,.col-l-5-6{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-l-11-12{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-l-12-12,.col-l-1-1{flex:0 0 100%;max-width:100%}}button,.button{display:inline-block;overflow:visible;margin:0;margin-right:.25rem;margin-bottom:.5rem;padding:.375rem .5rem;min-width:2rem;outline:none;border:1px solid #ededed;border-radius:3px;background-color:#ededed;color:#262626;vertical-align:middle;white-space:nowrap;font-size:.875rem;font-family:"Nunito Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.15;cursor:default;transition:border-color 150ms,background-color 150ms,color 150ms;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}button:hover,button:focus,.button:hover,.button:focus{border-color:#e3e3e3;background-color:#e3e3e3;color:#262626}button:focus,.button:focus{box-shadow:0 0 0 2px rgba(38,38,38,.25)}button[disabled],button[disabled]:hover,button.disabled,button.disabled:hover,.button[disabled],.button[disabled]:hover,.button.disabled,.button.disabled:hover{border-color:#f7f7f7;background-color:#f7f7f7;color:#c9c9c9;pointer-events:none}button.active,.button.active{border-color:#c9c9c9;background-color:#c9c9c9}a.button{text-align:center}.button-right{float:right;margin-right:0;margin-left:.25rem}.button-accent{border:1px solid #1e88e5;background-color:#1e88e5;color:#fff}.button-accent:hover,.button-accent:focus{border-color:#186db7;background-color:#186db7;color:#fff}.button-accent:focus{box-shadow:0 0 0 2px rgba(4,138,255,.25)}.button-success{border:1px solid #2ecc70;background-color:#2ecc70;color:#fff}.button-success:hover,.button-success:focus{border-color:#25a35a;background-color:#25a35a;color:#fff}.button-success:focus{box-shadow:0 0 0 2px rgba(37,163,90,.25)}.button-warning{border:1px solid #f39c11;background-color:#f39c11;color:#fff}.button-warning:hover,.button-warning:focus{border-color:#c27d0e;background-color:#c27d0e;color:#fff}.button-warning:focus{box-shadow:0 0 0 2px rgba(194,125,14,.25)}.button-error{border:1px solid #e74c3b;background-color:#e74c3b;color:#fff}.button-error:hover,.button-error:focus{border-color:#b93d2f;background-color:#b93d2f;color:#fff}.button-error:focus{box-shadow:0 0 0 2px rgba(185,61,47,.25)}.button-link{margin:0;border:0;background-color:transparent;font-size:inherit;cursor:pointer}.button-link:hover,.button-link:focus{background-color:transparent;color:#1e88e5}.button-link:focus{box-shadow:0 0 0 2px rgba(4,138,255,.25)}.button-link[disabled],.button-link[disabled]:hover,.button-link.disabled,.button-link.disabled:hover{background-color:transparent;cursor:default}input,select,textarea{display:inline-block;margin:0;margin-bottom:.5rem;padding:.25rem .5rem;width:100%;border:1px solid #c9c9c9;border-radius:3px;background-color:#fcfcfc;color:#262626;vertical-align:middle;font-size:.875rem;font-family:"Nunito Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.5;-webkit-appearance:none;-moz-appearance:none}input:focus,select:focus,textarea:focus{outline:none;border-color:#1e88e5;box-shadow:0 0 0 2px rgba(4,138,255,.25)}input[disabled],select[disabled],textarea[disabled]{background-color:#ededed;color:#7d7d7d}input[readonly],select[readonly],textarea[readonly]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}input[type=checkbox],input[type=radio]{margin-bottom:0;padding:0;width:auto;height:inherit;vertical-align:text-top}input[type=checkbox]:focus,input[type=radio]:focus{box-shadow:none}input[type=file]{padding:0;border:none;border-radius:0}input[type=file]::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}select{padding:.25rem 1.5rem .25rem .5rem;background:#fcfcfc url("data:image/svg+xml;utf8,") no-repeat right .75rem center;background-color:#fcfcfc;background-size:8px 6px}select:-moz-focusring{color:transparent;text-shadow:0 0 0 #262626}textarea{overflow:auto;min-height:3.125rem;max-height:16.25rem;height:5.75rem;resize:vertical}.input-accent{border-color:#1e88e5}.input-success{border-color:#2ecc70}.input-warning{border-color:#f39c11}.input-error{border-color:#e74c3b}.input-invalid{animation:shake 500ms;animation-fill-mode:both}.input-wrap{position:relative}.input-wrap input{padding-right:1.5rem}.input-reset{position:absolute;top:calc(0.25rem + 1px);right:.25rem;color:#262626;font-size:.875rem;line-height:1.5;transition:color 150ms}.input-reset:hover{color:#1e88e5}label{display:inline-block;margin-bottom:.25rem;font-size:.875rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none}.label-suggestion{color:#7d7d7d;font-size:.75rem;line-height:1}.label-required::after{display:inline-block;margin-left:.125rem;color:#e74c3b;content:"*"}.custom-checkbox{position:absolute;opacity:0}.custom-checkbox+.custom-checkbox-text::before{position:relative;top:.125rem;display:inline-block;box-sizing:border-box;margin-right:.5rem;width:1rem;height:1rem;border:1px solid #c9c9c9;border-radius:3px;content:" ";transition:border-color 150ms,background-color 150ms}.custom-checkbox+.custom-checkbox-text:hover::before,.custom-checkbox[disabled]+.custom-checkbox-text::before{background-color:#f7f7f7}.custom-checkbox:checked+.custom-checkbox-text::before{border-color:#1e88e5;background-color:#1e88e5}.custom-checkbox:focus+.custom-checkbox-text::before{border-color:#1e88e5;box-shadow:0 0 0 2px rgba(4,138,255,.25)}.custom-checkbox:checked+.custom-checkbox-text:hover::before{border-color:#186db7;background-color:#186db7}.custom-checkbox:checked+.custom-checkbox-text::after{position:absolute;top:.125rem;left:0;display:block;width:1rem;height:1rem;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11'%3E%3Cpath fill='%23fff' d='M4.727 7.036L8.263 3.5l.707.707L4.727 8.45 2 5.722l.707-.707z'/%3E%3C/svg%3E");content:" "}.custom-checkbox:checked[disabled]+.custom-checkbox-text::before{border-color:#c9c9c9;background-color:#c9c9c9}.checkbox-label{position:relative;line-height:1.5}.image-input{padding-right:1.875rem;background:#fcfcfc url("data:image/svg+xml;utf8,") no-repeat right .5rem center;background-size:1rem 1rem;cursor:default}.input-wrap .image-input{padding-right:3.375rem;background-position:right 1.75rem center}.tag-input{position:relative;display:block;box-sizing:border-box;margin-top:0;margin-bottom:.5rem;padding:.25rem .25rem;padding-bottom:0;border:1px solid #c9c9c9;border-radius:3px;font-size:.875rem;line-height:1.5;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tag-input.focused{border-color:#1e88e5}.tag-inner-input{display:inline-block;box-sizing:border-box;margin-bottom:.25rem;padding:0 .25rem;max-width:100%;width:auto;outline:none;border:0;border-radius:0;vertical-align:baseline;font-size:.875rem;font-family:inherit;line-height:inherit}.tag-inner-input:focus{box-shadow:none}.tag-hidden-input{display:none}.tag-input .tag{display:inline-block;box-sizing:border-box;margin-bottom:.25rem;padding:0 .375rem;border-radius:3px;background-color:#ededed;font-size:.875rem;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tag-input.disabled,.tag-input.disabled .tag-inner-input{background-color:#f7f7f7}.tag-input.disabled .tag{background-color:#e3e3e3}.tag-remove{display:inline-block;margin-left:.25rem;padding:0 .125rem;color:#262626;font-style:normal;transition:color 150ms}.tag-remove:hover{color:#1e88e5}.tag-remove::after{content:"×";font-weight:600}.title-input{font-size:1.125rem}.file-input{display:none}.file-input-label{display:block;clear:both;margin-bottom:1rem;padding:.5rem;background-color:#f7f7f7}.file-input-label>span{display:block;padding:1.5rem 1rem;border:2px dashed #c9c9c9;color:#262626;text-align:center;transition:background-color 300ms}.file-input-label.drag>span{background-color:#fcfcfc}.toggle-group{display:inline-block;margin:0;margin-bottom:.5rem;border:1px solid #c9c9c9;border-radius:3px;font-size:0}.toggle-group:focus-within{border-color:#1e88e5;box-shadow:0 0 0 2px rgba(4,138,255,.25)}.toggle-group label{margin:0}.toggle-group input[type=radio]{position:absolute;opacity:0}.toggle-group input[type=radio]+span{display:inline-block;padding:.25rem .75rem;border-radius:2px;font-size:.875rem;transition:background-color 150ms,color 150ms}.toggle-group input[type=radio]:hover+span{background-color:#f7f7f7}.toggle-group input[type=radio]:checked+span{background-color:#1e88e5;color:#fff}.toggle-group input[type=radio]:focus+span{background-color:#186db7}.toggle-group[disabled] input[type=radio]+span{background-color:transparent;color:#262626}.toggle-group[disabled] input[type=radio]:checked+span{background-color:#e3e3e3}.toggle-group input[type=radio]:checked:hover+span{background-color:#186db7}input[type=range]{padding:.875rem 0;width:15rem;border:0;-webkit-appearance:none}input[type=range]::-webkit-slider-runnable-track{width:100%;height:.25rem;border:0;border-radius:.125rem;background-color:#e3e3e3;cursor:default}input[type=range]::-webkit-slider-thumb{margin-top:-0.375rem;width:1rem;height:1rem;border:0;border-radius:50%;background-color:#1e88e5;transition:background-color 150ms;-webkit-appearance:none}input[type=range]::-moz-range-track{width:100%;height:.25rem;border:0;border-radius:.125rem;background-color:#e3e3e3}input[type=range]::-moz-range-thumb{width:1rem;height:1rem;border:0;border-radius:50%;background-color:#1e88e5;cursor:default}input[type=range]::-ms-track{width:100%;height:.25rem;border-color:transparent;background-color:transparent;color:transparent;cursor:default}input[type=range]::-ms-fill-lower,input[type=range]::-ms-fill-upper{border:0;border-radius:.125rem;background:#e3e3e3;box-shadow:none}input[type=range]::-ms-thumb{margin-top:0;width:1rem;height:1rem;border:0;border-radius:50%;background-color:#1e88e5;cursor:default}input[type=range]:focus{box-shadow:none}input[type=range]:hover::-webkit-slider-thumb{background-color:#186db7}input[type=range][disabled]{background-color:transparent}input[type=range][disabled]::-webkit-slider-thumb,input[type=range][disabled]::-moz-range-thumb,input[type=range][disabled]::-ms-thumb{background-color:#7d7d7d}input[type=range]:focus::-webkit-slider-thumb{background-color:#186db7;box-shadow:0 0 0 2px rgba(4,138,255,.25)}input[type=range]:focus::-moz-range-thumb{background-color:#186db7;box-shadow:0 0 0 2px rgba(4,138,255,.25)}input[type=range]:focus::-ms-thumb{background-color:#186db7;box-shadow:0 0 0 2px rgba(4,138,255,.25)}.range-input-value{padding:0 .5rem;vertical-align:.1875rem;font-size:.875rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.array-input{margin-bottom:.5rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.array-input-row{margin:0 -0.5rem;padding:.25rem .5rem;white-space:nowrap}.array-input-key,.array-input-value{display:inline-block;margin-bottom:0}.array-input-key{margin-right:.125rem;width:30%}.array-input-value{margin-right:.25rem;width:81%}@media(min-width: 568px){.array-input-value{width:86%}}.array-input-associative .array-input-value{margin-right:.25rem;width:50%}@media(min-width: 568px){.array-input-associative .array-input-value{width:55%}}.array-input-add,.array-input-remove{padding:0;min-width:0}.array-input-add::before{font-family:Icons,sans-serif}.array-input-remove::before{font-family:Icons,sans-serif}.dropdown{position:relative;display:inline-block;margin-bottom:.5rem}.dropdown-button{margin-bottom:0}.dropdown-button::after{display:inline-block;margin-left:.25rem;height:0;border-top:.25rem solid;border-right:.25rem solid transparent;border-left:.25rem solid transparent;content:" ";vertical-align:.125rem}.dropdown-menu,.dropdown-list{position:absolute;top:100%;left:0;z-index:8;display:none;float:left;margin-top:3px;padding:.25rem 0;min-width:8rem;border:1px solid #c9c9c9;border-radius:3px;background-color:#fcfcfc;box-shadow:1px 1px .75rem 0 rgba(0,0,0,.25)}.dropdown-list{overflow-y:scroll;max-height:10.15625rem;width:100%}.dropdown-item{display:block;padding:.25rem 1rem;width:100%;color:#262626;white-space:nowrap;font-size:.875rem}.dropdown-item:hover{background-color:#ededed;color:#262626}.dropdown-item.selected{background-color:#1e88e5;color:#fff}.dropdown-separator{margin:.25rem 0;height:0;border-top:1px solid #c9c9c9}.CodeMirror{font-family:monospace;height:300px;color:black;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:white}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:black}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0 !important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20, 255, 20, 0.5);-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:bold}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:blue}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:red}.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255, 150, 0, 0.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll !important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none !important;border:none !important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255, 255, 0, 0.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.editor-toolbar{padding:.125rem .25rem;border:1px solid #c9c9c9;border-top-left-radius:3px;border-top-right-radius:3px;background-color:#f7f7f7;font-size:0}.toolbar-button{margin-bottom:0;padding:.5rem;border:0;background-color:#f7f7f7}.toolbar-button:hover,.toolbar-button:focus{background-color:transparent;color:#1e88e5}.toolbar-button:focus{box-shadow:0 0 0 2px rgba(4,138,255,.25)}.editor-textarea{margin-bottom:1rem;padding:.75rem 1rem;min-height:24rem;border:1px solid #c9c9c9;border-radius:3px;font-size:1rem;font-family:"Nunito Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}.editor-textarea:focus{box-shadow:none}.CodeMirror{margin-bottom:1rem;padding:0 1rem;min-height:24rem;border:1px solid #c9c9c9;border-radius:3px;background:#fcfcfc;color:#262626;font-size:1rem;font-family:"Nunito Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}.CodeMirror-lines{padding:.75rem 0}.CodeMirror-lines pre{padding:0 !important}.editor-toolbar+.editor-textarea,.editor-textarea+.CodeMirror{border-top-width:0;border-top-left-radius:0;border-top-right-radius:0}.CodeMirror-cursor{border-left-color:#262626}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler{background-color:inherit}.CodeMirror-selected{background:transparent}.CodeMirror-focused .CodeMirror-selected{background:rgba(30,136,229,.25)}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:rgba(30,136,229,.25)}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:rgba(30,136,229,.25)}.cm-formatting-code-block,.cm-formatting-list{display:inline !important}.cm-formatting,.cm-image-alt-text,.cm-url{display:none}.CodeMirror-activeline .cm-formatting,.CodeMirror-activeline .cm-image-alt-text,.CodeMirror-activeline .cm-url{display:inline}.cm-s-formwork .cm-formatting{color:#7d7d7d}.cm-s-formwork .cm-header-1{font-size:1.75rem}.cm-s-formwork .cm-header-2{font-size:1.5rem}.cm-s-formwork .cm-header-3{font-size:1.25rem}.cm-s-formwork .cm-comment{font-size:.875rem;font-family:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace}.cm-s-formwork .cm-comment.cm-header-1{font-size:1.53125rem}.cm-s-formwork .cm-comment.cm-header-2{font-size:1.3125rem}.cm-s-formwork .cm-comment.cm-header-3{font-size:1.09375rem}.cm-s-formwork .cm-quote{color:#7d7d7d}.cm-s-formwork .cm-formatting-quote+.cm-quote::before{margin-right:.25rem;color:#7d7d7d;content:" ";font-family:Icons,sans-serif}.cm-s-formwork .CodeMirror-activeline .cm-formatting-quote+.cm-quote::before{display:none}.cm-s-formwork .cm-link{color:#1e88e5;text-decoration:underline}.cm-s-formwork .cm-url.cm-formatting,.cm-s-formwork .cm-image-alt-text.cm-formatting,.cm-s-formwork .cm-image-marker{color:#1e88e5}.cm-s-formwork .cm-url,.cm-s-formwork .cm-image-alt-text{color:#7d7d7d;text-decoration:none}.cm-s-formwork .cm-image~.cm-url:not(.cm-formatting){display:inline;padding:0 .25rem;border-radius:3px;background-color:#ededed;color:#262626}.cm-s-formwork .cm-image~.cm-url:not(.cm-formatting)::before{margin-right:.25rem;color:#7d7d7d;content:" ";font-family:Icons,sans-serif}.cm-s-formwork .CodeMirror-activeline .cm-image~.cm-url:not(.cm-formatting){padding:0;background-color:transparent;color:#7d7d7d}.cm-s-formwork .CodeMirror-activeline .cm-image~.cm-url:not(.cm-formatting)::before{display:none}.cm-s-formwork .cm-hr{color:#7d7d7d}.cm-s-formwork .cm-tag{color:#25a35a}.cm-s-formwork .cm-bracket{color:#262626}.cm-s-formwork .cm-attribute{color:#8c68cd}.cm-s-formwork .cm-bracket,.cm-s-formwork .cm-m-xml{font-size:.875rem;font-family:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace}.date-input{position:relative;cursor:default}.calendar{position:absolute;top:100%;z-index:8;display:none;margin:3px 1rem 1rem;padding:.5rem;width:18rem;border:1px solid #c9c9c9;border-radius:3px;background-color:#fcfcfc;box-shadow:1px 1px .75rem 0 rgba(0,0,0,.25);color:#262626}.calendar-header{margin-bottom:.5rem}.calendar-buttons{margin:0 -0.5rem;font-size:0}.calendar-buttons button{margin:0;padding:0 .5rem;width:33.3%;outline:none;border:0;background-color:transparent;color:#262626;font-size:.875rem;cursor:pointer}.calendar-buttons button:hover{color:#1e88e5}.calendar-buttons button:focus{box-shadow:none}.calendar-buttons .currentMonth{font-weight:600}.calendar-table{width:100%}.calendar-table td{width:14%;text-align:center;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.calendar-header-day{font-size:.875rem}.calendar-day{border-radius:3px;transition:background-color 150ms,color 150ms}.calendar-day:hover{background-color:#186db7;color:#fff}.calendar-day.selected{background-color:#1e88e5;color:#fff}.calendar-prev-month-day,.calendar-next-month-day{color:#c9c9c9}.calendar-separator{margin:.5rem -0.5rem;height:0;border-top:1px solid #c9c9c9}.image-picker-thumbnails{overflow:auto;margin-bottom:1rem;padding:.5rem;height:15rem}.image-picker-thumbnail{position:relative;display:inline-block;box-sizing:border-box;margin:.25rem;padding:.5rem;width:8rem;height:8rem;border:1px solid #c9c9c9;background-position:center;background-origin:content-box;background-size:contain;background-repeat:no-repeat}.image-picker-thumbnail::after{position:absolute;right:.75rem;bottom:.5rem;left:.75rem;display:block;padding:0 .375rem;border-radius:3px;background-color:rgba(227,227,227,.9);content:attr(data-filename);text-align:center;font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-picker-thumbnail.selected{border-color:#1e88e5;box-shadow:0 0 0 2px rgba(4,138,255,.25)}.image-picker-empty-state{margin:3rem auto 4rem;text-align:center}.image-picker-empty-state-icon{color:#c9c9c9;font-size:2rem}.files-list{margin:0;margin-bottom:1rem;padding:0;list-style-type:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.files-item{display:flex;align-items:center}.files-item-cell{overflow:hidden;padding:.25rem;white-space:nowrap;font-size:.875rem}.file-name{flex:0 0 80%;max-width:80%;font-size:.9375rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-name::before{margin-right:.5rem;color:#262626;font-size:1rem;font-family:Icons,sans-serif}.file-name.file-type-image::before{font-family:Icons,sans-serif}.file-name.file-type-document::before{font-family:Icons,sans-serif}.file-name.file-type-audio::before{font-family:Icons,sans-serif}.file-name.file-type-video::before{font-family:Icons,sans-serif}.file-name.file-type-archive::before{font-family:Icons,sans-serif}.file-size{color:#7d7d7d}.file-actions{flex:0 0 20%;max-width:20%;text-align:right;font-size:1rem}.tabs{overflow-x:auto;margin-bottom:1rem;padding:2px 2px 0;border-bottom:1px solid #e3e3e3;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tabs-tab{display:inline-block;padding:.5rem 1.25rem;color:#262626;cursor:pointer}.tabs-tab:hover{color:#262626}.tabs-tab.active{border-bottom:3px solid #1e88e5;font-weight:600}.caption+.tabs{margin-top:-0.5rem}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:16;background-color:rgba(0,0,0,.75)}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:flex;display:none;align-items:center;outline:0}.modal.show{display:block;display:flex}.modal-content{margin:3rem .5rem;padding:2rem;max-width:26rem;border-radius:3px;background-color:#fcfcfc}@media(min-width: 26rem){.modal-content{margin:3rem auto}}.modal-size-large{max-width:40rem;width:40rem}@media(max-width: 40rem){.modal-size-large{margin:3rem .5rem}}.modal-error{margin:-2rem -2rem 1rem -2rem;padding:1rem;background-color:#e74c3b;color:#fcfcfc}.modal-text{margin-bottom:2.5rem}.notification-container{position:fixed;top:20px;right:20px;z-index:12}.notification{position:relative;overflow:hidden;margin-bottom:.5rem;padding:1.5rem 2.5rem;width:350px;border-radius:3px;background-color:#ededed;box-shadow:1px 1px .75rem 0 rgba(0,0,0,.25);text-overflow:ellipsis;cursor:default;transition:top 300ms ease-in,opacity 150ms;animation:fadeInRight 300ms cubic-bezier(0.4, 0, 0.2, 1)}.notification:hover{opacity:.95}.notification.fadeout{opacity:0;animation:fadeOutRight 300ms cubic-bezier(0.4, 0, 0.2, 1)}.notification::before{position:absolute;top:50%;left:1rem;display:block;font-size:1.25rem;transform:translate(0, -50%)}.notification-info,.notification-success,.notification-warning,.notification-error{padding-left:3.25rem}.notification-info{background-color:#1e88e5;color:#fff}.notification-success{background-color:#25a259;color:#fff}.notification-warning{background-color:#c77e0a;color:#fff}.notification-error{background-color:#d52d1a;color:#fff}.notification-info::before{font-family:Icons,sans-serif}.notification-success::before{font-family:Icons,sans-serif}.notification-warning::before{font-family:Icons,sans-serif}.notification-error::before{font-family:Icons,sans-serif}.tooltip{position:absolute;z-index:20;display:none;padding:.25rem;min-width:2rem;border-radius:3px;background-color:rgba(38,38,38,.8);color:#fcfcfc;text-align:center;font-size:.75rem;pointer-events:none}.spinner{display:inline-block;margin-right:.5rem}.spinner::before{display:inline-block;width:.8rem;height:.8rem;border-width:.2rem;border-style:solid;border-color:#1e88e5;border-bottom-color:transparent;border-left-color:transparent;border-radius:50%;color:transparent;content:" ";vertical-align:text-top;text-align:center;font-size:.625rem;line-height:1.3;transition:border 500ms;transition-timing-function:ease-out;animation:750ms spin infinite linear}.spinner-info::before{border-color:#1e88e5;color:#1e88e5;animation:none;font-family:Icons,sans-serif}.spinner-success::before{border-color:#2ecc70;color:#2ecc70;animation:none;font-family:Icons,sans-serif}.spinner-error::before{border-color:#e74c3b;color:#e74c3b;animation:none;font-family:Icons,sans-serif}.ct-label{fill:rgba(0, 0, 0, 0.4);color:rgba(0, 0, 0, 0.4);font-size:.75rem;line-height:1}.ct-chart-line .ct-label,.ct-chart-bar .ct-label{display:block;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex}.ct-chart-pie .ct-label,.ct-chart-donut .ct-label{dominant-baseline:central}.ct-label.ct-horizontal.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-label.ct-horizontal.ct-end{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-label.ct-vertical.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-end;-webkit-justify-content:flex-end;-ms-flex-pack:flex-end;justify-content:flex-end;text-align:right;text-anchor:end}.ct-label.ct-vertical.ct-end{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar .ct-label.ct-horizontal.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;text-anchor:start}.ct-chart-bar .ct-label.ct-horizontal.ct-end{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:flex-end;-webkit-justify-content:flex-end;-ms-flex-pack:flex-end;justify-content:flex-end;text-align:right;text-anchor:end}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:end}.ct-grid{stroke:rgba(0, 0, 0, 0.2);stroke-width:1px;stroke-dasharray:2px}.ct-grid-background{fill:none}.ct-point{stroke-width:10px;stroke-linecap:round}.ct-line{fill:none;stroke-width:4px}.ct-area{stroke:none;fill-opacity:.1}.ct-bar{fill:none;stroke-width:10px}.ct-slice-donut{fill:none;stroke-width:60px}.ct-series-a .ct-point,.ct-series-a .ct-line,.ct-series-a .ct-bar,.ct-series-a .ct-slice-donut{stroke:#d70206}.ct-series-a .ct-slice-pie,.ct-series-a .ct-slice-donut-solid,.ct-series-a .ct-area{fill:#d70206}.ct-series-b .ct-point,.ct-series-b .ct-line,.ct-series-b .ct-bar,.ct-series-b .ct-slice-donut{stroke:#f05b4f}.ct-series-b .ct-slice-pie,.ct-series-b .ct-slice-donut-solid,.ct-series-b .ct-area{fill:#f05b4f}.ct-series-c .ct-point,.ct-series-c .ct-line,.ct-series-c .ct-bar,.ct-series-c .ct-slice-donut{stroke:#f4c63d}.ct-series-c .ct-slice-pie,.ct-series-c .ct-slice-donut-solid,.ct-series-c .ct-area{fill:#f4c63d}.ct-series-d .ct-point,.ct-series-d .ct-line,.ct-series-d .ct-bar,.ct-series-d .ct-slice-donut{stroke:#d17905}.ct-series-d .ct-slice-pie,.ct-series-d .ct-slice-donut-solid,.ct-series-d .ct-area{fill:#d17905}.ct-series-e .ct-point,.ct-series-e .ct-line,.ct-series-e .ct-bar,.ct-series-e .ct-slice-donut{stroke:#453d3f}.ct-series-e .ct-slice-pie,.ct-series-e .ct-slice-donut-solid,.ct-series-e .ct-area{fill:#453d3f}.ct-series-f .ct-point,.ct-series-f .ct-line,.ct-series-f .ct-bar,.ct-series-f .ct-slice-donut{stroke:#59922b}.ct-series-f .ct-slice-pie,.ct-series-f .ct-slice-donut-solid,.ct-series-f .ct-area{fill:#59922b}.ct-series-g .ct-point,.ct-series-g .ct-line,.ct-series-g .ct-bar,.ct-series-g .ct-slice-donut{stroke:#0544d3}.ct-series-g .ct-slice-pie,.ct-series-g .ct-slice-donut-solid,.ct-series-g .ct-area{fill:#0544d3}.ct-series-h .ct-point,.ct-series-h .ct-line,.ct-series-h .ct-bar,.ct-series-h .ct-slice-donut{stroke:#6b0392}.ct-series-h .ct-slice-pie,.ct-series-h .ct-slice-donut-solid,.ct-series-h .ct-area{fill:#6b0392}.ct-series-i .ct-point,.ct-series-i .ct-line,.ct-series-i .ct-bar,.ct-series-i .ct-slice-donut{stroke:#f05b4f}.ct-series-i .ct-slice-pie,.ct-series-i .ct-slice-donut-solid,.ct-series-i .ct-area{fill:#f05b4f}.ct-series-j .ct-point,.ct-series-j .ct-line,.ct-series-j .ct-bar,.ct-series-j .ct-slice-donut{stroke:#dda458}.ct-series-j .ct-slice-pie,.ct-series-j .ct-slice-donut-solid,.ct-series-j .ct-area{fill:#dda458}.ct-series-k .ct-point,.ct-series-k .ct-line,.ct-series-k .ct-bar,.ct-series-k .ct-slice-donut{stroke:#eacf7d}.ct-series-k .ct-slice-pie,.ct-series-k .ct-slice-donut-solid,.ct-series-k .ct-area{fill:#eacf7d}.ct-series-l .ct-point,.ct-series-l .ct-line,.ct-series-l .ct-bar,.ct-series-l .ct-slice-donut{stroke:#86797d}.ct-series-l .ct-slice-pie,.ct-series-l .ct-slice-donut-solid,.ct-series-l .ct-area{fill:#86797d}.ct-series-m .ct-point,.ct-series-m .ct-line,.ct-series-m .ct-bar,.ct-series-m .ct-slice-donut{stroke:#b2c326}.ct-series-m .ct-slice-pie,.ct-series-m .ct-slice-donut-solid,.ct-series-m .ct-area{fill:#b2c326}.ct-series-n .ct-point,.ct-series-n .ct-line,.ct-series-n .ct-bar,.ct-series-n .ct-slice-donut{stroke:#6188e2}.ct-series-n .ct-slice-pie,.ct-series-n .ct-slice-donut-solid,.ct-series-n .ct-area{fill:#6188e2}.ct-series-o .ct-point,.ct-series-o .ct-line,.ct-series-o .ct-bar,.ct-series-o .ct-slice-donut{stroke:#a748ca}.ct-series-o .ct-slice-pie,.ct-series-o .ct-slice-donut-solid,.ct-series-o .ct-area{fill:#a748ca}.ct-square{display:block;position:relative;width:100%}.ct-square:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:100%}.ct-square:after{content:"";display:table;clear:both}.ct-square>svg{display:block;position:absolute;top:0;left:0}.ct-minor-second{display:block;position:relative;width:100%}.ct-minor-second:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:93.75%}.ct-minor-second:after{content:"";display:table;clear:both}.ct-minor-second>svg{display:block;position:absolute;top:0;left:0}.ct-major-second{display:block;position:relative;width:100%}.ct-major-second:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:88.8888888889%}.ct-major-second:after{content:"";display:table;clear:both}.ct-major-second>svg{display:block;position:absolute;top:0;left:0}.ct-minor-third{display:block;position:relative;width:100%}.ct-minor-third:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:83.3333333333%}.ct-minor-third:after{content:"";display:table;clear:both}.ct-minor-third>svg{display:block;position:absolute;top:0;left:0}.ct-major-third{display:block;position:relative;width:100%}.ct-major-third:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:80%}.ct-major-third:after{content:"";display:table;clear:both}.ct-major-third>svg{display:block;position:absolute;top:0;left:0}.ct-perfect-fourth{display:block;position:relative;width:100%}.ct-perfect-fourth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:75%}.ct-perfect-fourth:after{content:"";display:table;clear:both}.ct-perfect-fourth>svg{display:block;position:absolute;top:0;left:0}.ct-perfect-fifth{display:block;position:relative;width:100%}.ct-perfect-fifth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:66.6666666667%}.ct-perfect-fifth:after{content:"";display:table;clear:both}.ct-perfect-fifth>svg{display:block;position:absolute;top:0;left:0}.ct-minor-sixth{display:block;position:relative;width:100%}.ct-minor-sixth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:62.5%}.ct-minor-sixth:after{content:"";display:table;clear:both}.ct-minor-sixth>svg{display:block;position:absolute;top:0;left:0}.ct-golden-section{display:block;position:relative;width:100%}.ct-golden-section:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:61.804697157%}.ct-golden-section:after{content:"";display:table;clear:both}.ct-golden-section>svg{display:block;position:absolute;top:0;left:0}.ct-major-sixth{display:block;position:relative;width:100%}.ct-major-sixth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:60%}.ct-major-sixth:after{content:"";display:table;clear:both}.ct-major-sixth>svg{display:block;position:absolute;top:0;left:0}.ct-minor-seventh{display:block;position:relative;width:100%}.ct-minor-seventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:56.25%}.ct-minor-seventh:after{content:"";display:table;clear:both}.ct-minor-seventh>svg{display:block;position:absolute;top:0;left:0}.ct-major-seventh{display:block;position:relative;width:100%}.ct-major-seventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:53.3333333333%}.ct-major-seventh:after{content:"";display:table;clear:both}.ct-major-seventh>svg{display:block;position:absolute;top:0;left:0}.ct-octave{display:block;position:relative;width:100%}.ct-octave:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:50%}.ct-octave:after{content:"";display:table;clear:both}.ct-octave>svg{display:block;position:absolute;top:0;left:0}.ct-major-tenth{display:block;position:relative;width:100%}.ct-major-tenth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:40%}.ct-major-tenth:after{content:"";display:table;clear:both}.ct-major-tenth>svg{display:block;position:absolute;top:0;left:0}.ct-major-eleventh{display:block;position:relative;width:100%}.ct-major-eleventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:37.5%}.ct-major-eleventh:after{content:"";display:table;clear:both}.ct-major-eleventh>svg{display:block;position:absolute;top:0;left:0}.ct-major-twelfth,.ct-chart{display:block;position:relative;width:100%}.ct-major-twelfth:before,.ct-chart:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:33.3333333333%}.ct-major-twelfth:after,.ct-chart:after{content:"";display:table;clear:both}.ct-major-twelfth>svg,.ct-chart>svg{display:block;position:absolute;top:0;left:0}.ct-double-octave{display:block;position:relative;width:100%}.ct-double-octave:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:25%}.ct-double-octave:after{content:"";display:table;clear:both}.ct-double-octave>svg{display:block;position:absolute;top:0;left:0}.ct-chart{position:relative;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ct-label{color:rgba(38,38,38,.4);fill:rgba(38,38,38,.4)}.ct-grid{stroke:rgba(38,38,38,.2)}.ct-series-a .ct-line,.ct-series-a .ct-point{stroke:#1e88e5}.ct-series-a .ct-area{fill:#1e88e5}.ct-series-b .ct-line,.ct-series-b .ct-point{stroke:#f39c11}.ct-series-b .ct-area{fill:#f39c11}.ct-label.ct-horizontal,.ct-label.ct-horizontal.ct-end{display:inline-block;min-width:3rem;width:auto !important;color:#262626;text-align:center;transform:translateX(-50%)}.ct-legend{font-size:.875rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ct-legend-right{text-align:right}.ct-legend-label{white-space:nowrap}.ct-legend-label::before{display:inline-block;margin:0 .375rem;font-size:.75rem;font-family:Icons,sans-serif}.ct-legend-label.ct-series-a::before{color:#1e88e5}.ct-legend-label.ct-series-b::before{color:#f39c11}@keyframes fadeInRight{from{opacity:0;transform:translate3d(150%, 0, 0)}to{opacity:1;transform:none}}@keyframes fadeOutRight{from{opacity:1;transform:none}to{opacity:0;transform:translate3d(150%, 0, 0)}}@keyframes shake{from,to{transform:translate3d(0, 0, 0)}10%,50%,70%,90%{transform:translate3d(-10px, 0, 0)}30%,70%{transform:translate3d(10px, 0, 0)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.login-modal-container{margin:3rem .5rem;padding:2rem;max-width:24rem;border-radius:3px;background-color:#fcfcfc}@media(min-width: 24rem){.login-modal-container{margin:3rem auto}}.login-modal-info,.login-modal-success,.login-modal-warning,.login-modal-error{position:relative;margin:-2rem -2rem 1rem -2rem;padding:1rem 2rem 1rem 3.5rem;border-top-left-radius:3px;border-top-right-radius:3px}.login-modal-info a,.login-modal-success a,.login-modal-warning a,.login-modal-error a{display:block;color:#fff;text-decoration:underline;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.login-modal-info::before,.login-modal-success::before,.login-modal-warning::before,.login-modal-error::before{position:absolute;top:50%;left:1rem;display:block;font-size:1.25rem;font-family:Icons,sans-serif;transform:translate(0, -50%)}.login-modal-info{background-color:#1e88e5;color:#fff}.login-modal-info::before{font-family:Icons,sans-serif}.login-modal-success{background-color:#25a35a;color:#fff}.login-modal-success::before{font-family:Icons,sans-serif}.login-modal-warning{background-color:#f39c11;color:#fff}.login-modal-warning::before{font-family:Icons,sans-serif}.login-modal-error{background-color:#e74c3b;color:#fff}.login-modal-error::before{font-family:Icons,sans-serif}.title-bar{position:fixed;top:0;right:0;left:0;z-index:8;padding:1rem;padding-left:4rem;background-color:#ededed;box-shadow:0 0 .75rem -0.25rem rgba(0,0,0,.05);color:#262626;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(min-width: 768px){.title-bar{left:14rem;padding-left:1.5rem}}.panel-title{float:left}.view-site{float:right;color:#262626}.view-site:hover{color:#1e88e5}.view-site i{margin-left:.5rem}.sidebar{position:fixed;top:0;bottom:0;left:0;z-index:10;padding:1rem 1.5rem;width:14rem;background:linear-gradient(to bottom, #fcfcfc 0%, #f7f7f7 100%);background-color:#fcfcfc;box-shadow:0 0 .75rem -0.25rem rgba(0,0,0,.05);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sidebar.show{display:block}.sidebar-wrapper{overflow-y:auto;height:calc(100% - 9rem)}.toggle-navigation{position:fixed;top:.75rem;left:.75rem;z-index:12;margin:0;border:none;background-color:transparent;font-size:1rem;cursor:pointer}.toggle-navigation:hover{background-color:transparent;box-shadow:none;color:#1e88e5}.toggle-navigation:focus{background-color:transparent;box-shadow:none}.logo{margin-bottom:2rem;color:#262626;text-align:center;font-weight:600;font-size:1.184rem;line-height:1.5rem}@media(min-width: 768px){.logo{text-align:left}}.logo img{margin-right:.25rem;height:1.5rem;vertical-align:-0.25rem}.logo a{padding-top:2px;color:#262626}.sidebar-navigation{margin:0;margin-bottom:1rem;padding:0;list-style-type:none}.sidebar-navigation:last-child{margin-bottom:0}.sidebar-navigation>li{position:relative;margin:0;margin-bottom:.5rem;padding:.25rem 0;padding-left:1rem}.sidebar-navigation>li a{color:#262626}.sidebar-navigation>li.active{font-weight:600}.sidebar-navigation>li.active::before{position:absolute;top:0;bottom:0;left:0;width:3px;background-color:#1e88e5;content:" "}.admin-user-card{display:flex;align-items:center;margin-bottom:2rem;cursor:pointer}.admin-user-card:hover img{box-shadow:0 0 0 .5rem #e3e3e3}.admin-user-avatar{width:48px}.admin-user-avatar img{width:48px;border-radius:50%;transition:box-shadow 300ms ease-out}.admin-user-details{padding:0 .75rem}.admin-user-fullname{color:#262626}.admin-user-username{color:#7d7d7d;font-size:.875rem}.main{margin-top:4.5rem}@media(min-width: 768px){.main{margin:1.875rem;margin-top:4.5rem;margin-left:15.875rem}}.component{margin-bottom:1rem;padding:1.5rem;border-radius:3px;background-color:#fcfcfc;box-shadow:0 0 .75rem -0.25rem rgba(0,0,0,.05)}.component::before,.component::after{display:table;content:""}.component::after{clear:both}.caption{margin-bottom:1rem;text-transform:uppercase;letter-spacing:1px;font-weight:600;font-size:.9375rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.separator{height:.5rem}.separator-l{height:1rem}.section-header{margin-bottom:.5rem;padding:.25rem .5rem;border-bottom:1px solid #e3e3e3;font-weight:600;font-size:1rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sort-handle{margin-right:.25rem;margin-bottom:0;width:.75rem;cursor:grab}.sort-handle::before{color:#969696;font-size:.75rem;cursor:inherit;font-family:Icons,sans-serif}.sortable-chosen,.sortable-ghost{background-color:#fcfcfc;cursor:grabbing}.sortable-chosen *{cursor:grabbing}.sortable-fallback{box-shadow:0 0 .75rem .25rem rgba(0,0,0,.15)}.pages-list{margin:0;padding:0;list-style-type:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pages-list .pages-list{display:none}.pages-list-headers{display:none;padding:.25rem 0;font-weight:600;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.page-children-toggle{display:inline-block;margin:0 .25rem .125rem 0;padding:0;min-width:auto;border-color:transparent;background-color:transparent;color:#262626;font-weight:400;font-size:.875rem;cursor:pointer}.page-children-toggle:hover,.page-children-toggle:focus{border-color:transparent;background-color:transparent}.page-children-toggle:focus{box-shadow:0 0 0 2px rgba(4,138,255,.25)}.toggle-collapsed::before{font-family:Icons,sans-serif}.toggle-expanded::before{font-family:Icons,sans-serif}.pages-item{padding:.5rem 0;border-bottom:1px solid #e3e3e3}.pages-item:hover{background-color:#f7f7f7}.pages-item .sort-handle{display:none}.pages-list-top{border-top:1px solid #e3e3e3}.pages-item-cell,.pages-headers-cell{padding:.25rem .5rem;font-size:.875rem}.pages-item-cell div,.pages-headers-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-title{margin:-2px;padding:2px;font-size:1rem}.page-language{display:inline-block;padding:.125rem .25rem;min-width:1.125rem;border-radius:3px;background-color:#d2e7fa;color:#1e88e5;text-align:center;font-weight:600;font-size:.875rem;line-height:1}button .page-language,.button .page-language{font-size:.75rem}.page-route{color:#7d7d7d;font-size:.875rem}.page-route-changeable{margin:-2px;padding:2px}.page-status-label::before{display:inline-block;margin-right:.375rem;font-size:.75rem;font-family:Icons,sans-serif}.page-status-published .page-status-label::before{color:#2ecc70}.page-status-not-published .page-status-label::before{color:#e74c3b}.page-status-not-routable .page-status-label::before{color:#f39c11}.page-date,.page-status,.page-actions{display:none}.page-actions .button-link{font-size:1rem}@media(min-width: 568px){.pages-item,.pages-list-headers{display:flex;align-items:center}.pages-item-cell,.pages-headers-cell{display:block}.page-details{flex:0 0 55%;max-width:55%}.page-date,.page-status,.page-actions{flex:0 0 15%;max-width:15%;text-align:center}}.pages-level-2 .page-details{padding-left:1.5rem}.pages-level-3 .page-details{padding-left:3rem}.pages-level-4 .page-details{padding-left:4.5rem}.pages-level-5 .page-details{padding-left:6rem}.page-search{padding-right:1.5rem;max-width:28rem;background:#fcfcfc url("data:image/svg+xml;utf8,") no-repeat right .5rem center;background-size:.875rem .875rem}.page-info{margin-bottom:.75rem;padding:0 .25rem}.page-info>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-slug-change{margin:0;padding:0;border-color:transparent;background-color:transparent;color:#7d7d7d;cursor:pointer}.page-slug-change:hover,.page-slug-change:focus{border-color:transparent;background-color:transparent;color:#7d7d7d}.page-slug-change:focus{box-shadow:0 0 0 2px rgba(4,138,255,.25)}.page-slug-change::after{display:inline-block;margin-left:.25rem;color:#262626;content:"";font-family:Icons,sans-serif;opacity:0;transition:opacity 150ms}.page-slug-change:hover::after,.page-slug-change:focus::after{opacity:1}.dragging [data-sortable=false] .pages-item:hover{background-color:#fce8e5;cursor:no-drop}.options-form .checkbox-label{margin-bottom:.5rem;font-size:1rem}.info-data{margin-bottom:1rem;width:100%;table-layout:fixed}.info-data td{overflow:hidden;padding:.5rem;vertical-align:top}.info-data-key{width:25%}.info-data-value{width:75%;word-break:break-word;font-size:.875rem;font-family:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace}.user-summary{display:flex;align-items:center}.user-summary-avatar{flex:0 0 33.33333%;padding:.75rem;max-width:33.33333%;text-align:center}.user-summary-avatar img{width:180px;border-radius:50%}.user-summary-data{padding:.75rem}.users-list{border-top:1px solid #e3e3e3;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.users-list-headers{display:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.users-item{padding:.5rem 0;border-bottom:1px solid #e3e3e3}.users-item:hover{background-color:#f7f7f7}.users-item-cell,.users-headers-cell{padding:.125rem .25rem;vertical-align:middle;font-size:.875rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-username,.user-fullname{display:inline-block}.users-item .user-username{font-size:1rem}.user-last-access,.user-actions{display:none}.user-actions .button-link{font-size:1rem}@media(min-width: 568px){.users-item,.users-list-headers{display:flex;align-items:center}.users-list-headers{padding:.25rem 0;font-weight:600}.users-item-cell,.users-headers-cell{display:block;padding:.25rem .5rem}.user-username,.user-last-access{flex:0 0 20%;max-width:20%}.user-fullname,.user-email{flex:0 0 25%;max-width:25%}.user-last-access,.user-actions{text-align:center}.user-actions{flex:0 0 10%;max-width:10%}}.error-container{margin:4rem auto;padding:1rem;max-width:32rem;text-align:center}.error-container h1{color:#969696;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.error-container h2{margin-bottom:1rem;font-size:2rem}.error-code{display:block;font-weight:400;font-size:8rem}.error-status{display:block;font-size:1.75rem}.error-container .action{font-size:1.125rem}.error-container .logo{margin:2rem auto;width:3.5rem;height:3.5rem;background-position:center;background-size:cover;background-repeat:no-repeat}@font-face{font-weight:normal;font-style:normal;font-family:"Icons";src:url("../icons/icons.eot");src:url("../icons/icons.eot#iefix") format("embedded-opentype"),url("../icons/icons.woff2") format("woff2"),url("../icons/icons.woff") format("woff"),url("../icons/icons.ttf") format("truetype"),url("../icons/icons.svg#icons") format("svg")}[class^=i-]::before,[class*=" i-"]::before{display:inline-block;width:1.25em;text-decoration:inherit;text-transform:none;font-weight:normal;font-style:normal;font-variant:normal;font-family:Icons,sans-serif;line-height:1em}.i-align-center::before{content:""}.i-align-left::before{content:""}.i-align-justify::before{content:""}.i-align-right::before{content:""}.i-archive::before{content:""}.i-arrow-down::before{content:""}.i-arrow-left::before{content:""}.i-arrow-right::before{content:""}.i-arrow-up::before{content:""}.i-at::before{content:""}.i-bars::before,.sort-handle::before{content:""}.i-bell::before{content:""}.i-bold::before{content:""}.i-bolt::before{content:""}.i-book::before{content:""}.i-box-open::before{content:""}.i-box::before{content:""}.i-boxes::before{content:""}.i-briefcase::before{content:""}.i-calendar::before{content:""}.i-chart-area::before{content:""}.i-chart-bar::before{content:""}.i-check-circle::before,.notification-success::before,.login-modal-success::before{content:""}.i-check-double::before{content:""}.i-check::before,.spinner-success::before{content:""}.i-chevron-down::before,.toggle-collapsed::before{content:""}.i-chevron-right::before{content:""}.i-chevron-left::before{content:""}.i-chevron-up::before,.toggle-expanded::before{content:""}.i-circle-open::before{content:""}.i-circle::before,.ct-legend-label::before,.page-status-label::before{content:""}.i-clipboard::before{content:""}.i-cloud-download::before{content:""}.i-cloud-upload::before{content:""}.i-code::before{content:""}.i-cog::before{content:""}.i-comment::before{content:""}.i-cookie-bite::before{content:""}.i-cookie::before{content:""}.i-copy::before{content:""}.i-crop::before{content:""}.i-cut::before{content:""}.i-database::before{content:""}.i-download::before{content:""}.i-edit::before{content:""}.i-ellipsis-v::before{content:""}.i-ellipsis::before{content:""}.i-envelope::before{content:""}.i-error-circle::before,.notification-error::before,.login-modal-error::before{content:""}.i-exclamation-triangle::before,.notification-warning::before,.login-modal-warning::before{content:""}.i-exclamation::before,.spinner-error::before{content:""}.i-external-link-square::before{content:""}.i-external-link::before{content:""}.i-eye-slash::before{content:""}.i-eye::before{content:""}.i-file-archive::before,.file-name.file-type-archive::before{content:""}.i-file-audio::before,.file-name.file-type-audio::before{content:""}.i-file-code::before{content:""}.i-file-image::before,.file-name.file-type-image::before{content:""}.i-file-pdf::before{content:""}.i-file-text::before,.file-name.file-type-document::before{content:""}.i-file-video::before,.file-name.file-type-video::before{content:""}.i-file::before,.file-name::before{content:""}.i-folder-open::before{content:""}.i-folder::before{content:""}.i-font::before{content:""}.i-hashtag::before{content:""}.i-heading::before{content:""}.i-history::before{content:""}.i-home::before{content:""}.i-image::before,.cm-s-formwork .cm-image~.cm-url:not(.cm-formatting)::before{content:""}.i-images::before{content:""}.i-info-circle::before,.notification-info::before,.login-modal-info::before{content:""}.i-info::before,.spinner-info::before{content:""}.i-italic::before{content:""}.i-language::before{content:""}.i-link::before{content:""}.i-list-ol::before{content:""}.i-list-ul::before{content:""}.i-list::before{content:""}.i-location-arrow::before{content:""}.i-lock::before{content:""}.i-markdown::before{content:""}.i-microchip::before{content:""}.i-minus-circle::before{content:""}.i-mobile::before{content:""}.i-paste::before{content:""}.i-pencil::before{content:""}.i-plus-circle::before,.array-input-add::before{content:""}.i-question-circle::before{content:""}.i-quote::before,.cm-s-formwork .cm-formatting-quote+.cm-quote::before{content:""}.i-read-more::before{content:""}.i-redo::before{content:""}.i-rss::before{content:""}.i-search-plus::before{content:""}.i-search::before{content:""}.i-search-minus::before{content:""}.i-stopwatch::before{content:""}.i-sync::before{content:""}.i-table::before{content:""}.i-tablet::before{content:""}.i-tag::before{content:""}.i-tags::before{content:""}.i-tasks::before{content:""}.i-times-circle::before,.array-input-remove::before{content:""}.i-times::before{content:""}.i-trash::before{content:""}.i-underline::before{content:""}.i-undo::before{content:""}.i-user-circle::before{content:""}.i-user::before{content:""}.i-users::before{content:""}.i-move::before{content:""} +@import"https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,400;0,600;1,400;1,600&display=swap";html{font-size:100%;-webkit-text-size-adjust:100%}body{box-sizing:border-box;margin:0;background-color:#f7f7f7;color:#262626;font-family:"Nunito Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.5}*{box-sizing:inherit;line-height:inherit;-webkit-tap-highlight-color:rgba(38,38,38,0)}main{display:block}a{outline-color:rgba(4,138,255,.25);background-color:transparent;color:#1e88e5;text-decoration:none;transition:color 150ms}a:hover{color:#186db7}a:not([href]){cursor:default}img{max-width:100%;border-style:none}button{-webkit-appearance:button}button::-moz-focus-inner{padding:0;border:none}mark{background-color:gold}[hidden]{display:none}.focused{box-shadow:0 0 0 2px rgba(4,138,255,.25)}::selection{background-color:rgba(30,136,229,.25)}::placeholder{color:#7d7d7d}@media(min-width: 568px){.hide-from-xs{display:none}}@media(max-width: 568px){.show-from-xs{display:none}}@media(min-width: 768px){.hide-from-s{display:none}}@media(max-width: 768px){.show-from-s{display:none}}@media(min-width: 992px){.hide-from-m{display:none}}@media(max-width: 992px){.show-from-m{display:none}}@media(min-width: 1200px){.hide-from-l{display:none}}@media(max-width: 1200px){.show-from-l{display:none}}h1,.h1,h2,.h2,h3,.h3,h4,.h4,h5,.h5,h6,.h6{margin-top:0;margin-bottom:.5rem;font-weight:600;line-height:1.2}h1,.h1,h2,.h2,h3,.h3{letter-spacing:-0.027rem}h1,.h1{font-size:2.369rem}h2,.h2{font-size:2.104rem}h3,.h3{font-size:1.777rem}h4,.h4{font-size:1.579rem}h5,.h5{font-size:1.184rem}h6,.h6{font-size:1rem}strong{font-weight:600}p{margin-top:0;margin-bottom:.5rem;line-height:1.5}ul{margin-top:0;margin-bottom:.5rem;margin-left:1.25rem;padding:0;list-style-position:outside}.container,.container-full,.container-no-margin{margin:0 auto;padding:0 15px}.container{max-width:1200px}.container-no-margin{padding-right:0;padding-left:0}.row{display:flex;flex-wrap:wrap;margin:0 -15px}@media(max-width: 768px){.container-no-margin .row{margin:0}.container-no-margin div[class^=col-]{padding:0}}.col-xs,.col-xs-1-12,.col-xs-2-12,.col-xs-1-6,.col-xs-3-12,.col-xs-1-4,.col-xs-4-12,.col-xs-1-3,.col-xs-5-12,.col-xs-6-12,.col-xs-1-2,.col-xs-7-12,.col-xs-8-12,.col-xs-2-3,.col-xs-9-12,.col-xs-3-4,.col-xs-10-12,.col-xs-5-6,.col-xs-11-12,.col-xs-12-12,.col-xs-1-1,.col-s,.col-s-1-12,.col-s-2-12,.col-s-1-6,.col-s-3-12,.col-s-1-4,.col-s-4-12,.col-s-1-3,.col-s-5-12,.col-s-6-12,.col-s-1-2,.col-s-7-12,.col-s-8-12,.col-s-2-3,.col-s-9-12,.col-s-3-4,.col-s-10-12,.col-s-5-6,.col-s-11-12,.col-s-12-12,.col-s-1-1,.col-m,.col-m-1-12,.col-m-2-12,.col-m-1-6,.col-m-3-12,.col-m-1-4,.col-m-4-12,.col-m-1-3,.col-m-5-12,.col-m-6-12,.col-m-1-2,.col-m-7-12,.col-m-8-12,.col-m-2-3,.col-m-9-12,.col-m-3-4,.col-m-10-12,.col-m-5-6,.col-m-11-12,.col-m-12-12,.col-m-1-1,.col-l,.col-l-1-12,.col-l-2-12,.col-l-1-6,.col-l-3-12,.col-l-1-4,.col-l-4-12,.col-l-1-3,.col-l-5-12,.col-l-6-12,.col-l-1-2,.col-l-7-12,.col-l-8-12,.col-l-2-3,.col-l-9-12,.col-l-3-4,.col-l-10-12,.col-l-5-6,.col-l-11-12,.col-l-12-12,.col-l-1-1{padding:0 15px;width:100%}.col-xs{flex:1 0 auto;max-width:100%;width:auto}.col-xs-1-12{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-xs-2-12,.col-xs-1-6{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-xs-3-12,.col-xs-1-4{flex:0 0 25%;max-width:25%}.col-xs-4-12,.col-xs-1-3{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-xs-5-12{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-xs-6-12,.col-xs-1-2{flex:0 0 50%;max-width:50%}.col-xs-7-12{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-xs-8-12,.col-xs-2-3{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-xs-9-12,.col-xs-3-4{flex:0 0 75%;max-width:75%}.col-xs-10-12,.col-xs-5-6{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-xs-11-12{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-xs-12-12,.col-xs-1-1{flex:0 0 100%;max-width:100%}@media(min-width: 768px){.col-s{flex:1 0 auto;max-width:100%;width:auto}.col-s-1-12{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-s-2-12,.col-s-1-6{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-s-3-12,.col-s-1-4{flex:0 0 25%;max-width:25%}.col-s-4-12,.col-s-1-3{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-s-5-12{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-s-6-12,.col-s-1-2{flex:0 0 50%;max-width:50%}.col-s-7-12{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-s-8-12,.col-s-2-3{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-s-9-12,.col-s-3-4{flex:0 0 75%;max-width:75%}.col-s-10-12,.col-s-5-6{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-s-11-12{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-s-12-12,.col-s-1-1{flex:0 0 100%;max-width:100%}}@media(min-width: 992px){.col-m{flex:1 0 auto;max-width:100%;width:auto}.col-m-1-12{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-m-2-12,.col-m-1-6{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-m-3-12,.col-m-1-4{flex:0 0 25%;max-width:25%}.col-m-4-12,.col-m-1-3{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-m-5-12{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-m-6-12,.col-m-1-2{flex:0 0 50%;max-width:50%}.col-m-7-12{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-m-8-12,.col-m-2-3{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-m-9-12,.col-m-3-4{flex:0 0 75%;max-width:75%}.col-m-10-12,.col-m-5-6{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-m-11-12{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-m-12-12,.col-m-1-1{flex:0 0 100%;max-width:100%}}@media(min-width: 1200px){.col-l{flex:1 0 auto;max-width:100%;width:auto}.col-l-1-12{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-l-2-12,.col-l-1-6{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-l-3-12,.col-l-1-4{flex:0 0 25%;max-width:25%}.col-l-4-12,.col-l-1-3{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-l-5-12{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-l-6-12,.col-l-1-2{flex:0 0 50%;max-width:50%}.col-l-7-12{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-l-8-12,.col-l-2-3{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-l-9-12,.col-l-3-4{flex:0 0 75%;max-width:75%}.col-l-10-12,.col-l-5-6{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-l-11-12{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-l-12-12,.col-l-1-1{flex:0 0 100%;max-width:100%}}button,.button{display:inline-block;overflow:visible;margin:0;margin-right:.25rem;margin-bottom:.5rem;padding:.375rem .5rem;min-width:2rem;outline:none;border:1px solid #ededed;border-radius:3px;background-color:#ededed;color:#262626;vertical-align:middle;white-space:nowrap;font-size:.875rem;font-family:"Nunito Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.15;cursor:default;transition:border-color 150ms,background-color 150ms,color 150ms;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}button:hover,button:focus,.button:hover,.button:focus{border-color:#e3e3e3;background-color:#e3e3e3;color:#262626}button:focus,.button:focus{box-shadow:0 0 0 2px rgba(38,38,38,.25)}button[disabled],button[disabled]:hover,button.disabled,button.disabled:hover,.button[disabled],.button[disabled]:hover,.button.disabled,.button.disabled:hover{border-color:#f7f7f7;background-color:#f7f7f7;color:#c9c9c9;pointer-events:none}button.active,.button.active{border-color:#c9c9c9;background-color:#c9c9c9}a.button{text-align:center}.button-right{float:right;margin-right:0;margin-left:.25rem}.button-accent{border:1px solid #1e88e5;background-color:#1e88e5;color:#fff}.button-accent:hover,.button-accent:focus{border-color:#186db7;background-color:#186db7;color:#fff}.button-accent:focus{box-shadow:0 0 0 2px rgba(4,138,255,.25)}.button-success{border:1px solid #2ecc70;background-color:#2ecc70;color:#fff}.button-success:hover,.button-success:focus{border-color:#25a35a;background-color:#25a35a;color:#fff}.button-success:focus{box-shadow:0 0 0 2px rgba(37,163,90,.25)}.button-warning{border:1px solid #f39c11;background-color:#f39c11;color:#fff}.button-warning:hover,.button-warning:focus{border-color:#c27d0e;background-color:#c27d0e;color:#fff}.button-warning:focus{box-shadow:0 0 0 2px rgba(194,125,14,.25)}.button-error{border:1px solid #e74c3b;background-color:#e74c3b;color:#fff}.button-error:hover,.button-error:focus{border-color:#b93d2f;background-color:#b93d2f;color:#fff}.button-error:focus{box-shadow:0 0 0 2px rgba(185,61,47,.25)}.button-link{margin:0;border:0;background-color:transparent;font-size:inherit;cursor:pointer}.button-link:hover,.button-link:focus{background-color:transparent;color:#1e88e5}.button-link:focus{box-shadow:0 0 0 2px rgba(4,138,255,.25)}.button-link[disabled],.button-link[disabled]:hover,.button-link.disabled,.button-link.disabled:hover{background-color:transparent;cursor:default}input,select,textarea{display:inline-block;margin:0;margin-bottom:.5rem;padding:.25rem .5rem;width:100%;border:1px solid #c9c9c9;border-radius:3px;background-color:#fcfcfc;color:#262626;vertical-align:middle;font-size:.875rem;font-family:"Nunito Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.5;-webkit-appearance:none;-moz-appearance:none}input:focus,select:focus,textarea:focus{outline:none;border-color:#1e88e5;box-shadow:0 0 0 2px rgba(4,138,255,.25)}input[disabled],select[disabled],textarea[disabled]{background-color:#ededed;color:#7d7d7d}input[readonly],select[readonly],textarea[readonly]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}input[type=checkbox],input[type=radio]{margin-bottom:0;padding:0;width:auto;height:inherit;vertical-align:text-top}input[type=checkbox]:focus,input[type=radio]:focus{box-shadow:none}input[type=file]{padding:0;border:none;border-radius:0}input[type=file]::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}select{padding:.25rem 1.5rem .25rem .5rem;background:#fcfcfc url("data:image/svg+xml;utf8,") no-repeat right .75rem center;background-color:#fcfcfc;background-size:8px 6px}select:-moz-focusring{color:transparent;text-shadow:0 0 0 #262626}textarea{overflow:auto;min-height:3.125rem;max-height:16.25rem;height:5.75rem;resize:vertical}.input-accent{border-color:#1e88e5}.input-success{border-color:#2ecc70}.input-warning{border-color:#f39c11}.input-error{border-color:#e74c3b}.input-invalid{animation:shake 500ms;animation-fill-mode:both}.input-wrap{position:relative}.input-wrap input{padding-right:1.5rem}.input-reset{position:absolute;top:calc(0.25rem + 1px);right:.25rem;color:#262626;font-size:.875rem;line-height:1.5;transition:color 150ms}.input-reset:hover{color:#1e88e5}label{display:inline-block;margin-bottom:.25rem;font-size:.875rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none}.label-suggestion{color:#7d7d7d;font-size:.75rem;line-height:1}.label-required::after{display:inline-block;margin-left:.125rem;color:#e74c3b;content:"*"}.custom-checkbox{position:absolute;opacity:0}.custom-checkbox+.custom-checkbox-text::before{position:relative;top:.125rem;display:inline-block;box-sizing:border-box;margin-right:.5rem;width:1rem;height:1rem;border:1px solid #c9c9c9;border-radius:3px;content:" ";transition:border-color 150ms,background-color 150ms}.custom-checkbox+.custom-checkbox-text:hover::before,.custom-checkbox[disabled]+.custom-checkbox-text::before{background-color:#f7f7f7}.custom-checkbox:checked+.custom-checkbox-text::before{border-color:#1e88e5;background-color:#1e88e5}.custom-checkbox:focus+.custom-checkbox-text::before{border-color:#1e88e5;box-shadow:0 0 0 2px rgba(4,138,255,.25)}.custom-checkbox:checked+.custom-checkbox-text:hover::before{border-color:#186db7;background-color:#186db7}.custom-checkbox:checked+.custom-checkbox-text::after{position:absolute;top:.125rem;left:0;display:block;width:1rem;height:1rem;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11'%3E%3Cpath fill='%23fff' d='M4.727 7.036L8.263 3.5l.707.707L4.727 8.45 2 5.722l.707-.707z'/%3E%3C/svg%3E");content:" "}.custom-checkbox:checked[disabled]+.custom-checkbox-text::before{border-color:#c9c9c9;background-color:#c9c9c9}.checkbox-label{position:relative;line-height:1.5}.image-input{padding-right:1.875rem;background:#fcfcfc url("data:image/svg+xml;utf8,") no-repeat right .5rem center;background-size:1rem 1rem;cursor:default}.input-wrap .image-input{padding-right:3.375rem;background-position:right 1.75rem center}.tag-input{position:relative;display:block;box-sizing:border-box;margin-top:0;margin-bottom:.5rem;padding:.25rem .25rem;padding-bottom:0;border:1px solid #c9c9c9;border-radius:3px;font-size:.875rem;line-height:1.5;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tag-input.focused{border-color:#1e88e5}.tag-inner-input{display:inline-block;box-sizing:border-box;margin-bottom:.25rem;padding:0 .25rem;max-width:100%;width:auto;outline:none;border:0;border-radius:0;vertical-align:baseline;font-size:.875rem;font-family:inherit;line-height:inherit}.tag-inner-input:focus{box-shadow:none}.tag-hidden-input{display:none}.tag-input .tag{display:inline-block;box-sizing:border-box;margin-bottom:.25rem;padding:0 .375rem;border-radius:3px;background-color:#ededed;font-size:.875rem;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tag-input.disabled,.tag-input.disabled .tag-inner-input{background-color:#f7f7f7}.tag-input.disabled .tag{background-color:#e3e3e3}.tag-remove{display:inline-block;margin-left:.25rem;padding:0 .125rem;color:#262626;font-style:normal;transition:color 150ms}.tag-remove:hover{color:#1e88e5}.tag-remove::after{content:"×";font-weight:600}.duration-input{box-sizing:border-box;margin-top:0;margin-bottom:.5rem;padding:.25rem .25rem;border:1px solid #c9c9c9;border-radius:3px;font-size:.875rem;line-height:1.5;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.duration-input.focused{border-color:#1e88e5}.duration-input>span{text-align:center}.duration-input input{margin:0;padding:0;width:2rem;border:0;background-color:#ededed;vertical-align:baseline;text-align:center;-moz-appearance:textfield}.duration-input input::-webkit-inner-spin-button,.duration-input input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.duration-input input:focus{box-shadow:none}.duration-input label{margin:0;padding:0 .5rem}.duration-hidden-input{display:none}.title-input{font-size:1.125rem}.file-input{display:none}.file-input-label{display:block;clear:both;margin-bottom:1rem;padding:.5rem;background-color:#f7f7f7}.file-input-label>span{display:block;padding:1.5rem 1rem;border:2px dashed #c9c9c9;color:#262626;text-align:center;transition:background-color 300ms}.file-input-label.drag>span{background-color:#fcfcfc}.toggle-group{display:inline-block;margin:0;margin-bottom:.5rem;border:1px solid #c9c9c9;border-radius:3px;font-size:0}.toggle-group:focus-within{border-color:#1e88e5;box-shadow:0 0 0 2px rgba(4,138,255,.25)}.toggle-group label{margin:0}.toggle-group input[type=radio]{position:absolute;opacity:0}.toggle-group input[type=radio]+span{display:inline-block;padding:.25rem .75rem;border-radius:2px;font-size:.875rem;transition:background-color 150ms,color 150ms}.toggle-group input[type=radio]:hover+span{background-color:#f7f7f7}.toggle-group input[type=radio]:checked+span{background-color:#1e88e5;color:#fff}.toggle-group input[type=radio]:focus+span{background-color:#186db7}.toggle-group[disabled] input[type=radio]+span{background-color:transparent;color:#262626}.toggle-group[disabled] input[type=radio]:checked+span{background-color:#e3e3e3}.toggle-group input[type=radio]:checked:hover+span{background-color:#186db7}input[type=range]{padding:.875rem 0;width:15rem;border:0;-webkit-appearance:none}input[type=range]::-webkit-slider-runnable-track{width:100%;height:.25rem;border:0;border-radius:.125rem;background-color:#e3e3e3;cursor:default}input[type=range]::-webkit-slider-thumb{margin-top:-0.375rem;width:1rem;height:1rem;border:0;border-radius:50%;background-color:#1e88e5;transition:background-color 150ms;-webkit-appearance:none}input[type=range]::-moz-range-track{width:100%;height:.25rem;border:0;border-radius:.125rem;background-color:#e3e3e3}input[type=range]::-moz-range-thumb{width:1rem;height:1rem;border:0;border-radius:50%;background-color:#1e88e5;cursor:default}input[type=range]::-ms-track{width:100%;height:.25rem;border-color:transparent;background-color:transparent;color:transparent;cursor:default}input[type=range]::-ms-fill-lower,input[type=range]::-ms-fill-upper{border:0;border-radius:.125rem;background:#e3e3e3;box-shadow:none}input[type=range]::-ms-thumb{margin-top:0;width:1rem;height:1rem;border:0;border-radius:50%;background-color:#1e88e5;cursor:default}input[type=range]:focus{box-shadow:none}input[type=range]:hover::-webkit-slider-thumb{background-color:#186db7}input[type=range][disabled]{background-color:transparent}input[type=range][disabled]::-webkit-slider-thumb,input[type=range][disabled]::-moz-range-thumb,input[type=range][disabled]::-ms-thumb{background-color:#7d7d7d}input[type=range]:focus::-webkit-slider-thumb{background-color:#186db7;box-shadow:0 0 0 2px rgba(4,138,255,.25)}input[type=range]:focus::-moz-range-thumb{background-color:#186db7;box-shadow:0 0 0 2px rgba(4,138,255,.25)}input[type=range]:focus::-ms-thumb{background-color:#186db7;box-shadow:0 0 0 2px rgba(4,138,255,.25)}.range-input-value{padding:0 .5rem;vertical-align:.1875rem;font-size:.875rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.array-input{margin-bottom:.5rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.array-input-row{margin:0 -0.5rem;padding:.25rem .5rem;white-space:nowrap}.array-input-key,.array-input-value{display:inline-block;margin-bottom:0}.array-input-key{margin-right:.125rem;width:30%}.array-input-value{margin-right:.25rem;width:81%}@media(min-width: 568px){.array-input-value{width:86%}}.array-input-associative .array-input-value{margin-right:.25rem;width:50%}@media(min-width: 568px){.array-input-associative .array-input-value{width:55%}}.array-input-add,.array-input-remove{padding:0;min-width:0}.array-input-add::before{font-family:Icons,sans-serif}.array-input-remove::before{font-family:Icons,sans-serif}.dropdown{position:relative;display:inline-block;margin-bottom:.5rem}.dropdown-button{margin-bottom:0}.dropdown-button::after{display:inline-block;margin-left:.25rem;height:0;border-top:.25rem solid;border-right:.25rem solid transparent;border-left:.25rem solid transparent;content:" ";vertical-align:.125rem}.dropdown-menu,.dropdown-list{position:absolute;top:100%;left:0;z-index:8;display:none;float:left;margin-top:3px;padding:.25rem 0;min-width:8rem;border:1px solid #c9c9c9;border-radius:3px;background-color:#fcfcfc;box-shadow:1px 1px .75rem 0 rgba(0,0,0,.25)}.dropdown-list{overflow-y:scroll;max-height:10.15625rem;width:100%}.dropdown-item{display:block;padding:.25rem 1rem;width:100%;color:#262626;white-space:nowrap;font-size:.875rem}.dropdown-item:hover{background-color:#ededed;color:#262626}.dropdown-item.selected{background-color:#1e88e5;color:#fff}.dropdown-separator{margin:.25rem 0;height:0;border-top:1px solid #c9c9c9}.CodeMirror{font-family:monospace;height:300px;color:black;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:white}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:black}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0 !important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20, 255, 20, 0.5);-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:bold}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:blue}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:red}.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255, 150, 0, 0.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll !important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none !important;border:none !important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255, 255, 0, 0.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.editor-toolbar{padding:.125rem .25rem;border:1px solid #c9c9c9;border-top-left-radius:3px;border-top-right-radius:3px;background-color:#f7f7f7;font-size:0}.toolbar-button{margin-bottom:0;padding:.5rem;border:0;background-color:#f7f7f7}.toolbar-button:hover,.toolbar-button:focus{background-color:transparent;color:#1e88e5}.toolbar-button:focus{box-shadow:0 0 0 2px rgba(4,138,255,.25)}.editor-textarea{margin-bottom:1rem;padding:.75rem 1rem;min-height:24rem;border:1px solid #c9c9c9;border-radius:3px;font-size:1rem;font-family:"Nunito Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}.editor-textarea:focus{box-shadow:none}.CodeMirror{margin-bottom:1rem;padding:0 1rem;min-height:24rem;border:1px solid #c9c9c9;border-radius:3px;background:#fcfcfc;color:#262626;font-size:1rem;font-family:"Nunito Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}.CodeMirror-lines{padding:.75rem 0}.CodeMirror-lines pre{padding:0 !important}.editor-toolbar+.editor-textarea,.editor-textarea+.CodeMirror{border-top-width:0;border-top-left-radius:0;border-top-right-radius:0}.CodeMirror-cursor{border-left-color:#262626}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler{background-color:inherit}.CodeMirror-selected{background:transparent}.CodeMirror-focused .CodeMirror-selected{background:rgba(30,136,229,.25)}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:rgba(30,136,229,.25)}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:rgba(30,136,229,.25)}.cm-formatting-code-block,.cm-formatting-list{display:inline !important}.cm-formatting,.cm-image-alt-text,.cm-url{display:none}.CodeMirror-activeline .cm-formatting,.CodeMirror-activeline .cm-image-alt-text,.CodeMirror-activeline .cm-url{display:inline}.cm-s-formwork .cm-formatting{color:#7d7d7d}.cm-s-formwork .cm-header-1{font-size:1.75rem}.cm-s-formwork .cm-header-2{font-size:1.5rem}.cm-s-formwork .cm-header-3{font-size:1.25rem}.cm-s-formwork .cm-comment{font-size:.875rem;font-family:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace}.cm-s-formwork .cm-comment.cm-header-1{font-size:1.53125rem}.cm-s-formwork .cm-comment.cm-header-2{font-size:1.3125rem}.cm-s-formwork .cm-comment.cm-header-3{font-size:1.09375rem}.cm-s-formwork .cm-quote{color:#7d7d7d}.cm-s-formwork .cm-formatting-quote+.cm-quote::before{margin-right:.25rem;color:#7d7d7d;content:" ";font-family:Icons,sans-serif}.cm-s-formwork .CodeMirror-activeline .cm-formatting-quote+.cm-quote::before{display:none}.cm-s-formwork .cm-link{color:#1e88e5;text-decoration:underline}.cm-s-formwork .cm-url.cm-formatting,.cm-s-formwork .cm-image-alt-text.cm-formatting,.cm-s-formwork .cm-image-marker{color:#1e88e5}.cm-s-formwork .cm-url,.cm-s-formwork .cm-image-alt-text{color:#7d7d7d;text-decoration:none}.cm-s-formwork .cm-image~.cm-url:not(.cm-formatting){display:inline;padding:0 .25rem;border-radius:3px;background-color:#ededed;color:#262626}.cm-s-formwork .cm-image~.cm-url:not(.cm-formatting)::before{margin-right:.25rem;color:#7d7d7d;content:" ";font-family:Icons,sans-serif}.cm-s-formwork .CodeMirror-activeline .cm-image~.cm-url:not(.cm-formatting){padding:0;background-color:transparent;color:#7d7d7d}.cm-s-formwork .CodeMirror-activeline .cm-image~.cm-url:not(.cm-formatting)::before{display:none}.cm-s-formwork .cm-hr{color:#7d7d7d}.cm-s-formwork .cm-tag{color:#25a35a}.cm-s-formwork .cm-bracket{color:#262626}.cm-s-formwork .cm-attribute{color:#8c68cd}.cm-s-formwork .cm-bracket,.cm-s-formwork .cm-m-xml{font-size:.875rem;font-family:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace}.date-input{position:relative;cursor:default}.calendar{position:absolute;top:100%;z-index:8;display:none;margin:3px 1rem 1rem;padding:.5rem;width:18rem;border:1px solid #c9c9c9;border-radius:3px;background-color:#fcfcfc;box-shadow:1px 1px .75rem 0 rgba(0,0,0,.25);color:#262626}.calendar-header{margin-bottom:.5rem}.calendar-buttons{margin:0 -0.5rem;font-size:0}.calendar-buttons button{margin:0;padding:0 .5rem;width:33.3%;outline:none;border:0;background-color:transparent;color:#262626;font-size:.875rem;cursor:pointer}.calendar-buttons button:hover{color:#1e88e5}.calendar-buttons button:focus{box-shadow:none}.calendar-buttons .currentMonth{font-weight:600}.calendar-table{width:100%}.calendar-table td{width:14%;text-align:center;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.calendar-header-day{font-size:.875rem}.calendar-day{border-radius:3px;transition:background-color 150ms,color 150ms}.calendar-day:hover{background-color:#186db7;color:#fff}.calendar-day.selected{background-color:#1e88e5;color:#fff}.calendar-prev-month-day,.calendar-next-month-day{color:#c9c9c9}.calendar-separator{margin:.5rem -0.5rem;height:0;border-top:1px solid #c9c9c9}.image-picker-thumbnails{overflow:auto;margin-bottom:1rem;padding:.5rem;height:15rem}.image-picker-thumbnail{position:relative;display:inline-block;box-sizing:border-box;margin:.25rem;padding:.5rem;width:8rem;height:8rem;border:1px solid #c9c9c9;background-position:center;background-origin:content-box;background-size:contain;background-repeat:no-repeat}.image-picker-thumbnail::after{position:absolute;right:.75rem;bottom:.5rem;left:.75rem;display:block;padding:0 .375rem;border-radius:3px;background-color:rgba(227,227,227,.9);content:attr(data-filename);text-align:center;font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-picker-thumbnail.selected{border-color:#1e88e5;box-shadow:0 0 0 2px rgba(4,138,255,.25)}.image-picker-empty-state{margin:3rem auto 4rem;text-align:center}.image-picker-empty-state-icon{color:#c9c9c9;font-size:2rem}.files-list{margin:0;margin-bottom:1rem;padding:0;list-style-type:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.files-item{display:flex;align-items:center}.files-item-cell{overflow:hidden;padding:.25rem;white-space:nowrap;font-size:.875rem}.file-name{flex:0 0 80%;max-width:80%;font-size:.9375rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-name::before{margin-right:.5rem;color:#262626;font-size:1rem;font-family:Icons,sans-serif}.file-name.file-type-image::before{font-family:Icons,sans-serif}.file-name.file-type-document::before{font-family:Icons,sans-serif}.file-name.file-type-audio::before{font-family:Icons,sans-serif}.file-name.file-type-video::before{font-family:Icons,sans-serif}.file-name.file-type-archive::before{font-family:Icons,sans-serif}.file-size{color:#7d7d7d}.file-actions{flex:0 0 20%;max-width:20%;text-align:right;font-size:1rem}.tabs{overflow-x:auto;margin-bottom:1rem;padding:2px 2px 0;border-bottom:1px solid #e3e3e3;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tabs-tab{display:inline-block;padding:.5rem 1.25rem;color:#262626;cursor:pointer}.tabs-tab:hover{color:#262626}.tabs-tab.active{border-bottom:3px solid #1e88e5;font-weight:600}.caption+.tabs{margin-top:-0.5rem}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:16;background-color:rgba(0,0,0,.75)}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;display:flex;display:none;align-items:center;outline:0}.modal.show{display:block;display:flex}.modal-content{margin:3rem .5rem;padding:2rem;max-width:26rem;border-radius:3px;background-color:#fcfcfc}@media(min-width: 26rem){.modal-content{margin:3rem auto}}.modal-size-large{max-width:40rem;width:40rem}@media(max-width: 40rem){.modal-size-large{margin:3rem .5rem}}.modal-error{margin:-2rem -2rem 1rem -2rem;padding:1rem;background-color:#e74c3b;color:#fcfcfc}.modal-text{margin-bottom:2.5rem}.notification-container{position:fixed;top:20px;right:20px;z-index:12}.notification{position:relative;overflow:hidden;margin-bottom:.5rem;padding:1.5rem 2.5rem;width:350px;border-radius:3px;background-color:#ededed;box-shadow:1px 1px .75rem 0 rgba(0,0,0,.25);text-overflow:ellipsis;cursor:default;transition:top 300ms ease-in,opacity 150ms;animation:fadeInRight 300ms cubic-bezier(0.4, 0, 0.2, 1)}.notification:hover{opacity:.95}.notification.fadeout{opacity:0;animation:fadeOutRight 300ms cubic-bezier(0.4, 0, 0.2, 1)}.notification::before{position:absolute;top:50%;left:1rem;display:block;font-size:1.25rem;transform:translate(0, -50%)}.notification-info,.notification-success,.notification-warning,.notification-error{padding-left:3.25rem}.notification-info{background-color:#1e88e5;color:#fff}.notification-success{background-color:#25a259;color:#fff}.notification-warning{background-color:#c77e0a;color:#fff}.notification-error{background-color:#d52d1a;color:#fff}.notification-info::before{font-family:Icons,sans-serif}.notification-success::before{font-family:Icons,sans-serif}.notification-warning::before{font-family:Icons,sans-serif}.notification-error::before{font-family:Icons,sans-serif}.tooltip{position:absolute;z-index:20;display:none;padding:.25rem;min-width:2rem;border-radius:3px;background-color:rgba(38,38,38,.8);color:#fcfcfc;text-align:center;font-size:.75rem;pointer-events:none}.spinner{display:inline-block;margin-right:.5rem}.spinner::before{display:inline-block;width:.8rem;height:.8rem;border-width:.2rem;border-style:solid;border-color:#1e88e5;border-bottom-color:transparent;border-left-color:transparent;border-radius:50%;color:transparent;content:" ";vertical-align:text-top;text-align:center;font-size:.625rem;line-height:1.3;transition:border 500ms;transition-timing-function:ease-out;animation:750ms spin infinite linear}.spinner-info::before{border-color:#1e88e5;color:#1e88e5;animation:none;font-family:Icons,sans-serif}.spinner-success::before{border-color:#2ecc70;color:#2ecc70;animation:none;font-family:Icons,sans-serif}.spinner-error::before{border-color:#e74c3b;color:#e74c3b;animation:none;font-family:Icons,sans-serif}.ct-label{fill:rgba(0, 0, 0, 0.4);color:rgba(0, 0, 0, 0.4);font-size:.75rem;line-height:1}.ct-chart-line .ct-label,.ct-chart-bar .ct-label{display:block;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex}.ct-chart-pie .ct-label,.ct-chart-donut .ct-label{dominant-baseline:central}.ct-label.ct-horizontal.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-label.ct-horizontal.ct-end{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-label.ct-vertical.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-end;-webkit-justify-content:flex-end;-ms-flex-pack:flex-end;justify-content:flex-end;text-align:right;text-anchor:end}.ct-label.ct-vertical.ct-end{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar .ct-label.ct-horizontal.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;text-anchor:start}.ct-chart-bar .ct-label.ct-horizontal.ct-end{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:flex-end;-webkit-justify-content:flex-end;-ms-flex-pack:flex-end;justify-content:flex-end;text-align:right;text-anchor:end}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:end}.ct-grid{stroke:rgba(0, 0, 0, 0.2);stroke-width:1px;stroke-dasharray:2px}.ct-grid-background{fill:none}.ct-point{stroke-width:10px;stroke-linecap:round}.ct-line{fill:none;stroke-width:4px}.ct-area{stroke:none;fill-opacity:.1}.ct-bar{fill:none;stroke-width:10px}.ct-slice-donut{fill:none;stroke-width:60px}.ct-series-a .ct-point,.ct-series-a .ct-line,.ct-series-a .ct-bar,.ct-series-a .ct-slice-donut{stroke:#d70206}.ct-series-a .ct-slice-pie,.ct-series-a .ct-slice-donut-solid,.ct-series-a .ct-area{fill:#d70206}.ct-series-b .ct-point,.ct-series-b .ct-line,.ct-series-b .ct-bar,.ct-series-b .ct-slice-donut{stroke:#f05b4f}.ct-series-b .ct-slice-pie,.ct-series-b .ct-slice-donut-solid,.ct-series-b .ct-area{fill:#f05b4f}.ct-series-c .ct-point,.ct-series-c .ct-line,.ct-series-c .ct-bar,.ct-series-c .ct-slice-donut{stroke:#f4c63d}.ct-series-c .ct-slice-pie,.ct-series-c .ct-slice-donut-solid,.ct-series-c .ct-area{fill:#f4c63d}.ct-series-d .ct-point,.ct-series-d .ct-line,.ct-series-d .ct-bar,.ct-series-d .ct-slice-donut{stroke:#d17905}.ct-series-d .ct-slice-pie,.ct-series-d .ct-slice-donut-solid,.ct-series-d .ct-area{fill:#d17905}.ct-series-e .ct-point,.ct-series-e .ct-line,.ct-series-e .ct-bar,.ct-series-e .ct-slice-donut{stroke:#453d3f}.ct-series-e .ct-slice-pie,.ct-series-e .ct-slice-donut-solid,.ct-series-e .ct-area{fill:#453d3f}.ct-series-f .ct-point,.ct-series-f .ct-line,.ct-series-f .ct-bar,.ct-series-f .ct-slice-donut{stroke:#59922b}.ct-series-f .ct-slice-pie,.ct-series-f .ct-slice-donut-solid,.ct-series-f .ct-area{fill:#59922b}.ct-series-g .ct-point,.ct-series-g .ct-line,.ct-series-g .ct-bar,.ct-series-g .ct-slice-donut{stroke:#0544d3}.ct-series-g .ct-slice-pie,.ct-series-g .ct-slice-donut-solid,.ct-series-g .ct-area{fill:#0544d3}.ct-series-h .ct-point,.ct-series-h .ct-line,.ct-series-h .ct-bar,.ct-series-h .ct-slice-donut{stroke:#6b0392}.ct-series-h .ct-slice-pie,.ct-series-h .ct-slice-donut-solid,.ct-series-h .ct-area{fill:#6b0392}.ct-series-i .ct-point,.ct-series-i .ct-line,.ct-series-i .ct-bar,.ct-series-i .ct-slice-donut{stroke:#f05b4f}.ct-series-i .ct-slice-pie,.ct-series-i .ct-slice-donut-solid,.ct-series-i .ct-area{fill:#f05b4f}.ct-series-j .ct-point,.ct-series-j .ct-line,.ct-series-j .ct-bar,.ct-series-j .ct-slice-donut{stroke:#dda458}.ct-series-j .ct-slice-pie,.ct-series-j .ct-slice-donut-solid,.ct-series-j .ct-area{fill:#dda458}.ct-series-k .ct-point,.ct-series-k .ct-line,.ct-series-k .ct-bar,.ct-series-k .ct-slice-donut{stroke:#eacf7d}.ct-series-k .ct-slice-pie,.ct-series-k .ct-slice-donut-solid,.ct-series-k .ct-area{fill:#eacf7d}.ct-series-l .ct-point,.ct-series-l .ct-line,.ct-series-l .ct-bar,.ct-series-l .ct-slice-donut{stroke:#86797d}.ct-series-l .ct-slice-pie,.ct-series-l .ct-slice-donut-solid,.ct-series-l .ct-area{fill:#86797d}.ct-series-m .ct-point,.ct-series-m .ct-line,.ct-series-m .ct-bar,.ct-series-m .ct-slice-donut{stroke:#b2c326}.ct-series-m .ct-slice-pie,.ct-series-m .ct-slice-donut-solid,.ct-series-m .ct-area{fill:#b2c326}.ct-series-n .ct-point,.ct-series-n .ct-line,.ct-series-n .ct-bar,.ct-series-n .ct-slice-donut{stroke:#6188e2}.ct-series-n .ct-slice-pie,.ct-series-n .ct-slice-donut-solid,.ct-series-n .ct-area{fill:#6188e2}.ct-series-o .ct-point,.ct-series-o .ct-line,.ct-series-o .ct-bar,.ct-series-o .ct-slice-donut{stroke:#a748ca}.ct-series-o .ct-slice-pie,.ct-series-o .ct-slice-donut-solid,.ct-series-o .ct-area{fill:#a748ca}.ct-square{display:block;position:relative;width:100%}.ct-square:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:100%}.ct-square:after{content:"";display:table;clear:both}.ct-square>svg{display:block;position:absolute;top:0;left:0}.ct-minor-second{display:block;position:relative;width:100%}.ct-minor-second:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:93.75%}.ct-minor-second:after{content:"";display:table;clear:both}.ct-minor-second>svg{display:block;position:absolute;top:0;left:0}.ct-major-second{display:block;position:relative;width:100%}.ct-major-second:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:88.8888888889%}.ct-major-second:after{content:"";display:table;clear:both}.ct-major-second>svg{display:block;position:absolute;top:0;left:0}.ct-minor-third{display:block;position:relative;width:100%}.ct-minor-third:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:83.3333333333%}.ct-minor-third:after{content:"";display:table;clear:both}.ct-minor-third>svg{display:block;position:absolute;top:0;left:0}.ct-major-third{display:block;position:relative;width:100%}.ct-major-third:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:80%}.ct-major-third:after{content:"";display:table;clear:both}.ct-major-third>svg{display:block;position:absolute;top:0;left:0}.ct-perfect-fourth{display:block;position:relative;width:100%}.ct-perfect-fourth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:75%}.ct-perfect-fourth:after{content:"";display:table;clear:both}.ct-perfect-fourth>svg{display:block;position:absolute;top:0;left:0}.ct-perfect-fifth{display:block;position:relative;width:100%}.ct-perfect-fifth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:66.6666666667%}.ct-perfect-fifth:after{content:"";display:table;clear:both}.ct-perfect-fifth>svg{display:block;position:absolute;top:0;left:0}.ct-minor-sixth{display:block;position:relative;width:100%}.ct-minor-sixth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:62.5%}.ct-minor-sixth:after{content:"";display:table;clear:both}.ct-minor-sixth>svg{display:block;position:absolute;top:0;left:0}.ct-golden-section{display:block;position:relative;width:100%}.ct-golden-section:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:61.804697157%}.ct-golden-section:after{content:"";display:table;clear:both}.ct-golden-section>svg{display:block;position:absolute;top:0;left:0}.ct-major-sixth{display:block;position:relative;width:100%}.ct-major-sixth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:60%}.ct-major-sixth:after{content:"";display:table;clear:both}.ct-major-sixth>svg{display:block;position:absolute;top:0;left:0}.ct-minor-seventh{display:block;position:relative;width:100%}.ct-minor-seventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:56.25%}.ct-minor-seventh:after{content:"";display:table;clear:both}.ct-minor-seventh>svg{display:block;position:absolute;top:0;left:0}.ct-major-seventh{display:block;position:relative;width:100%}.ct-major-seventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:53.3333333333%}.ct-major-seventh:after{content:"";display:table;clear:both}.ct-major-seventh>svg{display:block;position:absolute;top:0;left:0}.ct-octave{display:block;position:relative;width:100%}.ct-octave:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:50%}.ct-octave:after{content:"";display:table;clear:both}.ct-octave>svg{display:block;position:absolute;top:0;left:0}.ct-major-tenth{display:block;position:relative;width:100%}.ct-major-tenth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:40%}.ct-major-tenth:after{content:"";display:table;clear:both}.ct-major-tenth>svg{display:block;position:absolute;top:0;left:0}.ct-major-eleventh{display:block;position:relative;width:100%}.ct-major-eleventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:37.5%}.ct-major-eleventh:after{content:"";display:table;clear:both}.ct-major-eleventh>svg{display:block;position:absolute;top:0;left:0}.ct-major-twelfth,.ct-chart{display:block;position:relative;width:100%}.ct-major-twelfth:before,.ct-chart:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:33.3333333333%}.ct-major-twelfth:after,.ct-chart:after{content:"";display:table;clear:both}.ct-major-twelfth>svg,.ct-chart>svg{display:block;position:absolute;top:0;left:0}.ct-double-octave{display:block;position:relative;width:100%}.ct-double-octave:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:25%}.ct-double-octave:after{content:"";display:table;clear:both}.ct-double-octave>svg{display:block;position:absolute;top:0;left:0}.ct-chart{position:relative;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ct-label{color:rgba(38,38,38,.4);fill:rgba(38,38,38,.4)}.ct-grid{stroke:rgba(38,38,38,.2)}.ct-series-a .ct-line,.ct-series-a .ct-point{stroke:#1e88e5}.ct-series-a .ct-area{fill:#1e88e5}.ct-series-b .ct-line,.ct-series-b .ct-point{stroke:#f39c11}.ct-series-b .ct-area{fill:#f39c11}.ct-label.ct-horizontal,.ct-label.ct-horizontal.ct-end{display:inline-block;min-width:3rem;width:auto !important;color:#262626;text-align:center;transform:translateX(-50%)}.ct-legend{font-size:.875rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ct-legend-right{text-align:right}.ct-legend-label{white-space:nowrap}.ct-legend-label::before{display:inline-block;margin:0 .375rem;font-size:.75rem;font-family:Icons,sans-serif}.ct-legend-label.ct-series-a::before{color:#1e88e5}.ct-legend-label.ct-series-b::before{color:#f39c11}@keyframes fadeInRight{from{opacity:0;transform:translate3d(150%, 0, 0)}to{opacity:1;transform:none}}@keyframes fadeOutRight{from{opacity:1;transform:none}to{opacity:0;transform:translate3d(150%, 0, 0)}}@keyframes shake{from,to{transform:translate3d(0, 0, 0)}10%,50%,70%,90%{transform:translate3d(-10px, 0, 0)}30%,70%{transform:translate3d(10px, 0, 0)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.login-modal-container{margin:3rem .5rem;padding:2rem;max-width:24rem;border-radius:3px;background-color:#fcfcfc}@media(min-width: 24rem){.login-modal-container{margin:3rem auto}}.login-modal-info,.login-modal-success,.login-modal-warning,.login-modal-error{position:relative;margin:-2rem -2rem 1rem -2rem;padding:1rem 2rem 1rem 3.5rem;border-top-left-radius:3px;border-top-right-radius:3px}.login-modal-info a,.login-modal-success a,.login-modal-warning a,.login-modal-error a{display:block;color:#fff;text-decoration:underline;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.login-modal-info::before,.login-modal-success::before,.login-modal-warning::before,.login-modal-error::before{position:absolute;top:50%;left:1rem;display:block;font-size:1.25rem;font-family:Icons,sans-serif;transform:translate(0, -50%)}.login-modal-info{background-color:#1e88e5;color:#fff}.login-modal-info::before{font-family:Icons,sans-serif}.login-modal-success{background-color:#25a35a;color:#fff}.login-modal-success::before{font-family:Icons,sans-serif}.login-modal-warning{background-color:#f39c11;color:#fff}.login-modal-warning::before{font-family:Icons,sans-serif}.login-modal-error{background-color:#e74c3b;color:#fff}.login-modal-error::before{font-family:Icons,sans-serif}.title-bar{position:fixed;top:0;right:0;left:0;z-index:8;padding:1rem;padding-left:4rem;background-color:#ededed;box-shadow:0 0 .75rem -0.25rem rgba(0,0,0,.05);color:#262626;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(min-width: 768px){.title-bar{left:14rem;padding-left:1.5rem}}.panel-title{float:left}.view-site{float:right;color:#262626}.view-site:hover{color:#1e88e5}.view-site i{margin-left:.5rem}.sidebar{position:fixed;top:0;bottom:0;left:0;z-index:10;padding:1rem 1.5rem;width:14rem;background:linear-gradient(to bottom, #fcfcfc 0%, #f7f7f7 100%);background-color:#fcfcfc;box-shadow:0 0 .75rem -0.25rem rgba(0,0,0,.05);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sidebar.show{display:block}.sidebar-wrapper{overflow-y:auto;height:calc(100% - 9rem)}.toggle-navigation{position:fixed;top:.75rem;left:.75rem;z-index:12;margin:0;border:none;background-color:transparent;font-size:1rem;cursor:pointer}.toggle-navigation:hover{background-color:transparent;box-shadow:none;color:#1e88e5}.toggle-navigation:focus{background-color:transparent;box-shadow:none}.logo{margin-bottom:2rem;color:#262626;text-align:center;font-weight:600;font-size:1.184rem;line-height:1.5rem}@media(min-width: 768px){.logo{text-align:left}}.logo img{margin-right:.25rem;height:1.5rem;vertical-align:-0.25rem}.logo a{padding-top:2px;color:#262626}.sidebar-navigation{margin:0;margin-bottom:1rem;padding:0;list-style-type:none}.sidebar-navigation:last-child{margin-bottom:0}.sidebar-navigation>li{position:relative;margin:0;margin-bottom:.5rem;padding:.25rem 0;padding-left:1rem}.sidebar-navigation>li a{color:#262626}.sidebar-navigation>li.active{font-weight:600}.sidebar-navigation>li.active::before{position:absolute;top:0;bottom:0;left:0;width:3px;background-color:#1e88e5;content:" "}.admin-user-card{display:flex;align-items:center;margin-bottom:2rem;cursor:pointer}.admin-user-card:hover img{box-shadow:0 0 0 .5rem #e3e3e3}.admin-user-avatar{width:48px}.admin-user-avatar img{width:48px;border-radius:50%;transition:box-shadow 300ms ease-out}.admin-user-details{padding:0 .75rem}.admin-user-fullname{color:#262626}.admin-user-username{color:#7d7d7d;font-size:.875rem}.main{margin-top:4.5rem}@media(min-width: 768px){.main{margin:1.875rem;margin-top:4.5rem;margin-left:15.875rem}}.component{margin-bottom:1rem;padding:1.5rem;border-radius:3px;background-color:#fcfcfc;box-shadow:0 0 .75rem -0.25rem rgba(0,0,0,.05)}.component::before,.component::after{display:table;content:""}.component::after{clear:both}.caption{margin-bottom:1rem;text-transform:uppercase;letter-spacing:1px;font-weight:600;font-size:.9375rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.separator{height:.5rem}.separator-l{height:1rem}.section-header{margin-bottom:.5rem;padding:.25rem .5rem;border-bottom:1px solid #e3e3e3;font-weight:600;font-size:1rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sort-handle{margin-right:.25rem;margin-bottom:0;width:.75rem;cursor:grab}.sort-handle::before{color:#969696;font-size:.75rem;cursor:inherit;font-family:Icons,sans-serif}.sortable-chosen,.sortable-ghost{background-color:#fcfcfc;cursor:grabbing}.sortable-chosen *{cursor:grabbing}.sortable-fallback{box-shadow:0 0 .75rem .25rem rgba(0,0,0,.15)}.pages-list{margin:0;padding:0;list-style-type:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pages-list .pages-list{display:none}.pages-list-headers{display:none;padding:.25rem 0;font-weight:600;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.page-children-toggle{display:inline-block;margin:0 .25rem .125rem 0;padding:0;min-width:auto;border-color:transparent;background-color:transparent;color:#262626;font-weight:400;font-size:.875rem;cursor:pointer}.page-children-toggle:hover,.page-children-toggle:focus{border-color:transparent;background-color:transparent}.page-children-toggle:focus{box-shadow:0 0 0 2px rgba(4,138,255,.25)}.toggle-collapsed::before{font-family:Icons,sans-serif}.toggle-expanded::before{font-family:Icons,sans-serif}.pages-item{padding:.5rem 0;border-bottom:1px solid #e3e3e3}.pages-item:hover{background-color:#f7f7f7}.pages-item .sort-handle{display:none}.pages-list-top{border-top:1px solid #e3e3e3}.pages-item-cell,.pages-headers-cell{padding:.25rem .5rem;font-size:.875rem}.pages-item-cell div,.pages-headers-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-title{margin:-2px;padding:2px;font-size:1rem}.page-language{display:inline-block;padding:.125rem .25rem;min-width:1.125rem;border-radius:3px;background-color:#d2e7fa;color:#1e88e5;text-align:center;font-weight:600;font-size:.875rem;line-height:1}button .page-language,.button .page-language{font-size:.75rem}.page-route{color:#7d7d7d;font-size:.875rem}.page-route-changeable{margin:-2px;padding:2px}.page-status-label::before{display:inline-block;margin-right:.375rem;font-size:.75rem;font-family:Icons,sans-serif}.page-status-published .page-status-label::before{color:#2ecc70}.page-status-not-published .page-status-label::before{color:#e74c3b}.page-status-not-routable .page-status-label::before{color:#f39c11}.page-date,.page-status,.page-actions{display:none}.page-actions .button-link{font-size:1rem}@media(min-width: 568px){.pages-item,.pages-list-headers{display:flex;align-items:center}.pages-item-cell,.pages-headers-cell{display:block}.page-details{flex:0 0 55%;max-width:55%}.page-date,.page-status,.page-actions{flex:0 0 15%;max-width:15%;text-align:center}}.pages-level-2 .page-details{padding-left:1.5rem}.pages-level-3 .page-details{padding-left:3rem}.pages-level-4 .page-details{padding-left:4.5rem}.pages-level-5 .page-details{padding-left:6rem}.page-search{padding-right:1.5rem;max-width:28rem;background:#fcfcfc url("data:image/svg+xml;utf8,") no-repeat right .5rem center;background-size:.875rem .875rem}.page-info{margin-bottom:.75rem;padding:0 .25rem}.page-info>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-slug-change{margin:0;padding:0;border-color:transparent;background-color:transparent;color:#7d7d7d;cursor:pointer}.page-slug-change:hover,.page-slug-change:focus{border-color:transparent;background-color:transparent;color:#7d7d7d}.page-slug-change:focus{box-shadow:0 0 0 2px rgba(4,138,255,.25)}.page-slug-change::after{display:inline-block;margin-left:.25rem;color:#262626;content:"";font-family:Icons,sans-serif;opacity:0;transition:opacity 150ms}.page-slug-change:hover::after,.page-slug-change:focus::after{opacity:1}.dragging [data-sortable=false] .pages-item:hover{background-color:#fce8e5;cursor:no-drop}.options-form .checkbox-label{margin-bottom:.5rem;font-size:1rem}.info-data{margin-bottom:1rem;width:100%;table-layout:fixed}.info-data td{overflow:hidden;padding:.5rem;vertical-align:top}.info-data-key{width:25%}.info-data-value{width:75%;word-break:break-word;font-size:.875rem;font-family:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace}.user-summary{display:flex;align-items:center}.user-summary-avatar{flex:0 0 33.33333%;padding:.75rem;max-width:33.33333%;text-align:center}.user-summary-avatar img{width:180px;border-radius:50%}.user-summary-data{padding:.75rem}.users-list{border-top:1px solid #e3e3e3;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.users-list-headers{display:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.users-item{padding:.5rem 0;border-bottom:1px solid #e3e3e3}.users-item:hover{background-color:#f7f7f7}.users-item-cell,.users-headers-cell{padding:.125rem .25rem;vertical-align:middle;font-size:.875rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-username,.user-fullname{display:inline-block}.users-item .user-username{font-size:1rem}.user-last-access,.user-actions{display:none}.user-actions .button-link{font-size:1rem}@media(min-width: 568px){.users-item,.users-list-headers{display:flex;align-items:center}.users-list-headers{padding:.25rem 0;font-weight:600}.users-item-cell,.users-headers-cell{display:block;padding:.25rem .5rem}.user-username,.user-last-access{flex:0 0 20%;max-width:20%}.user-fullname,.user-email{flex:0 0 25%;max-width:25%}.user-last-access,.user-actions{text-align:center}.user-actions{flex:0 0 10%;max-width:10%}}.error-container{margin:4rem auto;padding:1rem;max-width:32rem;text-align:center}.error-container h1{color:#969696;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.error-container h2{margin-bottom:1rem;font-size:2rem}.error-code{display:block;font-weight:400;font-size:8rem}.error-status{display:block;font-size:1.75rem}.error-container .action{font-size:1.125rem}.error-container .logo{margin:2rem auto;width:3.5rem;height:3.5rem;background-position:center;background-size:cover;background-repeat:no-repeat}@font-face{font-weight:normal;font-style:normal;font-family:"Icons";src:url("../icons/icons.eot");src:url("../icons/icons.eot#iefix") format("embedded-opentype"),url("../icons/icons.woff2") format("woff2"),url("../icons/icons.woff") format("woff"),url("../icons/icons.ttf") format("truetype"),url("../icons/icons.svg#icons") format("svg")}[class^=i-]::before,[class*=" i-"]::before{display:inline-block;width:1.25em;text-decoration:inherit;text-transform:none;font-weight:normal;font-style:normal;font-variant:normal;font-family:Icons,sans-serif;line-height:1em}.i-align-center::before{content:""}.i-align-left::before{content:""}.i-align-justify::before{content:""}.i-align-right::before{content:""}.i-archive::before{content:""}.i-arrow-down::before{content:""}.i-arrow-left::before{content:""}.i-arrow-right::before{content:""}.i-arrow-up::before{content:""}.i-at::before{content:""}.i-bars::before,.sort-handle::before{content:""}.i-bell::before{content:""}.i-bold::before{content:""}.i-bolt::before{content:""}.i-book::before{content:""}.i-box-open::before{content:""}.i-box::before{content:""}.i-boxes::before{content:""}.i-briefcase::before{content:""}.i-calendar::before{content:""}.i-chart-area::before{content:""}.i-chart-bar::before{content:""}.i-check-circle::before,.notification-success::before,.login-modal-success::before{content:""}.i-check-double::before{content:""}.i-check::before,.spinner-success::before{content:""}.i-chevron-down::before,.toggle-collapsed::before{content:""}.i-chevron-right::before{content:""}.i-chevron-left::before{content:""}.i-chevron-up::before,.toggle-expanded::before{content:""}.i-circle-open::before{content:""}.i-circle::before,.ct-legend-label::before,.page-status-label::before{content:""}.i-clipboard::before{content:""}.i-cloud-download::before{content:""}.i-cloud-upload::before{content:""}.i-code::before{content:""}.i-cog::before{content:""}.i-comment::before{content:""}.i-cookie-bite::before{content:""}.i-cookie::before{content:""}.i-copy::before{content:""}.i-crop::before{content:""}.i-cut::before{content:""}.i-database::before{content:""}.i-download::before{content:""}.i-edit::before{content:""}.i-ellipsis-v::before{content:""}.i-ellipsis::before{content:""}.i-envelope::before{content:""}.i-error-circle::before,.notification-error::before,.login-modal-error::before{content:""}.i-exclamation-triangle::before,.notification-warning::before,.login-modal-warning::before{content:""}.i-exclamation::before,.spinner-error::before{content:""}.i-external-link-square::before{content:""}.i-external-link::before{content:""}.i-eye-slash::before{content:""}.i-eye::before{content:""}.i-file-archive::before,.file-name.file-type-archive::before{content:""}.i-file-audio::before,.file-name.file-type-audio::before{content:""}.i-file-code::before{content:""}.i-file-image::before,.file-name.file-type-image::before{content:""}.i-file-pdf::before{content:""}.i-file-text::before,.file-name.file-type-document::before{content:""}.i-file-video::before,.file-name.file-type-video::before{content:""}.i-file::before,.file-name::before{content:""}.i-folder-open::before{content:""}.i-folder::before{content:""}.i-font::before{content:""}.i-hashtag::before{content:""}.i-heading::before{content:""}.i-history::before{content:""}.i-home::before{content:""}.i-image::before,.cm-s-formwork .cm-image~.cm-url:not(.cm-formatting)::before{content:""}.i-images::before{content:""}.i-info-circle::before,.notification-info::before,.login-modal-info::before{content:""}.i-info::before,.spinner-info::before{content:""}.i-italic::before{content:""}.i-language::before{content:""}.i-link::before{content:""}.i-list-ol::before{content:""}.i-list-ul::before{content:""}.i-list::before{content:""}.i-location-arrow::before{content:""}.i-lock::before{content:""}.i-markdown::before{content:""}.i-microchip::before{content:""}.i-minus-circle::before{content:""}.i-mobile::before{content:""}.i-paste::before{content:""}.i-pencil::before{content:""}.i-plus-circle::before,.array-input-add::before{content:""}.i-question-circle::before{content:""}.i-quote::before,.cm-s-formwork .cm-formatting-quote+.cm-quote::before{content:""}.i-read-more::before{content:""}.i-redo::before{content:""}.i-rss::before{content:""}.i-search-plus::before{content:""}.i-search::before{content:""}.i-search-minus::before{content:""}.i-stopwatch::before{content:""}.i-sync::before{content:""}.i-table::before{content:""}.i-tablet::before{content:""}.i-tag::before{content:""}.i-tags::before{content:""}.i-tasks::before{content:""}.i-times-circle::before,.array-input-remove::before{content:""}.i-times::before{content:""}.i-trash::before{content:""}.i-underline::before{content:""}.i-undo::before{content:""}.i-user-circle::before{content:""}.i-user::before{content:""}.i-users::before{content:""}.i-move::before{content:""} diff --git a/admin/assets/js/app.min.js b/admin/assets/js/app.min.js index 703cd431..3ed11b38 100644 --- a/admin/assets/js/app.min.js +++ b/admin/assets/js/app.min.js @@ -1 +1 @@ -var Formwork=function(){"use strict";var T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(e){var t={exports:{}};return e(t,t.exports),t.exports}var n=e(function(e){var t,n;t=T,n=function(){var e,p,u,d,m,i,o,a,l,s,c,f,n,h,r,g,v,y,x,b,w,k,C,S,t={version:"0.11.4"};function L(e,t,n,i,r,o){o=c.extend({command:r?e.toLowerCase():e.toUpperCase()},t,o?{data:o}:{});n.splice(i,0,o)}function E(r,o){r.forEach(function(n,i){f[n.command.toLowerCase()].forEach(function(e,t){o(n,e,i,t,r)})})}function M(e,t,n){e=t.x>e.x;return e&&"explode"===n||!e&&"implode"===n?"start":e&&"implode"===n||!e&&"explode"===n?"end":"middle"}return u=(e=this||T).window,d=e.document,(p=t).namespaces={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",ct:"http://gionkunz.github.com/chartist-js/ct"},p.noop=function(e){return e},p.alphaNumerate=function(e){return String.fromCharCode(97+e%26)},p.extend=function(e){var t,n,i;for(e=e||{},t=1;t":">",'"':""","'":"'"},p.serialize=function(e){return null==e?e:("number"==typeof e?e=""+e:"object"==typeof e&&(e=JSON.stringify({data:e})),Object.keys(p.escapingMap).reduce(function(e,t){return p.replaceAll(e,t,p.escapingMap[t])},e))},p.deserialize=function(e){if("string"!=typeof e)return e;e=Object.keys(p.escapingMap).reduce(function(e,t){return p.replaceAll(e,p.escapingMap[t],t)},e);try{e=void 0!==(e=JSON.parse(e)).data?e.data:e}catch(e){}return e},p.createSvg=function(t,e,n,i){return e=e||"100%",n=n||"100%",Array.prototype.slice.call(t.querySelectorAll("svg")).filter(function(e){return e.getAttributeNS(p.namespaces.xmlns,"ct")}).forEach(function(e){t.removeChild(e)}),(i=new p.Svg("svg").attr({width:e,height:n}).addClass(i))._node.style.width=e,i._node.style.height=n,t.appendChild(i._node),i},p.normalizeData=function(e,t,n){var i={raw:e,normalized:{}};return i.normalized.series=p.getDataArray({series:e.series||[]},t,n),n=i.normalized.series.every(function(e){return e instanceof Array})?Math.max.apply(null,i.normalized.series.map(function(e){return e.length})):i.normalized.series.length,i.normalized.labels=(e.labels||[]).slice(),Array.prototype.push.apply(i.normalized.labels,p.times(Math.max(0,n-i.normalized.labels.length)).map(function(){return""})),t&&p.reverseData(i.normalized),i},p.safeHasProperty=function(e,t){return null!==e&&"object"==typeof e&&e.hasOwnProperty(t)},p.isDataHoleValue=function(e){return null==e||"number"==typeof e&&isNaN(e)},p.reverseData=function(e){e.labels.reverse(),e.series.reverse();for(var t=0;to.high&&(o.high=i),s&&i=n)s.step=1;else if(i&&t=n)s.step=t;else for(;;){if(l&&p.projectLength(e,s.step,s)<=n)s.step*=2;else{if(l||!(p.projectLength(e,s.step/2,s)>=n))break;if(s.step/=2,i&&s.step%1!=0){s.step*=2;break}}if(1e3=s.high;)o=c(o,-s.step);s.min=r,s.max=o,s.range=s.max-s.min;for(var f=[],d=s.min;d<=s.max;d=c(d,s.step)){var h=p.roundWithPrecision(d);h!==f[f.length-1]&&f.push(h)}return s.values=f,s},p.polarToCartesian=function(e,t,n,i){i=(i-90)*Math.PI/180;return{x:e+n*Math.cos(i),y:t+n*Math.sin(i)}},p.createChartRect=function(e,t,n){var i=!(!t.axisX&&!t.axisY),r=i?t.axisY.offset:0,o=i?t.axisX.offset:0,a=e.width()||p.quantity(t.width).value||0,s=e.height()||p.quantity(t.height).value||0,e=p.normalizePadding(t.chartPadding,n),a=Math.max(a,r+e.left+e.right),s=Math.max(s,o+e.top+e.bottom),n={padding:e,width:function(){return this.x2-this.x1},height:function(){return this.y1-this.y2}};return i?("start"===t.axisX.position?(n.y2=e.top+o,n.y1=Math.max(s-e.bottom,n.y2+1)):(n.y2=e.top,n.y1=Math.max(s-e.bottom-o,n.y2+1)),"start"===t.axisY.position?(n.x1=e.left+r,n.x2=Math.max(a-e.right,n.x1+1)):(n.x1=e.left,n.x2=Math.max(a-e.right-r,n.x1+1))):(n.x1=e.left,n.x2=Math.max(a-e.right,n.x1+1),n.y2=e.top,n.y1=Math.max(s-e.bottom,n.y2+1)),n},p.createGrid=function(e,t,n,i,r,o,a,s){var l={};l[n.units.pos+"1"]=e,l[n.units.pos+"2"]=e,l[n.counterUnits.pos+"1"]=i,l[n.counterUnits.pos+"2"]=i+r;a=o.elem("line",l,a.join(" "));s.emit("draw",p.extend({type:"grid",axis:n,index:t,group:o,element:a},l))},p.createGridBackground=function(e,t,n,i){n=e.elem("rect",{x:t.x1,y:t.y2,width:t.width(),height:t.height()},n,!0);i.emit("draw",{type:"gridBackground",group:e,element:n})},p.createLabel=function(e,t,n,i,r,o,a,s,l,u,c){var f={};f[r.units.pos]=e+a[r.units.pos],f[r.counterUnits.pos]=a[r.counterUnits.pos],f[r.units.len]=t,f[r.counterUnits.len]=Math.max(0,o-10),l=u?((u=d.createElement("span")).className=l.join(" "),u.setAttribute("xmlns",p.namespaces.xhtml),u.innerText=i[n],u.style[r.units.len]=Math.round(f[r.units.len])+"px",u.style[r.counterUnits.len]=Math.round(f[r.counterUnits.len])+"px",s.foreignObject(u,p.extend({style:"overflow: visible;"},f))):s.elem("text",f,l.join(" ")).text(i[n]),c.emit("draw",p.extend({type:"label",axis:r,index:n,group:s,element:l,text:i[n]},f))},p.getSeriesOption=function(e,t,n){if(e.name&&t.series&&t.series[e.name]){e=t.series[e.name];return(e.hasOwnProperty(n)?e:t)[n]}return t[n]},p.optionsProvider=function(e,n,i){var r,o,a=p.extend({},e),t=[];function s(e){var t=r;if(r=p.extend({},a),n)for(o=0;o":"","?":"","@":"","[":"","]":"","^":"","`":"","{":"","|":"","}":"","¡":"","£":"","¤":"","¥":"","¦":"","§":"","«":"","°":"","»":"","‘":"","’":"","“":"","”":"","\n":"-"," ":"-","-":"-","–":"-","—":"-","/":"-","\\":"-",_:"-","~":"-","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"Ae","Ç":"C","Ð":"D","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Œ":"Oe","Š":"S","Þ":"Th","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"ae","å":"a","æ":"ae","¢":"c","ç":"c","ð":"d","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"oe","ø":"o","œ":"oe","š":"s","ß":"ss","þ":"th","ù":"u","ú":"u","û":"u","ü":"ue","ý":"y","ÿ":"y","Ÿ":"y"};for(t in e=e.toLowerCase(),n)Object.prototype.hasOwnProperty.call(n,t)&&(e=e.split(t).join(n[t]));return e.replace(/[^a-z0-9-]/g,"").replace(/^-+|-+$/g,"").replace(/-+/g,"-")},validateSlug:function(e){return e.toLowerCase().replace(" ","-").replace(/[^a-z0-9-]/g,"")},debounce:function(e,t,n){var i,r,o,a=null;return function(){return i=this,r=arguments,a&&clearTimeout(a),n&&!a&&(o=e.apply(i,r)),a=setTimeout(function(){n||(o=e.apply(i,r)),a=null},t),o}},throttle:function(n,i){var r,o,a,s=0,l=null;return function(){var e,t=Date.now();return 0===s&&(s=t),r=this,o=arguments,(e=s+i-t)<=0||i"===t[0]&&(t=t.substring(1)),e))try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return}}function N(e,t,n,i){if(e){n=n||document;do{if(null!=t&&(">"!==t[0]||e.parentNode===n)&&y(e,t)||i&&e===n)return e}while(e!==n&&(e=(r=e).host&&r!==document&&r.host.nodeType?r.host:r.parentNode))}var r;return null}var k,C=/\s+/g;function O(e,t,n){var i;e&&t&&(e.classList?e.classList[n?"add":"remove"](t):(i=(" "+e.className+" ").replace(C," ").replace(" "+t+" "," "),e.className=(i+(n?" "+t:"")).replace(C," ")))}function F(e,t,n){var i=e&&e.style;if(i){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in i||-1!==t.indexOf("webkit")||(t="-webkit-"+t),i[t]=n+("string"==typeof n?"":"px")}}function S(e,t){var n="";if("string"==typeof e)n=e;else do{var i=F(e,"transform")}while(i&&"none"!==i&&(n=i+" "+n),!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix;return r&&new r(n)}function L(e,t,n){if(e){var i=e.getElementsByTagName(t),r=0,o=i.length;if(n)for(;r=t.left-n&&r<=t.right+n,t=o>=t.top-n&&o<=t.bottom+n;return n&&i&&t?a=e:void 0}}),a);if(t){var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);i.target=i.rootEl=t,i.preventDefault=void 0,i.stopPropagation=void 0,t[Y]._onDragOver(i)}}var r,o,a}function We(e){Q&&Q.parentNode[Y]._isOutsideThisEl(e.target)}function Re(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=a({},t),e[Y]=this;var n,i,r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Pe(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Re.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(n in X.initializePlugins(this,e,r),r)n in t||(t[n]=r[n]);for(i in ze(t),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&Fe,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?g(e,"pointerdown",this._onTapStart):(g(e,"mousedown",this._onTapStart),g(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(g(e,"dragover",this),g(e,"dragenter",this)),Se.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),a(this,U())}function _e(e,t,n,i,r,o,a,s){var l,u,c=e[Y],f=c.options.onMove;return!window.CustomEvent||b||w?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=i,l.related=r||t,l.relatedRect=o||I(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),f&&(u=f.call(c,l,a)),u}function je(e){e.draggable=!1}function Ye(){Te=!1}function Ue(e){return setTimeout(e,0)}function qe(e){return clearTimeout(e)}Re.prototype={constructor:Re,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(ye=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Q):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,i=this.el,e=this.options,r=e.preventOnFilter,o=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(a||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,u=e.filter;if(!function(e){De.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var i=t[n];i.checked&&De.push(i)}}(i),!Q&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||e.disabled||l.isContentEditable||(s=N(s,e.draggable,i,!1),s&&s.animated||ne===s))){if(oe=H(s),se=H(s,e.draggable),"function"==typeof u){if(u.call(this,t,s,this))return K({sortable:n,rootEl:l,name:"filter",targetEl:s,toEl:i,fromEl:i}),V("filter",n,{evt:t}),void(r&&t.cancelable&&t.preventDefault())}else if(u=u&&u.split(",").some(function(e){if(e=N(l,e.trim(),i,!1))return K({sortable:n,rootEl:e,name:"filter",targetEl:s,fromEl:i,toEl:i}),V("filter",n,{evt:t}),!0}))return void(r&&t.cancelable&&t.preventDefault());e.handle&&!N(l,e.handle,i,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(e,t,n){var i,r=this,o=r.el,a=r.options,s=o.ownerDocument;n&&!Q&&n.parentNode===o&&(i=I(n),ee=o,Z=(Q=n).parentNode,te=Q.nextSibling,ne=n,ue=a.group,fe={target:Re.dragged=Q,clientX:(t||e).clientX,clientY:(t||e).clientY},me=fe.clientX-i.left,ge=fe.clientY-i.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Q.style["will-change"]="all",i=function(){V("delayEnded",r,{evt:e}),Re.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!f&&r.nativeDraggable&&(Q.draggable=!0),r._triggerDragStart(e,t),K({sortable:r,name:"choose",originalEvent:e}),O(Q,a.chosenClass,!0))},a.ignore.split(",").forEach(function(e){L(Q,e.trim(),je)}),g(s,"dragover",Be),g(s,"mousemove",Be),g(s,"touchmove",Be),g(s,"mouseup",r._onDrop),g(s,"touchend",r._onDrop),g(s,"touchcancel",r._onDrop),f&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Q.draggable=!0),V("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(w||b)?i():Re.eventCanceled?this._onDrop():(g(s,"mouseup",r._disableDelayedDrag),g(s,"touchend",r._disableDelayedDrag),g(s,"touchcancel",r._disableDelayedDrag),g(s,"mousemove",r._delayedDragTouchMoveHandler),g(s,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&g(s,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(i,a.delay)))},_delayedDragTouchMoveHandler:function(e){e=e.touches?e.touches[0]:e;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Q&&je(Q),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;v(e,"mouseup",this._disableDelayedDrag),v(e,"touchend",this._disableDelayedDrag),v(e,"touchcancel",this._disableDelayedDrag),v(e,"mousemove",this._delayedDragTouchMoveHandler),v(e,"touchmove",this._delayedDragTouchMoveHandler),v(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?g(document,"pointermove",this._onTouchMove):g(document,t?"touchmove":"mousemove",this._onTouchMove):(g(Q,"dragend",this),g(ee,"dragstart",this._onDragStart));try{document.selection?Ue(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){var n;ke=!1,ee&&Q?(V("dragStarted",this,{evt:t}),this.nativeDraggable&&g(document,"dragover",We),n=this.options,e||O(Q,n.dragClass,!1),O(Q,n.ghostClass,!0),Re.active=this,e&&this._appendGhost(),K({sortable:this,name:"start",originalEvent:t})):this._nulling()},_emulateDragOver:function(){if(de){this._lastX=de.clientX,this._lastY=de.clientY,He();for(var e=document.elementFromPoint(de.clientX,de.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(de.clientX,de.clientY))!==t;)t=e;if(Q.parentNode[Y]._isOutsideThisEl(e),t)do{if(t[Y])if(t[Y]._onDragOver({clientX:de.clientX,clientY:de.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}while(t=(e=t).parentNode);$e()}},_onTouchMove:function(e){if(fe){var t=this.options,n=t.fallbackTolerance,i=t.fallbackOffset,r=e.touches?e.touches[0]:e,o=J&&S(J),a=J&&o&&o.a,s=J&&o&&o.d,t=Ne&&we&&M(we),a=(r.clientX-fe.clientX+i.x)/(a||1)+(t?t[0]-Me[0]:0)/(a||1),s=(r.clientY-fe.clientY+i.y)/(s||1)+(t?t[1]-Me[1]:0)/(s||1);if(!Re.active&&!ke){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))n.right+10||e.clientX<=n.right&&e.clientY>n.bottom&&e.clientX>=n.left:e.clientX>n.right&&e.clientY>n.top||e.clientX<=n.right&&e.clientY>n.bottom+10}(n,a,this)&&!v.animated){if(v===Q)return T(!1);if(v&&s===n.target&&(l=v),l&&(r=I(l)),!1!==_e(ee,s,Q,i,l,r,n,!!l))return M(),s.appendChild(Q),Z=s,D(),T(!0)}else if(l.parentNode===s){r=I(l);var y,x,b,w=Q.parentNode!==s,k=(k=Q.animated&&Q.toRect||i,L=l.animated&&l.toRect||r,C=(e=a)?k.left:k.top,t=e?k.right:k.bottom,c=e?k.width:k.height,v=e?L.left:L.top,k=e?L.right:L.bottom,L=e?L.width:L.height,!(C===v||t===k||C+c/2===v+L/2)),C=a?"top":"left",c=P(l,"top","top")||P(Q,"top","top"),v=c?c.scrollTop:void 0;if(ye!==l&&(x=r[C],Le=!1,Ee=!k&&u.invertSwap||w),0!==(y=function(e,t,n,i,r,o,a,s){var l=i?e.clientY:e.clientX,u=i?n.height:n.width,e=i?n.top:n.left,i=i?n.bottom:n.right,n=!1;if(!a)if(s&&be=15){v=false;g=true}var b=y&&(o||v&&(x==null||x<12.11)),k=m||S&&w>=9;function C(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var L=function(e,t){var n=e.className;var i=C(t).exec(n);if(i){var r=n.slice(i.index+i[0].length);e.className=n.slice(0,i.index)+(r?i[1]+r:"")}},E;function M(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function T(e,t){return M(e).appendChild(t)}function N(e,t,n,i){var r=document.createElement(e);if(n)r.className=n;if(i)r.style.cssText=i;if(typeof t=="string")r.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o;a+=n-a%n;o=s+1}}var B=function(){this.id=null;this.f=null;this.time=0;this.handler=z(this.onTimeout,this)};function W(e,t){for(var n=0;n=t)return i+Math.min(a,t-r);r+=o-i;r+=n-r%n;i=o+1;if(r>=t)return i}}var G=[""];function X(e){while(G.length<=e)G.push(V(G)+" ");return G[e]}function V(e){return e[e.length-1]}function K(e,t){var n=[];for(var i=0;i""&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){if(!t)return te(e);if(t.source.indexOf("\\w")>-1&&te(e))return true;return t.test(e)}function ie(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return false;return true}var re=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&re.test(e)}function ae(e,t,n){while((n<0?t>0:tn?-1:1;for(;;){if(t==n)return t;var r=(t+n)/2,o=i<0?Math.ceil(r):Math.floor(r);if(o==t)return e(o)?t:n;if(e(o))n=o;else t=o+i}}function le(e,t,n,i){if(!e)return i(t,n,"ltr",0);var r=false;for(var o=0;ot||t==n&&a.to==t){i(Math.max(a.from,t),Math.min(a.to,n),a.level==1?"rtl":"ltr",o);r=true}}if(!r)i(t,n,"ltr")}var ue=null;function ce(e,t,n){var i;ue=null;for(var r=0;rt)return r;if(o.to==t)if(o.from!=o.to&&n=="before")i=r;else ue=r;if(o.from==t)if(o.from!=o.to&&n!="before")i=r;else ue=r}return i!=null?i:ue}var fe=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN";var n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function $(e){if(e<=247)return t.charAt(e);else if(1424<=e&&e<=1524)return"R";else if(1536<=e&&e<=1785)return n.charAt(e-1536);else if(1774<=e&&e<=2220)return"r";else if(8192<=e&&e<=8203)return"w";else if(e==8204)return"b";else return"L"}var B=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;var W=/[stwN]/,R=/[LRr]/,_=/[Lb1n]/,j=/[1n]/;function Y(e,t,n){this.level=e;this.from=t;this.to=n}return function(e,t){var n=t=="ltr"?"L":"R";if(e.length==0||t=="ltr"&&!B.test(e))return false;var i=e.length,r=[];for(var o=0;o-1)i[t]=r.slice(0,o).concat(r.slice(o+1))}}}function ve(e,t){var n=me(e,t);if(!n.length)return;var i=Array.prototype.slice.call(arguments,2);for(var r=0;r0}function we(e){e.prototype.on=function(e,t){pe(this,e,t)};e.prototype.off=function(e,t){ge(this,e,t)}}function ke(e){if(e.preventDefault)e.preventDefault();else e.returnValue=false}function Ce(e){if(e.stopPropagation)e.stopPropagation();else e.cancelBubble=true}function Se(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==false}function Le(e){ke(e);Ce(e)}function Ee(e){return e.target||e.srcElement}function Me(e){var t=e.which;if(t==null)if(e.button&1)t=1;else if(e.button&2)t=3;else if(e.button&4)t=2;if(y&&e.ctrlKey&&t==1)t=3;return t}var Te=function(){if(S&&w<9)return false;var e=N("div");return"draggable"in e||"dragDrop"in e}(),De,Ae;function Ne(e){if(De==null){var t=N("span","");T(e,N("span",[t,document.createTextNode("x")]));if(e.firstChild.offsetHeight!=0)De=t.offsetWidth<=1&&t.offsetHeight>2&&!(S&&w<8)}var n=De?N("span",""):N("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");n.setAttribute("cm-text","");return n}function Oe(e){if(Ae!=null)return Ae;var t=T(e,document.createTextNode("AخA"));var n=E(t,0,1).getBoundingClientRect();var i=E(t,1,2).getBoundingClientRect();M(e);if(!n||n.left==n.right)return false;return Ae=i.right-n.right<3}var Fe="\n\nb".split(/\n/).length!=3?function(e){var t=0,n=[],i=e.length;while(t<=i){var r=e.indexOf("\n",t);if(r==-1)r=e.length;var o=e.slice(t,e.charAt(r-1)=="\r"?r-1:r);var a=o.indexOf("\r");if(a!=-1){n.push(o.slice(0,a));t+=a+1}else{n.push(o);t=r+1}}return n}:function(e){return e.split(/\r\n?|\n/)},Ie=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return false}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}if(!t||t.parentElement()!=e)return false;return t.compareEndPoints("StartToEnd",t)!=0},Pe=function(){var e=N("div");if("oncopy"in e)return true;e.setAttribute("oncopy","return;");return typeof e.oncopy=="function"}(),ze=null;function He(e){if(ze!=null)return ze;var t=T(e,N("span","x"));var n=t.getBoundingClientRect();var i=E(t,0,1).getBoundingClientRect();return ze=Math.abs(n.left-i.left)>1}var $e={},Be={};function We(e,t){if(2=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");var n=e;while(!n.lines)for(var i=0;;++i){var r=n.children[i],o=r.chunkSize();if(t=e.first&&tn)return rt(n,Ke(e,n).text.length);return dt(t,Ke(e,t.line).text.length)}function dt(e,t){var n=e.ch;if(n==null||n>t)return rt(e.line,t);else if(n<0)return rt(e.line,0);else return e}function ht(e,t){var n=[];for(var i=0;i=this.string.length},Ve.prototype.sol=function(){return this.pos==this.lineStart},Ve.prototype.peek=function(){return this.string.charAt(this.pos)||undefined},Ve.prototype.next=function(){if(this.post},Ve.prototype.eatSpace=function(){var e=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos)))++this.pos;return this.pos>e},Ve.prototype.skipToEnd=function(){this.pos=this.string.length},Ve.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1){this.pos=t;return true}},Ve.prototype.backUp=function(e){this.pos-=e},Ve.prototype.column=function(){if(this.lastColumnPos0)return null;if(o&&t!==false)this.pos+=o[0].length;return o}},Ve.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ve.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ve.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ve.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var pt=function(e,t){this.state=e;this.lookAhead=t},mt=function(e,t,n,i){this.state=t;this.doc=e;this.line=n;this.maxLookAhead=i||0;this.baseTokens=null;this.baseTokenPos=1};function gt(t,n,i,e){var l=[t.state.modeGen],r={};Lt(t,n.text,t.doc.mode,i,function(e,t){return l.push(e,t)},r,e);var u=i.state;var o=function(e){i.baseTokens=l;var o=t.state.overlays[e],a=1,s=0;i.state=true;Lt(t,n.text,o.mode,i,function(e,t){var n=a;while(se)l.splice(a,1,e,l[a+1],i);a+=2;s=Math.min(e,i)}if(!t)return;if(o.opaque){l.splice(n,a-n,e,"overlay "+t);a=n+2}else for(;ne.options.maxHighlightLength&&qe(e.doc.mode,i.state);var o=gt(e,t,i);if(r)i.state=r;t.stateAfter=i.save(!r);t.styles=o.styles;if(o.classes)t.styleClasses=o.classes;else if(t.styleClasses)t.styleClasses=null;if(n===e.doc.highlightFrontier)e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier)}return t.styles}function yt(n,i,e){var t=n.doc,r=n.display;if(!t.mode.startState)return new mt(t,true,i);var o=Et(n,i,e);var a=o>t.first&&Ke(t,o-1).stateAfter;var s=a?mt.fromSaved(t,a,o):new mt(t,Xe(t.mode),o);t.iter(o,i,function(e){xt(n,e.text,s);var t=s.line;e.stateAfter=t==i-1||t%5==0||t>=r.viewFrom&&tt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}mt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);if(t!=null&&e>this.maxLookAhead)this.maxLookAhead=e;return t},mt.prototype.baseToken=function(e){if(!this.baseTokens)return null;while(this.baseTokens[this.baseTokenPos]<=e)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},mt.prototype.nextLine=function(){this.line++;if(this.maxLookAhead>0)this.maxLookAhead--},mt.fromSaved=function(e,t,n){if(t instanceof pt)return new mt(e,qe(e.mode,t.state),n,t.lookAhead);else return new mt(e,qe(e.mode,t),n)},mt.prototype.save=function(e){var t=e!==false?qe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new pt(t,this.maxLookAhead):t};var kt=function(e,t,n){this.start=e.start;this.end=e.pos;this.string=e.current();this.type=t||null;this.state=n};function Ct(e,t,n,i){var r=e.doc,o=r.mode,a;t=ft(r,t);var s=Ke(r,t.line),l=yt(e,t.line,n);var u=new Ve(s.text,e.options.tabSize,l),c;if(i)c=[];while((i||u.pose.options.maxHighlightLength){s=false;if(a)xt(e,t,i,c.pos);c.pos=t.length;f=null}else f=St(wt(n,c,i.state,d),o);if(d){var h=d[0].name;if(h)f="m-"+(f?h+" "+f:h)}if(!s||u!=f){while(la;--s){if(s<=o.first)return o.first;var l=Ke(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof pt?u.lookAhead:0)<=o.modeFrontier))return s;var c=$(l.text,null,e.options.tabSize);if(r==null||i>c){r=s-1;i=c}}return r}function Mt(e,t){e.modeFrontier=Math.min(e.modeFrontier,t);if(e.highlightFrontiern;i--){var r=Ke(e,i).stateAfter;if(r&&(!(r instanceof pt)||i+r.lookAhead=t:o.to>t);(i||(i=[])).push(new Ot(a,o.from,l?null:o.to))}}return i}function Ht(e,t,n){var i;if(e)for(var r=0;r=t:o.to>t);if(s||o.from==t&&a.type=="bookmark"&&(!n||o.marker.insertLeft)){var l=o.from==null||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var b=0;b0)continue;var c=[l,1],f=ot(u.from,s.from),d=ot(u.to,s.to);if(f<0||!a.inclusiveLeft&&!f)c.push({from:u.from,to:s.from});if(d>0||!a.inclusiveRight&&!d)c.push({from:s.to,to:u.to});r.splice.apply(r,c);l+=c.length-3}}return r}function Rt(e){var t=e.markedSpans;if(!t)return;for(var n=0;nt)&&(!i||Ut(i,o.marker)<0))i=o.marker}return i}function Kt(e,t,n,i,r){var o=Ke(e,t);var a=Dt&&o.markedSpans;if(a)for(var s=0;s=0&&f<=0||c<=0&&f>=0)continue;if(c<=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?ot(u.to,n)>=0:ot(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?ot(u.from,i)<=0:ot(u.from,i)<0))return true}}function Qt(e){var t;while(t=Gt(e))e=t.find(-1,true).line;return e}function Zt(e){var t;while(t=Xt(e))e=t.find(1,true).line;return e}function Jt(e){var t,n;while(t=Xt(e)){e=t.find(1,true).line;(n||(n=[])).push(e)}return n}function en(e,t){var n=Ke(e,t),i=Qt(n);if(n==i)return t;return et(i)}function tn(e,t){if(t>e.lastLine())return t;var n=Ke(e,t),i;if(!nn(e,n))return t;while(i=Xt(n))n=i.find(1,true).line;return et(n)+1}function nn(e,t){var n=Dt&&t.markedSpans;if(n)for(var i=void 0,r=0;rn.maxLineLength){n.maxLineLength=t;n.maxLine=e}})}var ln=function(e,t,n){this.text=e;_t(this,t);this.height=n?n(this):1};function un(e,t,n,i){e.text=t;if(e.stateAfter)e.stateAfter=null;if(e.styles)e.styles=null;if(e.order!=null)e.order=null;Rt(e);_t(e,n);var r=i?i(e):1;if(r!=e.height)Je(e,r)}function cn(e){e.parent=null;Rt(e)}ln.prototype.lineNo=function(){return et(this)},we(ln);var fn={},dn={};function hn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?dn:fn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function pn(e,t){var n=D("span",null,null,g?"padding-right: .1px":null);var i={pre:D("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:false,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var r=0;r<=(t.rest?t.rest.length:0);r++){var o=r?t.rest[r-1]:t.line,a=void 0;i.pos=0;i.addToken=gn;if(Oe(e.display.measure)&&(a=de(o,e.doc.direction)))i.addToken=yn(i.addToken,a);i.map=[];var s=t!=e.display.externalMeasured&&et(o);bn(o,i,vt(e,o,s));if(o.styleClasses){if(o.styleClasses.bgClass)i.bgClass=I(o.styleClasses.bgClass,i.bgClass||"");if(o.styleClasses.textClass)i.textClass=I(o.styleClasses.textClass,i.textClass||"")}if(i.map.length==0)i.map.push(0,0,i.content.appendChild(Ne(e.display.measure)));if(r==0){t.measure.map=i.map;t.measure.cache={}}else{(t.measure.maps||(t.measure.maps=[])).push(i.map);(t.measure.caches||(t.measure.caches=[])).push({})}}if(g){var l=i.content.lastChild;if(/\bcm-tab\b/.test(l.className)||l.querySelector&&l.querySelector(".cm-tab"))i.content.className="cm-tab-wrap-hack"}ve(e,"renderLine",e,t.line,i.pre);if(i.pre.className)i.textClass=I(i.pre.className,i.textClass||"");return i}function mn(e){var t=N("span","•","cm-invalidchar");t.title="\\u"+e.charCodeAt(0).toString(16);t.setAttribute("aria-label",t.title);return t}function gn(e,t,n,i,r,o,a){if(!t)return;var s=e.splitSpaces?vn(t,e.trailingSpace):t;var l=e.cm.state.specialChars,u=false;var c;if(!l.test(t)){e.col+=t.length;c=document.createTextNode(s);e.map.push(e.pos,e.pos+t.length,c);if(S&&w<9)u=true;e.pos+=t.length}else{c=document.createDocumentFragment();var f=0;while(true){l.lastIndex=f;var d=l.exec(t);var h=d?d.index-f:t.length-f;if(h){var p=document.createTextNode(s.slice(f,f+h));if(S&&w<9)c.appendChild(N("span",[p]));else c.appendChild(p);e.map.push(e.pos,e.pos+h,p);e.col+=h;e.pos+=h}if(!d)break;f+=h+1;var m=void 0;if(d[0]=="\t"){var g=e.cm.options.tabSize,v=g-e.col%g;m=c.appendChild(N("span",X(v),"cm-tab"));m.setAttribute("role","presentation");m.setAttribute("cm-text","\t");e.col+=v}else if(d[0]=="\r"||d[0]=="\n"){m=c.appendChild(N("span",d[0]=="\r"?"␍":"","cm-invalidchar"));m.setAttribute("cm-text",d[0]);e.col+=1}else{m=e.cm.options.specialCharPlaceholder(d[0]);m.setAttribute("cm-text",d[0]);if(S&&w<9)c.appendChild(N("span",[m]));else c.appendChild(m);e.col+=1}e.map.push(e.pos,e.pos+1,m);e.pos++}}e.trailingSpace=s.charCodeAt(t.length-1)==32;if(n||i||r||u||o||a){var y=n||"";if(i)y+=i;if(r)y+=r;var x=N("span",[c],y,o);if(a)for(var b in a)if(a.hasOwnProperty(b)&&b!="style"&&b!="class")x.setAttribute(b,a[b]);return e.content.appendChild(x)}e.content.appendChild(c)}function vn(e,t){if(e.length>1&&!/ /.test(e))return e;var n=t,i="";for(var r=0;rs&&u.from<=s)break}if(u.to>=l)return f(e,t,n,i,r,o,a);f(e,t.slice(0,u.to-s),n,i,null,o,a);i=null;t=t.slice(u.to-s);s=u.to}}}function xn(e,t,n,i){var r=!i&&n.widgetNode;if(r)e.map.push(e.pos,e.pos+t,r);if(!i&&e.cm.display.input.needsContentAttribute){if(!r)r=e.content.appendChild(document.createElement("span"));r.setAttribute("cm-marker",n.id)}if(r){e.cm.display.input.setUneditable(r);e.content.appendChild(r)}e.pos+=t;e.trailingSpace=false}function bn(e,t,n){var i=e.markedSpans,r=e.text,o=0;if(!i){for(var a=1;al||C.collapsed&&k.to==l&&k.from==l)){if(k.to!=null&&k.to!=l&&h>k.to){h=k.to;m=""}if(C.className)p+=" "+C.className;if(C.css)d=(d?d+";":"")+C.css;if(C.startStyle&&k.from==l)g+=" "+C.startStyle;if(C.endStyle&&k.to==h)(b||(b=[])).push(C.endStyle,k.to);if(C.title)(y||(y={})).title=C.title;if(C.attributes)for(var S in C.attributes)(y||(y={}))[S]=C.attributes[S];if(C.collapsed&&(!v||Ut(v.marker,C)<0))v=k}else if(k.from>l&&h>k.from)h=k.from}if(b)for(var L=0;L=s)break;var M=Math.min(s,h);while(true){if(c){var T=l+c.length;if(!v){var D=T>M?c.slice(0,M-l):c;t.addToken(t,D,f?f+p:p,g,l+D.length==h?m:"",d,y)}if(T>=M){c=c.slice(M-l);l=M;break}l=T;g=""}c=r.slice(o,o=n[u++]);f=hn(n[u++],t.cm.options)}}}function wn(e,t,n){this.line=t;this.rest=Jt(t);this.size=this.rest?et(V(this.rest))-n+1:1;this.node=this.text=null;this.hidden=nn(e,t)}function kn(e,t,n){var i=[],r;for(var o=t;o2)o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Qn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var i=0;in)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:true}}function Zn(e,t){t=Qt(t);var n=et(t);var i=e.display.externalMeasured=new wn(e.doc,t,n);i.lineN=n;var r=i.built=pn(e,i);i.text=r.pre;T(e.display.lineMeasure,r.pre);return i}function Jn(e,t,n,i){return ni(e,ti(e,t),n,i)}function ei(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt){o=l-s;r=o-1;if(t>=l)a="right"}if(r!=null){i=e[u+2];if(s==l&&n==(i.insertLeft?"left":"right"))a=n;if(n=="left"&&r==0)while(u&&e[u-2]==e[u-3]&&e[u-1].insertLeft){i=e[(u-=3)+2];a="left"}if(n=="right"&&r==l-s)while(u=0;r--)if((n=e[r]).left!=n.right)break;return n}function si(e,t,n,i){var r=oi(t.map,n,i);var o=r.node,a=r.start,s=r.end,l=r.collapse;var u;if(o.nodeType==3){for(var c=0;c<4;c++){while(a&&oe(t.line.text.charAt(r.coverStart+a)))--a;while(r.coverStart+s0)l=i="right";var f;if(e.options.lineWrapping&&(f=o.getClientRects()).length>1)u=f[i=="right"?f.length-1:0];else u=o.getBoundingClientRect()}if(S&&w<9&&!a&&(!u||!u.left&&!u.right)){var d=o.parentNode.getClientRects()[0];if(d)u={left:d.left,right:d.left+Di(e.display),top:d.top,bottom:d.bottom};else u=ii}var h=u.top-t.rect.top,p=u.bottom-t.rect.top;var m=(h+p)/2;var g=t.view.measure.heights;var v=0;for(;v=o.text.length){t=o.text.length;n="before"}else if(t<=0){t=0;n="after"}if(!u)return l(n=="before"?t-1:t,n=="before");function c(e,t,n){var i=u[t],r=i.level==1;return l(n?e-1:e,r!=n)}var f=ce(u,t,n);var d=ue;var h=c(t,f,n=="before");if(d!=null)h.other=c(t,d,n!="before");return h}function xi(e,t){var n=0;t=ft(e.doc,t);if(!e.options.lineWrapping)n=Di(e.display)*t.ch;var i=Ke(e.doc,t.line);var r=on(i)+Yn(e.display);return{left:n,right:n,top:r,bottom:r+i.height}}function bi(e,t,n,i,r){var o=rt(e,t,n);o.xRel=r;if(i)o.outside=i;return o}function wi(e,t,n){var i=e.doc;n+=e.display.viewOffset;if(n<0)return bi(i.first,0,null,-1,-1);var r=tt(i,n),o=i.first+i.size-1;if(r>o)return bi(i.first+i.size-1,Ke(i,o).text.length,null,1,1);if(t<0)t=0;var a=Ke(i,r);for(;;){var s=Li(e,a,r,t,n);var l=Vt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==r)return u;a=Ke(i,r=u.line)}}function ki(t,e,n,i){i-=pi(e);var r=e.text.length;var o=se(function(e){return ni(t,n,e-1).bottom<=i},r,0);r=se(function(e){return ni(t,n,e).top>i},o,r);return{begin:o,end:r}}function Ci(e,t,n,i){if(!n)n=ti(e,t);var r=mi(e,t,ni(e,n,i),"line").top;return ki(e,t,n,r)}function Si(e,t,n,i){return e.bottom<=n?false:e.top>n?true:(i?e.left:e.right)>t}function Li(n,e,t,i,r){r-=on(e);var o=ti(n,e);var a=pi(e);var s=0,l=e.text.length,u=true;var c=de(e,n.doc.direction);if(c){var f=(n.options.lineWrapping?Mi:Ei)(n,e,t,o,c,i,r);u=f.level!=1;s=u?f.from:f.to-1;l=u?f.to:f.from-1}var d=null,h=null;var p=se(function(e){var t=ni(n,o,e);t.top+=a;t.bottom+=a;if(!Si(t,i,r,false))return false;if(t.top<=r&&t.left<=i){d=e;h=t}return true},s,l);var m,g,v=false;if(h){var y=i-h.left=b.bottom?1:0}p=ae(e.text,p,1);return bi(t,p,g,v,i-m)}function Ei(i,r,o,a,s,l,u){var e=se(function(e){var t=s[e],n=t.level!=1;return Si(yi(i,rt(o,n?t.to:t.from,n?"before":"after"),"line",r,a),l,u,true)},0,s.length-1);var t=s[e];if(e>0){var n=t.level!=1;var c=yi(i,rt(o,n?t.from:t.to,n?"after":"before"),"line",r,a);if(Si(c,l,u,true)&&c.top>u)t=s[e-1]}return t}function Mi(e,t,n,i,r,o,a){var s=ki(e,t,i,a);var l=s.begin;var u=s.end;if(/\s/.test(t.text.charAt(u-1)))u--;var c=null,f=null;for(var d=0;d=u||h.to<=l)continue;var p=h.level!=1;var m=ni(e,i,p?Math.min(u,h.to)-1:Math.max(l,h.from)).right;var g=mg){c=h;f=g}}if(!c)c=r[r.length-1];if(c.fromu)c={from:c.from,to:u,level:c.level};return c}function Ti(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(ri==null){ri=N("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t){ri.appendChild(document.createTextNode("x"));ri.appendChild(N("br"))}ri.appendChild(document.createTextNode("x"))}T(e.measure,ri);var n=ri.offsetHeight/50;if(n>3)e.cachedTextHeight=n;M(e.measure);return n||1}function Di(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=N("span","xxxxxxxxxx");var n=N("pre",[t],"CodeMirror-line-like");T(e.measure,n);var i=t.getBoundingClientRect(),r=(i.right-i.left)/10;if(r>2)e.cachedCharWidth=r;return r||10}function Ai(e){var t=e.display,n={},i={};var r=t.gutters.clientLeft;for(var o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+r;i[s]=o.clientWidth}return{fixedPos:Ni(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:i,wrapperWidth:t.wrapper.clientWidth}}function Ni(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Oi(i){var r=Ti(i.display),o=i.options.lineWrapping;var a=o&&Math.max(5,i.display.scroller.clientWidth/Di(i.display)-3);return function(e){if(nn(i.doc,e))return 0;var t=0;if(e.widgets)for(var n=0;n0&&(u=Ke(e.doc,l.line).text).length==l.ch){var c=$(u,u.length,e.options.tabSize)-u.length;l=rt(l.line,Math.max(0,Math.round((o-qn(e.display).left)/Di(e.display))-c))}return l}function Pi(e,t){if(t>=e.display.viewTo)return null;t-=e.display.viewFrom;if(t<0)return null;var n=e.display.view;for(var i=0;it))r.updateLineNumbers=t;e.curOp.viewChanged=true;if(t>=r.viewTo){if(Dt&&en(e.doc,t)r.viewFrom)$i(e);else{r.viewFrom+=i;r.viewTo+=i}else if(t<=r.viewFrom&&n>=r.viewTo)$i(e);else if(t<=r.viewFrom){var o=Bi(e,n,n+i,1);if(o){r.view=r.view.slice(o.index);r.viewFrom=o.lineN;r.viewTo+=i}else $i(e)}else if(n>=r.viewTo){var a=Bi(e,t,t,-1);if(a){r.view=r.view.slice(0,a.index);r.viewTo=a.lineN}else $i(e)}else{var s=Bi(e,t,t,-1);var l=Bi(e,n,n+i,1);if(s&&l){r.view=r.view.slice(0,s.index).concat(kn(e,s.lineN,l.lineN)).concat(r.view.slice(l.index));r.viewTo+=i}else $i(e)}var u=r.externalMeasured;if(u)if(n=r.lineN&&t=i.viewTo)return;var o=i.view[Pi(e,t)];if(o.node==null)return;var a=o.changes||(o.changes=[]);if(W(a,n)==-1)a.push(n)}function $i(e){e.display.viewFrom=e.display.viewTo=e.doc.first;e.display.view=[];e.display.viewOffset=0}function Bi(e,t,n,i){var r=Pi(e,t),o,a=e.display.view;if(!Dt||n==e.doc.first+e.doc.size)return{index:r,lineN:n};var s=e.display.viewFrom;for(var l=0;l0){if(r==a.length-1)return null;o=s+a[r].size-t;r++}else o=s-t;t+=o;n+=o}while(en(e.doc,n)!=n){if(r==(i<0?0:a.length-1))return null;n+=i*a[r-(i<0?1:0)].size;r+=i}return{index:r,lineN:n}}function Wi(e,t,n){var i=e.display,r=i.view;if(r.length==0||t>=i.viewTo||n<=i.viewFrom){i.view=kn(e,t,n);i.viewFrom=t}else{if(i.viewFrom>t)i.view=kn(e,t,i.viewFrom).concat(i.view);else if(i.viewFromn)i.view=i.view.slice(0,Pi(e,n))}i.viewTo=n}function Ri(e){var t=e.display.view,n=0;for(var i=0;i=e.display.viewTo||s.to().line0)t.blinker=setInterval(function(){if(!e.hasFocus())Qi(e);t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate);else if(e.options.cursorBlinkRate<0)t.cursorDiv.style.visibility="hidden"}function Xi(e){if(!e.hasFocus()){e.display.input.focus();if(!e.state.focused)Ki(e)}}function Vi(e){e.state.delayingBlurEvent=true;setTimeout(function(){if(e.state.delayingBlurEvent){e.state.delayingBlurEvent=false;if(e.state.focused)Qi(e)}},100)}function Ki(e,t){if(e.state.delayingBlurEvent&&!e.state.draggingText)e.state.delayingBlurEvent=false;if(e.options.readOnly=="nocursor")return;if(!e.state.focused){ve(e,"focus",e,t);e.state.focused=true;F(e.display.wrapper,"CodeMirror-focused");if(!e.curOp&&e.display.selForContextMenu!=e.doc.sel){e.display.input.reset();if(g)setTimeout(function(){return e.display.input.reset(true)},20)}e.display.input.receivedFocus()}Gi(e)}function Qi(e,t){if(e.state.delayingBlurEvent)return;if(e.state.focused){ve(e,"blur",e,t);e.state.focused=false;L(e.display.wrapper,"CodeMirror-focused")}clearInterval(e.display.blinker);setTimeout(function(){if(!e.state.focused)e.display.shift=false},150)}function Zi(e){var t=e.display;var n=t.lineDiv.offsetTop;for(var i=0;i.005||c<-.005){Je(r.line,a);Ji(r.line);if(r.rest)for(var f=0;fe.display.sizerWidth){var d=Math.ceil(s/Di(e.display));if(d>e.display.maxLineLength){e.display.maxLineLength=d;e.display.maxLine=r.line;e.display.maxLineChanged=true}}}}function Ji(e){if(e.widgets)for(var t=0;t=a){o=tt(t,on(Ke(t,l))-e.wrapper.clientHeight);a=l}}return{from:o,to:Math.max(a,o+1)}}function tr(e,t){if(ye(e,"scrollCursorIntoView"))return;var n=e.display,i=n.sizer.getBoundingClientRect(),r=null;if(t.top+i.top<0)r=true;else if(t.bottom+i.top>(window.innerHeight||document.documentElement.clientHeight))r=false;if(r!=null&&!l){var o=N("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Yn(e.display))+"px;\n height: "+(t.bottom-t.top+Gn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o);o.scrollIntoView(r);e.display.lineSpace.removeChild(o)}}function nr(e,t,n,i){if(i==null)i=0;var r;if(!e.options.lineWrapping&&t==n){t=t.ch?rt(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t;n=t.sticky=="before"?rt(t.line,t.ch+1,"before"):t}for(var o=0;o<5;o++){var a=false;var s=yi(e,t);var l=!n||n==t?s:yi(e,n);r={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-i,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+i};var u=rr(e,r);var c=e.doc.scrollTop,f=e.doc.scrollLeft;if(u.scrollTop!=null){fr(e,u.scrollTop);if(Math.abs(e.doc.scrollTop-c)>1)a=true}if(u.scrollLeft!=null){hr(e,u.scrollLeft);if(Math.abs(e.doc.scrollLeft-f)>1)a=true}if(!a)break}return r}function ir(e,t){var n=rr(e,t);if(n.scrollTop!=null)fr(e,n.scrollTop);if(n.scrollLeft!=null)hr(e,n.scrollLeft)}function rr(e,t){var n=e.display,i=Ti(e.display);if(t.top<0)t.top=0;var r=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:n.scroller.scrollTop;var o=Vn(e),a={};if(t.bottom-t.top>o)t.bottom=t.top+o;var s=e.doc.height+Un(n);var l=t.tops-i;if(t.topr+o){var c=Math.min(t.top,(u?s:t.bottom)-o);if(c!=r)a.scrollTop=c}var f=e.options.fixedGutter?0:n.gutters.offsetWidth;var d=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:n.scroller.scrollLeft-f;var h=Xn(e)-n.gutters.offsetWidth;var p=t.right-t.left>h;if(p)t.right=t.left+h;if(t.left<10)a.scrollLeft=0;else if(t.lefth+d-3)a.scrollLeft=t.right+(p?0:10)-h;return a}function or(e,t){if(t==null)return;ur(e);e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function ar(e){ur(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function sr(e,t,n){if(t!=null||n!=null)ur(e);if(t!=null)e.curOp.scrollLeft=t;if(n!=null)e.curOp.scrollTop=n}function lr(e,t){ur(e);e.curOp.scrollToPos=t}function ur(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=xi(e,t.from),i=xi(e,t.to);cr(e,n,i,t.margin)}}function cr(e,t,n,i){var r=rr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-i,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+i});sr(e,r.scrollLeft,r.scrollTop)}function fr(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;if(!m)_r(e,{top:t});dr(e,t,true);if(m)_r(e);Ir(e,100)}function dr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t));if(e.display.scroller.scrollTop==t&&!n)return;e.doc.scrollTop=t;e.display.scrollbars.setScrollTop(t);if(e.display.scroller.scrollTop!=t)e.display.scroller.scrollTop=t}function hr(e,t,n,i){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth));if((n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!i)return;e.doc.scrollLeft=t;qr(e);if(e.display.scroller.scrollLeft!=t)e.display.scroller.scrollLeft=t;e.display.scrollbars.setScrollLeft(t)}function pr(e){var t=e.display,n=t.gutters.offsetWidth;var i=Math.round(e.doc.height+Un(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:i,scrollHeight:i+Gn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var mr=function(e,t,n){this.cm=n;var i=this.vert=N("div",[N("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar");var r=this.horiz=N("div",[N("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=r.tabIndex=-1;e(i);e(r);pe(i,"scroll",function(){if(i.clientHeight)t(i.scrollTop,"vertical")});pe(r,"scroll",function(){if(r.clientWidth)t(r.scrollLeft,"horizontal")});this.checkedZeroWidth=false;if(S&&w<8)this.horiz.style.minHeight=this.vert.style.minWidth="18px"};mr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1;var n=e.scrollHeight>e.clientHeight+1;var i=e.nativeBarWidth;if(n){this.vert.style.display="block";this.vert.style.bottom=t?i+"px":"0";var r=e.viewHeight-(t?i:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+r)+"px"}else{this.vert.style.display="";this.vert.firstChild.style.height="0"}if(t){this.horiz.style.display="block";this.horiz.style.right=n?i+"px":"0";this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?i:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else{this.horiz.style.display="";this.horiz.firstChild.style.width="0"}if(!this.checkedZeroWidth&&e.clientHeight>0){if(i==0)this.zeroWidthHack();this.checkedZeroWidth=true}return{right:n?i:0,bottom:t?i:0}},mr.prototype.setScrollLeft=function(e){if(this.horiz.scrollLeft!=e)this.horiz.scrollLeft=e;if(this.disableHoriz)this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},mr.prototype.setScrollTop=function(e){if(this.vert.scrollTop!=e)this.vert.scrollTop=e;if(this.disableVert)this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},mr.prototype.zeroWidthHack=function(){var e=y&&!s?"12px":"18px";this.horiz.style.height=this.vert.style.width=e;this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none";this.disableHoriz=new B;this.disableVert=new B},mr.prototype.enableZeroWidthBar=function(n,i,r){n.style.pointerEvents="auto";function o(){var e=n.getBoundingClientRect();var t=r=="vert"?document.elementFromPoint(e.right-1,(e.top+e.bottom)/2):document.elementFromPoint((e.right+e.left)/2,e.bottom-1);if(t!=n)n.style.pointerEvents="none";else i.set(1e3,o)}i.set(1e3,o)},mr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz);e.removeChild(this.vert)};var gr=function(){};function vr(e,t){if(!t)t=pr(e);var n=e.display.barWidth,i=e.display.barHeight;yr(e,t);for(var r=0;r<4&&n!=e.display.barWidth||i!=e.display.barHeight;r++){if(n!=e.display.barWidth&&e.options.lineWrapping)Zi(e);yr(e,pr(e));n=e.display.barWidth;i=e.display.barHeight}}function yr(e,t){var n=e.display;var i=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=i.right)+"px";n.sizer.style.paddingBottom=(n.barHeight=i.bottom)+"px";n.heightForcer.style.borderBottom=i.bottom+"px solid transparent";if(i.right&&i.bottom){n.scrollbarFiller.style.display="block";n.scrollbarFiller.style.height=i.bottom+"px";n.scrollbarFiller.style.width=i.right+"px"}else n.scrollbarFiller.style.display="";if(i.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter){n.gutterFiller.style.display="block";n.gutterFiller.style.height=i.bottom+"px";n.gutterFiller.style.width=t.gutterWidth+"px"}else n.gutterFiller.style.display=""}gr.prototype.update=function(){return{bottom:0,right:0}},gr.prototype.setScrollLeft=function(){},gr.prototype.setScrollTop=function(){},gr.prototype.clear=function(){};var xr={native:mr,null:gr};function br(n){if(n.display.scrollbars){n.display.scrollbars.clear();if(n.display.scrollbars.addClass)L(n.display.wrapper,n.display.scrollbars.addClass)}n.display.scrollbars=new xr[n.options.scrollbarStyle](function(e){n.display.wrapper.insertBefore(e,n.display.scrollbarFiller);pe(e,"mousedown",function(){if(n.state.focused)setTimeout(function(){return n.display.input.focus()},0)});e.setAttribute("cm-not-content","true")},function(e,t){if(t=="horizontal")hr(n,e);else fr(n,e)},n);if(n.display.scrollbars.addClass)F(n.display.wrapper,n.display.scrollbars.addClass)}var wr=0;function kr(e){e.curOp={cm:e,viewChanged:false,startHeight:e.doc.height,forceUpdate:false,updateInput:0,typing:false,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:false,updateMaxLine:false,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:false,id:++wr};Sn(e.curOp)}function Cr(e){var t=e.curOp;if(t)En(t,function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping;e.update=e.mustUpdate&&new zr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Er(e){e.updatedDisplay=e.mustUpdate&&Wr(e.cm,e.update)}function Mr(e){var t=e.cm,n=t.display;if(e.updatedDisplay)Zi(t);e.barMeasure=pr(t);if(n.maxLineChanged&&!t.options.lineWrapping){e.adjustWidthTo=Jn(t,n.maxLine,n.maxLine.text.length).left+3;t.display.sizerWidth=e.adjustWidthTo;e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Gn(t)+t.display.barWidth);e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Xn(t))}if(e.updatedDisplay||e.selectionChanged)e.preparedSelection=n.input.prepareSelection()}function Tr(e){var t=e.cm;if(e.adjustWidthTo!=null){t.display.sizer.style.minWidth=e.adjustWidthTo+"px";if(e.maxScrollLeft=l.display.viewTo)return;var c=+new Date+l.options.workTime;var f=yt(l,u.highlightFrontier);var d=[];u.iter(f.line,Math.min(u.first+u.size,l.display.viewTo+500),function(e){if(f.line>=l.display.viewFrom){var t=e.styles;var n=e.text.length>l.options.maxHighlightLength?qe(u.mode,f.state):null;var i=gt(l,e,f,true);if(n)f.state=n;e.styles=i.styles;var r=e.styleClasses,o=i.classes;if(o)e.styleClasses=o;else if(r)e.styleClasses=null;var a=!t||t.length!=e.styles.length||r!=o&&(!r||!o||r.bgClass!=o.bgClass||r.textClass!=o.textClass);for(var s=0;!a&&sc){Ir(l,l.options.workDelay);return true}});u.highlightFrontier=f.line;u.modeFrontier=Math.max(u.modeFrontier,f.line);if(d.length)Ar(l,function(){for(var e=0;e=n.viewFrom&&t.visible.to<=n.viewTo&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&Ri(e)==0)return false;if(Gr(e)){$i(e);t.dims=Ai(e)}var r=i.first+i.size;var o=Math.max(t.visible.from-e.options.viewportMargin,i.first);var a=Math.min(r,t.visible.to+e.options.viewportMargin);if(n.viewFroma&&n.viewTo-a<20)a=Math.min(r,n.viewTo);if(Dt){o=en(e.doc,o);a=tn(e.doc,a)}var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Wi(e,o,a);n.viewOffset=on(Ke(e.doc,n.viewFrom));e.display.mover.style.top=n.viewOffset+"px";var l=Ri(e);if(!s&&l==0&&!t.force&&n.renderedView==n.view&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo))return false;var u=$r(e);if(l>4)n.lineDiv.style.display="none";jr(e,n.updateLineNumbers,t.dims);if(l>4)n.lineDiv.style.display="";n.renderedView=n.view;Br(u);M(n.cursorDiv);M(n.selectionDiv);n.gutters.style.height=n.sizer.style.minHeight=0;if(s){n.lastWrapHeight=t.wrapperHeight;n.lastWrapWidth=t.wrapperWidth;Ir(e,400)}n.updateLineNumbers=null;return true}function Rr(e,t){var n=t.viewport;for(var i=true;;i=false){if(!i||!e.options.lineWrapping||t.oldDisplayWidth==Xn(e)){if(n&&n.top!=null)n={top:Math.min(e.doc.height+Un(e.display)-Vn(e),n.top)};t.visible=er(e.display,e.doc,n);if(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else if(i)t.visible=er(e.display,e.doc,n);if(!Wr(e,t))break;Zi(e);var r=pr(e);_i(e);vr(e,r);Ur(e,r);t.force=false}t.signal(e,"update",e);if(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo){t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo);e.display.reportedViewFrom=e.display.viewFrom;e.display.reportedViewTo=e.display.viewTo}}function _r(e,t){var n=new zr(e,t);if(Wr(e,n)){Zi(e);Rr(e,n);var i=pr(e);_i(e);vr(e,i);Ur(e,i);n.finish()}}function jr(n,e,t){var i=n.display,r=n.options.lineNumbers;var o=i.lineDiv,a=o.firstChild;function s(e){var t=e.nextSibling;if(g&&y&&n.display.currentWheelTarget==e)e.style.display="none";else e.parentNode.removeChild(e);return t}var l=i.view,u=i.viewFrom;for(var c=0;c-1)h=false;An(n,f,u,t)}if(h){M(f.lineNumber);f.lineNumber.appendChild(document.createTextNode(it(n.options,u)))}a=f.node.nextSibling}u+=f.size}while(a)a=s(a)}function Yr(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Ur(e,t){e.display.sizer.style.minHeight=t.docHeight+"px";e.display.heightForcer.style.top=t.docHeight+"px";e.display.gutters.style.height=t.docHeight+e.display.barHeight+Gn(e)+"px"}function qr(e){var t=e.display,n=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;var i=Ni(t)-t.scroller.scrollLeft+e.doc.scrollLeft;var r=t.gutters.offsetWidth,o=i+"px";for(var a=0;aa.clientWidth;var l=a.scrollHeight>a.clientHeight;if(!(i&&s||r&&l))return;if(r&&y&&g)e:for(var u=t.target,c=o.view;u!=a;u=u.parentNode)for(var f=0;f=0&&ot(e,i.to())<=0)return n}return-1};var ro=function(e,t){this.anchor=e;this.head=t};function oo(e,t,n){var i=e&&e.options.selectionsMayTouch;var r=t[n];t.sort(function(e,t){return ot(e.from(),t.from())});n=W(t,r);for(var o=1;o0:l>=0){var u=ut(s.from(),a.from()),c=lt(s.to(),a.to());var f=s.empty()?a.from()==a.head:s.from()==s.head;if(o<=n)--n;t.splice(--o,2,new ro(f?c:u,f?u:c))}}return new io(t,n)}function ao(e,t){return new io([new ro(e,t||e)],0)}function so(e){if(!e.text)return e.to;return rt(e.from.line+e.text.length-1,V(e.text).length+(e.text.length==1?e.from.ch:0))}function lo(e,t){if(ot(e,t.from)<0)return e;if(ot(e,t.to)<=0)return so(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,i=e.ch;if(e.line==t.to.line)i+=so(t).ch-t.to.ch;return rt(n,i)}function uo(e,t){var n=[];for(var i=0;i1)e.remove(s.line+1,p-1);e.insert(s.line+1,v)}Tn(e,"change",e,i)}function vo(e,a,s){function l(e,t,n){if(e.linked)for(var i=0;i1&&!e.done[e.done.length-2].ranges){e.done.pop();return V(e.done)}}function Lo(e,t,n,i){var r=e.history;r.undone.length=0;var o=+new Date,a;var s;if((r.lastOp==i||r.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&r.lastModTime>o-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(a=So(r,r.lastOp==i))){s=V(a.changes);if(ot(t.from,t.to)==0&&ot(t.from,s.to)==0)s.to=so(t);else a.changes.push(ko(e,t))}else{var l=V(r.done);if(!l||!l.ranges)To(e.sel,r.done);a={changes:[ko(e,t)],generation:r.generation};r.done.push(a);while(r.done.length>r.undoDepth){r.done.shift();if(!r.done[0].ranges)r.done.shift()}}r.done.push(n);r.generation=++r.maxGeneration;r.lastModTime=r.lastSelTime=o;r.lastOp=r.lastSelOp=i;r.lastOrigin=r.lastSelOrigin=t.origin;if(!s)ve(e,"historyAdded")}function Eo(e,t,n,i){var r=t.charAt(0);return r=="*"||r=="+"&&n.ranges.length==i.ranges.length&&n.somethingSelected()==i.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Mo(e,t,n,i){var r=e.history,o=i&&i.origin;if(n==r.lastSelOp||o&&r.lastSelOrigin==o&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==o||Eo(e,o,V(r.done),t)))r.done[r.done.length-1]=t;else To(t,r.done);r.lastSelTime=+new Date;r.lastSelOrigin=o;r.lastSelOp=n;if(i&&i.clearRedo!==false)Co(r.undone)}function To(e,t){var n=V(t);if(!(n&&n.ranges&&n.equals(e)))t.push(e)}function Do(t,n,e,i){var r=n["spans_"+t.id],o=0;t.iter(Math.max(t.first,e),Math.min(t.first+t.size,i),function(e){if(e.markedSpans)(r||(r=n["spans_"+t.id]={}))[o]=e.markedSpans;++o})}function Ao(e){if(!e)return null;var t;for(var n=0;n-1){V(s)[f]=u[f];delete u[f]}}}return i}function Io(e,t,n,i){if(i){var r=e.anchor;if(n){var o=ot(t,r)<0;if(o!=ot(n,r)<0){r=t;t=n}else if(o!=ot(t,n)<0)t=n}return new ro(r,t)}else return new ro(n||t,t)}function Po(e,t,n,i,r){if(r==null)r=e.cm&&(e.cm.display.shift||e.extend);Ro(e,new io([Io(e.sel.primary(),t,n,r)],0),i)}function zo(e,t,n){var i=[];var r=e.cm&&(e.cm.display.shift||e.extend);for(var o=0;o=t.ch:s.to>t.ch))){if(r){ve(l,"beforeCursorEnter");if(l.explicitlyCleared)if(!o.markedSpans)break;else{--a;continue}}if(!l.atomic)continue;if(n){var f=l.find(i<0?1:-1),d=void 0;if(i<0?c:u)f=Xo(e,f,-i,f&&f.line==t.line?o:null);if(f&&f.line==t.line&&(d=ot(f,n))&&(i<0?d<0:d>0))return qo(e,f,t,i,r)}var h=l.find(i<0?-1:1);if(i<0?u:c)h=Xo(e,h,i,h.line==t.line?o:null);return h?qo(e,h,t,i,r):null}}return t}function Go(e,t,n,i,r){var o=i||1;var a=qo(e,t,n,o,r)||!r&&qo(e,t,n,o,true)||qo(e,t,n,-o,r)||!r&&qo(e,t,n,-o,true);if(!a){e.cantEdit=true;return rt(e.first,0)}return a}function Xo(e,t,n,i){if(n<0&&t.ch==0)if(t.line>e.first)return ft(e,rt(t.line-1));else return null;else if(n>0&&t.ch==(i||Ke(e,t.line)).text.length)if(t.line=0;--r)Zo(e,{from:i[r].from,to:i[r].to,text:r?[""]:t.text,origin:t.origin});else Zo(e,t)}function Zo(e,n){if(n.text.length==1&&n.text[0]==""&&ot(n.from,n.to)==0)return;var t=uo(e,n);Lo(e,n,t,e.cm?e.cm.curOp.id:NaN);ta(e,n,t,$t(e,n));var i=[];vo(e,function(e,t){if(!t&&W(i,e.history)==-1){aa(e.history,n);i.push(e.history)}ta(e,n,null,$t(e,n))})}function Jo(r,o,e){var t=r.cm&&r.cm.state.suppressEdits;if(t&&!e)return;var n=r.history,a,i=r.sel;var s=o=="undo"?n.done:n.undone,l=o=="undo"?n.undone:n.done;var u=0;for(;u=0;--h){var p=d(h);if(p)return p.v}}function ea(e,t){if(t==0)return;e.first+=t;e.sel=new io(K(e.sel.ranges,function(e){return new ro(rt(e.anchor.line+t,e.anchor.ch),rt(e.head.line+t,e.head.ch))}),e.sel.primIndex);if(e.cm){zi(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,i=n.viewFrom;ie.lastLine())return;if(t.from.lineo)t={from:t.from,to:rt(o,Ke(e,o).text.length),text:[t.text[0]],origin:t.origin};t.removed=Qe(e,t.from,t.to);if(!n)n=uo(e,t);if(e.cm)na(e.cm,t,i);else go(e,t,i);_o(e,n,j);if(e.cantEdit&&Go(e,rt(e.firstLine(),0)))e.cantEdit=false}function na(e,t,n){var i=e.doc,r=e.display,o=t.from,a=t.to;var s=false,l=o.line;if(!e.options.lineWrapping){l=et(Qt(Ke(i,o.line)));i.iter(l,a.line+1,function(e){if(e==r.maxLine){s=true;return true}})}if(i.sel.contains(t.from,t.to)>-1)xe(e);go(i,t,n,Oi(e));if(!e.options.lineWrapping){i.iter(l,o.line+t.text.length,function(e){var t=an(e);if(t>r.maxLineLength){r.maxLine=e;r.maxLineLength=t;r.maxLineChanged=true;s=false}});if(s)e.curOp.updateMaxLine=true}Mt(i,o.line);Ir(e,400);var u=t.text.length-(a.line-o.line)-1;if(t.full)zi(e);else if(o.line==a.line&&t.text.length==1&&!mo(e.doc,t))Hi(e,o.line,"text");else zi(e,o.line,a.line+1,u);var c=be(e,"changes"),f=be(e,"change");if(f||c){var d={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};if(f)Tn(e,"change",e,d);if(c)(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function ia(e,t,n,i,r){var o;if(!i)i=n;if(ot(i,n)<0)o=[i,n],n=o[0],i=o[1];if(typeof t=="string")t=e.splitLines(t);Qo(e,{from:n,to:i,text:t,origin:r})}function ra(e,t,n,i){if(n1||!(this.children[0]instanceof la))){var s=[];this.collapse(s);this.children=[new la(s)];this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){var a=r.lines.length%25+25;for(var s=a;s10);e.parent.maybeSpill()},iterN:function(e,t,n){for(var i=0;i0||a==0&&o.clearWhenEmpty!==false)return o;if(o.replacedWith){o.collapsed=true;o.widgetNode=D("span",[o.replacedWith],"CodeMirror-widget");if(!e.handleMouseEvents)o.widgetNode.setAttribute("cm-ignore-events","true");if(e.insertLeft)o.widgetNode.insertLeft=true}if(o.collapsed){if(Kt(t,n.line,n,i,o)||n.line!=i.line&&Kt(t,i.line,n,i,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Nt()}if(o.addToHistory)Lo(t,{from:n,to:i,origin:"markText"},t.sel,NaN);var s=n.line,l=t.cm,u;t.iter(s,i.line+1,function(e){if(l&&o.collapsed&&!l.options.lineWrapping&&Qt(e)==l.display.maxLine)u=true;if(o.collapsed&&s!=n.line)Je(e,0);Pt(e,new Ot(o,s==n.line?n.ch:null,s==i.line?i.ch:null));++s});if(o.collapsed)t.iter(n.line,i.line+1,function(e){if(nn(t,e))Je(e,0)});if(o.clearOnEnter)pe(o,"beforeCursorEnter",function(){return o.clear()});if(o.readOnly){At();if(t.history.done.length||t.history.undone.length)t.clearHistory()}if(o.collapsed){o.id=++ha;o.atomic=true}if(l){if(u)l.curOp.updateMaxLine=true;if(o.collapsed)zi(l,n.line,i.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=n.line;c<=i.line;c++)Hi(l,c,"text");if(o.atomic)Yo(l.doc);Tn(l,"markerAdded",l,o)}return o}pa.prototype.clear=function(){if(this.explicitlyCleared)return;var e=this.doc.cm,t=e&&!e.curOp;if(t)kr(e);if(be(this,"clear")){var n=this.find();if(n)Tn(this,"clear",n.from,n.to)}var i=null,r=null;for(var o=0;oe.display.maxLineLength){e.display.maxLine=u;e.display.maxLineLength=c;e.display.maxLineChanged=true}}if(i!=null&&e&&this.collapsed)zi(e,i,r+1);this.lines.length=0;this.explicitlyCleared=true;if(this.atomic&&this.doc.cantEdit){this.doc.cantEdit=false;if(e)Yo(e.doc)}if(e)Tn(e,"markerCleared",e,this,i,r);if(t)Cr(e);if(this.parent)this.parent.clear()},pa.prototype.find=function(e,t){if(e==null&&this.type=="bookmark")e=1;var n,i;for(var r=0;r=0;l--)Qo(this,i[l]);if(s)Wo(this,s);else if(this.cm)ar(this.cm)}),undo:Fr(function(){Jo(this,"undo")}),redo:Fr(function(){Jo(this,"redo")}),undoSelection:Fr(function(){Jo(this,"undo",true)}),redoSelection:Fr(function(){Jo(this,"redo",true)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){var e=this.history,t=0,n=0;for(var i=0;i=e.ch))t.push(r.marker.parent||r.marker)}return t},findMarks:function(r,o,a){r=ft(this,r);o=ft(this,o);var s=[],l=r.line;this.iter(r.line,o.line+1,function(e){var t=e.markedSpans;if(t)for(var n=0;n=i.to||i.from==null&&l!=r.line||i.from!=null&&l==o.line&&i.from>=o.ch)&&(!a||a(i.marker)))s.push(i.marker.parent||i.marker)}++l});return s},getAllMarks:function(){var i=[];this.iter(function(e){var t=e.markedSpans;if(t)for(var n=0;nn){i=n;return true}n-=t;++r});return ft(this,rt(r,i))},indexFromPos:function(e){e=ft(this,e);var t=e.ch;if(e.linet)t=e.from;if(e.to!=null&&e.to-1){i.state.draggingText(e);setTimeout(function(){return i.display.input.focus()},20);return}try{var c=e.dataTransfer.getData("Text");if(c){var f;if(i.state.draggingText&&!i.state.draggingText.copy)f=i.listSelections();_o(i.doc,ao(t,t));if(f)for(var d=0;d=0;e--)ia(t.doc,"",i[e].from,i[e].to,"+delete");ar(t)})}function qa(e,t,n){var i=ae(e.text,t+n,n);return i<0||i>e.text.length?null:i}function Ga(e,t,n){var i=qa(e,t.ch,n);return i==null?null:new rt(t.line,i,n<0?"after":"before")}function Xa(e,t,n,i,r){if(e){if(t.doc.direction=="rtl")r=-r;var o=de(n,t.doc.direction);if(o){var a=r<0?V(o):o[0];var s=r<0==(a.level==1);var l=s?"after":"before";var u;if(a.level>0||t.doc.direction=="rtl"){var c=ti(t,n);u=r<0?n.text.length-1:0;var f=ni(t,c,u).top;u=se(function(e){return ni(t,c,e).top==f},r<0==(a.level==1)?a.from:a.to-1,u);if(l=="before")u=qa(n,u,1)}else u=r<0?a.to:a.from;return new rt(i,u,l)}}return new rt(i,r<0?n.text.length:0,r<0?"before":"after")}function Va(t,n,s,e){var l=de(n,t.doc.direction);if(!l)return Ga(n,s,e);if(s.ch>=n.text.length){s.ch=n.text.length;s.sticky="before"}else if(s.ch<=0){s.ch=0;s.sticky="after"}var i=ce(l,s.ch,s.sticky),r=l[i];if(t.doc.direction=="ltr"&&r.level%2==0&&(e>0?r.to>s.ch:r.from=r.from&&d>=c.begin:d<=r.to&&d<=c.end)){var h=f?"before":"after";return new rt(s.line,d,h)}}var p=function(e,t,n){var i=function(e,t){return t?new rt(s.line,u(e,1),"before"):new rt(s.line,e,"after")};for(;e>=0&&e0==(r.level!=1);var a=o?n.begin:u(n.end,-1);if(r.from<=a&&a0?c.end:u(c.begin,-1);if(g!=null&&!(e>0&&g==n.text.length)){m=p(e>0?0:l.length-1,e,a(g));if(m)return m}return null}Ha.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ha.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ha.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ha.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ha["default"]=y?Ha.macDefault:Ha.pcDefault;var Ka={selectAll:Vo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),j)},killLine:function(n){return Ua(n,function(e){if(e.empty()){var t=Ke(n.doc,e.head.line).text.length;if(e.head.ch==t&&e.head.line0){i=new rt(i.line,i.ch+1);a.replaceRange(r.charAt(i.ch-1)+r.charAt(i.ch-2),rt(i.line,i.ch-2),i,"+transpose")}else if(i.line>a.doc.first){var o=Ke(a.doc,i.line-1).text;if(o){i=new rt(i.line,1);a.replaceRange(r.charAt(0)+a.doc.lineSeparator()+o.charAt(o.length-1),rt(i.line-1,o.length-1),i,"+transpose")}}}t.push(new ro(i,i))}a.setSelections(t)})},newlineAndIndent:function(i){return Ar(i,function(){var e=i.listSelections();for(var t=e.length-1;t>=0;t--)i.replaceRange(i.doc.lineSeparator(),e[t].anchor,e[t].head,"+input");e=i.listSelections();for(var n=0;n-1&&(ot((a=o.ranges[a]).from(),t)<0||t.xRel>0)&&(ot(a.to(),t)>0||t.xRel<0))ws(e,i,t,r);else Cs(e,i,t,r)}function ws(t,n,i,r){var o=t.display,a=false;var s=Nr(t,function(e){if(g)o.scroller.draggable=false;t.state.draggingText=false;if(t.state.delayingBlurEvent)if(t.hasFocus())t.state.delayingBlurEvent=false;else Vi(t);ge(o.wrapper.ownerDocument,"mouseup",s);ge(o.wrapper.ownerDocument,"mousemove",l);ge(o.scroller,"dragstart",u);ge(o.scroller,"drop",s);if(!a){ke(e);if(!r.addNew)Po(t.doc,i,null,null,r.extend);if(g&&!c||S&&w==9)setTimeout(function(){o.wrapper.ownerDocument.body.focus({preventScroll:true});o.input.focus()},20);else o.input.focus()}});var l=function(e){a=a||Math.abs(n.clientX-e.clientX)+Math.abs(n.clientY-e.clientY)>=10};var u=function(){return a=true};if(g)o.scroller.draggable=true;t.state.draggingText=s;s.copy=!r.moveOnDrag;pe(o.wrapper.ownerDocument,"mouseup",s);pe(o.wrapper.ownerDocument,"mousemove",l);pe(o.scroller,"dragstart",u);pe(o.scroller,"drop",s);t.state.delayingBlurEvent=true;setTimeout(function(){return o.input.focus()},20);if(o.scroller.dragDrop)o.scroller.dragDrop()}function ks(e,t,n){if(n=="char")return new ro(t,t);if(n=="word")return e.findWordAt(t);if(n=="line")return new ro(rt(t.line,0),ft(e.doc,rt(t.line+1,0)));var i=n(e,t);return new ro(i.from,i.to)}function Cs(g,e,v,y){if(S)Vi(g);var o=g.display,x=g.doc;ke(e);var b,w,k=x.sel,t=k.ranges;if(y.addNew&&!y.extend){w=x.sel.contains(v);if(w>-1)b=t[w];else b=new ro(v,v)}else{b=x.sel.primary();w=x.sel.primIndex}if(y.unit=="rectangle"){if(!y.addNew)b=new ro(v,v);v=Ii(g,e,true,true);w=-1}else{var n=ks(g,v,y.unit);if(y.extend)b=Io(b,n.anchor,n.head,y.extend);else b=n}if(!y.addNew){w=0;Ro(x,new io([b],0),Y);k=x.sel}else if(w==-1){w=t.length;Ro(x,oo(g,t.concat([b]),w),{scroll:false,origin:"*mouse"})}else if(t.length>1&&t[w].empty()&&y.unit=="char"&&!y.extend){Ro(x,oo(g,t.slice(0,w).concat(t.slice(w+1)),0),{scroll:false,origin:"*mouse"});k=x.sel}else Ho(x,w,b,Y);var C=v;function a(e){if(ot(C,e)==0)return;C=e;if(y.unit=="rectangle"){var t=[],n=g.options.tabSize;var i=$(Ke(x,v.line).text,v.ch,n);var r=$(Ke(x,e.line).text,e.ch,n);var o=Math.min(i,r),a=Math.max(i,r);for(var s=Math.min(v.line,e.line),l=Math.min(g.lastLine(),Math.max(v.line,e.line));s<=l;s++){var u=Ke(x,s).text,c=q(u,o,n);if(o==a)t.push(new ro(rt(s,c),rt(s,c)));else if(u.length>c)t.push(new ro(rt(s,c),rt(s,q(u,a,n))))}if(!t.length)t.push(new ro(v,v));Ro(x,oo(g,k.ranges.slice(0,w).concat(t),w),{origin:"*mouse",scroll:false});g.scrollIntoView(e)}else{var f=b;var d=ks(g,e,y.unit);var h=f.anchor,p;if(ot(d.anchor,h)>0){p=d.head;h=ut(f.from(),d.anchor)}else{p=d.anchor;h=lt(f.to(),d.head)}var m=k.ranges.slice(0);m[w]=Ss(g,new ro(ft(x,h),p));Ro(x,oo(g,m,w),Y)}}var s=o.wrapper.getBoundingClientRect();var l=0;function u(e){var t=++l;var n=Ii(g,e,true,y.unit=="rectangle");if(!n)return;if(ot(n,C)!=0){g.curOp.focus=O();a(n);var i=er(o,x);if(n.line>=i.to||n.lines.bottom?20:0;if(r)setTimeout(Nr(g,function(){if(l!=t)return;o.scroller.scrollTop+=r;u(e)}),50)}}function i(e){g.state.selectingText=false;l=Infinity;if(e){ke(e);o.input.focus()}ge(o.wrapper.ownerDocument,"mousemove",r);ge(o.wrapper.ownerDocument,"mouseup",c);x.history.lastSelOrigin=null}var r=Nr(g,function(e){if(e.buttons===0||!Me(e))i(e);else u(e)});var c=Nr(g,i);g.state.selectingText=c;pe(o.wrapper.ownerDocument,"mousemove",r);pe(o.wrapper.ownerDocument,"mouseup",c)}function Ss(e,t){var n=t.anchor;var i=t.head;var r=Ke(e.doc,n.line);if(ot(n,i)==0&&n.sticky==i.sticky)return t;var o=de(r);if(!o)return t;var a=ce(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l=a+(s.from==n.ch==(s.level!=1)?0:1);if(l==0||l==o.length)return t;var u;if(i.line!=n.line)u=(i.line-n.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var c=ce(o,i.ch,i.sticky);var f=c-a||(i.ch-n.ch)*(s.level==1?-1:1);if(c==l-1||c==l)u=f<0;else u=f>0}var d=o[l+(u?-1:0)];var h=u==(d.level==1);var p=h?d.from:d.to,m=h?"after":"before";return n.ch==p&&n.sticky==m?t:new ro(new rt(n.line,p,m),i)}function Ls(e,t,n,i){var r,o;if(t.touches){r=t.touches[0].clientX;o=t.touches[0].clientY}else try{r=t.clientX;o=t.clientY}catch(e){return false}if(r>=Math.floor(e.display.gutters.getBoundingClientRect().right))return false;if(i)ke(t);var a=e.display;var s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!be(e,n))return Se(t);o-=s.top-a.viewOffset;for(var l=0;l=r){var c=tt(e.doc,o);var f=e.display.gutterSpecs[l];ve(e,n,e,c,f.className,t);return Se(t)}}}function Es(e,t){return Ls(e,t,"gutterClick",true)}function Ms(e,t){if(jn(e.display,t)||Ts(e,t))return;if(ye(e,t,"contextmenu"))return;if(!k)e.display.input.onContextMenu(t)}function Ts(e,t){if(!be(e,"gutterContextMenu"))return false;return Ls(e,t,"gutterContextMenu",false)}function Ds(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-");fi(e)}hs.prototype.compare=function(e,t,n){return this.time+ds>e&&ot(t,this.pos)==0&&n==this.button};var As={toString:function(){return"CodeMirror.Init"}},Ns={},Os={};function Fs(r){var o=r.optionHandlers;function e(e,t,i,n){r.defaults[e]=t;if(i)o[e]=n?function(e,t,n){if(n!=As)i(e,t,n)}:i}r.defineOption=e;r.Init=As;e("value","",function(e,t){return e.setValue(t)},true);e("mode",null,function(e,t){e.doc.modeOption=t;ho(e)},true);e("indentUnit",2,ho,true);e("indentWithTabs",false);e("smartIndent",true);e("tabSize",4,function(e){po(e);fi(e);zi(e)},true);e("lineSeparator",null,function(e,i){e.doc.lineSep=i;if(!i)return;var r=[],o=e.doc.first;e.doc.iter(function(e){for(var t=0;;){var n=e.text.indexOf(i,t);if(n==-1)break;t=n+i.length;r.push(rt(o,n))}o++});for(var t=r.length-1;t>=0;t--)ia(e.doc,i,r[t],rt(r[t].line,r[t].ch+i.length))});e("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g");if(n!=As)e.refresh()});e("specialCharPlaceholder",mn,function(e){return e.refresh()},true);e("electricChars",true);e("inputStyle",d?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},true);e("spellcheck",false,function(e,t){return e.getInputField().spellcheck=t},true);e("autocorrect",false,function(e,t){return e.getInputField().autocorrect=t},true);e("autocapitalize",false,function(e,t){return e.getInputField().autocapitalize=t},true);e("rtlMoveVisually",!p);e("wholeLineUpdateBefore",true);e("theme","default",function(e){Ds(e);Kr(e)},true);e("keyMap","default",function(e,t,n){var i=Ya(t);var r=n!=As&&Ya(n);if(r&&r.detach)r.detach(e,i);if(i.attach)i.attach(e,r||null)});e("extraKeys",null);e("configureMouse",null);e("lineWrapping",false,Ps,true);e("gutters",[],function(e,t){e.display.gutterSpecs=Xr(t,e.options.lineNumbers);Kr(e)},true);e("fixedGutter",true,function(e,t){e.display.gutters.style.left=t?Ni(e.display)+"px":"0";e.refresh()},true);e("coverGutterNextToScrollbar",false,function(e){return vr(e)},true);e("scrollbarStyle","native",function(e){br(e);vr(e);e.display.scrollbars.setScrollTop(e.doc.scrollTop);e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},true);e("lineNumbers",false,function(e,t){e.display.gutterSpecs=Xr(e.options.gutters,t);Kr(e)},true);e("firstLineNumber",1,Kr,true);e("lineNumberFormatter",function(e){return e},Kr,true);e("showCursorWhenSelecting",false,_i,true);e("resetSelectionOnContextMenu",true);e("lineWiseCopyCut",true);e("pasteLinesPerSelection",true);e("selectionsMayTouch",false);e("readOnly",false,function(e,t){if(t=="nocursor"){Qi(e);e.display.input.blur()}e.display.input.readOnlyChanged(t)});e("screenReaderLabel",null,function(e,t){t=t===""?null:t;e.display.input.screenReaderLabelChanged(t)});e("disableInput",false,function(e,t){if(!t)e.display.input.reset()},true);e("dragDrop",true,Is);e("allowDropFileTypes",null);e("cursorBlinkRate",530);e("cursorScrollMargin",0);e("cursorHeight",1,_i,true);e("singleCursorHeightPerLine",true,_i,true);e("workTime",100);e("workDelay",100);e("flattenSpans",true,po,true);e("addModeClass",false,po,true);e("pollInterval",100);e("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t});e("historyEventDelay",1250);e("viewportMargin",10,function(e){return e.refresh()},true);e("maxHighlightLength",1e4,po,true);e("moveInputWithCursor",true,function(e,t){if(!t)e.display.input.resetPosition()});e("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""});e("autofocus",null);e("direction","ltr",function(e,t){return e.doc.setDirection(t)},true);e("phrases",null)}function Is(e,t,n){var i=n&&n!=As;if(!t!=!i){var r=e.display.dragFunctions;var o=t?pe:ge;o(e.display.scroller,"dragstart",r.start);o(e.display.scroller,"dragenter",r.enter);o(e.display.scroller,"dragover",r.over);o(e.display.scroller,"dragleave",r.leave);o(e.display.scroller,"drop",r.drop)}}function Ps(e){if(e.options.lineWrapping){F(e.display.wrapper,"CodeMirror-wrap");e.display.sizer.style.minWidth="";e.display.sizerWidth=null}else{L(e.display.wrapper,"CodeMirror-wrap");sn(e)}Fi(e);zi(e);fi(e);setTimeout(function(){return vr(e)},100)}function zs(e,t){var n=this;if(!(this instanceof zs))return new zs(e,t);this.options=t=t?H(t):{};H(Ns,t,false);var i=t.value;if(typeof i=="string")i=new ka(i,t.mode,null,t.lineSeparator,t.direction);else if(t.mode)i.modeOption=t.mode;this.doc=i;var r=new zs.inputStyles[t.inputStyle](this);var o=this.display=new Qr(e,i,r,t);o.wrapper.CodeMirror=this;Ds(this);if(t.lineWrapping)this.display.wrapper.className+=" CodeMirror-wrap";br(this);this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:false,delayingBlurEvent:false,focused:false,suppressEdits:false,pasteIncoming:-1,cutIncoming:-1,selectingText:false,draggingText:false,highlight:new B,keySeq:null,specialChars:null};if(t.autofocus&&!d)o.input.focus();if(S&&w<11)setTimeout(function(){return n.display.input.reset(true)},20);Hs(this);Aa();kr(this);this.curOp.forceUpdate=true;yo(this,i);if(t.autofocus&&!d||this.hasFocus())setTimeout(function(){if(n.hasFocus()&&!n.state.focused)Ki(n)},20);else Qi(this);for(var a in Os)if(Os.hasOwnProperty(a))Os[a](this,t[a],As);Gr(this);if(t.finishInit)t.finishInit(this);for(var s=0;s<$s.length;++s)$s[s](this);Cr(this);if(g&&t.lineWrapping&&getComputedStyle(o.lineDiv).textRendering=="optimizelegibility")o.lineDiv.style.textRendering="auto"}function Hs(r){var o=r.display;pe(o.scroller,"mousedown",Nr(r,vs));if(S&&w<11)pe(o.scroller,"dblclick",Nr(r,function(e){if(ye(r,e))return;var t=Ii(r,e);if(!t||Es(r,e)||jn(r.display,e))return;ke(e);var n=r.findWordAt(t);Po(r.doc,n.anchor,n.head)}));else pe(o.scroller,"dblclick",function(e){return ye(r,e)||ke(e)});pe(o.scroller,"contextmenu",function(e){return Ms(r,e)});pe(o.input.getField(),"contextmenu",function(e){if(!o.scroller.contains(e.target))Ms(r,e)});var n,i={end:0};function a(){if(o.activeTouch){n=setTimeout(function(){return o.activeTouch=null},1e3);i=o.activeTouch;i.end=+new Date}}function s(e){if(e.touches.length!=1)return false;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(t.left==null)return true;var n=t.left-e.left,i=t.top-e.top;return n*n+i*i>20*20}pe(o.scroller,"touchstart",function(e){if(!ye(r,e)&&!s(e)&&!Es(r,e)){o.input.ensurePolled();clearTimeout(n);var t=+new Date;o.activeTouch={start:t,moved:false,prev:t-i.end<=300?i:null};if(e.touches.length==1){o.activeTouch.left=e.touches[0].pageX;o.activeTouch.top=e.touches[0].pageY}}});pe(o.scroller,"touchmove",function(){if(o.activeTouch)o.activeTouch.moved=true});pe(o.scroller,"touchend",function(e){var t=o.activeTouch;if(t&&!jn(o,e)&&t.left!=null&&!t.moved&&new Date-t.start<300){var n=r.coordsChar(o.activeTouch,"page"),i;if(!t.prev||l(t,t.prev))i=new ro(n,n);else if(!t.prev.prev||l(t,t.prev.prev))i=r.findWordAt(n);else i=new ro(rt(n.line,0),ft(r.doc,rt(n.line+1,0)));r.setSelection(i.anchor,i.head);r.focus();ke(e)}a()});pe(o.scroller,"touchcancel",a);pe(o.scroller,"scroll",function(){if(o.scroller.clientHeight){fr(r,o.scroller.scrollTop);hr(r,o.scroller.scrollLeft,true);ve(r,"scroll",r)}});pe(o.scroller,"mousewheel",function(e){return no(r,e)});pe(o.scroller,"DOMMouseScroll",function(e){return no(r,e)});pe(o.wrapper,"scroll",function(){return o.wrapper.scrollTop=o.wrapper.scrollLeft=0});o.dragFunctions={enter:function(e){if(!ye(r,e))Le(e)},over:function(e){if(!ye(r,e)){Ea(r,e);Le(e)}},start:function(e){return La(r,e)},drop:Nr(r,Sa),leave:function(e){if(!ye(r,e))Ma(r)}};var e=o.input.getField();pe(e,"keyup",function(e){return cs.call(r,e)});pe(e,"keydown",Nr(r,ls));pe(e,"keypress",Nr(r,fs));pe(e,"focus",function(e){return Ki(r,e)});pe(e,"blur",function(e){return Qi(r,e)})}zs.defaults=Ns,zs.optionHandlers=Os;var $s=[];function Bs(e,t,n,i){var r=e.doc,o;if(n==null)n="add";if(n=="smart")if(!r.mode.indent)n="prev";else o=yt(e,t).state;var a=e.options.tabSize;var s=Ke(r,t),l=$(s.text,null,a);if(s.stateAfter)s.stateAfter=null;var u=s.text.match(/^\s*/)[0],c;if(!i&&!/\S/.test(s.text)){c=0;n="not"}else if(n=="smart"){c=r.mode.indent(o,s.text.slice(u.length),s.text);if(c==_||c>150){if(!i)return;n="prev"}}if(n=="prev")if(t>r.first)c=$(Ke(r,t-1).text,null,a);else c=0;else if(n=="add")c=l+e.options.indentUnit;else if(n=="subtract")c=l-e.options.indentUnit;else if(typeof n=="number")c=l+n;c=Math.max(0,c);var f="",d=0;if(e.options.indentWithTabs)for(var h=Math.floor(c/a);h;--h){d+=a;f+="\t"}if(da;var l=Fe(t),u=null;if(s&&i.ranges.length>1)if(Ws&&Ws.text.join("\n")==t){if(i.ranges.length%Ws.text.length==0){u=[];for(var c=0;c=0;d--){var h=i.ranges[d];var p=h.from(),m=h.to();if(h.empty())if(n&&n>0)p=rt(p.line,p.ch-n);else if(e.state.overwrite&&!s)m=rt(m.line,Math.min(Ke(o,m.line).text.length,m.ch+V(l).length));else if(s&&Ws&&Ws.lineWise&&Ws.text.join("\n")==l.join("\n"))p=m=rt(p.line,0);var g={from:p,to:m,text:u?u[d%u.length]:l,origin:r||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};Qo(e.doc,g);Tn(e,"inputRead",e,g)}if(t&&!s)Ys(e,t);ar(e);if(e.curOp.updateInput<2)e.curOp.updateInput=f;e.curOp.typing=true;e.state.pasteIncoming=e.state.cutIncoming=-1}function js(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n){e.preventDefault();if(!t.isReadOnly()&&!t.options.disableInput)Ar(t,function(){return _s(t,n,0,null,"paste")});return true}}function Ys(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;var n=e.doc.sel;for(var i=n.ranges.length-1;i>=0;i--){var r=n.ranges[i];if(r.head.ch>100||i&&n.ranges[i-1].head.line==r.head.line)continue;var o=e.getModeAt(r.head);var a=false;if(o.electricChars){for(var s=0;s-1){a=Bs(e,r.head.line,"smart");break}}else if(o.electricInput)if(o.electricInput.test(Ke(e.doc,r.head.line).text.slice(0,r.head.ch)))a=Bs(e,r.head.line,"smart");if(a)Tn(e,"electricInput",e,r.head.line)}}function Us(e){var t=[],n=[];for(var i=0;i0)Ho(this.doc,i,new ro(o,u[i].to()),j)}else if(r.head.line>n){Bs(this,r.head.line,e,true);n=r.head.line;if(i==this.doc.sel.primIndex)ar(this)}}}),getTokenAt:function(e,t){return Ct(this,e,t)},getLineTokens:function(e,t){return Ct(this,rt(e),t,true)},getTokenTypeAt:function(e){e=ft(this.doc,e);var t=vt(this,Ke(this.doc,e.line));var n=0,i=(t.length-1)/2,r=e.ch;var o;if(r==0)o=t[2];else for(;;){var a=n+i>>1;if((a?t[a*2-1]:0)>=r)i=a;else if(t[a*2+1]o){e=o;i=true}r=Ke(this.doc,e)}else r=e;return mi(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-on(r):0)},defaultTextHeight:function(){return Ti(this.display)},defaultCharWidth:function(){return Di(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,i,r){var o=this.display;e=yi(this,ft(this.doc,e));var a=e.bottom,s=e.left;t.style.position="absolute";t.setAttribute("cm-ignore-events","true");this.display.input.setUneditable(t);o.sizer.appendChild(t);if(i=="over")a=e.top;else if(i=="above"||i=="near"){var l=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);if((i=="above"||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight)a=e.top-t.offsetHeight;else if(e.bottom+t.offsetHeight<=l)a=e.bottom;if(s+t.offsetWidth>u)s=u-t.offsetWidth}t.style.top=a+"px";t.style.left=t.style.right="";if(r=="right"){s=o.sizer.clientWidth-t.offsetWidth;t.style.right="0px"}else{if(r=="left")s=0;else if(r=="middle")s=(o.sizer.clientWidth-t.offsetWidth)/2;t.style.left=s+"px"}if(n)ir(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Or(ls),triggerOnKeyPress:Or(fs),triggerOnKeyUp:cs,triggerOnMouseDown:Or(vs),execCommand:function(e){if(Ka.hasOwnProperty(e))return Ka[e].call(null,this)},triggerElectric:Or(function(e){Ys(this,e)}),findPosH:function(e,t,n,i){var r=1;if(t<0){r=-1;t=-t}var o=ft(this.doc,e);for(var a=0;a0&&s(n.charAt(i-1)))--i;while(r.5||this.options.lineWrapping)Fi(this);ve(this,"refresh",this)}),swapDoc:Or(function(e){var t=this.doc;t.cm=null;if(this.state.selectingText)this.state.selectingText();yo(this,e);fi(this);this.display.input.reset();sr(this,e.scrollLeft,e.scrollTop);this.curOp.forceScroll=true;Tn(this,"swapDoc",this,t);return t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}};we(r);r.registerHelper=function(e,t,n){if(!u.hasOwnProperty(e))u[e]=r[e]={_global:[]};u[e][t]=n};r.registerGlobalHelper=function(e,t,n,i){r.registerHelper(e,t,i);u[e]._global.push({pred:n,val:i})}}function Vs(i,r,o,a,s){var e=r;var t=o;var l=Ke(i,r.line);var u=s&&i.direction=="rtl"?-o:o;function c(){var e=r.line+u;if(e=i.first+i.size)return false;r=new rt(e,r.ch,r.sticky);return l=Ke(i,e)}function n(e){var t;if(a=="codepoint"){var n=l.text.charCodeAt(r.ch+(a>0?0:-1));if(isNaN(n))t=null;else t=new rt(r.line,Math.max(0,Math.min(l.text.length,r.ch+o*(n>=55296&&n<56320?2:1))),-o)}else if(s)t=Va(i.cm,l,r,o);else t=Ga(l,r,o);if(t==null)if(!e&&c())r=Xa(s,i.cm,l,r.line,u);else return false;else r=t;return true}if(a=="char"||a=="codepoint")n();else if(a=="column")n(true);else if(a=="word"||a=="group"){var f=null,d=a=="group";var h=i.cm&&i.cm.getHelper(r,"wordChars");for(var p=true;;p=false){if(o<0&&!n(!p))break;var m=l.text.charAt(r.ch)||"\n";var g=ne(m,h)?"w":d&&m=="\n"?"n":!d||/\s/.test(m)?null:"p";if(d&&!p&&!g)g="s";if(f&&f!=g){if(o<0){o=1;n();r.sticky="after"}break}if(g)f=g;if(o>0&&!n(!p))break}}var v=Go(i,r,e,t,true);if(at(e,v))v.hitSide=true;return v}function Ks(e,t,n,i){var r=e.doc,o=t.left,a;if(i=="page"){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight);var l=Math.max(s-.5*Ti(e.display),3);a=(n>0?t.bottom:t.top)+n*l}else if(i=="line")a=n>0?t.bottom+3:t.top-3;var u;for(;;){u=wi(e,o,a);if(!u.outside)break;if(n<0?a<=0:a>=r.height){u.hitSide=true;break}a+=n*5}return u}var Qs=function(e){this.cm=e;this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null;this.polling=new B;this.composing=null;this.gracePeriod=false;this.readDOMTimeout=null};function Zs(e,t){var n=ei(e,t.line);if(!n||n.hidden)return null;var i=Ke(e.doc,t.line);var r=Qn(n,i,t.line);var o=de(i,e.doc.direction),a="left";if(o){var s=ce(o,t.ch);a=s%2?"right":"left"}var l=oi(r.map,t.ch,a);l.offset=l.collapse=="right"?l.end:l.start;return l}function Js(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return true;return false}function el(e,t){if(t)e.bad=true;return e}function tl(s,e,t,l,u){var n="",c=false,f=s.doc.lineSeparator(),d=false;function h(t){return function(e){return e.id==t}}function p(){if(c){n+=f;if(d)n+=f;c=d=false}}function m(e){if(e){p();n+=e}}function g(e){if(e.nodeType==1){var t=e.getAttribute("cm-text");if(t){m(t);return}var n=e.getAttribute("cm-marker"),i;if(n){var r=s.findMarks(rt(l,0),rt(u+1,0),h(+n));if(r.length&&(i=r[0].find(0)))m(Qe(s.doc,i.from,i.to).join(f));return}if(e.getAttribute("contenteditable")=="false")return;var o=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&e.textContent.length==0)return;if(o)p();for(var a=0;a=t.display.viewTo||r.line=t.display.viewFrom&&Zs(t,i)||{node:s[0].measure.map[2],offset:0};var u=r.linee.firstLine())i=rt(i.line-1,Ke(e.doc,i.line-1).length);if(r.ch==Ke(e.doc,r.line).text.length&&r.linet.viewTo-1)return false;var o,a,s;if(i.line==t.viewFrom||(o=Pi(e,i.line))==0){a=et(t.view[0].line);s=t.view[0].node}else{a=et(t.view[o].line);s=t.view[o-1].node.nextSibling}var l=Pi(e,r.line);var u,c;if(l==t.view.length-1){u=t.viewTo-1;c=t.lineDiv.lastChild}else{u=et(t.view[l+1].line)-1;c=t.view[l+1].node.previousSibling}if(!s)return false;var f=e.doc.splitLines(tl(e,s,c,a,u));var d=Qe(e.doc,rt(a,0),rt(u,Ke(e.doc,u).text.length));while(f.length>1&&d.length>1)if(V(f)==V(d)){f.pop();d.pop();u--}else if(f[0]==d[0]){f.shift();d.shift();a++}else break;var h=0,p=0;var m=f[0],g=d[0],v=Math.min(m.length,g.length);while(hi.ch&&y.charCodeAt(y.length-p-1)==x.charCodeAt(x.length-p-1)){h--;p++}f[f.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,"");f[0]=f[0].slice(h).replace(/\u200b+$/,"");var w=rt(a,h);var k=rt(u,d.length?V(d).length-p:0);if(f.length>1||f[0]||ot(w,k)){ia(e.doc,f,w,k,"+input");return true}},Qs.prototype.ensurePolled=function(){this.forceCompositionEnd()},Qs.prototype.reset=function(){this.forceCompositionEnd()},Qs.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout);this.composing=null;this.updateFromDOM();this.div.blur();this.div.focus()},Qs.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){e.readDOMTimeout=null;if(e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},Qs.prototype.updateFromDOM=function(){var e=this;if(this.cm.isReadOnly()||!this.pollContent())Ar(this.cm,function(){return zi(e.cm)})},Qs.prototype.setUneditable=function(e){e.contentEditable="false"},Qs.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault();if(!this.cm.isReadOnly())Nr(this.cm,_s)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},Qs.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Qs.prototype.onContextMenu=function(){},Qs.prototype.resetPosition=function(){},Qs.prototype.needsContentAttribute=true;var rl=function(e){this.cm=e;this.prevInput="";this.pollingFast=false;this.polling=new B;this.hasSelection=false;this.composing=null};function ol(t,n){if((n=n?H(n):{}).value=t.value,!n.tabindex&&t.tabIndex)n.tabindex=t.tabIndex;if(!n.placeholder&&t.placeholder)n.placeholder=t.placeholder;if(null==n.autofocus){var e=O();n.autofocus=e==t||null!=t.getAttribute("autofocus")&&e==document.body}function i(){t.value=s.getValue()}var r;if(t.form)if(pe(t.form,"submit",i),!n.leaveSubmitMethodAlone){var o=t.form;r=o.submit;try{var a=o.submit=function(){i(),o.submit=r,o.submit(),o.submit=a}}catch(e){}}n.finishInit=function(e){e.save=i,e.getTextArea=function(){return t},e.toTextArea=function(){e.toTextArea=isNaN,i(),t.parentNode.removeChild(e.getWrapperElement()),t.style.display="",t.form&&(ge(t.form,"submit",i),n.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=r))}},t.style.display="none";var s=zs(function(e){return t.parentNode.insertBefore(e,t.nextSibling)},n);return s}function al(e){e.off=ge,e.on=pe,e.wheelEventPixels=to,e.Doc=ka,e.splitLines=Fe,e.countColumn=$,e.findColumn=q,e.isWordChar=te,e.Pass=_,e.signal=ve,e.Line=ln,e.changeEnd=so,e.scrollbarModel=xr,e.Pos=rt,e.cmpPos=ot,e.modes=$e,e.mimeModes=Be,e.resolveMode=_e,e.getMode=je,e.modeExtensions=Ye,e.extendMode=Ue,e.copyState=qe,e.startState=Xe,e.innerMode=Ge,e.commands=Ka,e.keyMap=Ha,e.keyName=ja,e.isModifierKey=Ra,e.lookupKey=Wa,e.normalizeKeyMap=Ba,e.StringStream=Ve,e.SharedTextMarker=ga,e.TextMarker=pa,e.LineWidget=ca,e.e_preventDefault=ke,e.e_stopPropagation=Ce,e.e_stop=Le,e.addClass=F,e.contains=A,e.rmClass=L,e.keyNames=Fa}rl.prototype.init=function(n){var e=this;var i=this,r=this.cm;this.createField(n);var o=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild);if(u)o.style.width="0px";pe(o,"input",function(){if(S&&w>=9&&e.hasSelection)e.hasSelection=null;i.poll()});pe(o,"paste",function(e){if(ye(r,e)||js(e,r))return;r.state.pasteIncoming=+new Date;i.fastPoll()});function t(e){if(ye(r,e))return;if(r.somethingSelected())Rs({lineWise:false,text:r.getSelections()});else if(!r.options.lineWiseCopyCut)return;else{var t=Us(r);Rs({lineWise:true,text:t.text});if(e.type=="cut")r.setSelections(t.ranges,null,j);else{i.prevInput="";o.value=t.text.join("\n");P(o)}}if(e.type=="cut")r.state.cutIncoming=+new Date}pe(o,"cut",t);pe(o,"copy",t);pe(n.scroller,"paste",function(e){if(jn(n,e)||ye(r,e))return;if(!o.dispatchEvent){r.state.pasteIncoming=+new Date;i.focus();return}var t=new Event("paste");t.clipboardData=e.clipboardData;o.dispatchEvent(t)});pe(n.lineSpace,"selectstart",function(e){if(!jn(n,e))ke(e)});pe(o,"compositionstart",function(){var e=r.getCursor("from");if(i.composing)i.composing.range.clear();i.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}});pe(o,"compositionend",function(){if(i.composing){i.poll();i.composing.range.clear();i.composing=null}})},rl.prototype.createField=function(e){this.wrapper=Gs();this.textarea=this.wrapper.firstChild},rl.prototype.screenReaderLabelChanged=function(e){if(e)this.textarea.setAttribute("aria-label",e);else this.textarea.removeAttribute("aria-label")},rl.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc;var i=ji(e);if(e.options.moveInputWithCursor){var r=yi(e,n.sel.primary().head,"div");var o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,r.top+a.top-o.top));i.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,r.left+a.left-o.left))}return i},rl.prototype.showSelection=function(e){var t=this.cm,n=t.display;T(n.cursorDiv,e.cursors);T(n.selectionDiv,e.selection);if(e.teTop!=null){this.wrapper.style.top=e.teTop+"px";this.wrapper.style.left=e.teLeft+"px"}},rl.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n;if(t.state.focused)P(this.textarea);if(S&&w>=9)this.hasSelection=n}else if(!e){this.prevInput=this.textarea.value="";if(S&&w>=9)this.hasSelection=null}},rl.prototype.getField=function(){return this.textarea},rl.prototype.supportsTouch=function(){return false},rl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!d||O()!=this.textarea))try{this.textarea.focus()}catch(e){}},rl.prototype.blur=function(){this.textarea.blur()},rl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},rl.prototype.receivedFocus=function(){this.slowPoll()},rl.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll();if(e.cm.state.focused)e.slowPoll()})},rl.prototype.fastPoll=function(){var t=false,n=this;n.pollingFast=true;function i(){var e=n.poll();if(!e&&!t){t=true;n.polling.set(60,i)}else{n.pollingFast=false;n.slowPoll()}}n.polling.set(20,i)},rl.prototype.poll=function(){var e=this;var t=this.cm,n=this.textarea,i=this.prevInput;if(this.contextMenuPending||!t.state.focused||Ie(n)&&!i&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return false;var r=n.value;if(r==i&&!t.somethingSelected())return false;if(S&&w>=9&&this.hasSelection===r||y&&/[\uf700-\uf7ff]/.test(r)){t.display.input.reset();return false}if(t.doc.sel==t.display.selForContextMenu){var o=r.charCodeAt(0);if(o==8203&&!i)i="";if(o==8666){this.reset();return this.cm.execCommand("undo")}}var a=0,s=Math.min(i.length,r.length);while(a1e3||r.indexOf("\n")>-1)n.value=e.prevInput="";else e.prevInput=r;if(e.composing){e.composing.range.clear();e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"})}});return true},rl.prototype.ensurePolled=function(){if(this.pollingFast&&this.poll())this.pollingFast=false},rl.prototype.onKeyPress=function(){if(S&&w>=9)this.hasSelection=null;this.fastPoll()},rl.prototype.onContextMenu=function(e){var n=this,i=n.cm,r=i.display,o=n.textarea;if(n.contextMenuPending)n.contextMenuPending();var t=Ii(i,e),a=r.scroller.scrollTop;if(!t||v)return;var s=i.options.resetSelectionOnContextMenu;if(s&&i.doc.sel.contains(t)==-1)Nr(i,Ro)(i.doc,ao(t),j);var l=o.style.cssText,u=n.wrapper.style.cssText;var c=n.wrapper.offsetParent.getBoundingClientRect();n.wrapper.style.cssText="position: static";o.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-c.top-5)+"px; left: "+(e.clientX-c.left-5)+"px;\n z-index: 1000; background: "+(S?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var f;if(g)f=window.scrollY;r.input.focus();if(g)window.scrollTo(null,f);r.input.reset();if(!i.somethingSelected())o.value=n.prevInput=" ";n.contextMenuPending=h;r.selForContextMenu=i.doc.sel;clearTimeout(r.detectingSelectAll);function d(){if(o.selectionStart!=null){var e=i.somethingSelected();var t=""+(e?o.value:"");o.value="⇚";o.value=t;n.prevInput=e?"":"";o.selectionStart=1;o.selectionEnd=t.length;r.selForContextMenu=i.doc.sel}}function h(){if(n.contextMenuPending!=h)return;n.contextMenuPending=false;n.wrapper.style.cssText=u;o.style.cssText=l;if(S&&w<9)r.scrollbars.setScrollTop(r.scroller.scrollTop=a);if(o.selectionStart!=null){if(!S||S&&w<9)d();var e=0,t=function(){if(r.selForContextMenu==i.doc.sel&&o.selectionStart==0&&o.selectionEnd>0&&n.prevInput=="")Nr(i,Vo)(i);else if(e++<10)r.detectingSelectAll=setTimeout(t,500);else{r.selForContextMenu=null;r.input.reset()}};r.detectingSelectAll=setTimeout(t,200)}}if(S&&w>=9)d();if(k){Le(e);var p=function(){ge(window,"mouseup",p);setTimeout(h,20)};pe(window,"mouseup",p)}else setTimeout(h,50)},rl.prototype.readOnlyChanged=function(e){if(!e)this.reset();this.textarea.disabled=e=="nocursor";this.textarea.readOnly=!!e},rl.prototype.setUneditable=function(){},rl.prototype.needsContentAttribute=false,Fs(zs),Xs(zs);var sl="iter insert remove copy getEditor constructor".split(" "),ll;for(ll in ka.prototype)if(ka.prototype.hasOwnProperty(ll)&&W(sl,ll)<0)zs.prototype[ll]=function(e){return function(){return e.apply(this.doc,arguments)}}(ka.prototype[ll]);return we(ka),zs.inputStyles={textarea:rl,contenteditable:Qs},zs.defineMode=function(e){zs.defaults.mode||"null"==e||(zs.defaults.mode=e),function(e,t){2")):null:t.match("--")?e(r("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),e(function i(r){return function(e,t){for(var n;null!=(n=e.next());){if("<"==n)return t.tokenize=i(r+1),t.tokenize(e,t);if(">"==n){if(1!=r)return t.tokenize=i(r-1),t.tokenize(e,t);t.tokenize=u;break}}return"meta"}}(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),n.tokenize=r("meta","?>"),"meta"):(o=t.eat("/")?"closeTag":"openTag",n.tokenize=c,"tag bracket");if("&"!=i)return t.eatWhile(/[^&<]/),null;i=t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";");return i?"atom":"error"}function c(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=u,o=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return o="equals",null;if("<"!=n)return/[\'\"]/.test(n)?(t.tokenize=(i=n,r.isInAttribute=!0,r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word");t.tokenize=u,t.state=p,t.tagName=t.tagStart=null;var i,t=t.tokenize(e,t);return t?t+" tag error":"tag error";function r(e,t){for(;!e.eol();)if(e.next()==i){t.tokenize=c;break}return"string"}}function r(n,i){return function(e,t){for(;!e.eol();){if(e.match(i)){t.tokenize=u;break}e.next()}return n}}function f(e,t,n){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function d(e){e.context&&(e.context=e.context.prev)}function h(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(n)||!l.contextGrabbers[n].hasOwnProperty(t))return;d(e)}}function p(e,t,n){return"openTag"==e?(n.tagStart=t.column(),m):"closeTag"==e?g:p}function m(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",x):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",x(e,0,n)):(a="error",m)}function g(e,t,n){if("word"!=e)return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",v(e,0,n)):(a="error",y);t=t.current();return n.context&&n.context.tagName!=t&&l.implicitlyClosed.hasOwnProperty(n.context.tagName)&&d(n),n.context&&n.context.tagName==t||!1===l.matchClosing?(a="tag",v):(a="tag error",y)}function v(e,t,n){return"endTag"!=e?(a="error",v):(d(n),p)}function y(e,t,n){return a="error",v(e,0,n)}function x(e,t,n){if("word"==e)return a="attribute",b;if("endTag"!=e&&"selfcloseTag"!=e)return a="error",x;var i=n.tagName,r=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(i)?h(n,i):(h(n,i),n.context=new f(n,i,r==n.indented)),p}function b(e,t,n){return"equals"==e?w:(l.allowMissing||(a="error"),x(e,0,n))}function w(e,t,n){return"string"==e?k:"word"==e&&l.allowUnquoted?(a="string",x):(a="error",x(e,0,n))}function k(e,t,n){return"string"==e?k:x(e,0,n)}return u.isInText=!0,{startState:function(e){var t={tokenize:u,state:p,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(e,t,n){var i=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+s;if(i&&i.noIndent)return C.Pass;if(e.tokenize!=c&&e.tokenize!=u)return n?n.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==l.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==w&&(e.state=x)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)t.push(n.tagName);return t.reverse()}}}),C.defineMIME("text/xml","xml"),C.defineMIME("application/xml","xml"),C.mimeModes.hasOwnProperty("text/html")||C.defineMIME("text/html",{name:"xml",htmlMode:!0})}),e(function(e,t){!function(r){r.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var e=0;e` "'(~:]+/,b=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,w=/^\s*\[[^\]]+?\]:.*$/,k=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/;function C(e,t,n){return(t.f=t.inline=n)(e,t)}function S(e,t,n){return(t.f=t.block=n)(e,t)}function i(e){var t,n;return e.linkTitle=!1,e.linkHref=!1,e.linkText=!1,e.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,e.indentedCode=!1,e.f==L&&((n=r)||(n="xml"==(t=O.innerMode(h,e.htmlState)).mode.name&&null===t.state.tagStart&&!t.state.context&&t.state.tokenize.isInText),n&&(e.f=T,e.block=o,e.htmlState=null)),e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.prevLine=e.thisLine,e.thisLine={stream:null},null}function o(e,t){var n=e.column()===t.indentation,i=!(c=t.prevLine.stream)||!/\S/.test(c.string),r=t.indentedCode,o=t.prevLine.hr,a=!1!==t.list,s=(t.listStack[t.listStack.length-1]||0)+3;t.indentedCode=!1;var l=t.indentation;if(null===t.indentationDiff&&(t.indentationDiff=t.indentation,a)){for(t.list=null;l"))return t.quote=n?1:t.quote+1,d.highlightFormatting&&(t.formatting="quote"),e.eatSpace(),M(t);if(!c&&!t.setext&&n&&t.indentation<=s&&(o=e.match(g))){i=o[1]?"ol":"ul";return t.indentation=l+e.current().length,t.list=!0,t.quote=0,t.listStack.push(t.indentation),t.em=!1,t.strong=!1,t.code=!1,t.strikethrough=!1,d.taskLists&&e.match(v,!1)&&(t.taskList=!0),t.f=t.inline,d.highlightFormatting&&(t.formatting=["list","list-"+i]),M(t)}return n&&t.indentation<=s&&(o=e.match(b,!0))?(t.quote=0,t.fencedEndRE=new RegExp(o[1]+"+ *$"),t.localMode=d.fencedCodeBlockHighlighting&&(n=o[2]||d.fencedCodeBlockDefaultMode,!O.findModeByName||(s=O.findModeByName(n))&&(n=s.mime||s.mimes[0]),"null"==(n=O.getMode(f,n)).name?null:n),t.localMode&&(t.localState=O.startState(t.localMode)),t.f=t.block=E,d.highlightFormatting&&(t.formatting="code-block"),t.code=-1,M(t)):t.setext||!(u&&a||t.quote||!1!==t.list||t.code||c||w.test(e.string))&&(o=e.lookAhead(1))&&(o=o.match(x))?(t.setext?(t.header=t.setext,t.setext=0,e.skipToEnd(),d.highlightFormatting&&(t.formatting="header")):(t.header="="==o[0].charAt(0)?1:2,t.setext=t.header),t.thisLine.header=!0,t.f=t.inline,M(t)):c?(e.skipToEnd(),t.hr=!0,t.thisLine.hr=!0,p.hr):"["===e.peek()?C(e,t,N):C(e,t,t.inline)}function L(e,t){var n,i=h.token(e,t.htmlState);return r||("xml"==(n=O.innerMode(h,t.htmlState)).mode.name&&null===n.state.tagStart&&!n.state.context&&n.state.tokenize.isInText||t.md_inside&&-1"))&&(t.f=T,t.block=o,t.htmlState=null),i}function E(e,t){var n,i=t.listStack[t.listStack.length-1]||0,r=t.indentation=e.quote?n.push(p.formatting+"-"+e.formatting[i]+"-"+e.quote):n.push("error"))}return e.taskOpen?n.push("meta"):e.taskClosed?n.push("property"):(e.linkHref?n.push(p.linkHref,"url"):(e.strong&&n.push(p.strong),e.em&&n.push(p.em),e.strikethrough&&n.push(p.strikethrough),e.emoji&&n.push(p.emoji),e.linkText&&n.push(p.linkText),e.code&&n.push(p.code),e.image&&n.push(p.image),e.imageAltText&&n.push(p.imageAltText,"link"),e.imageMarker&&n.push(p.imageMarker)),e.header&&n.push(p.header,p.header+"-"+e.header),e.quote&&(n.push(p.quote),!d.maxBlockquoteDepth||d.maxBlockquoteDepth>=e.quote?n.push(p.quote+"-"+e.quote):n.push(p.quote+"-"+d.maxBlockquoteDepth)),!1!==e.list&&((t=(e.listStack.length-1)%3)?1==t?n.push(p.list2):n.push(p.list3):n.push(p.list1)),e.trailingSpaceNewLine?n.push("trailing-space-new-line"):e.trailingSpace&&n.push("trailing-space-"+(e.trailingSpace%2?"a":"b"))),n.length?n.join(" "):null}function t(e,t){if(e.match(n,!0))return M(t)}function T(e,t){var n=t.text(e,t);if(void 0!==n)return n;if(t.list)return t.list=null,M(t);if(t.taskList)return" "===e.match(v,!0)[1]?t.taskOpen=!0:t.taskClosed=!0,d.highlightFormatting&&(t.formatting="task"),t.taskList=!1,M(t);if(t.taskOpen=!1,t.taskClosed=!1,t.header&&e.match(/^#+$/,!0))return d.highlightFormatting&&(t.formatting="header"),M(t);var i=e.next();if(t.linkTitle){t.linkTitle=!1;n="("===i?")":i,n="^\\s*(?:[^"+(n=(n+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+n;if(e.match(new RegExp(n),!0))return p.linkHref}if("`"===i){var r=t.formatting;d.highlightFormatting&&(t.formatting="code"),e.eatWhile("`");var o=e.current().length;if(0!=t.code||t.quote&&1!=o){if(o!=t.code)return t.formatting=r,M(t);var a=M(t);return t.code=0,a}return t.code=o,M(t)}if(t.code)return M(t);if("\\"===i&&(e.next(),d.highlightFormatting)){var s=M(t),l=p.formatting+"-escape";return s?s+" "+l:l}if("!"===i&&e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return t.imageMarker=!0,t.image=!0,d.highlightFormatting&&(t.formatting="image"),M(t);if("["===i&&t.imageMarker&&e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return t.imageMarker=!1,t.imageAltText=!0,d.highlightFormatting&&(t.formatting="image"),M(t);if("]"===i&&t.imageAltText){d.highlightFormatting&&(t.formatting="image");s=M(t);return t.imageAltText=!1,t.image=!1,t.inline=t.f=A,s}if("["===i&&!t.image)return t.linkText&&e.match(/^.*?\]/)||(t.linkText=!0,d.highlightFormatting&&(t.formatting="link")),M(t);if("]"===i&&t.linkText){d.highlightFormatting&&(t.formatting="link");s=M(t);return t.linkText=!1,t.inline=t.f=e.match(/\(.*?\)| ?\[.*?\]/,!1)?A:T,s}if("<"===i&&e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return t.f=t.inline=D,d.highlightFormatting&&(t.formatting="link"),(s=M(t))?s+=" ":s="",s+p.linkInline;if("<"===i&&e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return t.f=t.inline=D,d.highlightFormatting&&(t.formatting="link"),(s=M(t))?s+=" ":s="",s+p.linkEmail;if(d.xml&&"<"===i&&e.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var u=e.string.indexOf(">",e.pos);return-1!=u&&(f=e.string.substring(e.start,u),/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(f)&&(t.md_inside=!0)),e.backUp(1),t.htmlState=O.startState(h),S(e,t,L)}if(d.xml&&"<"===i&&e.match(/^\/\w*?>/))return t.md_inside=!1,"tag";if("*"===i||"_"===i){for(var c=1,r=1==e.pos?" ":e.string.charAt(e.pos-2);c<3&&e.eat(i);)c++;var o=e.peek()||" ",l=!/\s/.test(o)&&(!k.test(o)||/\s/.test(r)||k.test(r)),s=!/\s/.test(r)&&(!k.test(r)||/\s/.test(o)||k.test(o)),u=null,f=null;if(c%2&&(t.em||!l||"*"!==i&&s&&!k.test(r)?t.em!=i||!s||"*"!==i&&l&&!k.test(o)||(u=!1):u=!0),1"!==e.next())return e.match(/^[^>]+/,!0),p.linkInline;t.f=t.inline=T,d.highlightFormatting&&(t.formatting="link");t=M(t);return t?t+=" ":t="",t+p.linkInline}function A(e,t){if(e.eatSpace())return null;var n,e=e.next();return"("===e||"["===e?(t.f=t.inline=(n="("===e?")":"]",function(e,t){if(e.next()!==n)return e.match(a[n]),t.linkHref=!0,M(t);t.f=t.inline=T,d.highlightFormatting&&(t.formatting="link-string");e=M(t);return t.linkHref=!1,e}),d.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,M(t)):"error"}var a={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function N(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=s,e.next(),d.highlightFormatting&&(t.formatting="link"),t.linkText=!0,M(t)):C(e,t,T)}function s(e,t){if(e.match(/^\]:/,!0)){t.f=t.inline=l,d.highlightFormatting&&(t.formatting="link");var n=M(t);return t.linkText=!1,n}return e.match(/^([^\]\\]|\\.)+/,!0),p.linkText}function l(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),t.f=t.inline=T,p.linkHref+" url")}var u={startState:function(){return{f:o,prevLine:{stream:null},thisLine:{stream:null},block:o,htmlState:null,indentation:0,inline:T,text:t,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(e){return{f:e.f,prevLine:e.prevLine,thisLine:e.thisLine,block:e.block,htmlState:e.htmlState&&O.copyState(h,e.htmlState),indentation:e.indentation,localMode:e.localMode,localState:e.localMode?O.copyState(e.localMode,e.localState):null,inline:e.inline,text:e.text,formatting:!1,linkText:e.linkText,linkTitle:e.linkTitle,linkHref:e.linkHref,code:e.code,em:e.em,strong:e.strong,strikethrough:e.strikethrough,emoji:e.emoji,header:e.header,setext:e.setext,hr:e.hr,taskList:e.taskList,list:e.list,listStack:e.listStack.slice(0),quote:e.quote,indentedCode:e.indentedCode,trailingSpace:e.trailingSpace,trailingSpaceNewLine:e.trailingSpaceNewLine,md_inside:e.md_inside,fencedEndRE:e.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return i(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=L)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g," ").length;if(t.indentation=n,t.indentationDiff=null,0[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,d=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,m=/[*+-]\s/,(f=lt).commands.newlineAndIndentContinueMarkdownList=function(e){if(e.getOption("disableInput"))return f.Pass;for(var t=e.listSelections(),n=[],i=0;i\s*$/.test(c),s=!/>\s*$/.test(c),(a||s)&&e.replaceRange("",{line:h.line,ch:0},{line:h.line,ch:h.ch+1}),n[i]="\n"):(c=o[1],a=o[5],o=(s=!(m.test(o[2])||0<=o[2].indexOf(">")))?parseInt(o[3],10)+1+o[4]:o[2].replace("x"," "),n[i]="\n"+c+o+a,s&&function(e){var t=h.line,n=0,i=0,r=p.exec(e.getLine(t)),o=r[1];do{var a=t+(n+=1),s=e.getLine(a),l=p.exec(s);if(l){var u=l[1],c=parseInt(r[3],10)+n-i,f=parseInt(l[3],10),d=f;if(o!==u||isNaN(f)){if(o.length>u.length)return;if(o.length ","")}),$("[data-command=link]",t).addEventListener("click",function(){var e=o.getSelection();/^(https?:\/\/|mailto:)/i.test(e)?l("[","]("+e+")",!0):""!==e?l("["+e+"](http://",")",!0):l("[","](http://)")}),$("[data-command=image]",t).addEventListener("click",function(){ut.show("imagesModal",null,function(e){var t=$(".image-picker-thumbnail.selected",e);t&&t.classList.remove("selected"),$(".image-picker-confirm",e).addEventListener("click",function e(){var t=$(".image-picker-thumbnail.selected",$("#imagesModal")).getAttribute("data-filename");void 0!==t?l(s()+"![","]("+t+")"):l(s()+"![](",")"),this.removeEventListener("click",e)})})}),$("[data-command=summary]",t).addEventListener("click",function(){var e;n()||(l((void 0===(e=a())||"\n"===e?"":"\n")+"\n===\n\n",""),this.setAttribute("disabled",""))}),$("[data-command=undo]",t).addEventListener("click",function(){o.undo(),o.focus()}),$("[data-command=redo]",t).addEventListener("click",function(){o.redo(),o.focus()}),r(),o.on("changes",x.debounce(function(){e.value=o.getValue(),r(),o.historySize().undo<1?$("[data-command=undo]").setAttribute("disabled",""):$("[data-command=undo]").removeAttribute("disabled"),o.historySize().redo<1?$("[data-command=redo]").setAttribute("disabled",""):$("[data-command=redo]").removeAttribute("disabled")},500)),o.on("beforeSelectionChange",function(e,t){var n=function(e){var t,n=[];for(t=0;t'),i=!0}),e.addEventListener("drag",o),e.addEventListener("dragstart",o),e.addEventListener("dragend",o),e.addEventListener("dragover",a),e.addEventListener("dragenter",a),e.addEventListener("dragleave",function(e){this.classList.remove("drag"),e.preventDefault()}),e.addEventListener("drop",function(e){e.preventDefault(),i||(t.files=e.dataTransfer.files,x.triggerEvent(t,"change"))}),e.addEventListener("click",function(e){i&&e.preventDefault()})}function dt(i){var r,o,e,t,s,n,a,l={addKeyCodes:[32]},u=[];function c(){e.value=u.join(", "),f()}function f(){0',c+=l+" "+e,c+="",c+="",i=0;i<7;i++)c+='',c+=d.labels.weekdays.short[p.mod(i+d.weekStarts,7)],c+="";for(c+="",i=0;i<6;i++){for(r=0;r<7;r++)o<=s&&(0':'',c+=o++):1===o?(c+='',c+=p.daysInMonth(p.mod(t-1,12),e)-u+r+1):(c+='',c+=o++-s),c+="";c+=""}c+="",$(".calendar-table",m).innerHTML=c,$$(".calendar-day",m).forEach(function(e){e.addEventListener("mousedown",function(e){e.stopPropagation(),e.preventDefault()}),e.addEventListener("click",function(){var e=f(),t=new Date(h.year,h.month,parseInt(this.textContent));e.setAttribute("data-date",t),e.value=p.formatDateTime(t),e.blur()})})}function t(){var e,t,n,i,r,o;(a=f())&&"block"===m.style.display&&(i=(n=a.getBoundingClientRect()).top+window.pageYOffset,r=n.left+window.pageXOffset,m.style.top=i+a.offsetHeight+"px",m.style.left=r+a.offsetLeft+"px",e=(o=m.getBoundingClientRect()).top+window.pageYOffset,t=o.left+window.pageXOffset,n=x.outerWidth(m),i=x.outerHeight(m),r=document.documentElement.clientWidth,o=document.documentElement.clientHeight,rp.daysInMonth(this.month,this.year)&&this.lastDay()},nextMonth:function(){this.month=p.mod(this.month+1,12),0===this.month&&this.nextYear(),this.day>p.daysInMonth(this.month,this.year)&&this.lastDay()},prevWeek:function(){this.day-=7,this.day<1&&(this.prevMonth(),this.day+=p.daysInMonth(this.month,this.year))},nextWeek:function(){this.day+=7,this.day>p.daysInMonth(this.month,this.year)&&(this.day-=p.daysInMonth(this.month,this.year),this.nextMonth())},prevDay:function(){this.day--,this.day<1&&(this.prevMonth(),this.lastDay())},nextDay:function(){this.day++,this.day>p.daysInMonth(this.month,this.year)&&(this.nextMonth(),this.day=1)}},p={_daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],mod:function(e,t){return e-t*Math.floor(e/t)},isValidDate:function(e){return e&&!isNaN(Date.parse(e))},isLeapYear:function(e){return e%4==0&&e%100!=0||e%400==0},daysInMonth:function(e,t){return 1===e&&this.isLeapYear(t)?29:this._daysInMonth[e]},weekStart:function(e,t){var n=e.getDate();return void 0===t&&(t=d.weekStarts),n-=this.mod(e.getDay()-t,7),new Date(e.getFullYear(),e.getMonth(),n)},weekNumberingYear:function(e){var t=e.getFullYear(),n=this.weekStart(new Date(t,0,4),1),i=this.weekStart(new Date(t+1,0,4),1);return e.getTime()>=i.getTime()?t+1:e.getTime()>=n.getTime()?t:t-1},weekOfYear:function(e){var t=this.weekNumberingYear(e),t=this.weekStart(new Date(t,0,4),1),e=this.weekStart(e,1);return Math.round((e.getTime()-t.getTime())/6048e5)+1},formatDateTime:function(n,e){function i(e,t){for(var n=e.toString();n.length'+d.labels.today+'',document.body.appendChild(m),$(".currentMonth",m).addEventListener("mousedown",function(e){var t=f(),n=new Date;h.setDate(n),i(t),t.blur(),e.preventDefault()}),x.longClick($(".prevMonth",m),function(e){h.prevMonth(),n(h.year,h.month),e.preventDefault()},750,500),x.longClick($(".nextMonth",m),function(e){h.nextMonth(),n(h.year,h.month),e.preventDefault()},750,500),window.addEventListener("mousedown",function(e){"none"!==m.style.display&&e.target.closest(".calendar")&&e.preventDefault()}),window.addEventListener("resize",x.throttle(t,100)),m),e=a.value,a.readOnly=!0,a.size=d.format.length,p.isValidDate(e)&&(e=new Date(e),a.setAttribute("data-date",e),a.value=p.formatDateTime(e)),a.addEventListener("change",function(){""===this.value?this.setAttribute("data-date",""):this.value=p.formatDateTime(this.getAttribute("data-date"))}),a.addEventListener("keydown",function(e){var t=this.getAttribute("data-date");switch(h.setDate(p.isValidDate(t)?new Date(t):new Date),e.which){case 13:$(".calendar-day.selected",m).click(),m.style.display="none";break;case 8:this.value="",this.blur(),m.style.display="none";break;case 27:this.blur(),m.style.display="none";break;case 37:e.ctrlKey||e.metaKey?e.shiftKey?h.prevYear():h.prevMonth():h.prevDay(),i(this);break;case 38:h.prevWeek(),i(this);break;case 39:e.ctrlKey||e.metaKey?e.shiftKey?h.nextYear():h.nextMonth():h.nextDay(),i(this);break;case 40:h.nextWeek(),i(this);break;case 48:(e.ctrlKey||e.metaKey)&&h.setDate(new Date),i(this);break;default:return}e.stopPropagation(),e.preventDefault()}),a.addEventListener("focus",function(){var e=p.isValidDate(this.getAttribute("data-date"))?new Date(this.getAttribute("data-date")):new Date;h.setDate(e),n(h.year,h.month,h.day),m.style.display="block",t()}),a.addEventListener("blur",function(){m.style.display="none"})}),$$(".image-input").forEach(function(i){i.addEventListener("click",function(){ut.show("imagesModal",null,function(e){var t,n=$(".image-picker-thumbnail.selected",e);n&&n.classList.remove("selected"),i.value&&(t=$('.image-picker-thumbnail[data-filename="'+i.value+'"]',e))&&t.classList.add("selected"),$(".image-picker-confirm",e).setAttribute("data-target",i.id)})})}),$$(".image-picker").forEach(function(e){!function(e){var t,n,i,r=$$("option",e),o=$(".image-picker-confirm",e.parentNode),a=$("[data-command=upload]",e.parentNode);if(e.style.display="none",0$&"),t.style.display=""):t.style.display="none"}))}function l(){this.value=x.validateSlug(this.value)}$$(".pages-list").forEach(function(e){var t,n,i;"true"===e.getAttribute("data-sortable-children")&&(n=[],n=(i=Re.create(t=e,{handle:".sort-handle",filter:"[data-sortable=false]",forceFallback:!0,onClone:function(e){e.item.closest(".pages-list").classList.add("dragging"),$$(".pages-children",e.item).forEach(function(e){e.style.display="none"}),$$(".page-children-toggle").forEach(function(e){e.classList.remove("toggle-expanded"),e.classList.add("toggle-collapsed"),e.style.opacity="0.5"})},onMove:function(e){if("false"===e.related.getAttribute("data-sortable"))return!1;$$(".pages-children",e.related).forEach(function(e){e.style.display="none"})},onEnd:function(e){e.item.closest(".pages-list").classList.remove("dragging"),$$(".page-children-toggle").forEach(function(e){e.style.opacity=""}),e.newIndex!==e.oldIndex&&(i.option("disabled",!0),e={"csrf-token":$("meta[name=csrf-token]").getAttribute("content"),parent:t.getAttribute("data-parent"),from:e.oldIndex,to:e.newIndex},c({method:"POST",url:Formwork.config.baseUri+"pages/reorder/",data:e},function(e){e.status&&new u(e.message,e.status,5e3).show(),e.status&&"error"!==e.status||i.sort(n),i.option("disabled",!1),n=i.toArray()}))}})).toArray())}),$$(".page-details").forEach(function(e){var t=$(".page-children-toggle",e);t&&e.addEventListener("click",function(){t.click()})}),$$(".page-details a").forEach(function(e){e.addEventListener("click",function(e){e.stopPropagation()})}),$$(".page-children-toggle").forEach(function(e){e.addEventListener("click",function(e){var t,n;n=(t=this).closest("li"),$$(".pages-list",n).forEach(function(e){e.parentNode===n&&x.toggleElement(e)}),t.classList.toggle("toggle-expanded"),t.classList.toggle("toggle-collapsed"),e.stopPropagation()})}),e&&e.addEventListener("click",function(){$$(".pages-children").forEach(function(e){e.style.display="block"}),$$(".pages-list .page-children-toggle").forEach(function(e){e.classList.remove("toggle-collapsed"),e.classList.add("toggle-expanded")}),this.blur()}),t&&t.addEventListener("click",function(){$$(".pages-children").forEach(function(e){e.style.display="none"}),$$(".pages-list .page-children-toggle").forEach(function(e){e.classList.remove("toggle-expanded"),e.classList.add("toggle-collapsed")}),this.blur()}),n&&n.addEventListener("click",function(){this.classList.toggle("active"),$$(".pages-list .sort-handle").forEach(function(e){x.toggleElement(e,"inline")}),this.blur()}),r&&(r.addEventListener("focus",function(){$$(".pages-children").forEach(function(e){e.setAttribute("data-display",getComputedStyle(e).display)})}),r.addEventListener("keyup",x.debounce(s,100)),r.addEventListener("search",s),document.addEventListener("keydown",function(e){(e.ctrlKey||e.metaKey)&&70===e.which&&document.activeElement!==r&&(r.focus(),e.preventDefault())})),o&&($("#page-title",o).addEventListener("keyup",function(){$("#page-slug",o).value=x.slug(this.value)}),$("#page-slug",o).addEventListener("keyup",l),$("#page-slug",o).addEventListener("blur",l),$("#page-parent",o).addEventListener("change",function(){var e=this.options[this.selectedIndex],t=$("#page-template",o),n=e.getAttribute("data-allowed-templates"),i=0;if(null!==n)for(n=n.split(", "),t.setAttribute("data-previous-value",t.value),t.value=n[0],i=0;ie.x;return e&&"explode"===n||!e&&"implode"===n?"start":e&&"implode"===n||!e&&"explode"===n?"end":"middle"}return u=(e=this||T).window,d=e.document,(p=t).namespaces={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",ct:"http://gionkunz.github.com/chartist-js/ct"},p.noop=function(e){return e},p.alphaNumerate=function(e){return String.fromCharCode(97+e%26)},p.extend=function(e){var t,n,i;for(e=e||{},t=1;t":">",'"':""","'":"'"},p.serialize=function(e){return null==e?e:("number"==typeof e?e=""+e:"object"==typeof e&&(e=JSON.stringify({data:e})),Object.keys(p.escapingMap).reduce(function(e,t){return p.replaceAll(e,t,p.escapingMap[t])},e))},p.deserialize=function(e){if("string"!=typeof e)return e;e=Object.keys(p.escapingMap).reduce(function(e,t){return p.replaceAll(e,p.escapingMap[t],t)},e);try{e=void 0!==(e=JSON.parse(e)).data?e.data:e}catch(e){}return e},p.createSvg=function(t,e,n,i){return e=e||"100%",n=n||"100%",Array.prototype.slice.call(t.querySelectorAll("svg")).filter(function(e){return e.getAttributeNS(p.namespaces.xmlns,"ct")}).forEach(function(e){t.removeChild(e)}),(i=new p.Svg("svg").attr({width:e,height:n}).addClass(i))._node.style.width=e,i._node.style.height=n,t.appendChild(i._node),i},p.normalizeData=function(e,t,n){var i={raw:e,normalized:{}};return i.normalized.series=p.getDataArray({series:e.series||[]},t,n),n=i.normalized.series.every(function(e){return e instanceof Array})?Math.max.apply(null,i.normalized.series.map(function(e){return e.length})):i.normalized.series.length,i.normalized.labels=(e.labels||[]).slice(),Array.prototype.push.apply(i.normalized.labels,p.times(Math.max(0,n-i.normalized.labels.length)).map(function(){return""})),t&&p.reverseData(i.normalized),i},p.safeHasProperty=function(e,t){return null!==e&&"object"==typeof e&&e.hasOwnProperty(t)},p.isDataHoleValue=function(e){return null==e||"number"==typeof e&&isNaN(e)},p.reverseData=function(e){e.labels.reverse(),e.series.reverse();for(var t=0;to.high&&(o.high=i),s&&i=n)s.step=1;else if(i&&t=n)s.step=t;else for(;;){if(l&&p.projectLength(e,s.step,s)<=n)s.step*=2;else{if(l||!(p.projectLength(e,s.step/2,s)>=n))break;if(s.step/=2,i&&s.step%1!=0){s.step*=2;break}}if(1e3=s.high;)o=c(o,-s.step);s.min=r,s.max=o,s.range=s.max-s.min;for(var f=[],d=s.min;d<=s.max;d=c(d,s.step)){var h=p.roundWithPrecision(d);h!==f[f.length-1]&&f.push(h)}return s.values=f,s},p.polarToCartesian=function(e,t,n,i){i=(i-90)*Math.PI/180;return{x:e+n*Math.cos(i),y:t+n*Math.sin(i)}},p.createChartRect=function(e,t,n){var i=!(!t.axisX&&!t.axisY),r=i?t.axisY.offset:0,o=i?t.axisX.offset:0,a=e.width()||p.quantity(t.width).value||0,s=e.height()||p.quantity(t.height).value||0,e=p.normalizePadding(t.chartPadding,n),a=Math.max(a,r+e.left+e.right),s=Math.max(s,o+e.top+e.bottom),n={padding:e,width:function(){return this.x2-this.x1},height:function(){return this.y1-this.y2}};return i?("start"===t.axisX.position?(n.y2=e.top+o,n.y1=Math.max(s-e.bottom,n.y2+1)):(n.y2=e.top,n.y1=Math.max(s-e.bottom-o,n.y2+1)),"start"===t.axisY.position?(n.x1=e.left+r,n.x2=Math.max(a-e.right,n.x1+1)):(n.x1=e.left,n.x2=Math.max(a-e.right-r,n.x1+1))):(n.x1=e.left,n.x2=Math.max(a-e.right,n.x1+1),n.y2=e.top,n.y1=Math.max(s-e.bottom,n.y2+1)),n},p.createGrid=function(e,t,n,i,r,o,a,s){var l={};l[n.units.pos+"1"]=e,l[n.units.pos+"2"]=e,l[n.counterUnits.pos+"1"]=i,l[n.counterUnits.pos+"2"]=i+r;a=o.elem("line",l,a.join(" "));s.emit("draw",p.extend({type:"grid",axis:n,index:t,group:o,element:a},l))},p.createGridBackground=function(e,t,n,i){n=e.elem("rect",{x:t.x1,y:t.y2,width:t.width(),height:t.height()},n,!0);i.emit("draw",{type:"gridBackground",group:e,element:n})},p.createLabel=function(e,t,n,i,r,o,a,s,l,u,c){var f={};f[r.units.pos]=e+a[r.units.pos],f[r.counterUnits.pos]=a[r.counterUnits.pos],f[r.units.len]=t,f[r.counterUnits.len]=Math.max(0,o-10),l=u?((u=d.createElement("span")).className=l.join(" "),u.setAttribute("xmlns",p.namespaces.xhtml),u.innerText=i[n],u.style[r.units.len]=Math.round(f[r.units.len])+"px",u.style[r.counterUnits.len]=Math.round(f[r.counterUnits.len])+"px",s.foreignObject(u,p.extend({style:"overflow: visible;"},f))):s.elem("text",f,l.join(" ")).text(i[n]),c.emit("draw",p.extend({type:"label",axis:r,index:n,group:s,element:l,text:i[n]},f))},p.getSeriesOption=function(e,t,n){if(e.name&&t.series&&t.series[e.name]){e=t.series[e.name];return(e.hasOwnProperty(n)?e:t)[n]}return t[n]},p.optionsProvider=function(e,n,i){var r,o,a=p.extend({},e),t=[];function s(e){var t=r;if(r=p.extend({},a),n)for(o=0;o":"","?":"","@":"","[":"","]":"","^":"","`":"","{":"","|":"","}":"","¡":"","£":"","¤":"","¥":"","¦":"","§":"","«":"","°":"","»":"","‘":"","’":"","“":"","”":"","\n":"-"," ":"-","-":"-","–":"-","—":"-","/":"-","\\":"-",_:"-","~":"-","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"Ae","Ç":"C","Ð":"D","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Œ":"Oe","Š":"S","Þ":"Th","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"ae","å":"a","æ":"ae","¢":"c","ç":"c","ð":"d","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"oe","ø":"o","œ":"oe","š":"s","ß":"ss","þ":"th","ù":"u","ú":"u","û":"u","ü":"ue","ý":"y","ÿ":"y","Ÿ":"y"};for(t in e=e.toLowerCase(),n)Object.prototype.hasOwnProperty.call(n,t)&&(e=e.split(t).join(n[t]));return e.replace(/[^a-z0-9-]/g,"").replace(/^-+|-+$/g,"").replace(/-+/g,"-")},validateSlug:function(e){return e.toLowerCase().replace(" ","-").replace(/[^a-z0-9-]/g,"")},debounce:function(e,t,n){var i,r,o,a=null;return function(){return i=this,r=arguments,a&&clearTimeout(a),n&&!a&&(o=e.apply(i,r)),a=setTimeout(function(){n||(o=e.apply(i,r)),a=null},t),o}},throttle:function(n,i){var r,o,a,s=0,l=null;return function(){var e,t=Date.now();return 0===s&&(s=t),r=this,o=arguments,(e=s+i-t)<=0||i"===t[0]&&(t=t.substring(1)),e))try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return}}function N(e,t,n,i){if(e){n=n||document;do{if(null!=t&&(">"!==t[0]||e.parentNode===n)&&y(e,t)||i&&e===n)return e}while(e!==n&&(e=(r=e).host&&r!==document&&r.host.nodeType?r.host:r.parentNode))}var r;return null}var k,C=/\s+/g;function O(e,t,n){var i;e&&t&&(e.classList?e.classList[n?"add":"remove"](t):(i=(" "+e.className+" ").replace(C," ").replace(" "+t+" "," "),e.className=(i+(n?" "+t:"")).replace(C," ")))}function F(e,t,n){var i=e&&e.style;if(i){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in i||-1!==t.indexOf("webkit")||(t="-webkit-"+t),i[t]=n+("string"==typeof n?"":"px")}}function S(e,t){var n="";if("string"==typeof e)n=e;else do{var i=F(e,"transform")}while(i&&"none"!==i&&(n=i+" "+n),!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix;return r&&new r(n)}function L(e,t,n){if(e){var i=e.getElementsByTagName(t),r=0,o=i.length;if(n)for(;r=t.left-n&&r<=t.right+n,t=o>=t.top-n&&o<=t.bottom+n;return n&&i&&t?a=e:void 0}}),a);if(t){var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);i.target=i.rootEl=t,i.preventDefault=void 0,i.stopPropagation=void 0,t[Y]._onDragOver(i)}}var r,o,a}function We(e){Q&&Q.parentNode[Y]._isOutsideThisEl(e.target)}function Re(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=a({},t),e[Y]=this;var n,i,r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Pe(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Re.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(n in X.initializePlugins(this,e,r),r)n in t||(t[n]=r[n]);for(i in ze(t),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&Fe,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?g(e,"pointerdown",this._onTapStart):(g(e,"mousedown",this._onTapStart),g(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(g(e,"dragover",this),g(e,"dragenter",this)),Se.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),a(this,q())}function _e(e,t,n,i,r,o,a,s){var l,u,c=e[Y],f=c.options.onMove;return!window.CustomEvent||b||w?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=i,l.related=r||t,l.relatedRect=o||I(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),f&&(u=f.call(c,l,a)),u}function je(e){e.draggable=!1}function Ye(){Te=!1}function qe(e){return setTimeout(e,0)}function Ue(e){return clearTimeout(e)}Re.prototype={constructor:Re,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(ye=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Q):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,i=this.el,e=this.options,r=e.preventOnFilter,o=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,s=(a||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,u=e.filter;if(!function(e){De.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var i=t[n];i.checked&&De.push(i)}}(i),!Q&&!(/mousedown|pointerdown/.test(o)&&0!==t.button||e.disabled||l.isContentEditable||(s=N(s,e.draggable,i,!1),s&&s.animated||ne===s))){if(oe=H(s),se=H(s,e.draggable),"function"==typeof u){if(u.call(this,t,s,this))return K({sortable:n,rootEl:l,name:"filter",targetEl:s,toEl:i,fromEl:i}),V("filter",n,{evt:t}),void(r&&t.cancelable&&t.preventDefault())}else if(u=u&&u.split(",").some(function(e){if(e=N(l,e.trim(),i,!1))return K({sortable:n,rootEl:e,name:"filter",targetEl:s,fromEl:i,toEl:i}),V("filter",n,{evt:t}),!0}))return void(r&&t.cancelable&&t.preventDefault());e.handle&&!N(l,e.handle,i,!1)||this._prepareDragStart(t,a,s)}}},_prepareDragStart:function(e,t,n){var i,r=this,o=r.el,a=r.options,s=o.ownerDocument;n&&!Q&&n.parentNode===o&&(i=I(n),ee=o,Z=(Q=n).parentNode,te=Q.nextSibling,ne=n,ue=a.group,fe={target:Re.dragged=Q,clientX:(t||e).clientX,clientY:(t||e).clientY},me=fe.clientX-i.left,ge=fe.clientY-i.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Q.style["will-change"]="all",i=function(){V("delayEnded",r,{evt:e}),Re.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!f&&r.nativeDraggable&&(Q.draggable=!0),r._triggerDragStart(e,t),K({sortable:r,name:"choose",originalEvent:e}),O(Q,a.chosenClass,!0))},a.ignore.split(",").forEach(function(e){L(Q,e.trim(),je)}),g(s,"dragover",Be),g(s,"mousemove",Be),g(s,"touchmove",Be),g(s,"mouseup",r._onDrop),g(s,"touchend",r._onDrop),g(s,"touchcancel",r._onDrop),f&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Q.draggable=!0),V("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(w||b)?i():Re.eventCanceled?this._onDrop():(g(s,"mouseup",r._disableDelayedDrag),g(s,"touchend",r._disableDelayedDrag),g(s,"touchcancel",r._disableDelayedDrag),g(s,"mousemove",r._delayedDragTouchMoveHandler),g(s,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&g(s,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(i,a.delay)))},_delayedDragTouchMoveHandler:function(e){e=e.touches?e.touches[0]:e;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Q&&je(Q),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;v(e,"mouseup",this._disableDelayedDrag),v(e,"touchend",this._disableDelayedDrag),v(e,"touchcancel",this._disableDelayedDrag),v(e,"mousemove",this._delayedDragTouchMoveHandler),v(e,"touchmove",this._delayedDragTouchMoveHandler),v(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?g(document,"pointermove",this._onTouchMove):g(document,t?"touchmove":"mousemove",this._onTouchMove):(g(Q,"dragend",this),g(ee,"dragstart",this._onDragStart));try{document.selection?qe(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){var n;ke=!1,ee&&Q?(V("dragStarted",this,{evt:t}),this.nativeDraggable&&g(document,"dragover",We),n=this.options,e||O(Q,n.dragClass,!1),O(Q,n.ghostClass,!0),Re.active=this,e&&this._appendGhost(),K({sortable:this,name:"start",originalEvent:t})):this._nulling()},_emulateDragOver:function(){if(de){this._lastX=de.clientX,this._lastY=de.clientY,He();for(var e=document.elementFromPoint(de.clientX,de.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(de.clientX,de.clientY))!==t;)t=e;if(Q.parentNode[Y]._isOutsideThisEl(e),t)do{if(t[Y])if(t[Y]._onDragOver({clientX:de.clientX,clientY:de.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}while(t=(e=t).parentNode);$e()}},_onTouchMove:function(e){if(fe){var t=this.options,n=t.fallbackTolerance,i=t.fallbackOffset,r=e.touches?e.touches[0]:e,o=J&&S(J),a=J&&o&&o.a,s=J&&o&&o.d,t=Ne&&we&&M(we),a=(r.clientX-fe.clientX+i.x)/(a||1)+(t?t[0]-Me[0]:0)/(a||1),s=(r.clientY-fe.clientY+i.y)/(s||1)+(t?t[1]-Me[1]:0)/(s||1);if(!Re.active&&!ke){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))n.right+10||e.clientX<=n.right&&e.clientY>n.bottom&&e.clientX>=n.left:e.clientX>n.right&&e.clientY>n.top||e.clientX<=n.right&&e.clientY>n.bottom+10}(n,a,this)&&!v.animated){if(v===Q)return T(!1);if(v&&s===n.target&&(l=v),l&&(r=I(l)),!1!==_e(ee,s,Q,i,l,r,n,!!l))return M(),s.appendChild(Q),Z=s,D(),T(!0)}else if(l.parentNode===s){r=I(l);var y,x,b,w=Q.parentNode!==s,k=(k=Q.animated&&Q.toRect||i,L=l.animated&&l.toRect||r,C=(e=a)?k.left:k.top,t=e?k.right:k.bottom,c=e?k.width:k.height,v=e?L.left:L.top,k=e?L.right:L.bottom,L=e?L.width:L.height,!(C===v||t===k||C+c/2===v+L/2)),C=a?"top":"left",c=P(l,"top","top")||P(Q,"top","top"),v=c?c.scrollTop:void 0;if(ye!==l&&(x=r[C],Le=!1,Ee=!k&&u.invertSwap||w),0!==(y=function(e,t,n,i,r,o,a,s){var l=i?e.clientY:e.clientX,u=i?n.height:n.width,e=i?n.top:n.left,i=i?n.bottom:n.right,n=!1;if(!a)if(s&&be=15){v=false;g=true}var b=y&&(o||v&&(x==null||x<12.11)),k=m||S&&w>=9;function C(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var L=function(e,t){var n=e.className;var i=C(t).exec(n);if(i){var r=n.slice(i.index+i[0].length);e.className=n.slice(0,i.index)+(r?i[1]+r:"")}},E;function M(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function T(e,t){return M(e).appendChild(t)}function N(e,t,n,i){var r=document.createElement(e);if(n)r.className=n;if(i)r.style.cssText=i;if(typeof t=="string")r.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o;a+=n-a%n;o=s+1}}var B=function(){this.id=null;this.f=null;this.time=0;this.handler=z(this.onTimeout,this)};function W(e,t){for(var n=0;n=t)return i+Math.min(a,t-r);r+=o-i;r+=n-r%n;i=o+1;if(r>=t)return i}}var G=[""];function X(e){while(G.length<=e)G.push(V(G)+" ");return G[e]}function V(e){return e[e.length-1]}function K(e,t){var n=[];for(var i=0;i""&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){if(!t)return te(e);if(t.source.indexOf("\\w")>-1&&te(e))return true;return t.test(e)}function ie(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return false;return true}var re=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&re.test(e)}function ae(e,t,n){while((n<0?t>0:tn?-1:1;for(;;){if(t==n)return t;var r=(t+n)/2,o=i<0?Math.ceil(r):Math.floor(r);if(o==t)return e(o)?t:n;if(e(o))n=o;else t=o+i}}function le(e,t,n,i){if(!e)return i(t,n,"ltr",0);var r=false;for(var o=0;ot||t==n&&a.to==t){i(Math.max(a.from,t),Math.min(a.to,n),a.level==1?"rtl":"ltr",o);r=true}}if(!r)i(t,n,"ltr")}var ue=null;function ce(e,t,n){var i;ue=null;for(var r=0;rt)return r;if(o.to==t)if(o.from!=o.to&&n=="before")i=r;else ue=r;if(o.from==t)if(o.from!=o.to&&n!="before")i=r;else ue=r}return i!=null?i:ue}var fe=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN";var n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function $(e){if(e<=247)return t.charAt(e);else if(1424<=e&&e<=1524)return"R";else if(1536<=e&&e<=1785)return n.charAt(e-1536);else if(1774<=e&&e<=2220)return"r";else if(8192<=e&&e<=8203)return"w";else if(e==8204)return"b";else return"L"}var B=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;var W=/[stwN]/,R=/[LRr]/,_=/[Lb1n]/,j=/[1n]/;function Y(e,t,n){this.level=e;this.from=t;this.to=n}return function(e,t){var n=t=="ltr"?"L":"R";if(e.length==0||t=="ltr"&&!B.test(e))return false;var i=e.length,r=[];for(var o=0;o-1)i[t]=r.slice(0,o).concat(r.slice(o+1))}}}function ve(e,t){var n=me(e,t);if(!n.length)return;var i=Array.prototype.slice.call(arguments,2);for(var r=0;r0}function we(e){e.prototype.on=function(e,t){pe(this,e,t)};e.prototype.off=function(e,t){ge(this,e,t)}}function ke(e){if(e.preventDefault)e.preventDefault();else e.returnValue=false}function Ce(e){if(e.stopPropagation)e.stopPropagation();else e.cancelBubble=true}function Se(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==false}function Le(e){ke(e);Ce(e)}function Ee(e){return e.target||e.srcElement}function Me(e){var t=e.which;if(t==null)if(e.button&1)t=1;else if(e.button&2)t=3;else if(e.button&4)t=2;if(y&&e.ctrlKey&&t==1)t=3;return t}var Te=function(){if(S&&w<9)return false;var e=N("div");return"draggable"in e||"dragDrop"in e}(),De,Ae;function Ne(e){if(De==null){var t=N("span","");T(e,N("span",[t,document.createTextNode("x")]));if(e.firstChild.offsetHeight!=0)De=t.offsetWidth<=1&&t.offsetHeight>2&&!(S&&w<8)}var n=De?N("span",""):N("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");n.setAttribute("cm-text","");return n}function Oe(e){if(Ae!=null)return Ae;var t=T(e,document.createTextNode("AخA"));var n=E(t,0,1).getBoundingClientRect();var i=E(t,1,2).getBoundingClientRect();M(e);if(!n||n.left==n.right)return false;return Ae=i.right-n.right<3}var Fe="\n\nb".split(/\n/).length!=3?function(e){var t=0,n=[],i=e.length;while(t<=i){var r=e.indexOf("\n",t);if(r==-1)r=e.length;var o=e.slice(t,e.charAt(r-1)=="\r"?r-1:r);var a=o.indexOf("\r");if(a!=-1){n.push(o.slice(0,a));t+=a+1}else{n.push(o);t=r+1}}return n}:function(e){return e.split(/\r\n?|\n/)},Ie=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return false}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}if(!t||t.parentElement()!=e)return false;return t.compareEndPoints("StartToEnd",t)!=0},Pe=function(){var e=N("div");if("oncopy"in e)return true;e.setAttribute("oncopy","return;");return typeof e.oncopy=="function"}(),ze=null;function He(e){if(ze!=null)return ze;var t=T(e,N("span","x"));var n=t.getBoundingClientRect();var i=E(t,0,1).getBoundingClientRect();return ze=Math.abs(n.left-i.left)>1}var $e={},Be={};function We(e,t){if(2=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");var n=e;while(!n.lines)for(var i=0;;++i){var r=n.children[i],o=r.chunkSize();if(t=e.first&&tn)return rt(n,Ke(e,n).text.length);return dt(t,Ke(e,t.line).text.length)}function dt(e,t){var n=e.ch;if(n==null||n>t)return rt(e.line,t);else if(n<0)return rt(e.line,0);else return e}function ht(e,t){var n=[];for(var i=0;i=this.string.length},Ve.prototype.sol=function(){return this.pos==this.lineStart},Ve.prototype.peek=function(){return this.string.charAt(this.pos)||undefined},Ve.prototype.next=function(){if(this.post},Ve.prototype.eatSpace=function(){var e=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos)))++this.pos;return this.pos>e},Ve.prototype.skipToEnd=function(){this.pos=this.string.length},Ve.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1){this.pos=t;return true}},Ve.prototype.backUp=function(e){this.pos-=e},Ve.prototype.column=function(){if(this.lastColumnPos0)return null;if(o&&t!==false)this.pos+=o[0].length;return o}},Ve.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ve.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ve.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ve.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var pt=function(e,t){this.state=e;this.lookAhead=t},mt=function(e,t,n,i){this.state=t;this.doc=e;this.line=n;this.maxLookAhead=i||0;this.baseTokens=null;this.baseTokenPos=1};function gt(t,n,i,e){var l=[t.state.modeGen],r={};Lt(t,n.text,t.doc.mode,i,function(e,t){return l.push(e,t)},r,e);var u=i.state;var o=function(e){i.baseTokens=l;var o=t.state.overlays[e],a=1,s=0;i.state=true;Lt(t,n.text,o.mode,i,function(e,t){var n=a;while(se)l.splice(a,1,e,l[a+1],i);a+=2;s=Math.min(e,i)}if(!t)return;if(o.opaque){l.splice(n,a-n,e,"overlay "+t);a=n+2}else for(;ne.options.maxHighlightLength&&Ue(e.doc.mode,i.state);var o=gt(e,t,i);if(r)i.state=r;t.stateAfter=i.save(!r);t.styles=o.styles;if(o.classes)t.styleClasses=o.classes;else if(t.styleClasses)t.styleClasses=null;if(n===e.doc.highlightFrontier)e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier)}return t.styles}function yt(n,i,e){var t=n.doc,r=n.display;if(!t.mode.startState)return new mt(t,true,i);var o=Et(n,i,e);var a=o>t.first&&Ke(t,o-1).stateAfter;var s=a?mt.fromSaved(t,a,o):new mt(t,Xe(t.mode),o);t.iter(o,i,function(e){xt(n,e.text,s);var t=s.line;e.stateAfter=t==i-1||t%5==0||t>=r.viewFrom&&tt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}mt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);if(t!=null&&e>this.maxLookAhead)this.maxLookAhead=e;return t},mt.prototype.baseToken=function(e){if(!this.baseTokens)return null;while(this.baseTokens[this.baseTokenPos]<=e)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},mt.prototype.nextLine=function(){this.line++;if(this.maxLookAhead>0)this.maxLookAhead--},mt.fromSaved=function(e,t,n){if(t instanceof pt)return new mt(e,Ue(e.mode,t.state),n,t.lookAhead);else return new mt(e,Ue(e.mode,t),n)},mt.prototype.save=function(e){var t=e!==false?Ue(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new pt(t,this.maxLookAhead):t};var kt=function(e,t,n){this.start=e.start;this.end=e.pos;this.string=e.current();this.type=t||null;this.state=n};function Ct(e,t,n,i){var r=e.doc,o=r.mode,a;t=ft(r,t);var s=Ke(r,t.line),l=yt(e,t.line,n);var u=new Ve(s.text,e.options.tabSize,l),c;if(i)c=[];while((i||u.pose.options.maxHighlightLength){s=false;if(a)xt(e,t,i,c.pos);c.pos=t.length;f=null}else f=St(wt(n,c,i.state,d),o);if(d){var h=d[0].name;if(h)f="m-"+(f?h+" "+f:h)}if(!s||u!=f){while(la;--s){if(s<=o.first)return o.first;var l=Ke(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof pt?u.lookAhead:0)<=o.modeFrontier))return s;var c=$(l.text,null,e.options.tabSize);if(r==null||i>c){r=s-1;i=c}}return r}function Mt(e,t){e.modeFrontier=Math.min(e.modeFrontier,t);if(e.highlightFrontiern;i--){var r=Ke(e,i).stateAfter;if(r&&(!(r instanceof pt)||i+r.lookAhead=t:o.to>t);(i||(i=[])).push(new Ot(a,o.from,l?null:o.to))}}return i}function Ht(e,t,n){var i;if(e)for(var r=0;r=t:o.to>t);if(s||o.from==t&&a.type=="bookmark"&&(!n||o.marker.insertLeft)){var l=o.from==null||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var b=0;b0)continue;var c=[l,1],f=ot(u.from,s.from),d=ot(u.to,s.to);if(f<0||!a.inclusiveLeft&&!f)c.push({from:u.from,to:s.from});if(d>0||!a.inclusiveRight&&!d)c.push({from:s.to,to:u.to});r.splice.apply(r,c);l+=c.length-3}}return r}function Rt(e){var t=e.markedSpans;if(!t)return;for(var n=0;nt)&&(!i||qt(i,o.marker)<0))i=o.marker}return i}function Kt(e,t,n,i,r){var o=Ke(e,t);var a=Dt&&o.markedSpans;if(a)for(var s=0;s=0&&f<=0||c<=0&&f>=0)continue;if(c<=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?ot(u.to,n)>=0:ot(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&r.inclusiveLeft?ot(u.from,i)<=0:ot(u.from,i)<0))return true}}function Qt(e){var t;while(t=Gt(e))e=t.find(-1,true).line;return e}function Zt(e){var t;while(t=Xt(e))e=t.find(1,true).line;return e}function Jt(e){var t,n;while(t=Xt(e)){e=t.find(1,true).line;(n||(n=[])).push(e)}return n}function en(e,t){var n=Ke(e,t),i=Qt(n);if(n==i)return t;return et(i)}function tn(e,t){if(t>e.lastLine())return t;var n=Ke(e,t),i;if(!nn(e,n))return t;while(i=Xt(n))n=i.find(1,true).line;return et(n)+1}function nn(e,t){var n=Dt&&t.markedSpans;if(n)for(var i=void 0,r=0;rn.maxLineLength){n.maxLineLength=t;n.maxLine=e}})}var ln=function(e,t,n){this.text=e;_t(this,t);this.height=n?n(this):1};function un(e,t,n,i){e.text=t;if(e.stateAfter)e.stateAfter=null;if(e.styles)e.styles=null;if(e.order!=null)e.order=null;Rt(e);_t(e,n);var r=i?i(e):1;if(r!=e.height)Je(e,r)}function cn(e){e.parent=null;Rt(e)}ln.prototype.lineNo=function(){return et(this)},we(ln);var fn={},dn={};function hn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?dn:fn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function pn(e,t){var n=D("span",null,null,g?"padding-right: .1px":null);var i={pre:D("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:false,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var r=0;r<=(t.rest?t.rest.length:0);r++){var o=r?t.rest[r-1]:t.line,a=void 0;i.pos=0;i.addToken=gn;if(Oe(e.display.measure)&&(a=de(o,e.doc.direction)))i.addToken=yn(i.addToken,a);i.map=[];var s=t!=e.display.externalMeasured&&et(o);bn(o,i,vt(e,o,s));if(o.styleClasses){if(o.styleClasses.bgClass)i.bgClass=I(o.styleClasses.bgClass,i.bgClass||"");if(o.styleClasses.textClass)i.textClass=I(o.styleClasses.textClass,i.textClass||"")}if(i.map.length==0)i.map.push(0,0,i.content.appendChild(Ne(e.display.measure)));if(r==0){t.measure.map=i.map;t.measure.cache={}}else{(t.measure.maps||(t.measure.maps=[])).push(i.map);(t.measure.caches||(t.measure.caches=[])).push({})}}if(g){var l=i.content.lastChild;if(/\bcm-tab\b/.test(l.className)||l.querySelector&&l.querySelector(".cm-tab"))i.content.className="cm-tab-wrap-hack"}ve(e,"renderLine",e,t.line,i.pre);if(i.pre.className)i.textClass=I(i.pre.className,i.textClass||"");return i}function mn(e){var t=N("span","•","cm-invalidchar");t.title="\\u"+e.charCodeAt(0).toString(16);t.setAttribute("aria-label",t.title);return t}function gn(e,t,n,i,r,o,a){if(!t)return;var s=e.splitSpaces?vn(t,e.trailingSpace):t;var l=e.cm.state.specialChars,u=false;var c;if(!l.test(t)){e.col+=t.length;c=document.createTextNode(s);e.map.push(e.pos,e.pos+t.length,c);if(S&&w<9)u=true;e.pos+=t.length}else{c=document.createDocumentFragment();var f=0;while(true){l.lastIndex=f;var d=l.exec(t);var h=d?d.index-f:t.length-f;if(h){var p=document.createTextNode(s.slice(f,f+h));if(S&&w<9)c.appendChild(N("span",[p]));else c.appendChild(p);e.map.push(e.pos,e.pos+h,p);e.col+=h;e.pos+=h}if(!d)break;f+=h+1;var m=void 0;if(d[0]=="\t"){var g=e.cm.options.tabSize,v=g-e.col%g;m=c.appendChild(N("span",X(v),"cm-tab"));m.setAttribute("role","presentation");m.setAttribute("cm-text","\t");e.col+=v}else if(d[0]=="\r"||d[0]=="\n"){m=c.appendChild(N("span",d[0]=="\r"?"␍":"","cm-invalidchar"));m.setAttribute("cm-text",d[0]);e.col+=1}else{m=e.cm.options.specialCharPlaceholder(d[0]);m.setAttribute("cm-text",d[0]);if(S&&w<9)c.appendChild(N("span",[m]));else c.appendChild(m);e.col+=1}e.map.push(e.pos,e.pos+1,m);e.pos++}}e.trailingSpace=s.charCodeAt(t.length-1)==32;if(n||i||r||u||o||a){var y=n||"";if(i)y+=i;if(r)y+=r;var x=N("span",[c],y,o);if(a)for(var b in a)if(a.hasOwnProperty(b)&&b!="style"&&b!="class")x.setAttribute(b,a[b]);return e.content.appendChild(x)}e.content.appendChild(c)}function vn(e,t){if(e.length>1&&!/ /.test(e))return e;var n=t,i="";for(var r=0;rs&&u.from<=s)break}if(u.to>=l)return f(e,t,n,i,r,o,a);f(e,t.slice(0,u.to-s),n,i,null,o,a);i=null;t=t.slice(u.to-s);s=u.to}}}function xn(e,t,n,i){var r=!i&&n.widgetNode;if(r)e.map.push(e.pos,e.pos+t,r);if(!i&&e.cm.display.input.needsContentAttribute){if(!r)r=e.content.appendChild(document.createElement("span"));r.setAttribute("cm-marker",n.id)}if(r){e.cm.display.input.setUneditable(r);e.content.appendChild(r)}e.pos+=t;e.trailingSpace=false}function bn(e,t,n){var i=e.markedSpans,r=e.text,o=0;if(!i){for(var a=1;al||C.collapsed&&k.to==l&&k.from==l)){if(k.to!=null&&k.to!=l&&h>k.to){h=k.to;m=""}if(C.className)p+=" "+C.className;if(C.css)d=(d?d+";":"")+C.css;if(C.startStyle&&k.from==l)g+=" "+C.startStyle;if(C.endStyle&&k.to==h)(b||(b=[])).push(C.endStyle,k.to);if(C.title)(y||(y={})).title=C.title;if(C.attributes)for(var S in C.attributes)(y||(y={}))[S]=C.attributes[S];if(C.collapsed&&(!v||qt(v.marker,C)<0))v=k}else if(k.from>l&&h>k.from)h=k.from}if(b)for(var L=0;L=s)break;var M=Math.min(s,h);while(true){if(c){var T=l+c.length;if(!v){var D=T>M?c.slice(0,M-l):c;t.addToken(t,D,f?f+p:p,g,l+D.length==h?m:"",d,y)}if(T>=M){c=c.slice(M-l);l=M;break}l=T;g=""}c=r.slice(o,o=n[u++]);f=hn(n[u++],t.cm.options)}}}function wn(e,t,n){this.line=t;this.rest=Jt(t);this.size=this.rest?et(V(this.rest))-n+1:1;this.node=this.text=null;this.hidden=nn(e,t)}function kn(e,t,n){var i=[],r;for(var o=t;o2)o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Qn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var i=0;in)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:true}}function Zn(e,t){t=Qt(t);var n=et(t);var i=e.display.externalMeasured=new wn(e.doc,t,n);i.lineN=n;var r=i.built=pn(e,i);i.text=r.pre;T(e.display.lineMeasure,r.pre);return i}function Jn(e,t,n,i){return ni(e,ti(e,t),n,i)}function ei(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt){o=l-s;r=o-1;if(t>=l)a="right"}if(r!=null){i=e[u+2];if(s==l&&n==(i.insertLeft?"left":"right"))a=n;if(n=="left"&&r==0)while(u&&e[u-2]==e[u-3]&&e[u-1].insertLeft){i=e[(u-=3)+2];a="left"}if(n=="right"&&r==l-s)while(u=0;r--)if((n=e[r]).left!=n.right)break;return n}function si(e,t,n,i){var r=oi(t.map,n,i);var o=r.node,a=r.start,s=r.end,l=r.collapse;var u;if(o.nodeType==3){for(var c=0;c<4;c++){while(a&&oe(t.line.text.charAt(r.coverStart+a)))--a;while(r.coverStart+s0)l=i="right";var f;if(e.options.lineWrapping&&(f=o.getClientRects()).length>1)u=f[i=="right"?f.length-1:0];else u=o.getBoundingClientRect()}if(S&&w<9&&!a&&(!u||!u.left&&!u.right)){var d=o.parentNode.getClientRects()[0];if(d)u={left:d.left,right:d.left+Di(e.display),top:d.top,bottom:d.bottom};else u=ii}var h=u.top-t.rect.top,p=u.bottom-t.rect.top;var m=(h+p)/2;var g=t.view.measure.heights;var v=0;for(;v=o.text.length){t=o.text.length;n="before"}else if(t<=0){t=0;n="after"}if(!u)return l(n=="before"?t-1:t,n=="before");function c(e,t,n){var i=u[t],r=i.level==1;return l(n?e-1:e,r!=n)}var f=ce(u,t,n);var d=ue;var h=c(t,f,n=="before");if(d!=null)h.other=c(t,d,n!="before");return h}function xi(e,t){var n=0;t=ft(e.doc,t);if(!e.options.lineWrapping)n=Di(e.display)*t.ch;var i=Ke(e.doc,t.line);var r=on(i)+Yn(e.display);return{left:n,right:n,top:r,bottom:r+i.height}}function bi(e,t,n,i,r){var o=rt(e,t,n);o.xRel=r;if(i)o.outside=i;return o}function wi(e,t,n){var i=e.doc;n+=e.display.viewOffset;if(n<0)return bi(i.first,0,null,-1,-1);var r=tt(i,n),o=i.first+i.size-1;if(r>o)return bi(i.first+i.size-1,Ke(i,o).text.length,null,1,1);if(t<0)t=0;var a=Ke(i,r);for(;;){var s=Li(e,a,r,t,n);var l=Vt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==r)return u;a=Ke(i,r=u.line)}}function ki(t,e,n,i){i-=pi(e);var r=e.text.length;var o=se(function(e){return ni(t,n,e-1).bottom<=i},r,0);r=se(function(e){return ni(t,n,e).top>i},o,r);return{begin:o,end:r}}function Ci(e,t,n,i){if(!n)n=ti(e,t);var r=mi(e,t,ni(e,n,i),"line").top;return ki(e,t,n,r)}function Si(e,t,n,i){return e.bottom<=n?false:e.top>n?true:(i?e.left:e.right)>t}function Li(n,e,t,i,r){r-=on(e);var o=ti(n,e);var a=pi(e);var s=0,l=e.text.length,u=true;var c=de(e,n.doc.direction);if(c){var f=(n.options.lineWrapping?Mi:Ei)(n,e,t,o,c,i,r);u=f.level!=1;s=u?f.from:f.to-1;l=u?f.to:f.from-1}var d=null,h=null;var p=se(function(e){var t=ni(n,o,e);t.top+=a;t.bottom+=a;if(!Si(t,i,r,false))return false;if(t.top<=r&&t.left<=i){d=e;h=t}return true},s,l);var m,g,v=false;if(h){var y=i-h.left=b.bottom?1:0}p=ae(e.text,p,1);return bi(t,p,g,v,i-m)}function Ei(i,r,o,a,s,l,u){var e=se(function(e){var t=s[e],n=t.level!=1;return Si(yi(i,rt(o,n?t.to:t.from,n?"before":"after"),"line",r,a),l,u,true)},0,s.length-1);var t=s[e];if(e>0){var n=t.level!=1;var c=yi(i,rt(o,n?t.from:t.to,n?"after":"before"),"line",r,a);if(Si(c,l,u,true)&&c.top>u)t=s[e-1]}return t}function Mi(e,t,n,i,r,o,a){var s=ki(e,t,i,a);var l=s.begin;var u=s.end;if(/\s/.test(t.text.charAt(u-1)))u--;var c=null,f=null;for(var d=0;d=u||h.to<=l)continue;var p=h.level!=1;var m=ni(e,i,p?Math.min(u,h.to)-1:Math.max(l,h.from)).right;var g=mg){c=h;f=g}}if(!c)c=r[r.length-1];if(c.fromu)c={from:c.from,to:u,level:c.level};return c}function Ti(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(ri==null){ri=N("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t){ri.appendChild(document.createTextNode("x"));ri.appendChild(N("br"))}ri.appendChild(document.createTextNode("x"))}T(e.measure,ri);var n=ri.offsetHeight/50;if(n>3)e.cachedTextHeight=n;M(e.measure);return n||1}function Di(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=N("span","xxxxxxxxxx");var n=N("pre",[t],"CodeMirror-line-like");T(e.measure,n);var i=t.getBoundingClientRect(),r=(i.right-i.left)/10;if(r>2)e.cachedCharWidth=r;return r||10}function Ai(e){var t=e.display,n={},i={};var r=t.gutters.clientLeft;for(var o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+r;i[s]=o.clientWidth}return{fixedPos:Ni(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:i,wrapperWidth:t.wrapper.clientWidth}}function Ni(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Oi(i){var r=Ti(i.display),o=i.options.lineWrapping;var a=o&&Math.max(5,i.display.scroller.clientWidth/Di(i.display)-3);return function(e){if(nn(i.doc,e))return 0;var t=0;if(e.widgets)for(var n=0;n0&&(u=Ke(e.doc,l.line).text).length==l.ch){var c=$(u,u.length,e.options.tabSize)-u.length;l=rt(l.line,Math.max(0,Math.round((o-Un(e.display).left)/Di(e.display))-c))}return l}function Pi(e,t){if(t>=e.display.viewTo)return null;t-=e.display.viewFrom;if(t<0)return null;var n=e.display.view;for(var i=0;it))r.updateLineNumbers=t;e.curOp.viewChanged=true;if(t>=r.viewTo){if(Dt&&en(e.doc,t)r.viewFrom)$i(e);else{r.viewFrom+=i;r.viewTo+=i}else if(t<=r.viewFrom&&n>=r.viewTo)$i(e);else if(t<=r.viewFrom){var o=Bi(e,n,n+i,1);if(o){r.view=r.view.slice(o.index);r.viewFrom=o.lineN;r.viewTo+=i}else $i(e)}else if(n>=r.viewTo){var a=Bi(e,t,t,-1);if(a){r.view=r.view.slice(0,a.index);r.viewTo=a.lineN}else $i(e)}else{var s=Bi(e,t,t,-1);var l=Bi(e,n,n+i,1);if(s&&l){r.view=r.view.slice(0,s.index).concat(kn(e,s.lineN,l.lineN)).concat(r.view.slice(l.index));r.viewTo+=i}else $i(e)}var u=r.externalMeasured;if(u)if(n=r.lineN&&t=i.viewTo)return;var o=i.view[Pi(e,t)];if(o.node==null)return;var a=o.changes||(o.changes=[]);if(W(a,n)==-1)a.push(n)}function $i(e){e.display.viewFrom=e.display.viewTo=e.doc.first;e.display.view=[];e.display.viewOffset=0}function Bi(e,t,n,i){var r=Pi(e,t),o,a=e.display.view;if(!Dt||n==e.doc.first+e.doc.size)return{index:r,lineN:n};var s=e.display.viewFrom;for(var l=0;l0){if(r==a.length-1)return null;o=s+a[r].size-t;r++}else o=s-t;t+=o;n+=o}while(en(e.doc,n)!=n){if(r==(i<0?0:a.length-1))return null;n+=i*a[r-(i<0?1:0)].size;r+=i}return{index:r,lineN:n}}function Wi(e,t,n){var i=e.display,r=i.view;if(r.length==0||t>=i.viewTo||n<=i.viewFrom){i.view=kn(e,t,n);i.viewFrom=t}else{if(i.viewFrom>t)i.view=kn(e,t,i.viewFrom).concat(i.view);else if(i.viewFromn)i.view=i.view.slice(0,Pi(e,n))}i.viewTo=n}function Ri(e){var t=e.display.view,n=0;for(var i=0;i=e.display.viewTo||s.to().line0)t.blinker=setInterval(function(){if(!e.hasFocus())Qi(e);t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate);else if(e.options.cursorBlinkRate<0)t.cursorDiv.style.visibility="hidden"}function Xi(e){if(!e.hasFocus()){e.display.input.focus();if(!e.state.focused)Ki(e)}}function Vi(e){e.state.delayingBlurEvent=true;setTimeout(function(){if(e.state.delayingBlurEvent){e.state.delayingBlurEvent=false;if(e.state.focused)Qi(e)}},100)}function Ki(e,t){if(e.state.delayingBlurEvent&&!e.state.draggingText)e.state.delayingBlurEvent=false;if(e.options.readOnly=="nocursor")return;if(!e.state.focused){ve(e,"focus",e,t);e.state.focused=true;F(e.display.wrapper,"CodeMirror-focused");if(!e.curOp&&e.display.selForContextMenu!=e.doc.sel){e.display.input.reset();if(g)setTimeout(function(){return e.display.input.reset(true)},20)}e.display.input.receivedFocus()}Gi(e)}function Qi(e,t){if(e.state.delayingBlurEvent)return;if(e.state.focused){ve(e,"blur",e,t);e.state.focused=false;L(e.display.wrapper,"CodeMirror-focused")}clearInterval(e.display.blinker);setTimeout(function(){if(!e.state.focused)e.display.shift=false},150)}function Zi(e){var t=e.display;var n=t.lineDiv.offsetTop;for(var i=0;i.005||c<-.005){Je(r.line,a);Ji(r.line);if(r.rest)for(var f=0;fe.display.sizerWidth){var d=Math.ceil(s/Di(e.display));if(d>e.display.maxLineLength){e.display.maxLineLength=d;e.display.maxLine=r.line;e.display.maxLineChanged=true}}}}function Ji(e){if(e.widgets)for(var t=0;t=a){o=tt(t,on(Ke(t,l))-e.wrapper.clientHeight);a=l}}return{from:o,to:Math.max(a,o+1)}}function tr(e,t){if(ye(e,"scrollCursorIntoView"))return;var n=e.display,i=n.sizer.getBoundingClientRect(),r=null;if(t.top+i.top<0)r=true;else if(t.bottom+i.top>(window.innerHeight||document.documentElement.clientHeight))r=false;if(r!=null&&!l){var o=N("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Yn(e.display))+"px;\n height: "+(t.bottom-t.top+Gn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o);o.scrollIntoView(r);e.display.lineSpace.removeChild(o)}}function nr(e,t,n,i){if(i==null)i=0;var r;if(!e.options.lineWrapping&&t==n){t=t.ch?rt(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t;n=t.sticky=="before"?rt(t.line,t.ch+1,"before"):t}for(var o=0;o<5;o++){var a=false;var s=yi(e,t);var l=!n||n==t?s:yi(e,n);r={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-i,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+i};var u=rr(e,r);var c=e.doc.scrollTop,f=e.doc.scrollLeft;if(u.scrollTop!=null){fr(e,u.scrollTop);if(Math.abs(e.doc.scrollTop-c)>1)a=true}if(u.scrollLeft!=null){hr(e,u.scrollLeft);if(Math.abs(e.doc.scrollLeft-f)>1)a=true}if(!a)break}return r}function ir(e,t){var n=rr(e,t);if(n.scrollTop!=null)fr(e,n.scrollTop);if(n.scrollLeft!=null)hr(e,n.scrollLeft)}function rr(e,t){var n=e.display,i=Ti(e.display);if(t.top<0)t.top=0;var r=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:n.scroller.scrollTop;var o=Vn(e),a={};if(t.bottom-t.top>o)t.bottom=t.top+o;var s=e.doc.height+qn(n);var l=t.tops-i;if(t.topr+o){var c=Math.min(t.top,(u?s:t.bottom)-o);if(c!=r)a.scrollTop=c}var f=e.options.fixedGutter?0:n.gutters.offsetWidth;var d=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:n.scroller.scrollLeft-f;var h=Xn(e)-n.gutters.offsetWidth;var p=t.right-t.left>h;if(p)t.right=t.left+h;if(t.left<10)a.scrollLeft=0;else if(t.lefth+d-3)a.scrollLeft=t.right+(p?0:10)-h;return a}function or(e,t){if(t==null)return;ur(e);e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function ar(e){ur(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function sr(e,t,n){if(t!=null||n!=null)ur(e);if(t!=null)e.curOp.scrollLeft=t;if(n!=null)e.curOp.scrollTop=n}function lr(e,t){ur(e);e.curOp.scrollToPos=t}function ur(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=xi(e,t.from),i=xi(e,t.to);cr(e,n,i,t.margin)}}function cr(e,t,n,i){var r=rr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-i,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+i});sr(e,r.scrollLeft,r.scrollTop)}function fr(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;if(!m)_r(e,{top:t});dr(e,t,true);if(m)_r(e);Ir(e,100)}function dr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t));if(e.display.scroller.scrollTop==t&&!n)return;e.doc.scrollTop=t;e.display.scrollbars.setScrollTop(t);if(e.display.scroller.scrollTop!=t)e.display.scroller.scrollTop=t}function hr(e,t,n,i){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth));if((n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!i)return;e.doc.scrollLeft=t;Ur(e);if(e.display.scroller.scrollLeft!=t)e.display.scroller.scrollLeft=t;e.display.scrollbars.setScrollLeft(t)}function pr(e){var t=e.display,n=t.gutters.offsetWidth;var i=Math.round(e.doc.height+qn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:i,scrollHeight:i+Gn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var mr=function(e,t,n){this.cm=n;var i=this.vert=N("div",[N("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar");var r=this.horiz=N("div",[N("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=r.tabIndex=-1;e(i);e(r);pe(i,"scroll",function(){if(i.clientHeight)t(i.scrollTop,"vertical")});pe(r,"scroll",function(){if(r.clientWidth)t(r.scrollLeft,"horizontal")});this.checkedZeroWidth=false;if(S&&w<8)this.horiz.style.minHeight=this.vert.style.minWidth="18px"};mr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1;var n=e.scrollHeight>e.clientHeight+1;var i=e.nativeBarWidth;if(n){this.vert.style.display="block";this.vert.style.bottom=t?i+"px":"0";var r=e.viewHeight-(t?i:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+r)+"px"}else{this.vert.style.display="";this.vert.firstChild.style.height="0"}if(t){this.horiz.style.display="block";this.horiz.style.right=n?i+"px":"0";this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?i:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else{this.horiz.style.display="";this.horiz.firstChild.style.width="0"}if(!this.checkedZeroWidth&&e.clientHeight>0){if(i==0)this.zeroWidthHack();this.checkedZeroWidth=true}return{right:n?i:0,bottom:t?i:0}},mr.prototype.setScrollLeft=function(e){if(this.horiz.scrollLeft!=e)this.horiz.scrollLeft=e;if(this.disableHoriz)this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},mr.prototype.setScrollTop=function(e){if(this.vert.scrollTop!=e)this.vert.scrollTop=e;if(this.disableVert)this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},mr.prototype.zeroWidthHack=function(){var e=y&&!s?"12px":"18px";this.horiz.style.height=this.vert.style.width=e;this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none";this.disableHoriz=new B;this.disableVert=new B},mr.prototype.enableZeroWidthBar=function(n,i,r){n.style.pointerEvents="auto";function o(){var e=n.getBoundingClientRect();var t=r=="vert"?document.elementFromPoint(e.right-1,(e.top+e.bottom)/2):document.elementFromPoint((e.right+e.left)/2,e.bottom-1);if(t!=n)n.style.pointerEvents="none";else i.set(1e3,o)}i.set(1e3,o)},mr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz);e.removeChild(this.vert)};var gr=function(){};function vr(e,t){if(!t)t=pr(e);var n=e.display.barWidth,i=e.display.barHeight;yr(e,t);for(var r=0;r<4&&n!=e.display.barWidth||i!=e.display.barHeight;r++){if(n!=e.display.barWidth&&e.options.lineWrapping)Zi(e);yr(e,pr(e));n=e.display.barWidth;i=e.display.barHeight}}function yr(e,t){var n=e.display;var i=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=i.right)+"px";n.sizer.style.paddingBottom=(n.barHeight=i.bottom)+"px";n.heightForcer.style.borderBottom=i.bottom+"px solid transparent";if(i.right&&i.bottom){n.scrollbarFiller.style.display="block";n.scrollbarFiller.style.height=i.bottom+"px";n.scrollbarFiller.style.width=i.right+"px"}else n.scrollbarFiller.style.display="";if(i.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter){n.gutterFiller.style.display="block";n.gutterFiller.style.height=i.bottom+"px";n.gutterFiller.style.width=t.gutterWidth+"px"}else n.gutterFiller.style.display=""}gr.prototype.update=function(){return{bottom:0,right:0}},gr.prototype.setScrollLeft=function(){},gr.prototype.setScrollTop=function(){},gr.prototype.clear=function(){};var xr={native:mr,null:gr};function br(n){if(n.display.scrollbars){n.display.scrollbars.clear();if(n.display.scrollbars.addClass)L(n.display.wrapper,n.display.scrollbars.addClass)}n.display.scrollbars=new xr[n.options.scrollbarStyle](function(e){n.display.wrapper.insertBefore(e,n.display.scrollbarFiller);pe(e,"mousedown",function(){if(n.state.focused)setTimeout(function(){return n.display.input.focus()},0)});e.setAttribute("cm-not-content","true")},function(e,t){if(t=="horizontal")hr(n,e);else fr(n,e)},n);if(n.display.scrollbars.addClass)F(n.display.wrapper,n.display.scrollbars.addClass)}var wr=0;function kr(e){e.curOp={cm:e,viewChanged:false,startHeight:e.doc.height,forceUpdate:false,updateInput:0,typing:false,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:false,updateMaxLine:false,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:false,id:++wr};Sn(e.curOp)}function Cr(e){var t=e.curOp;if(t)En(t,function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping;e.update=e.mustUpdate&&new zr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Er(e){e.updatedDisplay=e.mustUpdate&&Wr(e.cm,e.update)}function Mr(e){var t=e.cm,n=t.display;if(e.updatedDisplay)Zi(t);e.barMeasure=pr(t);if(n.maxLineChanged&&!t.options.lineWrapping){e.adjustWidthTo=Jn(t,n.maxLine,n.maxLine.text.length).left+3;t.display.sizerWidth=e.adjustWidthTo;e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Gn(t)+t.display.barWidth);e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Xn(t))}if(e.updatedDisplay||e.selectionChanged)e.preparedSelection=n.input.prepareSelection()}function Tr(e){var t=e.cm;if(e.adjustWidthTo!=null){t.display.sizer.style.minWidth=e.adjustWidthTo+"px";if(e.maxScrollLeft=l.display.viewTo)return;var c=+new Date+l.options.workTime;var f=yt(l,u.highlightFrontier);var d=[];u.iter(f.line,Math.min(u.first+u.size,l.display.viewTo+500),function(e){if(f.line>=l.display.viewFrom){var t=e.styles;var n=e.text.length>l.options.maxHighlightLength?Ue(u.mode,f.state):null;var i=gt(l,e,f,true);if(n)f.state=n;e.styles=i.styles;var r=e.styleClasses,o=i.classes;if(o)e.styleClasses=o;else if(r)e.styleClasses=null;var a=!t||t.length!=e.styles.length||r!=o&&(!r||!o||r.bgClass!=o.bgClass||r.textClass!=o.textClass);for(var s=0;!a&&sc){Ir(l,l.options.workDelay);return true}});u.highlightFrontier=f.line;u.modeFrontier=Math.max(u.modeFrontier,f.line);if(d.length)Ar(l,function(){for(var e=0;e=n.viewFrom&&t.visible.to<=n.viewTo&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&Ri(e)==0)return false;if(Gr(e)){$i(e);t.dims=Ai(e)}var r=i.first+i.size;var o=Math.max(t.visible.from-e.options.viewportMargin,i.first);var a=Math.min(r,t.visible.to+e.options.viewportMargin);if(n.viewFroma&&n.viewTo-a<20)a=Math.min(r,n.viewTo);if(Dt){o=en(e.doc,o);a=tn(e.doc,a)}var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Wi(e,o,a);n.viewOffset=on(Ke(e.doc,n.viewFrom));e.display.mover.style.top=n.viewOffset+"px";var l=Ri(e);if(!s&&l==0&&!t.force&&n.renderedView==n.view&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo))return false;var u=$r(e);if(l>4)n.lineDiv.style.display="none";jr(e,n.updateLineNumbers,t.dims);if(l>4)n.lineDiv.style.display="";n.renderedView=n.view;Br(u);M(n.cursorDiv);M(n.selectionDiv);n.gutters.style.height=n.sizer.style.minHeight=0;if(s){n.lastWrapHeight=t.wrapperHeight;n.lastWrapWidth=t.wrapperWidth;Ir(e,400)}n.updateLineNumbers=null;return true}function Rr(e,t){var n=t.viewport;for(var i=true;;i=false){if(!i||!e.options.lineWrapping||t.oldDisplayWidth==Xn(e)){if(n&&n.top!=null)n={top:Math.min(e.doc.height+qn(e.display)-Vn(e),n.top)};t.visible=er(e.display,e.doc,n);if(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else if(i)t.visible=er(e.display,e.doc,n);if(!Wr(e,t))break;Zi(e);var r=pr(e);_i(e);vr(e,r);qr(e,r);t.force=false}t.signal(e,"update",e);if(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo){t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo);e.display.reportedViewFrom=e.display.viewFrom;e.display.reportedViewTo=e.display.viewTo}}function _r(e,t){var n=new zr(e,t);if(Wr(e,n)){Zi(e);Rr(e,n);var i=pr(e);_i(e);vr(e,i);qr(e,i);n.finish()}}function jr(n,e,t){var i=n.display,r=n.options.lineNumbers;var o=i.lineDiv,a=o.firstChild;function s(e){var t=e.nextSibling;if(g&&y&&n.display.currentWheelTarget==e)e.style.display="none";else e.parentNode.removeChild(e);return t}var l=i.view,u=i.viewFrom;for(var c=0;c-1)h=false;An(n,f,u,t)}if(h){M(f.lineNumber);f.lineNumber.appendChild(document.createTextNode(it(n.options,u)))}a=f.node.nextSibling}u+=f.size}while(a)a=s(a)}function Yr(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function qr(e,t){e.display.sizer.style.minHeight=t.docHeight+"px";e.display.heightForcer.style.top=t.docHeight+"px";e.display.gutters.style.height=t.docHeight+e.display.barHeight+Gn(e)+"px"}function Ur(e){var t=e.display,n=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;var i=Ni(t)-t.scroller.scrollLeft+e.doc.scrollLeft;var r=t.gutters.offsetWidth,o=i+"px";for(var a=0;aa.clientWidth;var l=a.scrollHeight>a.clientHeight;if(!(i&&s||r&&l))return;if(r&&y&&g)e:for(var u=t.target,c=o.view;u!=a;u=u.parentNode)for(var f=0;f=0&&ot(e,i.to())<=0)return n}return-1};var ro=function(e,t){this.anchor=e;this.head=t};function oo(e,t,n){var i=e&&e.options.selectionsMayTouch;var r=t[n];t.sort(function(e,t){return ot(e.from(),t.from())});n=W(t,r);for(var o=1;o0:l>=0){var u=ut(s.from(),a.from()),c=lt(s.to(),a.to());var f=s.empty()?a.from()==a.head:s.from()==s.head;if(o<=n)--n;t.splice(--o,2,new ro(f?c:u,f?u:c))}}return new io(t,n)}function ao(e,t){return new io([new ro(e,t||e)],0)}function so(e){if(!e.text)return e.to;return rt(e.from.line+e.text.length-1,V(e.text).length+(e.text.length==1?e.from.ch:0))}function lo(e,t){if(ot(e,t.from)<0)return e;if(ot(e,t.to)<=0)return so(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,i=e.ch;if(e.line==t.to.line)i+=so(t).ch-t.to.ch;return rt(n,i)}function uo(e,t){var n=[];for(var i=0;i1)e.remove(s.line+1,p-1);e.insert(s.line+1,v)}Tn(e,"change",e,i)}function vo(e,a,s){function l(e,t,n){if(e.linked)for(var i=0;i1&&!e.done[e.done.length-2].ranges){e.done.pop();return V(e.done)}}function Lo(e,t,n,i){var r=e.history;r.undone.length=0;var o=+new Date,a;var s;if((r.lastOp==i||r.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&r.lastModTime>o-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(a=So(r,r.lastOp==i))){s=V(a.changes);if(ot(t.from,t.to)==0&&ot(t.from,s.to)==0)s.to=so(t);else a.changes.push(ko(e,t))}else{var l=V(r.done);if(!l||!l.ranges)To(e.sel,r.done);a={changes:[ko(e,t)],generation:r.generation};r.done.push(a);while(r.done.length>r.undoDepth){r.done.shift();if(!r.done[0].ranges)r.done.shift()}}r.done.push(n);r.generation=++r.maxGeneration;r.lastModTime=r.lastSelTime=o;r.lastOp=r.lastSelOp=i;r.lastOrigin=r.lastSelOrigin=t.origin;if(!s)ve(e,"historyAdded")}function Eo(e,t,n,i){var r=t.charAt(0);return r=="*"||r=="+"&&n.ranges.length==i.ranges.length&&n.somethingSelected()==i.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Mo(e,t,n,i){var r=e.history,o=i&&i.origin;if(n==r.lastSelOp||o&&r.lastSelOrigin==o&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==o||Eo(e,o,V(r.done),t)))r.done[r.done.length-1]=t;else To(t,r.done);r.lastSelTime=+new Date;r.lastSelOrigin=o;r.lastSelOp=n;if(i&&i.clearRedo!==false)Co(r.undone)}function To(e,t){var n=V(t);if(!(n&&n.ranges&&n.equals(e)))t.push(e)}function Do(t,n,e,i){var r=n["spans_"+t.id],o=0;t.iter(Math.max(t.first,e),Math.min(t.first+t.size,i),function(e){if(e.markedSpans)(r||(r=n["spans_"+t.id]={}))[o]=e.markedSpans;++o})}function Ao(e){if(!e)return null;var t;for(var n=0;n-1){V(s)[f]=u[f];delete u[f]}}}return i}function Io(e,t,n,i){if(i){var r=e.anchor;if(n){var o=ot(t,r)<0;if(o!=ot(n,r)<0){r=t;t=n}else if(o!=ot(t,n)<0)t=n}return new ro(r,t)}else return new ro(n||t,t)}function Po(e,t,n,i,r){if(r==null)r=e.cm&&(e.cm.display.shift||e.extend);Ro(e,new io([Io(e.sel.primary(),t,n,r)],0),i)}function zo(e,t,n){var i=[];var r=e.cm&&(e.cm.display.shift||e.extend);for(var o=0;o=t.ch:s.to>t.ch))){if(r){ve(l,"beforeCursorEnter");if(l.explicitlyCleared)if(!o.markedSpans)break;else{--a;continue}}if(!l.atomic)continue;if(n){var f=l.find(i<0?1:-1),d=void 0;if(i<0?c:u)f=Xo(e,f,-i,f&&f.line==t.line?o:null);if(f&&f.line==t.line&&(d=ot(f,n))&&(i<0?d<0:d>0))return Uo(e,f,t,i,r)}var h=l.find(i<0?-1:1);if(i<0?u:c)h=Xo(e,h,i,h.line==t.line?o:null);return h?Uo(e,h,t,i,r):null}}return t}function Go(e,t,n,i,r){var o=i||1;var a=Uo(e,t,n,o,r)||!r&&Uo(e,t,n,o,true)||Uo(e,t,n,-o,r)||!r&&Uo(e,t,n,-o,true);if(!a){e.cantEdit=true;return rt(e.first,0)}return a}function Xo(e,t,n,i){if(n<0&&t.ch==0)if(t.line>e.first)return ft(e,rt(t.line-1));else return null;else if(n>0&&t.ch==(i||Ke(e,t.line)).text.length)if(t.line=0;--r)Zo(e,{from:i[r].from,to:i[r].to,text:r?[""]:t.text,origin:t.origin});else Zo(e,t)}function Zo(e,n){if(n.text.length==1&&n.text[0]==""&&ot(n.from,n.to)==0)return;var t=uo(e,n);Lo(e,n,t,e.cm?e.cm.curOp.id:NaN);ta(e,n,t,$t(e,n));var i=[];vo(e,function(e,t){if(!t&&W(i,e.history)==-1){aa(e.history,n);i.push(e.history)}ta(e,n,null,$t(e,n))})}function Jo(r,o,e){var t=r.cm&&r.cm.state.suppressEdits;if(t&&!e)return;var n=r.history,a,i=r.sel;var s=o=="undo"?n.done:n.undone,l=o=="undo"?n.undone:n.done;var u=0;for(;u=0;--h){var p=d(h);if(p)return p.v}}function ea(e,t){if(t==0)return;e.first+=t;e.sel=new io(K(e.sel.ranges,function(e){return new ro(rt(e.anchor.line+t,e.anchor.ch),rt(e.head.line+t,e.head.ch))}),e.sel.primIndex);if(e.cm){zi(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,i=n.viewFrom;ie.lastLine())return;if(t.from.lineo)t={from:t.from,to:rt(o,Ke(e,o).text.length),text:[t.text[0]],origin:t.origin};t.removed=Qe(e,t.from,t.to);if(!n)n=uo(e,t);if(e.cm)na(e.cm,t,i);else go(e,t,i);_o(e,n,j);if(e.cantEdit&&Go(e,rt(e.firstLine(),0)))e.cantEdit=false}function na(e,t,n){var i=e.doc,r=e.display,o=t.from,a=t.to;var s=false,l=o.line;if(!e.options.lineWrapping){l=et(Qt(Ke(i,o.line)));i.iter(l,a.line+1,function(e){if(e==r.maxLine){s=true;return true}})}if(i.sel.contains(t.from,t.to)>-1)xe(e);go(i,t,n,Oi(e));if(!e.options.lineWrapping){i.iter(l,o.line+t.text.length,function(e){var t=an(e);if(t>r.maxLineLength){r.maxLine=e;r.maxLineLength=t;r.maxLineChanged=true;s=false}});if(s)e.curOp.updateMaxLine=true}Mt(i,o.line);Ir(e,400);var u=t.text.length-(a.line-o.line)-1;if(t.full)zi(e);else if(o.line==a.line&&t.text.length==1&&!mo(e.doc,t))Hi(e,o.line,"text");else zi(e,o.line,a.line+1,u);var c=be(e,"changes"),f=be(e,"change");if(f||c){var d={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};if(f)Tn(e,"change",e,d);if(c)(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function ia(e,t,n,i,r){var o;if(!i)i=n;if(ot(i,n)<0)o=[i,n],n=o[0],i=o[1];if(typeof t=="string")t=e.splitLines(t);Qo(e,{from:n,to:i,text:t,origin:r})}function ra(e,t,n,i){if(n1||!(this.children[0]instanceof la))){var s=[];this.collapse(s);this.children=[new la(s)];this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){var a=r.lines.length%25+25;for(var s=a;s10);e.parent.maybeSpill()},iterN:function(e,t,n){for(var i=0;i0||a==0&&o.clearWhenEmpty!==false)return o;if(o.replacedWith){o.collapsed=true;o.widgetNode=D("span",[o.replacedWith],"CodeMirror-widget");if(!e.handleMouseEvents)o.widgetNode.setAttribute("cm-ignore-events","true");if(e.insertLeft)o.widgetNode.insertLeft=true}if(o.collapsed){if(Kt(t,n.line,n,i,o)||n.line!=i.line&&Kt(t,i.line,n,i,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Nt()}if(o.addToHistory)Lo(t,{from:n,to:i,origin:"markText"},t.sel,NaN);var s=n.line,l=t.cm,u;t.iter(s,i.line+1,function(e){if(l&&o.collapsed&&!l.options.lineWrapping&&Qt(e)==l.display.maxLine)u=true;if(o.collapsed&&s!=n.line)Je(e,0);Pt(e,new Ot(o,s==n.line?n.ch:null,s==i.line?i.ch:null));++s});if(o.collapsed)t.iter(n.line,i.line+1,function(e){if(nn(t,e))Je(e,0)});if(o.clearOnEnter)pe(o,"beforeCursorEnter",function(){return o.clear()});if(o.readOnly){At();if(t.history.done.length||t.history.undone.length)t.clearHistory()}if(o.collapsed){o.id=++ha;o.atomic=true}if(l){if(u)l.curOp.updateMaxLine=true;if(o.collapsed)zi(l,n.line,i.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=n.line;c<=i.line;c++)Hi(l,c,"text");if(o.atomic)Yo(l.doc);Tn(l,"markerAdded",l,o)}return o}pa.prototype.clear=function(){if(this.explicitlyCleared)return;var e=this.doc.cm,t=e&&!e.curOp;if(t)kr(e);if(be(this,"clear")){var n=this.find();if(n)Tn(this,"clear",n.from,n.to)}var i=null,r=null;for(var o=0;oe.display.maxLineLength){e.display.maxLine=u;e.display.maxLineLength=c;e.display.maxLineChanged=true}}if(i!=null&&e&&this.collapsed)zi(e,i,r+1);this.lines.length=0;this.explicitlyCleared=true;if(this.atomic&&this.doc.cantEdit){this.doc.cantEdit=false;if(e)Yo(e.doc)}if(e)Tn(e,"markerCleared",e,this,i,r);if(t)Cr(e);if(this.parent)this.parent.clear()},pa.prototype.find=function(e,t){if(e==null&&this.type=="bookmark")e=1;var n,i;for(var r=0;r=0;l--)Qo(this,i[l]);if(s)Wo(this,s);else if(this.cm)ar(this.cm)}),undo:Fr(function(){Jo(this,"undo")}),redo:Fr(function(){Jo(this,"redo")}),undoSelection:Fr(function(){Jo(this,"undo",true)}),redoSelection:Fr(function(){Jo(this,"redo",true)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){var e=this.history,t=0,n=0;for(var i=0;i=e.ch))t.push(r.marker.parent||r.marker)}return t},findMarks:function(r,o,a){r=ft(this,r);o=ft(this,o);var s=[],l=r.line;this.iter(r.line,o.line+1,function(e){var t=e.markedSpans;if(t)for(var n=0;n=i.to||i.from==null&&l!=r.line||i.from!=null&&l==o.line&&i.from>=o.ch)&&(!a||a(i.marker)))s.push(i.marker.parent||i.marker)}++l});return s},getAllMarks:function(){var i=[];this.iter(function(e){var t=e.markedSpans;if(t)for(var n=0;nn){i=n;return true}n-=t;++r});return ft(this,rt(r,i))},indexFromPos:function(e){e=ft(this,e);var t=e.ch;if(e.linet)t=e.from;if(e.to!=null&&e.to-1){i.state.draggingText(e);setTimeout(function(){return i.display.input.focus()},20);return}try{var c=e.dataTransfer.getData("Text");if(c){var f;if(i.state.draggingText&&!i.state.draggingText.copy)f=i.listSelections();_o(i.doc,ao(t,t));if(f)for(var d=0;d=0;e--)ia(t.doc,"",i[e].from,i[e].to,"+delete");ar(t)})}function Ua(e,t,n){var i=ae(e.text,t+n,n);return i<0||i>e.text.length?null:i}function Ga(e,t,n){var i=Ua(e,t.ch,n);return i==null?null:new rt(t.line,i,n<0?"after":"before")}function Xa(e,t,n,i,r){if(e){if(t.doc.direction=="rtl")r=-r;var o=de(n,t.doc.direction);if(o){var a=r<0?V(o):o[0];var s=r<0==(a.level==1);var l=s?"after":"before";var u;if(a.level>0||t.doc.direction=="rtl"){var c=ti(t,n);u=r<0?n.text.length-1:0;var f=ni(t,c,u).top;u=se(function(e){return ni(t,c,e).top==f},r<0==(a.level==1)?a.from:a.to-1,u);if(l=="before")u=Ua(n,u,1)}else u=r<0?a.to:a.from;return new rt(i,u,l)}}return new rt(i,r<0?n.text.length:0,r<0?"before":"after")}function Va(t,n,s,e){var l=de(n,t.doc.direction);if(!l)return Ga(n,s,e);if(s.ch>=n.text.length){s.ch=n.text.length;s.sticky="before"}else if(s.ch<=0){s.ch=0;s.sticky="after"}var i=ce(l,s.ch,s.sticky),r=l[i];if(t.doc.direction=="ltr"&&r.level%2==0&&(e>0?r.to>s.ch:r.from=r.from&&d>=c.begin:d<=r.to&&d<=c.end)){var h=f?"before":"after";return new rt(s.line,d,h)}}var p=function(e,t,n){var i=function(e,t){return t?new rt(s.line,u(e,1),"before"):new rt(s.line,e,"after")};for(;e>=0&&e0==(r.level!=1);var a=o?n.begin:u(n.end,-1);if(r.from<=a&&a0?c.end:u(c.begin,-1);if(g!=null&&!(e>0&&g==n.text.length)){m=p(e>0?0:l.length-1,e,a(g));if(m)return m}return null}Ha.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ha.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ha.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ha.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ha["default"]=y?Ha.macDefault:Ha.pcDefault;var Ka={selectAll:Vo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),j)},killLine:function(n){return qa(n,function(e){if(e.empty()){var t=Ke(n.doc,e.head.line).text.length;if(e.head.ch==t&&e.head.line0){i=new rt(i.line,i.ch+1);a.replaceRange(r.charAt(i.ch-1)+r.charAt(i.ch-2),rt(i.line,i.ch-2),i,"+transpose")}else if(i.line>a.doc.first){var o=Ke(a.doc,i.line-1).text;if(o){i=new rt(i.line,1);a.replaceRange(r.charAt(0)+a.doc.lineSeparator()+o.charAt(o.length-1),rt(i.line-1,o.length-1),i,"+transpose")}}}t.push(new ro(i,i))}a.setSelections(t)})},newlineAndIndent:function(i){return Ar(i,function(){var e=i.listSelections();for(var t=e.length-1;t>=0;t--)i.replaceRange(i.doc.lineSeparator(),e[t].anchor,e[t].head,"+input");e=i.listSelections();for(var n=0;n-1&&(ot((a=o.ranges[a]).from(),t)<0||t.xRel>0)&&(ot(a.to(),t)>0||t.xRel<0))ws(e,i,t,r);else Cs(e,i,t,r)}function ws(t,n,i,r){var o=t.display,a=false;var s=Nr(t,function(e){if(g)o.scroller.draggable=false;t.state.draggingText=false;if(t.state.delayingBlurEvent)if(t.hasFocus())t.state.delayingBlurEvent=false;else Vi(t);ge(o.wrapper.ownerDocument,"mouseup",s);ge(o.wrapper.ownerDocument,"mousemove",l);ge(o.scroller,"dragstart",u);ge(o.scroller,"drop",s);if(!a){ke(e);if(!r.addNew)Po(t.doc,i,null,null,r.extend);if(g&&!c||S&&w==9)setTimeout(function(){o.wrapper.ownerDocument.body.focus({preventScroll:true});o.input.focus()},20);else o.input.focus()}});var l=function(e){a=a||Math.abs(n.clientX-e.clientX)+Math.abs(n.clientY-e.clientY)>=10};var u=function(){return a=true};if(g)o.scroller.draggable=true;t.state.draggingText=s;s.copy=!r.moveOnDrag;pe(o.wrapper.ownerDocument,"mouseup",s);pe(o.wrapper.ownerDocument,"mousemove",l);pe(o.scroller,"dragstart",u);pe(o.scroller,"drop",s);t.state.delayingBlurEvent=true;setTimeout(function(){return o.input.focus()},20);if(o.scroller.dragDrop)o.scroller.dragDrop()}function ks(e,t,n){if(n=="char")return new ro(t,t);if(n=="word")return e.findWordAt(t);if(n=="line")return new ro(rt(t.line,0),ft(e.doc,rt(t.line+1,0)));var i=n(e,t);return new ro(i.from,i.to)}function Cs(g,e,v,y){if(S)Vi(g);var o=g.display,x=g.doc;ke(e);var b,w,k=x.sel,t=k.ranges;if(y.addNew&&!y.extend){w=x.sel.contains(v);if(w>-1)b=t[w];else b=new ro(v,v)}else{b=x.sel.primary();w=x.sel.primIndex}if(y.unit=="rectangle"){if(!y.addNew)b=new ro(v,v);v=Ii(g,e,true,true);w=-1}else{var n=ks(g,v,y.unit);if(y.extend)b=Io(b,n.anchor,n.head,y.extend);else b=n}if(!y.addNew){w=0;Ro(x,new io([b],0),Y);k=x.sel}else if(w==-1){w=t.length;Ro(x,oo(g,t.concat([b]),w),{scroll:false,origin:"*mouse"})}else if(t.length>1&&t[w].empty()&&y.unit=="char"&&!y.extend){Ro(x,oo(g,t.slice(0,w).concat(t.slice(w+1)),0),{scroll:false,origin:"*mouse"});k=x.sel}else Ho(x,w,b,Y);var C=v;function a(e){if(ot(C,e)==0)return;C=e;if(y.unit=="rectangle"){var t=[],n=g.options.tabSize;var i=$(Ke(x,v.line).text,v.ch,n);var r=$(Ke(x,e.line).text,e.ch,n);var o=Math.min(i,r),a=Math.max(i,r);for(var s=Math.min(v.line,e.line),l=Math.min(g.lastLine(),Math.max(v.line,e.line));s<=l;s++){var u=Ke(x,s).text,c=U(u,o,n);if(o==a)t.push(new ro(rt(s,c),rt(s,c)));else if(u.length>c)t.push(new ro(rt(s,c),rt(s,U(u,a,n))))}if(!t.length)t.push(new ro(v,v));Ro(x,oo(g,k.ranges.slice(0,w).concat(t),w),{origin:"*mouse",scroll:false});g.scrollIntoView(e)}else{var f=b;var d=ks(g,e,y.unit);var h=f.anchor,p;if(ot(d.anchor,h)>0){p=d.head;h=ut(f.from(),d.anchor)}else{p=d.anchor;h=lt(f.to(),d.head)}var m=k.ranges.slice(0);m[w]=Ss(g,new ro(ft(x,h),p));Ro(x,oo(g,m,w),Y)}}var s=o.wrapper.getBoundingClientRect();var l=0;function u(e){var t=++l;var n=Ii(g,e,true,y.unit=="rectangle");if(!n)return;if(ot(n,C)!=0){g.curOp.focus=O();a(n);var i=er(o,x);if(n.line>=i.to||n.lines.bottom?20:0;if(r)setTimeout(Nr(g,function(){if(l!=t)return;o.scroller.scrollTop+=r;u(e)}),50)}}function i(e){g.state.selectingText=false;l=Infinity;if(e){ke(e);o.input.focus()}ge(o.wrapper.ownerDocument,"mousemove",r);ge(o.wrapper.ownerDocument,"mouseup",c);x.history.lastSelOrigin=null}var r=Nr(g,function(e){if(e.buttons===0||!Me(e))i(e);else u(e)});var c=Nr(g,i);g.state.selectingText=c;pe(o.wrapper.ownerDocument,"mousemove",r);pe(o.wrapper.ownerDocument,"mouseup",c)}function Ss(e,t){var n=t.anchor;var i=t.head;var r=Ke(e.doc,n.line);if(ot(n,i)==0&&n.sticky==i.sticky)return t;var o=de(r);if(!o)return t;var a=ce(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l=a+(s.from==n.ch==(s.level!=1)?0:1);if(l==0||l==o.length)return t;var u;if(i.line!=n.line)u=(i.line-n.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var c=ce(o,i.ch,i.sticky);var f=c-a||(i.ch-n.ch)*(s.level==1?-1:1);if(c==l-1||c==l)u=f<0;else u=f>0}var d=o[l+(u?-1:0)];var h=u==(d.level==1);var p=h?d.from:d.to,m=h?"after":"before";return n.ch==p&&n.sticky==m?t:new ro(new rt(n.line,p,m),i)}function Ls(e,t,n,i){var r,o;if(t.touches){r=t.touches[0].clientX;o=t.touches[0].clientY}else try{r=t.clientX;o=t.clientY}catch(e){return false}if(r>=Math.floor(e.display.gutters.getBoundingClientRect().right))return false;if(i)ke(t);var a=e.display;var s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!be(e,n))return Se(t);o-=s.top-a.viewOffset;for(var l=0;l=r){var c=tt(e.doc,o);var f=e.display.gutterSpecs[l];ve(e,n,e,c,f.className,t);return Se(t)}}}function Es(e,t){return Ls(e,t,"gutterClick",true)}function Ms(e,t){if(jn(e.display,t)||Ts(e,t))return;if(ye(e,t,"contextmenu"))return;if(!k)e.display.input.onContextMenu(t)}function Ts(e,t){if(!be(e,"gutterContextMenu"))return false;return Ls(e,t,"gutterContextMenu",false)}function Ds(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-");fi(e)}hs.prototype.compare=function(e,t,n){return this.time+ds>e&&ot(t,this.pos)==0&&n==this.button};var As={toString:function(){return"CodeMirror.Init"}},Ns={},Os={};function Fs(r){var o=r.optionHandlers;function e(e,t,i,n){r.defaults[e]=t;if(i)o[e]=n?function(e,t,n){if(n!=As)i(e,t,n)}:i}r.defineOption=e;r.Init=As;e("value","",function(e,t){return e.setValue(t)},true);e("mode",null,function(e,t){e.doc.modeOption=t;ho(e)},true);e("indentUnit",2,ho,true);e("indentWithTabs",false);e("smartIndent",true);e("tabSize",4,function(e){po(e);fi(e);zi(e)},true);e("lineSeparator",null,function(e,i){e.doc.lineSep=i;if(!i)return;var r=[],o=e.doc.first;e.doc.iter(function(e){for(var t=0;;){var n=e.text.indexOf(i,t);if(n==-1)break;t=n+i.length;r.push(rt(o,n))}o++});for(var t=r.length-1;t>=0;t--)ia(e.doc,i,r[t],rt(r[t].line,r[t].ch+i.length))});e("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g");if(n!=As)e.refresh()});e("specialCharPlaceholder",mn,function(e){return e.refresh()},true);e("electricChars",true);e("inputStyle",d?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},true);e("spellcheck",false,function(e,t){return e.getInputField().spellcheck=t},true);e("autocorrect",false,function(e,t){return e.getInputField().autocorrect=t},true);e("autocapitalize",false,function(e,t){return e.getInputField().autocapitalize=t},true);e("rtlMoveVisually",!p);e("wholeLineUpdateBefore",true);e("theme","default",function(e){Ds(e);Kr(e)},true);e("keyMap","default",function(e,t,n){var i=Ya(t);var r=n!=As&&Ya(n);if(r&&r.detach)r.detach(e,i);if(i.attach)i.attach(e,r||null)});e("extraKeys",null);e("configureMouse",null);e("lineWrapping",false,Ps,true);e("gutters",[],function(e,t){e.display.gutterSpecs=Xr(t,e.options.lineNumbers);Kr(e)},true);e("fixedGutter",true,function(e,t){e.display.gutters.style.left=t?Ni(e.display)+"px":"0";e.refresh()},true);e("coverGutterNextToScrollbar",false,function(e){return vr(e)},true);e("scrollbarStyle","native",function(e){br(e);vr(e);e.display.scrollbars.setScrollTop(e.doc.scrollTop);e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},true);e("lineNumbers",false,function(e,t){e.display.gutterSpecs=Xr(e.options.gutters,t);Kr(e)},true);e("firstLineNumber",1,Kr,true);e("lineNumberFormatter",function(e){return e},Kr,true);e("showCursorWhenSelecting",false,_i,true);e("resetSelectionOnContextMenu",true);e("lineWiseCopyCut",true);e("pasteLinesPerSelection",true);e("selectionsMayTouch",false);e("readOnly",false,function(e,t){if(t=="nocursor"){Qi(e);e.display.input.blur()}e.display.input.readOnlyChanged(t)});e("screenReaderLabel",null,function(e,t){t=t===""?null:t;e.display.input.screenReaderLabelChanged(t)});e("disableInput",false,function(e,t){if(!t)e.display.input.reset()},true);e("dragDrop",true,Is);e("allowDropFileTypes",null);e("cursorBlinkRate",530);e("cursorScrollMargin",0);e("cursorHeight",1,_i,true);e("singleCursorHeightPerLine",true,_i,true);e("workTime",100);e("workDelay",100);e("flattenSpans",true,po,true);e("addModeClass",false,po,true);e("pollInterval",100);e("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t});e("historyEventDelay",1250);e("viewportMargin",10,function(e){return e.refresh()},true);e("maxHighlightLength",1e4,po,true);e("moveInputWithCursor",true,function(e,t){if(!t)e.display.input.resetPosition()});e("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""});e("autofocus",null);e("direction","ltr",function(e,t){return e.doc.setDirection(t)},true);e("phrases",null)}function Is(e,t,n){var i=n&&n!=As;if(!t!=!i){var r=e.display.dragFunctions;var o=t?pe:ge;o(e.display.scroller,"dragstart",r.start);o(e.display.scroller,"dragenter",r.enter);o(e.display.scroller,"dragover",r.over);o(e.display.scroller,"dragleave",r.leave);o(e.display.scroller,"drop",r.drop)}}function Ps(e){if(e.options.lineWrapping){F(e.display.wrapper,"CodeMirror-wrap");e.display.sizer.style.minWidth="";e.display.sizerWidth=null}else{L(e.display.wrapper,"CodeMirror-wrap");sn(e)}Fi(e);zi(e);fi(e);setTimeout(function(){return vr(e)},100)}function zs(e,t){var n=this;if(!(this instanceof zs))return new zs(e,t);this.options=t=t?H(t):{};H(Ns,t,false);var i=t.value;if(typeof i=="string")i=new ka(i,t.mode,null,t.lineSeparator,t.direction);else if(t.mode)i.modeOption=t.mode;this.doc=i;var r=new zs.inputStyles[t.inputStyle](this);var o=this.display=new Qr(e,i,r,t);o.wrapper.CodeMirror=this;Ds(this);if(t.lineWrapping)this.display.wrapper.className+=" CodeMirror-wrap";br(this);this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:false,delayingBlurEvent:false,focused:false,suppressEdits:false,pasteIncoming:-1,cutIncoming:-1,selectingText:false,draggingText:false,highlight:new B,keySeq:null,specialChars:null};if(t.autofocus&&!d)o.input.focus();if(S&&w<11)setTimeout(function(){return n.display.input.reset(true)},20);Hs(this);Aa();kr(this);this.curOp.forceUpdate=true;yo(this,i);if(t.autofocus&&!d||this.hasFocus())setTimeout(function(){if(n.hasFocus()&&!n.state.focused)Ki(n)},20);else Qi(this);for(var a in Os)if(Os.hasOwnProperty(a))Os[a](this,t[a],As);Gr(this);if(t.finishInit)t.finishInit(this);for(var s=0;s<$s.length;++s)$s[s](this);Cr(this);if(g&&t.lineWrapping&&getComputedStyle(o.lineDiv).textRendering=="optimizelegibility")o.lineDiv.style.textRendering="auto"}function Hs(r){var o=r.display;pe(o.scroller,"mousedown",Nr(r,vs));if(S&&w<11)pe(o.scroller,"dblclick",Nr(r,function(e){if(ye(r,e))return;var t=Ii(r,e);if(!t||Es(r,e)||jn(r.display,e))return;ke(e);var n=r.findWordAt(t);Po(r.doc,n.anchor,n.head)}));else pe(o.scroller,"dblclick",function(e){return ye(r,e)||ke(e)});pe(o.scroller,"contextmenu",function(e){return Ms(r,e)});pe(o.input.getField(),"contextmenu",function(e){if(!o.scroller.contains(e.target))Ms(r,e)});var n,i={end:0};function a(){if(o.activeTouch){n=setTimeout(function(){return o.activeTouch=null},1e3);i=o.activeTouch;i.end=+new Date}}function s(e){if(e.touches.length!=1)return false;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(t.left==null)return true;var n=t.left-e.left,i=t.top-e.top;return n*n+i*i>20*20}pe(o.scroller,"touchstart",function(e){if(!ye(r,e)&&!s(e)&&!Es(r,e)){o.input.ensurePolled();clearTimeout(n);var t=+new Date;o.activeTouch={start:t,moved:false,prev:t-i.end<=300?i:null};if(e.touches.length==1){o.activeTouch.left=e.touches[0].pageX;o.activeTouch.top=e.touches[0].pageY}}});pe(o.scroller,"touchmove",function(){if(o.activeTouch)o.activeTouch.moved=true});pe(o.scroller,"touchend",function(e){var t=o.activeTouch;if(t&&!jn(o,e)&&t.left!=null&&!t.moved&&new Date-t.start<300){var n=r.coordsChar(o.activeTouch,"page"),i;if(!t.prev||l(t,t.prev))i=new ro(n,n);else if(!t.prev.prev||l(t,t.prev.prev))i=r.findWordAt(n);else i=new ro(rt(n.line,0),ft(r.doc,rt(n.line+1,0)));r.setSelection(i.anchor,i.head);r.focus();ke(e)}a()});pe(o.scroller,"touchcancel",a);pe(o.scroller,"scroll",function(){if(o.scroller.clientHeight){fr(r,o.scroller.scrollTop);hr(r,o.scroller.scrollLeft,true);ve(r,"scroll",r)}});pe(o.scroller,"mousewheel",function(e){return no(r,e)});pe(o.scroller,"DOMMouseScroll",function(e){return no(r,e)});pe(o.wrapper,"scroll",function(){return o.wrapper.scrollTop=o.wrapper.scrollLeft=0});o.dragFunctions={enter:function(e){if(!ye(r,e))Le(e)},over:function(e){if(!ye(r,e)){Ea(r,e);Le(e)}},start:function(e){return La(r,e)},drop:Nr(r,Sa),leave:function(e){if(!ye(r,e))Ma(r)}};var e=o.input.getField();pe(e,"keyup",function(e){return cs.call(r,e)});pe(e,"keydown",Nr(r,ls));pe(e,"keypress",Nr(r,fs));pe(e,"focus",function(e){return Ki(r,e)});pe(e,"blur",function(e){return Qi(r,e)})}zs.defaults=Ns,zs.optionHandlers=Os;var $s=[];function Bs(e,t,n,i){var r=e.doc,o;if(n==null)n="add";if(n=="smart")if(!r.mode.indent)n="prev";else o=yt(e,t).state;var a=e.options.tabSize;var s=Ke(r,t),l=$(s.text,null,a);if(s.stateAfter)s.stateAfter=null;var u=s.text.match(/^\s*/)[0],c;if(!i&&!/\S/.test(s.text)){c=0;n="not"}else if(n=="smart"){c=r.mode.indent(o,s.text.slice(u.length),s.text);if(c==_||c>150){if(!i)return;n="prev"}}if(n=="prev")if(t>r.first)c=$(Ke(r,t-1).text,null,a);else c=0;else if(n=="add")c=l+e.options.indentUnit;else if(n=="subtract")c=l-e.options.indentUnit;else if(typeof n=="number")c=l+n;c=Math.max(0,c);var f="",d=0;if(e.options.indentWithTabs)for(var h=Math.floor(c/a);h;--h){d+=a;f+="\t"}if(da;var l=Fe(t),u=null;if(s&&i.ranges.length>1)if(Ws&&Ws.text.join("\n")==t){if(i.ranges.length%Ws.text.length==0){u=[];for(var c=0;c=0;d--){var h=i.ranges[d];var p=h.from(),m=h.to();if(h.empty())if(n&&n>0)p=rt(p.line,p.ch-n);else if(e.state.overwrite&&!s)m=rt(m.line,Math.min(Ke(o,m.line).text.length,m.ch+V(l).length));else if(s&&Ws&&Ws.lineWise&&Ws.text.join("\n")==l.join("\n"))p=m=rt(p.line,0);var g={from:p,to:m,text:u?u[d%u.length]:l,origin:r||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};Qo(e.doc,g);Tn(e,"inputRead",e,g)}if(t&&!s)Ys(e,t);ar(e);if(e.curOp.updateInput<2)e.curOp.updateInput=f;e.curOp.typing=true;e.state.pasteIncoming=e.state.cutIncoming=-1}function js(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n){e.preventDefault();if(!t.isReadOnly()&&!t.options.disableInput)Ar(t,function(){return _s(t,n,0,null,"paste")});return true}}function Ys(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;var n=e.doc.sel;for(var i=n.ranges.length-1;i>=0;i--){var r=n.ranges[i];if(r.head.ch>100||i&&n.ranges[i-1].head.line==r.head.line)continue;var o=e.getModeAt(r.head);var a=false;if(o.electricChars){for(var s=0;s-1){a=Bs(e,r.head.line,"smart");break}}else if(o.electricInput)if(o.electricInput.test(Ke(e.doc,r.head.line).text.slice(0,r.head.ch)))a=Bs(e,r.head.line,"smart");if(a)Tn(e,"electricInput",e,r.head.line)}}function qs(e){var t=[],n=[];for(var i=0;i0)Ho(this.doc,i,new ro(o,u[i].to()),j)}else if(r.head.line>n){Bs(this,r.head.line,e,true);n=r.head.line;if(i==this.doc.sel.primIndex)ar(this)}}}),getTokenAt:function(e,t){return Ct(this,e,t)},getLineTokens:function(e,t){return Ct(this,rt(e),t,true)},getTokenTypeAt:function(e){e=ft(this.doc,e);var t=vt(this,Ke(this.doc,e.line));var n=0,i=(t.length-1)/2,r=e.ch;var o;if(r==0)o=t[2];else for(;;){var a=n+i>>1;if((a?t[a*2-1]:0)>=r)i=a;else if(t[a*2+1]o){e=o;i=true}r=Ke(this.doc,e)}else r=e;return mi(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-on(r):0)},defaultTextHeight:function(){return Ti(this.display)},defaultCharWidth:function(){return Di(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,i,r){var o=this.display;e=yi(this,ft(this.doc,e));var a=e.bottom,s=e.left;t.style.position="absolute";t.setAttribute("cm-ignore-events","true");this.display.input.setUneditable(t);o.sizer.appendChild(t);if(i=="over")a=e.top;else if(i=="above"||i=="near"){var l=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);if((i=="above"||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight)a=e.top-t.offsetHeight;else if(e.bottom+t.offsetHeight<=l)a=e.bottom;if(s+t.offsetWidth>u)s=u-t.offsetWidth}t.style.top=a+"px";t.style.left=t.style.right="";if(r=="right"){s=o.sizer.clientWidth-t.offsetWidth;t.style.right="0px"}else{if(r=="left")s=0;else if(r=="middle")s=(o.sizer.clientWidth-t.offsetWidth)/2;t.style.left=s+"px"}if(n)ir(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Or(ls),triggerOnKeyPress:Or(fs),triggerOnKeyUp:cs,triggerOnMouseDown:Or(vs),execCommand:function(e){if(Ka.hasOwnProperty(e))return Ka[e].call(null,this)},triggerElectric:Or(function(e){Ys(this,e)}),findPosH:function(e,t,n,i){var r=1;if(t<0){r=-1;t=-t}var o=ft(this.doc,e);for(var a=0;a0&&s(n.charAt(i-1)))--i;while(r.5||this.options.lineWrapping)Fi(this);ve(this,"refresh",this)}),swapDoc:Or(function(e){var t=this.doc;t.cm=null;if(this.state.selectingText)this.state.selectingText();yo(this,e);fi(this);this.display.input.reset();sr(this,e.scrollLeft,e.scrollTop);this.curOp.forceScroll=true;Tn(this,"swapDoc",this,t);return t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}};we(r);r.registerHelper=function(e,t,n){if(!u.hasOwnProperty(e))u[e]=r[e]={_global:[]};u[e][t]=n};r.registerGlobalHelper=function(e,t,n,i){r.registerHelper(e,t,i);u[e]._global.push({pred:n,val:i})}}function Vs(i,r,o,a,s){var e=r;var t=o;var l=Ke(i,r.line);var u=s&&i.direction=="rtl"?-o:o;function c(){var e=r.line+u;if(e=i.first+i.size)return false;r=new rt(e,r.ch,r.sticky);return l=Ke(i,e)}function n(e){var t;if(a=="codepoint"){var n=l.text.charCodeAt(r.ch+(a>0?0:-1));if(isNaN(n))t=null;else t=new rt(r.line,Math.max(0,Math.min(l.text.length,r.ch+o*(n>=55296&&n<56320?2:1))),-o)}else if(s)t=Va(i.cm,l,r,o);else t=Ga(l,r,o);if(t==null)if(!e&&c())r=Xa(s,i.cm,l,r.line,u);else return false;else r=t;return true}if(a=="char"||a=="codepoint")n();else if(a=="column")n(true);else if(a=="word"||a=="group"){var f=null,d=a=="group";var h=i.cm&&i.cm.getHelper(r,"wordChars");for(var p=true;;p=false){if(o<0&&!n(!p))break;var m=l.text.charAt(r.ch)||"\n";var g=ne(m,h)?"w":d&&m=="\n"?"n":!d||/\s/.test(m)?null:"p";if(d&&!p&&!g)g="s";if(f&&f!=g){if(o<0){o=1;n();r.sticky="after"}break}if(g)f=g;if(o>0&&!n(!p))break}}var v=Go(i,r,e,t,true);if(at(e,v))v.hitSide=true;return v}function Ks(e,t,n,i){var r=e.doc,o=t.left,a;if(i=="page"){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight);var l=Math.max(s-.5*Ti(e.display),3);a=(n>0?t.bottom:t.top)+n*l}else if(i=="line")a=n>0?t.bottom+3:t.top-3;var u;for(;;){u=wi(e,o,a);if(!u.outside)break;if(n<0?a<=0:a>=r.height){u.hitSide=true;break}a+=n*5}return u}var Qs=function(e){this.cm=e;this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null;this.polling=new B;this.composing=null;this.gracePeriod=false;this.readDOMTimeout=null};function Zs(e,t){var n=ei(e,t.line);if(!n||n.hidden)return null;var i=Ke(e.doc,t.line);var r=Qn(n,i,t.line);var o=de(i,e.doc.direction),a="left";if(o){var s=ce(o,t.ch);a=s%2?"right":"left"}var l=oi(r.map,t.ch,a);l.offset=l.collapse=="right"?l.end:l.start;return l}function Js(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return true;return false}function el(e,t){if(t)e.bad=true;return e}function tl(s,e,t,l,u){var n="",c=false,f=s.doc.lineSeparator(),d=false;function h(t){return function(e){return e.id==t}}function p(){if(c){n+=f;if(d)n+=f;c=d=false}}function m(e){if(e){p();n+=e}}function g(e){if(e.nodeType==1){var t=e.getAttribute("cm-text");if(t){m(t);return}var n=e.getAttribute("cm-marker"),i;if(n){var r=s.findMarks(rt(l,0),rt(u+1,0),h(+n));if(r.length&&(i=r[0].find(0)))m(Qe(s.doc,i.from,i.to).join(f));return}if(e.getAttribute("contenteditable")=="false")return;var o=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&e.textContent.length==0)return;if(o)p();for(var a=0;a=t.display.viewTo||r.line=t.display.viewFrom&&Zs(t,i)||{node:s[0].measure.map[2],offset:0};var u=r.linee.firstLine())i=rt(i.line-1,Ke(e.doc,i.line-1).length);if(r.ch==Ke(e.doc,r.line).text.length&&r.linet.viewTo-1)return false;var o,a,s;if(i.line==t.viewFrom||(o=Pi(e,i.line))==0){a=et(t.view[0].line);s=t.view[0].node}else{a=et(t.view[o].line);s=t.view[o-1].node.nextSibling}var l=Pi(e,r.line);var u,c;if(l==t.view.length-1){u=t.viewTo-1;c=t.lineDiv.lastChild}else{u=et(t.view[l+1].line)-1;c=t.view[l+1].node.previousSibling}if(!s)return false;var f=e.doc.splitLines(tl(e,s,c,a,u));var d=Qe(e.doc,rt(a,0),rt(u,Ke(e.doc,u).text.length));while(f.length>1&&d.length>1)if(V(f)==V(d)){f.pop();d.pop();u--}else if(f[0]==d[0]){f.shift();d.shift();a++}else break;var h=0,p=0;var m=f[0],g=d[0],v=Math.min(m.length,g.length);while(hi.ch&&y.charCodeAt(y.length-p-1)==x.charCodeAt(x.length-p-1)){h--;p++}f[f.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,"");f[0]=f[0].slice(h).replace(/\u200b+$/,"");var w=rt(a,h);var k=rt(u,d.length?V(d).length-p:0);if(f.length>1||f[0]||ot(w,k)){ia(e.doc,f,w,k,"+input");return true}},Qs.prototype.ensurePolled=function(){this.forceCompositionEnd()},Qs.prototype.reset=function(){this.forceCompositionEnd()},Qs.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout);this.composing=null;this.updateFromDOM();this.div.blur();this.div.focus()},Qs.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){e.readDOMTimeout=null;if(e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},Qs.prototype.updateFromDOM=function(){var e=this;if(this.cm.isReadOnly()||!this.pollContent())Ar(this.cm,function(){return zi(e.cm)})},Qs.prototype.setUneditable=function(e){e.contentEditable="false"},Qs.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault();if(!this.cm.isReadOnly())Nr(this.cm,_s)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},Qs.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Qs.prototype.onContextMenu=function(){},Qs.prototype.resetPosition=function(){},Qs.prototype.needsContentAttribute=true;var rl=function(e){this.cm=e;this.prevInput="";this.pollingFast=false;this.polling=new B;this.hasSelection=false;this.composing=null};function ol(t,n){if((n=n?H(n):{}).value=t.value,!n.tabindex&&t.tabIndex)n.tabindex=t.tabIndex;if(!n.placeholder&&t.placeholder)n.placeholder=t.placeholder;if(null==n.autofocus){var e=O();n.autofocus=e==t||null!=t.getAttribute("autofocus")&&e==document.body}function i(){t.value=s.getValue()}var r;if(t.form)if(pe(t.form,"submit",i),!n.leaveSubmitMethodAlone){var o=t.form;r=o.submit;try{var a=o.submit=function(){i(),o.submit=r,o.submit(),o.submit=a}}catch(e){}}n.finishInit=function(e){e.save=i,e.getTextArea=function(){return t},e.toTextArea=function(){e.toTextArea=isNaN,i(),t.parentNode.removeChild(e.getWrapperElement()),t.style.display="",t.form&&(ge(t.form,"submit",i),n.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=r))}},t.style.display="none";var s=zs(function(e){return t.parentNode.insertBefore(e,t.nextSibling)},n);return s}function al(e){e.off=ge,e.on=pe,e.wheelEventPixels=to,e.Doc=ka,e.splitLines=Fe,e.countColumn=$,e.findColumn=U,e.isWordChar=te,e.Pass=_,e.signal=ve,e.Line=ln,e.changeEnd=so,e.scrollbarModel=xr,e.Pos=rt,e.cmpPos=ot,e.modes=$e,e.mimeModes=Be,e.resolveMode=_e,e.getMode=je,e.modeExtensions=Ye,e.extendMode=qe,e.copyState=Ue,e.startState=Xe,e.innerMode=Ge,e.commands=Ka,e.keyMap=Ha,e.keyName=ja,e.isModifierKey=Ra,e.lookupKey=Wa,e.normalizeKeyMap=Ba,e.StringStream=Ve,e.SharedTextMarker=ga,e.TextMarker=pa,e.LineWidget=ca,e.e_preventDefault=ke,e.e_stopPropagation=Ce,e.e_stop=Le,e.addClass=F,e.contains=A,e.rmClass=L,e.keyNames=Fa}rl.prototype.init=function(n){var e=this;var i=this,r=this.cm;this.createField(n);var o=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild);if(u)o.style.width="0px";pe(o,"input",function(){if(S&&w>=9&&e.hasSelection)e.hasSelection=null;i.poll()});pe(o,"paste",function(e){if(ye(r,e)||js(e,r))return;r.state.pasteIncoming=+new Date;i.fastPoll()});function t(e){if(ye(r,e))return;if(r.somethingSelected())Rs({lineWise:false,text:r.getSelections()});else if(!r.options.lineWiseCopyCut)return;else{var t=qs(r);Rs({lineWise:true,text:t.text});if(e.type=="cut")r.setSelections(t.ranges,null,j);else{i.prevInput="";o.value=t.text.join("\n");P(o)}}if(e.type=="cut")r.state.cutIncoming=+new Date}pe(o,"cut",t);pe(o,"copy",t);pe(n.scroller,"paste",function(e){if(jn(n,e)||ye(r,e))return;if(!o.dispatchEvent){r.state.pasteIncoming=+new Date;i.focus();return}var t=new Event("paste");t.clipboardData=e.clipboardData;o.dispatchEvent(t)});pe(n.lineSpace,"selectstart",function(e){if(!jn(n,e))ke(e)});pe(o,"compositionstart",function(){var e=r.getCursor("from");if(i.composing)i.composing.range.clear();i.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}});pe(o,"compositionend",function(){if(i.composing){i.poll();i.composing.range.clear();i.composing=null}})},rl.prototype.createField=function(e){this.wrapper=Gs();this.textarea=this.wrapper.firstChild},rl.prototype.screenReaderLabelChanged=function(e){if(e)this.textarea.setAttribute("aria-label",e);else this.textarea.removeAttribute("aria-label")},rl.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc;var i=ji(e);if(e.options.moveInputWithCursor){var r=yi(e,n.sel.primary().head,"div");var o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,r.top+a.top-o.top));i.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,r.left+a.left-o.left))}return i},rl.prototype.showSelection=function(e){var t=this.cm,n=t.display;T(n.cursorDiv,e.cursors);T(n.selectionDiv,e.selection);if(e.teTop!=null){this.wrapper.style.top=e.teTop+"px";this.wrapper.style.left=e.teLeft+"px"}},rl.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n;if(t.state.focused)P(this.textarea);if(S&&w>=9)this.hasSelection=n}else if(!e){this.prevInput=this.textarea.value="";if(S&&w>=9)this.hasSelection=null}},rl.prototype.getField=function(){return this.textarea},rl.prototype.supportsTouch=function(){return false},rl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!d||O()!=this.textarea))try{this.textarea.focus()}catch(e){}},rl.prototype.blur=function(){this.textarea.blur()},rl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},rl.prototype.receivedFocus=function(){this.slowPoll()},rl.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll();if(e.cm.state.focused)e.slowPoll()})},rl.prototype.fastPoll=function(){var t=false,n=this;n.pollingFast=true;function i(){var e=n.poll();if(!e&&!t){t=true;n.polling.set(60,i)}else{n.pollingFast=false;n.slowPoll()}}n.polling.set(20,i)},rl.prototype.poll=function(){var e=this;var t=this.cm,n=this.textarea,i=this.prevInput;if(this.contextMenuPending||!t.state.focused||Ie(n)&&!i&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return false;var r=n.value;if(r==i&&!t.somethingSelected())return false;if(S&&w>=9&&this.hasSelection===r||y&&/[\uf700-\uf7ff]/.test(r)){t.display.input.reset();return false}if(t.doc.sel==t.display.selForContextMenu){var o=r.charCodeAt(0);if(o==8203&&!i)i="";if(o==8666){this.reset();return this.cm.execCommand("undo")}}var a=0,s=Math.min(i.length,r.length);while(a1e3||r.indexOf("\n")>-1)n.value=e.prevInput="";else e.prevInput=r;if(e.composing){e.composing.range.clear();e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"})}});return true},rl.prototype.ensurePolled=function(){if(this.pollingFast&&this.poll())this.pollingFast=false},rl.prototype.onKeyPress=function(){if(S&&w>=9)this.hasSelection=null;this.fastPoll()},rl.prototype.onContextMenu=function(e){var n=this,i=n.cm,r=i.display,o=n.textarea;if(n.contextMenuPending)n.contextMenuPending();var t=Ii(i,e),a=r.scroller.scrollTop;if(!t||v)return;var s=i.options.resetSelectionOnContextMenu;if(s&&i.doc.sel.contains(t)==-1)Nr(i,Ro)(i.doc,ao(t),j);var l=o.style.cssText,u=n.wrapper.style.cssText;var c=n.wrapper.offsetParent.getBoundingClientRect();n.wrapper.style.cssText="position: static";o.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-c.top-5)+"px; left: "+(e.clientX-c.left-5)+"px;\n z-index: 1000; background: "+(S?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var f;if(g)f=window.scrollY;r.input.focus();if(g)window.scrollTo(null,f);r.input.reset();if(!i.somethingSelected())o.value=n.prevInput=" ";n.contextMenuPending=h;r.selForContextMenu=i.doc.sel;clearTimeout(r.detectingSelectAll);function d(){if(o.selectionStart!=null){var e=i.somethingSelected();var t=""+(e?o.value:"");o.value="⇚";o.value=t;n.prevInput=e?"":"";o.selectionStart=1;o.selectionEnd=t.length;r.selForContextMenu=i.doc.sel}}function h(){if(n.contextMenuPending!=h)return;n.contextMenuPending=false;n.wrapper.style.cssText=u;o.style.cssText=l;if(S&&w<9)r.scrollbars.setScrollTop(r.scroller.scrollTop=a);if(o.selectionStart!=null){if(!S||S&&w<9)d();var e=0,t=function(){if(r.selForContextMenu==i.doc.sel&&o.selectionStart==0&&o.selectionEnd>0&&n.prevInput=="")Nr(i,Vo)(i);else if(e++<10)r.detectingSelectAll=setTimeout(t,500);else{r.selForContextMenu=null;r.input.reset()}};r.detectingSelectAll=setTimeout(t,200)}}if(S&&w>=9)d();if(k){Le(e);var p=function(){ge(window,"mouseup",p);setTimeout(h,20)};pe(window,"mouseup",p)}else setTimeout(h,50)},rl.prototype.readOnlyChanged=function(e){if(!e)this.reset();this.textarea.disabled=e=="nocursor";this.textarea.readOnly=!!e},rl.prototype.setUneditable=function(){},rl.prototype.needsContentAttribute=false,Fs(zs),Xs(zs);var sl="iter insert remove copy getEditor constructor".split(" "),ll;for(ll in ka.prototype)if(ka.prototype.hasOwnProperty(ll)&&W(sl,ll)<0)zs.prototype[ll]=function(e){return function(){return e.apply(this.doc,arguments)}}(ka.prototype[ll]);return we(ka),zs.inputStyles={textarea:rl,contenteditable:Qs},zs.defineMode=function(e){zs.defaults.mode||"null"==e||(zs.defaults.mode=e),function(e,t){2")):null:t.match("--")?e(r("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),e(function i(r){return function(e,t){for(var n;null!=(n=e.next());){if("<"==n)return t.tokenize=i(r+1),t.tokenize(e,t);if(">"==n){if(1!=r)return t.tokenize=i(r-1),t.tokenize(e,t);t.tokenize=u;break}}return"meta"}}(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),n.tokenize=r("meta","?>"),"meta"):(o=t.eat("/")?"closeTag":"openTag",n.tokenize=c,"tag bracket");if("&"!=i)return t.eatWhile(/[^&<]/),null;i=t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";");return i?"atom":"error"}function c(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=u,o=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return o="equals",null;if("<"!=n)return/[\'\"]/.test(n)?(t.tokenize=(i=n,r.isInAttribute=!0,r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word");t.tokenize=u,t.state=p,t.tagName=t.tagStart=null;var i,t=t.tokenize(e,t);return t?t+" tag error":"tag error";function r(e,t){for(;!e.eol();)if(e.next()==i){t.tokenize=c;break}return"string"}}function r(n,i){return function(e,t){for(;!e.eol();){if(e.match(i)){t.tokenize=u;break}e.next()}return n}}function f(e,t,n){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function d(e){e.context&&(e.context=e.context.prev)}function h(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(n)||!l.contextGrabbers[n].hasOwnProperty(t))return;d(e)}}function p(e,t,n){return"openTag"==e?(n.tagStart=t.column(),m):"closeTag"==e?g:p}function m(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",x):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",x(e,0,n)):(a="error",m)}function g(e,t,n){if("word"!=e)return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",v(e,0,n)):(a="error",y);t=t.current();return n.context&&n.context.tagName!=t&&l.implicitlyClosed.hasOwnProperty(n.context.tagName)&&d(n),n.context&&n.context.tagName==t||!1===l.matchClosing?(a="tag",v):(a="tag error",y)}function v(e,t,n){return"endTag"!=e?(a="error",v):(d(n),p)}function y(e,t,n){return a="error",v(e,0,n)}function x(e,t,n){if("word"==e)return a="attribute",b;if("endTag"!=e&&"selfcloseTag"!=e)return a="error",x;var i=n.tagName,r=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(i)?h(n,i):(h(n,i),n.context=new f(n,i,r==n.indented)),p}function b(e,t,n){return"equals"==e?w:(l.allowMissing||(a="error"),x(e,0,n))}function w(e,t,n){return"string"==e?k:"word"==e&&l.allowUnquoted?(a="string",x):(a="error",x(e,0,n))}function k(e,t,n){return"string"==e?k:x(e,0,n)}return u.isInText=!0,{startState:function(e){var t={tokenize:u,state:p,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(e,t,n){var i=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+s;if(i&&i.noIndent)return C.Pass;if(e.tokenize!=c&&e.tokenize!=u)return n?n.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==l.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==w&&(e.state=x)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)t.push(n.tagName);return t.reverse()}}}),C.defineMIME("text/xml","xml"),C.defineMIME("application/xml","xml"),C.mimeModes.hasOwnProperty("text/html")||C.defineMIME("text/html",{name:"xml",htmlMode:!0})}),e(function(e,t){!function(r){r.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var e=0;e` "'(~:]+/,b=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,w=/^\s*\[[^\]]+?\]:.*$/,k=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/;function C(e,t,n){return(t.f=t.inline=n)(e,t)}function S(e,t,n){return(t.f=t.block=n)(e,t)}function i(e){var t,n;return e.linkTitle=!1,e.linkHref=!1,e.linkText=!1,e.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,e.indentedCode=!1,e.f==L&&((n=r)||(n="xml"==(t=O.innerMode(h,e.htmlState)).mode.name&&null===t.state.tagStart&&!t.state.context&&t.state.tokenize.isInText),n&&(e.f=T,e.block=o,e.htmlState=null)),e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.prevLine=e.thisLine,e.thisLine={stream:null},null}function o(e,t){var n=e.column()===t.indentation,i=!(c=t.prevLine.stream)||!/\S/.test(c.string),r=t.indentedCode,o=t.prevLine.hr,a=!1!==t.list,s=(t.listStack[t.listStack.length-1]||0)+3;t.indentedCode=!1;var l=t.indentation;if(null===t.indentationDiff&&(t.indentationDiff=t.indentation,a)){for(t.list=null;l"))return t.quote=n?1:t.quote+1,d.highlightFormatting&&(t.formatting="quote"),e.eatSpace(),M(t);if(!c&&!t.setext&&n&&t.indentation<=s&&(o=e.match(g))){i=o[1]?"ol":"ul";return t.indentation=l+e.current().length,t.list=!0,t.quote=0,t.listStack.push(t.indentation),t.em=!1,t.strong=!1,t.code=!1,t.strikethrough=!1,d.taskLists&&e.match(v,!1)&&(t.taskList=!0),t.f=t.inline,d.highlightFormatting&&(t.formatting=["list","list-"+i]),M(t)}return n&&t.indentation<=s&&(o=e.match(b,!0))?(t.quote=0,t.fencedEndRE=new RegExp(o[1]+"+ *$"),t.localMode=d.fencedCodeBlockHighlighting&&(n=o[2]||d.fencedCodeBlockDefaultMode,!O.findModeByName||(s=O.findModeByName(n))&&(n=s.mime||s.mimes[0]),"null"==(n=O.getMode(f,n)).name?null:n),t.localMode&&(t.localState=O.startState(t.localMode)),t.f=t.block=E,d.highlightFormatting&&(t.formatting="code-block"),t.code=-1,M(t)):t.setext||!(u&&a||t.quote||!1!==t.list||t.code||c||w.test(e.string))&&(o=e.lookAhead(1))&&(o=o.match(x))?(t.setext?(t.header=t.setext,t.setext=0,e.skipToEnd(),d.highlightFormatting&&(t.formatting="header")):(t.header="="==o[0].charAt(0)?1:2,t.setext=t.header),t.thisLine.header=!0,t.f=t.inline,M(t)):c?(e.skipToEnd(),t.hr=!0,t.thisLine.hr=!0,p.hr):"["===e.peek()?C(e,t,N):C(e,t,t.inline)}function L(e,t){var n,i=h.token(e,t.htmlState);return r||("xml"==(n=O.innerMode(h,t.htmlState)).mode.name&&null===n.state.tagStart&&!n.state.context&&n.state.tokenize.isInText||t.md_inside&&-1"))&&(t.f=T,t.block=o,t.htmlState=null),i}function E(e,t){var n,i=t.listStack[t.listStack.length-1]||0,r=t.indentation=e.quote?n.push(p.formatting+"-"+e.formatting[i]+"-"+e.quote):n.push("error"))}return e.taskOpen?n.push("meta"):e.taskClosed?n.push("property"):(e.linkHref?n.push(p.linkHref,"url"):(e.strong&&n.push(p.strong),e.em&&n.push(p.em),e.strikethrough&&n.push(p.strikethrough),e.emoji&&n.push(p.emoji),e.linkText&&n.push(p.linkText),e.code&&n.push(p.code),e.image&&n.push(p.image),e.imageAltText&&n.push(p.imageAltText,"link"),e.imageMarker&&n.push(p.imageMarker)),e.header&&n.push(p.header,p.header+"-"+e.header),e.quote&&(n.push(p.quote),!d.maxBlockquoteDepth||d.maxBlockquoteDepth>=e.quote?n.push(p.quote+"-"+e.quote):n.push(p.quote+"-"+d.maxBlockquoteDepth)),!1!==e.list&&((t=(e.listStack.length-1)%3)?1==t?n.push(p.list2):n.push(p.list3):n.push(p.list1)),e.trailingSpaceNewLine?n.push("trailing-space-new-line"):e.trailingSpace&&n.push("trailing-space-"+(e.trailingSpace%2?"a":"b"))),n.length?n.join(" "):null}function t(e,t){if(e.match(n,!0))return M(t)}function T(e,t){var n=t.text(e,t);if(void 0!==n)return n;if(t.list)return t.list=null,M(t);if(t.taskList)return" "===e.match(v,!0)[1]?t.taskOpen=!0:t.taskClosed=!0,d.highlightFormatting&&(t.formatting="task"),t.taskList=!1,M(t);if(t.taskOpen=!1,t.taskClosed=!1,t.header&&e.match(/^#+$/,!0))return d.highlightFormatting&&(t.formatting="header"),M(t);var i=e.next();if(t.linkTitle){t.linkTitle=!1;n="("===i?")":i,n="^\\s*(?:[^"+(n=(n+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+n;if(e.match(new RegExp(n),!0))return p.linkHref}if("`"===i){var r=t.formatting;d.highlightFormatting&&(t.formatting="code"),e.eatWhile("`");var o=e.current().length;if(0!=t.code||t.quote&&1!=o){if(o!=t.code)return t.formatting=r,M(t);var a=M(t);return t.code=0,a}return t.code=o,M(t)}if(t.code)return M(t);if("\\"===i&&(e.next(),d.highlightFormatting)){var s=M(t),l=p.formatting+"-escape";return s?s+" "+l:l}if("!"===i&&e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return t.imageMarker=!0,t.image=!0,d.highlightFormatting&&(t.formatting="image"),M(t);if("["===i&&t.imageMarker&&e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return t.imageMarker=!1,t.imageAltText=!0,d.highlightFormatting&&(t.formatting="image"),M(t);if("]"===i&&t.imageAltText){d.highlightFormatting&&(t.formatting="image");s=M(t);return t.imageAltText=!1,t.image=!1,t.inline=t.f=A,s}if("["===i&&!t.image)return t.linkText&&e.match(/^.*?\]/)||(t.linkText=!0,d.highlightFormatting&&(t.formatting="link")),M(t);if("]"===i&&t.linkText){d.highlightFormatting&&(t.formatting="link");s=M(t);return t.linkText=!1,t.inline=t.f=e.match(/\(.*?\)| ?\[.*?\]/,!1)?A:T,s}if("<"===i&&e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return t.f=t.inline=D,d.highlightFormatting&&(t.formatting="link"),(s=M(t))?s+=" ":s="",s+p.linkInline;if("<"===i&&e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return t.f=t.inline=D,d.highlightFormatting&&(t.formatting="link"),(s=M(t))?s+=" ":s="",s+p.linkEmail;if(d.xml&&"<"===i&&e.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var u=e.string.indexOf(">",e.pos);return-1!=u&&(f=e.string.substring(e.start,u),/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(f)&&(t.md_inside=!0)),e.backUp(1),t.htmlState=O.startState(h),S(e,t,L)}if(d.xml&&"<"===i&&e.match(/^\/\w*?>/))return t.md_inside=!1,"tag";if("*"===i||"_"===i){for(var c=1,r=1==e.pos?" ":e.string.charAt(e.pos-2);c<3&&e.eat(i);)c++;var o=e.peek()||" ",l=!/\s/.test(o)&&(!k.test(o)||/\s/.test(r)||k.test(r)),s=!/\s/.test(r)&&(!k.test(r)||/\s/.test(o)||k.test(o)),u=null,f=null;if(c%2&&(t.em||!l||"*"!==i&&s&&!k.test(r)?t.em!=i||!s||"*"!==i&&l&&!k.test(o)||(u=!1):u=!0),1"!==e.next())return e.match(/^[^>]+/,!0),p.linkInline;t.f=t.inline=T,d.highlightFormatting&&(t.formatting="link");t=M(t);return t?t+=" ":t="",t+p.linkInline}function A(e,t){if(e.eatSpace())return null;var n,e=e.next();return"("===e||"["===e?(t.f=t.inline=(n="("===e?")":"]",function(e,t){if(e.next()!==n)return e.match(a[n]),t.linkHref=!0,M(t);t.f=t.inline=T,d.highlightFormatting&&(t.formatting="link-string");e=M(t);return t.linkHref=!1,e}),d.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,M(t)):"error"}var a={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function N(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=s,e.next(),d.highlightFormatting&&(t.formatting="link"),t.linkText=!0,M(t)):C(e,t,T)}function s(e,t){if(e.match(/^\]:/,!0)){t.f=t.inline=l,d.highlightFormatting&&(t.formatting="link");var n=M(t);return t.linkText=!1,n}return e.match(/^([^\]\\]|\\.)+/,!0),p.linkText}function l(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),t.f=t.inline=T,p.linkHref+" url")}var u={startState:function(){return{f:o,prevLine:{stream:null},thisLine:{stream:null},block:o,htmlState:null,indentation:0,inline:T,text:t,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(e){return{f:e.f,prevLine:e.prevLine,thisLine:e.thisLine,block:e.block,htmlState:e.htmlState&&O.copyState(h,e.htmlState),indentation:e.indentation,localMode:e.localMode,localState:e.localMode?O.copyState(e.localMode,e.localState):null,inline:e.inline,text:e.text,formatting:!1,linkText:e.linkText,linkTitle:e.linkTitle,linkHref:e.linkHref,code:e.code,em:e.em,strong:e.strong,strikethrough:e.strikethrough,emoji:e.emoji,header:e.header,setext:e.setext,hr:e.hr,taskList:e.taskList,list:e.list,listStack:e.listStack.slice(0),quote:e.quote,indentedCode:e.indentedCode,trailingSpace:e.trailingSpace,trailingSpaceNewLine:e.trailingSpaceNewLine,md_inside:e.md_inside,fencedEndRE:e.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return i(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=L)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g," ").length;if(t.indentation=n,t.indentationDiff=null,0[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,d=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,m=/[*+-]\s/,(f=ut).commands.newlineAndIndentContinueMarkdownList=function(e){if(e.getOption("disableInput"))return f.Pass;for(var t=e.listSelections(),n=[],i=0;i\s*$/.test(c),s=!/>\s*$/.test(c),(a||s)&&e.replaceRange("",{line:h.line,ch:0},{line:h.line,ch:h.ch+1}),n[i]="\n"):(c=o[1],a=o[5],o=(s=!(m.test(o[2])||0<=o[2].indexOf(">")))?parseInt(o[3],10)+1+o[4]:o[2].replace("x"," "),n[i]="\n"+c+o+a,s&&function(e){var t=h.line,n=0,i=0,r=p.exec(e.getLine(t)),o=r[1];do{var a=t+(n+=1),s=e.getLine(a),l=p.exec(s);if(l){var u=l[1],c=parseInt(r[3],10)+n-i,f=parseInt(l[3],10),d=f;if(o!==u||isNaN(f)){if(o.length>u.length)return;if(o.length ","")}),$("[data-command=link]",t).addEventListener("click",function(){var e=o.getSelection();/^(https?:\/\/|mailto:)/i.test(e)?l("[","]("+e+")",!0):""!==e?l("["+e+"](http://",")",!0):l("[","](http://)")}),$("[data-command=image]",t).addEventListener("click",function(){ct.show("imagesModal",null,function(e){var t=$(".image-picker-thumbnail.selected",e);t&&t.classList.remove("selected"),$(".image-picker-confirm",e).addEventListener("click",function e(){var t=$(".image-picker-thumbnail.selected",$("#imagesModal")).getAttribute("data-filename");void 0!==t?l(s()+"![","]("+t+")"):l(s()+"![](",")"),this.removeEventListener("click",e)})})}),$("[data-command=summary]",t).addEventListener("click",function(){var e;n()||(l((void 0===(e=a())||"\n"===e?"":"\n")+"\n===\n\n",""),this.setAttribute("disabled",""))}),$("[data-command=undo]",t).addEventListener("click",function(){o.undo(),o.focus()}),$("[data-command=redo]",t).addEventListener("click",function(){o.redo(),o.focus()}),r(),o.on("changes",x.debounce(function(){e.value=o.getValue(),r(),o.historySize().undo<1?$("[data-command=undo]").setAttribute("disabled",""):$("[data-command=undo]").removeAttribute("disabled"),o.historySize().redo<1?$("[data-command=redo]").setAttribute("disabled",""):$("[data-command=redo]").removeAttribute("disabled")},500)),o.on("beforeSelectionChange",function(e,t){var n=function(e){var t,n=[];for(t=0;t