diff --git a/panel/assets/css/panel-dark.min.css b/panel/assets/css/panel-dark.min.css index 0270274b..df70f833 100644 --- a/panel/assets/css/panel-dark.min.css +++ b/panel/assets/css/panel-dark.min.css @@ -1 +1 @@ -html{font-size:100%;-webkit-text-size-adjust:100%}body{margin:0;background-color:#1f2123;color:#f2f2f3;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.5;-webkit-tap-highlight-color:rgba(242,242,243,0)}*{box-sizing:border-box}main{display:block}a{background-color:rgba(0,0,0,0);color:#1e88e5;outline-color:rgba(4,138,255,.375);text-decoration:none;transition:color 150ms}a:hover{color:#186db7}a:not([href]){cursor:default}img{max-width:100%;border-style:none}mark{background-color:gold}[hidden]{display:none}.focused{box-shadow:0 0 0 2px rgba(4,138,255,.375)}::selection{background-color:rgba(30,136,229,.25)}::placeholder{color:#979ca1}@media(min-width: 600px){.hide-from-xs{display:none}}@media(max-width: 599px){.show-from-xs{display:none}}@media(min-width: 768px){.hide-from-s{display:none}}@media(max-width: 767px){.show-from-s{display:none}}@media(min-width: 1024px){.hide-from-m{display:none}}@media(max-width: 1023px){.show-from-m{display:none}}@media(min-width: 1280px){.hide-from-l{display:none}}@media(max-width: 1279px){.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:500;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{padding:0;margin-top:0;margin-bottom:.5rem;margin-left:1.25rem;list-style-position:outside}.container,.container-full,.container-no-margin{padding:0 15px;margin:0 auto}.container{max-width:1280px}.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{width:100%;padding:0 15px}.col-xs{width:auto;max-width:100%;flex:1 0 auto}.col-xs-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-xs-2-12,.col-xs-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-xs-3-12,.col-xs-1-4{max-width:25%;flex:0 0 25%}.col-xs-4-12,.col-xs-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-xs-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-xs-6-12,.col-xs-1-2{max-width:50%;flex:0 0 50%}.col-xs-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-xs-8-12,.col-xs-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-xs-9-12,.col-xs-3-4{max-width:75%;flex:0 0 75%}.col-xs-10-12,.col-xs-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-xs-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-xs-12-12,.col-xs-1-1{max-width:100%;flex:0 0 100%}@media(min-width: 768px){.col-s{width:auto;max-width:100%;flex:1 0 auto}.col-s-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-s-2-12,.col-s-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-s-3-12,.col-s-1-4{max-width:25%;flex:0 0 25%}.col-s-4-12,.col-s-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-s-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-s-6-12,.col-s-1-2{max-width:50%;flex:0 0 50%}.col-s-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-s-8-12,.col-s-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-s-9-12,.col-s-3-4{max-width:75%;flex:0 0 75%}.col-s-10-12,.col-s-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-s-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-s-12-12,.col-s-1-1{max-width:100%;flex:0 0 100%}}@media(min-width: 1024px){.col-m{width:auto;max-width:100%;flex:1 0 auto}.col-m-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-m-2-12,.col-m-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-m-3-12,.col-m-1-4{max-width:25%;flex:0 0 25%}.col-m-4-12,.col-m-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-m-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-m-6-12,.col-m-1-2{max-width:50%;flex:0 0 50%}.col-m-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-m-8-12,.col-m-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-m-9-12,.col-m-3-4{max-width:75%;flex:0 0 75%}.col-m-10-12,.col-m-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-m-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-m-12-12,.col-m-1-1{max-width:100%;flex:0 0 100%}}@media(min-width: 1280px){.col-l{width:auto;max-width:100%;flex:1 0 auto}.col-l-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-l-2-12,.col-l-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-l-3-12,.col-l-1-4{max-width:25%;flex:0 0 25%}.col-l-4-12,.col-l-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-l-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-l-6-12,.col-l-1-2{max-width:50%;flex:0 0 50%}.col-l-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-l-8-12,.col-l-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-l-9-12,.col-l-3-4{max-width:75%;flex:0 0 75%}.col-l-10-12,.col-l-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-l-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-l-12-12,.col-l-1-1{max-width:100%;flex:0 0 100%}}button,.button{display:inline-block;overflow:visible;min-width:2rem;padding:.375rem .5rem;border:1px solid #333638;border-radius:4px;margin-right:.25rem;margin-bottom:.5rem;background-color:#333638;box-shadow:0 1px 0 rgba(242,242,243,.25);color:#f2f2f3;cursor:default;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:.875rem;font-weight:500;line-height:1.15;outline:none;transition:border-color 150ms,background-color 150ms,color 150ms;white-space:nowrap;-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:#4b4f53;background-color:#4b4f53;color:#f2f2f3}button:focus,.button:focus{box-shadow:0 0 0 2px rgba(242,242,243,.375)}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;box-shadow:none;color:#4b4f53;pointer-events:none}button.active,.button.active{border-color:#4b4f53;background-color:#4b4f53}button .icon,.button .icon{display:inline-block;margin-right:.25rem}a.button{text-align:center}.button-right{margin-right:0;margin-left:.25rem;float:right}.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,.375)}.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(46,204,112,.375)}.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(243,156,17,.375)}.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(231,76,59,.375)}.button-link{border:0;margin:0;background-color:rgba(0,0,0,0);box-shadow:none;cursor:pointer;font-size:inherit}.button-link:hover,.button-link:focus{background-color:rgba(0,0,0,0);color:#1e88e5}.button-link:focus{box-shadow:0 0 0 2px rgba(4,138,255,.375)}.button-link[disabled],.button-link[disabled]:hover,.button-link.disabled,.button-link.disabled:hover{background-color:rgba(0,0,0,0);cursor:default}.button-link .icon{margin-right:0}input,textarea,select{display:inline-block;width:100%;padding:.25rem .5rem;border:1px solid #4b4f53;border-radius:4px;margin:0;margin-bottom:.5rem;background-color:#181a1b;color:#f2f2f3;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:.875rem;line-height:1.5;-webkit-appearance:none;-moz-appearance:none}input:focus,textarea:focus,select:focus{border-color:#1e88e5;outline:none;box-shadow:0 0 0 2px rgba(4,138,255,.375)}input[disabled],textarea[disabled],select[disabled]{background-color:#292b2e;color:#979ca1}input[readonly],textarea[readonly],select[readonly]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}input[type=checkbox],textarea[type=checkbox],select[type=checkbox],input[type=radio],textarea[type=radio],select[type=radio]{width:auto;height:inherit;padding:0;margin-bottom:0;vertical-align:text-top}input[type=checkbox]:focus,textarea[type=checkbox]:focus,select[type=checkbox]:focus,input[type=radio]:focus,textarea[type=radio]:focus,select[type=radio]:focus{box-shadow:none}input[type=file],textarea[type=file],select[type=file]{padding:0;border:none;border-radius:0}input[type=file]::-webkit-file-upload-button,textarea[type=file]::-webkit-file-upload-button,select[type=file]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}input[type=number]::-webkit-inner-spin-button,textarea[type=number]::-webkit-inner-spin-button,select[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button,textarea[type=number]::-webkit-outer-spin-button,select[type=number]::-webkit-outer-spin-button{height:auto}input[type=search],textarea[type=search],select[type=search]{max-width:28rem;padding-left:2rem;background:#181a1b url('data:image/svg+xml;utf8,') no-repeat left .5rem top .375rem;background-size:1rem 1rem}input[type=search]::-webkit-search-cancel-button,textarea[type=search]::-webkit-search-cancel-button,select[type=search]::-webkit-search-cancel-button{display:none}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:rgba(0,0,0,0);text-shadow:0 0 0 #f2f2f3}textarea{overflow:auto;height:5.75rem;min-height:3.125rem;max-height:16.25rem;resize:vertical}.input-large{font-size:1.125rem}.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;margin-bottom:.5rem}.input-wrap input,.input-wrap select,.input-wrap textarea{padding-right:1.625rem;margin-bottom:0}.input-reset{position:absolute;top:50%;right:.5rem;color:#f2f2f3;transform:translateY(-50%);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:"*"}.input-array{margin-bottom:.5rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.input-array .sort-handle .icon{vertical-align:middle}.input-array-row{display:flex;padding:.25rem .5rem;margin:0 -0.5rem;white-space:nowrap}.input-array-key,.input-array-value{display:inline-block;margin-bottom:0}.input-array-key{width:30%;margin-right:.25rem}.input-array-value{margin-right:.25rem}.input-array-add,.input-array-remove{min-width:1rem;padding:0;margin-right:.25rem}.input-checkbox{position:absolute;opacity:0}.input-checkbox+.input-checkbox-text::before{position:relative;top:.125rem;display:inline-block;width:1rem;height:1rem;box-sizing:border-box;border:1px solid #4b4f53;border-radius:4px;margin-right:.5rem;content:" ";transition:border-color 150ms,background-color 150ms}.input-checkbox+.input-checkbox-text:hover::before,.input-checkbox[disabled]+.input-checkbox-text::before{background-color:#1f2123}.input-checkbox:checked+.input-checkbox-text::before{border-color:#1e88e5;background-color:#1e88e5}.input-checkbox:focus+.input-checkbox-text::before{border-color:#1e88e5;box-shadow:0 0 0 2px rgba(4,138,255,.375)}.input-checkbox:checked+.input-checkbox-text:hover::before{border-color:#186db7;background-color:#186db7}.input-checkbox:checked+.input-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:" "}.input-checkbox:checked[disabled]+.input-checkbox-text::before{border-color:#4b4f53;background-color:#4b4f53}.input-checkbox-label{position:relative;line-height:1.5}.input-date{cursor:default}.calendar{position:absolute;z-index:8;top:100%;display:none;width:18rem;padding:.5rem;border:1px solid #4b4f53;border-radius:4px;margin:3px 1rem 1rem;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 button{width:33.3%;padding:0 .5rem;border:0;margin:0;background-color:rgba(0,0,0,0);box-shadow:none;color:#f2f2f3;cursor:pointer;font-size:.875rem;outline:none}.calendar button:hover{color:#1e88e5}.calendar button:focus{box-shadow:none}.calendar-buttons .currentMonth{font-weight:600}.calendar-table{width:100%}.calendar-table td{width:14%;cursor:default;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.calendar-time{width:50%;margin:0 auto;text-align:center}.calendar-header-day{font-size:.875rem}.calendar-day{border-radius:4px;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{height:0;border-top:1px solid #4b4f53;margin:.5rem -0.5rem}.input-duration{box-sizing:border-box;padding:.25rem .25rem;border:1px solid #4b4f53;border-radius:4px;margin-top:0;margin-bottom:.5rem;font-size:.875rem;line-height:1.5;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.input-duration.focused{border-color:#1e88e5}.input-duration>span{text-align:center}.input-duration input,.input-duration select,.input-duration textarea{width:2rem;padding:0;border:0;margin:0;-moz-appearance:textfield;background-color:#292b2e;text-align:center;vertical-align:baseline}.input-duration input::-webkit-inner-spin-button,.input-duration select::-webkit-inner-spin-button,.input-duration textarea::-webkit-inner-spin-button,.input-duration input::-webkit-outer-spin-button,.input-duration select::-webkit-outer-spin-button,.input-duration textarea::-webkit-outer-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none}.input-duration input:focus,.input-duration select:focus,.input-duration textarea:focus{box-shadow:none}.input-duration label{padding:0 .5rem;margin:0}.input-duration-hidden{display:none}.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;background-color:#1f2123;border-top-left-radius:4px;border-top-right-radius:4px;font-size:0}.toolbar-button{padding:.5rem;border:0;margin-bottom:0;background-color:#1f2123;box-shadow:none}.toolbar-button:hover,.toolbar-button:focus{background-color:rgba(0,0,0,0);color:#1e88e5}.toolbar-button:focus{box-shadow:0 0 0 2px rgba(4,138,255,.375)}.toolbar-button .icon{margin-right:0}.editor-textarea{min-height:24rem;padding:.75rem 1rem;border:1px solid #4b4f53;border-radius:4px;margin-bottom:.5rem;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:1rem}.editor-textarea:focus{box-shadow:none}.CodeMirror{min-height:24rem;padding:0 1rem;border:1px solid #4b4f53;border-radius:4px;margin-bottom:.5rem;background:#181a1b;color:#f2f2f3;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:1rem}.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}.editor-wrap{border-radius:4px}.editor-wrap.focused .editor-toolbar,.editor-wrap.focused .CodeMirror{border-color:#1e88e5}.CodeMirror-cursor{border-left-color:#f2f2f3}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler{background-color:inherit}.CodeMirror-selected{background:rgba(0,0,0,0)}.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-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono",Menlo,Consolas,monospace;font-size:.875rem}.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{padding-left:1.25rem;background:#181a1b url('data:image/svg+xml;utf8,') no-repeat left center;background-size:1rem 1rem}.cm-s-formwork .CodeMirror-activeline .cm-formatting-quote+.cm-quote{padding-left:0;background:rgba(0,0,0,0)}.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 0 1.5rem;border-radius:4px;background:#181a1b url('data:image/svg+xml;utf8,') no-repeat left .25rem center;background-color:#292b2e;background-size:1rem 1rem;color:#f2f2f3}.cm-s-formwork .CodeMirror-activeline .cm-image~.cm-url:not(.cm-formatting){padding:0;background:rgba(0,0,0,0);color:#979ca1}.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-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono",Menlo,Consolas,monospace;font-size:.875rem}.input-file{display:none}.input-file-label{display:block;padding:.5rem;margin-bottom:1rem;background-color:#1f2123;clear:both}.input-file-label>span{display:block;padding:1.5rem 1rem;border:2px dashed #4b4f53;color:#f2f2f3;text-align:center;transition:background-color 300ms}.input-file-label.drag>span{background-color:#181a1b}.input-image{cursor:default}.image-picker-thumbnails{overflow:auto;height:15rem;padding:.5rem;margin-bottom:1rem}.image-picker-thumbnail{position:relative;display:inline-block;width:8rem;height:8rem;box-sizing:border-box;padding:.5rem;border:1px solid #4b4f53;margin:.25rem;background-origin:content-box;background-position:center;background-repeat:no-repeat;background-size:contain}.image-picker-thumbnail::after{position:absolute;right:.75rem;bottom:.5rem;left:.75rem;display:block;padding:0 .375rem;border-radius:4px;background-color:rgba(51,54,56,.9);content:attr(data-filename);font-size:.75rem;text-align:center;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,.375)}.image-picker-empty-state{margin:3rem auto 4rem;text-align:center}.image-picker-empty-state-icon{color:#7c8288;font-size:2rem}input[type=range],select[type=range],textarea[type=range]{width:15rem;padding:.875rem 0;border:0;-webkit-appearance:none;-moz-appearance:none}input[type=range]::-webkit-slider-runnable-track,select[type=range]::-webkit-slider-runnable-track,textarea[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,select[type=range]::-webkit-slider-thumb,textarea[type=range]::-webkit-slider-thumb{width:1rem;height:1rem;border:0;border-radius:50%;margin-top:-0.375rem;background-color:#1e88e5;transition:background-color 150ms;-webkit-appearance:none;-moz-appearance:none}input[type=range]::-moz-range-track,select[type=range]::-moz-range-track,textarea[type=range]::-moz-range-track{width:100%;height:.25rem;border:0;border-radius:.125rem;background-color:#333638}input[type=range]::-moz-range-thumb,select[type=range]::-moz-range-thumb,textarea[type=range]::-moz-range-thumb{width:1rem;height:1rem;border:0;border-radius:50%;background-color:#1e88e5;cursor:default}input[type=range]::-ms-track,select[type=range]::-ms-track,textarea[type=range]::-ms-track{width:100%;height:.25rem;border-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0);color:rgba(0,0,0,0);cursor:default}input[type=range]::-ms-fill-lower,select[type=range]::-ms-fill-lower,textarea[type=range]::-ms-fill-lower,input[type=range]::-ms-fill-upper,select[type=range]::-ms-fill-upper,textarea[type=range]::-ms-fill-upper{border:0;border-radius:.125rem;background:#333638;box-shadow:none}input[type=range]::-ms-thumb,select[type=range]::-ms-thumb,textarea[type=range]::-ms-thumb{width:1rem;height:1rem;border:0;border-radius:50%;margin-top:0;background-color:#1e88e5;cursor:default}input[type=range]:focus,select[type=range]:focus,textarea[type=range]:focus{box-shadow:none}input[type=range]:hover::-webkit-slider-thumb,select[type=range]:hover::-webkit-slider-thumb,textarea[type=range]:hover::-webkit-slider-thumb{background-color:#186db7}input[type=range][disabled],select[type=range][disabled],textarea[type=range][disabled]{background-color:rgba(0,0,0,0)}input[type=range][disabled]::-webkit-slider-thumb,select[type=range][disabled]::-webkit-slider-thumb,textarea[type=range][disabled]::-webkit-slider-thumb,input[type=range][disabled]::-moz-range-thumb,select[type=range][disabled]::-moz-range-thumb,textarea[type=range][disabled]::-moz-range-thumb,input[type=range][disabled]::-ms-thumb,select[type=range][disabled]::-ms-thumb,textarea[type=range][disabled]::-ms-thumb{background-color:#979ca1}input[type=range]:focus::-webkit-slider-thumb,select[type=range]:focus::-webkit-slider-thumb,textarea[type=range]:focus::-webkit-slider-thumb{background-color:#186db7;box-shadow:0 0 0 2px rgba(4,138,255,.375)}input[type=range]:focus::-moz-range-thumb,select[type=range]:focus::-moz-range-thumb,textarea[type=range]:focus::-moz-range-thumb{background-color:#186db7;box-shadow:0 0 0 2px rgba(4,138,255,.375)}input[type=range]:focus::-ms-thumb,select[type=range]:focus::-ms-thumb,textarea[type=range]:focus::-ms-thumb{background-color:#186db7;box-shadow:0 0 0 2px rgba(4,138,255,.375)}.input-range-value{padding:0 .5rem;font-size:.875rem;vertical-align:.1875rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.input-tag{position:relative;display:block;box-sizing:border-box;padding:.25rem .25rem;padding-bottom:0;border:1px solid #4b4f53;border-radius:4px;margin-top:0;margin-bottom:.5rem;font-size:.875rem;line-height:1.5;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.input-tag.focused{border-color:#1e88e5}.tag-inner-input{display:inline-block;width:auto;max-width:100%;box-sizing:border-box;padding:0 .25rem;border:0;border-radius:0;margin-bottom:.25rem;font-family:inherit;font-size:.875rem;line-height:inherit;outline:none}.tag-inner-input:focus{box-shadow:none}.input-tag-hidden{display:none}.input-tag .tag{display:inline-block;box-sizing:border-box;padding:0 .375rem;border-radius:4px;margin-bottom:.25rem;background-color:#292b2e;cursor:default;font-size:.875rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.input-tag.disabled,.input-tag.disabled .tag-inner-input{background-color:#1f2123}.input-tag.disabled .tag{background-color:#333638}.tag-remove{display:inline-block;padding:0 .125rem;margin-left:.25rem;color:#f2f2f3;font-style:normal;transition:color 150ms}.tag-remove:hover{color:#1e88e5}.tag-remove::after{content:"×";font-weight:600}.input-togglegroup{display:inline-block;border:1px solid #4b4f53;border-radius:4px;margin:0;margin-bottom:.5rem;font-size:0}.input-togglegroup:focus-within{border-color:#1e88e5;box-shadow:0 0 0 2px rgba(4,138,255,.375)}.input-togglegroup label{margin:0}.input-togglegroup input[type=radio],.input-togglegroup select[type=radio],.input-togglegroup textarea[type=radio]{position:absolute;opacity:0}.input-togglegroup input[type=radio]+span,.input-togglegroup select[type=radio]+span,.input-togglegroup textarea[type=radio]+span{display:inline-block;padding:.25rem .75rem;border-radius:3px;font-size:.875rem;transition:background-color 150ms,color 150ms}.input-togglegroup input[type=radio]:hover+span,.input-togglegroup select[type=radio]:hover+span,.input-togglegroup textarea[type=radio]:hover+span{background-color:#1f2123}.input-togglegroup input[type=radio]:checked+span,.input-togglegroup select[type=radio]:checked+span,.input-togglegroup textarea[type=radio]:checked+span{background-color:#1e88e5;color:#fff}.input-togglegroup input[type=radio]:focus+span,.input-togglegroup select[type=radio]:focus+span,.input-togglegroup textarea[type=radio]:focus+span{background-color:#186db7}.input-togglegroup[disabled] input[type=radio]+span,.input-togglegroup[disabled] select[type=radio]+span,.input-togglegroup[disabled] textarea[type=radio]+span{background-color:rgba(0,0,0,0);color:#f2f2f3}.input-togglegroup[disabled] input[type=radio]:checked+span,.input-togglegroup[disabled] select[type=radio]:checked+span,.input-togglegroup[disabled] textarea[type=radio]:checked+span{background-color:#333638}.input-togglegroup input[type=radio]:checked:hover+span,.input-togglegroup select[type=radio]:checked:hover+span,.input-togglegroup textarea[type=radio]:checked:hover+span{background-color:#186db7}.dropdown{position:relative;display:inline-block;margin-bottom:.5rem}.dropdown-button{margin-bottom:0}.dropdown-button::after{display:inline-block;height:0;margin-left:.25rem;content:" ";vertical-align:.125rem;border-top:.25rem solid;border-right:.25rem solid rgba(0,0,0,0);border-left:.25rem solid rgba(0,0,0,0)}.dropdown-menu,.dropdown-list{position:absolute;z-index:8;top:100%;left:0;display:none;min-width:8rem;padding:.25rem 0;border:1px solid #4b4f53;border-radius:4px;margin-top:3px;background-color:#181a1b;box-shadow:1px 1px .75rem 0 rgba(0,0,0,.25);float:left}.dropdown-list{width:100%;max-height:10.15625rem;overflow-y:scroll}.dropdown-item{display:block;width:100%;padding:.25rem 1rem;color:#f2f2f3;font-size:.875rem;white-space:nowrap}.dropdown-item:hover{background-color:#292b2e;color:#f2f2f3}.dropdown-item.selected{background-color:#1e88e5;color:#fff}.dropdown-separator{height:0;border-top:1px solid #4b4f53;margin:.25rem 0}.files-list{padding:0;margin:0;margin-bottom:1rem;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;font-size:.875rem;white-space:nowrap}.file-name{max-width:80%;flex:0 0 80%;font-size:.9375rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-name .icon{margin-right:.5rem;color:#f2f2f3}.file-size{color:#979ca1}.file-actions{max-width:20%;flex:0 0 20%;font-size:1rem;text-align:right}.tabs{padding:2px 2px 0;border-bottom:1px solid #333638;margin-bottom:1rem;overflow-x:auto;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;z-index:16;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.75)}.modal{position:fixed;z-index:20;top:0;right:0;bottom:0;left:0;display:none;align-items:center;outline:0}.modal.show{display:flex}.modal-content{max-width:26rem;padding:2rem;border-radius:4px;margin:3rem .5rem;background-color:#181a1b}@media(min-width: 26rem){.modal-content{margin:3rem auto}}.modal-size-large{width:40rem;max-width:40rem}@media(max-width: 40rem){.modal-size-large{margin:3rem .5rem}}.modal-error{padding:1rem;margin:-2rem -2rem 1rem -2rem;background-color:#e74c3b;color:#181a1b}.modal-text{margin-bottom:2.5rem}.notification-container{position:fixed;z-index:12;top:20px;right:20px}.notification{position:relative;overflow:hidden;width:350px;padding:1.5rem 2.5rem;border-radius:4px;margin-bottom:.5rem;animation:fadeInRight 300ms cubic-bezier(0.4, 0, 0.2, 1);background-color:#292b2e;box-shadow:1px 1px .75rem 0 rgba(0,0,0,.25);cursor:default;text-overflow:ellipsis;transition:top 300ms ease-in,opacity 150ms}.notification:hover{opacity:.95}.notification.fadeout{animation:fadeOutRight 300ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}.notification .icon{position:absolute;top:50%;left:1rem;display:block;width:16px;height:16px;color:#fff;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:#25a35a;color:#fff}.notification-warning{background-color:#c27d0e;color:#fff}.notification-error{background-color:#b93d2f;color:#fff}.tooltip{position:absolute;z-index:20;display:none;min-width:2rem;padding:.25rem .5rem;border-radius:4px;background-color:rgba(242,242,243,.8);color:#181a1b;font-size:.75rem;pointer-events:none;text-align:center}.spinner{position:relative;display:inline-block;width:1.5rem;height:1.5rem;border-width:.2rem;border-style:solid;border-color:#1e88e5;border-radius:50%;border-bottom-color:rgba(0,0,0,0);border-left-color:rgba(0,0,0,0);margin-right:.75rem;animation:750ms spin infinite linear;text-align:center;transition:border 500ms;transition-timing-function:ease-out;vertical-align:-0.375rem}.spinner .icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.spinner-info{border-color:#1e88e5;animation:none;color:#1e88e5}.spinner-success{border-color:#2ecc70;animation:none;color:#2ecc70}.spinner-error{border-color:#e74c3b;animation:none;color:#e74c3b}.ct-label{color:rgba(0, 0, 0, 40%);fill:rgba(0, 0, 0, 40%);font-size:.75rem;line-height:1}.ct-chart-bar .ct-label,.ct-chart-line .ct-label{display:flex}.ct-chart-donut .ct-label,.ct-chart-pie .ct-label{dominant-baseline:central}.ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:flex-start;text-align:left}.ct-label.ct-vertical.ct-start{align-items:flex-end;justify-content:flex-end;text-align:right}.ct-label.ct-vertical.ct-end{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-chart-bar .ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:center;text-align:center}.ct-chart-bar .ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:center;text-align:center}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:flex-start;text-align:left}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start{align-items:center;justify-content:flex-end;text-align:right}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end{align-items:center;justify-content:flex-start;text-align:left}.ct-grid{stroke:rgba(0, 0, 0, 20%);stroke-dasharray:2px;stroke-width:1px}.ct-grid-background{fill:none}.ct-point{stroke-linecap:round;stroke-width:10px}.ct-line{fill:none;stroke-width:4px}.ct-area{fill-opacity:.1;stroke:none}.ct-bar{fill:none;stroke-width:10px}.ct-slice-donut{fill:none;stroke-width:60px}.ct-series-a .ct-bar,.ct-series-a .ct-line,.ct-series-a .ct-point,.ct-series-a .ct-slice-donut{stroke:#d70206}.ct-series-a .ct-area,.ct-series-a .ct-slice-pie{fill:#d70206}.ct-series-b .ct-bar,.ct-series-b .ct-line,.ct-series-b .ct-point,.ct-series-b .ct-slice-donut{stroke:#f05b4f}.ct-series-b .ct-area,.ct-series-b .ct-slice-pie{fill:#f05b4f}.ct-series-c .ct-bar,.ct-series-c .ct-line,.ct-series-c .ct-point,.ct-series-c .ct-slice-donut{stroke:#f4c63d}.ct-series-c .ct-area,.ct-series-c .ct-slice-pie{fill:#f4c63d}.ct-series-d .ct-bar,.ct-series-d .ct-line,.ct-series-d .ct-point,.ct-series-d .ct-slice-donut{stroke:#d17905}.ct-series-d .ct-area,.ct-series-d .ct-slice-pie{fill:#d17905}.ct-series-e .ct-bar,.ct-series-e .ct-line,.ct-series-e .ct-point,.ct-series-e .ct-slice-donut{stroke:#453d3f}.ct-series-e .ct-area,.ct-series-e .ct-slice-pie{fill:#453d3f}.ct-series-f .ct-bar,.ct-series-f .ct-line,.ct-series-f .ct-point,.ct-series-f .ct-slice-donut{stroke:#59922b}.ct-series-f .ct-area,.ct-series-f .ct-slice-pie{fill:#59922b}.ct-series-g .ct-bar,.ct-series-g .ct-line,.ct-series-g .ct-point,.ct-series-g .ct-slice-donut{stroke:#0544d3}.ct-series-g .ct-area,.ct-series-g .ct-slice-pie{fill:#0544d3}.ct-series-h .ct-bar,.ct-series-h .ct-line,.ct-series-h .ct-point,.ct-series-h .ct-slice-donut{stroke:#6b0392}.ct-series-h .ct-area,.ct-series-h .ct-slice-pie{fill:#6b0392}.ct-series-i .ct-bar,.ct-series-i .ct-line,.ct-series-i .ct-point,.ct-series-i .ct-slice-donut{stroke:#e6805e}.ct-series-i .ct-area,.ct-series-i .ct-slice-pie{fill:#e6805e}.ct-series-j .ct-bar,.ct-series-j .ct-line,.ct-series-j .ct-point,.ct-series-j .ct-slice-donut{stroke:#dda458}.ct-series-j .ct-area,.ct-series-j .ct-slice-pie{fill:#dda458}.ct-series-k .ct-bar,.ct-series-k .ct-line,.ct-series-k .ct-point,.ct-series-k .ct-slice-donut{stroke:#eacf7d}.ct-series-k .ct-area,.ct-series-k .ct-slice-pie{fill:#eacf7d}.ct-series-l .ct-bar,.ct-series-l .ct-line,.ct-series-l .ct-point,.ct-series-l .ct-slice-donut{stroke:#86797d}.ct-series-l .ct-area,.ct-series-l .ct-slice-pie{fill:#86797d}.ct-series-m .ct-bar,.ct-series-m .ct-line,.ct-series-m .ct-point,.ct-series-m .ct-slice-donut{stroke:#b2c326}.ct-series-m .ct-area,.ct-series-m .ct-slice-pie{fill:#b2c326}.ct-series-n .ct-bar,.ct-series-n .ct-line,.ct-series-n .ct-point,.ct-series-n .ct-slice-donut{stroke:#6188e2}.ct-series-n .ct-area,.ct-series-n .ct-slice-pie{fill:#6188e2}.ct-series-o .ct-bar,.ct-series-o .ct-line,.ct-series-o .ct-point,.ct-series-o .ct-slice-donut{stroke:#a748ca}.ct-series-o .ct-area,.ct-series-o .ct-slice-pie{fill:#a748ca}.ct-chart{position:relative;display:block;width:100%;height:14rem;-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);white-space:pre-wrap}.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;width:auto !important;min-width:3rem;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 .icon{display:inline-block;margin:0 .25rem}.ct-legend-label.ct-series-a .icon{color:#1e88e5}.ct-legend-label.ct-series-b .icon{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%,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{max-width:24rem;padding:2rem;border-radius:4px;margin:3rem .5rem;background-color:#181a1b;box-shadow:0 0 .75rem -0.125rem rgba(0,0,0,.05)}@media(min-width: 24rem){.login-modal-container{margin:3rem auto}}.login-modal-info,.login-modal-success,.login-modal-warning,.login-modal-error{position:relative;padding:1rem 2rem 1rem 3.5rem;margin:-2rem -2rem 1rem -2rem;border-top-left-radius:4px;border-top-right-radius:4px}.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 .icon,.login-modal-success .icon,.login-modal-warning .icon,.login-modal-error .icon{position:absolute;top:50%;left:1rem;display:block;transform:translate(0, -50%)}.login-modal-info{background-color:#1e88e5;color:#fff}.login-modal-success{background-color:#25a35a;color:#fff}.login-modal-warning{background-color:#f39c11;color:#fff}.login-modal-error{background-color:#e74c3b;color:#fff}.title-bar{position:fixed;z-index:8;top:0;right:0;left:0;padding:1rem;padding-left:4rem;background-color:#292b2e;box-shadow:0 0 .75rem -0.125rem 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:16rem;padding-left:1.5rem}}.panel-title{float:left}.view-site{color:#f2f2f3;float:right}.view-site:hover{color:#1e88e5}.view-site i{margin-left:.5rem}.sidebar{position:fixed;z-index:10;top:0;bottom:0;left:0;width:16rem;padding:1rem 1.5rem;background:linear-gradient(to bottom, hsl(208deg, 5%, 10%) 0%, hsl(208deg, 5%, 13%) 100%);background-color:#181a1b;box-shadow:0 0 .75rem -0.125rem 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{height:calc(100% - 9rem);overflow-y:auto}.toggle-navigation{position:fixed;z-index:12;top:.75rem;left:.75rem;border:none;margin:0;background-color:rgba(0,0,0,0);box-shadow:none;cursor:pointer;font-size:1rem}.toggle-navigation:hover{background-color:rgba(0,0,0,0);box-shadow:none;color:#1e88e5}.toggle-navigation:focus{background-color:rgba(0,0,0,0);box-shadow:none}.logo{margin-bottom:2rem;color:#f2f2f3;font-size:1.184rem;font-weight:600;line-height:1.5rem;text-align:center}@media(min-width: 768px){.logo{text-align:left}}.logo img{height:1.5rem;margin-right:.25rem;vertical-align:-0.25rem}.logo a{padding-top:2px;color:#f2f2f3}.sidebar-navigation{padding:0;margin:0;margin-bottom:1rem;list-style-type:none}.sidebar-navigation:last-child{margin-bottom:0}.sidebar-navigation>li{position:relative;padding:.25rem 0;padding-left:1rem;margin:0;margin-bottom:.5rem}.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:" "}.panel-user-card{display:flex;align-items:center;margin-bottom:2rem;cursor:pointer}.panel-user-avatar{width:48px}.panel-user-avatar img{width:48px;border-radius:50%;transition:box-shadow 300ms ease-out}.panel-user-card:hover .panel-user-avatar img{box-shadow:0 0 0 .5rem #333638}.panel-user-details{padding:0 .75rem}.panel-user-fullname{color:#f2f2f3}.panel-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:17.875rem}}.component{padding:1.5rem;border-radius:4px;margin-bottom:1rem;background-color:#181a1b;box-shadow:0 0 .75rem -0.125rem rgba(0,0,0,.05)}.component::before,.component::after{display:table;content:""}.component::after{clear:both}.caption{margin-bottom:1rem;font-size:.9375rem;font-weight:500;letter-spacing:1px;text-transform:uppercase;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.separator{height:.5rem}.separator-l{height:1rem}.section{margin-bottom:1rem}.section-header{padding:.25rem .5rem;border-bottom:1px solid #333638;margin-bottom:.5rem;font-size:1rem;font-weight:600;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.icon{display:inline-block;width:1em;min-width:16px;height:1em;min-height:16px;vertical-align:-0.125rem}.section-toggle .icon{transition:transform 150ms}.section.collapsed .section-toggle .icon{transform:rotate(180deg)}.section.collapsed .section-content{display:none}.sort-handle{display:inline-block;margin-bottom:0;color:#979ca1;cursor:grab}.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{padding:0;margin: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;min-width:auto;padding:0;border-color:rgba(0,0,0,0);margin:0 .25rem .125rem 0;background-color:rgba(0,0,0,0);box-shadow:none;cursor:pointer}.page-children-toggle:hover,.page-children-toggle:focus{border-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0)}.page-children-toggle:focus{box-shadow:0 0 0 2px rgba(4,138,255,.375)}.page-children-toggle .icon{margin-right:0;transition:transform 150ms}.toggle-expanded .icon{transform:rotate(-180deg)}.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{padding:2px;margin:-2px;font-size:1rem}.page-language{display:inline-block;min-width:1.125rem;padding:.125rem .25rem;border-radius:4px;background-color:#d2e7fa;color:#1e88e5;font-size:.875rem;font-weight:600;line-height:1;text-align:center}button .page-language,.button .page-language{font-size:.75rem}.page-route{color:#979ca1;font-size:.875rem}.page-route-changeable{padding:2px;margin:-2px}.page-status .icon{display:inline-block;margin-right:.375rem}.page-status-published .icon{color:#2ecc70}.page-status-not-published .icon{color:#e74c3b}.page-status-not-routable .icon{color:#f39c11}.page-date,.page-status,.page-actions{display:none}.page-actions .button-link{font-size:1rem}@media(min-width: 600px){.pages-item,.pages-list-headers{display:flex;align-items:center}.pages-item-cell,.pages-headers-cell{display:block}.page-details{max-width:55%;flex:0 0 55%}.page-date,.page-status,.page-actions{max-width:15%;flex:0 0 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-info{padding:0 .25rem;margin-bottom:.75rem}.page-info>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-slug-change{padding:0;border-color:rgba(0,0,0,0);margin:0;background-color:rgba(0,0,0,0);box-shadow:none;color:#979ca1;cursor:pointer}.page-slug-change:hover,.page-slug-change:focus{border-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0);color:#979ca1}.page-slug-change:focus{box-shadow:0 0 0 2px rgba(4,138,255,.375)}.page-slug-change .icon{display:inline-block;margin-right:0;color:#f2f2f3;opacity:0;transition:opacity 150ms}.page-slug-change:hover .icon,.page-slug-change:focus .icon{opacity:1}.dragging [data-sortable=false] .pages-item:hover{background-color:#fce8e5;cursor:no-drop}.options-form .input-checkbox-label{margin-bottom:.5rem;font-size:1rem}.info-data{width:100%;margin-bottom:1rem;table-layout:fixed}.info-data td{overflow:hidden;padding:.5rem;vertical-align:top}.info-data-key{width:25%}.info-data-value{width:75%;font-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono",Menlo,Consolas,monospace;font-size:.875rem;word-break:break-word}.user-summary{display:flex;align-items:center}.user-summary-avatar{max-width:33.33333%;flex:0 0 33.33333%;padding:.75rem;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;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: 600px){.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{max-width:20%;flex:0 0 20%}.user-fullname,.user-email{max-width:25%;flex:0 0 25%}.user-last-access,.user-actions{text-align:center}.user-actions{max-width:10%;flex:0 0 10%}}.error-container{max-width:32rem;padding:1rem;margin:4rem auto;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-size:8rem;font-weight:400}.error-status{display:block;font-size:1.75rem}.error-container .action{font-size:1.125rem}.error-container .logo{width:3.5rem;height:3.5rem;margin:2rem auto;background-position:center;background-repeat:no-repeat;background-size:cover} +html{font-size:100%;-webkit-text-size-adjust:100%}body{margin:0;background-color:#1f2123;color:#f2f2f3;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.5;-webkit-tap-highlight-color:rgba(242,242,243,0)}*{box-sizing:border-box}main{display:block}a{background-color:rgba(0,0,0,0);color:#1e88e5;outline-color:rgba(4,138,255,.375);text-decoration:none;transition:color 150ms}a:hover{color:#186db7}a:not([href]){cursor:default}img{max-width:100%;border-style:none}mark{background-color:gold}[hidden]{display:none}.focused{box-shadow:0 0 0 2px rgba(4,138,255,.375)}::selection{background-color:rgba(30,136,229,.25)}::placeholder{color:#979ca1}@media(min-width: 600px){.hide-from-xs{display:none}}@media(max-width: 599px){.show-from-xs{display:none}}@media(min-width: 768px){.hide-from-s{display:none}}@media(max-width: 767px){.show-from-s{display:none}}@media(min-width: 1024px){.hide-from-m{display:none}}@media(max-width: 1023px){.show-from-m{display:none}}@media(min-width: 1280px){.hide-from-l{display:none}}@media(max-width: 1279px){.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:500;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{padding:0;margin-top:0;margin-bottom:.5rem;margin-left:1.25rem;list-style-position:outside}.container,.container-full,.container-no-margin{padding:0 15px;margin:0 auto}.container{max-width:1280px}.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{width:100%;padding:0 15px}.col-xs{width:auto;max-width:100%;flex:1 0 auto}.col-xs-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-xs-2-12,.col-xs-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-xs-3-12,.col-xs-1-4{max-width:25%;flex:0 0 25%}.col-xs-4-12,.col-xs-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-xs-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-xs-6-12,.col-xs-1-2{max-width:50%;flex:0 0 50%}.col-xs-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-xs-8-12,.col-xs-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-xs-9-12,.col-xs-3-4{max-width:75%;flex:0 0 75%}.col-xs-10-12,.col-xs-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-xs-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-xs-12-12,.col-xs-1-1{max-width:100%;flex:0 0 100%}@media(min-width: 768px){.col-s{width:auto;max-width:100%;flex:1 0 auto}.col-s-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-s-2-12,.col-s-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-s-3-12,.col-s-1-4{max-width:25%;flex:0 0 25%}.col-s-4-12,.col-s-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-s-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-s-6-12,.col-s-1-2{max-width:50%;flex:0 0 50%}.col-s-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-s-8-12,.col-s-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-s-9-12,.col-s-3-4{max-width:75%;flex:0 0 75%}.col-s-10-12,.col-s-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-s-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-s-12-12,.col-s-1-1{max-width:100%;flex:0 0 100%}}@media(min-width: 1024px){.col-m{width:auto;max-width:100%;flex:1 0 auto}.col-m-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-m-2-12,.col-m-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-m-3-12,.col-m-1-4{max-width:25%;flex:0 0 25%}.col-m-4-12,.col-m-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-m-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-m-6-12,.col-m-1-2{max-width:50%;flex:0 0 50%}.col-m-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-m-8-12,.col-m-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-m-9-12,.col-m-3-4{max-width:75%;flex:0 0 75%}.col-m-10-12,.col-m-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-m-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-m-12-12,.col-m-1-1{max-width:100%;flex:0 0 100%}}@media(min-width: 1280px){.col-l{width:auto;max-width:100%;flex:1 0 auto}.col-l-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-l-2-12,.col-l-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-l-3-12,.col-l-1-4{max-width:25%;flex:0 0 25%}.col-l-4-12,.col-l-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-l-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-l-6-12,.col-l-1-2{max-width:50%;flex:0 0 50%}.col-l-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-l-8-12,.col-l-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-l-9-12,.col-l-3-4{max-width:75%;flex:0 0 75%}.col-l-10-12,.col-l-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-l-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-l-12-12,.col-l-1-1{max-width:100%;flex:0 0 100%}}button,.button{display:inline-block;overflow:visible;min-width:2rem;padding:.375rem .5rem;border:1px solid #333638;border-radius:4px;margin-right:.25rem;margin-bottom:.5rem;background-color:#333638;box-shadow:0 1px 0 rgba(242,242,243,.25);color:#f2f2f3;cursor:default;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:.875rem;font-weight:500;line-height:1.15;outline:none;transition:border-color 150ms,background-color 150ms,color 150ms;white-space:nowrap;-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:#4b4f53;background-color:#4b4f53;color:#f2f2f3}button:focus,.button:focus{box-shadow:0 0 0 2px rgba(242,242,243,.375)}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;box-shadow:none;color:#4b4f53;pointer-events:none}button.active,.button.active{border-color:#4b4f53;background-color:#4b4f53}button .icon,.button .icon{display:inline-block;margin-right:.25rem}a.button{text-align:center}.button-right{margin-right:0;margin-left:.25rem;float:right}.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,.375)}.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(46,204,112,.375)}.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(243,156,17,.375)}.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(231,76,59,.375)}.button-link{border:0;margin:0;background-color:rgba(0,0,0,0);box-shadow:none;cursor:pointer;font-size:inherit}.button-link:hover,.button-link:focus{background-color:rgba(0,0,0,0);color:#1e88e5}.button-link:focus{box-shadow:0 0 0 2px rgba(4,138,255,.375)}.button-link[disabled],.button-link[disabled]:hover,.button-link.disabled,.button-link.disabled:hover{background-color:rgba(0,0,0,0);cursor:default}.button-link .icon{margin-right:0}input,textarea,select{display:inline-block;width:100%;padding:.25rem .5rem;border:1px solid #4b4f53;border-radius:4px;margin:0;margin-bottom:.5rem;background-color:#181a1b;color:#f2f2f3;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:.875rem;line-height:1.5;-webkit-appearance:none;-moz-appearance:none}input:focus,textarea:focus,select:focus{border-color:#1e88e5;outline:none;box-shadow:0 0 0 2px rgba(4,138,255,.375)}input[disabled],textarea[disabled],select[disabled]{background-color:#292b2e;color:#979ca1}input[readonly],textarea[readonly],select[readonly]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}input[type=checkbox],textarea[type=checkbox],select[type=checkbox],input[type=radio],textarea[type=radio],select[type=radio]{width:auto;height:inherit;padding:0;margin-bottom:0;vertical-align:text-top}input[type=checkbox]:focus,textarea[type=checkbox]:focus,select[type=checkbox]:focus,input[type=radio]:focus,textarea[type=radio]:focus,select[type=radio]:focus{box-shadow:none}input[type=file],textarea[type=file],select[type=file]{padding:0;border:none;border-radius:0}input[type=file]::-webkit-file-upload-button,textarea[type=file]::-webkit-file-upload-button,select[type=file]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}input[type=number]::-webkit-inner-spin-button,textarea[type=number]::-webkit-inner-spin-button,select[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button,textarea[type=number]::-webkit-outer-spin-button,select[type=number]::-webkit-outer-spin-button{height:auto}input[type=search],textarea[type=search],select[type=search]{max-width:28rem;padding-left:2rem;background:#181a1b url('data:image/svg+xml;utf8,') no-repeat left .5rem top .375rem;background-size:1rem 1rem}input[type=search]::-webkit-search-cancel-button,textarea[type=search]::-webkit-search-cancel-button,select[type=search]::-webkit-search-cancel-button{display:none}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:rgba(0,0,0,0);text-shadow:0 0 0 #f2f2f3}textarea{overflow:auto;min-height:4.4375rem;max-height:39.875rem;resize:vertical}.input-large{font-size:1.125rem}.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;margin-bottom:.5rem}.input-wrap input,.input-wrap select,.input-wrap textarea{padding-right:1.625rem;margin-bottom:0}.input-reset{position:absolute;top:50%;right:.5rem;color:#f2f2f3;transform:translateY(-50%);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:"*"}.input-array{margin-bottom:.5rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.input-array .sort-handle .icon{vertical-align:middle}.input-array-row{display:flex;padding:.25rem .5rem;margin:0 -0.5rem;white-space:nowrap}.input-array-key,.input-array-value{display:inline-block;margin-bottom:0}.input-array-key{width:30%;margin-right:.25rem}.input-array-value{margin-right:.25rem}.input-array-add,.input-array-remove{min-width:1rem;padding:0;margin-right:.25rem}.input-checkbox{position:absolute;opacity:0}.input-checkbox+.input-checkbox-text::before{position:relative;top:.125rem;display:inline-block;width:1rem;height:1rem;box-sizing:border-box;border:1px solid #4b4f53;border-radius:4px;margin-right:.5rem;content:" ";transition:border-color 150ms,background-color 150ms}.input-checkbox+.input-checkbox-text:hover::before,.input-checkbox[disabled]+.input-checkbox-text::before{background-color:#1f2123}.input-checkbox:checked+.input-checkbox-text::before{border-color:#1e88e5;background-color:#1e88e5}.input-checkbox:focus+.input-checkbox-text::before{border-color:#1e88e5;box-shadow:0 0 0 2px rgba(4,138,255,.375)}.input-checkbox:checked+.input-checkbox-text:hover::before{border-color:#186db7;background-color:#186db7}.input-checkbox:checked+.input-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:" "}.input-checkbox:checked[disabled]+.input-checkbox-text::before{border-color:#4b4f53;background-color:#4b4f53}.input-checkbox-label{position:relative;line-height:1.5}.input-date{cursor:default}.calendar{position:absolute;z-index:8;top:100%;display:none;width:18rem;padding:.5rem;border:1px solid #4b4f53;border-radius:4px;margin:3px 1rem 1rem;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 button{width:33.3%;padding:0 .5rem;border:0;margin:0;background-color:rgba(0,0,0,0);box-shadow:none;color:#f2f2f3;cursor:pointer;font-size:.875rem;outline:none}.calendar button:hover{color:#1e88e5}.calendar button:focus{box-shadow:none}.calendar-buttons .currentMonth{font-weight:600}.calendar-table{width:100%}.calendar-table td{width:14%;cursor:default;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.calendar-time{width:50%;margin:0 auto;text-align:center}.calendar-header-day{font-size:.875rem}.calendar-day{border-radius:4px;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{height:0;border-top:1px solid #4b4f53;margin:.5rem -0.5rem}.input-duration{box-sizing:border-box;padding:.25rem .25rem;border:1px solid #4b4f53;border-radius:4px;margin-top:0;margin-bottom:.5rem;font-size:.875rem;line-height:1.5;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.input-duration.focused{border-color:#1e88e5}.input-duration>span{text-align:center}.input-duration input,.input-duration select,.input-duration textarea{width:2rem;padding:0;border:0;margin:0;-moz-appearance:textfield;background-color:#292b2e;text-align:center;vertical-align:baseline}.input-duration input::-webkit-inner-spin-button,.input-duration select::-webkit-inner-spin-button,.input-duration textarea::-webkit-inner-spin-button,.input-duration input::-webkit-outer-spin-button,.input-duration select::-webkit-outer-spin-button,.input-duration textarea::-webkit-outer-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none}.input-duration input:focus,.input-duration select:focus,.input-duration textarea:focus{box-shadow:none}.input-duration label{padding:0 .5rem;margin:0}.input-duration-hidden{display:none}.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;background-color:#1f2123;border-top-left-radius:4px;border-top-right-radius:4px;font-size:0}.toolbar-button{padding:.5rem;border:0;margin-bottom:0;background-color:#1f2123;box-shadow:none}.toolbar-button:hover,.toolbar-button:focus{background-color:rgba(0,0,0,0);color:#1e88e5}.toolbar-button:focus{box-shadow:0 0 0 2px rgba(4,138,255,.375)}.toolbar-button .icon{margin-right:0}.editor-textarea{min-height:6rem;max-height:46.5rem;padding:.75rem 1rem;border:1px solid #4b4f53;border-radius:4px;margin-bottom:.5rem;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:1rem}.editor-textarea:focus{box-shadow:none}.CodeMirror{min-height:6rem;max-height:46.5rem;padding:0 1rem;border:1px solid #4b4f53;border-radius:4px;margin-bottom:.5rem;background:#181a1b;color:#f2f2f3;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:1rem;resize:vertical}.CodeMirror-wrap pre.CodeMirror-line-like.CodeMirror-placeholder{color:#979ca1}.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}.editor-wrap{border-radius:4px}.editor-wrap.focused .editor-toolbar,.editor-wrap.focused .CodeMirror{border-color:#1e88e5}.CodeMirror-cursor{border-left-color:#f2f2f3}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler{background-color:inherit}.CodeMirror-selected{background:rgba(0,0,0,0)}.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-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono",Menlo,Consolas,monospace;font-size:.875rem}.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{padding-left:1.25rem;background:#181a1b url('data:image/svg+xml;utf8,') no-repeat left center;background-size:1rem 1rem}.cm-s-formwork .CodeMirror-activeline .cm-formatting-quote+.cm-quote{padding-left:0;background:rgba(0,0,0,0)}.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 0 1.5rem;border-radius:4px;background:#181a1b url('data:image/svg+xml;utf8,') no-repeat left .25rem center;background-color:#292b2e;background-size:1rem 1rem;color:#f2f2f3}.cm-s-formwork .CodeMirror-activeline .cm-image~.cm-url:not(.cm-formatting){padding:0;background:rgba(0,0,0,0);color:#979ca1}.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-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono",Menlo,Consolas,monospace;font-size:.875rem}.input-file{display:none}.input-file-label{display:block;padding:.5rem;margin-bottom:1rem;background-color:#1f2123;clear:both}.input-file-label>span{display:block;padding:1.5rem 1rem;border:2px dashed #4b4f53;color:#f2f2f3;text-align:center;transition:background-color 300ms}.input-file-label.drag>span{background-color:#181a1b}.input-image{cursor:default}.image-picker-thumbnails{overflow:auto;height:15rem;padding:.5rem;margin-bottom:1rem}.image-picker-thumbnail{position:relative;display:inline-block;width:8rem;height:8rem;box-sizing:border-box;padding:.5rem;border:1px solid #4b4f53;margin:.25rem;background-origin:content-box;background-position:center;background-repeat:no-repeat;background-size:contain}.image-picker-thumbnail::after{position:absolute;right:.75rem;bottom:.5rem;left:.75rem;display:block;padding:0 .375rem;border-radius:4px;background-color:rgba(51,54,56,.9);content:attr(data-filename);font-size:.75rem;text-align:center;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,.375)}.image-picker-empty-state{margin:3rem auto 4rem;text-align:center}.image-picker-empty-state-icon{color:#7c8288;font-size:2rem}input[type=range],select[type=range],textarea[type=range]{width:15rem;padding:.875rem 0;border:0;-webkit-appearance:none;-moz-appearance:none}input[type=range]::-webkit-slider-runnable-track,select[type=range]::-webkit-slider-runnable-track,textarea[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,select[type=range]::-webkit-slider-thumb,textarea[type=range]::-webkit-slider-thumb{width:1rem;height:1rem;border:0;border-radius:50%;margin-top:-0.375rem;background-color:#1e88e5;transition:background-color 150ms;-webkit-appearance:none;-moz-appearance:none}input[type=range]::-moz-range-track,select[type=range]::-moz-range-track,textarea[type=range]::-moz-range-track{width:100%;height:.25rem;border:0;border-radius:.125rem;background-color:#333638}input[type=range]::-moz-range-thumb,select[type=range]::-moz-range-thumb,textarea[type=range]::-moz-range-thumb{width:1rem;height:1rem;border:0;border-radius:50%;background-color:#1e88e5;cursor:default}input[type=range]::-ms-track,select[type=range]::-ms-track,textarea[type=range]::-ms-track{width:100%;height:.25rem;border-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0);color:rgba(0,0,0,0);cursor:default}input[type=range]::-ms-fill-lower,select[type=range]::-ms-fill-lower,textarea[type=range]::-ms-fill-lower,input[type=range]::-ms-fill-upper,select[type=range]::-ms-fill-upper,textarea[type=range]::-ms-fill-upper{border:0;border-radius:.125rem;background:#333638;box-shadow:none}input[type=range]::-ms-thumb,select[type=range]::-ms-thumb,textarea[type=range]::-ms-thumb{width:1rem;height:1rem;border:0;border-radius:50%;margin-top:0;background-color:#1e88e5;cursor:default}input[type=range]:focus,select[type=range]:focus,textarea[type=range]:focus{box-shadow:none}input[type=range]:hover::-webkit-slider-thumb,select[type=range]:hover::-webkit-slider-thumb,textarea[type=range]:hover::-webkit-slider-thumb{background-color:#186db7}input[type=range][disabled],select[type=range][disabled],textarea[type=range][disabled]{background-color:rgba(0,0,0,0)}input[type=range][disabled]::-webkit-slider-thumb,select[type=range][disabled]::-webkit-slider-thumb,textarea[type=range][disabled]::-webkit-slider-thumb,input[type=range][disabled]::-moz-range-thumb,select[type=range][disabled]::-moz-range-thumb,textarea[type=range][disabled]::-moz-range-thumb,input[type=range][disabled]::-ms-thumb,select[type=range][disabled]::-ms-thumb,textarea[type=range][disabled]::-ms-thumb{background-color:#979ca1}input[type=range]:focus::-webkit-slider-thumb,select[type=range]:focus::-webkit-slider-thumb,textarea[type=range]:focus::-webkit-slider-thumb{background-color:#186db7;box-shadow:0 0 0 2px rgba(4,138,255,.375)}input[type=range]:focus::-moz-range-thumb,select[type=range]:focus::-moz-range-thumb,textarea[type=range]:focus::-moz-range-thumb{background-color:#186db7;box-shadow:0 0 0 2px rgba(4,138,255,.375)}input[type=range]:focus::-ms-thumb,select[type=range]:focus::-ms-thumb,textarea[type=range]:focus::-ms-thumb{background-color:#186db7;box-shadow:0 0 0 2px rgba(4,138,255,.375)}.input-range-value{padding:0 .5rem;font-size:.875rem;vertical-align:.1875rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.input-tag{position:relative;display:block;box-sizing:border-box;padding:.25rem .25rem;padding-bottom:0;border:1px solid #4b4f53;border-radius:4px;margin-top:0;margin-bottom:.5rem;font-size:.875rem;line-height:1.5;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.input-tag.focused{border-color:#1e88e5}.tag-inner-input{display:inline-block;width:auto;max-width:100%;box-sizing:border-box;padding:0 .25rem;border:0;border-radius:0;margin-bottom:.25rem;font-family:inherit;font-size:.875rem;line-height:inherit;outline:none}.tag-inner-input:focus{box-shadow:none}.input-tag-hidden{display:none}.input-tag .tag{display:inline-block;box-sizing:border-box;padding:0 .375rem;border-radius:4px;margin-bottom:.25rem;background-color:#292b2e;cursor:default;font-size:.875rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.input-tag.disabled,.input-tag.disabled .tag-inner-input{background-color:#1f2123}.input-tag.disabled .tag{background-color:#333638}.tag-remove{display:inline-block;padding:0 .125rem;margin-left:.25rem;color:#f2f2f3;font-style:normal;transition:color 150ms}.tag-remove:hover{color:#1e88e5}.tag-remove::after{content:"×";font-weight:600}.input-togglegroup{display:inline-block;border:1px solid #4b4f53;border-radius:4px;margin:0;margin-bottom:.5rem;font-size:0}.input-togglegroup:focus-within{border-color:#1e88e5;box-shadow:0 0 0 2px rgba(4,138,255,.375)}.input-togglegroup label{margin:0}.input-togglegroup input[type=radio],.input-togglegroup select[type=radio],.input-togglegroup textarea[type=radio]{position:absolute;opacity:0}.input-togglegroup input[type=radio]+span,.input-togglegroup select[type=radio]+span,.input-togglegroup textarea[type=radio]+span{display:inline-block;padding:.25rem .75rem;border-radius:3px;font-size:.875rem;transition:background-color 150ms,color 150ms}.input-togglegroup input[type=radio]:hover+span,.input-togglegroup select[type=radio]:hover+span,.input-togglegroup textarea[type=radio]:hover+span{background-color:#1f2123}.input-togglegroup input[type=radio]:checked+span,.input-togglegroup select[type=radio]:checked+span,.input-togglegroup textarea[type=radio]:checked+span{background-color:#1e88e5;color:#fff}.input-togglegroup input[type=radio]:focus+span,.input-togglegroup select[type=radio]:focus+span,.input-togglegroup textarea[type=radio]:focus+span{background-color:#186db7}.input-togglegroup[disabled] input[type=radio]+span,.input-togglegroup[disabled] select[type=radio]+span,.input-togglegroup[disabled] textarea[type=radio]+span{background-color:rgba(0,0,0,0);color:#f2f2f3}.input-togglegroup[disabled] input[type=radio]:checked+span,.input-togglegroup[disabled] select[type=radio]:checked+span,.input-togglegroup[disabled] textarea[type=radio]:checked+span{background-color:#333638}.input-togglegroup input[type=radio]:checked:hover+span,.input-togglegroup select[type=radio]:checked:hover+span,.input-togglegroup textarea[type=radio]:checked:hover+span{background-color:#186db7}.dropdown{position:relative;display:inline-block;margin-bottom:.5rem}.dropdown-button{margin-bottom:0}.dropdown-button::after{display:inline-block;height:0;margin-left:.25rem;content:" ";vertical-align:.125rem;border-top:.25rem solid;border-right:.25rem solid rgba(0,0,0,0);border-left:.25rem solid rgba(0,0,0,0)}.dropdown-menu,.dropdown-list{position:absolute;z-index:8;top:100%;left:0;display:none;min-width:8rem;padding:.25rem 0;border:1px solid #4b4f53;border-radius:4px;margin-top:3px;background-color:#181a1b;box-shadow:1px 1px .75rem 0 rgba(0,0,0,.25);float:left}.dropdown-list{width:100%;max-height:10.15625rem;overflow-y:scroll}.dropdown-item{display:block;width:100%;padding:.25rem 1rem;color:#f2f2f3;font-size:.875rem;white-space:nowrap}.dropdown-item:hover{background-color:#292b2e;color:#f2f2f3}.dropdown-item.selected{background-color:#1e88e5;color:#fff}.dropdown-separator{height:0;border-top:1px solid #4b4f53;margin:.25rem 0}.files-list{padding:0;margin:0;margin-bottom:1rem;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;font-size:.875rem;white-space:nowrap}.file-name{max-width:80%;flex:0 0 80%;font-size:.9375rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-name .icon{margin-right:.5rem;color:#f2f2f3}.file-size{color:#979ca1}.file-actions{max-width:20%;flex:0 0 20%;font-size:1rem;text-align:right}.tabs{padding:2px 2px 0;border-bottom:1px solid #333638;margin-bottom:1rem;overflow-x:auto;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;z-index:16;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.75)}.modal{position:fixed;z-index:20;top:0;right:0;bottom:0;left:0;display:none;align-items:center;outline:0}.modal.show{display:flex}.modal-content{max-width:26rem;padding:2rem;border-radius:4px;margin:3rem .5rem;background-color:#181a1b}@media(min-width: 26rem){.modal-content{margin:3rem auto}}.modal-size-large{width:40rem;max-width:40rem}@media(max-width: 40rem){.modal-size-large{margin:3rem .5rem}}.modal-error{padding:1rem;margin:-2rem -2rem 1rem -2rem;background-color:#e74c3b;color:#181a1b}.modal-text{margin-bottom:2.5rem}.notification-container{position:fixed;z-index:12;top:20px;right:20px}.notification{position:relative;overflow:hidden;width:350px;padding:1.5rem 2.5rem;border-radius:4px;margin-bottom:.5rem;animation:fadeInRight 300ms cubic-bezier(0.4, 0, 0.2, 1);background-color:#292b2e;box-shadow:1px 1px .75rem 0 rgba(0,0,0,.25);cursor:default;text-overflow:ellipsis;transition:top 300ms ease-in,opacity 150ms}.notification:hover{opacity:.95}.notification.fadeout{animation:fadeOutRight 300ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}.notification .icon{position:absolute;top:50%;left:1rem;display:block;width:16px;height:16px;color:#fff;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:#25a35a;color:#fff}.notification-warning{background-color:#c27d0e;color:#fff}.notification-error{background-color:#b93d2f;color:#fff}.tooltip{position:absolute;z-index:20;display:none;min-width:2rem;padding:.25rem .5rem;border-radius:4px;background-color:rgba(242,242,243,.8);color:#181a1b;font-size:.75rem;pointer-events:none;text-align:center}.spinner{position:relative;display:inline-block;width:1.5rem;height:1.5rem;border-width:.2rem;border-style:solid;border-color:#1e88e5;border-radius:50%;border-bottom-color:rgba(0,0,0,0);border-left-color:rgba(0,0,0,0);margin-right:.75rem;animation:750ms spin infinite linear;text-align:center;transition:border 500ms;transition-timing-function:ease-out;vertical-align:-0.375rem}.spinner .icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.spinner-info{border-color:#1e88e5;animation:none;color:#1e88e5}.spinner-success{border-color:#2ecc70;animation:none;color:#2ecc70}.spinner-error{border-color:#e74c3b;animation:none;color:#e74c3b}.ct-label{color:rgba(0, 0, 0, 40%);fill:rgba(0, 0, 0, 40%);font-size:.75rem;line-height:1}.ct-chart-bar .ct-label,.ct-chart-line .ct-label{display:flex}.ct-chart-donut .ct-label,.ct-chart-pie .ct-label{dominant-baseline:central}.ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:flex-start;text-align:left}.ct-label.ct-vertical.ct-start{align-items:flex-end;justify-content:flex-end;text-align:right}.ct-label.ct-vertical.ct-end{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-chart-bar .ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:center;text-align:center}.ct-chart-bar .ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:center;text-align:center}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:flex-start;text-align:left}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start{align-items:center;justify-content:flex-end;text-align:right}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end{align-items:center;justify-content:flex-start;text-align:left}.ct-grid{stroke:rgba(0, 0, 0, 20%);stroke-dasharray:2px;stroke-width:1px}.ct-grid-background{fill:none}.ct-point{stroke-linecap:round;stroke-width:10px}.ct-line{fill:none;stroke-width:4px}.ct-area{fill-opacity:.1;stroke:none}.ct-bar{fill:none;stroke-width:10px}.ct-slice-donut{fill:none;stroke-width:60px}.ct-series-a .ct-bar,.ct-series-a .ct-line,.ct-series-a .ct-point,.ct-series-a .ct-slice-donut{stroke:#d70206}.ct-series-a .ct-area,.ct-series-a .ct-slice-pie{fill:#d70206}.ct-series-b .ct-bar,.ct-series-b .ct-line,.ct-series-b .ct-point,.ct-series-b .ct-slice-donut{stroke:#f05b4f}.ct-series-b .ct-area,.ct-series-b .ct-slice-pie{fill:#f05b4f}.ct-series-c .ct-bar,.ct-series-c .ct-line,.ct-series-c .ct-point,.ct-series-c .ct-slice-donut{stroke:#f4c63d}.ct-series-c .ct-area,.ct-series-c .ct-slice-pie{fill:#f4c63d}.ct-series-d .ct-bar,.ct-series-d .ct-line,.ct-series-d .ct-point,.ct-series-d .ct-slice-donut{stroke:#d17905}.ct-series-d .ct-area,.ct-series-d .ct-slice-pie{fill:#d17905}.ct-series-e .ct-bar,.ct-series-e .ct-line,.ct-series-e .ct-point,.ct-series-e .ct-slice-donut{stroke:#453d3f}.ct-series-e .ct-area,.ct-series-e .ct-slice-pie{fill:#453d3f}.ct-series-f .ct-bar,.ct-series-f .ct-line,.ct-series-f .ct-point,.ct-series-f .ct-slice-donut{stroke:#59922b}.ct-series-f .ct-area,.ct-series-f .ct-slice-pie{fill:#59922b}.ct-series-g .ct-bar,.ct-series-g .ct-line,.ct-series-g .ct-point,.ct-series-g .ct-slice-donut{stroke:#0544d3}.ct-series-g .ct-area,.ct-series-g .ct-slice-pie{fill:#0544d3}.ct-series-h .ct-bar,.ct-series-h .ct-line,.ct-series-h .ct-point,.ct-series-h .ct-slice-donut{stroke:#6b0392}.ct-series-h .ct-area,.ct-series-h .ct-slice-pie{fill:#6b0392}.ct-series-i .ct-bar,.ct-series-i .ct-line,.ct-series-i .ct-point,.ct-series-i .ct-slice-donut{stroke:#e6805e}.ct-series-i .ct-area,.ct-series-i .ct-slice-pie{fill:#e6805e}.ct-series-j .ct-bar,.ct-series-j .ct-line,.ct-series-j .ct-point,.ct-series-j .ct-slice-donut{stroke:#dda458}.ct-series-j .ct-area,.ct-series-j .ct-slice-pie{fill:#dda458}.ct-series-k .ct-bar,.ct-series-k .ct-line,.ct-series-k .ct-point,.ct-series-k .ct-slice-donut{stroke:#eacf7d}.ct-series-k .ct-area,.ct-series-k .ct-slice-pie{fill:#eacf7d}.ct-series-l .ct-bar,.ct-series-l .ct-line,.ct-series-l .ct-point,.ct-series-l .ct-slice-donut{stroke:#86797d}.ct-series-l .ct-area,.ct-series-l .ct-slice-pie{fill:#86797d}.ct-series-m .ct-bar,.ct-series-m .ct-line,.ct-series-m .ct-point,.ct-series-m .ct-slice-donut{stroke:#b2c326}.ct-series-m .ct-area,.ct-series-m .ct-slice-pie{fill:#b2c326}.ct-series-n .ct-bar,.ct-series-n .ct-line,.ct-series-n .ct-point,.ct-series-n .ct-slice-donut{stroke:#6188e2}.ct-series-n .ct-area,.ct-series-n .ct-slice-pie{fill:#6188e2}.ct-series-o .ct-bar,.ct-series-o .ct-line,.ct-series-o .ct-point,.ct-series-o .ct-slice-donut{stroke:#a748ca}.ct-series-o .ct-area,.ct-series-o .ct-slice-pie{fill:#a748ca}.ct-chart{position:relative;display:block;width:100%;height:14rem;-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);white-space:pre-wrap}.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;width:auto !important;min-width:3rem;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 .icon{display:inline-block;margin:0 .25rem}.ct-legend-label.ct-series-a .icon{color:#1e88e5}.ct-legend-label.ct-series-b .icon{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%,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{max-width:24rem;padding:2rem;border-radius:4px;margin:3rem .5rem;background-color:#181a1b;box-shadow:0 0 .75rem -0.125rem rgba(0,0,0,.05)}@media(min-width: 24rem){.login-modal-container{margin:3rem auto}}.login-modal-info,.login-modal-success,.login-modal-warning,.login-modal-error{position:relative;padding:1rem 2rem 1rem 3.5rem;margin:-2rem -2rem 1rem -2rem;border-top-left-radius:4px;border-top-right-radius:4px}.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 .icon,.login-modal-success .icon,.login-modal-warning .icon,.login-modal-error .icon{position:absolute;top:50%;left:1rem;display:block;transform:translate(0, -50%)}.login-modal-info{background-color:#1e88e5;color:#fff}.login-modal-success{background-color:#25a35a;color:#fff}.login-modal-warning{background-color:#f39c11;color:#fff}.login-modal-error{background-color:#e74c3b;color:#fff}.title-bar{position:fixed;z-index:8;top:0;right:0;left:0;padding:1rem;padding-left:4rem;background-color:#292b2e;box-shadow:0 0 .75rem -0.125rem 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:16rem;padding-left:1.5rem}}.panel-title{float:left}.view-site{color:#f2f2f3;float:right}.view-site:hover{color:#1e88e5}.view-site i{margin-left:.5rem}.sidebar{position:fixed;z-index:10;top:0;bottom:0;left:0;width:16rem;padding:1rem 1.5rem;background:linear-gradient(to bottom, hsl(208deg, 5%, 10%) 0%, hsl(208deg, 5%, 13%) 100%);background-color:#181a1b;box-shadow:0 0 .75rem -0.125rem 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{height:calc(100% - 9rem);overflow-y:auto}.toggle-navigation{position:fixed;z-index:12;top:.75rem;left:.75rem;border:none;margin:0;background-color:rgba(0,0,0,0);box-shadow:none;cursor:pointer;font-size:1rem}.toggle-navigation:hover{background-color:rgba(0,0,0,0);box-shadow:none;color:#1e88e5}.toggle-navigation:focus{background-color:rgba(0,0,0,0);box-shadow:none}.logo{margin-bottom:2rem;color:#f2f2f3;font-size:1.184rem;font-weight:600;line-height:1.5rem;text-align:center}@media(min-width: 768px){.logo{text-align:left}}.logo img{height:1.5rem;margin-right:.25rem;vertical-align:-0.25rem}.logo a{padding-top:2px;color:#f2f2f3}.sidebar-navigation{padding:0;margin:0;margin-bottom:1rem;list-style-type:none}.sidebar-navigation:last-child{margin-bottom:0}.sidebar-navigation>li{position:relative;padding:.25rem 0;padding-left:1rem;margin:0;margin-bottom:.5rem}.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:" "}.panel-user-card{display:flex;align-items:center;margin-bottom:2rem;cursor:pointer}.panel-user-avatar{width:48px}.panel-user-avatar img{width:48px;border-radius:50%;transition:box-shadow 300ms ease-out}.panel-user-card:hover .panel-user-avatar img{box-shadow:0 0 0 .5rem #333638}.panel-user-details{padding:0 .75rem}.panel-user-fullname{color:#f2f2f3}.panel-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:17.875rem}}.component{padding:1.5rem;border-radius:4px;margin-bottom:1rem;background-color:#181a1b;box-shadow:0 0 .75rem -0.125rem rgba(0,0,0,.05)}.component::before,.component::after{display:table;content:""}.component::after{clear:both}.caption{margin-bottom:1rem;font-size:.9375rem;font-weight:500;letter-spacing:1px;text-transform:uppercase;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.separator{height:.5rem}.separator-l{height:1rem}.section{margin-bottom:1rem}.section-header{padding:.25rem .5rem;border-bottom:1px solid #333638;margin-bottom:.5rem;font-size:1rem;font-weight:600;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.icon{display:inline-block;width:1em;min-width:16px;height:1em;min-height:16px;vertical-align:-0.125rem}.section-toggle .icon{transition:transform 150ms}.section.collapsed .section-toggle .icon{transform:rotate(180deg)}.section.collapsed .section-content{display:none}.sort-handle{display:inline-block;margin-bottom:0;color:#979ca1;cursor:grab}.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{padding:0;margin: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;min-width:auto;padding:0;border-color:rgba(0,0,0,0);margin:0 .25rem .125rem 0;background-color:rgba(0,0,0,0);box-shadow:none;cursor:pointer}.page-children-toggle:hover,.page-children-toggle:focus{border-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0)}.page-children-toggle:focus{box-shadow:0 0 0 2px rgba(4,138,255,.375)}.page-children-toggle .icon{margin-right:0;transition:transform 150ms}.toggle-expanded .icon{transform:rotate(-180deg)}.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{padding:2px;margin:-2px;font-size:1rem}.page-language{display:inline-block;min-width:1.125rem;padding:.125rem .25rem;border-radius:4px;background-color:#d2e7fa;color:#1e88e5;font-size:.875rem;font-weight:600;line-height:1;text-align:center}button .page-language,.button .page-language{font-size:.75rem}.page-route{color:#979ca1;font-size:.875rem}.page-route-changeable{padding:2px;margin:-2px}.page-status .icon{display:inline-block;margin-right:.375rem}.page-status-published .icon{color:#2ecc70}.page-status-not-published .icon{color:#e74c3b}.page-status-not-routable .icon{color:#f39c11}.page-date,.page-status,.page-actions{display:none}.page-actions .button-link{font-size:1rem}@media(min-width: 600px){.pages-item,.pages-list-headers{display:flex;align-items:center}.pages-item-cell,.pages-headers-cell{display:block}.page-details{max-width:55%;flex:0 0 55%}.page-date,.page-status,.page-actions{max-width:15%;flex:0 0 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-info{padding:0 .25rem;margin-bottom:.75rem}.page-info>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-slug-change{padding:0;border-color:rgba(0,0,0,0);margin:0;background-color:rgba(0,0,0,0);box-shadow:none;color:#979ca1;cursor:pointer}.page-slug-change:hover,.page-slug-change:focus{border-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0);color:#979ca1}.page-slug-change:focus{box-shadow:0 0 0 2px rgba(4,138,255,.375)}.page-slug-change .icon{display:inline-block;margin-right:0;color:#f2f2f3;opacity:0;transition:opacity 150ms}.page-slug-change:hover .icon,.page-slug-change:focus .icon{opacity:1}.dragging [data-sortable=false] .pages-item:hover{background-color:#fce8e5;cursor:no-drop}.options-form .input-checkbox-label{margin-bottom:.5rem;font-size:1rem}.info-data{width:100%;margin-bottom:1rem;table-layout:fixed}.info-data td{overflow:hidden;padding:.5rem;vertical-align:top}.info-data-key{width:25%}.info-data-value{width:75%;font-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono",Menlo,Consolas,monospace;font-size:.875rem;word-break:break-word}.user-summary{display:flex;align-items:center}.user-summary-avatar{max-width:33.33333%;flex:0 0 33.33333%;padding:.75rem;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;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: 600px){.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{max-width:20%;flex:0 0 20%}.user-fullname,.user-email{max-width:25%;flex:0 0 25%}.user-last-access,.user-actions{text-align:center}.user-actions{max-width:10%;flex:0 0 10%}}.error-container{max-width:32rem;padding:1rem;margin:4rem auto;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-size:8rem;font-weight:400}.error-status{display:block;font-size:1.75rem}.error-container .action{font-size:1.125rem}.error-container .logo{width:3.5rem;height:3.5rem;margin:2rem auto;background-position:center;background-repeat:no-repeat;background-size:cover} diff --git a/panel/assets/css/panel.min.css b/panel/assets/css/panel.min.css index af86a918..c5833e32 100644 --- a/panel/assets/css/panel.min.css +++ b/panel/assets/css/panel.min.css @@ -1 +1 @@ -html{font-size:100%;-webkit-text-size-adjust:100%}body{margin:0;background-color:#f7f7f7;color:#262626;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.5;-webkit-tap-highlight-color:rgba(38,38,38,0)}*{box-sizing:border-box}main{display:block}a{background-color:rgba(0,0,0,0);color:#1e88e5;outline-color:rgba(4,138,255,.375);text-decoration:none;transition:color 150ms}a:hover{color:#186db7}a:not([href]){cursor:default}img{max-width:100%;border-style:none}mark{background-color:gold}[hidden]{display:none}.focused{box-shadow:0 0 0 2px rgba(4,138,255,.375)}::selection{background-color:rgba(30,136,229,.25)}::placeholder{color:#7d7d7d}@media(min-width: 600px){.hide-from-xs{display:none}}@media(max-width: 599px){.show-from-xs{display:none}}@media(min-width: 768px){.hide-from-s{display:none}}@media(max-width: 767px){.show-from-s{display:none}}@media(min-width: 1024px){.hide-from-m{display:none}}@media(max-width: 1023px){.show-from-m{display:none}}@media(min-width: 1280px){.hide-from-l{display:none}}@media(max-width: 1279px){.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:500;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{padding:0;margin-top:0;margin-bottom:.5rem;margin-left:1.25rem;list-style-position:outside}.container,.container-full,.container-no-margin{padding:0 15px;margin:0 auto}.container{max-width:1280px}.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{width:100%;padding:0 15px}.col-xs{width:auto;max-width:100%;flex:1 0 auto}.col-xs-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-xs-2-12,.col-xs-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-xs-3-12,.col-xs-1-4{max-width:25%;flex:0 0 25%}.col-xs-4-12,.col-xs-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-xs-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-xs-6-12,.col-xs-1-2{max-width:50%;flex:0 0 50%}.col-xs-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-xs-8-12,.col-xs-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-xs-9-12,.col-xs-3-4{max-width:75%;flex:0 0 75%}.col-xs-10-12,.col-xs-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-xs-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-xs-12-12,.col-xs-1-1{max-width:100%;flex:0 0 100%}@media(min-width: 768px){.col-s{width:auto;max-width:100%;flex:1 0 auto}.col-s-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-s-2-12,.col-s-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-s-3-12,.col-s-1-4{max-width:25%;flex:0 0 25%}.col-s-4-12,.col-s-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-s-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-s-6-12,.col-s-1-2{max-width:50%;flex:0 0 50%}.col-s-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-s-8-12,.col-s-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-s-9-12,.col-s-3-4{max-width:75%;flex:0 0 75%}.col-s-10-12,.col-s-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-s-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-s-12-12,.col-s-1-1{max-width:100%;flex:0 0 100%}}@media(min-width: 1024px){.col-m{width:auto;max-width:100%;flex:1 0 auto}.col-m-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-m-2-12,.col-m-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-m-3-12,.col-m-1-4{max-width:25%;flex:0 0 25%}.col-m-4-12,.col-m-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-m-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-m-6-12,.col-m-1-2{max-width:50%;flex:0 0 50%}.col-m-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-m-8-12,.col-m-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-m-9-12,.col-m-3-4{max-width:75%;flex:0 0 75%}.col-m-10-12,.col-m-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-m-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-m-12-12,.col-m-1-1{max-width:100%;flex:0 0 100%}}@media(min-width: 1280px){.col-l{width:auto;max-width:100%;flex:1 0 auto}.col-l-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-l-2-12,.col-l-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-l-3-12,.col-l-1-4{max-width:25%;flex:0 0 25%}.col-l-4-12,.col-l-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-l-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-l-6-12,.col-l-1-2{max-width:50%;flex:0 0 50%}.col-l-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-l-8-12,.col-l-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-l-9-12,.col-l-3-4{max-width:75%;flex:0 0 75%}.col-l-10-12,.col-l-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-l-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-l-12-12,.col-l-1-1{max-width:100%;flex:0 0 100%}}button,.button{display:inline-block;overflow:visible;min-width:2rem;padding:.375rem .5rem;border:1px solid #e3e3e3;border-radius:4px;margin-right:.25rem;margin-bottom:.5rem;background-color:#e3e3e3;box-shadow:0 1px 0 rgba(38,38,38,.25);color:#262626;cursor:default;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:.875rem;font-weight:500;line-height:1.15;outline:none;transition:border-color 150ms,background-color 150ms,color 150ms;white-space:nowrap;-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:#c9c9c9;background-color:#c9c9c9;color:#262626}button:focus,.button:focus{box-shadow:0 0 0 2px rgba(38,38,38,.375)}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;box-shadow:none;color:#c9c9c9;pointer-events:none}button.active,.button.active{border-color:#c9c9c9;background-color:#c9c9c9}button .icon,.button .icon{display:inline-block;margin-right:.25rem}a.button{text-align:center}.button-right{margin-right:0;margin-left:.25rem;float:right}.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,.375)}.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(46,204,112,.375)}.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(243,156,17,.375)}.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(231,76,59,.375)}.button-link{border:0;margin:0;background-color:rgba(0,0,0,0);box-shadow:none;cursor:pointer;font-size:inherit}.button-link:hover,.button-link:focus{background-color:rgba(0,0,0,0);color:#1e88e5}.button-link:focus{box-shadow:0 0 0 2px rgba(4,138,255,.375)}.button-link[disabled],.button-link[disabled]:hover,.button-link.disabled,.button-link.disabled:hover{background-color:rgba(0,0,0,0);cursor:default}.button-link .icon{margin-right:0}input,textarea,select{display:inline-block;width:100%;padding:.25rem .5rem;border:1px solid #c9c9c9;border-radius:4px;margin:0;margin-bottom:.5rem;background-color:#fcfcfc;color:#262626;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:.875rem;line-height:1.5;-webkit-appearance:none;-moz-appearance:none}input:focus,textarea:focus,select:focus{border-color:#1e88e5;outline:none;box-shadow:0 0 0 2px rgba(4,138,255,.375)}input[disabled],textarea[disabled],select[disabled]{background-color:#ededed;color:#7d7d7d}input[readonly],textarea[readonly],select[readonly]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}input[type=checkbox],textarea[type=checkbox],select[type=checkbox],input[type=radio],textarea[type=radio],select[type=radio]{width:auto;height:inherit;padding:0;margin-bottom:0;vertical-align:text-top}input[type=checkbox]:focus,textarea[type=checkbox]:focus,select[type=checkbox]:focus,input[type=radio]:focus,textarea[type=radio]:focus,select[type=radio]:focus{box-shadow:none}input[type=file],textarea[type=file],select[type=file]{padding:0;border:none;border-radius:0}input[type=file]::-webkit-file-upload-button,textarea[type=file]::-webkit-file-upload-button,select[type=file]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}input[type=number]::-webkit-inner-spin-button,textarea[type=number]::-webkit-inner-spin-button,select[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button,textarea[type=number]::-webkit-outer-spin-button,select[type=number]::-webkit-outer-spin-button{height:auto}input[type=search],textarea[type=search],select[type=search]{max-width:28rem;padding-left:2rem;background:#fcfcfc url('data:image/svg+xml;utf8,') no-repeat left .5rem top .375rem;background-size:1rem 1rem}input[type=search]::-webkit-search-cancel-button,textarea[type=search]::-webkit-search-cancel-button,select[type=search]::-webkit-search-cancel-button{display:none}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:rgba(0,0,0,0);text-shadow:0 0 0 #262626}textarea{overflow:auto;height:5.75rem;min-height:3.125rem;max-height:16.25rem;resize:vertical}.input-large{font-size:1.125rem}.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;margin-bottom:.5rem}.input-wrap input,.input-wrap select,.input-wrap textarea{padding-right:1.625rem;margin-bottom:0}.input-reset{position:absolute;top:50%;right:.5rem;color:#262626;transform:translateY(-50%);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:"*"}.input-array{margin-bottom:.5rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.input-array .sort-handle .icon{vertical-align:middle}.input-array-row{display:flex;padding:.25rem .5rem;margin:0 -0.5rem;white-space:nowrap}.input-array-key,.input-array-value{display:inline-block;margin-bottom:0}.input-array-key{width:30%;margin-right:.25rem}.input-array-value{margin-right:.25rem}.input-array-add,.input-array-remove{min-width:1rem;padding:0;margin-right:.25rem}.input-checkbox{position:absolute;opacity:0}.input-checkbox+.input-checkbox-text::before{position:relative;top:.125rem;display:inline-block;width:1rem;height:1rem;box-sizing:border-box;border:1px solid #c9c9c9;border-radius:4px;margin-right:.5rem;content:" ";transition:border-color 150ms,background-color 150ms}.input-checkbox+.input-checkbox-text:hover::before,.input-checkbox[disabled]+.input-checkbox-text::before{background-color:#f7f7f7}.input-checkbox:checked+.input-checkbox-text::before{border-color:#1e88e5;background-color:#1e88e5}.input-checkbox:focus+.input-checkbox-text::before{border-color:#1e88e5;box-shadow:0 0 0 2px rgba(4,138,255,.375)}.input-checkbox:checked+.input-checkbox-text:hover::before{border-color:#186db7;background-color:#186db7}.input-checkbox:checked+.input-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:" "}.input-checkbox:checked[disabled]+.input-checkbox-text::before{border-color:#c9c9c9;background-color:#c9c9c9}.input-checkbox-label{position:relative;line-height:1.5}.input-date{cursor:default}.calendar{position:absolute;z-index:8;top:100%;display:none;width:18rem;padding:.5rem;border:1px solid #c9c9c9;border-radius:4px;margin:3px 1rem 1rem;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 button{width:33.3%;padding:0 .5rem;border:0;margin:0;background-color:rgba(0,0,0,0);box-shadow:none;color:#262626;cursor:pointer;font-size:.875rem;outline:none}.calendar button:hover{color:#1e88e5}.calendar button:focus{box-shadow:none}.calendar-buttons .currentMonth{font-weight:600}.calendar-table{width:100%}.calendar-table td{width:14%;cursor:default;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.calendar-time{width:50%;margin:0 auto;text-align:center}.calendar-header-day{font-size:.875rem}.calendar-day{border-radius:4px;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{height:0;border-top:1px solid #c9c9c9;margin:.5rem -0.5rem}.input-duration{box-sizing:border-box;padding:.25rem .25rem;border:1px solid #c9c9c9;border-radius:4px;margin-top:0;margin-bottom:.5rem;font-size:.875rem;line-height:1.5;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.input-duration.focused{border-color:#1e88e5}.input-duration>span{text-align:center}.input-duration input,.input-duration select,.input-duration textarea{width:2rem;padding:0;border:0;margin:0;-moz-appearance:textfield;background-color:#ededed;text-align:center;vertical-align:baseline}.input-duration input::-webkit-inner-spin-button,.input-duration select::-webkit-inner-spin-button,.input-duration textarea::-webkit-inner-spin-button,.input-duration input::-webkit-outer-spin-button,.input-duration select::-webkit-outer-spin-button,.input-duration textarea::-webkit-outer-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none}.input-duration input:focus,.input-duration select:focus,.input-duration textarea:focus{box-shadow:none}.input-duration label{padding:0 .5rem;margin:0}.input-duration-hidden{display:none}.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;background-color:#f7f7f7;border-top-left-radius:4px;border-top-right-radius:4px;font-size:0}.toolbar-button{padding:.5rem;border:0;margin-bottom:0;background-color:#f7f7f7;box-shadow:none}.toolbar-button:hover,.toolbar-button:focus{background-color:rgba(0,0,0,0);color:#1e88e5}.toolbar-button:focus{box-shadow:0 0 0 2px rgba(4,138,255,.375)}.toolbar-button .icon{margin-right:0}.editor-textarea{min-height:24rem;padding:.75rem 1rem;border:1px solid #c9c9c9;border-radius:4px;margin-bottom:.5rem;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:1rem}.editor-textarea:focus{box-shadow:none}.CodeMirror{min-height:24rem;padding:0 1rem;border:1px solid #c9c9c9;border-radius:4px;margin-bottom:.5rem;background:#fcfcfc;color:#262626;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:1rem}.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}.editor-wrap{border-radius:4px}.editor-wrap.focused .editor-toolbar,.editor-wrap.focused .CodeMirror{border-color:#1e88e5}.CodeMirror-cursor{border-left-color:#262626}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler{background-color:inherit}.CodeMirror-selected{background:rgba(0,0,0,0)}.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-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono",Menlo,Consolas,monospace;font-size:.875rem}.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{padding-left:1.25rem;background:#fcfcfc url('data:image/svg+xml;utf8,') no-repeat left center;background-size:1rem 1rem}.cm-s-formwork .CodeMirror-activeline .cm-formatting-quote+.cm-quote{padding-left:0;background:rgba(0,0,0,0)}.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 0 1.5rem;border-radius:4px;background:#fcfcfc url('data:image/svg+xml;utf8,') no-repeat left .25rem center;background-color:#ededed;background-size:1rem 1rem;color:#262626}.cm-s-formwork .CodeMirror-activeline .cm-image~.cm-url:not(.cm-formatting){padding:0;background:rgba(0,0,0,0);color:#7d7d7d}.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-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono",Menlo,Consolas,monospace;font-size:.875rem}.input-file{display:none}.input-file-label{display:block;padding:.5rem;margin-bottom:1rem;background-color:#f7f7f7;clear:both}.input-file-label>span{display:block;padding:1.5rem 1rem;border:2px dashed #c9c9c9;color:#262626;text-align:center;transition:background-color 300ms}.input-file-label.drag>span{background-color:#fcfcfc}.input-image{cursor:default}.image-picker-thumbnails{overflow:auto;height:15rem;padding:.5rem;margin-bottom:1rem}.image-picker-thumbnail{position:relative;display:inline-block;width:8rem;height:8rem;box-sizing:border-box;padding:.5rem;border:1px solid #c9c9c9;margin:.25rem;background-origin:content-box;background-position:center;background-repeat:no-repeat;background-size:contain}.image-picker-thumbnail::after{position:absolute;right:.75rem;bottom:.5rem;left:.75rem;display:block;padding:0 .375rem;border-radius:4px;background-color:rgba(227,227,227,.9);content:attr(data-filename);font-size:.75rem;text-align:center;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,.375)}.image-picker-empty-state{margin:3rem auto 4rem;text-align:center}.image-picker-empty-state-icon{color:#969696;font-size:2rem}input[type=range],select[type=range],textarea[type=range]{width:15rem;padding:.875rem 0;border:0;-webkit-appearance:none;-moz-appearance:none}input[type=range]::-webkit-slider-runnable-track,select[type=range]::-webkit-slider-runnable-track,textarea[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,select[type=range]::-webkit-slider-thumb,textarea[type=range]::-webkit-slider-thumb{width:1rem;height:1rem;border:0;border-radius:50%;margin-top:-0.375rem;background-color:#1e88e5;transition:background-color 150ms;-webkit-appearance:none;-moz-appearance:none}input[type=range]::-moz-range-track,select[type=range]::-moz-range-track,textarea[type=range]::-moz-range-track{width:100%;height:.25rem;border:0;border-radius:.125rem;background-color:#e3e3e3}input[type=range]::-moz-range-thumb,select[type=range]::-moz-range-thumb,textarea[type=range]::-moz-range-thumb{width:1rem;height:1rem;border:0;border-radius:50%;background-color:#1e88e5;cursor:default}input[type=range]::-ms-track,select[type=range]::-ms-track,textarea[type=range]::-ms-track{width:100%;height:.25rem;border-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0);color:rgba(0,0,0,0);cursor:default}input[type=range]::-ms-fill-lower,select[type=range]::-ms-fill-lower,textarea[type=range]::-ms-fill-lower,input[type=range]::-ms-fill-upper,select[type=range]::-ms-fill-upper,textarea[type=range]::-ms-fill-upper{border:0;border-radius:.125rem;background:#e3e3e3;box-shadow:none}input[type=range]::-ms-thumb,select[type=range]::-ms-thumb,textarea[type=range]::-ms-thumb{width:1rem;height:1rem;border:0;border-radius:50%;margin-top:0;background-color:#1e88e5;cursor:default}input[type=range]:focus,select[type=range]:focus,textarea[type=range]:focus{box-shadow:none}input[type=range]:hover::-webkit-slider-thumb,select[type=range]:hover::-webkit-slider-thumb,textarea[type=range]:hover::-webkit-slider-thumb{background-color:#186db7}input[type=range][disabled],select[type=range][disabled],textarea[type=range][disabled]{background-color:rgba(0,0,0,0)}input[type=range][disabled]::-webkit-slider-thumb,select[type=range][disabled]::-webkit-slider-thumb,textarea[type=range][disabled]::-webkit-slider-thumb,input[type=range][disabled]::-moz-range-thumb,select[type=range][disabled]::-moz-range-thumb,textarea[type=range][disabled]::-moz-range-thumb,input[type=range][disabled]::-ms-thumb,select[type=range][disabled]::-ms-thumb,textarea[type=range][disabled]::-ms-thumb{background-color:#7d7d7d}input[type=range]:focus::-webkit-slider-thumb,select[type=range]:focus::-webkit-slider-thumb,textarea[type=range]:focus::-webkit-slider-thumb{background-color:#186db7;box-shadow:0 0 0 2px rgba(4,138,255,.375)}input[type=range]:focus::-moz-range-thumb,select[type=range]:focus::-moz-range-thumb,textarea[type=range]:focus::-moz-range-thumb{background-color:#186db7;box-shadow:0 0 0 2px rgba(4,138,255,.375)}input[type=range]:focus::-ms-thumb,select[type=range]:focus::-ms-thumb,textarea[type=range]:focus::-ms-thumb{background-color:#186db7;box-shadow:0 0 0 2px rgba(4,138,255,.375)}.input-range-value{padding:0 .5rem;font-size:.875rem;vertical-align:.1875rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.input-tag{position:relative;display:block;box-sizing:border-box;padding:.25rem .25rem;padding-bottom:0;border:1px solid #c9c9c9;border-radius:4px;margin-top:0;margin-bottom:.5rem;font-size:.875rem;line-height:1.5;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.input-tag.focused{border-color:#1e88e5}.tag-inner-input{display:inline-block;width:auto;max-width:100%;box-sizing:border-box;padding:0 .25rem;border:0;border-radius:0;margin-bottom:.25rem;font-family:inherit;font-size:.875rem;line-height:inherit;outline:none}.tag-inner-input:focus{box-shadow:none}.input-tag-hidden{display:none}.input-tag .tag{display:inline-block;box-sizing:border-box;padding:0 .375rem;border-radius:4px;margin-bottom:.25rem;background-color:#ededed;cursor:default;font-size:.875rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.input-tag.disabled,.input-tag.disabled .tag-inner-input{background-color:#f7f7f7}.input-tag.disabled .tag{background-color:#e3e3e3}.tag-remove{display:inline-block;padding:0 .125rem;margin-left:.25rem;color:#262626;font-style:normal;transition:color 150ms}.tag-remove:hover{color:#1e88e5}.tag-remove::after{content:"×";font-weight:600}.input-togglegroup{display:inline-block;border:1px solid #c9c9c9;border-radius:4px;margin:0;margin-bottom:.5rem;font-size:0}.input-togglegroup:focus-within{border-color:#1e88e5;box-shadow:0 0 0 2px rgba(4,138,255,.375)}.input-togglegroup label{margin:0}.input-togglegroup input[type=radio],.input-togglegroup select[type=radio],.input-togglegroup textarea[type=radio]{position:absolute;opacity:0}.input-togglegroup input[type=radio]+span,.input-togglegroup select[type=radio]+span,.input-togglegroup textarea[type=radio]+span{display:inline-block;padding:.25rem .75rem;border-radius:3px;font-size:.875rem;transition:background-color 150ms,color 150ms}.input-togglegroup input[type=radio]:hover+span,.input-togglegroup select[type=radio]:hover+span,.input-togglegroup textarea[type=radio]:hover+span{background-color:#f7f7f7}.input-togglegroup input[type=radio]:checked+span,.input-togglegroup select[type=radio]:checked+span,.input-togglegroup textarea[type=radio]:checked+span{background-color:#1e88e5;color:#fff}.input-togglegroup input[type=radio]:focus+span,.input-togglegroup select[type=radio]:focus+span,.input-togglegroup textarea[type=radio]:focus+span{background-color:#186db7}.input-togglegroup[disabled] input[type=radio]+span,.input-togglegroup[disabled] select[type=radio]+span,.input-togglegroup[disabled] textarea[type=radio]+span{background-color:rgba(0,0,0,0);color:#262626}.input-togglegroup[disabled] input[type=radio]:checked+span,.input-togglegroup[disabled] select[type=radio]:checked+span,.input-togglegroup[disabled] textarea[type=radio]:checked+span{background-color:#e3e3e3}.input-togglegroup input[type=radio]:checked:hover+span,.input-togglegroup select[type=radio]:checked:hover+span,.input-togglegroup textarea[type=radio]:checked:hover+span{background-color:#186db7}.dropdown{position:relative;display:inline-block;margin-bottom:.5rem}.dropdown-button{margin-bottom:0}.dropdown-button::after{display:inline-block;height:0;margin-left:.25rem;content:" ";vertical-align:.125rem;border-top:.25rem solid;border-right:.25rem solid rgba(0,0,0,0);border-left:.25rem solid rgba(0,0,0,0)}.dropdown-menu,.dropdown-list{position:absolute;z-index:8;top:100%;left:0;display:none;min-width:8rem;padding:.25rem 0;border:1px solid #c9c9c9;border-radius:4px;margin-top:3px;background-color:#fcfcfc;box-shadow:1px 1px .75rem 0 rgba(0,0,0,.25);float:left}.dropdown-list{width:100%;max-height:10.15625rem;overflow-y:scroll}.dropdown-item{display:block;width:100%;padding:.25rem 1rem;color:#262626;font-size:.875rem;white-space:nowrap}.dropdown-item:hover{background-color:#ededed;color:#262626}.dropdown-item.selected{background-color:#1e88e5;color:#fff}.dropdown-separator{height:0;border-top:1px solid #c9c9c9;margin:.25rem 0}.files-list{padding:0;margin:0;margin-bottom:1rem;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;font-size:.875rem;white-space:nowrap}.file-name{max-width:80%;flex:0 0 80%;font-size:.9375rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-name .icon{margin-right:.5rem;color:#262626}.file-size{color:#7d7d7d}.file-actions{max-width:20%;flex:0 0 20%;font-size:1rem;text-align:right}.tabs{padding:2px 2px 0;border-bottom:1px solid #e3e3e3;margin-bottom:1rem;overflow-x:auto;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;z-index:16;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.75)}.modal{position:fixed;z-index:20;top:0;right:0;bottom:0;left:0;display:none;align-items:center;outline:0}.modal.show{display:flex}.modal-content{max-width:26rem;padding:2rem;border-radius:4px;margin:3rem .5rem;background-color:#fcfcfc}@media(min-width: 26rem){.modal-content{margin:3rem auto}}.modal-size-large{width:40rem;max-width:40rem}@media(max-width: 40rem){.modal-size-large{margin:3rem .5rem}}.modal-error{padding:1rem;margin:-2rem -2rem 1rem -2rem;background-color:#e74c3b;color:#fcfcfc}.modal-text{margin-bottom:2.5rem}.notification-container{position:fixed;z-index:12;top:20px;right:20px}.notification{position:relative;overflow:hidden;width:350px;padding:1.5rem 2.5rem;border-radius:4px;margin-bottom:.5rem;animation:fadeInRight 300ms cubic-bezier(0.4, 0, 0.2, 1);background-color:#ededed;box-shadow:1px 1px .75rem 0 rgba(0,0,0,.25);cursor:default;text-overflow:ellipsis;transition:top 300ms ease-in,opacity 150ms}.notification:hover{opacity:.95}.notification.fadeout{animation:fadeOutRight 300ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}.notification .icon{position:absolute;top:50%;left:1rem;display:block;width:16px;height:16px;color:#fff;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:#25a35a;color:#fff}.notification-warning{background-color:#c27d0e;color:#fff}.notification-error{background-color:#b93d2f;color:#fff}.tooltip{position:absolute;z-index:20;display:none;min-width:2rem;padding:.25rem .5rem;border-radius:4px;background-color:rgba(38,38,38,.8);color:#fcfcfc;font-size:.75rem;pointer-events:none;text-align:center}.spinner{position:relative;display:inline-block;width:1.5rem;height:1.5rem;border-width:.2rem;border-style:solid;border-color:#1e88e5;border-radius:50%;border-bottom-color:rgba(0,0,0,0);border-left-color:rgba(0,0,0,0);margin-right:.75rem;animation:750ms spin infinite linear;text-align:center;transition:border 500ms;transition-timing-function:ease-out;vertical-align:-0.375rem}.spinner .icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.spinner-info{border-color:#1e88e5;animation:none;color:#1e88e5}.spinner-success{border-color:#2ecc70;animation:none;color:#2ecc70}.spinner-error{border-color:#e74c3b;animation:none;color:#e74c3b}.ct-label{color:rgba(0, 0, 0, 40%);fill:rgba(0, 0, 0, 40%);font-size:.75rem;line-height:1}.ct-chart-bar .ct-label,.ct-chart-line .ct-label{display:flex}.ct-chart-donut .ct-label,.ct-chart-pie .ct-label{dominant-baseline:central}.ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:flex-start;text-align:left}.ct-label.ct-vertical.ct-start{align-items:flex-end;justify-content:flex-end;text-align:right}.ct-label.ct-vertical.ct-end{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-chart-bar .ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:center;text-align:center}.ct-chart-bar .ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:center;text-align:center}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:flex-start;text-align:left}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start{align-items:center;justify-content:flex-end;text-align:right}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end{align-items:center;justify-content:flex-start;text-align:left}.ct-grid{stroke:rgba(0, 0, 0, 20%);stroke-dasharray:2px;stroke-width:1px}.ct-grid-background{fill:none}.ct-point{stroke-linecap:round;stroke-width:10px}.ct-line{fill:none;stroke-width:4px}.ct-area{fill-opacity:.1;stroke:none}.ct-bar{fill:none;stroke-width:10px}.ct-slice-donut{fill:none;stroke-width:60px}.ct-series-a .ct-bar,.ct-series-a .ct-line,.ct-series-a .ct-point,.ct-series-a .ct-slice-donut{stroke:#d70206}.ct-series-a .ct-area,.ct-series-a .ct-slice-pie{fill:#d70206}.ct-series-b .ct-bar,.ct-series-b .ct-line,.ct-series-b .ct-point,.ct-series-b .ct-slice-donut{stroke:#f05b4f}.ct-series-b .ct-area,.ct-series-b .ct-slice-pie{fill:#f05b4f}.ct-series-c .ct-bar,.ct-series-c .ct-line,.ct-series-c .ct-point,.ct-series-c .ct-slice-donut{stroke:#f4c63d}.ct-series-c .ct-area,.ct-series-c .ct-slice-pie{fill:#f4c63d}.ct-series-d .ct-bar,.ct-series-d .ct-line,.ct-series-d .ct-point,.ct-series-d .ct-slice-donut{stroke:#d17905}.ct-series-d .ct-area,.ct-series-d .ct-slice-pie{fill:#d17905}.ct-series-e .ct-bar,.ct-series-e .ct-line,.ct-series-e .ct-point,.ct-series-e .ct-slice-donut{stroke:#453d3f}.ct-series-e .ct-area,.ct-series-e .ct-slice-pie{fill:#453d3f}.ct-series-f .ct-bar,.ct-series-f .ct-line,.ct-series-f .ct-point,.ct-series-f .ct-slice-donut{stroke:#59922b}.ct-series-f .ct-area,.ct-series-f .ct-slice-pie{fill:#59922b}.ct-series-g .ct-bar,.ct-series-g .ct-line,.ct-series-g .ct-point,.ct-series-g .ct-slice-donut{stroke:#0544d3}.ct-series-g .ct-area,.ct-series-g .ct-slice-pie{fill:#0544d3}.ct-series-h .ct-bar,.ct-series-h .ct-line,.ct-series-h .ct-point,.ct-series-h .ct-slice-donut{stroke:#6b0392}.ct-series-h .ct-area,.ct-series-h .ct-slice-pie{fill:#6b0392}.ct-series-i .ct-bar,.ct-series-i .ct-line,.ct-series-i .ct-point,.ct-series-i .ct-slice-donut{stroke:#e6805e}.ct-series-i .ct-area,.ct-series-i .ct-slice-pie{fill:#e6805e}.ct-series-j .ct-bar,.ct-series-j .ct-line,.ct-series-j .ct-point,.ct-series-j .ct-slice-donut{stroke:#dda458}.ct-series-j .ct-area,.ct-series-j .ct-slice-pie{fill:#dda458}.ct-series-k .ct-bar,.ct-series-k .ct-line,.ct-series-k .ct-point,.ct-series-k .ct-slice-donut{stroke:#eacf7d}.ct-series-k .ct-area,.ct-series-k .ct-slice-pie{fill:#eacf7d}.ct-series-l .ct-bar,.ct-series-l .ct-line,.ct-series-l .ct-point,.ct-series-l .ct-slice-donut{stroke:#86797d}.ct-series-l .ct-area,.ct-series-l .ct-slice-pie{fill:#86797d}.ct-series-m .ct-bar,.ct-series-m .ct-line,.ct-series-m .ct-point,.ct-series-m .ct-slice-donut{stroke:#b2c326}.ct-series-m .ct-area,.ct-series-m .ct-slice-pie{fill:#b2c326}.ct-series-n .ct-bar,.ct-series-n .ct-line,.ct-series-n .ct-point,.ct-series-n .ct-slice-donut{stroke:#6188e2}.ct-series-n .ct-area,.ct-series-n .ct-slice-pie{fill:#6188e2}.ct-series-o .ct-bar,.ct-series-o .ct-line,.ct-series-o .ct-point,.ct-series-o .ct-slice-donut{stroke:#a748ca}.ct-series-o .ct-area,.ct-series-o .ct-slice-pie{fill:#a748ca}.ct-chart{position:relative;display:block;width:100%;height:14rem;-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);white-space:pre-wrap}.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;width:auto !important;min-width:3rem;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 .icon{display:inline-block;margin:0 .25rem}.ct-legend-label.ct-series-a .icon{color:#1e88e5}.ct-legend-label.ct-series-b .icon{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%,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{max-width:24rem;padding:2rem;border-radius:4px;margin:3rem .5rem;background-color:#fcfcfc;box-shadow:0 0 .75rem -0.125rem rgba(0,0,0,.05)}@media(min-width: 24rem){.login-modal-container{margin:3rem auto}}.login-modal-info,.login-modal-success,.login-modal-warning,.login-modal-error{position:relative;padding:1rem 2rem 1rem 3.5rem;margin:-2rem -2rem 1rem -2rem;border-top-left-radius:4px;border-top-right-radius:4px}.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 .icon,.login-modal-success .icon,.login-modal-warning .icon,.login-modal-error .icon{position:absolute;top:50%;left:1rem;display:block;transform:translate(0, -50%)}.login-modal-info{background-color:#1e88e5;color:#fff}.login-modal-success{background-color:#25a35a;color:#fff}.login-modal-warning{background-color:#f39c11;color:#fff}.login-modal-error{background-color:#e74c3b;color:#fff}.title-bar{position:fixed;z-index:8;top:0;right:0;left:0;padding:1rem;padding-left:4rem;background-color:#ededed;box-shadow:0 0 .75rem -0.125rem 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:16rem;padding-left:1.5rem}}.panel-title{float:left}.view-site{color:#262626;float:right}.view-site:hover{color:#1e88e5}.view-site i{margin-left:.5rem}.sidebar{position:fixed;z-index:10;top:0;bottom:0;left:0;width:16rem;padding:1rem 1.5rem;background:linear-gradient(to bottom, hsl(0deg, 0%, 99%) 0%, hsl(0deg, 0%, 97%) 100%);background-color:#fcfcfc;box-shadow:0 0 .75rem -0.125rem 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{height:calc(100% - 9rem);overflow-y:auto}.toggle-navigation{position:fixed;z-index:12;top:.75rem;left:.75rem;border:none;margin:0;background-color:rgba(0,0,0,0);box-shadow:none;cursor:pointer;font-size:1rem}.toggle-navigation:hover{background-color:rgba(0,0,0,0);box-shadow:none;color:#1e88e5}.toggle-navigation:focus{background-color:rgba(0,0,0,0);box-shadow:none}.logo{margin-bottom:2rem;color:#262626;font-size:1.184rem;font-weight:600;line-height:1.5rem;text-align:center}@media(min-width: 768px){.logo{text-align:left}}.logo img{height:1.5rem;margin-right:.25rem;vertical-align:-0.25rem}.logo a{padding-top:2px;color:#262626}.sidebar-navigation{padding:0;margin:0;margin-bottom:1rem;list-style-type:none}.sidebar-navigation:last-child{margin-bottom:0}.sidebar-navigation>li{position:relative;padding:.25rem 0;padding-left:1rem;margin:0;margin-bottom:.5rem}.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:" "}.panel-user-card{display:flex;align-items:center;margin-bottom:2rem;cursor:pointer}.panel-user-avatar{width:48px}.panel-user-avatar img{width:48px;border-radius:50%;transition:box-shadow 300ms ease-out}.panel-user-card:hover .panel-user-avatar img{box-shadow:0 0 0 .5rem #e3e3e3}.panel-user-details{padding:0 .75rem}.panel-user-fullname{color:#262626}.panel-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:17.875rem}}.component{padding:1.5rem;border-radius:4px;margin-bottom:1rem;background-color:#fcfcfc;box-shadow:0 0 .75rem -0.125rem rgba(0,0,0,.05)}.component::before,.component::after{display:table;content:""}.component::after{clear:both}.caption{margin-bottom:1rem;font-size:.9375rem;font-weight:500;letter-spacing:1px;text-transform:uppercase;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.separator{height:.5rem}.separator-l{height:1rem}.section{margin-bottom:1rem}.section-header{padding:.25rem .5rem;border-bottom:1px solid #e3e3e3;margin-bottom:.5rem;font-size:1rem;font-weight:600;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.icon{display:inline-block;width:1em;min-width:16px;height:1em;min-height:16px;vertical-align:-0.125rem}.section-toggle .icon{transition:transform 150ms}.section.collapsed .section-toggle .icon{transform:rotate(180deg)}.section.collapsed .section-content{display:none}.sort-handle{display:inline-block;margin-bottom:0;color:#7d7d7d;cursor:grab}.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{padding:0;margin: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;min-width:auto;padding:0;border-color:rgba(0,0,0,0);margin:0 .25rem .125rem 0;background-color:rgba(0,0,0,0);box-shadow:none;cursor:pointer}.page-children-toggle:hover,.page-children-toggle:focus{border-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0)}.page-children-toggle:focus{box-shadow:0 0 0 2px rgba(4,138,255,.375)}.page-children-toggle .icon{margin-right:0;transition:transform 150ms}.toggle-expanded .icon{transform:rotate(-180deg)}.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{padding:2px;margin:-2px;font-size:1rem}.page-language{display:inline-block;min-width:1.125rem;padding:.125rem .25rem;border-radius:4px;background-color:#d2e7fa;color:#1e88e5;font-size:.875rem;font-weight:600;line-height:1;text-align:center}button .page-language,.button .page-language{font-size:.75rem}.page-route{color:#7d7d7d;font-size:.875rem}.page-route-changeable{padding:2px;margin:-2px}.page-status .icon{display:inline-block;margin-right:.375rem}.page-status-published .icon{color:#2ecc70}.page-status-not-published .icon{color:#e74c3b}.page-status-not-routable .icon{color:#f39c11}.page-date,.page-status,.page-actions{display:none}.page-actions .button-link{font-size:1rem}@media(min-width: 600px){.pages-item,.pages-list-headers{display:flex;align-items:center}.pages-item-cell,.pages-headers-cell{display:block}.page-details{max-width:55%;flex:0 0 55%}.page-date,.page-status,.page-actions{max-width:15%;flex:0 0 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-info{padding:0 .25rem;margin-bottom:.75rem}.page-info>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-slug-change{padding:0;border-color:rgba(0,0,0,0);margin:0;background-color:rgba(0,0,0,0);box-shadow:none;color:#7d7d7d;cursor:pointer}.page-slug-change:hover,.page-slug-change:focus{border-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0);color:#7d7d7d}.page-slug-change:focus{box-shadow:0 0 0 2px rgba(4,138,255,.375)}.page-slug-change .icon{display:inline-block;margin-right:0;color:#262626;opacity:0;transition:opacity 150ms}.page-slug-change:hover .icon,.page-slug-change:focus .icon{opacity:1}.dragging [data-sortable=false] .pages-item:hover{background-color:#fce8e5;cursor:no-drop}.options-form .input-checkbox-label{margin-bottom:.5rem;font-size:1rem}.info-data{width:100%;margin-bottom:1rem;table-layout:fixed}.info-data td{overflow:hidden;padding:.5rem;vertical-align:top}.info-data-key{width:25%}.info-data-value{width:75%;font-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono",Menlo,Consolas,monospace;font-size:.875rem;word-break:break-word}.user-summary{display:flex;align-items:center}.user-summary-avatar{max-width:33.33333%;flex:0 0 33.33333%;padding:.75rem;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;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: 600px){.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{max-width:20%;flex:0 0 20%}.user-fullname,.user-email{max-width:25%;flex:0 0 25%}.user-last-access,.user-actions{text-align:center}.user-actions{max-width:10%;flex:0 0 10%}}.error-container{max-width:32rem;padding:1rem;margin:4rem auto;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-size:8rem;font-weight:400}.error-status{display:block;font-size:1.75rem}.error-container .action{font-size:1.125rem}.error-container .logo{width:3.5rem;height:3.5rem;margin:2rem auto;background-position:center;background-repeat:no-repeat;background-size:cover} +html{font-size:100%;-webkit-text-size-adjust:100%}body{margin:0;background-color:#f7f7f7;color:#262626;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.5;-webkit-tap-highlight-color:rgba(38,38,38,0)}*{box-sizing:border-box}main{display:block}a{background-color:rgba(0,0,0,0);color:#1e88e5;outline-color:rgba(4,138,255,.375);text-decoration:none;transition:color 150ms}a:hover{color:#186db7}a:not([href]){cursor:default}img{max-width:100%;border-style:none}mark{background-color:gold}[hidden]{display:none}.focused{box-shadow:0 0 0 2px rgba(4,138,255,.375)}::selection{background-color:rgba(30,136,229,.25)}::placeholder{color:#7d7d7d}@media(min-width: 600px){.hide-from-xs{display:none}}@media(max-width: 599px){.show-from-xs{display:none}}@media(min-width: 768px){.hide-from-s{display:none}}@media(max-width: 767px){.show-from-s{display:none}}@media(min-width: 1024px){.hide-from-m{display:none}}@media(max-width: 1023px){.show-from-m{display:none}}@media(min-width: 1280px){.hide-from-l{display:none}}@media(max-width: 1279px){.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:500;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{padding:0;margin-top:0;margin-bottom:.5rem;margin-left:1.25rem;list-style-position:outside}.container,.container-full,.container-no-margin{padding:0 15px;margin:0 auto}.container{max-width:1280px}.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{width:100%;padding:0 15px}.col-xs{width:auto;max-width:100%;flex:1 0 auto}.col-xs-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-xs-2-12,.col-xs-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-xs-3-12,.col-xs-1-4{max-width:25%;flex:0 0 25%}.col-xs-4-12,.col-xs-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-xs-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-xs-6-12,.col-xs-1-2{max-width:50%;flex:0 0 50%}.col-xs-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-xs-8-12,.col-xs-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-xs-9-12,.col-xs-3-4{max-width:75%;flex:0 0 75%}.col-xs-10-12,.col-xs-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-xs-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-xs-12-12,.col-xs-1-1{max-width:100%;flex:0 0 100%}@media(min-width: 768px){.col-s{width:auto;max-width:100%;flex:1 0 auto}.col-s-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-s-2-12,.col-s-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-s-3-12,.col-s-1-4{max-width:25%;flex:0 0 25%}.col-s-4-12,.col-s-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-s-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-s-6-12,.col-s-1-2{max-width:50%;flex:0 0 50%}.col-s-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-s-8-12,.col-s-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-s-9-12,.col-s-3-4{max-width:75%;flex:0 0 75%}.col-s-10-12,.col-s-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-s-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-s-12-12,.col-s-1-1{max-width:100%;flex:0 0 100%}}@media(min-width: 1024px){.col-m{width:auto;max-width:100%;flex:1 0 auto}.col-m-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-m-2-12,.col-m-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-m-3-12,.col-m-1-4{max-width:25%;flex:0 0 25%}.col-m-4-12,.col-m-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-m-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-m-6-12,.col-m-1-2{max-width:50%;flex:0 0 50%}.col-m-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-m-8-12,.col-m-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-m-9-12,.col-m-3-4{max-width:75%;flex:0 0 75%}.col-m-10-12,.col-m-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-m-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-m-12-12,.col-m-1-1{max-width:100%;flex:0 0 100%}}@media(min-width: 1280px){.col-l{width:auto;max-width:100%;flex:1 0 auto}.col-l-1-12{max-width:8.3333333333%;flex:0 0 8.3333333333%}.col-l-2-12,.col-l-1-6{max-width:16.6666666667%;flex:0 0 16.6666666667%}.col-l-3-12,.col-l-1-4{max-width:25%;flex:0 0 25%}.col-l-4-12,.col-l-1-3{max-width:33.3333333333%;flex:0 0 33.3333333333%}.col-l-5-12{max-width:41.6666666667%;flex:0 0 41.6666666667%}.col-l-6-12,.col-l-1-2{max-width:50%;flex:0 0 50%}.col-l-7-12{max-width:58.3333333333%;flex:0 0 58.3333333333%}.col-l-8-12,.col-l-2-3{max-width:66.6666666667%;flex:0 0 66.6666666667%}.col-l-9-12,.col-l-3-4{max-width:75%;flex:0 0 75%}.col-l-10-12,.col-l-5-6{max-width:83.3333333333%;flex:0 0 83.3333333333%}.col-l-11-12{max-width:91.6666666667%;flex:0 0 91.6666666667%}.col-l-12-12,.col-l-1-1{max-width:100%;flex:0 0 100%}}button,.button{display:inline-block;overflow:visible;min-width:2rem;padding:.375rem .5rem;border:1px solid #e3e3e3;border-radius:4px;margin-right:.25rem;margin-bottom:.5rem;background-color:#e3e3e3;box-shadow:0 1px 0 rgba(38,38,38,.25);color:#262626;cursor:default;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:.875rem;font-weight:500;line-height:1.15;outline:none;transition:border-color 150ms,background-color 150ms,color 150ms;white-space:nowrap;-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:#c9c9c9;background-color:#c9c9c9;color:#262626}button:focus,.button:focus{box-shadow:0 0 0 2px rgba(38,38,38,.375)}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;box-shadow:none;color:#c9c9c9;pointer-events:none}button.active,.button.active{border-color:#c9c9c9;background-color:#c9c9c9}button .icon,.button .icon{display:inline-block;margin-right:.25rem}a.button{text-align:center}.button-right{margin-right:0;margin-left:.25rem;float:right}.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,.375)}.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(46,204,112,.375)}.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(243,156,17,.375)}.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(231,76,59,.375)}.button-link{border:0;margin:0;background-color:rgba(0,0,0,0);box-shadow:none;cursor:pointer;font-size:inherit}.button-link:hover,.button-link:focus{background-color:rgba(0,0,0,0);color:#1e88e5}.button-link:focus{box-shadow:0 0 0 2px rgba(4,138,255,.375)}.button-link[disabled],.button-link[disabled]:hover,.button-link.disabled,.button-link.disabled:hover{background-color:rgba(0,0,0,0);cursor:default}.button-link .icon{margin-right:0}input,textarea,select{display:inline-block;width:100%;padding:.25rem .5rem;border:1px solid #c9c9c9;border-radius:4px;margin:0;margin-bottom:.5rem;background-color:#fcfcfc;color:#262626;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:.875rem;line-height:1.5;-webkit-appearance:none;-moz-appearance:none}input:focus,textarea:focus,select:focus{border-color:#1e88e5;outline:none;box-shadow:0 0 0 2px rgba(4,138,255,.375)}input[disabled],textarea[disabled],select[disabled]{background-color:#ededed;color:#7d7d7d}input[readonly],textarea[readonly],select[readonly]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}input[type=checkbox],textarea[type=checkbox],select[type=checkbox],input[type=radio],textarea[type=radio],select[type=radio]{width:auto;height:inherit;padding:0;margin-bottom:0;vertical-align:text-top}input[type=checkbox]:focus,textarea[type=checkbox]:focus,select[type=checkbox]:focus,input[type=radio]:focus,textarea[type=radio]:focus,select[type=radio]:focus{box-shadow:none}input[type=file],textarea[type=file],select[type=file]{padding:0;border:none;border-radius:0}input[type=file]::-webkit-file-upload-button,textarea[type=file]::-webkit-file-upload-button,select[type=file]::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}input[type=number]::-webkit-inner-spin-button,textarea[type=number]::-webkit-inner-spin-button,select[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button,textarea[type=number]::-webkit-outer-spin-button,select[type=number]::-webkit-outer-spin-button{height:auto}input[type=search],textarea[type=search],select[type=search]{max-width:28rem;padding-left:2rem;background:#fcfcfc url('data:image/svg+xml;utf8,') no-repeat left .5rem top .375rem;background-size:1rem 1rem}input[type=search]::-webkit-search-cancel-button,textarea[type=search]::-webkit-search-cancel-button,select[type=search]::-webkit-search-cancel-button{display:none}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:rgba(0,0,0,0);text-shadow:0 0 0 #262626}textarea{overflow:auto;min-height:4.4375rem;max-height:39.875rem;resize:vertical}.input-large{font-size:1.125rem}.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;margin-bottom:.5rem}.input-wrap input,.input-wrap select,.input-wrap textarea{padding-right:1.625rem;margin-bottom:0}.input-reset{position:absolute;top:50%;right:.5rem;color:#262626;transform:translateY(-50%);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:"*"}.input-array{margin-bottom:.5rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.input-array .sort-handle .icon{vertical-align:middle}.input-array-row{display:flex;padding:.25rem .5rem;margin:0 -0.5rem;white-space:nowrap}.input-array-key,.input-array-value{display:inline-block;margin-bottom:0}.input-array-key{width:30%;margin-right:.25rem}.input-array-value{margin-right:.25rem}.input-array-add,.input-array-remove{min-width:1rem;padding:0;margin-right:.25rem}.input-checkbox{position:absolute;opacity:0}.input-checkbox+.input-checkbox-text::before{position:relative;top:.125rem;display:inline-block;width:1rem;height:1rem;box-sizing:border-box;border:1px solid #c9c9c9;border-radius:4px;margin-right:.5rem;content:" ";transition:border-color 150ms,background-color 150ms}.input-checkbox+.input-checkbox-text:hover::before,.input-checkbox[disabled]+.input-checkbox-text::before{background-color:#f7f7f7}.input-checkbox:checked+.input-checkbox-text::before{border-color:#1e88e5;background-color:#1e88e5}.input-checkbox:focus+.input-checkbox-text::before{border-color:#1e88e5;box-shadow:0 0 0 2px rgba(4,138,255,.375)}.input-checkbox:checked+.input-checkbox-text:hover::before{border-color:#186db7;background-color:#186db7}.input-checkbox:checked+.input-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:" "}.input-checkbox:checked[disabled]+.input-checkbox-text::before{border-color:#c9c9c9;background-color:#c9c9c9}.input-checkbox-label{position:relative;line-height:1.5}.input-date{cursor:default}.calendar{position:absolute;z-index:8;top:100%;display:none;width:18rem;padding:.5rem;border:1px solid #c9c9c9;border-radius:4px;margin:3px 1rem 1rem;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 button{width:33.3%;padding:0 .5rem;border:0;margin:0;background-color:rgba(0,0,0,0);box-shadow:none;color:#262626;cursor:pointer;font-size:.875rem;outline:none}.calendar button:hover{color:#1e88e5}.calendar button:focus{box-shadow:none}.calendar-buttons .currentMonth{font-weight:600}.calendar-table{width:100%}.calendar-table td{width:14%;cursor:default;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.calendar-time{width:50%;margin:0 auto;text-align:center}.calendar-header-day{font-size:.875rem}.calendar-day{border-radius:4px;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{height:0;border-top:1px solid #c9c9c9;margin:.5rem -0.5rem}.input-duration{box-sizing:border-box;padding:.25rem .25rem;border:1px solid #c9c9c9;border-radius:4px;margin-top:0;margin-bottom:.5rem;font-size:.875rem;line-height:1.5;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.input-duration.focused{border-color:#1e88e5}.input-duration>span{text-align:center}.input-duration input,.input-duration select,.input-duration textarea{width:2rem;padding:0;border:0;margin:0;-moz-appearance:textfield;background-color:#ededed;text-align:center;vertical-align:baseline}.input-duration input::-webkit-inner-spin-button,.input-duration select::-webkit-inner-spin-button,.input-duration textarea::-webkit-inner-spin-button,.input-duration input::-webkit-outer-spin-button,.input-duration select::-webkit-outer-spin-button,.input-duration textarea::-webkit-outer-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none}.input-duration input:focus,.input-duration select:focus,.input-duration textarea:focus{box-shadow:none}.input-duration label{padding:0 .5rem;margin:0}.input-duration-hidden{display:none}.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;background-color:#f7f7f7;border-top-left-radius:4px;border-top-right-radius:4px;font-size:0}.toolbar-button{padding:.5rem;border:0;margin-bottom:0;background-color:#f7f7f7;box-shadow:none}.toolbar-button:hover,.toolbar-button:focus{background-color:rgba(0,0,0,0);color:#1e88e5}.toolbar-button:focus{box-shadow:0 0 0 2px rgba(4,138,255,.375)}.toolbar-button .icon{margin-right:0}.editor-textarea{min-height:6rem;max-height:46.5rem;padding:.75rem 1rem;border:1px solid #c9c9c9;border-radius:4px;margin-bottom:.5rem;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:1rem}.editor-textarea:focus{box-shadow:none}.CodeMirror{min-height:6rem;max-height:46.5rem;padding:0 1rem;border:1px solid #c9c9c9;border-radius:4px;margin-bottom:.5rem;background:#fcfcfc;color:#262626;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:1rem;resize:vertical}.CodeMirror-wrap pre.CodeMirror-line-like.CodeMirror-placeholder{color:#7d7d7d}.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}.editor-wrap{border-radius:4px}.editor-wrap.focused .editor-toolbar,.editor-wrap.focused .CodeMirror{border-color:#1e88e5}.CodeMirror-cursor{border-left-color:#262626}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler{background-color:inherit}.CodeMirror-selected{background:rgba(0,0,0,0)}.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-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono",Menlo,Consolas,monospace;font-size:.875rem}.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{padding-left:1.25rem;background:#fcfcfc url('data:image/svg+xml;utf8,') no-repeat left center;background-size:1rem 1rem}.cm-s-formwork .CodeMirror-activeline .cm-formatting-quote+.cm-quote{padding-left:0;background:rgba(0,0,0,0)}.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 0 1.5rem;border-radius:4px;background:#fcfcfc url('data:image/svg+xml;utf8,') no-repeat left .25rem center;background-color:#ededed;background-size:1rem 1rem;color:#262626}.cm-s-formwork .CodeMirror-activeline .cm-image~.cm-url:not(.cm-formatting){padding:0;background:rgba(0,0,0,0);color:#7d7d7d}.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-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono",Menlo,Consolas,monospace;font-size:.875rem}.input-file{display:none}.input-file-label{display:block;padding:.5rem;margin-bottom:1rem;background-color:#f7f7f7;clear:both}.input-file-label>span{display:block;padding:1.5rem 1rem;border:2px dashed #c9c9c9;color:#262626;text-align:center;transition:background-color 300ms}.input-file-label.drag>span{background-color:#fcfcfc}.input-image{cursor:default}.image-picker-thumbnails{overflow:auto;height:15rem;padding:.5rem;margin-bottom:1rem}.image-picker-thumbnail{position:relative;display:inline-block;width:8rem;height:8rem;box-sizing:border-box;padding:.5rem;border:1px solid #c9c9c9;margin:.25rem;background-origin:content-box;background-position:center;background-repeat:no-repeat;background-size:contain}.image-picker-thumbnail::after{position:absolute;right:.75rem;bottom:.5rem;left:.75rem;display:block;padding:0 .375rem;border-radius:4px;background-color:rgba(227,227,227,.9);content:attr(data-filename);font-size:.75rem;text-align:center;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,.375)}.image-picker-empty-state{margin:3rem auto 4rem;text-align:center}.image-picker-empty-state-icon{color:#969696;font-size:2rem}input[type=range],select[type=range],textarea[type=range]{width:15rem;padding:.875rem 0;border:0;-webkit-appearance:none;-moz-appearance:none}input[type=range]::-webkit-slider-runnable-track,select[type=range]::-webkit-slider-runnable-track,textarea[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,select[type=range]::-webkit-slider-thumb,textarea[type=range]::-webkit-slider-thumb{width:1rem;height:1rem;border:0;border-radius:50%;margin-top:-0.375rem;background-color:#1e88e5;transition:background-color 150ms;-webkit-appearance:none;-moz-appearance:none}input[type=range]::-moz-range-track,select[type=range]::-moz-range-track,textarea[type=range]::-moz-range-track{width:100%;height:.25rem;border:0;border-radius:.125rem;background-color:#e3e3e3}input[type=range]::-moz-range-thumb,select[type=range]::-moz-range-thumb,textarea[type=range]::-moz-range-thumb{width:1rem;height:1rem;border:0;border-radius:50%;background-color:#1e88e5;cursor:default}input[type=range]::-ms-track,select[type=range]::-ms-track,textarea[type=range]::-ms-track{width:100%;height:.25rem;border-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0);color:rgba(0,0,0,0);cursor:default}input[type=range]::-ms-fill-lower,select[type=range]::-ms-fill-lower,textarea[type=range]::-ms-fill-lower,input[type=range]::-ms-fill-upper,select[type=range]::-ms-fill-upper,textarea[type=range]::-ms-fill-upper{border:0;border-radius:.125rem;background:#e3e3e3;box-shadow:none}input[type=range]::-ms-thumb,select[type=range]::-ms-thumb,textarea[type=range]::-ms-thumb{width:1rem;height:1rem;border:0;border-radius:50%;margin-top:0;background-color:#1e88e5;cursor:default}input[type=range]:focus,select[type=range]:focus,textarea[type=range]:focus{box-shadow:none}input[type=range]:hover::-webkit-slider-thumb,select[type=range]:hover::-webkit-slider-thumb,textarea[type=range]:hover::-webkit-slider-thumb{background-color:#186db7}input[type=range][disabled],select[type=range][disabled],textarea[type=range][disabled]{background-color:rgba(0,0,0,0)}input[type=range][disabled]::-webkit-slider-thumb,select[type=range][disabled]::-webkit-slider-thumb,textarea[type=range][disabled]::-webkit-slider-thumb,input[type=range][disabled]::-moz-range-thumb,select[type=range][disabled]::-moz-range-thumb,textarea[type=range][disabled]::-moz-range-thumb,input[type=range][disabled]::-ms-thumb,select[type=range][disabled]::-ms-thumb,textarea[type=range][disabled]::-ms-thumb{background-color:#7d7d7d}input[type=range]:focus::-webkit-slider-thumb,select[type=range]:focus::-webkit-slider-thumb,textarea[type=range]:focus::-webkit-slider-thumb{background-color:#186db7;box-shadow:0 0 0 2px rgba(4,138,255,.375)}input[type=range]:focus::-moz-range-thumb,select[type=range]:focus::-moz-range-thumb,textarea[type=range]:focus::-moz-range-thumb{background-color:#186db7;box-shadow:0 0 0 2px rgba(4,138,255,.375)}input[type=range]:focus::-ms-thumb,select[type=range]:focus::-ms-thumb,textarea[type=range]:focus::-ms-thumb{background-color:#186db7;box-shadow:0 0 0 2px rgba(4,138,255,.375)}.input-range-value{padding:0 .5rem;font-size:.875rem;vertical-align:.1875rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.input-tag{position:relative;display:block;box-sizing:border-box;padding:.25rem .25rem;padding-bottom:0;border:1px solid #c9c9c9;border-radius:4px;margin-top:0;margin-bottom:.5rem;font-size:.875rem;line-height:1.5;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.input-tag.focused{border-color:#1e88e5}.tag-inner-input{display:inline-block;width:auto;max-width:100%;box-sizing:border-box;padding:0 .25rem;border:0;border-radius:0;margin-bottom:.25rem;font-family:inherit;font-size:.875rem;line-height:inherit;outline:none}.tag-inner-input:focus{box-shadow:none}.input-tag-hidden{display:none}.input-tag .tag{display:inline-block;box-sizing:border-box;padding:0 .375rem;border-radius:4px;margin-bottom:.25rem;background-color:#ededed;cursor:default;font-size:.875rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.input-tag.disabled,.input-tag.disabled .tag-inner-input{background-color:#f7f7f7}.input-tag.disabled .tag{background-color:#e3e3e3}.tag-remove{display:inline-block;padding:0 .125rem;margin-left:.25rem;color:#262626;font-style:normal;transition:color 150ms}.tag-remove:hover{color:#1e88e5}.tag-remove::after{content:"×";font-weight:600}.input-togglegroup{display:inline-block;border:1px solid #c9c9c9;border-radius:4px;margin:0;margin-bottom:.5rem;font-size:0}.input-togglegroup:focus-within{border-color:#1e88e5;box-shadow:0 0 0 2px rgba(4,138,255,.375)}.input-togglegroup label{margin:0}.input-togglegroup input[type=radio],.input-togglegroup select[type=radio],.input-togglegroup textarea[type=radio]{position:absolute;opacity:0}.input-togglegroup input[type=radio]+span,.input-togglegroup select[type=radio]+span,.input-togglegroup textarea[type=radio]+span{display:inline-block;padding:.25rem .75rem;border-radius:3px;font-size:.875rem;transition:background-color 150ms,color 150ms}.input-togglegroup input[type=radio]:hover+span,.input-togglegroup select[type=radio]:hover+span,.input-togglegroup textarea[type=radio]:hover+span{background-color:#f7f7f7}.input-togglegroup input[type=radio]:checked+span,.input-togglegroup select[type=radio]:checked+span,.input-togglegroup textarea[type=radio]:checked+span{background-color:#1e88e5;color:#fff}.input-togglegroup input[type=radio]:focus+span,.input-togglegroup select[type=radio]:focus+span,.input-togglegroup textarea[type=radio]:focus+span{background-color:#186db7}.input-togglegroup[disabled] input[type=radio]+span,.input-togglegroup[disabled] select[type=radio]+span,.input-togglegroup[disabled] textarea[type=radio]+span{background-color:rgba(0,0,0,0);color:#262626}.input-togglegroup[disabled] input[type=radio]:checked+span,.input-togglegroup[disabled] select[type=radio]:checked+span,.input-togglegroup[disabled] textarea[type=radio]:checked+span{background-color:#e3e3e3}.input-togglegroup input[type=radio]:checked:hover+span,.input-togglegroup select[type=radio]:checked:hover+span,.input-togglegroup textarea[type=radio]:checked:hover+span{background-color:#186db7}.dropdown{position:relative;display:inline-block;margin-bottom:.5rem}.dropdown-button{margin-bottom:0}.dropdown-button::after{display:inline-block;height:0;margin-left:.25rem;content:" ";vertical-align:.125rem;border-top:.25rem solid;border-right:.25rem solid rgba(0,0,0,0);border-left:.25rem solid rgba(0,0,0,0)}.dropdown-menu,.dropdown-list{position:absolute;z-index:8;top:100%;left:0;display:none;min-width:8rem;padding:.25rem 0;border:1px solid #c9c9c9;border-radius:4px;margin-top:3px;background-color:#fcfcfc;box-shadow:1px 1px .75rem 0 rgba(0,0,0,.25);float:left}.dropdown-list{width:100%;max-height:10.15625rem;overflow-y:scroll}.dropdown-item{display:block;width:100%;padding:.25rem 1rem;color:#262626;font-size:.875rem;white-space:nowrap}.dropdown-item:hover{background-color:#ededed;color:#262626}.dropdown-item.selected{background-color:#1e88e5;color:#fff}.dropdown-separator{height:0;border-top:1px solid #c9c9c9;margin:.25rem 0}.files-list{padding:0;margin:0;margin-bottom:1rem;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;font-size:.875rem;white-space:nowrap}.file-name{max-width:80%;flex:0 0 80%;font-size:.9375rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-name .icon{margin-right:.5rem;color:#262626}.file-size{color:#7d7d7d}.file-actions{max-width:20%;flex:0 0 20%;font-size:1rem;text-align:right}.tabs{padding:2px 2px 0;border-bottom:1px solid #e3e3e3;margin-bottom:1rem;overflow-x:auto;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;z-index:16;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.75)}.modal{position:fixed;z-index:20;top:0;right:0;bottom:0;left:0;display:none;align-items:center;outline:0}.modal.show{display:flex}.modal-content{max-width:26rem;padding:2rem;border-radius:4px;margin:3rem .5rem;background-color:#fcfcfc}@media(min-width: 26rem){.modal-content{margin:3rem auto}}.modal-size-large{width:40rem;max-width:40rem}@media(max-width: 40rem){.modal-size-large{margin:3rem .5rem}}.modal-error{padding:1rem;margin:-2rem -2rem 1rem -2rem;background-color:#e74c3b;color:#fcfcfc}.modal-text{margin-bottom:2.5rem}.notification-container{position:fixed;z-index:12;top:20px;right:20px}.notification{position:relative;overflow:hidden;width:350px;padding:1.5rem 2.5rem;border-radius:4px;margin-bottom:.5rem;animation:fadeInRight 300ms cubic-bezier(0.4, 0, 0.2, 1);background-color:#ededed;box-shadow:1px 1px .75rem 0 rgba(0,0,0,.25);cursor:default;text-overflow:ellipsis;transition:top 300ms ease-in,opacity 150ms}.notification:hover{opacity:.95}.notification.fadeout{animation:fadeOutRight 300ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}.notification .icon{position:absolute;top:50%;left:1rem;display:block;width:16px;height:16px;color:#fff;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:#25a35a;color:#fff}.notification-warning{background-color:#c27d0e;color:#fff}.notification-error{background-color:#b93d2f;color:#fff}.tooltip{position:absolute;z-index:20;display:none;min-width:2rem;padding:.25rem .5rem;border-radius:4px;background-color:rgba(38,38,38,.8);color:#fcfcfc;font-size:.75rem;pointer-events:none;text-align:center}.spinner{position:relative;display:inline-block;width:1.5rem;height:1.5rem;border-width:.2rem;border-style:solid;border-color:#1e88e5;border-radius:50%;border-bottom-color:rgba(0,0,0,0);border-left-color:rgba(0,0,0,0);margin-right:.75rem;animation:750ms spin infinite linear;text-align:center;transition:border 500ms;transition-timing-function:ease-out;vertical-align:-0.375rem}.spinner .icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.spinner-info{border-color:#1e88e5;animation:none;color:#1e88e5}.spinner-success{border-color:#2ecc70;animation:none;color:#2ecc70}.spinner-error{border-color:#e74c3b;animation:none;color:#e74c3b}.ct-label{color:rgba(0, 0, 0, 40%);fill:rgba(0, 0, 0, 40%);font-size:.75rem;line-height:1}.ct-chart-bar .ct-label,.ct-chart-line .ct-label{display:flex}.ct-chart-donut .ct-label,.ct-chart-pie .ct-label{dominant-baseline:central}.ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:flex-start;text-align:left}.ct-label.ct-vertical.ct-start{align-items:flex-end;justify-content:flex-end;text-align:right}.ct-label.ct-vertical.ct-end{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-chart-bar .ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:center;text-align:center}.ct-chart-bar .ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:center;text-align:center}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start{align-items:flex-end;justify-content:flex-start;text-align:left}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end{align-items:flex-start;justify-content:flex-start;text-align:left}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start{align-items:center;justify-content:flex-end;text-align:right}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end{align-items:center;justify-content:flex-start;text-align:left}.ct-grid{stroke:rgba(0, 0, 0, 20%);stroke-dasharray:2px;stroke-width:1px}.ct-grid-background{fill:none}.ct-point{stroke-linecap:round;stroke-width:10px}.ct-line{fill:none;stroke-width:4px}.ct-area{fill-opacity:.1;stroke:none}.ct-bar{fill:none;stroke-width:10px}.ct-slice-donut{fill:none;stroke-width:60px}.ct-series-a .ct-bar,.ct-series-a .ct-line,.ct-series-a .ct-point,.ct-series-a .ct-slice-donut{stroke:#d70206}.ct-series-a .ct-area,.ct-series-a .ct-slice-pie{fill:#d70206}.ct-series-b .ct-bar,.ct-series-b .ct-line,.ct-series-b .ct-point,.ct-series-b .ct-slice-donut{stroke:#f05b4f}.ct-series-b .ct-area,.ct-series-b .ct-slice-pie{fill:#f05b4f}.ct-series-c .ct-bar,.ct-series-c .ct-line,.ct-series-c .ct-point,.ct-series-c .ct-slice-donut{stroke:#f4c63d}.ct-series-c .ct-area,.ct-series-c .ct-slice-pie{fill:#f4c63d}.ct-series-d .ct-bar,.ct-series-d .ct-line,.ct-series-d .ct-point,.ct-series-d .ct-slice-donut{stroke:#d17905}.ct-series-d .ct-area,.ct-series-d .ct-slice-pie{fill:#d17905}.ct-series-e .ct-bar,.ct-series-e .ct-line,.ct-series-e .ct-point,.ct-series-e .ct-slice-donut{stroke:#453d3f}.ct-series-e .ct-area,.ct-series-e .ct-slice-pie{fill:#453d3f}.ct-series-f .ct-bar,.ct-series-f .ct-line,.ct-series-f .ct-point,.ct-series-f .ct-slice-donut{stroke:#59922b}.ct-series-f .ct-area,.ct-series-f .ct-slice-pie{fill:#59922b}.ct-series-g .ct-bar,.ct-series-g .ct-line,.ct-series-g .ct-point,.ct-series-g .ct-slice-donut{stroke:#0544d3}.ct-series-g .ct-area,.ct-series-g .ct-slice-pie{fill:#0544d3}.ct-series-h .ct-bar,.ct-series-h .ct-line,.ct-series-h .ct-point,.ct-series-h .ct-slice-donut{stroke:#6b0392}.ct-series-h .ct-area,.ct-series-h .ct-slice-pie{fill:#6b0392}.ct-series-i .ct-bar,.ct-series-i .ct-line,.ct-series-i .ct-point,.ct-series-i .ct-slice-donut{stroke:#e6805e}.ct-series-i .ct-area,.ct-series-i .ct-slice-pie{fill:#e6805e}.ct-series-j .ct-bar,.ct-series-j .ct-line,.ct-series-j .ct-point,.ct-series-j .ct-slice-donut{stroke:#dda458}.ct-series-j .ct-area,.ct-series-j .ct-slice-pie{fill:#dda458}.ct-series-k .ct-bar,.ct-series-k .ct-line,.ct-series-k .ct-point,.ct-series-k .ct-slice-donut{stroke:#eacf7d}.ct-series-k .ct-area,.ct-series-k .ct-slice-pie{fill:#eacf7d}.ct-series-l .ct-bar,.ct-series-l .ct-line,.ct-series-l .ct-point,.ct-series-l .ct-slice-donut{stroke:#86797d}.ct-series-l .ct-area,.ct-series-l .ct-slice-pie{fill:#86797d}.ct-series-m .ct-bar,.ct-series-m .ct-line,.ct-series-m .ct-point,.ct-series-m .ct-slice-donut{stroke:#b2c326}.ct-series-m .ct-area,.ct-series-m .ct-slice-pie{fill:#b2c326}.ct-series-n .ct-bar,.ct-series-n .ct-line,.ct-series-n .ct-point,.ct-series-n .ct-slice-donut{stroke:#6188e2}.ct-series-n .ct-area,.ct-series-n .ct-slice-pie{fill:#6188e2}.ct-series-o .ct-bar,.ct-series-o .ct-line,.ct-series-o .ct-point,.ct-series-o .ct-slice-donut{stroke:#a748ca}.ct-series-o .ct-area,.ct-series-o .ct-slice-pie{fill:#a748ca}.ct-chart{position:relative;display:block;width:100%;height:14rem;-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);white-space:pre-wrap}.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;width:auto !important;min-width:3rem;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 .icon{display:inline-block;margin:0 .25rem}.ct-legend-label.ct-series-a .icon{color:#1e88e5}.ct-legend-label.ct-series-b .icon{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%,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{max-width:24rem;padding:2rem;border-radius:4px;margin:3rem .5rem;background-color:#fcfcfc;box-shadow:0 0 .75rem -0.125rem rgba(0,0,0,.05)}@media(min-width: 24rem){.login-modal-container{margin:3rem auto}}.login-modal-info,.login-modal-success,.login-modal-warning,.login-modal-error{position:relative;padding:1rem 2rem 1rem 3.5rem;margin:-2rem -2rem 1rem -2rem;border-top-left-radius:4px;border-top-right-radius:4px}.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 .icon,.login-modal-success .icon,.login-modal-warning .icon,.login-modal-error .icon{position:absolute;top:50%;left:1rem;display:block;transform:translate(0, -50%)}.login-modal-info{background-color:#1e88e5;color:#fff}.login-modal-success{background-color:#25a35a;color:#fff}.login-modal-warning{background-color:#f39c11;color:#fff}.login-modal-error{background-color:#e74c3b;color:#fff}.title-bar{position:fixed;z-index:8;top:0;right:0;left:0;padding:1rem;padding-left:4rem;background-color:#ededed;box-shadow:0 0 .75rem -0.125rem 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:16rem;padding-left:1.5rem}}.panel-title{float:left}.view-site{color:#262626;float:right}.view-site:hover{color:#1e88e5}.view-site i{margin-left:.5rem}.sidebar{position:fixed;z-index:10;top:0;bottom:0;left:0;width:16rem;padding:1rem 1.5rem;background:linear-gradient(to bottom, hsl(0deg, 0%, 99%) 0%, hsl(0deg, 0%, 97%) 100%);background-color:#fcfcfc;box-shadow:0 0 .75rem -0.125rem 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{height:calc(100% - 9rem);overflow-y:auto}.toggle-navigation{position:fixed;z-index:12;top:.75rem;left:.75rem;border:none;margin:0;background-color:rgba(0,0,0,0);box-shadow:none;cursor:pointer;font-size:1rem}.toggle-navigation:hover{background-color:rgba(0,0,0,0);box-shadow:none;color:#1e88e5}.toggle-navigation:focus{background-color:rgba(0,0,0,0);box-shadow:none}.logo{margin-bottom:2rem;color:#262626;font-size:1.184rem;font-weight:600;line-height:1.5rem;text-align:center}@media(min-width: 768px){.logo{text-align:left}}.logo img{height:1.5rem;margin-right:.25rem;vertical-align:-0.25rem}.logo a{padding-top:2px;color:#262626}.sidebar-navigation{padding:0;margin:0;margin-bottom:1rem;list-style-type:none}.sidebar-navigation:last-child{margin-bottom:0}.sidebar-navigation>li{position:relative;padding:.25rem 0;padding-left:1rem;margin:0;margin-bottom:.5rem}.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:" "}.panel-user-card{display:flex;align-items:center;margin-bottom:2rem;cursor:pointer}.panel-user-avatar{width:48px}.panel-user-avatar img{width:48px;border-radius:50%;transition:box-shadow 300ms ease-out}.panel-user-card:hover .panel-user-avatar img{box-shadow:0 0 0 .5rem #e3e3e3}.panel-user-details{padding:0 .75rem}.panel-user-fullname{color:#262626}.panel-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:17.875rem}}.component{padding:1.5rem;border-radius:4px;margin-bottom:1rem;background-color:#fcfcfc;box-shadow:0 0 .75rem -0.125rem rgba(0,0,0,.05)}.component::before,.component::after{display:table;content:""}.component::after{clear:both}.caption{margin-bottom:1rem;font-size:.9375rem;font-weight:500;letter-spacing:1px;text-transform:uppercase;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.separator{height:.5rem}.separator-l{height:1rem}.section{margin-bottom:1rem}.section-header{padding:.25rem .5rem;border-bottom:1px solid #e3e3e3;margin-bottom:.5rem;font-size:1rem;font-weight:600;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.icon{display:inline-block;width:1em;min-width:16px;height:1em;min-height:16px;vertical-align:-0.125rem}.section-toggle .icon{transition:transform 150ms}.section.collapsed .section-toggle .icon{transform:rotate(180deg)}.section.collapsed .section-content{display:none}.sort-handle{display:inline-block;margin-bottom:0;color:#7d7d7d;cursor:grab}.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{padding:0;margin: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;min-width:auto;padding:0;border-color:rgba(0,0,0,0);margin:0 .25rem .125rem 0;background-color:rgba(0,0,0,0);box-shadow:none;cursor:pointer}.page-children-toggle:hover,.page-children-toggle:focus{border-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0)}.page-children-toggle:focus{box-shadow:0 0 0 2px rgba(4,138,255,.375)}.page-children-toggle .icon{margin-right:0;transition:transform 150ms}.toggle-expanded .icon{transform:rotate(-180deg)}.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{padding:2px;margin:-2px;font-size:1rem}.page-language{display:inline-block;min-width:1.125rem;padding:.125rem .25rem;border-radius:4px;background-color:#d2e7fa;color:#1e88e5;font-size:.875rem;font-weight:600;line-height:1;text-align:center}button .page-language,.button .page-language{font-size:.75rem}.page-route{color:#7d7d7d;font-size:.875rem}.page-route-changeable{padding:2px;margin:-2px}.page-status .icon{display:inline-block;margin-right:.375rem}.page-status-published .icon{color:#2ecc70}.page-status-not-published .icon{color:#e74c3b}.page-status-not-routable .icon{color:#f39c11}.page-date,.page-status,.page-actions{display:none}.page-actions .button-link{font-size:1rem}@media(min-width: 600px){.pages-item,.pages-list-headers{display:flex;align-items:center}.pages-item-cell,.pages-headers-cell{display:block}.page-details{max-width:55%;flex:0 0 55%}.page-date,.page-status,.page-actions{max-width:15%;flex:0 0 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-info{padding:0 .25rem;margin-bottom:.75rem}.page-info>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-slug-change{padding:0;border-color:rgba(0,0,0,0);margin:0;background-color:rgba(0,0,0,0);box-shadow:none;color:#7d7d7d;cursor:pointer}.page-slug-change:hover,.page-slug-change:focus{border-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0);color:#7d7d7d}.page-slug-change:focus{box-shadow:0 0 0 2px rgba(4,138,255,.375)}.page-slug-change .icon{display:inline-block;margin-right:0;color:#262626;opacity:0;transition:opacity 150ms}.page-slug-change:hover .icon,.page-slug-change:focus .icon{opacity:1}.dragging [data-sortable=false] .pages-item:hover{background-color:#fce8e5;cursor:no-drop}.options-form .input-checkbox-label{margin-bottom:.5rem;font-size:1rem}.info-data{width:100%;margin-bottom:1rem;table-layout:fixed}.info-data td{overflow:hidden;padding:.5rem;vertical-align:top}.info-data-key{width:25%}.info-data-value{width:75%;font-family:"SFMono-Regular","SF Mono","Cascadia Mono","Liberation Mono",Menlo,Consolas,monospace;font-size:.875rem;word-break:break-word}.user-summary{display:flex;align-items:center}.user-summary-avatar{max-width:33.33333%;flex:0 0 33.33333%;padding:.75rem;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;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: 600px){.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{max-width:20%;flex:0 0 20%}.user-fullname,.user-email{max-width:25%;flex:0 0 25%}.user-last-access,.user-actions{text-align:center}.user-actions{max-width:10%;flex:0 0 10%}}.error-container{max-width:32rem;padding:1rem;margin:4rem auto;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-size:8rem;font-weight:400}.error-status{display:block;font-size:1.75rem}.error-container .action{font-size:1.125rem}.error-container .logo{width:3.5rem;height:3.5rem;margin:2rem auto;background-position:center;background-repeat:no-repeat;background-size:cover} diff --git a/panel/assets/js/app.min.js b/panel/assets/js/app.min.js index c0869683..dc16ffd4 100644 --- a/panel/assets/js/app.min.js +++ b/panel/assets/js/app.min.js @@ -1 +1 @@ -var Formwork=function(){"use strict";const e={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"},t={"&":"&","<":"<",">":">",'"':""","'":"'"};function n(e,t){return"number"==typeof e?e+t:e}function i(e){if("string"==typeof e){const t=/^(\d+)\s*(.*)$/g.exec(e);return{value:t?+t[1]:0,unit:(null==t?void 0:t[2])||void 0}}return{value:Number(e)}}const r=2221e-19;function o(e){return Math.floor(Math.log(Math.abs(e))/Math.LN10)}function a(e,t,n){return t/n.range*e}function l(e,t){const n=Math.pow(10,t||8);return Math.round(e*n)/n}function s(e){if(1===e)return e;function t(e,n){return e%n==0?n:t(n,e%n)}function n(e){return e*e+1}let i,r=2,o=2;if(e%2==0)return 2;do{r=n(r)%e,o=n(n(o))%e,i=t(Math.abs(r-o),e)}while(1===i);return i}function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;ie;function d(e,t){return Array.from({length:e},t?(e,n)=>t(n):()=>{})}function h(e,t){return null!==e&&"object"==typeof e&&Reflect.has(e,t)}function f(e){return null!==e&&isFinite(e)}function p(e){return f(e)?Number(e):void 0}function m(e){return!!Array.isArray(e)&&e.every(Array.isArray)}function g(e,t){const n=Array.isArray(e)?e[t]:h(e,"data")?e.data[t]:null;return h(n,"meta")?n.meta:void 0}function v(e){return null==e||"number"==typeof e&&isNaN(e)}function y(e){return"object"==typeof e&&null!==e&&(Reflect.has(e,"x")||Reflect.has(e,"y"))}function x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y";return y(e)&&h(e,t)?p(e[t]):p(e)}function b(e){var t;null===(t=e.labels)||void 0===t||t.reverse(),e.series.reverse();for(const t of e.series)h(t,"data")?t.data.reverse():Array.isArray(t)&&t.reverse()}function w(e,t){if(!v(e))return t?function(e,t){let n,i;if("object"!=typeof e){const r=p(e);"x"===t?n=r:i=r}else h(e,"x")&&(n=p(e.x)),h(e,"y")&&(i=p(e.y));if(void 0!==n||void 0!==i)return{x:n,y:i}}(e,t):p(e)}function k(e,t){return Array.isArray(e)?e.map((e=>h(e,"value")?w(e.value,t):w(e,t))):k(e.data,t)}function C(e,t,n){if(i=e,Array.isArray(i)&&i.every((e=>Array.isArray(e)||h(e,"data"))))return e.map((e=>k(e,t)));var i;const r=k(e,t);return n?r.map((e=>[e])):r}function S(e){let n="";return null==e?e:(n="number"==typeof e?""+e:"object"==typeof e?JSON.stringify({data:e}):String(e),Object.keys(t).reduce(((e,n)=>e.replaceAll(n,t[n])),n))}class L{call(e,t){return this.svgElements.forEach((n=>Reflect.apply(n[e],n,t))),this}attr(){for(var e=arguments.length,t=new Array(e),n=0;n3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4?arguments[4]:void 0;const{easing:l,...s}=r,u={};let c,d;l&&(c=Array.isArray(l)?l:E[l]),s.begin=n(s.begin,"ms"),s.dur=n(s.dur,"ms"),c&&(s.calcMode="spline",s.keySplines=c.join(" "),s.keyTimes="0;1"),o&&(s.fill="freeze",u[t]=s.from,e.attr(u),d=i(s.begin||0).value,s.begin="indefinite");const h=e.elem("animate",{attributeName:t,...s});o&&setTimeout((()=>{try{h._node.beginElement()}catch(n){u[t]=s.to,e.attr(u),h.remove()}}),d);const f=h.getNode();a&&f.addEventListener("beginEvent",(()=>a.emit("animationBegin",{element:e,animate:f,params:r}))),f.addEventListener("endEvent",(()=>{a&&a.emit("animationEnd",{element:e,animate:f,params:r}),o&&(u[t]=s.to,e.attr(u),h.remove())}))}class T{attr(t,n){return"string"==typeof t?n?this._node.getAttributeNS(n,t):this._node.getAttribute(t):(Object.keys(t).forEach((n=>{if(void 0!==t[n])if(-1!==n.indexOf(":")){const i=n.split(":");this._node.setAttributeNS(e[i[0]],n,String(t[n]))}else this._node.setAttribute(n,String(t[n]))})),this)}elem(e,t,n){return new T(e,t,n,this,arguments.length>3&&void 0!==arguments[3]&&arguments[3])}parent(){return this._node.parentNode instanceof SVGElement?new T(this._node.parentNode):null}root(){let e=this._node;for(;"svg"!==e.nodeName&&e.parentElement;)e=e.parentElement;return new T(e)}querySelector(e){const t=this._node.querySelector(e);return t?new T(t):null}querySelectorAll(e){const t=this._node.querySelectorAll(e);return new L(t)}getNode(){return this._node}foreignObject(t,n,i){let r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("string"==typeof t){const e=document.createElement("div");e.innerHTML=t,r=e.firstChild}else r=t;r instanceof Element&&r.setAttribute("xmlns",e.xmlns);const a=this.elem("foreignObject",n,i,o);return a._node.appendChild(r),a}text(e){return this._node.appendChild(document.createTextNode(e)),this}empty(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this}remove(){var e;return null===(e=this._node.parentNode)||void 0===e||e.removeChild(this._node),this.parent()}replace(e){var t;return null===(t=this._node.parentNode)||void 0===t||t.replaceChild(e._node,this._node),e}append(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&this._node.firstChild?this._node.insertBefore(e._node,this._node.firstChild):this._node.appendChild(e._node),this}classes(){const e=this._node.getAttribute("class");return e?e.trim().split(/\s+/):[]}addClass(e){return this._node.setAttribute("class",this.classes().concat(e.trim().split(/\s+/)).filter((function(e,t,n){return n.indexOf(e)===t})).join(" ")),this}removeClass(e){const t=e.trim().split(/\s+/);return this._node.setAttribute("class",this.classes().filter((e=>-1===t.indexOf(e))).join(" ")),this}removeAllClasses(){return this._node.setAttribute("class",""),this}height(){return this._node.getBoundingClientRect().height}width(){return this._node.getBoundingClientRect().width}animate(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;return Object.keys(e).forEach((i=>{const r=e[i];Array.isArray(r)?r.forEach((e=>M(this,i,e,!1,n))):M(this,i,r,t,n)})),this}constructor(t,n,i,r,o=!1){t instanceof Element?this._node=t:(this._node=document.createElementNS(e.svg,t),"svg"===t&&this.attr({"xmlns:ct":e.ct})),n&&this.attr(n),i&&this.addClass(i),r&&(o&&r._node.firstChild?r._node.insertBefore(this._node,r._node.firstChild):r._node.appendChild(this._node))}}function D(e,t,n){let i;const r=[];function o(r){const o=i;i=u({},e),t&&t.forEach((e=>{window.matchMedia(e[0]).matches&&(i=u(i,e[1]))})),n&&r&&n.emit("optionsChanged",{previousOptions:o,currentOptions:i})}if(!window.matchMedia)throw new Error("window.matchMedia not found! Make sure you're using a polyfill.");return t&&t.forEach((e=>{const t=window.matchMedia(e[0]);t.addEventListener("change",o),r.push(t)})),o(),{removeMediaQueryListeners:function(){r.forEach((e=>e.removeEventListener("change",o)))},getCurrentOptions:()=>i}}T.Easing=E;const A={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]},N={accuracy:3};function O(e,t,n,i,r,o){const a={command:r?e.toLowerCase():e.toUpperCase(),...t,...o?{data:o}:{}};n.splice(i,0,a)}function F(e,t){e.forEach(((n,i)=>{A[n.command.toLowerCase()].forEach(((r,o)=>{t(n,r,i,o,e)}))}))}class I{static join(e){const t=new I(arguments.length>1&&void 0!==arguments[1]&&arguments[1],arguments.length>2?arguments[2]:void 0);for(let n=0;n2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;return O("M",{x:+e,y:+t},this.pathElements,this.pos++,n,i),this}line(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;return O("L",{x:+e,y:+t},this.pathElements,this.pos++,n,i),this}curve(e,t,n,i,r,o){let a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7?arguments[7]:void 0;return O("C",{x1:+e,y1:+t,x2:+n,y2:+i,x:+r,y:+o},this.pathElements,this.pos++,a,l),this}arc(e,t,n,i,r,o,a){let l=arguments.length>7&&void 0!==arguments[7]&&arguments[7],s=arguments.length>8?arguments[8]:void 0;return O("A",{rx:e,ry:t,xAr:n,lAf:i,sf:r,x:o,y:a},this.pathElements,this.pos++,l,s),this}parse(e){const t=e.replace(/([A-Za-z])(-?[0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[\s,]+/).reduce(((e,t)=>(t.match(/[A-Za-z]/)&&e.push([]),e[e.length-1].push(t),e)),[]);"Z"===t[t.length-1][0].toUpperCase()&&t.pop();const n=t.map((e=>{const t=e.shift(),n=A[t.toLowerCase()];return{command:t,...n.reduce(((t,n,i)=>(t[n]=+e[i],t)),{})}}));return this.pathElements.splice(this.pos,0,...n),this.pos+=n.length,this}stringify(){const e=Math.pow(10,this.options.accuracy);return this.pathElements.reduce(((t,n)=>{const i=A[n.command.toLowerCase()].map((t=>{const i=n[t];return this.options.accuracy?Math.round(i*e)/e:i}));return t+n.command+i.join(",")}),"")+(this.close?"Z":"")}scale(e,t){return F(this.pathElements,((n,i)=>{n[i]*="x"===i[0]?e:t})),this}translate(e,t){return F(this.pathElements,((n,i)=>{n[i]+="x"===i[0]?e:t})),this}transform(e){return F(this.pathElements,((t,n,i,r,o)=>{const a=e(t,n,i,r,o);(a||0===a)&&(t[n]=a)})),this}clone(){const e=new I(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.close);return e.pos=this.pos,e.pathElements=this.pathElements.slice().map((e=>({...e}))),e.options={...this.options},e}splitByCommand(e){const t=[new I];return this.pathElements.forEach((n=>{n.command===e.toUpperCase()&&0!==t[t.length-1].pathElements.length&&t.push(new I),t[t.length-1].pathElements.push(n)})),t}constructor(e=!1,t){this.close=e,this.pathElements=[],this.pos=0,this.options={...N,...t}}}function H(e){const t={fillHoles:!1,...e};return function(e,n){const i=new I;let r=!0;for(let o=0;o=2&&e[n]<=e[n-2]&&(o=!0),o&&(r.push({pathCoordinates:[],valueData:[]}),o=!1),r[r.length-1].pathCoordinates.push(e[n],e[n+1]),r[r.length-1].valueData.push(t[n/2]));return r}(n,i,{fillHoles:t.fillHoles,increasingX:!0});if(r.length){if(r.length>1)return I.join(r.map((t=>e(t.pathCoordinates,t.valueData))));{if(n=r[0].pathCoordinates,i=r[0].valueData,n.length<=4)return H()(n,i);const e=[],t=[],o=n.length/2,a=[],l=[],s=[],u=[];for(let i=0;i0!=l[e]>0?a[e]=0:(a[e]=3*(u[e-1]+u[e])/((2*u[e]+u[e-1])/l[e-1]+(u[e]+2*u[e-1])/l[e]),isFinite(a[e])||(a[e]=0));const c=(new I).move(e[0],t[0],!1,i[0]);for(let n=0;ne(t))),n.forEach((n=>n(e,t)))}constructor(){this.listeners=new Map,this.allListeners=new Set}}const B=new WeakMap;class R{update(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var i;(e&&(this.data=e||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.eventEmitter.emit("data",{type:"update",data:this.data})),t)&&(this.options=u({},n?this.options:this.defaultOptions,t),this.initializeTimeoutId||(null===(i=this.optionsProvider)||void 0===i||i.removeMediaQueryListeners(),this.optionsProvider=D(this.options,this.responsiveOptions,this.eventEmitter)));return!this.initializeTimeoutId&&this.optionsProvider&&this.createChart(this.optionsProvider.getCurrentOptions()),this}detach(){var e;this.initializeTimeoutId?window.clearTimeout(this.initializeTimeoutId):(window.removeEventListener("resize",this.resizeListener),null===(e=this.optionsProvider)||void 0===e||e.removeMediaQueryListeners());return B.delete(this.container),this}on(e,t){return this.eventEmitter.on(e,t),this}off(e,t){return this.eventEmitter.off(e,t),this}initialize(){window.addEventListener("resize",this.resizeListener),this.optionsProvider=D(this.options,this.responsiveOptions,this.eventEmitter),this.eventEmitter.on("optionsChanged",(()=>this.update())),this.options.plugins&&this.options.plugins.forEach((e=>{Array.isArray(e)?e[0](this,e[1]):e(this)})),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions()),this.initializeTimeoutId=null}constructor(e,t,n,i,r){this.data=t,this.defaultOptions=n,this.options=i,this.responsiveOptions=r,this.eventEmitter=new W,this.resizeListener=()=>this.update(),this.initializeTimeoutId=setTimeout((()=>this.initialize()),0);const o="string"==typeof e?document.querySelector(e):e;if(!o)throw new Error("Target element is not found");this.container=o;const a=B.get(o);a&&a.detach(),B.set(o,this)}}const z={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}};class j{createGridAndLabels(e,t,n,i){const r="x"===this.units.pos?n.axisX:n.axisY,o=this.ticks.map(((e,t)=>this.projectValue(e,t))),a=this.ticks.map(r.labelInterpolationFnc);o.forEach(((l,s)=>{const u=a[s],c={x:0,y:0};let d;var h;(d=o[s+1]?o[s+1]-l:Math.max(this.axisLength-l,this.axisLength/this.ticks.length),""===u||((h=u)||0===h))&&("x"===this.units.pos?(l=this.chartRect.x1+l,c.x=n.axisX.labelOffset.x,"start"===n.axisX.position?c.y=this.chartRect.padding.top+n.axisX.labelOffset.y+5:c.y=this.chartRect.y1+n.axisX.labelOffset.y+5):(l=this.chartRect.y1-l,c.y=n.axisY.labelOffset.y-d,"start"===n.axisY.position?c.x=this.chartRect.padding.left+n.axisY.labelOffset.x:c.x=this.chartRect.x2+n.axisY.labelOffset.x+10),r.showGrid&&function(e,t,n,i,r,o,a,l){const s={["".concat(n.units.pos,"1")]:e,["".concat(n.units.pos,"2")]:e,["".concat(n.counterUnits.pos,"1")]:i,["".concat(n.counterUnits.pos,"2")]:i+r},u=o.elem("line",s,a.join(" "));l.emit("draw",{type:"grid",axis:n,index:t,group:o,element:u,...s})}(l,s,this,this.gridOffset,this.chartRect[this.counterUnits.len](),e,[n.classNames.grid,n.classNames[this.units.dir]],i),r.showLabel&&function(e,t,n,i,r,o,a,l,s,u){const c={[r.units.pos]:e+a[r.units.pos],[r.counterUnits.pos]:a[r.counterUnits.pos],[r.units.len]:t,[r.counterUnits.len]:Math.max(0,o-10)},d=Math.round(c[r.units.len]),h=Math.round(c[r.counterUnits.len]),f=document.createElement("span");f.className=s.join(" "),f.style[r.units.len]=d+"px",f.style[r.counterUnits.len]=h+"px",f.textContent=String(i);const p=l.foreignObject(f,{style:"overflow: visible;",...c});u.emit("draw",{type:"label",axis:r,index:n,group:l,element:p,text:i,...c})}(l,d,s,u,this,r.offset,c,t,[n.classNames.label,n.classNames[this.units.dir],"start"===r.position?n.classNames[r.position]:n.classNames.end],i))}))}constructor(e,t,n){this.units=e,this.chartRect=t,this.ticks=n,this.counterUnits=e===z.x?z.y:z.x,this.axisLength=t[this.units.rectEnd]-t[this.units.rectStart],this.gridOffset=t[this.units.rectOffset]}}class _ extends j{projectValue(e){const t=Number(x(e,this.units.pos));return this.axisLength*(t-this.bounds.min)/this.bounds.range}constructor(e,t,n,i){const u=i.highLow||function(e,t,n){const i={high:void 0===(t={...t,...n?"x"===n?t.axisX:t.axisY:{}}).high?-Number.MAX_VALUE:+t.high,low:void 0===t.low?Number.MAX_VALUE:+t.low},r=void 0===t.high,o=void 0===t.low;return(r||o)&&function e(t){if(!v(t))if(Array.isArray(t))for(let n=0;ni.high&&(i.high=e),o&&e0||(i.high=1),i.low=0)),i}(t,i,e.pos),c=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const u={high:t.high,low:t.low,valueRange:0,oom:0,step:0,min:0,max:0,range:0,numberOfSteps:0,values:[]};u.valueRange=u.high-u.low,u.oom=o(u.valueRange),u.step=Math.pow(10,u.oom),u.min=Math.floor(u.low/u.step)*u.step,u.max=Math.ceil(u.high/u.step)*u.step,u.range=u.max-u.min,u.numberOfSteps=Math.round(u.range/u.step);const c=a(e,u.step,u)=n)u.step=1;else if(i&&d=n)u.step=d;else{let t=0;for(;;){if(c&&a(e,u.step,u)<=n)u.step*=2;else{if(c||!(a(e,u.step/2,u)>=n))break;if(u.step/=2,i&&u.step%1!=0){u.step*=2;break}}if(t++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}}function h(e,t){return e===(e+=t)&&(e*=1+(t>0?r:-r)),e}u.step=Math.max(u.step,r);let f=u.min,p=u.max;for(;f+u.step<=u.low;)f=h(f,u.step);for(;p-u.step>=u.high;)p=h(p,-u.step);u.min=f,u.max=p,u.range=u.max-u.min;const m=[];for(let e=u.min;e<=u.max;e=h(e,u.step)){const t=l(e);t!==m[m.length-1]&&m.push(t)}return u.values=m,u}(n[e.rectEnd]-n[e.rectStart],u,i.scaleMinSpace||20,i.onlyInteger),d={min:c.min,max:c.max};super(e,n,c.values),this.bounds=c,this.range=d}}class Y extends j{projectValue(e,t){return this.stepLength*t}constructor(e,t,n,i){const r=i.ticks||[];super(e,n,r);const o=Math.max(1,r.length-(i.stretch?1:0));this.stepLength=this.axisLength/o,this.stretch=Boolean(i.stretch)}}function q(e,t,n){var i;if(h(e,"name")&&e.name&&(null===(i=t.series)||void 0===i?void 0:i[e.name])){const i=(null==t?void 0:t.series[e.name])[n];return void 0===i?t[n]:i}return t[n]}const X={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:c,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:c,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,showGridBackground:!1,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};class U extends R{createChart(t){const{data:n}=this,r=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;const o={labels:(e.labels||[]).slice(),series:C(e.series,i,r)},a=o.labels.length;return m(o.series)?(t=Math.max(a,...o.series.map((e=>e.length))),o.series.forEach((e=>{e.push(...d(Math.max(0,t-e.length)))}))):t=o.series.length,o.labels.push(...d(Math.max(0,t-a),(()=>""))),n&&b(o),o}(n,t.reverseData,!0),o=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"100%",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"100%",r=arguments.length>3?arguments[3]:void 0;Array.from(t.querySelectorAll("svg")).filter((t=>t.getAttributeNS(e.xmlns,"ct"))).forEach((e=>t.removeChild(e)));const o=new T("svg").attr({width:n,height:i}).attr({style:"width: ".concat(n,"; height: ").concat(i,";")});return r&&o.addClass(r),t.appendChild(o.getNode()),o}(this.container,t.width,t.height,t.classNames.chart);this.svg=o;const a=o.elem("g").addClass(t.classNames.gridGroup),l=o.elem("g"),s=o.elem("g").addClass(t.classNames.labelGroup),u=function(e,t){var n,r,o,a;const l=Boolean(t.axisX||t.axisY),s=(null===(n=t.axisY)||void 0===n?void 0:n.offset)||0,u=(null===(r=t.axisX)||void 0===r?void 0:r.offset)||0,c=null===(o=t.axisY)||void 0===o?void 0:o.position,d=null===(a=t.axisX)||void 0===a?void 0:a.position;let h=e.width()||i(t.width).value||0,f=e.height()||i(t.height).value||0;const p="number"==typeof(m=t.chartPadding)?{top:m,right:m,bottom:m,left:m}:void 0===m?{top:0,right:0,bottom:0,left:0}:{top:"number"==typeof m.top?m.top:0,right:"number"==typeof m.right?m.right:0,bottom:"number"==typeof m.bottom?m.bottom:0,left:"number"==typeof m.left?m.left:0};var m;h=Math.max(h,s+p.left+p.right),f=Math.max(f,u+p.top+p.bottom);const g={x1:0,x2:0,y1:0,y2:0,padding:p,width(){return this.x2-this.x1},height(){return this.y1-this.y2}};return l?("start"===d?(g.y2=p.top+u,g.y1=Math.max(f-p.bottom,g.y2+1)):(g.y2=p.top,g.y1=Math.max(f-p.bottom-u,g.y2+1)),"start"===c?(g.x1=p.left+s,g.x2=Math.max(h-p.right,g.x1+1)):(g.x1=p.left,g.x2=Math.max(h-p.right-s,g.x1+1))):(g.x1=p.left,g.x2=Math.max(h-p.right,g.x1+1),g.y2=p.top,g.y1=Math.max(f-p.bottom,g.y2+1)),g}(o,t);let c,p;c=void 0===t.axisX.type?new Y(z.x,r.series,u,{...t.axisX,ticks:r.labels,stretch:t.fullWidth}):new t.axisX.type(z.x,r.series,u,t.axisX),p=void 0===t.axisY.type?new _(z.y,r.series,u,{...t.axisY,high:f(t.high)?t.high:t.axisY.high,low:f(t.low)?t.low:t.axisY.low}):new t.axisY.type(z.y,r.series,u,t.axisY),c.createGridAndLabels(a,s,t,this.eventEmitter),p.createGridAndLabels(a,s,t,this.eventEmitter),t.showGridBackground&&function(e,t,n,i){const r=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:r})}(a,u,t.classNames.gridBackground,this.eventEmitter),function(e,t){let n=0;e[arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"reduceRight":"reduce"](((e,i,r)=>t(i,n++,r)),void 0)}(n.series,((e,n)=>{const i=l.elem("g"),o=h(e,"name")&&e.name,a=h(e,"className")&&e.className,s=h(e,"meta")?e.meta:void 0;var d;o&&i.attr({"ct:series-name":o}),s&&i.attr({"ct:meta":S(s)}),i.addClass([t.classNames.series,a||"".concat(t.classNames.series,"-").concat((d=n,String.fromCharCode(97+d%26)))].join(" "));const m=[],v=[];r.series[n].forEach(((t,i)=>{const o={x:u.x1+c.projectValue(t,i,r.series[n]),y:u.y1-p.projectValue(t,i,r.series[n])};m.push(o.x,o.y),v.push({value:t,valueIndex:i,meta:g(e,i)})}));const y={lineSmooth:q(e,t,"lineSmooth"),showPoint:q(e,t,"showPoint"),showLine:q(e,t,"showLine"),showArea:q(e,t,"showArea"),areaBase:q(e,t,"areaBase")};let x;x="function"==typeof y.lineSmooth?y.lineSmooth:y.lineSmooth?P():H();const b=x(m,v);if(y.showPoint&&b.pathElements.forEach((r=>{const{data:o}=r,a=i.elem("line",{x1:r.x,y1:r.y,x2:r.x+.01,y2:r.y},t.classNames.point);if(o){let e,t;h(o.value,"x")&&(e=o.value.x),h(o.value,"y")&&(t=o.value.y),a.attr({"ct:value":[e,t].filter(f).join(","),"ct:meta":S(o.meta)})}this.eventEmitter.emit("draw",{type:"point",value:null==o?void 0:o.value,index:(null==o?void 0:o.valueIndex)||0,meta:null==o?void 0:o.meta,series:e,seriesIndex:n,axisX:c,axisY:p,group:i,element:a,x:r.x,y:r.y,chartRect:u})})),y.showLine){const o=i.elem("path",{d:b.stringify()},t.classNames.line,!0);this.eventEmitter.emit("draw",{type:"line",values:r.series[n],path:b.clone(),chartRect:u,index:n,series:e,seriesIndex:n,meta:s,axisX:c,axisY:p,group:i,element:o})}if(y.showArea&&p.range){const o=Math.max(Math.min(y.areaBase,p.range.max),p.range.min),a=u.y1-p.projectValue(o);b.splitByCommand("M").filter((e=>e.pathElements.length>1)).map((e=>{const t=e.pathElements[0],n=e.pathElements[e.pathElements.length-1];return e.clone(!0).position(0).remove(1).move(t.x,a).line(t.x,t.y).position(e.pathElements.length+1).line(n.x,a)})).forEach((o=>{const a=i.elem("path",{d:o.stringify()},t.classNames.area,!0);this.eventEmitter.emit("draw",{type:"area",values:r.series[n],path:o.clone(),series:e,seriesIndex:n,axisX:c,axisY:p,chartRect:u,index:n,group:i,element:a,meta:s})}))}}),t.reverseData),this.eventEmitter.emit("created",{chartRect:u,axisX:c,axisY:p,svg:o,options:t})}constructor(e,t,n,i){super(e,t,X,u({},X,n),i),this.data=t}}var G={escapeRegExp:function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")},makeDiacriticsRegExp:function(e){var t,n={a:"[aáàăâǎåäãȧąāảȁạ]",b:"[bḃḅ]",c:"[cćĉčċç]",d:"[dďḋḑḍ]",e:"[eéèĕêěëẽėȩęēẻȅẹ]",g:"[gǵğĝǧġģḡ]",h:"[hĥȟḧḣḩḥ]",i:"[iiíìĭîǐïĩįīỉȉịı]",j:"[jĵǰ]",k:"[kḱǩķḳ]",l:"[lĺľļḷ]",m:"[mḿṁṃ]",n:"[nńǹňñṅņṇ]",o:"[oóòŏôǒöőõȯǿǫōỏȍơọ]",p:"[pṕṗ]",r:"[rŕřṙŗȑṛ]",s:"[sśŝšṡşṣș]",t:"[tťẗṫţṭț]",u:"[uúùŭûǔůüűũųūủȕưụ]",v:"[vṽṿ]",w:"[wẃẁŵẘẅẇẉ]",x:"[xẍẋ]",y:"[yýỳŷẙÿỹẏȳỷỵ]",z:"[zźẑžżẓ]"};for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e=(e=e.split(t).join(n[t])).split(t.toUpperCase()).join(n[t].toUpperCase()));return e},slug:function(e){var t,n={"\t":"","\r":"","!":"",'"':"","#":"",$:"","%":"","'":"-","(":"",")":"","*":"","+":"",",":"",".":"",":":"",";":"","<":"","=":"",">":"","?":"","@":"","[":"","]":"","^":"","`":"","{":"","|":"","}":"","¡":"","£":"","¤":"","¥":"","¦":"","§":"","«":"","°":"","»":"","‘":"","’":"","“":"","”":"","\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(e,t){var n,i,r,o=0,a=null;return function(){var l,s=Date.now();return 0===o&&(o=s),n=this,i=arguments,(l=o+t-s)<=0||l>t?(a&&(clearTimeout(a),a=null),o=s,r=e.apply(n,i)):a||(a=setTimeout((function(){o=Date.now(),r=e.apply(n,i),a=null}),l)),r}},outerWidth:function(e){var t=e.offsetWidth,n=getComputedStyle(e);return t+=parseInt(n.marginLeft)+parseInt(n.marginRight)},outerHeight:function(e){var t=e.offsetHeight,n=getComputedStyle(e);return t+=parseInt(n.marginTop)+parseInt(n.marginBottom)},toggleElement:function(e,t){var n=e.style.display||getComputedStyle(e).display;void 0===t&&(t="block"),e.style.display="none"===n?t:"none"},sameArray:function(e,t){var n;if(e.length!==t.length)return!1;for(n=0;n=0;i--)t.options[i].selected&&r.push(encodeURIComponent(t.name)+"="+encodeURIComponent(t.options[i].value));else("checkbox"!==t.type&&"radio"!==t.type||t.checked)&&r.push(encodeURIComponent(t.name)+"="+encodeURIComponent(t.value));return r.join("&")},triggerEvent:function(e,t){var n;try{n=new Event(t)}catch(e){(n=document.createEvent("HTMLEvents")).initEvent(t,!0,!0)}e.dispatchEvent(n)},triggerDownload:function(e,t){var n=document.createElement("form"),i=document.createElement("input");n.action=e,n.method="post",i.type="hidden",i.name="csrf-token",i.value=t,n.appendChild(i),document.body.appendChild(n),n.submit(),document.body.removeChild(n)},longClick:function(e,t,n,i){var r;function o(){clearTimeout(r)}e.addEventListener("mousedown",(function(e){var a=this;1!==e.which?o():(t.call(a,e),r=setTimeout((function(){r=setInterval(t.bind(a,e),i)}),n))})),e.addEventListener("mouseout",o),window.addEventListener("mouseup",o)},firstFocusableElement:function(e){return void 0===e&&(e=document.body),e.querySelector("button, .button, input:not([type=hidden]), select, textarea")||e},getCookies:function(){var e,t,n=[],i=document.cookie.split(";");for(t=0;tt?t:e0?o.insertBefore(i,o.childNodes[0]):o.appendChild(i),r=setTimeout(l,a),i.addEventListener("click",l),i.addEventListener("mouseenter",(function(){clearTimeout(r)})),i.addEventListener("mouseleave",(function(){r=setTimeout(l,n.mouseleaveDelay)}))}function l(){i.classList.add("fadeout"),setTimeout((function(){i&&i.parentNode&&o.removeChild(i),o&&o.childNodes.length<1&&(o.parentNode&&document.body.removeChild(o),o=null)}),n.fadeOutDelay)}return n=G.extendObject({},{interval:5e3,icon:null,newestOnTop:!0,fadeOutDelay:300,mouseleaveDelay:1e3},n),{show:function(){null!==n.icon?Q.pass(n.icon,(function(r){a(e,t,n.interval),i.insertAdjacentHTML("afterBegin",r)})):a(e,t,n.interval)},remove:l}}function Z(e,t){var n,i,r,o=new XMLHttpRequest;return o.open(e.method,e.url,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.send(G.serializeObject(e.data)),"function"==typeof t&&(n=function(){i=JSON.parse(this.response),r=i.code||this.status,400===parseInt(r)?location.reload():t(i,o)},o.onload=n,o.onerror=n),o}var ee=function(){var e=$("[data-command=clear-cache]"),t=$("[data-command=make-backup]");e&&e.addEventListener("click",(function(){Z({method:"POST",url:Formwork.config.baseUri+"cache/clear/",data:{"csrf-token":$("meta[name=csrf-token]").getAttribute("content")}},(function(e){new J(e.message,e.status,{icon:"check-circle"}).show()}))})),t&&t.addEventListener("click",(function(){var e=this;e.setAttribute("disabled",""),Z({method:"POST",url:Formwork.config.baseUri+"backup/make/",data:{"csrf-token":$("meta[name=csrf-token]").getAttribute("content")}},(function(t){new J(t.message,t.status,{icon:"check-circle"}).show(),setTimeout((function(){"success"===t.status&&G.triggerDownload(t.data.uri,$("meta[name=csrf-token]").getAttribute("content")),e.removeAttribute("disabled")}),1e3)}))}))},te=function(){$(".dropdown")&&document.addEventListener("click",(function(e){var t,n,i=e.target.closest(".dropdown-button");i&&(t=document.getElementById(i.getAttribute("data-dropdown")),n="none"!==getComputedStyle(t).display,e.preventDefault()),$$(".dropdown-menu").forEach((function(e){e.style.display=""})),t&&!n&&(t.style.display="block")}))};function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ie(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function se(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var ue=se(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ce=se(/Edge/i),de=se(/firefox/i),he=se(/safari/i)&&!se(/chrome/i)&&!se(/android/i),fe=se(/iP(ad|od|hone)/i),pe=se(/chrome/i)&&se(/android/i),me={capture:!1,passive:!1};function ge(e,t,n){e.addEventListener(t,n,!ue&&me)}function ve(e,t,n){e.removeEventListener(t,n,!ue&&me)}function ye(e,t){if(t){if(">"===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!1}return!1}}function xe(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function be(e,t,n,i){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&ye(e,t):ye(e,t))||i&&e===n)return e;if(e===n)break}while(e=xe(e))}return null}var we,ke=/\s+/g;function Ce(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(ke," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(ke," ")}}function Se(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 Le(e,t){var n="";if("string"==typeof e)n=e;else do{var i=Se(e,"transform");i&&"none"!==i&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function Ee(e,t,n){if(e){var i=e.getElementsByTagName(t),r=0,o=i.length;if(n)for(;r=o:r<=o))return i;if(i===Me())break;i=Ie(i,!1)}return!1}function Ae(e,t,n,i){for(var r=0,o=0,a=e.children;o2&&void 0!==arguments[2]?arguments[2]:{},i=n.evt,r=le(n,Ye);_e.pluginEvent.bind(Pt)(e,t,ie({dragEl:Ue,parentEl:Ge,ghostEl:Ve,rootEl:Ke,nextEl:Qe,lastDownEl:Je,cloneEl:Ze,cloneHidden:et,dragStarted:ft,putSortable:at,activeSortable:Pt.active,originalEvent:i,oldIndex:tt,oldDraggableIndex:it,newIndex:nt,newDraggableIndex:rt,hideGhostForTarget:Ft,unhideGhostForTarget:It,cloneNowHidden:function(){et=!0},cloneNowShown:function(){et=!1},dispatchSortableEvent:function(e){Xe({sortable:t,name:e,originalEvent:i})}},r))};function Xe(e){!function(e){var t=e.sortable,n=e.rootEl,i=e.name,r=e.targetEl,o=e.cloneEl,a=e.toEl,l=e.fromEl,s=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,h=e.originalEvent,f=e.putSortable,p=e.extraEventProperties;if(t=t||n&&n[Be]){var m,g=t.options,v="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||ue||ce?(m=document.createEvent("Event")).initEvent(i,!0,!0):m=new CustomEvent(i,{bubbles:!0,cancelable:!0}),m.to=a||n,m.from=l||n,m.item=r||n,m.clone=o,m.oldIndex=s,m.newIndex=u,m.oldDraggableIndex=c,m.newDraggableIndex=d,m.originalEvent=h,m.pullMode=f?f.lastPutMode:void 0;var y=ie(ie({},p),_e.getEventProperties(i,t));for(var x in y)m[x]=y[x];n&&n.dispatchEvent(m),g[v]&&g[v].call(t,m)}}(ie({putSortable:at,cloneEl:Ze,targetEl:Ue,rootEl:Ke,oldIndex:tt,oldDraggableIndex:it,newIndex:nt,newDraggableIndex:rt},e))}var Ue,Ge,Ve,Ke,Qe,Je,Ze,et,tt,nt,it,rt,ot,at,lt,st,ut,ct,dt,ht,ft,pt,mt,gt,vt,yt=!1,xt=!1,bt=[],wt=!1,kt=!1,Ct=[],St=!1,Lt=[],Et="undefined"!=typeof document,Mt=fe,Tt=ce||ue?"cssFloat":"float",Dt=Et&&!pe&&!fe&&"draggable"in document.createElement("div"),At=function(){if(Et){if(ue)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Nt=function(e,t){var n=Se(e),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=Ae(e,0,t),o=Ae(e,1,t),a=r&&Se(r),l=o&&Se(o),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Te(r).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Te(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&"none"!==a.float){var c="left"===a.float?"left":"right";return!o||"both"!==l.clear&&l.clear!==c?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=i&&"none"===n[Tt]||o&&"none"===n[Tt]&&s+u>i)?"vertical":"horizontal"},Ot=function(e){function t(e,n){return function(i,r,o,a){var l=i.options.group.name&&r.options.group.name&&i.options.group.name===r.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(i,r,o,a),n)(i,r,o,a);var s=(n?i:r).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},i=e.group;i&&"object"==re(i)||(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n},Ft=function(){!At&&Ve&&Se(Ve,"display","none")},It=function(){!At&&Ve&&Se(Ve,"display","")};Et&&!pe&&document.addEventListener("click",(function(e){if(xt)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),xt=!1,!1}),!0);var $t=function(e){if(Ue){e=e.touches?e.touches[0]:e;var t=(r=e.clientX,o=e.clientY,bt.some((function(e){var t=e[Be].options.emptyInsertThreshold;if(t&&!Ne(e)){var n=Te(e),i=r>=n.left-t&&r<=n.right+t,l=o>=n.top-t&&o<=n.bottom+t;return i&&l?a=e:void 0}})),a);if(t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Be]._onDragOver(n)}}var r,o,a},Ht=function(e){Ue&&Ue.parentNode[Be]._isOutsideThisEl(e.target)};function Pt(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=ae({},t),e[Be]=this;var n={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 Nt(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!==Pt.supportPointer&&"PointerEvent"in window&&!he,emptyInsertThreshold:5};for(var i in _e.initializePlugins(this,e,n),n)!(i in t)&&(t[i]=n[i]);for(var r in Ot(t),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&Dt,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?ge(e,"pointerdown",this._onTapStart):(ge(e,"mousedown",this._onTapStart),ge(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(ge(e,"dragover",this),ge(e,"dragenter",this)),bt.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),ae(this,Re())}function Wt(e,t,n,i,r,o,a,l){var s,u,c=e[Be],d=c.options.onMove;return!window.CustomEvent||ue||ce?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=i,s.related=r||t,s.relatedRect=o||Te(t),s.willInsertAfter=l,s.originalEvent=a,e.dispatchEvent(s),d&&(u=d.call(c,s,a)),u}function Bt(e){e.draggable=!1}function Rt(){St=!1}function zt(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function jt(e){return setTimeout(e,0)}function _t(e){return clearTimeout(e)}Pt.prototype={constructor:Pt,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(pt=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Ue):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,i=this.options,r=i.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(a||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,u=i.filter;if(function(e){Lt.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var i=t[n];i.checked&&Lt.push(i)}}(n),!Ue&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||i.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!he||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=be(l,i.draggable,n,!1))&&l.animated||Je===l)){if(tt=Oe(l),it=Oe(l,i.draggable),"function"==typeof u){if(u.call(this,e,l,this))return Xe({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),qe("filter",t,{evt:e}),void(r&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(i){if(i=be(s,i.trim(),n,!1))return Xe({sortable:t,rootEl:i,name:"filter",targetEl:l,fromEl:n,toEl:n}),qe("filter",t,{evt:e}),!0}))))return void(r&&e.cancelable&&e.preventDefault());i.handle&&!be(s,i.handle,n,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,t,n){var i,r=this,o=r.el,a=r.options,l=o.ownerDocument;if(n&&!Ue&&n.parentNode===o){var s=Te(n);if(Ke=o,Ge=(Ue=n).parentNode,Qe=Ue.nextSibling,Je=n,ot=a.group,Pt.dragged=Ue,lt={target:Ue,clientX:(t||e).clientX,clientY:(t||e).clientY},dt=lt.clientX-s.left,ht=lt.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Ue.style["will-change"]="all",i=function(){qe("delayEnded",r,{evt:e}),Pt.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!de&&r.nativeDraggable&&(Ue.draggable=!0),r._triggerDragStart(e,t),Xe({sortable:r,name:"choose",originalEvent:e}),Ce(Ue,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){Ee(Ue,e.trim(),Bt)})),ge(l,"dragover",$t),ge(l,"mousemove",$t),ge(l,"touchmove",$t),ge(l,"mouseup",r._onDrop),ge(l,"touchend",r._onDrop),ge(l,"touchcancel",r._onDrop),de&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ue.draggable=!0),qe("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(ce||ue))i();else{if(Pt.eventCanceled)return void this._onDrop();ge(l,"mouseup",r._disableDelayedDrag),ge(l,"touchend",r._disableDelayedDrag),ge(l,"touchcancel",r._disableDelayedDrag),ge(l,"mousemove",r._delayedDragTouchMoveHandler),ge(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&ge(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(i,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Ue&&Bt(Ue),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;ve(e,"mouseup",this._disableDelayedDrag),ve(e,"touchend",this._disableDelayedDrag),ve(e,"touchcancel",this._disableDelayedDrag),ve(e,"mousemove",this._delayedDragTouchMoveHandler),ve(e,"touchmove",this._delayedDragTouchMoveHandler),ve(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?ge(document,"pointermove",this._onTouchMove):ge(document,t?"touchmove":"mousemove",this._onTouchMove):(ge(Ue,"dragend",this),ge(Ke,"dragstart",this._onDragStart));try{document.selection?jt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(yt=!1,Ke&&Ue){qe("dragStarted",this,{evt:t}),this.nativeDraggable&&ge(document,"dragover",Ht);var n=this.options;!e&&Ce(Ue,n.dragClass,!1),Ce(Ue,n.ghostClass,!0),Pt.active=this,e&&this._appendGhost(),Xe({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(st){this._lastX=st.clientX,this._lastY=st.clientY,Ft();for(var e=document.elementFromPoint(st.clientX,st.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(st.clientX,st.clientY))!==t;)t=e;if(Ue.parentNode[Be]._isOutsideThisEl(e),t)do{if(t[Be]){if(t[Be]._onDragOver({clientX:st.clientX,clientY:st.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);It()}},_onTouchMove:function(e){if(lt){var t=this.options,n=t.fallbackTolerance,i=t.fallbackOffset,r=e.touches?e.touches[0]:e,o=Ve&&Le(Ve,!0),a=Ve&&o&&o.a,l=Ve&&o&&o.d,s=Mt&&vt&&Fe(vt),u=(r.clientX-lt.clientX+i.x)/(a||1)+(s?s[0]-Ct[0]:0)/(a||1),c=(r.clientY-lt.clientY+i.y)/(l||1)+(s?s[1]-Ct[1]:0)/(l||1);if(!Pt.active&&!yt){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))i.right+r||e.clientX<=i.right&&e.clientY>i.bottom&&e.clientX>=i.left:e.clientX>i.right&&e.clientY>i.top||e.clientX<=i.right&&e.clientY>i.bottom+r}(e,r,this)&&!m.animated){if(m===Ue)return N(!1);if(m&&o===e.target&&(a=m),a&&(n=Te(a)),!1!==Wt(Ke,o,Ue,t,a,n,e,!!a))return A(),m&&m.nextSibling?o.insertBefore(Ue,m.nextSibling):o.appendChild(Ue),Ge=o,O(),N(!0)}else if(m&&function(e,t,n){var i=Te(Ae(n.el,0,n.options,!0)),r=10;return t?e.clientXc+u*o/2:sd-gt)return-mt}else if(s>c+u*(1-r)/2&&sd-u*o/2))return s>c+u/2?1:-1;return 0}(e,a,n,r,w?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,kt,pt===a),0!==v){var L=Oe(Ue);do{L-=v,x=Ge.children[L]}while(x&&("none"===Se(x,"display")||x===Ve))}if(0===v||x===a)return N(!1);pt=a,mt=v;var E=a.nextElementSibling,M=!1,T=Wt(Ke,o,Ue,t,a,n,e,M=1===v);if(!1!==T)return 1!==T&&-1!==T||(M=1===T),St=!0,setTimeout(Rt,30),A(),M&&!E?o.appendChild(Ue):a.parentNode.insertBefore(Ue,M?E:a),C&&Pe(C,0,S-C.scrollTop),Ge=Ue.parentNode,void 0===y||kt||(gt=Math.abs(y-Te(a)[k])),O(),N(!0)}if(o.contains(Ue))return N(!1)}return!1}function D(l,s){qe(l,f,ie({evt:e,isOwner:c,axis:r?"vertical":"horizontal",revert:i,dragRect:t,targetRect:n,canSort:d,fromSortable:h,target:a,completed:N,onMove:function(n,i){return Wt(Ke,o,Ue,t,n,Te(n),e,i)},changed:O},s))}function A(){D("dragOverAnimationCapture"),f.captureAnimationState(),f!==h&&h.captureAnimationState()}function N(t){return D("dragOverCompleted",{insertion:t}),t&&(c?u._hideClone():u._showClone(f),f!==h&&(Ce(Ue,at?at.options.ghostClass:u.options.ghostClass,!1),Ce(Ue,l.ghostClass,!0)),at!==f&&f!==Pt.active?at=f:f===Pt.active&&at&&(at=null),h===f&&(f._ignoreWhileAnimating=a),f.animateAll((function(){D("dragOverAnimationComplete"),f._ignoreWhileAnimating=null})),f!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(a===Ue&&!Ue.animated||a===o&&!a.animated)&&(pt=null),l.dragoverBubble||e.rootEl||a===document||(Ue.parentNode[Be]._isOutsideThisEl(e.target),!t&&$t(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),p=!0}function O(){nt=Oe(Ue),rt=Oe(Ue,l.draggable),Xe({sortable:f,name:"change",toEl:o,newIndex:nt,newDraggableIndex:rt,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){ve(document,"mousemove",this._onTouchMove),ve(document,"touchmove",this._onTouchMove),ve(document,"pointermove",this._onTouchMove),ve(document,"dragover",$t),ve(document,"mousemove",$t),ve(document,"touchmove",$t)},_offUpEvents:function(){var e=this.el.ownerDocument;ve(e,"mouseup",this._onDrop),ve(e,"touchend",this._onDrop),ve(e,"pointerup",this._onDrop),ve(e,"touchcancel",this._onDrop),ve(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;nt=Oe(Ue),rt=Oe(Ue,n.draggable),qe("drop",this,{evt:e}),Ge=Ue&&Ue.parentNode,nt=Oe(Ue),rt=Oe(Ue,n.draggable),Pt.eventCanceled||(yt=!1,kt=!1,wt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),_t(this.cloneId),_t(this._dragStartId),this.nativeDraggable&&(ve(document,"drop",this),ve(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),he&&Se(document.body,"user-select",""),Se(Ue,"transform",""),e&&(ft&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),Ve&&Ve.parentNode&&Ve.parentNode.removeChild(Ve),(Ke===Ge||at&&"clone"!==at.lastPutMode)&&Ze&&Ze.parentNode&&Ze.parentNode.removeChild(Ze),Ue&&(this.nativeDraggable&&ve(Ue,"dragend",this),Bt(Ue),Ue.style["will-change"]="",ft&&!yt&&Ce(Ue,at?at.options.ghostClass:this.options.ghostClass,!1),Ce(Ue,this.options.chosenClass,!1),Xe({sortable:this,name:"unchoose",toEl:Ge,newIndex:null,newDraggableIndex:null,originalEvent:e}),Ke!==Ge?(nt>=0&&(Xe({rootEl:Ge,name:"add",toEl:Ge,fromEl:Ke,originalEvent:e}),Xe({sortable:this,name:"remove",toEl:Ge,originalEvent:e}),Xe({rootEl:Ge,name:"sort",toEl:Ge,fromEl:Ke,originalEvent:e}),Xe({sortable:this,name:"sort",toEl:Ge,originalEvent:e})),at&&at.save()):nt!==tt&&nt>=0&&(Xe({sortable:this,name:"update",toEl:Ge,originalEvent:e}),Xe({sortable:this,name:"sort",toEl:Ge,originalEvent:e})),Pt.active&&(null!=nt&&-1!==nt||(nt=tt,rt=it),Xe({sortable:this,name:"end",toEl:Ge,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){qe("nulling",this),Ke=Ue=Ge=Ve=Qe=Ze=Je=et=lt=st=ft=nt=rt=tt=it=pt=mt=at=ot=Pt.dragged=Pt.ghost=Pt.clone=Pt.active=null,Lt.forEach((function(e){e.checked=!0})),Lt.length=ut=ct=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Ue&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,i=0,r=n.length,o=this.options;i1?e.parentNode.removeChild(e):o(e)}function o(e){var i,r;t&&((i=$(".input-array-key",e)).value="",i.removeAttribute("value")),(r=$(".input-array-value",e)).value="",r.removeAttribute("value"),r.name=n+"[]"}function a(e){var t=$(".input-array-key",e);$(".input-array-value",e).name=n+"["+t.value.trim()+"]"}function l(e){var n,o,l=$(".input-array-add",e),s=$(".input-array-remove",e);l.addEventListener("click",i.bind(l,e)),s.addEventListener("click",r.bind(s,e)),t&&(n=$(".input-array-key",e),o=$(".input-array-value",e),n.addEventListener("keyup",a.bind(n,e)),o.addEventListener("keyup",a.bind(o,e)))}$$(".input-array-row",e).forEach((function(e){l(e)})),Pt.create(e,{handle:".sort-handle",forceFallback:!0})}function an(e,t){var n,i,r={years:31536e3,months:2592e3,weeks:604800,days:86400,hours:3600,minutes:60,seconds:1},o={},a={};function l(e,n){var i,o={};for(i in e=G.toSafeInteger(e),void 0===n&&(n=t.intervals),r)Object.prototype.hasOwnProperty.call(r,i)&&-1!==n.indexOf(i)&&(o[i]=Math.floor(e/r[i]),e-=o[i]*r[i]);return o}function s(){var e={},n=0,a=0,l=0;for(l in o)Object.prototype.hasOwnProperty.call(o,l)&&(e[l]=o[l].value);n=function(e){var t,n=0;for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&Object.prototype.hasOwnProperty.call(r,t)&&(n+=e[t]*r[t]);return G.toSafeInteger(n)}(e),i.step&&(a=i.step*r[t.unit],n=Math.floor(n/a)*a),i.min&&(n=Math.max(n,i.min)),i.max&&(n=Math.min(n,i.max)),i.value=Math.round(n/r[t.unit])}function u(){var e,n=l(i.value*r[t.unit]);for(e in o)Object.prototype.hasOwnProperty.call(o,e)&&(o[e].value=n[e])}function c(){var e;for(e in o)Object.prototype.hasOwnProperty.call(o,e)&&(o[e].style.width=Math.max(3,o[e].value.length+2)+"ch")}function d(){var e;for(e in o)Object.prototype.hasOwnProperty.call(o,e)&&(a[e].innerHTML=t.labels[e][1===parseInt(o[e].value)?0:1])}function h(i,r){var l,h,f,p,m;for((n=document.createElement("div")).className="input-duration",m=0;m1&&(f.step=r[h]),e.disabled&&(f.disabled=!0),o[h]=f,f.addEventListener("input",(function(){for(;"0"===this.value.charAt(0)&&this.value.length>1&&!this.value.charAt(1).match(/[.,]/);)this.value=this.value.slice(1);for(;this.value>G.getMaxSafeInteger();)this.value=this.value.slice(0,-1);c(),s(),d()})),f.addEventListener("blur",(function(){s(),u(),c(),d()})),f.addEventListener("focus",(function(){n.classList.add("focused")})),f.addEventListener("blur",(function(){n.classList.remove("focused")})),l.addEventListener("mousedown",(function(e){var t=$("input",this);t&&e.target!==t&&(t.focus(),e.preventDefault())})),(p=document.createElement("label")).innerHTML=t.labels[h][1===parseInt(f.value)?0:1],a[h]=p,l.appendChild(f),l.appendChild(p),n.appendChild(l);return n.addEventListener("mousedown",(function(e){e.target===this&&(f.focus(),e.preventDefault())})),n}t=G.extendObject({},{unit:"seconds",intervals:["years","months","weeks","days","hours","minutes","seconds"],labels:{years:["year","years"],months:["month","months"],weeks:["week","weeks"],days:["day","days"],hours:["hour","hours"],minutes:["minute","minutes"],seconds:["second","seconds"]}},t),function(){var n,o,a;(i=document.createElement("input")).className="input-duration-hidden",i.name=e.name,i.id=e.id,i.type="text",i.value=e.value,i.readOnly=!0,i.hidden=!0,e.min&&(i.min=e.min);e.max&&(i.max=e.max);e.step&&(i.step=e.step);e.required&&(i.required=!0);e.disabled&&(i.disabled=!0);e.hasAttribute("data-intervals")&&(t.intervals=e.getAttribute("data-intervals").split(", "));e.hasAttribute("data-unit")&&(t.unit=e.getAttribute("data-unit"));o=e.value*r[t.unit],a=e.step*r[t.unit],n=h(l(o||0),l(a||1)),e.parentNode.replaceChild(n,e),n.appendChild(i)}()}nn.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var i=Ae(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:tn},ae(nn,{pluginName:"revertOnSpill"}),rn.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:tn},ae(rn,{pluginName:"removeOnSpill"}),Pt.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?ge(document,"dragover",this._handleAutoScroll):this.options.supportPointer?ge(document,"pointermove",this._handleFallbackAutoScroll):t.touches?ge(document,"touchmove",this._handleFallbackAutoScroll):ge(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?ve(document,"dragover",this._handleAutoScroll):(ve(document,"pointermove",this._handleFallbackAutoScroll),ve(document,"touchmove",this._handleFallbackAutoScroll),ve(document,"mousemove",this._handleFallbackAutoScroll)),Zt(),Jt(),clearTimeout(we),we=void 0},nulling:function(){Gt=qt=Yt=Qt=Vt=Xt=Ut=null,Kt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,i=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,o=document.elementFromPoint(i,r);if(Gt=e,t||this.options.forceAutoScrollFallback||ce||ue||he){en(e,this.options,o,t);var a=Ie(o,!0);!Qt||Vt&&i===Xt&&r===Ut||(Vt&&Zt(),Vt=setInterval((function(){var o=Ie(document.elementFromPoint(i,r),!0);o!==a&&(a=o,Jt()),en(e,n.options,o,t)}),10),Xt=i,Ut=r)}else{if(!this.options.bubbleScroll||Ie(o,!0)===Me())return void Jt();en(e,this.options,Ie(o,!1),!1)}}},ae(e,{pluginName:"scroll",initializeByDefault:!0})}),Pt.mount(rn,nn);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var ln,sn={exports:{}};function un(){return ln||(ln=1,sn.exports=function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),i=/MSIE \d/.test(e),r=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=i||r||o,l=a&&(i?document.documentMode||6:+(o||r)[1]),s=!o&&/WebKit\//.test(e),u=s&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\/(\d+)/.exec(e),d=c&&+c[1],h=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),g=f&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),y=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),x=g||/Mac/.test(t),b=/\bCrOS\b/.test(e),w=/win/i.test(t),k=h&&e.match(/Version\/(\d*\.\d*)/);k&&(k=Number(k[1])),k&&k>=15&&(h=!1,s=!0);var C=x&&(u||h&&(null==k||k<12.11)),S=n||a&&l>=9;function L(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var E,M=function(e,t){var n=e.className,i=L(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:"")}};function T(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function D(e,t){return T(e).appendChild(t)}function A(e,t,n,i){var r=document.createElement(e);if(n&&(r.className=n),i&&(r.style.cssText=i),"string"==typeof t)r.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=l-o,a+=n-a%n,o=l+1}}g?H=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(H=function(e){try{e.select()}catch(e){}});var j=function(){this.id=null,this.f=null,this.time=0,this.handler=B(this.onTimeout,this)};function _(e,t){for(var n=0;n=t)return i+Math.min(a,t-r);if(r+=o-i,i=o+1,(r+=n-r%n)>=t)return i}}var K=[""];function Q(e){for(;K.length<=e;)K.push(J(K)+" ");return K[e]}function J(e){return e[e.length-1]}function Z(e,t){for(var n=[],i=0;i""&&(e.toUpperCase()!=e.toLowerCase()||ie.test(e))}function oe(e,t){return t?!!(t.source.indexOf("\\w")>-1&&re(e))||t.test(e):re(e)}function ae(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var le=/[\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 se(e){return e.charCodeAt(0)>=768&&le.test(e)}function ue(e,t,n){for(;(n<0?t>0:tn?-1:1;;){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;e(o)?n=o:t=o+i}}function de(e,t,n,i){if(!e)return i(t,n,"ltr",0);for(var r=!1,o=0;ot||t==n&&a.to==t)&&(i(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),r=!0)}r||i(t,n,"ltr")}var he=null;function fe(e,t,n){var i;he=null;for(var r=0;rt)return r;o.to==t&&(o.from!=o.to&&"before"==n?i=r:he=r),o.from==t&&(o.from!=o.to&&"before"!=n?i=r:he=r)}return null!=i?i:he}var pe=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,l=/[1n]/;function s(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var u="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!i.test(e))return!1;for(var c=e.length,d=[],h=0;h-1&&(i[t]=r.slice(0,o).concat(r.slice(o+1)))}}}function be(e,t){var n=ye(e,t);if(n.length)for(var i=Array.prototype.slice.call(arguments,2),r=0;r0}function Se(e){e.prototype.on=function(e,t){ve(this,e,t)},e.prototype.off=function(e,t){xe(this,e,t)}}function Le(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ee(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Me(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Te(e){Le(e),Ee(e)}function De(e){return e.target||e.srcElement}function Ae(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),x&&e.ctrlKey&&1==t&&(t=3),t}var Ne,Oe,Fe=function(){if(a&&l<9)return!1;var e=A("div");return"draggable"in e||"dragDrop"in e}();function Ie(e){if(null==Ne){var t=A("span","");D(e,A("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ne=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&l<8))}var n=Ne?A("span",""):A("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function $e(e){if(null!=Oe)return Oe;var t=D(e,document.createTextNode("AخA")),n=E(t,0,1).getBoundingClientRect(),i=E(t,1,2).getBoundingClientRect();return T(e),!(!n||n.left==n.right)&&(Oe=i.right-n.right<3)}var He,Pe=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],i=e.length;t<=i;){var r=e.indexOf("\n",t);-1==r&&(r=e.length);var o=e.slice(t,"\r"==e.charAt(r-1)?r-1:r),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=r+1)}return n}:function(e){return e.split(/\r\n?|\n/)},We=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Be="oncopy"in(He=A("div"))||(He.setAttribute("oncopy","return;"),"function"==typeof He.oncopy),Re=null;function ze(e){if(null!=Re)return Re;var t=D(e,A("span","x")),n=t.getBoundingClientRect(),i=E(t,0,1).getBoundingClientRect();return Re=Math.abs(n.left-i.left)>1}var je={},_e={};function Ye(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),je[e]=t}function qe(e,t){_e[e]=t}function Xe(e){if("string"==typeof e&&_e.hasOwnProperty(e))e=_e[e];else if(e&&"string"==typeof e.name&&_e.hasOwnProperty(e.name)){var t=_e[e.name];"string"==typeof t&&(t={name:t}),(e=ne(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Xe("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Xe("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ue(e,t){t=Xe(t);var n=je[t.name];if(!n)return Ue(e,"text/plain");var i=n(e,t);if(Ge.hasOwnProperty(t.name)){var r=Ge[t.name];for(var o in r)r.hasOwnProperty(o)&&(i.hasOwnProperty(o)&&(i["_"+o]=i[o]),i[o]=r[o])}if(i.name=t.name,t.helperType&&(i.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)i[a]=t.modeProps[a];return i}var Ge={};function Ve(e,t){R(t,Ge.hasOwnProperty(e)?Ge[e]:Ge[e]={})}function Ke(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var i in t){var r=t[i];r instanceof Array&&(r=r.concat([])),n[i]=r}return n}function Qe(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Je(e,t,n){return!e.startState||e.startState(t,n)}var Ze=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function et(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var i=0;;++i){var r=n.children[i],o=r.chunkSize();if(t=e.first&&tn?st(n,et(e,n).text.length):gt(t,et(e,t.line).text.length)}function gt(e,t){var n=e.ch;return null==n||n>t?st(e.line,t):n<0?st(e.line,0):e}function vt(e,t){for(var n=[],i=0;i=this.string.length},Ze.prototype.sol=function(){return this.pos==this.lineStart},Ze.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ze.prototype.next=function(){if(this.post},Ze.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ze.prototype.skipToEnd=function(){this.pos=this.string.length},Ze.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ze.prototype.backUp=function(e){this.pos-=e},Ze.prototype.column=function(){return this.lastColumnPos0?null:(i&&!1!==t&&(this.pos+=i[0].length),i)}var r=function(e){return n?e.toLowerCase():e};if(r(this.string.substr(this.pos,e.length))==r(e))return!1!==t&&(this.pos+=e.length),!0},Ze.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ze.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ze.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ze.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var yt=function(e,t){this.state=e,this.lookAhead=t},xt=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 bt(e,t,n,i){var r=[e.state.modeGen],o={};Dt(e,t.text,e.doc.mode,n,(function(e,t){return r.push(e,t)}),o,i);for(var a=n.state,l=function(i){n.baseTokens=r;var l=e.state.overlays[i],s=1,u=0;n.state=!0,Dt(e,t.text,l.mode,n,(function(e,t){for(var n=s;ue&&r.splice(s,1,e,r[s+1],i),s+=2,u=Math.min(e,i)}if(t)if(l.opaque)r.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;ne.options.maxHighlightLength&&Ke(e.doc.mode,i.state),o=bt(e,t,i);r&&(i.state=r),t.stateAfter=i.save(!r),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function kt(e,t,n){var i=e.doc,r=e.display;if(!i.mode.startState)return new xt(i,!0,t);var o=At(e,t,n),a=o>i.first&&et(i,o-1).stateAfter,l=a?xt.fromSaved(i,a,o):new xt(i,Je(i.mode),o);return i.iter(o,t,(function(n){Ct(e,n.text,l);var i=l.line;n.stateAfter=i==t-1||i%5==0||i>=r.viewFrom&&it.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}xt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},xt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;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}},xt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},xt.fromSaved=function(e,t,n){return t instanceof yt?new xt(e,Ke(e.mode,t.state),n,t.lookAhead):new xt(e,Ke(e.mode,t),n)},xt.prototype.save=function(e){var t=!1!==e?Ke(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new yt(t,this.maxLookAhead):t};var Et=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Mt(e,t,n,i){var r,o,a=e.doc,l=a.mode,s=et(a,(t=mt(a,t)).line),u=kt(e,t.line,n),c=new Ze(s.text,e.options.tabSize,u);for(i&&(o=[]);(i||c.pose.options.maxHighlightLength?(l=!1,a&&Ct(e,t,i,d.pos),d.pos=t.length,s=null):s=Tt(Lt(n,d,i.state,h),o),h){var f=h[0].name;f&&(s="m-"+(s?f+" "+s:f))}if(!l||c!=s){for(;ua;--l){if(l<=o.first)return o.first;var s=et(o,l-1),u=s.stateAfter;if(u&&(!n||l+(u instanceof yt?u.lookAhead:0)<=o.modeFrontier))return l;var c=z(s.text,null,e.options.tabSize);(null==r||i>c)&&(r=l-1,i=c)}return r}function Nt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;i--){var r=et(e,i).stateAfter;if(r&&(!(r instanceof yt)||i+r.lookAhead=t:o.to>t);(i||(i=[])).push(new Ht(a,o.from,l?null:o.to))}}return i}function zt(e,t,n){var i;if(e)for(var r=0;r=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var l=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&l)for(var x=0;x0)){var c=[s,1],d=ut(u.from,l.from),h=ut(u.to,l.to);(d<0||!a.inclusiveLeft&&!d)&&c.push({from:u.from,to:l.from}),(h>0||!a.inclusiveRight&&!h)&&c.push({from:l.to,to:u.to}),r.splice.apply(r,c),s+=c.length-3}}return r}function qt(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!n||Vt(n,o.marker)<0)&&(n=o.marker)}return n}function en(e,t,n,i,r){var o=et(e,t),a=Ft&&o.markedSpans;if(a)for(var l=0;l=0&&d<=0||c<=0&&d>=0)&&(c<=0&&(s.marker.inclusiveRight&&r.inclusiveLeft?ut(u.to,n)>=0:ut(u.to,n)>0)||c>=0&&(s.marker.inclusiveRight&&r.inclusiveLeft?ut(u.from,i)<=0:ut(u.from,i)<0)))return!0}}}function tn(e){for(var t;t=Qt(e);)e=t.find(-1,!0).line;return e}function nn(e){for(var t;t=Jt(e);)e=t.find(1,!0).line;return e}function rn(e){for(var t,n;t=Jt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function on(e,t){var n=et(e,t),i=tn(n);return n==i?t:rt(i)}function an(e,t){if(t>e.lastLine())return t;var n,i=et(e,t);if(!ln(e,i))return t;for(;n=Jt(i);)i=n.find(1,!0).line;return rt(i)+1}function ln(e,t){var n=Ft&&t.markedSpans;if(n)for(var i=void 0,r=0;rt.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var hn=function(e,t,n){this.text=e,Xt(this,t),this.height=n?n(this):1};function fn(e,t,n,i){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),qt(e),Xt(e,n);var r=i?i(e):1;r!=e.height&&it(e,r)}function pn(e){e.parent=null,qt(e)}hn.prototype.lineNo=function(){return rt(this)},Se(hn);var mn={},gn={};function vn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?gn:mn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function yn(e,t){var n=N("span",null,null,s?"padding-right: .1px":null),i={pre:N("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,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=bn,$e(e.display.measure)&&(a=me(o,e.doc.direction))&&(i.addToken=kn(i.addToken,a)),i.map=[],Sn(o,i,wt(e,o,t!=e.display.externalMeasured&&rt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(i.bgClass=$(o.styleClasses.bgClass,i.bgClass||"")),o.styleClasses.textClass&&(i.textClass=$(o.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild(Ie(e.display.measure))),0==r?(t.measure.map=i.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(i.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(s){var l=i.content.lastChild;(/\bcm-tab\b/.test(l.className)||l.querySelector&&l.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return be(e,"renderLine",e,t.line,i.pre),i.pre.className&&(i.textClass=$(i.pre.className,i.textClass||"")),i}function xn(e){var t=A("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function bn(e,t,n,i,r,o,s){if(t){var u,c=e.splitSpaces?wn(t,e.trailingSpace):t,d=e.cm.state.specialChars,h=!1;if(d.test(t)){u=document.createDocumentFragment();for(var f=0;;){d.lastIndex=f;var p=d.exec(t),m=p?p.index-f:t.length-f;if(m){var g=document.createTextNode(c.slice(f,f+m));a&&l<9?u.appendChild(A("span",[g])):u.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!p)break;f+=m+1;var v=void 0;if("\t"==p[0]){var y=e.cm.options.tabSize,x=y-e.col%y;(v=u.appendChild(A("span",Q(x),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=x}else"\r"==p[0]||"\n"==p[0]?((v=u.appendChild(A("span","\r"==p[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",p[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(p[0])).setAttribute("cm-text",p[0]),a&&l<9?u.appendChild(A("span",[v])):u.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),a&&l<9&&(h=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||i||r||h||o||s){var b=n||"";i&&(b+=i),r&&(b+=r);var w=A("span",[u],b,o);if(s)for(var k in s)s.hasOwnProperty(k)&&"style"!=k&&"class"!=k&&w.setAttribute(k,s[k]);return e.content.appendChild(w)}e.content.appendChild(u)}}function wn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,i="",r=0;ru&&d.from<=u);h++);if(d.to>=c)return e(n,i,r,o,a,l,s);e(n,i.slice(0,d.to-u),r,o,null,l,s),o=null,i=i.slice(d.to-u),u=d.to}}}function Cn(e,t,n,i){var r=!i&&n.widgetNode;r&&e.map.push(e.pos,e.pos+t,r),!i&&e.cm.display.input.needsContentAttribute&&(r||(r=e.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",n.id)),r&&(e.cm.display.input.setUneditable(r),e.content.appendChild(r)),e.pos+=t,e.trailingSpace=!1}function Sn(e,t,n){var i=e.markedSpans,r=e.text,o=0;if(i)for(var a,l,s,u,c,d,h,f=r.length,p=0,m=1,g="",v=0;;){if(v==p){s=u=c=l="",h=null,d=null,v=1/0;for(var y=[],x=void 0,b=0;bp||k.collapsed&&w.to==p&&w.from==p)){if(null!=w.to&&w.to!=p&&v>w.to&&(v=w.to,u=""),k.className&&(s+=" "+k.className),k.css&&(l=(l?l+";":"")+k.css),k.startStyle&&w.from==p&&(c+=" "+k.startStyle),k.endStyle&&w.to==v&&(x||(x=[])).push(k.endStyle,w.to),k.title&&((h||(h={})).title=k.title),k.attributes)for(var C in k.attributes)(h||(h={}))[C]=k.attributes[C];k.collapsed&&(!d||Vt(d.marker,k)<0)&&(d=w)}else w.from>p&&v>w.from&&(v=w.from)}if(x)for(var S=0;S=f)break;for(var E=Math.min(f,v);;){if(g){var M=p+g.length;if(!d){var T=M>E?g.slice(0,E-p):g;t.addToken(t,T,a?a+s:s,c,p+T.length==v?u:"",l,h)}if(M>=E){g=g.slice(E-p),p=E;break}p=M,c=""}g=r.slice(o,o=n[m++]),a=vn(n[m++],t.cm.options)}}else for(var D=1;D2&&o.push((s.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function ti(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var i=0;in)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}}function ni(e,t){var n=rt(t=tn(t)),i=e.display.externalMeasured=new Ln(e.doc,t,n);i.lineN=n;var r=i.built=yn(e,i);return i.text=r.pre,D(e.display.lineMeasure,r.pre),i}function ii(e,t,n,i){return ai(e,oi(e,t),n,i)}function ri(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(r=(o=s-l)-1,t>=s&&(a="right")),null!=r){if(i=e[u+2],l==s&&n==(i.insertLeft?"left":"right")&&(a=n),"left"==n&&0==r)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)i=e[2+(u-=3)],a="left";if("right"==n&&r==s-l)for(;u=0&&(n=e[r]).left==n.right;r--);return n}function di(e,t,n,i){var r,o=ui(t.map,n,i),s=o.node,u=o.start,c=o.end,d=o.collapse;if(3==s.nodeType){for(var h=0;h<4;h++){for(;u&&se(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c0&&(d=i="right"),r=e.options.lineWrapping&&(f=s.getClientRects()).length>1?f["right"==i?f.length-1:0]:s.getBoundingClientRect()}if(a&&l<9&&!u&&(!r||!r.left&&!r.right)){var p=s.parentNode.getClientRects()[0];r=p?{left:p.left,right:p.left+Fi(e.display),top:p.top,bottom:p.bottom}:si}for(var m=r.top-t.rect.top,g=r.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,x=0;x=i.text.length?(s=i.text.length,u="before"):s<=0&&(s=0,u="after"),!l)return a("before"==u?s-1:s,"before"==u);function c(e,t,n){return a(n?e-1:e,1==l[t].level!=n)}var d=fe(l,s,u),h=he,f=c(s,d,"before"==u);return null!=h&&(f.other=c(s,h,"before"!=u)),f}function Ci(e,t){var n=0;t=mt(e.doc,t),e.options.lineWrapping||(n=Fi(e.display)*t.ch);var i=et(e.doc,t.line),r=un(i)+Gn(e.display);return{left:n,right:n,top:r,bottom:r+i.height}}function Si(e,t,n,i,r){var o=st(e,t,n);return o.xRel=r,i&&(o.outside=i),o}function Li(e,t,n){var i=e.doc;if((n+=e.display.viewOffset)<0)return Si(i.first,0,null,-1,-1);var r=ot(i,n),o=i.first+i.size-1;if(r>o)return Si(i.first+i.size-1,et(i,o).text.length,null,1,1);t<0&&(t=0);for(var a=et(i,r);;){var l=Di(e,a,r,t,n),s=Zt(a,l.ch+(l.xRel>0||l.outside>0?1:0));if(!s)return l;var u=s.find(1);if(u.line==r)return u;a=et(i,r=u.line)}}function Ei(e,t,n,i){i-=yi(t);var r=t.text.length,o=ce((function(t){return ai(e,n,t-1).bottom<=i}),r,0);return{begin:o,end:r=ce((function(t){return ai(e,n,t).top>i}),o,r)}}function Mi(e,t,n,i){return n||(n=oi(e,t)),Ei(e,t,n,xi(e,t,ai(e,n,i),"line").top)}function Ti(e,t,n,i){return!(e.bottom<=n)&&(e.top>n||(i?e.left:e.right)>t)}function Di(e,t,n,i,r){r-=un(t);var o=oi(e,t),a=yi(t),l=0,s=t.text.length,u=!0,c=me(t,e.doc.direction);if(c){var d=(e.options.lineWrapping?Ni:Ai)(e,t,n,o,c,i,r);l=(u=1!=d.level)?d.from:d.to-1,s=u?d.to:d.from-1}var h,f,p=null,m=null,g=ce((function(t){var n=ai(e,o,t);return n.top+=a,n.bottom+=a,!!Ti(n,i,r,!1)&&(n.top<=r&&n.left<=i&&(p=t,m=n),!0)}),l,s),v=!1;if(m){var y=i-m.left=b.bottom?1:0}return Si(n,g=ue(t.text,g,1),f,v,i-h)}function Ai(e,t,n,i,r,o,a){var l=ce((function(l){var s=r[l],u=1!=s.level;return Ti(ki(e,st(n,u?s.to:s.from,u?"before":"after"),"line",t,i),o,a,!0)}),0,r.length-1),s=r[l];if(l>0){var u=1!=s.level,c=ki(e,st(n,u?s.from:s.to,u?"after":"before"),"line",t,i);Ti(c,o,a,!0)&&c.top>a&&(s=r[l-1])}return s}function Ni(e,t,n,i,r,o,a){var l=Ei(e,t,i,a),s=l.begin,u=l.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,d=null,h=0;h=u||f.to<=s)){var p=ai(e,i,1!=f.level?Math.min(u,f.to)-1:Math.max(s,f.from)).right,m=pm)&&(c=f,d=m)}}return c||(c=r[r.length-1]),c.fromu&&(c={from:c.from,to:u,level:c.level}),c}function Oi(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==li){li=A("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)li.appendChild(document.createTextNode("x")),li.appendChild(A("br"));li.appendChild(document.createTextNode("x"))}D(e.measure,li);var n=li.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),T(e.measure),n||1}function Fi(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=A("span","xxxxxxxxxx"),n=A("pre",[t],"CodeMirror-line-like");D(e.measure,n);var i=t.getBoundingClientRect(),r=(i.right-i.left)/10;return r>2&&(e.cachedCharWidth=r),r||10}function Ii(e){for(var t=e.display,n={},i={},r=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var l=e.display.gutterSpecs[a].className;n[l]=o.offsetLeft+o.clientLeft+r,i[l]=o.clientWidth}return{fixedPos:$i(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:i,wrapperWidth:t.wrapper.clientWidth}}function $i(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Hi(e){var t=Oi(e.display),n=e.options.lineWrapping,i=n&&Math.max(5,e.display.scroller.clientWidth/Fi(e.display)-3);return function(r){if(ln(e.doc,r))return 0;var o=0;if(r.widgets)for(var a=0;a0&&(s=et(e.doc,u.line).text).length==u.ch){var c=z(s,s.length,e.options.tabSize)-s.length;u=st(u.line,Math.max(0,Math.round((o-Kn(e.display).left)/Fi(e.display))-c))}return u}function Bi(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,i=0;it)&&(r.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=r.viewTo)Ft&&on(e.doc,t)r.viewFrom?ji(e):(r.viewFrom+=i,r.viewTo+=i);else if(t<=r.viewFrom&&n>=r.viewTo)ji(e);else if(t<=r.viewFrom){var o=_i(e,n,n+i,1);o?(r.view=r.view.slice(o.index),r.viewFrom=o.lineN,r.viewTo+=i):ji(e)}else if(n>=r.viewTo){var a=_i(e,t,t,-1);a?(r.view=r.view.slice(0,a.index),r.viewTo=a.lineN):ji(e)}else{var l=_i(e,t,t,-1),s=_i(e,n,n+i,1);l&&s?(r.view=r.view.slice(0,l.index).concat(En(e,l.lineN,s.lineN)).concat(r.view.slice(s.index)),r.viewTo+=i):ji(e)}var u=r.externalMeasured;u&&(n=r.lineN&&t=i.viewTo)){var o=i.view[Bi(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==_(a,n)&&a.push(n)}}}function ji(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function _i(e,t,n,i){var r,o=Bi(e,t),a=e.display.view;if(!Ft||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var l=e.display.viewFrom,s=0;s0){if(o==a.length-1)return null;r=l+a[o].size-t,o++}else r=l-t;t+=r,n+=r}for(;on(e.doc,n)!=n;){if(o==(i<0?0:a.length-1))return null;n+=i*a[o-(i<0?1:0)].size,o+=i}return{index:o,lineN:n}}function Yi(e,t,n){var i=e.display;0==i.view.length||t>=i.viewTo||n<=i.viewFrom?(i.view=En(e,t,n),i.viewFrom=t):(i.viewFrom>t?i.view=En(e,t,i.viewFrom).concat(i.view):i.viewFromn&&(i.view=i.view.slice(0,Bi(e,n)))),i.viewTo=n}function qi(e){for(var t=e.display.view,n=0,i=0;i=e.display.viewTo||s.to().line0?a:e.defaultCharWidth())+"px"}if(i.other){var l=n.appendChild(A("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));l.style.display="",l.style.left=i.other.left+"px",l.style.top=i.other.top+"px",l.style.height=.85*(i.other.bottom-i.other.top)+"px"}}function Vi(e,t){return e.top-t.top||e.left-t.left}function Ki(e,t,n){var i=e.display,r=e.doc,o=document.createDocumentFragment(),a=Kn(e.display),l=a.left,s=Math.max(i.sizerWidth,Jn(e)-i.sizer.offsetLeft)-a.right,u="ltr"==r.direction;function c(e,t,n,i){t<0&&(t=0),t=Math.round(t),i=Math.round(i),o.appendChild(A("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?s-e:n)+"px;\n height: "+(i-t)+"px"))}function d(t,n,i){var o,a,d=et(r,t),h=d.text.length;function f(n,i){return wi(e,st(t,n),"div",d,i)}function p(t,n,i){var r=Mi(e,d,null,t),o="ltr"==n==("after"==i)?"left":"right";return f("after"==i?r.begin:r.end-(/\s/.test(d.text.charAt(r.end-1))?2:1),o)[o]}var m=me(d,r.direction);return de(m,n||0,null==i?h:i,(function(e,t,r,d){var g="ltr"==r,v=f(e,g?"left":"right"),y=f(t-1,g?"right":"left"),x=null==n&&0==e,b=null==i&&t==h,w=0==d,k=!m||d==m.length-1;if(y.top-v.top<=3){var C=(u?b:x)&&k,S=(u?x:b)&&w?l:(g?v:y).left,L=C?s:(g?y:v).right;c(S,v.top,L-S,v.bottom)}else{var E,M,T,D;g?(E=u&&x&&w?l:v.left,M=u?s:p(e,r,"before"),T=u?l:p(t,r,"after"),D=u&&b&&k?s:y.right):(E=u?p(e,r,"before"):l,M=!u&&x&&w?s:v.right,T=!u&&b&&k?l:y.left,D=u?p(t,r,"after"):s),c(E,v.top,M-E,v.bottom),v.bottom0?t.blinker=setInterval((function(){e.hasFocus()||tr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Ji(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||er(e))}function Zi(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&tr(e))}),100)}function er(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(be(e,"focus",e,t),e.state.focused=!0,I(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),s&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Qi(e))}function tr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(be(e,"blur",e,t),e.state.focused=!1,M(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function nr(e){for(var t=e.display,n=t.lineDiv.offsetTop,i=Math.max(0,t.scroller.getBoundingClientRect().top),r=t.lineDiv.getBoundingClientRect().top,o=0,s=0;s.005||m<-.005)&&(re.display.sizerWidth){var v=Math.ceil(h/Fi(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function ir(e){if(e.widgets)for(var t=0;t=a&&(o=ot(t,un(et(t,s))-e.wrapper.clientHeight),a=s)}return{from:o,to:Math.max(a,o+1)}}function or(e,t){if(!we(e,"scrollCursorIntoView")){var n=e.display,i=n.sizer.getBoundingClientRect(),r=null,o=n.wrapper.ownerDocument;if(t.top+i.top<0?r=!0:t.bottom+i.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(r=!1),null!=r&&!m){var a=A("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Gn(e.display))+"px;\n height: "+(t.bottom-t.top+Qn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(r),e.display.lineSpace.removeChild(a)}}}function ar(e,t,n,i){var r;null==i&&(i=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?st(t.line,t.ch+1,"before"):t,t=t.ch?st(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,l=ki(e,t),s=n&&n!=t?ki(e,n):l,u=sr(e,r={left:Math.min(l.left,s.left),top:Math.min(l.top,s.top)-i,right:Math.max(l.left,s.left),bottom:Math.max(l.bottom,s.bottom)+i}),c=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=u.scrollTop&&(mr(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(vr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return r}function lr(e,t){var n=sr(e,t);null!=n.scrollTop&&mr(e,n.scrollTop),null!=n.scrollLeft&&vr(e,n.scrollLeft)}function sr(e,t){var n=e.display,i=Oi(e.display);t.top<0&&(t.top=0);var r=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Zn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var l=e.doc.height+Vn(n),s=t.topl-i;if(t.topr+o){var c=Math.min(t.top,(u?l:t.bottom)-o);c!=r&&(a.scrollTop=c)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,h=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,f=Jn(e)-n.gutters.offsetWidth,p=t.right-t.left>f;return p&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.leftf+h-3&&(a.scrollLeft=t.right+(p?0:10)-f),a}function ur(e,t){null!=t&&(fr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function cr(e){fr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function dr(e,t,n){null==t&&null==n||fr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function hr(e,t){fr(e),e.curOp.scrollToPos=t}function fr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,pr(e,Ci(e,t.from),Ci(e,t.to),t.margin))}function pr(e,t,n,i){var r=sr(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});dr(e,r.scrollLeft,r.scrollTop)}function mr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Xr(e,{top:t}),gr(e,t,!0),n&&Xr(e),Wr(e,100))}function gr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function vr(e,t,n,i){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!i||(e.doc.scrollLeft=t,Kr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function yr(e){var t=e.display,n=t.gutters.offsetWidth,i=Math.round(e.doc.height+Vn(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+Qn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var xr=function(e,t,n){this.cm=n;var i=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=r.tabIndex=-1,e(i),e(r),ve(i,"scroll",(function(){i.clientHeight&&t(i.scrollTop,"vertical")})),ve(r,"scroll",(function(){r.clientWidth&&t(r.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&l<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};xr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,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.scrollTop=0,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";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?i:0,bottom:t?i:0}},xr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},xr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},xr.prototype.zeroWidthHack=function(){var e=x&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new j,this.disableVert=new j},xr.prototype.enableZeroWidthBar=function(e,t,n){function i(){var r=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,i)}e.style.visibility="",t.set(1e3,i)},xr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var br=function(){};function wr(e,t){t||(t=yr(e));var n=e.display.barWidth,i=e.display.barHeight;kr(e,t);for(var r=0;r<4&&n!=e.display.barWidth||i!=e.display.barHeight;r++)n!=e.display.barWidth&&e.options.lineWrapping&&nr(e),kr(e,yr(e)),n=e.display.barWidth,i=e.display.barHeight}function kr(e,t){var n=e.display,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",i.right&&i.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=i.bottom+"px",n.scrollbarFiller.style.width=i.right+"px"):n.scrollbarFiller.style.display="",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"):n.gutterFiller.style.display=""}br.prototype.update=function(){return{bottom:0,right:0}},br.prototype.setScrollLeft=function(){},br.prototype.setScrollTop=function(){},br.prototype.clear=function(){};var Cr={native:xr,null:br};function Sr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&M(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Cr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ve(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?vr(e,t):mr(e,t)}),e),e.display.scrollbars.addClass&&I(e.display.wrapper,e.display.scrollbars.addClass)}var Lr=0;function Er(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Lr,markArrays:null},Tn(e.curOp)}function Mr(e){var t=e.curOp;t&&An(t,(function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Rr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ar(e){e.updatedDisplay=e.mustUpdate&&Yr(e.cm,e.update)}function Nr(e){var t=e.cm,n=t.display;e.updatedDisplay&&nr(t),e.barMeasure=yr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ii(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+Qn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Jn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Or(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,i=kt(e,t.highlightFrontier),r=[];t.iter(i.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(i.line>=e.display.viewFrom){var a=o.styles,l=o.text.length>e.options.maxHighlightLength?Ke(t.mode,i.state):null,s=bt(e,o,i,!0);l&&(i.state=l),o.styles=s.styles;var u=o.styleClasses,c=s.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),h=0;!d&&hn)return Wr(e,e.options.workDelay),!0})),t.highlightFrontier=i.line,t.modeFrontier=Math.max(t.modeFrontier,i.line),r.length&&Ir(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==qi(e))return!1;Qr(e)&&(ji(e),t.dims=Ii(e));var r=i.first+i.size,o=Math.max(t.visible.from-e.options.viewportMargin,i.first),a=Math.min(r,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(r,n.viewTo)),Ft&&(o=on(e.doc,o),a=an(e.doc,a));var l=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Yi(e,o,a),n.viewOffset=un(et(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=qi(e);if(!l&&0==s&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=jr(e);return s>4&&(n.lineDiv.style.display="none"),Ur(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,_r(u),T(n.cursorDiv),T(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,l&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Wr(e,400)),n.updateLineNumbers=null,!0}function qr(e,t){for(var n=t.viewport,i=!0;;i=!1){if(i&&e.options.lineWrapping&&t.oldDisplayWidth!=Jn(e))i&&(t.visible=rr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Vn(e.display)-Zn(e),n.top)}),t.visible=rr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Yr(e,t))break;nr(e);var r=yr(e);Xi(e),wr(e,r),Vr(e,r),t.force=!1}t.signal(e,"update",e),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 Xr(e,t){var n=new Rr(e,t);if(Yr(e,n)){nr(e),qr(e,n);var i=yr(e);Xi(e),wr(e,i),Vr(e,i),n.finish()}}function Ur(e,t,n){var i=e.display,r=e.options.lineNumbers,o=i.lineDiv,a=o.firstChild;function l(t){var n=t.nextSibling;return s&&x&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=i.view,c=i.viewFrom,d=0;d-1&&(f=!1),In(e,h,c,n)),f&&(T(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(lt(e.options,c)))),a=h.node.nextSibling}else{var p=jn(e,h,c,n);o.insertBefore(p,a)}c+=h.size}for(;a;)a=l(a)}function Gr(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",On(e,"gutterChanged",e)}function Vr(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+Qn(e)+"px"}function Kr(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var i=$i(t)-t.scroller.scrollLeft+e.doc.scrollLeft,r=t.gutters.offsetWidth,o=i+"px",a=0;a=105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),a&&l<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),s||n&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=Jr(r.gutters,r.lineNumbers),Zr(o),i.init(o)}Rr.prototype.signal=function(e,t){Ce(e,t)&&this.events.push(arguments)},Rr.prototype.finish=function(){for(var e=0;eu.clientWidth,p=u.scrollHeight>u.clientHeight;if(r&&f||o&&p){if(o&&x&&s)e:for(var m=t.target,g=l.view;m!=u;m=m.parentNode)for(var v=0;v=0&&ut(e,i.to())<=0)return n}return-1};var so=function(e,t){this.anchor=e,this.head=t};function uo(e,t,n){var i=e&&e.options.selectionsMayTouch,r=t[n];t.sort((function(e,t){return ut(e.from(),t.from())})),n=_(t,r);for(var o=1;o0:s>=0){var u=ft(l.from(),a.from()),c=ht(l.to(),a.to()),d=l.empty()?a.from()==a.head:l.from()==l.head;o<=n&&--n,t.splice(--o,2,new so(d?c:u,d?u:c))}}return new lo(t,n)}function co(e,t){return new lo([new so(e,t||e)],0)}function ho(e){return e.text?st(e.from.line+e.text.length-1,J(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function fo(e,t){if(ut(e,t.from)<0)return e;if(ut(e,t.to)<=0)return ho(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,i=e.ch;return e.line==t.to.line&&(i+=ho(t).ch-t.to.ch),st(n,i)}function po(e,t){for(var n=[],i=0;i1&&e.remove(l.line+1,p-1),e.insert(l.line+1,v)}On(e,"change",e,t)}function wo(e,t,n){function i(e,r,o){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),J(e.done)):void 0}function Do(e,t,n,i){var r=e.history;r.undone.length=0;var o,a,l=+new Date;if((r.lastOp==i||r.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&r.lastModTime>l-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=To(r,r.lastOp==i)))a=J(o.changes),0==ut(t.from,t.to)&&0==ut(t.from,a.to)?a.to=ho(t):o.changes.push(Eo(e,t));else{var s=J(r.done);for(s&&s.ranges||Oo(e.sel,r.done),o={changes:[Eo(e,t)],generation:r.generation},r.done.push(o);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(n),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=l,r.lastOp=r.lastSelOp=i,r.lastOrigin=r.lastSelOrigin=t.origin,a||be(e,"historyAdded")}function Ao(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 No(e,t,n,i){var r=e.history,o=i&&i.origin;n==r.lastSelOp||o&&r.lastSelOrigin==o&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==o||Ao(e,o,J(r.done),t))?r.done[r.done.length-1]=t:Oo(t,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=o,r.lastSelOp=n,i&&!1!==i.clearRedo&&Mo(r.undone)}function Oo(e,t){var n=J(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Fo(e,t,n,i){var r=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,i),(function(n){n.markedSpans&&((r||(r=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Io(e){if(!e)return null;for(var t,n=0;n-1&&(J(l)[d]=u[d],delete u[d])}}}return i}function Wo(e,t,n,i){if(i){var r=e.anchor;if(n){var o=ut(t,r)<0;o!=ut(n,r)<0?(r=t,t=n):o!=ut(t,n)<0&&(t=n)}return new so(r,t)}return new so(n||t,t)}function Bo(e,t,n,i,r){null==r&&(r=e.cm&&(e.cm.display.shift||e.extend)),qo(e,new lo([Wo(e.sel.primary(),t,n,r)],0),i)}function Ro(e,t,n){for(var i=[],r=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:l.to>t.ch))){if(r&&(be(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!s.atomic)continue;if(n){var d=s.find(i<0?1:-1),h=void 0;if((i<0?c:u)&&(d=Jo(e,d,-i,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(h=ut(d,n))&&(i<0?h<0:h>0))return Ko(e,d,t,i,r)}var f=s.find(i<0?-1:1);return(i<0?u:c)&&(f=Jo(e,f,i,f.line==t.line?o:null)),f?Ko(e,f,t,i,r):null}}return t}function Qo(e,t,n,i,r){var o=i||1,a=Ko(e,t,n,o,r)||!r&&Ko(e,t,n,o,!0)||Ko(e,t,n,-o,r)||!r&&Ko(e,t,n,-o,!0);return a||(e.cantEdit=!0,st(e.first,0))}function Jo(e,t,n,i){return n<0&&0==t.ch?t.line>e.first?mt(e,st(t.line-1)):null:n>0&&t.ch==(i||et(e,t.line)).text.length?t.line=0;--r)na(e,{from:i[r].from,to:i[r].to,text:r?[""]:t.text,origin:t.origin});else na(e,t)}}function na(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ut(t.from,t.to)){var n=po(e,t);Do(e,t,n,e.cm?e.cm.curOp.id:NaN),oa(e,t,n,jt(e,t));var i=[];wo(e,(function(e,n){n||-1!=_(i,e.history)||(ca(e.history,t),i.push(e.history)),oa(e,t,null,jt(e,t))}))}}function ia(e,t,n){var i=e.cm&&e.cm.state.suppressEdits;if(!i||n){for(var r,o=e.history,a=e.sel,l="undo"==t?o.done:o.undone,s="undo"==t?o.undone:o.done,u=0;u=0;--f){var p=h(f);if(p)return p.v}}}}function ra(e,t){if(0!=t&&(e.first+=t,e.sel=new lo(Z(e.sel.ranges,(function(e){return new so(st(e.anchor.line+t,e.anchor.ch),st(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Ri(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,i=n.viewFrom;ie.lastLine())){if(t.from.lineo&&(t={from:t.from,to:st(o,et(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=tt(e,t.from,t.to),n||(n=po(e,t)),e.cm?aa(e.cm,t,i):bo(e,t,i),Xo(e,n,X),e.cantEdit&&Qo(e,st(e.firstLine(),0))&&(e.cantEdit=!1)}}function aa(e,t,n){var i=e.doc,r=e.display,o=t.from,a=t.to,l=!1,s=o.line;e.options.lineWrapping||(s=rt(tn(et(i,o.line))),i.iter(s,a.line+1,(function(e){if(e==r.maxLine)return l=!0,!0}))),i.sel.contains(t.from,t.to)>-1&&ke(e),bo(i,t,n,Hi(e)),e.options.lineWrapping||(i.iter(s,o.line+t.text.length,(function(e){var t=cn(e);t>r.maxLineLength&&(r.maxLine=e,r.maxLineLength=t,r.maxLineChanged=!0,l=!1)})),l&&(e.curOp.updateMaxLine=!0)),Nt(i,o.line),Wr(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?Ri(e):o.line!=a.line||1!=t.text.length||xo(e.doc,t)?Ri(e,o.line,a.line+1,u):zi(e,o.line,"text");var c=Ce(e,"changes"),d=Ce(e,"change");if(d||c){var h={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&On(e,"change",e,h),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}function la(e,t,n,i,r){var o;i||(i=n),ut(i,n)<0&&(n=(o=[i,n])[0],i=o[1]),"string"==typeof t&&(t=e.splitLines(t)),ta(e,{from:n,to:i,text:t,origin:r})}function sa(e,t,n,i){n1||!(this.children[0]instanceof ha))){var l=[];this.collapse(l),this.children=[new ha(l)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=r.lines.length%25+25,l=a;l10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var i=0;i0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=N("span",[o.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(en(e,t.line,t,n,o)||t.line!=n.line&&en(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");$t()}o.addToHistory&&Do(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var l,s=t.line,u=e.cm;if(e.iter(s,n.line+1,(function(i){u&&o.collapsed&&!u.options.lineWrapping&&tn(i)==u.display.maxLine&&(l=!0),o.collapsed&&s!=t.line&&it(i,0),Bt(i,new Ht(o,s==t.line?t.ch:null,s==n.line?n.ch:null),e.cm&&e.cm.curOp),++s})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){ln(e,t)&&it(t,0)})),o.clearOnEnter&&ve(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(It(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++va,o.atomic=!0),u){if(l&&(u.curOp.updateMaxLine=!0),o.collapsed)Ri(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)zi(u,c,"text");o.atomic&&Go(u.doc),On(u,"markerAdded",u,o)}return o}ya.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Er(e),Ce(this,"clear")){var n=this.find();n&&On(this,"clear",n.from,n.to)}for(var i=null,r=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=i&&e&&this.collapsed&&Ri(e,i,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Go(e.doc)),e&&On(e,"markerCleared",e,this,i,r),t&&Mr(e),this.parent&&this.parent.clear()}},ya.prototype.find=function(e,t){var n,i;null==e&&"bookmark"==this.type&&(e=1);for(var r=0;r=0;s--)ta(this,i[s]);l?Yo(this,l):this.cm&&cr(this.cm)})),undo:Pr((function(){ia(this,"undo")})),redo:Pr((function(){ia(this,"redo")})),undoSelection:Pr((function(){ia(this,"undo",!0)})),redoSelection:Pr((function(){ia(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,i=0;i=e.ch)&&t.push(r.marker.parent||r.marker)}return t},findMarks:function(e,t,n){e=mt(this,e),t=mt(this,t);var i=[],r=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var l=0;l=s.to||null==s.from&&r!=e.line||null!=s.from&&r==t.line&&s.from>=t.ch||n&&!n(s.marker)||i.push(s.marker.parent||s.marker)}++r})),i},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var i=0;ie)return t=e,!0;e-=o,++n})),mt(this,st(n,t))},indexFromPos:function(e){var t=(e=mt(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var d=e.dataTransfer.getData("Text");if(d){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),Xo(t.doc,co(n,n)),h)for(var f=0;f=0;t--)la(e.doc,"",i[t].from,i[t].to,"+delete");cr(e)}))}function Ka(e,t,n){var i=ue(e.text,t+n,n);return i<0||i>e.text.length?null:i}function Qa(e,t,n){var i=Ka(e,t.ch,n);return null==i?null:new st(t.line,i,n<0?"after":"before")}function Ja(e,t,n,i,r){if(e){"rtl"==t.doc.direction&&(r=-r);var o=me(n,t.doc.direction);if(o){var a,l=r<0?J(o):o[0],s=r<0==(1==l.level)?"after":"before";if(l.level>0||"rtl"==t.doc.direction){var u=oi(t,n);a=r<0?n.text.length-1:0;var c=ai(t,u,a).top;a=ce((function(e){return ai(t,u,e).top==c}),r<0==(1==l.level)?l.from:l.to-1,a),"before"==s&&(a=Ka(n,a,1))}else a=r<0?l.to:l.from;return new st(i,a,s)}}return new st(i,r<0?n.text.length:0,r<0?"before":"after")}function Za(e,t,n,i){var r=me(t,e.doc.direction);if(!r)return Qa(t,n,i);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=fe(r,n.ch,n.sticky),a=r[o];if("ltr"==e.doc.direction&&a.level%2==0&&(i>0?a.to>n.ch:a.from=a.from&&h>=c.begin)){var f=d?"before":"after";return new st(n.line,h,f)}}var p=function(e,t,i){for(var o=function(e,t){return t?new st(n.line,s(e,1),"before"):new st(n.line,e,"after")};e>=0&&e0==(1!=a.level),u=l?i.begin:s(i.end,-1);if(a.from<=u&&u0?c.end:s(c.begin,-1);return null==g||i>0&&g==t.text.length||!(m=p(i>0?0:r.length-1,i,u(g)))?null:m}za.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"},za.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"},za.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},za.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"]},za.default=x?za.macDefault:za.pcDefault;var el={selectAll:Zo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),X)},killLine:function(e){return Va(e,(function(t){if(t.empty()){var n=et(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)r=new st(r.line,r.ch+1),e.replaceRange(o.charAt(r.ch-1)+o.charAt(r.ch-2),st(r.line,r.ch-2),r,"+transpose");else if(r.line>e.doc.first){var a=et(e.doc,r.line-1).text;a&&(r=new st(r.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),st(r.line-1,a.length-1),r,"+transpose"))}n.push(new so(r,r))}e.setSelections(n)}))},newlineAndIndent:function(e){return Ir(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var i=0;i-1&&(ut((r=l.ranges[r]).from(),t)<0||t.xRel>0)&&(ut(r.to(),t)>0||t.xRel<0)?Ll(e,i,t,o):Ml(e,i,t,o)}function Ll(e,t,n,i){var r=e.display,o=!1,u=$r(e,(function(t){s&&(r.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Zi(e)),xe(r.wrapper.ownerDocument,"mouseup",u),xe(r.wrapper.ownerDocument,"mousemove",c),xe(r.scroller,"dragstart",d),xe(r.scroller,"drop",u),o||(Le(t),i.addNew||Bo(e.doc,n,null,null,i.extend),s&&!f||a&&9==l?setTimeout((function(){r.wrapper.ownerDocument.body.focus({preventScroll:!0}),r.input.focus()}),20):r.input.focus())})),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return o=!0};s&&(r.scroller.draggable=!0),e.state.draggingText=u,u.copy=!i.moveOnDrag,ve(r.wrapper.ownerDocument,"mouseup",u),ve(r.wrapper.ownerDocument,"mousemove",c),ve(r.scroller,"dragstart",d),ve(r.scroller,"drop",u),e.state.delayingBlurEvent=!0,setTimeout((function(){return r.input.focus()}),20),r.scroller.dragDrop&&r.scroller.dragDrop()}function El(e,t,n){if("char"==n)return new so(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new so(st(t.line,0),mt(e.doc,st(t.line+1,0)));var i=n(e,t);return new so(i.from,i.to)}function Ml(e,t,n,i){a&&Zi(e);var r=e.display,o=e.doc;Le(t);var l,s,u=o.sel,c=u.ranges;if(i.addNew&&!i.extend?(s=o.sel.contains(n),l=s>-1?c[s]:new so(n,n)):(l=o.sel.primary(),s=o.sel.primIndex),"rectangle"==i.unit)i.addNew||(l=new so(n,n)),n=Wi(e,t,!0,!0),s=-1;else{var d=El(e,n,i.unit);l=i.extend?Wo(l,d.anchor,d.head,i.extend):d}i.addNew?-1==s?(s=c.length,qo(o,uo(e,c.concat([l]),s),{scroll:!1,origin:"*mouse"})):c.length>1&&c[s].empty()&&"char"==i.unit&&!i.extend?(qo(o,uo(e,c.slice(0,s).concat(c.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):zo(o,s,l,U):(s=0,qo(o,new lo([l],0),U),u=o.sel);var h=n;function f(t){if(0!=ut(h,t))if(h=t,"rectangle"==i.unit){for(var r=[],a=e.options.tabSize,c=z(et(o,n.line).text,n.ch,a),d=z(et(o,t.line).text,t.ch,a),f=Math.min(c,d),p=Math.max(c,d),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=et(o,m).text,y=V(v,f,a);f==p?r.push(new so(st(m,y),st(m,y))):v.length>y&&r.push(new so(st(m,y),st(m,V(v,p,a))))}r.length||r.push(new so(n,n)),qo(o,uo(e,u.ranges.slice(0,s).concat(r),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var x,b=l,w=El(e,t,i.unit),k=b.anchor;ut(w.anchor,k)>0?(x=w.head,k=ft(b.from(),w.anchor)):(x=w.anchor,k=ht(b.to(),w.head));var C=u.ranges.slice(0);C[s]=Tl(e,new so(mt(o,k),x)),qo(o,uo(e,C,s),U)}}var p=r.wrapper.getBoundingClientRect(),m=0;function g(t){var n=++m,a=Wi(e,t,!0,"rectangle"==i.unit);if(a)if(0!=ut(a,h)){e.curOp.focus=F(P(e)),f(a);var l=rr(r,o);(a.line>=l.to||a.linep.bottom?20:0;s&&setTimeout($r(e,(function(){m==n&&(r.scroller.scrollTop+=s,g(t))})),50)}}function v(t){e.state.selectingText=!1,m=1/0,t&&(Le(t),r.input.focus()),xe(r.wrapper.ownerDocument,"mousemove",y),xe(r.wrapper.ownerDocument,"mouseup",x),o.history.lastSelOrigin=null}var y=$r(e,(function(e){0!==e.buttons&&Ae(e)?g(e):v(e)})),x=$r(e,v);e.state.selectingText=x,ve(r.wrapper.ownerDocument,"mousemove",y),ve(r.wrapper.ownerDocument,"mouseup",x)}function Tl(e,t){var n=t.anchor,i=t.head,r=et(e.doc,n.line);if(0==ut(n,i)&&n.sticky==i.sticky)return t;var o=me(r);if(!o)return t;var a=fe(o,n.ch,n.sticky),l=o[a];if(l.from!=n.ch&&l.to!=n.ch)return t;var s,u=a+(l.from==n.ch==(1!=l.level)?0:1);if(0==u||u==o.length)return t;if(i.line!=n.line)s=(i.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=fe(o,i.ch,i.sticky),d=c-a||(i.ch-n.ch)*(1==l.level?-1:1);s=c==u-1||c==u?d<0:d>0}var h=o[u+(s?-1:0)],f=s==(1==h.level),p=f?h.from:h.to,m=f?"after":"before";return n.ch==p&&n.sticky==m?t:new so(new st(n.line,p,m),i)}function Dl(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!1}if(r>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;i&&Le(t);var a=e.display,l=a.lineDiv.getBoundingClientRect();if(o>l.bottom||!Ce(e,n))return Me(t);o-=l.top-a.viewOffset;for(var s=0;s=r)return be(e,n,e,ot(e.doc,o),e.display.gutterSpecs[s].className,t),Me(t)}}function Al(e,t){return Dl(e,t,"gutterClick",!0)}function Nl(e,t){Un(e.display,t)||Ol(e,t)||we(e,t,"contextmenu")||S||e.display.input.onContextMenu(t)}function Ol(e,t){return!!Ce(e,"gutterContextMenu")&&Dl(e,t,"gutterContextMenu",!1)}function Fl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),mi(e)}xl.prototype.compare=function(e,t,n){return this.time+yl>e&&0==ut(t,this.pos)&&n==this.button};var Il={toString:function(){return"CodeMirror.Init"}},$l={},Hl={};function Pl(e){var t=e.optionHandlers;function n(n,i,r,o){e.defaults[n]=i,r&&(t[n]=o?function(e,t,n){n!=Il&&r(e,t,n)}:r)}e.defineOption=n,e.Init=Il,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,vo(e)}),!0),n("indentUnit",2,vo,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){yo(e),mi(e),Ri(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],i=e.doc.first;e.doc.iter((function(e){for(var r=0;;){var o=e.text.indexOf(t,r);if(-1==o)break;r=o+t.length,n.push(st(i,o))}i++}));for(var r=n.length-1;r>=0;r--)la(e.doc,t,n[r],st(n[r].line,n[r].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Il&&e.refresh()})),n("specialCharPlaceholder",xn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Fl(e),eo(e)}),!0),n("keyMap","default",(function(e,t,n){var i=Ga(t),r=n!=Il&&Ga(n);r&&r.detach&&r.detach(e,i),i.attach&&i.attach(e,r||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Bl,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Jr(t,e.options.lineNumbers),eo(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?$i(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return wr(e)}),!0),n("scrollbarStyle","native",(function(e){Sr(e),wr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Jr(e.options.gutters,t),eo(e)}),!0),n("firstLineNumber",1,eo,!0),n("lineNumberFormatter",(function(e){return e}),eo,!0),n("showCursorWhenSelecting",!1,Xi,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(tr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Wl),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Xi,!0),n("singleCursorHeightPerLine",!0,Xi,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,yo,!0),n("addModeClass",!1,yo,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,yo,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function Wl(e,t,n){if(!t!=!(n&&n!=Il)){var i=e.display.dragFunctions,r=t?ve:xe;r(e.display.scroller,"dragstart",i.start),r(e.display.scroller,"dragenter",i.enter),r(e.display.scroller,"dragover",i.over),r(e.display.scroller,"dragleave",i.leave),r(e.display.scroller,"drop",i.drop)}}function Bl(e){e.options.lineWrapping?(I(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(M(e.display.wrapper,"CodeMirror-wrap"),dn(e)),Pi(e),Ri(e),mi(e),setTimeout((function(){return wr(e)}),100)}function Rl(e,t){var n=this;if(!(this instanceof Rl))return new Rl(e,t);this.options=t=t?R(t):{},R($l,t,!1);var i=t.value;"string"==typeof i?i=new Ea(i,t.mode,null,t.lineSeparator,t.direction):t.mode&&(i.modeOption=t.mode),this.doc=i;var r=new Rl.inputStyles[t.inputStyle](this),o=this.display=new to(e,i,r,t);for(var u in o.wrapper.CodeMirror=this,Fl(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Sr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new j,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&l<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),zl(this),Ia(),Er(this),this.curOp.forceUpdate=!0,ko(this,i),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&er(n)}),20):tr(this),Hl)Hl.hasOwnProperty(u)&&Hl[u](this,t[u],Il);Qr(this),t.finishInit&&t.finishInit(this);for(var c=0;c400}ve(t.scroller,"touchstart",(function(r){if(!we(e,r)&&!o(r)&&!Al(e,r)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-i.end<=300?i:null},1==r.touches.length&&(t.activeTouch.left=r.touches[0].pageX,t.activeTouch.top=r.touches[0].pageY)}})),ve(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),ve(t.scroller,"touchend",(function(n){var i=t.activeTouch;if(i&&!Un(t,n)&&null!=i.left&&!i.moved&&new Date-i.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!i.prev||s(i,i.prev)?new so(a,a):!i.prev.prev||s(i,i.prev.prev)?e.findWordAt(a):new so(st(a.line,0),mt(e.doc,st(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Le(n)}r()})),ve(t.scroller,"touchcancel",r),ve(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(mr(e,t.scroller.scrollTop),vr(e,t.scroller.scrollLeft,!0),be(e,"scroll",e))})),ve(t.scroller,"mousewheel",(function(t){return ao(e,t)})),ve(t.scroller,"DOMMouseScroll",(function(t){return ao(e,t)})),ve(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){we(e,t)||Te(t)},over:function(t){we(e,t)||(Aa(e,t),Te(t))},start:function(t){return Da(e,t)},drop:$r(e,Ta),leave:function(t){we(e,t)||Na(e)}};var u=t.input.getField();ve(u,"keyup",(function(t){return pl.call(e,t)})),ve(u,"keydown",$r(e,hl)),ve(u,"keypress",$r(e,ml)),ve(u,"focus",(function(t){return er(e,t)})),ve(u,"blur",(function(t){return tr(e,t)}))}Rl.defaults=$l,Rl.optionHandlers=Hl;var jl=[];function _l(e,t,n,i){var r,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?r=kt(e,t).state:n="prev");var a=e.options.tabSize,l=et(o,t),s=z(l.text,null,a);l.stateAfter&&(l.stateAfter=null);var u,c=l.text.match(/^\s*/)[0];if(i||/\S/.test(l.text)){if("smart"==n&&((u=o.mode.indent(r,l.text.slice(c.length),l.text))==q||u>150)){if(!i)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?z(et(o,t-1).text,null,a):0:"add"==n?u=s+e.options.indentUnit:"subtract"==n?u=s-e.options.indentUnit:"number"==typeof n&&(u=s+n),u=Math.max(0,u);var d="",h=0;if(e.options.indentWithTabs)for(var f=Math.floor(u/a);f;--f)h+=a,d+="\t";if(ha,s=Pe(t),u=null;if(l&&i.ranges.length>1)if(Yl&&Yl.text.join("\n")==t){if(i.ranges.length%Yl.text.length==0){u=[];for(var c=0;c=0;h--){var f=i.ranges[h],p=f.from(),m=f.to();f.empty()&&(n&&n>0?p=st(p.line,p.ch-n):e.state.overwrite&&!l?m=st(m.line,Math.min(et(o,m.line).text.length,m.ch+J(s).length)):l&&Yl&&Yl.lineWise&&Yl.text.join("\n")==s.join("\n")&&(p=m=st(p.line,0)));var g={from:p,to:m,text:u?u[h%u.length]:s,origin:r||(l?"paste":e.state.cutIncoming>a?"cut":"+input")};ta(e.doc,g),On(e,"inputRead",e,g)}t&&!l&&Gl(e,t),cr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ul(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||Ir(t,(function(){return Xl(t,n,0,null,"paste")})),!0}function Gl(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,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)){var o=e.getModeAt(r.head),a=!1;if(o.electricChars){for(var l=0;l-1){a=_l(e,r.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(et(e.doc,r.head.line).text.slice(0,r.head.ch))&&(a=_l(e,r.head.line,"smart"));a&&On(e,"electricInput",e,r.head.line)}}}function Vl(e){for(var t=[],n=[],i=0;in&&(_l(this,r.head.line,e,!0),n=r.head.line,i==this.doc.sel.primIndex&&cr(this));else{var o=r.from(),a=r.to(),l=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var s=l;s0&&zo(this.doc,i,new so(o,u[i].to()),X)}}})),getTokenAt:function(e,t){return Mt(this,e,t)},getLineTokens:function(e,t){return Mt(this,st(e),t,!0)},getTokenTypeAt:function(e){e=mt(this.doc,e);var t,n=wt(this,et(this.doc,e.line)),i=0,r=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=i+r>>1;if((a?n[2*a-1]:0)>=o)r=a;else{if(!(n[2*a+1]o&&(e=o,r=!0),i=et(this.doc,e)}else i=e;return xi(this,i,{top:0,left:0},t||"page",n||r).top+(r?this.doc.height-un(i):0)},defaultTextHeight:function(){return Oi(this.display)},defaultCharWidth:function(){return Fi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,i,r){var o=this.display,a=(e=ki(this,mt(this.doc,e))).bottom,l=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==i)a=e.top;else if("above"==i||"near"==i){var s=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==i||e.bottom+t.offsetHeight>s)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=s&&(a=e.bottom),l+t.offsetWidth>u&&(l=u-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==r?(l=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==r?l=0:"middle"==r&&(l=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=l+"px"),n&&lr(this,{left:l,top:a,right:l+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Hr(hl),triggerOnKeyPress:Hr(ml),triggerOnKeyUp:pl,triggerOnMouseDown:Hr(wl),execCommand:function(e){if(el.hasOwnProperty(e))return el[e].call(null,this)},triggerElectric:Hr((function(e){Gl(this,e)})),findPosH:function(e,t,n,i){var r=1;t<0&&(r=-1,t=-t);for(var o=mt(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;i.5||this.options.lineWrapping)&&Pi(this),be(this,"refresh",this)})),swapDoc:Hr((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),ko(this,e),mi(this),this.display.input.reset(),dr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,On(this,"swapDoc",this,t),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}},Se(e),e.registerHelper=function(t,i,r){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][i]=r},e.registerGlobalHelper=function(t,i,r,o){e.registerHelper(t,i,o),n[t]._global.push({pred:r,val:o})}}function Zl(e,t,n,i,r){var o=t,a=n,l=et(e,t.line),s=r&&"rtl"==e.direction?-n:n;function u(){var n=t.line+s;return!(n=e.first+e.size)&&(t=new st(n,t.ch,t.sticky),l=et(e,n))}function c(o){var a;if("codepoint"==i){var c=l.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(c))a=null;else{var d=n>0?c>=55296&&c<56320:c>=56320&&c<57343;a=new st(t.line,Math.max(0,Math.min(l.text.length,t.ch+n*(d?2:1))),-n)}}else a=r?Za(e.cm,l,t,n):Qa(l,t,n);if(null==a){if(o||!u())return!1;t=Ja(r,e.cm,l,t.line,s)}else t=a;return!0}if("char"==i||"codepoint"==i)c();else if("column"==i)c(!0);else if("word"==i||"group"==i)for(var d=null,h="group"==i,f=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||c(!p);p=!1){var m=l.text.charAt(t.ch)||"\n",g=oe(m,f)?"w":h&&"\n"==m?"n":!h||/\s/.test(m)?null:"p";if(!h||p||g||(g="s"),d&&d!=g){n<0&&(n=1,c(),t.sticky="after");break}if(g&&(d=g),n>0&&!c(!p))break}var v=Qo(e,t,o,a,!0);return ct(o,v)&&(v.hitSide=!0),v}function es(e,t,n,i){var r,o,a=e.doc,l=t.left;if("page"==i){var s=Math.min(e.display.wrapper.clientHeight,W(e).innerHeight||a(e).documentElement.clientHeight),u=Math.max(s-.5*Oi(e.display),3);r=(n>0?t.bottom:t.top)+n*u}else"line"==i&&(r=n>0?t.bottom+3:t.top-3);for(;(o=Li(e,l,r)).outside;){if(n<0?r<=0:r>=a.height){o.hitSide=!0;break}r+=5*n}return o}var ts=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new j,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function ns(e,t){var n=ri(e,t.line);if(!n||n.hidden)return null;var i=et(e.doc,t.line),r=ti(n,i,t.line),o=me(i,e.doc.direction),a="left";o&&(a=fe(o,t.ch)%2?"right":"left");var l=ui(r.map,t.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function is(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function rs(e,t){return t&&(e.bad=!0),e}function os(e,t,n,i,r){var o="",a=!1,l=e.doc.lineSeparator(),s=!1;function u(e){return function(t){return t.id==e}}function c(){a&&(o+=l,s&&(o+=l),a=s=!1)}function d(e){e&&(c(),o+=e)}function h(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void d(n);var o,f=t.getAttribute("cm-marker");if(f){var p=e.findMarks(st(i,0),st(r+1,0),u(+f));return void(p.length&&(o=p[0].find(0))&&d(tt(e.doc,o.from,o.to).join(l)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&c();for(var g=0;g=t.display.viewTo||o.line=t.display.viewFrom&&ns(t,r)||{node:s[0].measure.map[2],offset:0},c=o.linei.firstLine()&&(a=st(a.line-1,et(i.doc,a.line-1).length)),l.ch==et(i.doc,l.line).text.length&&l.liner.viewTo-1)return!1;a.line==r.viewFrom||0==(e=Bi(i,a.line))?(t=rt(r.view[0].line),n=r.view[0].node):(t=rt(r.view[e].line),n=r.view[e-1].node.nextSibling);var s,u,c=Bi(i,l.line);if(c==r.view.length-1?(s=r.viewTo-1,u=r.lineDiv.lastChild):(s=rt(r.view[c+1].line)-1,u=r.view[c+1].node.previousSibling),!n)return!1;for(var d=i.doc.splitLines(os(i,n,u,t,s)),h=tt(i.doc,st(t,0),st(s,et(i.doc,s).text.length));d.length>1&&h.length>1;)if(J(d)==J(h))d.pop(),h.pop(),s--;else{if(d[0]!=h[0])break;d.shift(),h.shift(),t++}for(var f=0,p=0,m=d[0],g=h[0],v=Math.min(m.length,g.length);fa.ch&&y.charCodeAt(y.length-p-1)==x.charCodeAt(x.length-p-1);)f--,p++;d[d.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),d[0]=d[0].slice(f).replace(/\u200b+$/,"");var w=st(t,f),k=st(s,h.length?J(h).length-p:0);return d.length>1||d[0]||ut(w,k)?(la(i.doc,d,w,k,"+input"),!0):void 0},ts.prototype.ensurePolled=function(){this.forceCompositionEnd()},ts.prototype.reset=function(){this.forceCompositionEnd()},ts.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ts.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},ts.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Ir(this.cm,(function(){return Ri(e.cm)}))},ts.prototype.setUneditable=function(e){e.contentEditable="false"},ts.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||$r(this.cm,Xl)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},ts.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},ts.prototype.onContextMenu=function(){},ts.prototype.resetPosition=function(){},ts.prototype.needsContentAttribute=!0;var ss=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new j,this.hasSelection=!1,this.composing=null,this.resetting=!1};function us(e,t){if((t=t?R(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=F(e.ownerDocument);t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function i(){e.value=l.getValue()}var r;if(e.form&&(ve(e.form,"submit",i),!t.leaveSubmitMethodAlone)){var o=e.form;r=o.submit;try{var a=o.submit=function(){i(),o.submit=r,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=i,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,i(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(xe(e.form,"submit",i),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=r))}},e.style.display="none";var l=Rl((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return l}function cs(e){e.off=xe,e.on=ve,e.wheelEventPixels=oo,e.Doc=Ea,e.splitLines=Pe,e.countColumn=z,e.findColumn=V,e.isWordChar=re,e.Pass=q,e.signal=be,e.Line=hn,e.changeEnd=ho,e.scrollbarModel=Cr,e.Pos=st,e.cmpPos=ut,e.modes=je,e.mimeModes=_e,e.resolveMode=Xe,e.getMode=Ue,e.modeExtensions=Ge,e.extendMode=Ve,e.copyState=Ke,e.startState=Je,e.innerMode=Qe,e.commands=el,e.keyMap=za,e.keyName=Ua,e.isModifierKey=qa,e.lookupKey=Ya,e.normalizeKeyMap=_a,e.StringStream=Ze,e.SharedTextMarker=ba,e.TextMarker=ya,e.LineWidget=pa,e.e_preventDefault=Le,e.e_stopPropagation=Ee,e.e_stop=Te,e.addClass=I,e.contains=O,e.rmClass=M,e.keyNames=Pa}ss.prototype.init=function(e){var t=this,n=this,i=this.cm;this.createField(e);var r=this.textarea;function o(e){if(!we(i,e)){if(i.somethingSelected())ql({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var t=Vl(i);ql({lineWise:!0,text:t.text}),"cut"==e.type?i.setSelections(t.ranges,null,X):(n.prevInput="",r.value=t.text.join("\n"),H(r))}"cut"==e.type&&(i.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(r.style.width="0px"),ve(r,"input",(function(){a&&l>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),ve(r,"paste",(function(e){we(i,e)||Ul(e,i)||(i.state.pasteIncoming=+new Date,n.fastPoll())})),ve(r,"cut",o),ve(r,"copy",o),ve(e.scroller,"paste",(function(t){if(!Un(e,t)&&!we(i,t)){if(!r.dispatchEvent)return i.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,r.dispatchEvent(o)}})),ve(e.lineSpace,"selectstart",(function(t){Un(e,t)||Le(t)})),ve(r,"compositionstart",(function(){var e=i.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:i.markText(e,i.getCursor("to"),{className:"CodeMirror-composing"})}})),ve(r,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},ss.prototype.createField=function(e){this.wrapper=Ql(),this.textarea=this.wrapper.firstChild},ss.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ss.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,i=Ui(e);if(e.options.moveInputWithCursor){var r=ki(e,n.sel.primary().head,"div"),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},ss.prototype.showSelection=function(e){var t=this.cm.display;D(t.cursorDiv,e.cursors),D(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ss.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&H(this.textarea),a&&l>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&l>=9&&(this.hasSelection=null));this.resetting=!1}},ss.prototype.getField=function(){return this.textarea},ss.prototype.supportsTouch=function(){return!1},ss.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||F(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(e){}},ss.prototype.blur=function(){this.textarea.blur()},ss.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ss.prototype.receivedFocus=function(){this.slowPoll()},ss.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},ss.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},ss.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,i=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||We(n)&&!i&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var r=n.value;if(r==i&&!t.somethingSelected())return!1;if(a&&l>=9&&this.hasSelection===r||x&&/[\uf700-\uf7ff]/.test(r))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=r.charCodeAt(0);if(8203!=o||i||(i=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var s=0,u=Math.min(i.length,r.length);s1e3||r.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=r,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},ss.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ss.prototype.onKeyPress=function(){a&&l>=9&&(this.hasSelection=null),this.fastPoll()},ss.prototype.onContextMenu=function(e){var t=this,n=t.cm,i=n.display,r=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Wi(n,e),u=i.scroller.scrollTop;if(o&&!h){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&$r(n,qo)(n.doc,co(o),X);var c,d=r.style.cssText,f=t.wrapper.style.cssText,p=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",r.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",s&&(c=r.ownerDocument.defaultView.scrollY),i.input.focus(),s&&r.ownerDocument.defaultView.scrollTo(null,c),i.input.reset(),n.somethingSelected()||(r.value=t.prevInput=" "),t.contextMenuPending=v,i.selForContextMenu=n.doc.sel,clearTimeout(i.detectingSelectAll),a&&l>=9&&g(),S){Te(e);var m=function(){xe(window,"mouseup",m),setTimeout(v,20)};ve(window,"mouseup",m)}else setTimeout(v,50)}function g(){if(null!=r.selectionStart){var e=n.somethingSelected(),o=""+(e?r.value:"");r.value="⇚",r.value=o,t.prevInput=e?"":"",r.selectionStart=1,r.selectionEnd=o.length,i.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=f,r.style.cssText=d,a&&l<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=u),null!=r.selectionStart)){(!a||a&&l<9)&&g();var e=0,o=function(){i.selForContextMenu==n.doc.sel&&0==r.selectionStart&&r.selectionEnd>0&&""==t.prevInput?$r(n,Zo)(n):e++<10?i.detectingSelectAll=setTimeout(o,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(o,200)}}},ss.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},ss.prototype.setUneditable=function(){},ss.prototype.needsContentAttribute=!1,Pl(Rl),Jl(Rl);var ds="iter insert remove copy getEditor constructor".split(" ");for(var hs in Ea.prototype)Ea.prototype.hasOwnProperty(hs)&&_(ds,hs)<0&&(Rl.prototype[hs]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ea.prototype[hs]));return Se(Ea),Rl.inputStyles={textarea:ss,contenteditable:ts},Rl.defineMode=function(e){Rl.defaults.mode||"null"==e||(Rl.defaults.mode=e),Ye.apply(this,arguments)},Rl.defineMIME=qe,Rl.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Rl.defineMIME("text/plain","null"),Rl.defineExtension=function(e,t){Rl.prototype[e]=t},Rl.defineDocExtension=function(e,t){Ea.prototype[e]=t},Rl.fromTextArea=us,cs(Rl),Rl.version="5.65.9",Rl}()),sn.exports}var cn,dn,hn=un(),fn=cn={init:function(){$$("[data-modal]").forEach((function(e){e.addEventListener("click",(function(){var e=this.getAttribute("data-modal"),t=this.getAttribute("data-modal-action");t?cn.show(e,t):cn.show(e)}))})),$$(".modal [data-dismiss]").forEach((function(e){e.addEventListener("click",(function(){this.hasAttribute("data-validate")&&!cn.validate(this.getAttribute("data-dismiss"))||cn.hide(this.getAttribute("data-dismiss"))}))})),$$(".modal").forEach((function(e){e.addEventListener("click",(function(e){e.target===this&&cn.hide()}))})),document.addEventListener("keyup",(function(e){27===e.which&&cn.hide()})),window.addEventListener("focus",(function(){var e=$(".modal.show");e&&G.firstFocusableElement(e).focus()}))},show:function(e,t,n){var i=document.getElementById(e);i&&(i.classList.add("show"),t&&$("form",i).setAttribute("action",t),document.activeElement.blur(),$("[autofocus]",i)?$("[autofocus]",i).focus():G.firstFocusableElement(i).focus(),"function"==typeof n&&n(i),$$(".tooltip").forEach((function(e){e.parentNode.removeChild(e)})),this.createBackdrop())},hide:function(e){void 0!==e?document.getElementById(e).classList.remove("show"):$$(".modal").forEach((function(e){e.classList.remove("show")})),this.removeBackdrop()},createBackdrop:function(){var e;$(".modal-backdrop")||((e=document.createElement("div")).className="modal-backdrop",document.body.appendChild(e))},removeBackdrop:function(){var e=$(".modal-backdrop");e&&e.parentNode.removeChild(e)},validate:function(e){var t=!1,n=document.getElementById(e);return $$("[required]",e).forEach((function(e){if(""===e.value)return e.classList("input-invalid"),e.focus(),$(".modal-error",n).style.display="block",t=!1,!1;t=!0})),t}},pn={};function mn(){return dn||(dn=1,e=un(),t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1},e.defineMode("xml",(function(i,r){var o,a,l=i.indentUnit,s={},u=r.htmlMode?t:n;for(var c in u)s[c]=u[c];for(var c in r)s[c]=r[c];function d(e,t){function n(n){return t.tokenize=n,n(e,t)}var i=e.next();return"<"==i?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(p("atom","]]>")):null:e.match("--")?n(p("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(m(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=p("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=h,"tag bracket"):"&"==i?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function h(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=d,o=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return o="equals",null;if("<"==n){t.tokenize=d,t.state=b,t.tagName=t.tagStart=null;var i=t.tokenize(e,t);return i?i+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=f(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function f(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=h;break}return"string"};return t.isInAttribute=!0,t}function p(e,t){return function(n,i){for(;!n.eol();){if(n.match(t)){i.tokenize=d;break}n.next()}return e}}function m(e){return function(t,n){for(var i;null!=(i=t.next());){if("<"==i)return n.tokenize=m(e+1),n.tokenize(t,n);if(">"==i){if(1==e){n.tokenize=d;break}return n.tokenize=m(e-1),n.tokenize(t,n)}}return"meta"}}function g(e){return e&&e.toLowerCase()}function v(e,t,n){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=n,(s.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function y(e){e.context&&(e.context=e.context.prev)}function x(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!s.contextGrabbers.hasOwnProperty(g(n))||!s.contextGrabbers[g(n)].hasOwnProperty(g(t)))return;y(e)}}function b(e,t,n){return"openTag"==e?(n.tagStart=t.column(),w):"closeTag"==e?k:b}function w(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",L):s.allowMissingTagName&&"endTag"==e?(a="tag bracket",L(e,t,n)):(a="error",w)}function k(e,t,n){if("word"==e){var i=t.current();return n.context&&n.context.tagName!=i&&s.implicitlyClosed.hasOwnProperty(g(n.context.tagName))&&y(n),n.context&&n.context.tagName==i||!1===s.matchClosing?(a="tag",C):(a="tag error",S)}return s.allowMissingTagName&&"endTag"==e?(a="tag bracket",C(e,t,n)):(a="error",S)}function C(e,t,n){return"endTag"!=e?(a="error",C):(y(n),b)}function S(e,t,n){return a="error",C(e,t,n)}function L(e,t,n){if("word"==e)return a="attribute",E;if("endTag"==e||"selfcloseTag"==e){var i=n.tagName,r=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||s.autoSelfClosers.hasOwnProperty(g(i))?x(n,i):(x(n,i),n.context=new v(n,i,r==n.indented)),b}return a="error",L}function E(e,t,n){return"equals"==e?M:(s.allowMissing||(a="error"),L(e,t,n))}function M(e,t,n){return"string"==e?T:"word"==e&&s.allowUnquoted?(a="string",L):(a="error",L(e,t,n))}function T(e,t,n){return"string"==e?T:L(e,t,n)}return d.isInText=!0,{startState:function(e){var t={tokenize:d,state:b,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(t,n,i){var r=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+l;if(r&&r.noIndent)return e.Pass;if(t.tokenize!=h&&t.tokenize!=d)return i?i.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==s.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+l*(s.multilineTagIndentFactor||1);if(s.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:s.htmlMode?"html":"xml",helperType:s.htmlMode?"html":"xml",skipAttribute:function(e){e.state==M&&(e.state=L)},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()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})),pn;var e,t,n}var gn,vn;function yn(e){var t,n,i,r,o,a={addKeyCodes:[32]},l=[];function s(){i.value=l.join(", "),u()}function u(){r.length>0&&(0===l.length?(n.placeholder=r,n.size=r.length):(n.placeholder="",n.size=1))}function c(e){var t=document.createElement("span"),i=document.createElement("i");t.className="tag",t.innerHTML=e,t.style.marginRight=".25rem",n.parentNode.insertBefore(t,n),i.className="tag-remove",i.setAttribute("role","button"),i.addEventListener("mousedown",(function(n){h(e),t.parentNode.removeChild(t),n.preventDefault()})),t.appendChild(i)}function d(e){!function(e){return-1===l.indexOf(e)&&(!o||null!==$('[data-value="'+e+'"]',o))}(e)?u():(l.push(e),c(e),s()),n.value="",o&&f()}function h(e){var t=l.indexOf(e);t>-1&&(l.splice(t,1),s()),o&&f()}function f(){var e=0;$$(".dropdown-item",o).forEach((function(t){"none"!==getComputedStyle(t).display&&e++,-1===l.indexOf(t.getAttribute("data-value"))?t.style.display="block":t.style.display="none",t.classList.remove("selected")})),o.style.display=e>0?"block":"none"}function p(){var e=$(".dropdown-item.selected",o);"none"!==getComputedStyle(e).display&&(n.value=e.getAttribute("data-value"))}function m(e){var t=$(".dropdown-item.selected",o);t&&t.classList.remove("selected"),e&&(e.classList.add("selected"),function(e){var t=o.scrollTop,n=o.clientHeight,i=t+n,r=getComputedStyle(o),a=parseInt(r.paddingTop),l=parseInt(r.paddingBottom),s=e.offsetTop,u=s+e.clientHeight;si&&(o.scrollTop=u-n+l)}(e))}function g(){var e,t=$$(".dropdown-item",o);for(e=0;e=0;e--)if("none"!==getComputedStyle(t[e]).display)return void m(t[e])}()}(),e.preventDefault());break;case 40:"none"!==getComputedStyle(o).display&&(!function(){var e,t=$(".dropdown-item.selected",o);if(t){for(e=t.nextSibling;e&&"none"===e.style.display;)e=e.nextSibling;if(e)return m(e)}g()}(),e.preventDefault());break;default:a.addKeyCodes.indexOf(e.which)>-1&&(p(),e.preventDefault())}})),n.addEventListener("keyup",G.debounce((function(e){var t=n.value.trim();switch(e.which){case 27:o.style.display="none";break;case 38:case 40:return!0;default:o.style.display="block",function(e){var t=0;o.style.display="block",$$(".dropdown-item",o).forEach((function(n){var i=n.textContent,r=new RegExp(G.makeDiacriticsRegExp(G.escapeRegExp(e)),"i");null!==i.match(r)&&"none"!==n.style.display?(n.style.display="block",t++):n.style.display="none"})),o.style.display=t>0?"block":"none"}(t),t.length>0&&g()}}),100))}}(),n.addEventListener("focus",(function(){t.classList.add("focused")})),n.addEventListener("blur",(function(){var e=n.value.trim();""!==e&&d(e),t.classList.remove("focused")})),n.addEventListener("keydown",(function(){var e=n.value.trim();switch(event.which){case 8:""===e?(h(l[l.length-1]),n.previousSibling&&n.parentNode.removeChild(n.previousSibling),event.preventDefault()):n.size=Math.max(n.value.length,n.placeholder.length,1);break;case 13:case 188:""!==e&&d(e),event.preventDefault();break;case 27:n.value="",u(),n.blur(),event.preventDefault();break;default:if(""!==e&&a.addKeyCodes.indexOf(event.which)>-1){d(e),event.preventDefault();break}e.length>0&&(n.size=n.value.length+2)}}))}vn=un(),mn(),gn||(gn=1,function(e){e.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","cbl"]},{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"],alias:["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 t=0;t-1&&t.substring(r+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n` "'(~:]+/,f=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,p=/^\s*\[[^\]]+?\]:.*$/,m=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,g=" ";function v(e,t,n){return t.f=t.inline=n,n(e,t)}function y(e,t,n){return t.f=t.block=n,n(e,t)}function x(e){return!e||!/\S/.test(e.string)}function b(e){if(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==k){var t=i;if(!t){var r=vn.innerMode(n,e.htmlState);t="xml"==r.mode.name&&null===r.state.tagStart&&!r.state.context&&r.state.tokenize.isInText}t&&(e.f=E,e.block=w,e.htmlState=null)}return e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.prevLine=e.thisLine,e.thisLine={stream:null},null}function w(e,n){var i=e.column()===n.indentation,a=x(n.prevLine.stream),h=n.indentedCode,m=n.prevLine.hr,g=!1!==n.list,y=(n.listStack[n.listStack.length-1]||0)+3;n.indentedCode=!1;var b=n.indentation;if(null===n.indentationDiff&&(n.indentationDiff=n.indentation,g)){for(n.list=null;b=4&&(h||n.prevLine.fencedCodeEnd||n.prevLine.header||a))return e.skipToEnd(),n.indentedCode=!0,o.code;if(e.eatSpace())return null;if(i&&n.indentation<=y&&(L=e.match(c))&&L[1].length<=6)return n.quote=0,n.header=L[1].length,n.thisLine.header=!0,t.highlightFormatting&&(n.formatting="header"),n.f=n.inline,S(n);if(n.indentation<=y&&e.eat(">"))return n.quote=i?1:n.quote+1,t.highlightFormatting&&(n.formatting="quote"),e.eatSpace(),S(n);if(!k&&!n.setext&&i&&n.indentation<=y&&(L=e.match(s))){var E=L[1]?"ol":"ul";return n.indentation=b+e.current().length,n.list=!0,n.quote=0,n.listStack.push(n.indentation),n.em=!1,n.strong=!1,n.code=!1,n.strikethrough=!1,t.taskLists&&e.match(u,!1)&&(n.taskList=!0),n.f=n.inline,t.highlightFormatting&&(n.formatting=["list","list-"+E]),S(n)}return i&&n.indentation<=y&&(L=e.match(f,!0))?(n.quote=0,n.fencedEndRE=new RegExp(L[1]+"+ *$"),n.localMode=t.fencedCodeBlockHighlighting&&r(L[2]||t.fencedCodeBlockDefaultMode),n.localMode&&(n.localState=vn.startState(n.localMode)),n.f=n.block=C,t.highlightFormatting&&(n.formatting="code-block"),n.code=-1,S(n)):n.setext||!(w&&g||n.quote||!1!==n.list||n.code||k||p.test(e.string))&&(L=e.lookAhead(1))&&(L=L.match(d))?(n.setext?(n.header=n.setext,n.setext=0,e.skipToEnd(),t.highlightFormatting&&(n.formatting="header")):(n.header="="==L[0].charAt(0)?1:2,n.setext=n.header),n.thisLine.header=!0,n.f=n.inline,S(n)):k?(e.skipToEnd(),n.hr=!0,n.thisLine.hr=!0,o.hr):"["===e.peek()?v(e,n,N):v(e,n,n.inline)}function k(e,t){var r=n.token(e,t.htmlState);if(!i){var o=vn.innerMode(n,t.htmlState);("xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText||t.md_inside&&e.current().indexOf(">")>-1)&&(t.f=E,t.block=w,t.htmlState=null)}return r}function C(e,n){var i,r=n.listStack[n.listStack.length-1]||0,a=n.indentation=e.quote?n.push(o.formatting+"-"+e.formatting[i]+"-"+e.quote):n.push("error"))}if(e.taskOpen)return n.push("meta"),n.length?n.join(" "):null;if(e.taskClosed)return n.push("property"),n.length?n.join(" "):null;if(e.linkHref?n.push(o.linkHref,"url"):(e.strong&&n.push(o.strong),e.em&&n.push(o.em),e.strikethrough&&n.push(o.strikethrough),e.emoji&&n.push(o.emoji),e.linkText&&n.push(o.linkText),e.code&&n.push(o.code),e.image&&n.push(o.image),e.imageAltText&&n.push(o.imageAltText,"link"),e.imageMarker&&n.push(o.imageMarker)),e.header&&n.push(o.header,o.header+"-"+e.header),e.quote&&(n.push(o.quote),!t.maxBlockquoteDepth||t.maxBlockquoteDepth>=e.quote?n.push(o.quote+"-"+e.quote):n.push(o.quote+"-"+t.maxBlockquoteDepth)),!1!==e.list){var r=(e.listStack.length-1)%3;r?1===r?n.push(o.list2):n.push(o.list3):n.push(o.list1)}return 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 L(e,t){if(e.match(h,!0))return S(t)}function E(e,i){var r=i.text(e,i);if(void 0!==r)return r;if(i.list)return i.list=null,S(i);if(i.taskList)return" "===e.match(u,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,t.highlightFormatting&&(i.formatting="task"),i.taskList=!1,S(i);if(i.taskOpen=!1,i.taskClosed=!1,i.header&&e.match(/^#+$/,!0))return t.highlightFormatting&&(i.formatting="header"),S(i);var a=e.next();if(i.linkTitle){i.linkTitle=!1;var l=a;"("===a&&(l=")");var s="^\\s*(?:[^"+(l=(l+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+l;if(e.match(new RegExp(s),!0))return o.linkHref}if("`"===a){var c=i.formatting;t.highlightFormatting&&(i.formatting="code"),e.eatWhile("`");var d=e.current().length;if(0!=i.code||i.quote&&1!=d){if(d==i.code){var h=S(i);return i.code=0,h}return i.formatting=c,S(i)}return i.code=d,S(i)}if(i.code)return S(i);if("\\"===a&&(e.next(),t.highlightFormatting)){var f=S(i),p=o.formatting+"-escape";return f?f+" "+p:p}if("!"===a&&e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,t.highlightFormatting&&(i.formatting="image"),S(i);if("["===a&&i.imageMarker&&e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,t.highlightFormatting&&(i.formatting="image"),S(i);if("]"===a&&i.imageAltText){t.highlightFormatting&&(i.formatting="image");var f=S(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=T,f}if("["===a&&!i.image)return i.linkText&&e.match(/^.*?\]/)||(i.linkText=!0,t.highlightFormatting&&(i.formatting="link")),S(i);if("]"===a&&i.linkText){t.highlightFormatting&&(i.formatting="link");var f=S(i);return i.linkText=!1,i.inline=i.f=e.match(/\(.*?\)| ?\[.*?\]/,!1)?T:E,f}if("<"===a&&e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=M,t.highlightFormatting&&(i.formatting="link"),(f=S(i))?f+=" ":f="",f+o.linkInline;if("<"===a&&e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=M,t.highlightFormatting&&(i.formatting="link"),(f=S(i))?f+=" ":f="",f+o.linkEmail;if(t.xml&&"<"===a&&e.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var g=e.string.indexOf(">",e.pos);if(-1!=g){var v=e.string.substring(e.start,g);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(v)&&(i.md_inside=!0)}return e.backUp(1),i.htmlState=vn.startState(n),y(e,i,k)}if(t.xml&&"<"===a&&e.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===a||"_"===a){for(var x=1,b=1==e.pos?" ":e.string.charAt(e.pos-2);x<3&&e.eat(a);)x++;var w=e.peek()||" ",C=!/\s/.test(w)&&(!m.test(w)||/\s/.test(b)||m.test(b)),L=!/\s/.test(b)&&(!m.test(b)||/\s/.test(w)||m.test(w)),D=null,A=null;if(x%2&&(i.em||!C||"*"!==a&&L&&!m.test(b)?i.em!=a||!L||"*"!==a&&C&&!m.test(w)||(D=!1):D=!0),x>1&&(i.strong||!C||"*"!==a&&L&&!m.test(b)?i.strong!=a||!L||"*"!==a&&C&&!m.test(w)||(A=!1):A=!0),null!=A||null!=D)return t.highlightFormatting&&(i.formatting=null==D?"strong":null==A?"em":"strong em"),!0===D&&(i.em=a),!0===A&&(i.strong=a),h=S(i),!1===D&&(i.em=!1),!1===A&&(i.strong=!1),h}else if(" "===a&&(e.eat("*")||e.eat("_"))){if(" "===e.peek())return S(i);e.backUp(1)}if(t.strikethrough)if("~"===a&&e.eatWhile(a)){if(i.strikethrough)return t.highlightFormatting&&(i.formatting="strikethrough"),h=S(i),i.strikethrough=!1,h;if(e.match(/^[^\s]/,!1))return i.strikethrough=!0,t.highlightFormatting&&(i.formatting="strikethrough"),S(i)}else if(" "===a&&e.match("~~",!0)){if(" "===e.peek())return S(i);e.backUp(2)}if(t.emoji&&":"===a&&e.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,t.highlightFormatting&&(i.formatting="emoji");var N=S(i);return i.emoji=!1,N}return" "===a&&(e.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),S(i)}function M(e,n){if(">"===e.next()){n.f=n.inline=E,t.highlightFormatting&&(n.formatting="link");var i=S(n);return i?i+=" ":i="",i+o.linkInline}return e.match(/^[^>]+/,!0),o.linkInline}function T(e,n){if(e.eatSpace())return null;var i=e.next();return"("===i||"["===i?(n.f=n.inline=A("("===i?")":"]"),t.highlightFormatting&&(n.formatting="link-string"),n.linkHref=!0,S(n)):"error"}var D={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function A(e){return function(n,i){if(n.next()===e){i.f=i.inline=E,t.highlightFormatting&&(i.formatting="link-string");var r=S(i);return i.linkHref=!1,r}return n.match(D[e]),i.linkHref=!0,S(i)}}function N(e,n){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(n.f=O,e.next(),t.highlightFormatting&&(n.formatting="link"),n.linkText=!0,S(n)):v(e,n,E)}function O(e,n){if(e.match("]:",!0)){n.f=n.inline=F,t.highlightFormatting&&(n.formatting="link");var i=S(n);return n.linkText=!1,i}return e.match(/^([^\]\\]|\\.)+/,!0),o.linkText}function F(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=E,o.linkHref+" url")}var I={startState:function(){return{f:w,prevLine:{stream:null},thisLine:{stream:null},block:w,htmlState:null,indentation:0,inline:E,text:L,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&&vn.copyState(n,e.htmlState),indentation:e.indentation,localMode:e.localMode,localState:e.localMode?vn.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 b(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!=k)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g,g).length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==k?{state:e.htmlState,mode:n}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:I}},indent:function(e,t,i){return e.block==k&&n.indent?n.indent(e.htmlState,t,i):e.localState&&e.localMode.indent?e.localMode.indent(e.localState,t,i):vn.Pass},blankLine:b,getType:S,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return I}),"xml"),vn.defineMIME("text/markdown","markdown"),vn.defineMIME("text/x-markdown","markdown"),function(e){var t=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,i=/[*+-]\s/;function r(e,n){var i=n.line,r=0,o=0,a=t.exec(e.getLine(i)),l=a[1];do{var s=i+(r+=1),u=e.getLine(s),c=t.exec(u);if(c){var d=c[1],h=parseInt(a[3],10)+r-o,f=parseInt(c[3],10),p=f;if(l!==d||isNaN(f)){if(l.length>d.length)return;if(l.lengthf&&(p=h+1),e.replaceRange(u.replace(t,d+p+c[4]+c[5]),{line:s,ch:0},{line:s,ch:u.length})}}while(c)}e.commands.newlineAndIndentContinueMarkdownList=function(o){if(o.getOption("disableInput"))return e.Pass;for(var a=o.listSelections(),l=[],s=0;s\s*$/.test(p),y=!/>\s*$/.test(p);(v||y)&&o.replaceRange("",{line:u.line,ch:0},{line:u.line,ch:u.ch+1}),l[s]="\n"}else{var x=m[1],b=m[5],w=!(i.test(m[2])||m[2].indexOf(">")>=0),k=w?parseInt(m[3],10)+1+m[4]:m[2].replace("x"," ");l[s]="\n"+x+k+b,w&&r(o,u)}}o.replaceSelections(l)}}(un());var xn,bn=function(){$$("input[data-enable]").forEach((function(e){e.addEventListener("change",(function(){var e,t,n=this.getAttribute("data-enable").split(",");for(e=0;e',m+=f+" "+e,m+="",m+="",s=0;s<7;s++)m+='',m+=t.labels.weekdays.short[i.mod(s+t.weekStarts,7)],m+="";for(m+="",s=0;s<6;s++){for(u=0;u<7;u++)c<=h&&(s>0||u>=p)?(m+=c===a?'':'',m+=c++):1===c?(m+='',m+=i.daysInMonth(i.mod(o-1,12),e)-p+u+1):(m+='',m+=c++-h),m+="";m+=""}m+="",$(".calendar-table",r).innerHTML=m,$$(".calendar-day",r).forEach((function(e){e.addEventListener("mousedown",(function(e){e.stopPropagation(),e.preventDefault()})),e.addEventListener("click",(function(){var e=l(),t=new Date(n.year,n.month,parseInt(this.textContent));e.setAttribute("data-date",t),e.value=i.formatDateTime(t),e.blur()}))}))}function c(){var t,n,i,o,a,s,u,c,d,h;(e=l())&&"block"===r.style.display&&(n=(t=e.getBoundingClientRect()).top+window.pageYOffset,i=t.left+window.pageXOffset,r.style.top=n+e.offsetHeight+"px",r.style.left=i+e.offsetLeft+"px",a=(o=r.getBoundingClientRect()).top+window.pageYOffset,s=o.left+window.pageXOffset,u=G.outerWidth(r),c=G.outerHeight(r),d=document.documentElement.clientWidth,h=document.documentElement.clientHeight,s+u>d&&(r.style.left=d-u+"px"),(ai.daysInMonth(this.month,this.year)&&this.lastDay()},nextMonth:function(){this.month=i.mod(this.month+1,12),0===this.month&&this.nextYear(),this.day>i.daysInMonth(this.month,this.year)&&this.lastDay()},prevWeek:function(){this.day-=7,this.day<1&&(this.prevMonth(),this.day+=i.daysInMonth(this.month,this.year))},nextWeek:function(){this.day+=7,this.day>i.daysInMonth(this.month,this.year)&&(this.day-=i.daysInMonth(this.month,this.year),this.nextMonth())},prevDay:function(){this.day--,this.day<1&&(this.prevMonth(),this.lastDay())},nextDay:function(){this.day++,this.day>i.daysInMonth(this.month,this.year)&&(this.nextMonth(),this.day=1)},nextHour:function(){this.hours=i.mod(this.hours+1,24),0===this.hours&&this.nextDay()},prevHour:function(){this.hours=i.mod(this.hours-1,24),23===this.hours&&this.prevDay()},nextMinute:function(){this.minutes=i.mod(this.minutes+1,60),0===this.minutes&&this.nextHour()},prevMinute:function(){this.minutes=i.mod(this.minutes-1,60),59===this.minutes&&this.prevHour()},nextSecond:function(){this.seconds=i.mod(this.seconds+1,60),0===this.seconds&&this.nextMinute()},prevSecond:function(){this.seconds=i.mod(this.seconds-1,60),59===this.minutes&&this.prevMinute()}},i={_daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],mod:function(e,t){return e-t*Math.floor(e/t)},pad:function(e,t){for(var n=e.toString();n.length=i.getTime()?t+1:e.getTime()>=n.getTime()?t:t-1},weekOfYear:function(e){var t=this.weekNumberingYear(e),n=this.weekStart(new Date(t,0,4),1),i=this.weekStart(e,1);return Math.round((i.getTime()-n.getTime())/6048e5)+1},has12HourFormat:function(e){var t=e.match(/\[([^\]]*)\]|H{1,2}/);return null!==t&&"H"===t[0][0]},formatDateTime:function(e,n){var r=this;function o(e){var t=e>0?"-":"+",n=Math.floor(Math.abs(e)/60),r=Math.abs(e)%60;return[t+i.pad(n,2),i.pad(r,2)]}return void 0===n&&(n=t.format),n.replace(/\[([^\]]*)\]|[YR]{4}|uuu|[YR]{2}|[MD]{1,4}|[WHhms]{1,2}|[AaZz]/g,(function(n,i){switch(n){case"YY":return e.getFullYear().toString().substr(-2);case"YYYY":return e.getFullYear();case"M":return e.getMonth()+1;case"MM":return r.pad(e.getMonth()+1,2);case"MMM":return t.labels.months.short[e.getMonth()];case"MMMM":return t.labels.months.long[e.getMonth()];case"D":return e.getDate();case"DD":return r.pad(e.getDate(),2);case"DDD":return t.labels.weekdays.short[r.mod(e.getDay()+t.weekStarts,7)];case"DDDD":return t.labels.weekdays.long[r.mod(e.getDay()+t.weekStarts,7)];case"W":return r.weekOfYear(e);case"WW":return r.pad(r.weekOfYear(e),2);case"RR":return r.weekNumberingYear(e).toString().substr(-2);case"RRRR":return r.weekNumberingYear(e);case"H":return r.mod(e.getHours(),12)||12;case"HH":return r.pad(r.mod(e.getHours(),12)||12,2);case"h":return e.getHours();case"hh":return r.pad(e.getHours(),2);case"m":return e.getMinutes();case"mm":return r.pad(e.getMinutes(),2);case"s":return e.getSeconds();case"ss":return r.pad(e.getSeconds(),2);case"uuu":return r.pad(e.getMilliseconds(),3);case"A":return e.getHours()<12?"AM":"PM";case"a":return e.getHours()<12?"am":"pm";case"Z":return o(e.getTimezoneOffset()).join(":");case"z":return o(e.getTimezoneOffset()).join("");default:return i||n}}))}},r=$(".calendar")?$(".calendar"):((r=document.createElement("div")).className="calendar",r.innerHTML=''+t.labels.today+'',!0===t.time&&(r.innerHTML+=':',Q.inject("chevron-down",$(".prevHour",r)),Q.inject("chevron-up",$(".nextHour",r)),Q.inject("chevron-down",$(".prevMinute",r)),Q.inject("chevron-up",$(".nextMinute",r)),G.longClick($(".nextHour",r),(function(t){n.nextHour(),a(e),t.preventDefault()}),750,250),G.longClick($(".prevHour",r),(function(t){n.prevHour(),a(e),t.preventDefault()}),750,250),G.longClick($(".nextMinute",r),(function(t){n.nextMinute(),a(e),t.preventDefault()}),750,250),G.longClick($(".prevMinute",r),(function(t){n.prevMinute(),a(e),t.preventDefault()}),750,250)),document.body.appendChild(r),Q.inject("calendar-clock",$(".currentMonth",r)),Q.inject("chevron-left",$(".prevMonth",r)),Q.inject("chevron-right",$(".nextMonth",r)),$(".currentMonth",r).addEventListener("mousedown",(function(e){var t=l(),i=new Date;n.setDate(i),a(t),t.blur(),e.preventDefault()})),G.longClick($(".prevMonth",r),(function(t){n.prevMonth(),a(e),t.preventDefault()}),750,500),G.longClick($(".nextMonth",r),(function(t){n.nextMonth(),a(e),t.preventDefault()}),750,500),window.addEventListener("mousedown",(function(e){"none"!==r.style.display&&e.target.closest(".calendar")&&e.preventDefault()})),window.addEventListener("resize",G.throttle(c,100)),r),d=e.value,e.readOnly=!0,e.size=t.format.length,i.isValidDate(d)&&(d=new Date(d),e.setAttribute("data-date",d),e.value=i.formatDateTime(d)),e.addEventListener("change",(function(){""===this.value?this.setAttribute("data-date",""):this.value=i.formatDateTime(this.getAttribute("data-date"))})),e.addEventListener("keydown",(function(e){var t=this.getAttribute("data-date");switch(n.setDate(i.isValidDate(t)?new Date(t):new Date),e.which){case 13:$(".calendar-day.selected",r).click(),r.style.display="none";break;case 8:this.value="",this.blur(),r.style.display="none";break;case 27:this.blur(),r.style.display="none";break;case 37:e.ctrlKey||e.metaKey?e.shiftKey?n.prevYear():n.prevMonth():n.prevDay(),a(this);break;case 38:n.prevWeek(),a(this);break;case 39:e.ctrlKey||e.metaKey?e.shiftKey?n.nextYear():n.nextMonth():n.nextDay(),a(this);break;case 40:n.nextWeek(),a(this);break;case 48:(e.ctrlKey||e.metaKey)&&n.setDate(new Date),a(this);break;default:return}e.stopPropagation(),e.preventDefault()})),e.addEventListener("focus",(function(){var e=i.isValidDate(this.getAttribute("data-date"))?new Date(this.getAttribute("data-date")):new Date;n.setDate(e),u(n.year,n.month,n.day),s(n.hours,n.minutes),r.style.display="block",c()})),e.addEventListener("blur",(function(){r.style.display="none"}));var d}(e,Formwork.config.DateInput)})),$$(".input-image").forEach((function(e){e.addEventListener("click",(function(){fn.show("imagesModal",null,(function(t){var n,i=$(".image-picker-thumbnail.selected",t);i&&i.classList.remove("selected"),e.value&&(n=$('.image-picker-thumbnail[data-filename="'+e.value+'"]',t))&&n.classList.add("selected"),$(".image-picker-confirm",t).setAttribute("data-target",e.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",r.length>0){for((t=document.createElement("div")).className="image-picker-thumbnails",i=0;i ","")})),$("[data-command=link]",n).addEventListener("click",(function(){var e=t.getSelection();/^(https?:\/\/|mailto:)/i.test(e)?u("[","]("+e+")",!0):""!==e?u("["+e+"](http://",")",!0):u("[","](http://)")})),$("[data-command=image]",n).addEventListener("click",(function(){fn.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?u(s()+"![","]("+t+")"):u(s()+"![](",")"),this.removeEventListener("click",e)}))}))})),$("[data-command=summary]",n).addEventListener("click",(function(){var e;o()||(u((void 0===(e=l())||"\n"===e?"":"\n")+"\n===\n\n",""),this.setAttribute("disabled",""))})),$("[data-command=undo]",n).addEventListener("click",(function(){t.undo(),t.focus()})),$("[data-command=redo]",n).addEventListener("click",(function(){t.redo(),t.focus()})),a(),t.on("changes",G.debounce((function(){e.value=t.getValue(),a(),t.historySize().undo<1?$("[data-command=undo]").setAttribute("disabled",""):$("[data-command=undo]").removeAttribute("disabled"),t.historySize().redo<1?$("[data-command=redo]").setAttribute("disabled",""):$("[data-command=redo]").removeAttribute("disabled")}),500)),t.on("beforeSelectionChange",(function(e,t){var n=function(e){var t,n=[];for(t=0;t0?n.innerHTML=this.files[0].name:n.innerHTML=this.getAttribute("data-label")}function o(e){e.preventDefault()}function a(e){this.classList.add("drag"),e.preventDefault()}e.setAttribute("data-label",$('label[for="'+e.id+'"] span').innerHTML),e.addEventListener("change",r),e.addEventListener("input",r),e.form.addEventListener("submit",(function(){e.files.length>0&&(n.innerHTML+=' '),i=!0})),t.addEventListener("drag",o),t.addEventListener("dragstart",o),t.addEventListener("dragend",o),t.addEventListener("dragover",a),t.addEventListener("dragenter",a),t.addEventListener("dragleave",(function(e){this.classList.remove("drag"),e.preventDefault()})),t.addEventListener("drop",(function(t){t.preventDefault(),i||(e.files=t.dataTransfer.files,G.triggerEvent(e,"change"))})),t.addEventListener("click",(function(e){i&&e.preventDefault()}))}(e)})),$$("input[data-field=tags]").forEach((function(e){yn(e)})),$$("input[data-field=duration]").forEach((function(e){an(e,Formwork.config.DurationInput)})),$$("input[type=range]").forEach((function(e){!function(e){function t(){$('output[for="'+this.id+'"]').innerHTML=this.value}e.addEventListener("change",t),e.addEventListener("input",t)}(e)})),$$(".input-array").forEach((function(e){on(e)})),$$("[data-form]").forEach((function(e){!function(e){var t=G.serializeForm(e);function n(e){r()&&(e.preventDefault(),e.returnValue="")}function i(){window.removeEventListener("beforeunload",n)}function r(n){var i,r;if(void 0===n&&(n=!0),i=$$("input[type=file]",e),!0===n&&i.length>0)for(r=0;r0)return!0;return G.serializeForm(e)!==t}window.addEventListener("beforeunload",n),e.addEventListener("submit",i),$$('a[href]:not([href^="#"]):not([target="_blank"]):not([target^="formwork-"])').forEach((function(e){e.addEventListener("click",(function(t){r()&&(t.preventDefault(),fn.show("changesModal",null,(function(t){$("[data-command=continue]",t).setAttribute("data-href",e.href)})))}))})),$$("input[type=file][data-auto-upload]",e).forEach((function(t){t.addEventListener("change",(function(){r(!1)||e.requestSubmit($("[type=submit]",e))}))})),o=document.getElementById("changesModal"),a=document.getElementById("deletePageModal"),l=document.getElementById("deleteUserModal"),o&&$("[data-command=continue]",o).addEventListener("click",(function(){i(),window.location.href=this.getAttribute("data-href")})),a&&$("[data-command=delete]",a).addEventListener("click",i),l&&$("[data-command=delete]",l).addEventListener("click",i);var o,a,l}(e)}))},wn=function(){var e=$("[data-command=expand-all-pages]"),t=$("[data-command=collapse-all-pages]"),n=$("[data-command=reorder-pages]"),i=$("[data-command=change-slug]"),r=$(".page-search"),o=document.getElementById("newPageModal"),a=document.getElementById("slugModal");function l(){var e,t=this.value;0===t.length?($$(".pages-children").forEach((function(e){e.style.display=e.getAttribute("data-display")})),$$(".pages-item, .page-children-toggle").forEach((function(e){e.style.display=""})),$$(".page-details").forEach((function(e){e.style.paddingLeft=""})),$$(".page-title a").forEach((function(e){e.innerHTML=e.textContent}))):(e=new RegExp(G.makeDiacriticsRegExp(G.escapeRegExp(t)),"gi"),$$(".pages-children").forEach((function(e){e.style.display="block"})),$$(".page-children-toggle").forEach((function(e){e.style.display="none"})),$$(".page-details").forEach((function(e){e.style.paddingLeft="0"})),$$(".page-title a").forEach((function(t){var n=t.closest(".pages-item"),i=t.textContent;null!==i.match(e)?(t.innerHTML=i.replace(e,"$&"),n.style.display=""):n.style.display="none"})))}function s(){this.value=G.validateSlug(this.value)}$$(".pages-list").forEach((function(e){"true"===e.getAttribute("data-sortable-children")&&function(e){var t=[],n=Pt.create(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(i){var r;i.item.closest(".pages-list").classList.remove("dragging"),$$(".page-children-toggle").forEach((function(e){e.style.opacity=""})),i.newIndex!==i.oldIndex&&(n.option("disabled",!0),r={"csrf-token":$("meta[name=csrf-token]").getAttribute("content"),parent:e.getAttribute("data-parent"),from:i.oldIndex,to:i.newIndex},Z({method:"POST",url:Formwork.config.baseUri+"pages/reorder/",data:r},(function(e){e.status&&new J(e.message,e.status,{icon:"check-cricle"}).show(),e.status&&"error"!==e.status||n.sort(t),n.option("disabled",!1),t=n.toArray()})))}});t=n.toArray()}(e)})),$$(".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&&G.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){G.toggleElement(e,"inline-block")})),this.blur()})),r&&(r.addEventListener("focus",(function(){$$(".pages-children").forEach((function(e){e.setAttribute("data-display",getComputedStyle(e).display)}))})),r.addEventListener("keyup",G.debounce(l,100)),r.addEventListener("search",l),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=G.slug(this.value)})),$("#page-slug",o).addEventListener("keyup",s),$("#page-slug",o).addEventListener("blur",s),$("#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;i0&&(e=$(".page-slug-change").innerHTML,$$("#page-slug, #slug").forEach((function(e){e.value=t})),$("#page-slug",a).value=t,document.getElementById("slug").value=t,$(".page-slug-change").innerHTML=e.replace(/\/[a-z0-9-]+\/$/,"/"+t+"/")),fn.hide("slugModal")})))},kn=function(){$$("[title]",document.body).forEach((function(e){e.setAttribute("data-tooltip",e.getAttribute("title")),e.removeAttribute("title")})),$$("[data-tooltip]").forEach((function(e){e.addEventListener("mouseover",(function(){new V(this.getAttribute("data-tooltip"),{referenceElement:this,position:"bottom",offset:{x:0,y:4}}).show()})),("button"===e.tagName.toLowerCase()||e.classList.contains("button"))&&e.addEventListener("focus",(function(){new V(this.getAttribute("data-tooltip"),{referenceElement:this,position:"bottom",offset:{x:0,y:4},delay:0}).show()}))})),$$('[data-overflow-tooltip="true"]').forEach((function(e){e.addEventListener("mouseover",(function(){this.offsetWidth":">",'"':""","'":"'"};function n(e,t){return"number"==typeof e?e+t:e}function i(e){if("string"==typeof e){const t=/^(\d+)\s*(.*)$/g.exec(e);return{value:t?+t[1]:0,unit:(null==t?void 0:t[2])||void 0}}return{value:Number(e)}}const r=2221e-19;function o(e){return Math.floor(Math.log(Math.abs(e))/Math.LN10)}function a(e,t,n){return t/n.range*e}function l(e,t){const n=Math.pow(10,t||8);return Math.round(e*n)/n}function s(e){if(1===e)return e;function t(e,n){return e%n==0?n:t(n,e%n)}function n(e){return e*e+1}let i,r=2,o=2;if(e%2==0)return 2;do{r=n(r)%e,o=n(n(o))%e,i=t(Math.abs(r-o),e)}while(1===i);return i}function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;ie;function d(e,t){return Array.from({length:e},t?(e,n)=>t(n):()=>{})}function h(e,t){return null!==e&&"object"==typeof e&&Reflect.has(e,t)}function f(e){return null!==e&&isFinite(e)}function p(e){return f(e)?Number(e):void 0}function m(e){return!!Array.isArray(e)&&e.every(Array.isArray)}function g(e,t){const n=Array.isArray(e)?e[t]:h(e,"data")?e.data[t]:null;return h(n,"meta")?n.meta:void 0}function v(e){return null==e||"number"==typeof e&&isNaN(e)}function y(e){return"object"==typeof e&&null!==e&&(Reflect.has(e,"x")||Reflect.has(e,"y"))}function x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y";return y(e)&&h(e,t)?p(e[t]):p(e)}function b(e){var t;null===(t=e.labels)||void 0===t||t.reverse(),e.series.reverse();for(const t of e.series)h(t,"data")?t.data.reverse():Array.isArray(t)&&t.reverse()}function w(e,t){if(!v(e))return t?function(e,t){let n,i;if("object"!=typeof e){const r=p(e);"x"===t?n=r:i=r}else h(e,"x")&&(n=p(e.x)),h(e,"y")&&(i=p(e.y));if(void 0!==n||void 0!==i)return{x:n,y:i}}(e,t):p(e)}function C(e,t){return Array.isArray(e)?e.map((e=>h(e,"value")?w(e.value,t):w(e,t))):C(e.data,t)}function k(e,t,n){if(i=e,Array.isArray(i)&&i.every((e=>Array.isArray(e)||h(e,"data"))))return e.map((e=>C(e,t)));var i;const r=C(e,t);return n?r.map((e=>[e])):r}function S(e){let n="";return null==e?e:(n="number"==typeof e?""+e:"object"==typeof e?JSON.stringify({data:e}):String(e),Object.keys(t).reduce(((e,n)=>e.replaceAll(n,t[n])),n))}class L{call(e,t){return this.svgElements.forEach((n=>Reflect.apply(n[e],n,t))),this}attr(){for(var e=arguments.length,t=new Array(e),n=0;n3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4?arguments[4]:void 0;const{easing:l,...s}=r,u={};let c,d;l&&(c=Array.isArray(l)?l:E[l]),s.begin=n(s.begin,"ms"),s.dur=n(s.dur,"ms"),c&&(s.calcMode="spline",s.keySplines=c.join(" "),s.keyTimes="0;1"),o&&(s.fill="freeze",u[t]=s.from,e.attr(u),d=i(s.begin||0).value,s.begin="indefinite");const h=e.elem("animate",{attributeName:t,...s});o&&setTimeout((()=>{try{h._node.beginElement()}catch(n){u[t]=s.to,e.attr(u),h.remove()}}),d);const f=h.getNode();a&&f.addEventListener("beginEvent",(()=>a.emit("animationBegin",{element:e,animate:f,params:r}))),f.addEventListener("endEvent",(()=>{a&&a.emit("animationEnd",{element:e,animate:f,params:r}),o&&(u[t]=s.to,e.attr(u),h.remove())}))}class T{attr(t,n){return"string"==typeof t?n?this._node.getAttributeNS(n,t):this._node.getAttribute(t):(Object.keys(t).forEach((n=>{if(void 0!==t[n])if(-1!==n.indexOf(":")){const i=n.split(":");this._node.setAttributeNS(e[i[0]],n,String(t[n]))}else this._node.setAttribute(n,String(t[n]))})),this)}elem(e,t,n){return new T(e,t,n,this,arguments.length>3&&void 0!==arguments[3]&&arguments[3])}parent(){return this._node.parentNode instanceof SVGElement?new T(this._node.parentNode):null}root(){let e=this._node;for(;"svg"!==e.nodeName&&e.parentElement;)e=e.parentElement;return new T(e)}querySelector(e){const t=this._node.querySelector(e);return t?new T(t):null}querySelectorAll(e){const t=this._node.querySelectorAll(e);return new L(t)}getNode(){return this._node}foreignObject(t,n,i){let r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("string"==typeof t){const e=document.createElement("div");e.innerHTML=t,r=e.firstChild}else r=t;r instanceof Element&&r.setAttribute("xmlns",e.xmlns);const a=this.elem("foreignObject",n,i,o);return a._node.appendChild(r),a}text(e){return this._node.appendChild(document.createTextNode(e)),this}empty(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this}remove(){var e;return null===(e=this._node.parentNode)||void 0===e||e.removeChild(this._node),this.parent()}replace(e){var t;return null===(t=this._node.parentNode)||void 0===t||t.replaceChild(e._node,this._node),e}append(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&this._node.firstChild?this._node.insertBefore(e._node,this._node.firstChild):this._node.appendChild(e._node),this}classes(){const e=this._node.getAttribute("class");return e?e.trim().split(/\s+/):[]}addClass(e){return this._node.setAttribute("class",this.classes().concat(e.trim().split(/\s+/)).filter((function(e,t,n){return n.indexOf(e)===t})).join(" ")),this}removeClass(e){const t=e.trim().split(/\s+/);return this._node.setAttribute("class",this.classes().filter((e=>-1===t.indexOf(e))).join(" ")),this}removeAllClasses(){return this._node.setAttribute("class",""),this}height(){return this._node.getBoundingClientRect().height}width(){return this._node.getBoundingClientRect().width}animate(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;return Object.keys(e).forEach((i=>{const r=e[i];Array.isArray(r)?r.forEach((e=>M(this,i,e,!1,n))):M(this,i,r,t,n)})),this}constructor(t,n,i,r,o=!1){t instanceof Element?this._node=t:(this._node=document.createElementNS(e.svg,t),"svg"===t&&this.attr({"xmlns:ct":e.ct})),n&&this.attr(n),i&&this.addClass(i),r&&(o&&r._node.firstChild?r._node.insertBefore(this._node,r._node.firstChild):r._node.appendChild(this._node))}}function D(e,t,n){let i;const r=[];function o(r){const o=i;i=u({},e),t&&t.forEach((e=>{window.matchMedia(e[0]).matches&&(i=u(i,e[1]))})),n&&r&&n.emit("optionsChanged",{previousOptions:o,currentOptions:i})}if(!window.matchMedia)throw new Error("window.matchMedia not found! Make sure you're using a polyfill.");return t&&t.forEach((e=>{const t=window.matchMedia(e[0]);t.addEventListener("change",o),r.push(t)})),o(),{removeMediaQueryListeners:function(){r.forEach((e=>e.removeEventListener("change",o)))},getCurrentOptions:()=>i}}T.Easing=E;const A={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]},N={accuracy:3};function O(e,t,n,i,r,o){const a={command:r?e.toLowerCase():e.toUpperCase(),...t,...o?{data:o}:{}};n.splice(i,0,a)}function F(e,t){e.forEach(((n,i)=>{A[n.command.toLowerCase()].forEach(((r,o)=>{t(n,r,i,o,e)}))}))}class I{static join(e){const t=new I(arguments.length>1&&void 0!==arguments[1]&&arguments[1],arguments.length>2?arguments[2]:void 0);for(let n=0;n2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;return O("M",{x:+e,y:+t},this.pathElements,this.pos++,n,i),this}line(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;return O("L",{x:+e,y:+t},this.pathElements,this.pos++,n,i),this}curve(e,t,n,i,r,o){let a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7?arguments[7]:void 0;return O("C",{x1:+e,y1:+t,x2:+n,y2:+i,x:+r,y:+o},this.pathElements,this.pos++,a,l),this}arc(e,t,n,i,r,o,a){let l=arguments.length>7&&void 0!==arguments[7]&&arguments[7],s=arguments.length>8?arguments[8]:void 0;return O("A",{rx:e,ry:t,xAr:n,lAf:i,sf:r,x:o,y:a},this.pathElements,this.pos++,l,s),this}parse(e){const t=e.replace(/([A-Za-z])(-?[0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[\s,]+/).reduce(((e,t)=>(t.match(/[A-Za-z]/)&&e.push([]),e[e.length-1].push(t),e)),[]);"Z"===t[t.length-1][0].toUpperCase()&&t.pop();const n=t.map((e=>{const t=e.shift(),n=A[t.toLowerCase()];return{command:t,...n.reduce(((t,n,i)=>(t[n]=+e[i],t)),{})}}));return this.pathElements.splice(this.pos,0,...n),this.pos+=n.length,this}stringify(){const e=Math.pow(10,this.options.accuracy);return this.pathElements.reduce(((t,n)=>{const i=A[n.command.toLowerCase()].map((t=>{const i=n[t];return this.options.accuracy?Math.round(i*e)/e:i}));return t+n.command+i.join(",")}),"")+(this.close?"Z":"")}scale(e,t){return F(this.pathElements,((n,i)=>{n[i]*="x"===i[0]?e:t})),this}translate(e,t){return F(this.pathElements,((n,i)=>{n[i]+="x"===i[0]?e:t})),this}transform(e){return F(this.pathElements,((t,n,i,r,o)=>{const a=e(t,n,i,r,o);(a||0===a)&&(t[n]=a)})),this}clone(){const e=new I(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.close);return e.pos=this.pos,e.pathElements=this.pathElements.slice().map((e=>({...e}))),e.options={...this.options},e}splitByCommand(e){const t=[new I];return this.pathElements.forEach((n=>{n.command===e.toUpperCase()&&0!==t[t.length-1].pathElements.length&&t.push(new I),t[t.length-1].pathElements.push(n)})),t}constructor(e=!1,t){this.close=e,this.pathElements=[],this.pos=0,this.options={...N,...t}}}function H(e){const t={fillHoles:!1,...e};return function(e,n){const i=new I;let r=!0;for(let o=0;o=2&&e[n]<=e[n-2]&&(o=!0),o&&(r.push({pathCoordinates:[],valueData:[]}),o=!1),r[r.length-1].pathCoordinates.push(e[n],e[n+1]),r[r.length-1].valueData.push(t[n/2]));return r}(n,i,{fillHoles:t.fillHoles,increasingX:!0});if(r.length){if(r.length>1)return I.join(r.map((t=>e(t.pathCoordinates,t.valueData))));{if(n=r[0].pathCoordinates,i=r[0].valueData,n.length<=4)return H()(n,i);const e=[],t=[],o=n.length/2,a=[],l=[],s=[],u=[];for(let i=0;i0!=l[e]>0?a[e]=0:(a[e]=3*(u[e-1]+u[e])/((2*u[e]+u[e-1])/l[e-1]+(u[e]+2*u[e-1])/l[e]),isFinite(a[e])||(a[e]=0));const c=(new I).move(e[0],t[0],!1,i[0]);for(let n=0;ne(t))),n.forEach((n=>n(e,t)))}constructor(){this.listeners=new Map,this.allListeners=new Set}}const B=new WeakMap;class R{update(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var i;(e&&(this.data=e||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.eventEmitter.emit("data",{type:"update",data:this.data})),t)&&(this.options=u({},n?this.options:this.defaultOptions,t),this.initializeTimeoutId||(null===(i=this.optionsProvider)||void 0===i||i.removeMediaQueryListeners(),this.optionsProvider=D(this.options,this.responsiveOptions,this.eventEmitter)));return!this.initializeTimeoutId&&this.optionsProvider&&this.createChart(this.optionsProvider.getCurrentOptions()),this}detach(){var e;this.initializeTimeoutId?window.clearTimeout(this.initializeTimeoutId):(window.removeEventListener("resize",this.resizeListener),null===(e=this.optionsProvider)||void 0===e||e.removeMediaQueryListeners());return B.delete(this.container),this}on(e,t){return this.eventEmitter.on(e,t),this}off(e,t){return this.eventEmitter.off(e,t),this}initialize(){window.addEventListener("resize",this.resizeListener),this.optionsProvider=D(this.options,this.responsiveOptions,this.eventEmitter),this.eventEmitter.on("optionsChanged",(()=>this.update())),this.options.plugins&&this.options.plugins.forEach((e=>{Array.isArray(e)?e[0](this,e[1]):e(this)})),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions()),this.initializeTimeoutId=null}constructor(e,t,n,i,r){this.data=t,this.defaultOptions=n,this.options=i,this.responsiveOptions=r,this.eventEmitter=new W,this.resizeListener=()=>this.update(),this.initializeTimeoutId=setTimeout((()=>this.initialize()),0);const o="string"==typeof e?document.querySelector(e):e;if(!o)throw new Error("Target element is not found");this.container=o;const a=B.get(o);a&&a.detach(),B.set(o,this)}}const z={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}};class j{createGridAndLabels(e,t,n,i){const r="x"===this.units.pos?n.axisX:n.axisY,o=this.ticks.map(((e,t)=>this.projectValue(e,t))),a=this.ticks.map(r.labelInterpolationFnc);o.forEach(((l,s)=>{const u=a[s],c={x:0,y:0};let d;var h;(d=o[s+1]?o[s+1]-l:Math.max(this.axisLength-l,this.axisLength/this.ticks.length),""===u||((h=u)||0===h))&&("x"===this.units.pos?(l=this.chartRect.x1+l,c.x=n.axisX.labelOffset.x,"start"===n.axisX.position?c.y=this.chartRect.padding.top+n.axisX.labelOffset.y+5:c.y=this.chartRect.y1+n.axisX.labelOffset.y+5):(l=this.chartRect.y1-l,c.y=n.axisY.labelOffset.y-d,"start"===n.axisY.position?c.x=this.chartRect.padding.left+n.axisY.labelOffset.x:c.x=this.chartRect.x2+n.axisY.labelOffset.x+10),r.showGrid&&function(e,t,n,i,r,o,a,l){const s={["".concat(n.units.pos,"1")]:e,["".concat(n.units.pos,"2")]:e,["".concat(n.counterUnits.pos,"1")]:i,["".concat(n.counterUnits.pos,"2")]:i+r},u=o.elem("line",s,a.join(" "));l.emit("draw",{type:"grid",axis:n,index:t,group:o,element:u,...s})}(l,s,this,this.gridOffset,this.chartRect[this.counterUnits.len](),e,[n.classNames.grid,n.classNames[this.units.dir]],i),r.showLabel&&function(e,t,n,i,r,o,a,l,s,u){const c={[r.units.pos]:e+a[r.units.pos],[r.counterUnits.pos]:a[r.counterUnits.pos],[r.units.len]:t,[r.counterUnits.len]:Math.max(0,o-10)},d=Math.round(c[r.units.len]),h=Math.round(c[r.counterUnits.len]),f=document.createElement("span");f.className=s.join(" "),f.style[r.units.len]=d+"px",f.style[r.counterUnits.len]=h+"px",f.textContent=String(i);const p=l.foreignObject(f,{style:"overflow: visible;",...c});u.emit("draw",{type:"label",axis:r,index:n,group:l,element:p,text:i,...c})}(l,d,s,u,this,r.offset,c,t,[n.classNames.label,n.classNames[this.units.dir],"start"===r.position?n.classNames[r.position]:n.classNames.end],i))}))}constructor(e,t,n){this.units=e,this.chartRect=t,this.ticks=n,this.counterUnits=e===z.x?z.y:z.x,this.axisLength=t[this.units.rectEnd]-t[this.units.rectStart],this.gridOffset=t[this.units.rectOffset]}}class _ extends j{projectValue(e){const t=Number(x(e,this.units.pos));return this.axisLength*(t-this.bounds.min)/this.bounds.range}constructor(e,t,n,i){const u=i.highLow||function(e,t,n){const i={high:void 0===(t={...t,...n?"x"===n?t.axisX:t.axisY:{}}).high?-Number.MAX_VALUE:+t.high,low:void 0===t.low?Number.MAX_VALUE:+t.low},r=void 0===t.high,o=void 0===t.low;return(r||o)&&function e(t){if(!v(t))if(Array.isArray(t))for(let n=0;ni.high&&(i.high=e),o&&e0||(i.high=1),i.low=0)),i}(t,i,e.pos),c=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const u={high:t.high,low:t.low,valueRange:0,oom:0,step:0,min:0,max:0,range:0,numberOfSteps:0,values:[]};u.valueRange=u.high-u.low,u.oom=o(u.valueRange),u.step=Math.pow(10,u.oom),u.min=Math.floor(u.low/u.step)*u.step,u.max=Math.ceil(u.high/u.step)*u.step,u.range=u.max-u.min,u.numberOfSteps=Math.round(u.range/u.step);const c=a(e,u.step,u)=n)u.step=1;else if(i&&d=n)u.step=d;else{let t=0;for(;;){if(c&&a(e,u.step,u)<=n)u.step*=2;else{if(c||!(a(e,u.step/2,u)>=n))break;if(u.step/=2,i&&u.step%1!=0){u.step*=2;break}}if(t++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}}function h(e,t){return e===(e+=t)&&(e*=1+(t>0?r:-r)),e}u.step=Math.max(u.step,r);let f=u.min,p=u.max;for(;f+u.step<=u.low;)f=h(f,u.step);for(;p-u.step>=u.high;)p=h(p,-u.step);u.min=f,u.max=p,u.range=u.max-u.min;const m=[];for(let e=u.min;e<=u.max;e=h(e,u.step)){const t=l(e);t!==m[m.length-1]&&m.push(t)}return u.values=m,u}(n[e.rectEnd]-n[e.rectStart],u,i.scaleMinSpace||20,i.onlyInteger),d={min:c.min,max:c.max};super(e,n,c.values),this.bounds=c,this.range=d}}class Y extends j{projectValue(e,t){return this.stepLength*t}constructor(e,t,n,i){const r=i.ticks||[];super(e,n,r);const o=Math.max(1,r.length-(i.stretch?1:0));this.stepLength=this.axisLength/o,this.stretch=Boolean(i.stretch)}}function q(e,t,n){var i;if(h(e,"name")&&e.name&&(null===(i=t.series)||void 0===i?void 0:i[e.name])){const i=(null==t?void 0:t.series[e.name])[n];return void 0===i?t[n]:i}return t[n]}const X={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:c,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:c,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,showGridBackground:!1,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};class U extends R{createChart(t){const{data:n}=this,r=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;const o={labels:(e.labels||[]).slice(),series:k(e.series,i,r)},a=o.labels.length;return m(o.series)?(t=Math.max(a,...o.series.map((e=>e.length))),o.series.forEach((e=>{e.push(...d(Math.max(0,t-e.length)))}))):t=o.series.length,o.labels.push(...d(Math.max(0,t-a),(()=>""))),n&&b(o),o}(n,t.reverseData,!0),o=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"100%",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"100%",r=arguments.length>3?arguments[3]:void 0;Array.from(t.querySelectorAll("svg")).filter((t=>t.getAttributeNS(e.xmlns,"ct"))).forEach((e=>t.removeChild(e)));const o=new T("svg").attr({width:n,height:i}).attr({style:"width: ".concat(n,"; height: ").concat(i,";")});return r&&o.addClass(r),t.appendChild(o.getNode()),o}(this.container,t.width,t.height,t.classNames.chart);this.svg=o;const a=o.elem("g").addClass(t.classNames.gridGroup),l=o.elem("g"),s=o.elem("g").addClass(t.classNames.labelGroup),u=function(e,t){var n,r,o,a;const l=Boolean(t.axisX||t.axisY),s=(null===(n=t.axisY)||void 0===n?void 0:n.offset)||0,u=(null===(r=t.axisX)||void 0===r?void 0:r.offset)||0,c=null===(o=t.axisY)||void 0===o?void 0:o.position,d=null===(a=t.axisX)||void 0===a?void 0:a.position;let h=e.width()||i(t.width).value||0,f=e.height()||i(t.height).value||0;const p="number"==typeof(m=t.chartPadding)?{top:m,right:m,bottom:m,left:m}:void 0===m?{top:0,right:0,bottom:0,left:0}:{top:"number"==typeof m.top?m.top:0,right:"number"==typeof m.right?m.right:0,bottom:"number"==typeof m.bottom?m.bottom:0,left:"number"==typeof m.left?m.left:0};var m;h=Math.max(h,s+p.left+p.right),f=Math.max(f,u+p.top+p.bottom);const g={x1:0,x2:0,y1:0,y2:0,padding:p,width(){return this.x2-this.x1},height(){return this.y1-this.y2}};return l?("start"===d?(g.y2=p.top+u,g.y1=Math.max(f-p.bottom,g.y2+1)):(g.y2=p.top,g.y1=Math.max(f-p.bottom-u,g.y2+1)),"start"===c?(g.x1=p.left+s,g.x2=Math.max(h-p.right,g.x1+1)):(g.x1=p.left,g.x2=Math.max(h-p.right-s,g.x1+1))):(g.x1=p.left,g.x2=Math.max(h-p.right,g.x1+1),g.y2=p.top,g.y1=Math.max(f-p.bottom,g.y2+1)),g}(o,t);let c,p;c=void 0===t.axisX.type?new Y(z.x,r.series,u,{...t.axisX,ticks:r.labels,stretch:t.fullWidth}):new t.axisX.type(z.x,r.series,u,t.axisX),p=void 0===t.axisY.type?new _(z.y,r.series,u,{...t.axisY,high:f(t.high)?t.high:t.axisY.high,low:f(t.low)?t.low:t.axisY.low}):new t.axisY.type(z.y,r.series,u,t.axisY),c.createGridAndLabels(a,s,t,this.eventEmitter),p.createGridAndLabels(a,s,t,this.eventEmitter),t.showGridBackground&&function(e,t,n,i){const r=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:r})}(a,u,t.classNames.gridBackground,this.eventEmitter),function(e,t){let n=0;e[arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"reduceRight":"reduce"](((e,i,r)=>t(i,n++,r)),void 0)}(n.series,((e,n)=>{const i=l.elem("g"),o=h(e,"name")&&e.name,a=h(e,"className")&&e.className,s=h(e,"meta")?e.meta:void 0;var d;o&&i.attr({"ct:series-name":o}),s&&i.attr({"ct:meta":S(s)}),i.addClass([t.classNames.series,a||"".concat(t.classNames.series,"-").concat((d=n,String.fromCharCode(97+d%26)))].join(" "));const m=[],v=[];r.series[n].forEach(((t,i)=>{const o={x:u.x1+c.projectValue(t,i,r.series[n]),y:u.y1-p.projectValue(t,i,r.series[n])};m.push(o.x,o.y),v.push({value:t,valueIndex:i,meta:g(e,i)})}));const y={lineSmooth:q(e,t,"lineSmooth"),showPoint:q(e,t,"showPoint"),showLine:q(e,t,"showLine"),showArea:q(e,t,"showArea"),areaBase:q(e,t,"areaBase")};let x;x="function"==typeof y.lineSmooth?y.lineSmooth:y.lineSmooth?P():H();const b=x(m,v);if(y.showPoint&&b.pathElements.forEach((r=>{const{data:o}=r,a=i.elem("line",{x1:r.x,y1:r.y,x2:r.x+.01,y2:r.y},t.classNames.point);if(o){let e,t;h(o.value,"x")&&(e=o.value.x),h(o.value,"y")&&(t=o.value.y),a.attr({"ct:value":[e,t].filter(f).join(","),"ct:meta":S(o.meta)})}this.eventEmitter.emit("draw",{type:"point",value:null==o?void 0:o.value,index:(null==o?void 0:o.valueIndex)||0,meta:null==o?void 0:o.meta,series:e,seriesIndex:n,axisX:c,axisY:p,group:i,element:a,x:r.x,y:r.y,chartRect:u})})),y.showLine){const o=i.elem("path",{d:b.stringify()},t.classNames.line,!0);this.eventEmitter.emit("draw",{type:"line",values:r.series[n],path:b.clone(),chartRect:u,index:n,series:e,seriesIndex:n,meta:s,axisX:c,axisY:p,group:i,element:o})}if(y.showArea&&p.range){const o=Math.max(Math.min(y.areaBase,p.range.max),p.range.min),a=u.y1-p.projectValue(o);b.splitByCommand("M").filter((e=>e.pathElements.length>1)).map((e=>{const t=e.pathElements[0],n=e.pathElements[e.pathElements.length-1];return e.clone(!0).position(0).remove(1).move(t.x,a).line(t.x,t.y).position(e.pathElements.length+1).line(n.x,a)})).forEach((o=>{const a=i.elem("path",{d:o.stringify()},t.classNames.area,!0);this.eventEmitter.emit("draw",{type:"area",values:r.series[n],path:o.clone(),series:e,seriesIndex:n,axisX:c,axisY:p,chartRect:u,index:n,group:i,element:a,meta:s})}))}}),t.reverseData),this.eventEmitter.emit("created",{chartRect:u,axisX:c,axisY:p,svg:o,options:t})}constructor(e,t,n,i){super(e,t,X,u({},X,n),i),this.data=t}}var G={escapeRegExp:function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")},makeDiacriticsRegExp:function(e){var t,n={a:"[aáàăâǎåäãȧąāảȁạ]",b:"[bḃḅ]",c:"[cćĉčċç]",d:"[dďḋḑḍ]",e:"[eéèĕêěëẽėȩęēẻȅẹ]",g:"[gǵğĝǧġģḡ]",h:"[hĥȟḧḣḩḥ]",i:"[iiíìĭîǐïĩįīỉȉịı]",j:"[jĵǰ]",k:"[kḱǩķḳ]",l:"[lĺľļḷ]",m:"[mḿṁṃ]",n:"[nńǹňñṅņṇ]",o:"[oóòŏôǒöőõȯǿǫōỏȍơọ]",p:"[pṕṗ]",r:"[rŕřṙŗȑṛ]",s:"[sśŝšṡşṣș]",t:"[tťẗṫţṭț]",u:"[uúùŭûǔůüűũųūủȕưụ]",v:"[vṽṿ]",w:"[wẃẁŵẘẅẇẉ]",x:"[xẍẋ]",y:"[yýỳŷẙÿỹẏȳỷỵ]",z:"[zźẑžżẓ]"};for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e=(e=e.split(t).join(n[t])).split(t.toUpperCase()).join(n[t].toUpperCase()));return e},slug:function(e){var t,n={"\t":"","\r":"","!":"",'"':"","#":"",$:"","%":"","'":"-","(":"",")":"","*":"","+":"",",":"",".":"",":":"",";":"","<":"","=":"",">":"","?":"","@":"","[":"","]":"","^":"","`":"","{":"","|":"","}":"","¡":"","£":"","¤":"","¥":"","¦":"","§":"","«":"","°":"","»":"","‘":"","’":"","“":"","”":"","\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(e,t){var n,i,r,o=0,a=null;return function(){var l,s=Date.now();return 0===o&&(o=s),n=this,i=arguments,(l=o+t-s)<=0||l>t?(a&&(clearTimeout(a),a=null),o=s,r=e.apply(n,i)):a||(a=setTimeout((function(){o=Date.now(),r=e.apply(n,i),a=null}),l)),r}},outerWidth:function(e){var t=e.offsetWidth,n=getComputedStyle(e);return t+=parseInt(n.marginLeft)+parseInt(n.marginRight)},outerHeight:function(e){var t=e.offsetHeight,n=getComputedStyle(e);return t+=parseInt(n.marginTop)+parseInt(n.marginBottom)},toggleElement:function(e,t){var n=e.style.display||getComputedStyle(e).display;void 0===t&&(t="block"),e.style.display="none"===n?t:"none"},sameArray:function(e,t){var n;if(e.length!==t.length)return!1;for(n=0;n=0;i--)t.options[i].selected&&r.push(encodeURIComponent(t.name)+"="+encodeURIComponent(t.options[i].value));else("checkbox"!==t.type&&"radio"!==t.type||t.checked)&&r.push(encodeURIComponent(t.name)+"="+encodeURIComponent(t.value));return r.join("&")},triggerEvent:function(e,t){var n;try{n=new Event(t)}catch(e){(n=document.createEvent("HTMLEvents")).initEvent(t,!0,!0)}e.dispatchEvent(n)},triggerDownload:function(e,t){var n=document.createElement("form"),i=document.createElement("input");n.action=e,n.method="post",i.type="hidden",i.name="csrf-token",i.value=t,n.appendChild(i),document.body.appendChild(n),n.submit(),document.body.removeChild(n)},longClick:function(e,t,n,i){var r;function o(){clearTimeout(r)}e.addEventListener("mousedown",(function(e){var a=this;1!==e.which?o():(t.call(a,e),r=setTimeout((function(){r=setInterval(t.bind(a,e),i)}),n))})),e.addEventListener("mouseout",o),window.addEventListener("mouseup",o)},firstFocusableElement:function(e){return void 0===e&&(e=document.body),e.querySelector("button, .button, input:not([type=hidden]), select, textarea")||e},getCookies:function(){var e,t,n=[],i=document.cookie.split(";");for(t=0;tt?t:e0?o.insertBefore(i,o.childNodes[0]):o.appendChild(i),r=setTimeout(l,a),i.addEventListener("click",l),i.addEventListener("mouseenter",(function(){clearTimeout(r)})),i.addEventListener("mouseleave",(function(){r=setTimeout(l,n.mouseleaveDelay)}))}function l(){i.classList.add("fadeout"),setTimeout((function(){i&&i.parentNode&&o.removeChild(i),o&&o.childNodes.length<1&&(o.parentNode&&document.body.removeChild(o),o=null)}),n.fadeOutDelay)}return n=G.extendObject({},{interval:5e3,icon:null,newestOnTop:!0,fadeOutDelay:300,mouseleaveDelay:1e3},n),{show:function(){null!==n.icon?Q.pass(n.icon,(function(r){a(e,t,n.interval),i.insertAdjacentHTML("afterBegin",r)})):a(e,t,n.interval)},remove:l}}function Z(e,t){var n,i,r,o=new XMLHttpRequest;return o.open(e.method,e.url,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.send(G.serializeObject(e.data)),"function"==typeof t&&(n=function(){i=JSON.parse(this.response),r=i.code||this.status,400===parseInt(r)?location.reload():t(i,o)},o.onload=n,o.onerror=n),o}var ee=function(){var e=$("[data-command=clear-cache]"),t=$("[data-command=make-backup]");e&&e.addEventListener("click",(function(){Z({method:"POST",url:Formwork.config.baseUri+"cache/clear/",data:{"csrf-token":$("meta[name=csrf-token]").getAttribute("content")}},(function(e){new J(e.message,e.status,{icon:"check-circle"}).show()}))})),t&&t.addEventListener("click",(function(){var e=this;e.setAttribute("disabled",""),Z({method:"POST",url:Formwork.config.baseUri+"backup/make/",data:{"csrf-token":$("meta[name=csrf-token]").getAttribute("content")}},(function(t){new J(t.message,t.status,{icon:"check-circle"}).show(),setTimeout((function(){"success"===t.status&&G.triggerDownload(t.data.uri,$("meta[name=csrf-token]").getAttribute("content")),e.removeAttribute("disabled")}),1e3)}))}))},te=function(){$(".dropdown")&&document.addEventListener("click",(function(e){var t,n,i=e.target.closest(".dropdown-button");i&&(t=document.getElementById(i.getAttribute("data-dropdown")),n="none"!==getComputedStyle(t).display,e.preventDefault()),$$(".dropdown-menu").forEach((function(e){e.style.display=""})),t&&!n&&(t.style.display="block")}))};function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ie(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function se(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var ue=se(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ce=se(/Edge/i),de=se(/firefox/i),he=se(/safari/i)&&!se(/chrome/i)&&!se(/android/i),fe=se(/iP(ad|od|hone)/i),pe=se(/chrome/i)&&se(/android/i),me={capture:!1,passive:!1};function ge(e,t,n){e.addEventListener(t,n,!ue&&me)}function ve(e,t,n){e.removeEventListener(t,n,!ue&&me)}function ye(e,t){if(t){if(">"===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!1}return!1}}function xe(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function be(e,t,n,i){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&ye(e,t):ye(e,t))||i&&e===n)return e;if(e===n)break}while(e=xe(e))}return null}var we,Ce=/\s+/g;function ke(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(Ce," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(Ce," ")}}function Se(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 Le(e,t){var n="";if("string"==typeof e)n=e;else do{var i=Se(e,"transform");i&&"none"!==i&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function Ee(e,t,n){if(e){var i=e.getElementsByTagName(t),r=0,o=i.length;if(n)for(;r=o:r<=o))return i;if(i===Me())break;i=Ie(i,!1)}return!1}function Ae(e,t,n,i){for(var r=0,o=0,a=e.children;o2&&void 0!==arguments[2]?arguments[2]:{},i=n.evt,r=le(n,Ye);_e.pluginEvent.bind(Pt)(e,t,ie({dragEl:Ue,parentEl:Ge,ghostEl:Ve,rootEl:Ke,nextEl:Qe,lastDownEl:Je,cloneEl:Ze,cloneHidden:et,dragStarted:ft,putSortable:at,activeSortable:Pt.active,originalEvent:i,oldIndex:tt,oldDraggableIndex:it,newIndex:nt,newDraggableIndex:rt,hideGhostForTarget:Ft,unhideGhostForTarget:It,cloneNowHidden:function(){et=!0},cloneNowShown:function(){et=!1},dispatchSortableEvent:function(e){Xe({sortable:t,name:e,originalEvent:i})}},r))};function Xe(e){!function(e){var t=e.sortable,n=e.rootEl,i=e.name,r=e.targetEl,o=e.cloneEl,a=e.toEl,l=e.fromEl,s=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,h=e.originalEvent,f=e.putSortable,p=e.extraEventProperties;if(t=t||n&&n[Be]){var m,g=t.options,v="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||ue||ce?(m=document.createEvent("Event")).initEvent(i,!0,!0):m=new CustomEvent(i,{bubbles:!0,cancelable:!0}),m.to=a||n,m.from=l||n,m.item=r||n,m.clone=o,m.oldIndex=s,m.newIndex=u,m.oldDraggableIndex=c,m.newDraggableIndex=d,m.originalEvent=h,m.pullMode=f?f.lastPutMode:void 0;var y=ie(ie({},p),_e.getEventProperties(i,t));for(var x in y)m[x]=y[x];n&&n.dispatchEvent(m),g[v]&&g[v].call(t,m)}}(ie({putSortable:at,cloneEl:Ze,targetEl:Ue,rootEl:Ke,oldIndex:tt,oldDraggableIndex:it,newIndex:nt,newDraggableIndex:rt},e))}var Ue,Ge,Ve,Ke,Qe,Je,Ze,et,tt,nt,it,rt,ot,at,lt,st,ut,ct,dt,ht,ft,pt,mt,gt,vt,yt=!1,xt=!1,bt=[],wt=!1,Ct=!1,kt=[],St=!1,Lt=[],Et="undefined"!=typeof document,Mt=fe,Tt=ce||ue?"cssFloat":"float",Dt=Et&&!pe&&!fe&&"draggable"in document.createElement("div"),At=function(){if(Et){if(ue)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Nt=function(e,t){var n=Se(e),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=Ae(e,0,t),o=Ae(e,1,t),a=r&&Se(r),l=o&&Se(o),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Te(r).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Te(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&"none"!==a.float){var c="left"===a.float?"left":"right";return!o||"both"!==l.clear&&l.clear!==c?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=i&&"none"===n[Tt]||o&&"none"===n[Tt]&&s+u>i)?"vertical":"horizontal"},Ot=function(e){function t(e,n){return function(i,r,o,a){var l=i.options.group.name&&r.options.group.name&&i.options.group.name===r.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(i,r,o,a),n)(i,r,o,a);var s=(n?i:r).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},i=e.group;i&&"object"==re(i)||(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n},Ft=function(){!At&&Ve&&Se(Ve,"display","none")},It=function(){!At&&Ve&&Se(Ve,"display","")};Et&&!pe&&document.addEventListener("click",(function(e){if(xt)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),xt=!1,!1}),!0);var $t=function(e){if(Ue){e=e.touches?e.touches[0]:e;var t=(r=e.clientX,o=e.clientY,bt.some((function(e){var t=e[Be].options.emptyInsertThreshold;if(t&&!Ne(e)){var n=Te(e),i=r>=n.left-t&&r<=n.right+t,l=o>=n.top-t&&o<=n.bottom+t;return i&&l?a=e:void 0}})),a);if(t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Be]._onDragOver(n)}}var r,o,a},Ht=function(e){Ue&&Ue.parentNode[Be]._isOutsideThisEl(e.target)};function Pt(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=ae({},t),e[Be]=this;var n={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 Nt(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!==Pt.supportPointer&&"PointerEvent"in window&&!he,emptyInsertThreshold:5};for(var i in _e.initializePlugins(this,e,n),n)!(i in t)&&(t[i]=n[i]);for(var r in Ot(t),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&Dt,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?ge(e,"pointerdown",this._onTapStart):(ge(e,"mousedown",this._onTapStart),ge(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(ge(e,"dragover",this),ge(e,"dragenter",this)),bt.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),ae(this,Re())}function Wt(e,t,n,i,r,o,a,l){var s,u,c=e[Be],d=c.options.onMove;return!window.CustomEvent||ue||ce?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=i,s.related=r||t,s.relatedRect=o||Te(t),s.willInsertAfter=l,s.originalEvent=a,e.dispatchEvent(s),d&&(u=d.call(c,s,a)),u}function Bt(e){e.draggable=!1}function Rt(){St=!1}function zt(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;n--;)i+=t.charCodeAt(n);return i.toString(36)}function jt(e){return setTimeout(e,0)}function _t(e){return clearTimeout(e)}Pt.prototype={constructor:Pt,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(pt=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Ue):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,i=this.options,r=i.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(a||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,u=i.filter;if(function(e){Lt.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var i=t[n];i.checked&&Lt.push(i)}}(n),!Ue&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||i.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!he||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=be(l,i.draggable,n,!1))&&l.animated||Je===l)){if(tt=Oe(l),it=Oe(l,i.draggable),"function"==typeof u){if(u.call(this,e,l,this))return Xe({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),qe("filter",t,{evt:e}),void(r&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(i){if(i=be(s,i.trim(),n,!1))return Xe({sortable:t,rootEl:i,name:"filter",targetEl:l,fromEl:n,toEl:n}),qe("filter",t,{evt:e}),!0}))))return void(r&&e.cancelable&&e.preventDefault());i.handle&&!be(s,i.handle,n,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,t,n){var i,r=this,o=r.el,a=r.options,l=o.ownerDocument;if(n&&!Ue&&n.parentNode===o){var s=Te(n);if(Ke=o,Ge=(Ue=n).parentNode,Qe=Ue.nextSibling,Je=n,ot=a.group,Pt.dragged=Ue,lt={target:Ue,clientX:(t||e).clientX,clientY:(t||e).clientY},dt=lt.clientX-s.left,ht=lt.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Ue.style["will-change"]="all",i=function(){qe("delayEnded",r,{evt:e}),Pt.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!de&&r.nativeDraggable&&(Ue.draggable=!0),r._triggerDragStart(e,t),Xe({sortable:r,name:"choose",originalEvent:e}),ke(Ue,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){Ee(Ue,e.trim(),Bt)})),ge(l,"dragover",$t),ge(l,"mousemove",$t),ge(l,"touchmove",$t),ge(l,"mouseup",r._onDrop),ge(l,"touchend",r._onDrop),ge(l,"touchcancel",r._onDrop),de&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ue.draggable=!0),qe("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(ce||ue))i();else{if(Pt.eventCanceled)return void this._onDrop();ge(l,"mouseup",r._disableDelayedDrag),ge(l,"touchend",r._disableDelayedDrag),ge(l,"touchcancel",r._disableDelayedDrag),ge(l,"mousemove",r._delayedDragTouchMoveHandler),ge(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&ge(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(i,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Ue&&Bt(Ue),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;ve(e,"mouseup",this._disableDelayedDrag),ve(e,"touchend",this._disableDelayedDrag),ve(e,"touchcancel",this._disableDelayedDrag),ve(e,"mousemove",this._delayedDragTouchMoveHandler),ve(e,"touchmove",this._delayedDragTouchMoveHandler),ve(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?ge(document,"pointermove",this._onTouchMove):ge(document,t?"touchmove":"mousemove",this._onTouchMove):(ge(Ue,"dragend",this),ge(Ke,"dragstart",this._onDragStart));try{document.selection?jt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(yt=!1,Ke&&Ue){qe("dragStarted",this,{evt:t}),this.nativeDraggable&&ge(document,"dragover",Ht);var n=this.options;!e&&ke(Ue,n.dragClass,!1),ke(Ue,n.ghostClass,!0),Pt.active=this,e&&this._appendGhost(),Xe({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(st){this._lastX=st.clientX,this._lastY=st.clientY,Ft();for(var e=document.elementFromPoint(st.clientX,st.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(st.clientX,st.clientY))!==t;)t=e;if(Ue.parentNode[Be]._isOutsideThisEl(e),t)do{if(t[Be]){if(t[Be]._onDragOver({clientX:st.clientX,clientY:st.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);It()}},_onTouchMove:function(e){if(lt){var t=this.options,n=t.fallbackTolerance,i=t.fallbackOffset,r=e.touches?e.touches[0]:e,o=Ve&&Le(Ve,!0),a=Ve&&o&&o.a,l=Ve&&o&&o.d,s=Mt&&vt&&Fe(vt),u=(r.clientX-lt.clientX+i.x)/(a||1)+(s?s[0]-kt[0]:0)/(a||1),c=(r.clientY-lt.clientY+i.y)/(l||1)+(s?s[1]-kt[1]:0)/(l||1);if(!Pt.active&&!yt){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))i.right+r||e.clientX<=i.right&&e.clientY>i.bottom&&e.clientX>=i.left:e.clientX>i.right&&e.clientY>i.top||e.clientX<=i.right&&e.clientY>i.bottom+r}(e,r,this)&&!m.animated){if(m===Ue)return N(!1);if(m&&o===e.target&&(a=m),a&&(n=Te(a)),!1!==Wt(Ke,o,Ue,t,a,n,e,!!a))return A(),m&&m.nextSibling?o.insertBefore(Ue,m.nextSibling):o.appendChild(Ue),Ge=o,O(),N(!0)}else if(m&&function(e,t,n){var i=Te(Ae(n.el,0,n.options,!0)),r=10;return t?e.clientXc+u*o/2:sd-gt)return-mt}else if(s>c+u*(1-r)/2&&sd-u*o/2))return s>c+u/2?1:-1;return 0}(e,a,n,r,w?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Ct,pt===a),0!==v){var L=Oe(Ue);do{L-=v,x=Ge.children[L]}while(x&&("none"===Se(x,"display")||x===Ve))}if(0===v||x===a)return N(!1);pt=a,mt=v;var E=a.nextElementSibling,M=!1,T=Wt(Ke,o,Ue,t,a,n,e,M=1===v);if(!1!==T)return 1!==T&&-1!==T||(M=1===T),St=!0,setTimeout(Rt,30),A(),M&&!E?o.appendChild(Ue):a.parentNode.insertBefore(Ue,M?E:a),k&&Pe(k,0,S-k.scrollTop),Ge=Ue.parentNode,void 0===y||Ct||(gt=Math.abs(y-Te(a)[C])),O(),N(!0)}if(o.contains(Ue))return N(!1)}return!1}function D(l,s){qe(l,f,ie({evt:e,isOwner:c,axis:r?"vertical":"horizontal",revert:i,dragRect:t,targetRect:n,canSort:d,fromSortable:h,target:a,completed:N,onMove:function(n,i){return Wt(Ke,o,Ue,t,n,Te(n),e,i)},changed:O},s))}function A(){D("dragOverAnimationCapture"),f.captureAnimationState(),f!==h&&h.captureAnimationState()}function N(t){return D("dragOverCompleted",{insertion:t}),t&&(c?u._hideClone():u._showClone(f),f!==h&&(ke(Ue,at?at.options.ghostClass:u.options.ghostClass,!1),ke(Ue,l.ghostClass,!0)),at!==f&&f!==Pt.active?at=f:f===Pt.active&&at&&(at=null),h===f&&(f._ignoreWhileAnimating=a),f.animateAll((function(){D("dragOverAnimationComplete"),f._ignoreWhileAnimating=null})),f!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(a===Ue&&!Ue.animated||a===o&&!a.animated)&&(pt=null),l.dragoverBubble||e.rootEl||a===document||(Ue.parentNode[Be]._isOutsideThisEl(e.target),!t&&$t(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),p=!0}function O(){nt=Oe(Ue),rt=Oe(Ue,l.draggable),Xe({sortable:f,name:"change",toEl:o,newIndex:nt,newDraggableIndex:rt,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){ve(document,"mousemove",this._onTouchMove),ve(document,"touchmove",this._onTouchMove),ve(document,"pointermove",this._onTouchMove),ve(document,"dragover",$t),ve(document,"mousemove",$t),ve(document,"touchmove",$t)},_offUpEvents:function(){var e=this.el.ownerDocument;ve(e,"mouseup",this._onDrop),ve(e,"touchend",this._onDrop),ve(e,"pointerup",this._onDrop),ve(e,"touchcancel",this._onDrop),ve(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;nt=Oe(Ue),rt=Oe(Ue,n.draggable),qe("drop",this,{evt:e}),Ge=Ue&&Ue.parentNode,nt=Oe(Ue),rt=Oe(Ue,n.draggable),Pt.eventCanceled||(yt=!1,Ct=!1,wt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),_t(this.cloneId),_t(this._dragStartId),this.nativeDraggable&&(ve(document,"drop",this),ve(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),he&&Se(document.body,"user-select",""),Se(Ue,"transform",""),e&&(ft&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),Ve&&Ve.parentNode&&Ve.parentNode.removeChild(Ve),(Ke===Ge||at&&"clone"!==at.lastPutMode)&&Ze&&Ze.parentNode&&Ze.parentNode.removeChild(Ze),Ue&&(this.nativeDraggable&&ve(Ue,"dragend",this),Bt(Ue),Ue.style["will-change"]="",ft&&!yt&&ke(Ue,at?at.options.ghostClass:this.options.ghostClass,!1),ke(Ue,this.options.chosenClass,!1),Xe({sortable:this,name:"unchoose",toEl:Ge,newIndex:null,newDraggableIndex:null,originalEvent:e}),Ke!==Ge?(nt>=0&&(Xe({rootEl:Ge,name:"add",toEl:Ge,fromEl:Ke,originalEvent:e}),Xe({sortable:this,name:"remove",toEl:Ge,originalEvent:e}),Xe({rootEl:Ge,name:"sort",toEl:Ge,fromEl:Ke,originalEvent:e}),Xe({sortable:this,name:"sort",toEl:Ge,originalEvent:e})),at&&at.save()):nt!==tt&&nt>=0&&(Xe({sortable:this,name:"update",toEl:Ge,originalEvent:e}),Xe({sortable:this,name:"sort",toEl:Ge,originalEvent:e})),Pt.active&&(null!=nt&&-1!==nt||(nt=tt,rt=it),Xe({sortable:this,name:"end",toEl:Ge,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){qe("nulling",this),Ke=Ue=Ge=Ve=Qe=Ze=Je=et=lt=st=ft=nt=rt=tt=it=pt=mt=at=ot=Pt.dragged=Pt.ghost=Pt.clone=Pt.active=null,Lt.forEach((function(e){e.checked=!0})),Lt.length=ut=ct=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Ue&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,i=0,r=n.length,o=this.options;i1?e.parentNode.removeChild(e):o(e)}function o(e){var i,r;t&&((i=$(".input-array-key",e)).value="",i.removeAttribute("value")),(r=$(".input-array-value",e)).value="",r.removeAttribute("value"),r.name=n+"[]"}function a(e){var t=$(".input-array-key",e);$(".input-array-value",e).name=n+"["+t.value.trim()+"]"}function l(e){var n,o,l=$(".input-array-add",e),s=$(".input-array-remove",e);l.addEventListener("click",i.bind(l,e)),s.addEventListener("click",r.bind(s,e)),t&&(n=$(".input-array-key",e),o=$(".input-array-value",e),n.addEventListener("keyup",a.bind(n,e)),o.addEventListener("keyup",a.bind(o,e)))}$$(".input-array-row",e).forEach((function(e){l(e)})),Pt.create(e,{handle:".sort-handle",forceFallback:!0})}function an(e,t){var n,i,r={years:31536e3,months:2592e3,weeks:604800,days:86400,hours:3600,minutes:60,seconds:1},o={},a={};function l(e,n){var i,o={};for(i in e=G.toSafeInteger(e),void 0===n&&(n=t.intervals),r)Object.prototype.hasOwnProperty.call(r,i)&&-1!==n.indexOf(i)&&(o[i]=Math.floor(e/r[i]),e-=o[i]*r[i]);return o}function s(){var e={},n=0,a=0,l=0;for(l in o)Object.prototype.hasOwnProperty.call(o,l)&&(e[l]=o[l].value);n=function(e){var t,n=0;for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&Object.prototype.hasOwnProperty.call(r,t)&&(n+=e[t]*r[t]);return G.toSafeInteger(n)}(e),i.step&&(a=i.step*r[t.unit],n=Math.floor(n/a)*a),i.min&&(n=Math.max(n,i.min)),i.max&&(n=Math.min(n,i.max)),i.value=Math.round(n/r[t.unit])}function u(){var e,n=l(i.value*r[t.unit]);for(e in o)Object.prototype.hasOwnProperty.call(o,e)&&(o[e].value=n[e])}function c(){var e;for(e in o)Object.prototype.hasOwnProperty.call(o,e)&&(o[e].style.width=Math.max(3,o[e].value.length+2)+"ch")}function d(){var e;for(e in o)Object.prototype.hasOwnProperty.call(o,e)&&(a[e].innerHTML=t.labels[e][1===parseInt(o[e].value)?0:1])}function h(i,r){var l,h,f,p,m;for((n=document.createElement("div")).className="input-duration",m=0;m1&&(f.step=r[h]),e.disabled&&(f.disabled=!0),o[h]=f,f.addEventListener("input",(function(){for(;"0"===this.value.charAt(0)&&this.value.length>1&&!this.value.charAt(1).match(/[.,]/);)this.value=this.value.slice(1);for(;this.value>G.getMaxSafeInteger();)this.value=this.value.slice(0,-1);c(),s(),d()})),f.addEventListener("blur",(function(){s(),u(),c(),d()})),f.addEventListener("focus",(function(){n.classList.add("focused")})),f.addEventListener("blur",(function(){n.classList.remove("focused")})),l.addEventListener("mousedown",(function(e){var t=$("input",this);t&&e.target!==t&&(t.focus(),e.preventDefault())})),(p=document.createElement("label")).innerHTML=t.labels[h][1===parseInt(f.value)?0:1],a[h]=p,l.appendChild(f),l.appendChild(p),n.appendChild(l);return n.addEventListener("mousedown",(function(e){e.target===this&&(f.focus(),e.preventDefault())})),n}t=G.extendObject({},{unit:"seconds",intervals:["years","months","weeks","days","hours","minutes","seconds"],labels:{years:["year","years"],months:["month","months"],weeks:["week","weeks"],days:["day","days"],hours:["hour","hours"],minutes:["minute","minutes"],seconds:["second","seconds"]}},t),function(){var n,o,a;(i=document.createElement("input")).className="input-duration-hidden",i.name=e.name,i.id=e.id,i.type="text",i.value=e.value,i.readOnly=!0,i.hidden=!0,e.min&&(i.min=e.min);e.max&&(i.max=e.max);e.step&&(i.step=e.step);e.required&&(i.required=!0);e.disabled&&(i.disabled=!0);e.hasAttribute("data-intervals")&&(t.intervals=e.getAttribute("data-intervals").split(", "));e.hasAttribute("data-unit")&&(t.unit=e.getAttribute("data-unit"));o=e.value*r[t.unit],a=e.step*r[t.unit],n=h(l(o||0),l(a||1)),e.parentNode.replaceChild(n,e),n.appendChild(i)}()}nn.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var i=Ae(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:tn},ae(nn,{pluginName:"revertOnSpill"}),rn.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:tn},ae(rn,{pluginName:"removeOnSpill"}),Pt.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?ge(document,"dragover",this._handleAutoScroll):this.options.supportPointer?ge(document,"pointermove",this._handleFallbackAutoScroll):t.touches?ge(document,"touchmove",this._handleFallbackAutoScroll):ge(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?ve(document,"dragover",this._handleAutoScroll):(ve(document,"pointermove",this._handleFallbackAutoScroll),ve(document,"touchmove",this._handleFallbackAutoScroll),ve(document,"mousemove",this._handleFallbackAutoScroll)),Zt(),Jt(),clearTimeout(we),we=void 0},nulling:function(){Gt=qt=Yt=Qt=Vt=Xt=Ut=null,Kt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,i=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,o=document.elementFromPoint(i,r);if(Gt=e,t||this.options.forceAutoScrollFallback||ce||ue||he){en(e,this.options,o,t);var a=Ie(o,!0);!Qt||Vt&&i===Xt&&r===Ut||(Vt&&Zt(),Vt=setInterval((function(){var o=Ie(document.elementFromPoint(i,r),!0);o!==a&&(a=o,Jt()),en(e,n.options,o,t)}),10),Xt=i,Ut=r)}else{if(!this.options.bubbleScroll||Ie(o,!0)===Me())return void Jt();en(e,this.options,Ie(o,!1),!1)}}},ae(e,{pluginName:"scroll",initializeByDefault:!0})}),Pt.mount(rn,nn);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var ln,sn={exports:{}};function un(){return ln||(ln=1,sn.exports=function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),i=/MSIE \d/.test(e),r=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=i||r||o,l=a&&(i?document.documentMode||6:+(o||r)[1]),s=!o&&/WebKit\//.test(e),u=s&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\/(\d+)/.exec(e),d=c&&+c[1],h=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),g=f&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),y=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),x=g||/Mac/.test(t),b=/\bCrOS\b/.test(e),w=/win/i.test(t),C=h&&e.match(/Version\/(\d*\.\d*)/);C&&(C=Number(C[1])),C&&C>=15&&(h=!1,s=!0);var k=x&&(u||h&&(null==C||C<12.11)),S=n||a&&l>=9;function L(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var E,M=function(e,t){var n=e.className,i=L(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:"")}};function T(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function D(e,t){return T(e).appendChild(t)}function A(e,t,n,i){var r=document.createElement(e);if(n&&(r.className=n),i&&(r.style.cssText=i),"string"==typeof t)r.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=l-o,a+=n-a%n,o=l+1}}g?H=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(H=function(e){try{e.select()}catch(e){}});var j=function(){this.id=null,this.f=null,this.time=0,this.handler=B(this.onTimeout,this)};function _(e,t){for(var n=0;n=t)return i+Math.min(a,t-r);if(r+=o-i,i=o+1,(r+=n-r%n)>=t)return i}}var K=[""];function Q(e){for(;K.length<=e;)K.push(J(K)+" ");return K[e]}function J(e){return e[e.length-1]}function Z(e,t){for(var n=[],i=0;i""&&(e.toUpperCase()!=e.toLowerCase()||ie.test(e))}function oe(e,t){return t?!!(t.source.indexOf("\\w")>-1&&re(e))||t.test(e):re(e)}function ae(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var le=/[\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 se(e){return e.charCodeAt(0)>=768&&le.test(e)}function ue(e,t,n){for(;(n<0?t>0:tn?-1:1;;){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;e(o)?n=o:t=o+i}}function de(e,t,n,i){if(!e)return i(t,n,"ltr",0);for(var r=!1,o=0;ot||t==n&&a.to==t)&&(i(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),r=!0)}r||i(t,n,"ltr")}var he=null;function fe(e,t,n){var i;he=null;for(var r=0;rt)return r;o.to==t&&(o.from!=o.to&&"before"==n?i=r:he=r),o.from==t&&(o.from!=o.to&&"before"!=n?i=r:he=r)}return null!=i?i:he}var pe=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,l=/[1n]/;function s(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var u="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!i.test(e))return!1;for(var c=e.length,d=[],h=0;h-1&&(i[t]=r.slice(0,o).concat(r.slice(o+1)))}}}function be(e,t){var n=ye(e,t);if(n.length)for(var i=Array.prototype.slice.call(arguments,2),r=0;r0}function Se(e){e.prototype.on=function(e,t){ve(this,e,t)},e.prototype.off=function(e,t){xe(this,e,t)}}function Le(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ee(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Me(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Te(e){Le(e),Ee(e)}function De(e){return e.target||e.srcElement}function Ae(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),x&&e.ctrlKey&&1==t&&(t=3),t}var Ne,Oe,Fe=function(){if(a&&l<9)return!1;var e=A("div");return"draggable"in e||"dragDrop"in e}();function Ie(e){if(null==Ne){var t=A("span","");D(e,A("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ne=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&l<8))}var n=Ne?A("span",""):A("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function $e(e){if(null!=Oe)return Oe;var t=D(e,document.createTextNode("AخA")),n=E(t,0,1).getBoundingClientRect(),i=E(t,1,2).getBoundingClientRect();return T(e),!(!n||n.left==n.right)&&(Oe=i.right-n.right<3)}var He,Pe=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],i=e.length;t<=i;){var r=e.indexOf("\n",t);-1==r&&(r=e.length);var o=e.slice(t,"\r"==e.charAt(r-1)?r-1:r),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=r+1)}return n}:function(e){return e.split(/\r\n?|\n/)},We=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Be="oncopy"in(He=A("div"))||(He.setAttribute("oncopy","return;"),"function"==typeof He.oncopy),Re=null;function ze(e){if(null!=Re)return Re;var t=D(e,A("span","x")),n=t.getBoundingClientRect(),i=E(t,0,1).getBoundingClientRect();return Re=Math.abs(n.left-i.left)>1}var je={},_e={};function Ye(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),je[e]=t}function qe(e,t){_e[e]=t}function Xe(e){if("string"==typeof e&&_e.hasOwnProperty(e))e=_e[e];else if(e&&"string"==typeof e.name&&_e.hasOwnProperty(e.name)){var t=_e[e.name];"string"==typeof t&&(t={name:t}),(e=ne(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Xe("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Xe("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ue(e,t){t=Xe(t);var n=je[t.name];if(!n)return Ue(e,"text/plain");var i=n(e,t);if(Ge.hasOwnProperty(t.name)){var r=Ge[t.name];for(var o in r)r.hasOwnProperty(o)&&(i.hasOwnProperty(o)&&(i["_"+o]=i[o]),i[o]=r[o])}if(i.name=t.name,t.helperType&&(i.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)i[a]=t.modeProps[a];return i}var Ge={};function Ve(e,t){R(t,Ge.hasOwnProperty(e)?Ge[e]:Ge[e]={})}function Ke(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var i in t){var r=t[i];r instanceof Array&&(r=r.concat([])),n[i]=r}return n}function Qe(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Je(e,t,n){return!e.startState||e.startState(t,n)}var Ze=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function et(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var i=0;;++i){var r=n.children[i],o=r.chunkSize();if(t=e.first&&tn?st(n,et(e,n).text.length):gt(t,et(e,t.line).text.length)}function gt(e,t){var n=e.ch;return null==n||n>t?st(e.line,t):n<0?st(e.line,0):e}function vt(e,t){for(var n=[],i=0;i=this.string.length},Ze.prototype.sol=function(){return this.pos==this.lineStart},Ze.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ze.prototype.next=function(){if(this.post},Ze.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ze.prototype.skipToEnd=function(){this.pos=this.string.length},Ze.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ze.prototype.backUp=function(e){this.pos-=e},Ze.prototype.column=function(){return this.lastColumnPos0?null:(i&&!1!==t&&(this.pos+=i[0].length),i)}var r=function(e){return n?e.toLowerCase():e};if(r(this.string.substr(this.pos,e.length))==r(e))return!1!==t&&(this.pos+=e.length),!0},Ze.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ze.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ze.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ze.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var yt=function(e,t){this.state=e,this.lookAhead=t},xt=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 bt(e,t,n,i){var r=[e.state.modeGen],o={};Dt(e,t.text,e.doc.mode,n,(function(e,t){return r.push(e,t)}),o,i);for(var a=n.state,l=function(i){n.baseTokens=r;var l=e.state.overlays[i],s=1,u=0;n.state=!0,Dt(e,t.text,l.mode,n,(function(e,t){for(var n=s;ue&&r.splice(s,1,e,r[s+1],i),s+=2,u=Math.min(e,i)}if(t)if(l.opaque)r.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;ne.options.maxHighlightLength&&Ke(e.doc.mode,i.state),o=bt(e,t,i);r&&(i.state=r),t.stateAfter=i.save(!r),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Ct(e,t,n){var i=e.doc,r=e.display;if(!i.mode.startState)return new xt(i,!0,t);var o=At(e,t,n),a=o>i.first&&et(i,o-1).stateAfter,l=a?xt.fromSaved(i,a,o):new xt(i,Je(i.mode),o);return i.iter(o,t,(function(n){kt(e,n.text,l);var i=l.line;n.stateAfter=i==t-1||i%5==0||i>=r.viewFrom&&it.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}xt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},xt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;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}},xt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},xt.fromSaved=function(e,t,n){return t instanceof yt?new xt(e,Ke(e.mode,t.state),n,t.lookAhead):new xt(e,Ke(e.mode,t),n)},xt.prototype.save=function(e){var t=!1!==e?Ke(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new yt(t,this.maxLookAhead):t};var Et=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Mt(e,t,n,i){var r,o,a=e.doc,l=a.mode,s=et(a,(t=mt(a,t)).line),u=Ct(e,t.line,n),c=new Ze(s.text,e.options.tabSize,u);for(i&&(o=[]);(i||c.pose.options.maxHighlightLength?(l=!1,a&&kt(e,t,i,d.pos),d.pos=t.length,s=null):s=Tt(Lt(n,d,i.state,h),o),h){var f=h[0].name;f&&(s="m-"+(s?f+" "+s:f))}if(!l||c!=s){for(;ua;--l){if(l<=o.first)return o.first;var s=et(o,l-1),u=s.stateAfter;if(u&&(!n||l+(u instanceof yt?u.lookAhead:0)<=o.modeFrontier))return l;var c=z(s.text,null,e.options.tabSize);(null==r||i>c)&&(r=l-1,i=c)}return r}function Nt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;i--){var r=et(e,i).stateAfter;if(r&&(!(r instanceof yt)||i+r.lookAhead=t:o.to>t);(i||(i=[])).push(new Ht(a,o.from,l?null:o.to))}}return i}function zt(e,t,n){var i;if(e)for(var r=0;r=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var l=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&l)for(var x=0;x0)){var c=[s,1],d=ut(u.from,l.from),h=ut(u.to,l.to);(d<0||!a.inclusiveLeft&&!d)&&c.push({from:u.from,to:l.from}),(h>0||!a.inclusiveRight&&!h)&&c.push({from:l.to,to:u.to}),r.splice.apply(r,c),s+=c.length-3}}return r}function qt(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!n||Vt(n,o.marker)<0)&&(n=o.marker)}return n}function en(e,t,n,i,r){var o=et(e,t),a=Ft&&o.markedSpans;if(a)for(var l=0;l=0&&d<=0||c<=0&&d>=0)&&(c<=0&&(s.marker.inclusiveRight&&r.inclusiveLeft?ut(u.to,n)>=0:ut(u.to,n)>0)||c>=0&&(s.marker.inclusiveRight&&r.inclusiveLeft?ut(u.from,i)<=0:ut(u.from,i)<0)))return!0}}}function tn(e){for(var t;t=Qt(e);)e=t.find(-1,!0).line;return e}function nn(e){for(var t;t=Jt(e);)e=t.find(1,!0).line;return e}function rn(e){for(var t,n;t=Jt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function on(e,t){var n=et(e,t),i=tn(n);return n==i?t:rt(i)}function an(e,t){if(t>e.lastLine())return t;var n,i=et(e,t);if(!ln(e,i))return t;for(;n=Jt(i);)i=n.find(1,!0).line;return rt(i)+1}function ln(e,t){var n=Ft&&t.markedSpans;if(n)for(var i=void 0,r=0;rt.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var hn=function(e,t,n){this.text=e,Xt(this,t),this.height=n?n(this):1};function fn(e,t,n,i){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),qt(e),Xt(e,n);var r=i?i(e):1;r!=e.height&&it(e,r)}function pn(e){e.parent=null,qt(e)}hn.prototype.lineNo=function(){return rt(this)},Se(hn);var mn={},gn={};function vn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?gn:mn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function yn(e,t){var n=N("span",null,null,s?"padding-right: .1px":null),i={pre:N("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,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=bn,$e(e.display.measure)&&(a=me(o,e.doc.direction))&&(i.addToken=Cn(i.addToken,a)),i.map=[],Sn(o,i,wt(e,o,t!=e.display.externalMeasured&&rt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(i.bgClass=$(o.styleClasses.bgClass,i.bgClass||"")),o.styleClasses.textClass&&(i.textClass=$(o.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild(Ie(e.display.measure))),0==r?(t.measure.map=i.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(i.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(s){var l=i.content.lastChild;(/\bcm-tab\b/.test(l.className)||l.querySelector&&l.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return be(e,"renderLine",e,t.line,i.pre),i.pre.className&&(i.textClass=$(i.pre.className,i.textClass||"")),i}function xn(e){var t=A("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function bn(e,t,n,i,r,o,s){if(t){var u,c=e.splitSpaces?wn(t,e.trailingSpace):t,d=e.cm.state.specialChars,h=!1;if(d.test(t)){u=document.createDocumentFragment();for(var f=0;;){d.lastIndex=f;var p=d.exec(t),m=p?p.index-f:t.length-f;if(m){var g=document.createTextNode(c.slice(f,f+m));a&&l<9?u.appendChild(A("span",[g])):u.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!p)break;f+=m+1;var v=void 0;if("\t"==p[0]){var y=e.cm.options.tabSize,x=y-e.col%y;(v=u.appendChild(A("span",Q(x),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=x}else"\r"==p[0]||"\n"==p[0]?((v=u.appendChild(A("span","\r"==p[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",p[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(p[0])).setAttribute("cm-text",p[0]),a&&l<9?u.appendChild(A("span",[v])):u.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),a&&l<9&&(h=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||i||r||h||o||s){var b=n||"";i&&(b+=i),r&&(b+=r);var w=A("span",[u],b,o);if(s)for(var C in s)s.hasOwnProperty(C)&&"style"!=C&&"class"!=C&&w.setAttribute(C,s[C]);return e.content.appendChild(w)}e.content.appendChild(u)}}function wn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,i="",r=0;ru&&d.from<=u);h++);if(d.to>=c)return e(n,i,r,o,a,l,s);e(n,i.slice(0,d.to-u),r,o,null,l,s),o=null,i=i.slice(d.to-u),u=d.to}}}function kn(e,t,n,i){var r=!i&&n.widgetNode;r&&e.map.push(e.pos,e.pos+t,r),!i&&e.cm.display.input.needsContentAttribute&&(r||(r=e.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",n.id)),r&&(e.cm.display.input.setUneditable(r),e.content.appendChild(r)),e.pos+=t,e.trailingSpace=!1}function Sn(e,t,n){var i=e.markedSpans,r=e.text,o=0;if(i)for(var a,l,s,u,c,d,h,f=r.length,p=0,m=1,g="",v=0;;){if(v==p){s=u=c=l="",h=null,d=null,v=1/0;for(var y=[],x=void 0,b=0;bp||C.collapsed&&w.to==p&&w.from==p)){if(null!=w.to&&w.to!=p&&v>w.to&&(v=w.to,u=""),C.className&&(s+=" "+C.className),C.css&&(l=(l?l+";":"")+C.css),C.startStyle&&w.from==p&&(c+=" "+C.startStyle),C.endStyle&&w.to==v&&(x||(x=[])).push(C.endStyle,w.to),C.title&&((h||(h={})).title=C.title),C.attributes)for(var k in C.attributes)(h||(h={}))[k]=C.attributes[k];C.collapsed&&(!d||Vt(d.marker,C)<0)&&(d=w)}else w.from>p&&v>w.from&&(v=w.from)}if(x)for(var S=0;S=f)break;for(var E=Math.min(f,v);;){if(g){var M=p+g.length;if(!d){var T=M>E?g.slice(0,E-p):g;t.addToken(t,T,a?a+s:s,c,p+T.length==v?u:"",l,h)}if(M>=E){g=g.slice(E-p),p=E;break}p=M,c=""}g=r.slice(o,o=n[m++]),a=vn(n[m++],t.cm.options)}}else for(var D=1;D2&&o.push((s.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function ti(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var i=0;in)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}}function ni(e,t){var n=rt(t=tn(t)),i=e.display.externalMeasured=new Ln(e.doc,t,n);i.lineN=n;var r=i.built=yn(e,i);return i.text=r.pre,D(e.display.lineMeasure,r.pre),i}function ii(e,t,n,i){return ai(e,oi(e,t),n,i)}function ri(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(r=(o=s-l)-1,t>=s&&(a="right")),null!=r){if(i=e[u+2],l==s&&n==(i.insertLeft?"left":"right")&&(a=n),"left"==n&&0==r)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)i=e[2+(u-=3)],a="left";if("right"==n&&r==s-l)for(;u=0&&(n=e[r]).left==n.right;r--);return n}function di(e,t,n,i){var r,o=ui(t.map,n,i),s=o.node,u=o.start,c=o.end,d=o.collapse;if(3==s.nodeType){for(var h=0;h<4;h++){for(;u&&se(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c0&&(d=i="right"),r=e.options.lineWrapping&&(f=s.getClientRects()).length>1?f["right"==i?f.length-1:0]:s.getBoundingClientRect()}if(a&&l<9&&!u&&(!r||!r.left&&!r.right)){var p=s.parentNode.getClientRects()[0];r=p?{left:p.left,right:p.left+Fi(e.display),top:p.top,bottom:p.bottom}:si}for(var m=r.top-t.rect.top,g=r.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,x=0;x=i.text.length?(s=i.text.length,u="before"):s<=0&&(s=0,u="after"),!l)return a("before"==u?s-1:s,"before"==u);function c(e,t,n){return a(n?e-1:e,1==l[t].level!=n)}var d=fe(l,s,u),h=he,f=c(s,d,"before"==u);return null!=h&&(f.other=c(s,h,"before"!=u)),f}function ki(e,t){var n=0;t=mt(e.doc,t),e.options.lineWrapping||(n=Fi(e.display)*t.ch);var i=et(e.doc,t.line),r=un(i)+Gn(e.display);return{left:n,right:n,top:r,bottom:r+i.height}}function Si(e,t,n,i,r){var o=st(e,t,n);return o.xRel=r,i&&(o.outside=i),o}function Li(e,t,n){var i=e.doc;if((n+=e.display.viewOffset)<0)return Si(i.first,0,null,-1,-1);var r=ot(i,n),o=i.first+i.size-1;if(r>o)return Si(i.first+i.size-1,et(i,o).text.length,null,1,1);t<0&&(t=0);for(var a=et(i,r);;){var l=Di(e,a,r,t,n),s=Zt(a,l.ch+(l.xRel>0||l.outside>0?1:0));if(!s)return l;var u=s.find(1);if(u.line==r)return u;a=et(i,r=u.line)}}function Ei(e,t,n,i){i-=yi(t);var r=t.text.length,o=ce((function(t){return ai(e,n,t-1).bottom<=i}),r,0);return{begin:o,end:r=ce((function(t){return ai(e,n,t).top>i}),o,r)}}function Mi(e,t,n,i){return n||(n=oi(e,t)),Ei(e,t,n,xi(e,t,ai(e,n,i),"line").top)}function Ti(e,t,n,i){return!(e.bottom<=n)&&(e.top>n||(i?e.left:e.right)>t)}function Di(e,t,n,i,r){r-=un(t);var o=oi(e,t),a=yi(t),l=0,s=t.text.length,u=!0,c=me(t,e.doc.direction);if(c){var d=(e.options.lineWrapping?Ni:Ai)(e,t,n,o,c,i,r);l=(u=1!=d.level)?d.from:d.to-1,s=u?d.to:d.from-1}var h,f,p=null,m=null,g=ce((function(t){var n=ai(e,o,t);return n.top+=a,n.bottom+=a,!!Ti(n,i,r,!1)&&(n.top<=r&&n.left<=i&&(p=t,m=n),!0)}),l,s),v=!1;if(m){var y=i-m.left=b.bottom?1:0}return Si(n,g=ue(t.text,g,1),f,v,i-h)}function Ai(e,t,n,i,r,o,a){var l=ce((function(l){var s=r[l],u=1!=s.level;return Ti(Ci(e,st(n,u?s.to:s.from,u?"before":"after"),"line",t,i),o,a,!0)}),0,r.length-1),s=r[l];if(l>0){var u=1!=s.level,c=Ci(e,st(n,u?s.from:s.to,u?"after":"before"),"line",t,i);Ti(c,o,a,!0)&&c.top>a&&(s=r[l-1])}return s}function Ni(e,t,n,i,r,o,a){var l=Ei(e,t,i,a),s=l.begin,u=l.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,d=null,h=0;h=u||f.to<=s)){var p=ai(e,i,1!=f.level?Math.min(u,f.to)-1:Math.max(s,f.from)).right,m=pm)&&(c=f,d=m)}}return c||(c=r[r.length-1]),c.fromu&&(c={from:c.from,to:u,level:c.level}),c}function Oi(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==li){li=A("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)li.appendChild(document.createTextNode("x")),li.appendChild(A("br"));li.appendChild(document.createTextNode("x"))}D(e.measure,li);var n=li.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),T(e.measure),n||1}function Fi(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=A("span","xxxxxxxxxx"),n=A("pre",[t],"CodeMirror-line-like");D(e.measure,n);var i=t.getBoundingClientRect(),r=(i.right-i.left)/10;return r>2&&(e.cachedCharWidth=r),r||10}function Ii(e){for(var t=e.display,n={},i={},r=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var l=e.display.gutterSpecs[a].className;n[l]=o.offsetLeft+o.clientLeft+r,i[l]=o.clientWidth}return{fixedPos:$i(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:i,wrapperWidth:t.wrapper.clientWidth}}function $i(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Hi(e){var t=Oi(e.display),n=e.options.lineWrapping,i=n&&Math.max(5,e.display.scroller.clientWidth/Fi(e.display)-3);return function(r){if(ln(e.doc,r))return 0;var o=0;if(r.widgets)for(var a=0;a0&&(s=et(e.doc,u.line).text).length==u.ch){var c=z(s,s.length,e.options.tabSize)-s.length;u=st(u.line,Math.max(0,Math.round((o-Kn(e.display).left)/Fi(e.display))-c))}return u}function Bi(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,i=0;it)&&(r.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=r.viewTo)Ft&&on(e.doc,t)r.viewFrom?ji(e):(r.viewFrom+=i,r.viewTo+=i);else if(t<=r.viewFrom&&n>=r.viewTo)ji(e);else if(t<=r.viewFrom){var o=_i(e,n,n+i,1);o?(r.view=r.view.slice(o.index),r.viewFrom=o.lineN,r.viewTo+=i):ji(e)}else if(n>=r.viewTo){var a=_i(e,t,t,-1);a?(r.view=r.view.slice(0,a.index),r.viewTo=a.lineN):ji(e)}else{var l=_i(e,t,t,-1),s=_i(e,n,n+i,1);l&&s?(r.view=r.view.slice(0,l.index).concat(En(e,l.lineN,s.lineN)).concat(r.view.slice(s.index)),r.viewTo+=i):ji(e)}var u=r.externalMeasured;u&&(n=r.lineN&&t=i.viewTo)){var o=i.view[Bi(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==_(a,n)&&a.push(n)}}}function ji(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function _i(e,t,n,i){var r,o=Bi(e,t),a=e.display.view;if(!Ft||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var l=e.display.viewFrom,s=0;s0){if(o==a.length-1)return null;r=l+a[o].size-t,o++}else r=l-t;t+=r,n+=r}for(;on(e.doc,n)!=n;){if(o==(i<0?0:a.length-1))return null;n+=i*a[o-(i<0?1:0)].size,o+=i}return{index:o,lineN:n}}function Yi(e,t,n){var i=e.display;0==i.view.length||t>=i.viewTo||n<=i.viewFrom?(i.view=En(e,t,n),i.viewFrom=t):(i.viewFrom>t?i.view=En(e,t,i.viewFrom).concat(i.view):i.viewFromn&&(i.view=i.view.slice(0,Bi(e,n)))),i.viewTo=n}function qi(e){for(var t=e.display.view,n=0,i=0;i=e.display.viewTo||s.to().line0?a:e.defaultCharWidth())+"px"}if(i.other){var l=n.appendChild(A("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));l.style.display="",l.style.left=i.other.left+"px",l.style.top=i.other.top+"px",l.style.height=.85*(i.other.bottom-i.other.top)+"px"}}function Vi(e,t){return e.top-t.top||e.left-t.left}function Ki(e,t,n){var i=e.display,r=e.doc,o=document.createDocumentFragment(),a=Kn(e.display),l=a.left,s=Math.max(i.sizerWidth,Jn(e)-i.sizer.offsetLeft)-a.right,u="ltr"==r.direction;function c(e,t,n,i){t<0&&(t=0),t=Math.round(t),i=Math.round(i),o.appendChild(A("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?s-e:n)+"px;\n height: "+(i-t)+"px"))}function d(t,n,i){var o,a,d=et(r,t),h=d.text.length;function f(n,i){return wi(e,st(t,n),"div",d,i)}function p(t,n,i){var r=Mi(e,d,null,t),o="ltr"==n==("after"==i)?"left":"right";return f("after"==i?r.begin:r.end-(/\s/.test(d.text.charAt(r.end-1))?2:1),o)[o]}var m=me(d,r.direction);return de(m,n||0,null==i?h:i,(function(e,t,r,d){var g="ltr"==r,v=f(e,g?"left":"right"),y=f(t-1,g?"right":"left"),x=null==n&&0==e,b=null==i&&t==h,w=0==d,C=!m||d==m.length-1;if(y.top-v.top<=3){var k=(u?b:x)&&C,S=(u?x:b)&&w?l:(g?v:y).left,L=k?s:(g?y:v).right;c(S,v.top,L-S,v.bottom)}else{var E,M,T,D;g?(E=u&&x&&w?l:v.left,M=u?s:p(e,r,"before"),T=u?l:p(t,r,"after"),D=u&&b&&C?s:y.right):(E=u?p(e,r,"before"):l,M=!u&&x&&w?s:v.right,T=!u&&b&&C?l:y.left,D=u?p(t,r,"after"):s),c(E,v.top,M-E,v.bottom),v.bottom0?t.blinker=setInterval((function(){e.hasFocus()||tr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Ji(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||er(e))}function Zi(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&tr(e))}),100)}function er(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(be(e,"focus",e,t),e.state.focused=!0,I(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),s&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Qi(e))}function tr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(be(e,"blur",e,t),e.state.focused=!1,M(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function nr(e){for(var t=e.display,n=t.lineDiv.offsetTop,i=Math.max(0,t.scroller.getBoundingClientRect().top),r=t.lineDiv.getBoundingClientRect().top,o=0,s=0;s.005||m<-.005)&&(re.display.sizerWidth){var v=Math.ceil(h/Fi(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function ir(e){if(e.widgets)for(var t=0;t=a&&(o=ot(t,un(et(t,s))-e.wrapper.clientHeight),a=s)}return{from:o,to:Math.max(a,o+1)}}function or(e,t){if(!we(e,"scrollCursorIntoView")){var n=e.display,i=n.sizer.getBoundingClientRect(),r=null,o=n.wrapper.ownerDocument;if(t.top+i.top<0?r=!0:t.bottom+i.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(r=!1),null!=r&&!m){var a=A("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Gn(e.display))+"px;\n height: "+(t.bottom-t.top+Qn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(r),e.display.lineSpace.removeChild(a)}}}function ar(e,t,n,i){var r;null==i&&(i=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?st(t.line,t.ch+1,"before"):t,t=t.ch?st(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,l=Ci(e,t),s=n&&n!=t?Ci(e,n):l,u=sr(e,r={left:Math.min(l.left,s.left),top:Math.min(l.top,s.top)-i,right:Math.max(l.left,s.left),bottom:Math.max(l.bottom,s.bottom)+i}),c=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=u.scrollTop&&(mr(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(vr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return r}function lr(e,t){var n=sr(e,t);null!=n.scrollTop&&mr(e,n.scrollTop),null!=n.scrollLeft&&vr(e,n.scrollLeft)}function sr(e,t){var n=e.display,i=Oi(e.display);t.top<0&&(t.top=0);var r=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Zn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var l=e.doc.height+Vn(n),s=t.topl-i;if(t.topr+o){var c=Math.min(t.top,(u?l:t.bottom)-o);c!=r&&(a.scrollTop=c)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,h=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,f=Jn(e)-n.gutters.offsetWidth,p=t.right-t.left>f;return p&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.leftf+h-3&&(a.scrollLeft=t.right+(p?0:10)-f),a}function ur(e,t){null!=t&&(fr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function cr(e){fr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function dr(e,t,n){null==t&&null==n||fr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function hr(e,t){fr(e),e.curOp.scrollToPos=t}function fr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,pr(e,ki(e,t.from),ki(e,t.to),t.margin))}function pr(e,t,n,i){var r=sr(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});dr(e,r.scrollLeft,r.scrollTop)}function mr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Xr(e,{top:t}),gr(e,t,!0),n&&Xr(e),Wr(e,100))}function gr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function vr(e,t,n,i){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!i||(e.doc.scrollLeft=t,Kr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function yr(e){var t=e.display,n=t.gutters.offsetWidth,i=Math.round(e.doc.height+Vn(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+Qn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var xr=function(e,t,n){this.cm=n;var i=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=r.tabIndex=-1,e(i),e(r),ve(i,"scroll",(function(){i.clientHeight&&t(i.scrollTop,"vertical")})),ve(r,"scroll",(function(){r.clientWidth&&t(r.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&l<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};xr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,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.scrollTop=0,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";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?i:0,bottom:t?i:0}},xr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},xr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},xr.prototype.zeroWidthHack=function(){var e=x&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new j,this.disableVert=new j},xr.prototype.enableZeroWidthBar=function(e,t,n){function i(){var r=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,i)}e.style.visibility="",t.set(1e3,i)},xr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var br=function(){};function wr(e,t){t||(t=yr(e));var n=e.display.barWidth,i=e.display.barHeight;Cr(e,t);for(var r=0;r<4&&n!=e.display.barWidth||i!=e.display.barHeight;r++)n!=e.display.barWidth&&e.options.lineWrapping&&nr(e),Cr(e,yr(e)),n=e.display.barWidth,i=e.display.barHeight}function Cr(e,t){var n=e.display,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",i.right&&i.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=i.bottom+"px",n.scrollbarFiller.style.width=i.right+"px"):n.scrollbarFiller.style.display="",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"):n.gutterFiller.style.display=""}br.prototype.update=function(){return{bottom:0,right:0}},br.prototype.setScrollLeft=function(){},br.prototype.setScrollTop=function(){},br.prototype.clear=function(){};var kr={native:xr,null:br};function Sr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&M(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new kr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ve(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?vr(e,t):mr(e,t)}),e),e.display.scrollbars.addClass&&I(e.display.wrapper,e.display.scrollbars.addClass)}var Lr=0;function Er(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Lr,markArrays:null},Tn(e.curOp)}function Mr(e){var t=e.curOp;t&&An(t,(function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Rr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ar(e){e.updatedDisplay=e.mustUpdate&&Yr(e.cm,e.update)}function Nr(e){var t=e.cm,n=t.display;e.updatedDisplay&&nr(t),e.barMeasure=yr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ii(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+Qn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Jn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Or(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,i=Ct(e,t.highlightFrontier),r=[];t.iter(i.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(i.line>=e.display.viewFrom){var a=o.styles,l=o.text.length>e.options.maxHighlightLength?Ke(t.mode,i.state):null,s=bt(e,o,i,!0);l&&(i.state=l),o.styles=s.styles;var u=o.styleClasses,c=s.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),h=0;!d&&hn)return Wr(e,e.options.workDelay),!0})),t.highlightFrontier=i.line,t.modeFrontier=Math.max(t.modeFrontier,i.line),r.length&&Ir(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==qi(e))return!1;Qr(e)&&(ji(e),t.dims=Ii(e));var r=i.first+i.size,o=Math.max(t.visible.from-e.options.viewportMargin,i.first),a=Math.min(r,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(r,n.viewTo)),Ft&&(o=on(e.doc,o),a=an(e.doc,a));var l=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Yi(e,o,a),n.viewOffset=un(et(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=qi(e);if(!l&&0==s&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=jr(e);return s>4&&(n.lineDiv.style.display="none"),Ur(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,_r(u),T(n.cursorDiv),T(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,l&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Wr(e,400)),n.updateLineNumbers=null,!0}function qr(e,t){for(var n=t.viewport,i=!0;;i=!1){if(i&&e.options.lineWrapping&&t.oldDisplayWidth!=Jn(e))i&&(t.visible=rr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Vn(e.display)-Zn(e),n.top)}),t.visible=rr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Yr(e,t))break;nr(e);var r=yr(e);Xi(e),wr(e,r),Vr(e,r),t.force=!1}t.signal(e,"update",e),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 Xr(e,t){var n=new Rr(e,t);if(Yr(e,n)){nr(e),qr(e,n);var i=yr(e);Xi(e),wr(e,i),Vr(e,i),n.finish()}}function Ur(e,t,n){var i=e.display,r=e.options.lineNumbers,o=i.lineDiv,a=o.firstChild;function l(t){var n=t.nextSibling;return s&&x&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=i.view,c=i.viewFrom,d=0;d-1&&(f=!1),In(e,h,c,n)),f&&(T(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(lt(e.options,c)))),a=h.node.nextSibling}else{var p=jn(e,h,c,n);o.insertBefore(p,a)}c+=h.size}for(;a;)a=l(a)}function Gr(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",On(e,"gutterChanged",e)}function Vr(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+Qn(e)+"px"}function Kr(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var i=$i(t)-t.scroller.scrollLeft+e.doc.scrollLeft,r=t.gutters.offsetWidth,o=i+"px",a=0;a=105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),a&&l<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),s||n&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=Jr(r.gutters,r.lineNumbers),Zr(o),i.init(o)}Rr.prototype.signal=function(e,t){ke(e,t)&&this.events.push(arguments)},Rr.prototype.finish=function(){for(var e=0;eu.clientWidth,p=u.scrollHeight>u.clientHeight;if(r&&f||o&&p){if(o&&x&&s)e:for(var m=t.target,g=l.view;m!=u;m=m.parentNode)for(var v=0;v=0&&ut(e,i.to())<=0)return n}return-1};var so=function(e,t){this.anchor=e,this.head=t};function uo(e,t,n){var i=e&&e.options.selectionsMayTouch,r=t[n];t.sort((function(e,t){return ut(e.from(),t.from())})),n=_(t,r);for(var o=1;o0:s>=0){var u=ft(l.from(),a.from()),c=ht(l.to(),a.to()),d=l.empty()?a.from()==a.head:l.from()==l.head;o<=n&&--n,t.splice(--o,2,new so(d?c:u,d?u:c))}}return new lo(t,n)}function co(e,t){return new lo([new so(e,t||e)],0)}function ho(e){return e.text?st(e.from.line+e.text.length-1,J(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function fo(e,t){if(ut(e,t.from)<0)return e;if(ut(e,t.to)<=0)return ho(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,i=e.ch;return e.line==t.to.line&&(i+=ho(t).ch-t.to.ch),st(n,i)}function po(e,t){for(var n=[],i=0;i1&&e.remove(l.line+1,p-1),e.insert(l.line+1,v)}On(e,"change",e,t)}function wo(e,t,n){function i(e,r,o){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),J(e.done)):void 0}function Do(e,t,n,i){var r=e.history;r.undone.length=0;var o,a,l=+new Date;if((r.lastOp==i||r.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&r.lastModTime>l-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=To(r,r.lastOp==i)))a=J(o.changes),0==ut(t.from,t.to)&&0==ut(t.from,a.to)?a.to=ho(t):o.changes.push(Eo(e,t));else{var s=J(r.done);for(s&&s.ranges||Oo(e.sel,r.done),o={changes:[Eo(e,t)],generation:r.generation},r.done.push(o);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(n),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=l,r.lastOp=r.lastSelOp=i,r.lastOrigin=r.lastSelOrigin=t.origin,a||be(e,"historyAdded")}function Ao(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 No(e,t,n,i){var r=e.history,o=i&&i.origin;n==r.lastSelOp||o&&r.lastSelOrigin==o&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==o||Ao(e,o,J(r.done),t))?r.done[r.done.length-1]=t:Oo(t,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=o,r.lastSelOp=n,i&&!1!==i.clearRedo&&Mo(r.undone)}function Oo(e,t){var n=J(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Fo(e,t,n,i){var r=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,i),(function(n){n.markedSpans&&((r||(r=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Io(e){if(!e)return null;for(var t,n=0;n-1&&(J(l)[d]=u[d],delete u[d])}}}return i}function Wo(e,t,n,i){if(i){var r=e.anchor;if(n){var o=ut(t,r)<0;o!=ut(n,r)<0?(r=t,t=n):o!=ut(t,n)<0&&(t=n)}return new so(r,t)}return new so(n||t,t)}function Bo(e,t,n,i,r){null==r&&(r=e.cm&&(e.cm.display.shift||e.extend)),qo(e,new lo([Wo(e.sel.primary(),t,n,r)],0),i)}function Ro(e,t,n){for(var i=[],r=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:l.to>t.ch))){if(r&&(be(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!s.atomic)continue;if(n){var d=s.find(i<0?1:-1),h=void 0;if((i<0?c:u)&&(d=Jo(e,d,-i,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(h=ut(d,n))&&(i<0?h<0:h>0))return Ko(e,d,t,i,r)}var f=s.find(i<0?-1:1);return(i<0?u:c)&&(f=Jo(e,f,i,f.line==t.line?o:null)),f?Ko(e,f,t,i,r):null}}return t}function Qo(e,t,n,i,r){var o=i||1,a=Ko(e,t,n,o,r)||!r&&Ko(e,t,n,o,!0)||Ko(e,t,n,-o,r)||!r&&Ko(e,t,n,-o,!0);return a||(e.cantEdit=!0,st(e.first,0))}function Jo(e,t,n,i){return n<0&&0==t.ch?t.line>e.first?mt(e,st(t.line-1)):null:n>0&&t.ch==(i||et(e,t.line)).text.length?t.line=0;--r)na(e,{from:i[r].from,to:i[r].to,text:r?[""]:t.text,origin:t.origin});else na(e,t)}}function na(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ut(t.from,t.to)){var n=po(e,t);Do(e,t,n,e.cm?e.cm.curOp.id:NaN),oa(e,t,n,jt(e,t));var i=[];wo(e,(function(e,n){n||-1!=_(i,e.history)||(ca(e.history,t),i.push(e.history)),oa(e,t,null,jt(e,t))}))}}function ia(e,t,n){var i=e.cm&&e.cm.state.suppressEdits;if(!i||n){for(var r,o=e.history,a=e.sel,l="undo"==t?o.done:o.undone,s="undo"==t?o.undone:o.done,u=0;u=0;--f){var p=h(f);if(p)return p.v}}}}function ra(e,t){if(0!=t&&(e.first+=t,e.sel=new lo(Z(e.sel.ranges,(function(e){return new so(st(e.anchor.line+t,e.anchor.ch),st(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Ri(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,i=n.viewFrom;ie.lastLine())){if(t.from.lineo&&(t={from:t.from,to:st(o,et(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=tt(e,t.from,t.to),n||(n=po(e,t)),e.cm?aa(e.cm,t,i):bo(e,t,i),Xo(e,n,X),e.cantEdit&&Qo(e,st(e.firstLine(),0))&&(e.cantEdit=!1)}}function aa(e,t,n){var i=e.doc,r=e.display,o=t.from,a=t.to,l=!1,s=o.line;e.options.lineWrapping||(s=rt(tn(et(i,o.line))),i.iter(s,a.line+1,(function(e){if(e==r.maxLine)return l=!0,!0}))),i.sel.contains(t.from,t.to)>-1&&Ce(e),bo(i,t,n,Hi(e)),e.options.lineWrapping||(i.iter(s,o.line+t.text.length,(function(e){var t=cn(e);t>r.maxLineLength&&(r.maxLine=e,r.maxLineLength=t,r.maxLineChanged=!0,l=!1)})),l&&(e.curOp.updateMaxLine=!0)),Nt(i,o.line),Wr(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?Ri(e):o.line!=a.line||1!=t.text.length||xo(e.doc,t)?Ri(e,o.line,a.line+1,u):zi(e,o.line,"text");var c=ke(e,"changes"),d=ke(e,"change");if(d||c){var h={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&On(e,"change",e,h),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}function la(e,t,n,i,r){var o;i||(i=n),ut(i,n)<0&&(n=(o=[i,n])[0],i=o[1]),"string"==typeof t&&(t=e.splitLines(t)),ta(e,{from:n,to:i,text:t,origin:r})}function sa(e,t,n,i){n1||!(this.children[0]instanceof ha))){var l=[];this.collapse(l),this.children=[new ha(l)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=r.lines.length%25+25,l=a;l10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var i=0;i0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=N("span",[o.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(en(e,t.line,t,n,o)||t.line!=n.line&&en(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");$t()}o.addToHistory&&Do(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var l,s=t.line,u=e.cm;if(e.iter(s,n.line+1,(function(i){u&&o.collapsed&&!u.options.lineWrapping&&tn(i)==u.display.maxLine&&(l=!0),o.collapsed&&s!=t.line&&it(i,0),Bt(i,new Ht(o,s==t.line?t.ch:null,s==n.line?n.ch:null),e.cm&&e.cm.curOp),++s})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){ln(e,t)&&it(t,0)})),o.clearOnEnter&&ve(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(It(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++va,o.atomic=!0),u){if(l&&(u.curOp.updateMaxLine=!0),o.collapsed)Ri(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)zi(u,c,"text");o.atomic&&Go(u.doc),On(u,"markerAdded",u,o)}return o}ya.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Er(e),ke(this,"clear")){var n=this.find();n&&On(this,"clear",n.from,n.to)}for(var i=null,r=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=i&&e&&this.collapsed&&Ri(e,i,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Go(e.doc)),e&&On(e,"markerCleared",e,this,i,r),t&&Mr(e),this.parent&&this.parent.clear()}},ya.prototype.find=function(e,t){var n,i;null==e&&"bookmark"==this.type&&(e=1);for(var r=0;r=0;s--)ta(this,i[s]);l?Yo(this,l):this.cm&&cr(this.cm)})),undo:Pr((function(){ia(this,"undo")})),redo:Pr((function(){ia(this,"redo")})),undoSelection:Pr((function(){ia(this,"undo",!0)})),redoSelection:Pr((function(){ia(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,i=0;i=e.ch)&&t.push(r.marker.parent||r.marker)}return t},findMarks:function(e,t,n){e=mt(this,e),t=mt(this,t);var i=[],r=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var l=0;l=s.to||null==s.from&&r!=e.line||null!=s.from&&r==t.line&&s.from>=t.ch||n&&!n(s.marker)||i.push(s.marker.parent||s.marker)}++r})),i},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var i=0;ie)return t=e,!0;e-=o,++n})),mt(this,st(n,t))},indexFromPos:function(e){var t=(e=mt(this,e)).ch;if(e.line