diff --git a/themes/intotheeast/css-compiled/post-form.css b/themes/intotheeast/css-compiled/post-form.css index 1e1a606..f62fb2b 100644 --- a/themes/intotheeast/css-compiled/post-form.css +++ b/themes/intotheeast/css-compiled/post-form.css @@ -1,4 +1,4 @@ -.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:0 0}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:0 0}.cm-fat-cursor{caret-color:transparent}@-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;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.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:#ff96004d}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:0;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none;outline:0}.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:0 0!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:0 0;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;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-code{outline:0}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-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,.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:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:0 0}.EasyMDEContainer{display:block}.CodeMirror-rtl pre{direction:rtl}.EasyMDEContainer.sided--no-fullscreen{display:flex;flex-direction:row;flex-wrap:wrap}.EasyMDEContainer .CodeMirror{box-sizing:border-box;height:auto;border:1px solid #ced4da;border-bottom-left-radius:4px;border-bottom-right-radius:4px;padding:10px;font:inherit;z-index:0;word-wrap:break-word}.EasyMDEContainer .CodeMirror-scroll{cursor:text}.EasyMDEContainer .CodeMirror-fullscreen{background:#fff;position:fixed!important;inset:50px 0 0;height:auto;z-index:8;border-right:none!important;border-bottom-right-radius:0!important}.EasyMDEContainer .CodeMirror-sided{width:50%!important}.EasyMDEContainer.sided--no-fullscreen .CodeMirror-sided{border-right:none!important;border-bottom-right-radius:0;position:relative;flex:1 1 auto}.EasyMDEContainer .CodeMirror-placeholder{opacity:.5}.EasyMDEContainer .CodeMirror-focused .CodeMirror-selected{background:#d9d9d9}.editor-toolbar{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;padding:9px 10px;border-top:1px solid #ced4da;border-left:1px solid #ced4da;border-right:1px solid #ced4da;border-top-left-radius:4px;border-top-right-radius:4px}.editor-toolbar.fullscreen{width:100%;height:50px;padding-top:10px;padding-bottom:10px;box-sizing:border-box;background:#fff;border:0;position:fixed;top:0;left:0;opacity:1;z-index:9}.editor-toolbar.fullscreen:before{width:20px;height:50px;background:-moz-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:-webkit-gradient(linear,left top,right top,color-stop(0,#fff),color-stop(100%,rgba(255,255,255,0)));background:-webkit-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:-o-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:-ms-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:linear-gradient(to right,#fff 0,#fff0);position:fixed;top:0;left:0;margin:0;padding:0}.editor-toolbar.fullscreen:after{width:20px;height:50px;background:-moz-linear-gradient(left,rgba(255,255,255,0) 0,#fff 100%);background:-webkit-gradient(linear,left top,right top,color-stop(0,rgba(255,255,255,0)),color-stop(100%,#fff));background:-webkit-linear-gradient(left,rgba(255,255,255,0) 0,#fff 100%);background:-o-linear-gradient(left,rgba(255,255,255,0) 0,#fff 100%);background:-ms-linear-gradient(left,rgba(255,255,255,0) 0,#fff 100%);background:linear-gradient(to right,#fff0 0,#fff);position:fixed;top:0;right:0;margin:0;padding:0}.EasyMDEContainer.sided--no-fullscreen .editor-toolbar{width:100%}.editor-toolbar .easymde-dropdown,.editor-toolbar button{background:0 0;display:inline-block;text-align:center;text-decoration:none!important;height:30px;margin:0;padding:0;border:1px solid transparent;border-radius:3px;cursor:pointer}.editor-toolbar button{font-weight:700;min-width:30px;padding:0 6px;white-space:nowrap}.editor-toolbar button.active,.editor-toolbar button:hover{background:#fcfcfc;border-color:#95a5a6}.editor-toolbar i.separator{display:inline-block;width:0;border-left:1px solid #d9d9d9;border-right:1px solid #fff;color:transparent;text-indent:-10px;margin:0 6px}.editor-toolbar button:after{font-family:Arial,Helvetica Neue,Helvetica,sans-serif;font-size:65%;vertical-align:text-bottom;position:relative;top:2px}.editor-toolbar button.heading-1:after{content:"1"}.editor-toolbar button.heading-2:after{content:"2"}.editor-toolbar button.heading-3:after{content:"3"}.editor-toolbar button.heading-bigger:after{content:"\25b2"}.editor-toolbar button.heading-smaller:after{content:"\25bc"}.editor-toolbar.disabled-for-preview button:not(.no-disable){opacity:.6;pointer-events:none}@media only screen and (max-width:700px){.editor-toolbar i.no-mobile{display:none}}.editor-statusbar{padding:8px 10px;font-size:12px;color:#959694;text-align:right}.EasyMDEContainer.sided--no-fullscreen .editor-statusbar{width:100%}.editor-statusbar span{display:inline-block;min-width:4em;margin-left:1em}.editor-statusbar .lines:before{content:"lines: "}.editor-statusbar .words:before{content:"words: "}.editor-statusbar .characters:before{content:"characters: "}.editor-preview-full{position:absolute;width:100%;height:100%;top:0;left:0;z-index:7;overflow:auto;display:none;box-sizing:border-box}.editor-preview-side{position:fixed;bottom:0;width:50%;top:50px;right:0;z-index:9;overflow:auto;display:none;box-sizing:border-box;border:1px solid #ddd;word-wrap:break-word}.editor-preview-active-side{display:block}.EasyMDEContainer.sided--no-fullscreen .editor-preview-active-side{flex:1 1 auto;height:auto;position:static}.editor-preview-active{display:block}.editor-preview{padding:10px;background:#fafafa}.editor-preview>p{margin-top:0}.editor-preview pre{background:#eee;margin-bottom:10px}.editor-preview table td,.editor-preview table th{border:1px solid #ddd;padding:5px}.cm-s-easymde .cm-tag{color:#63a35c}.cm-s-easymde .cm-attribute{color:#795da3}.cm-s-easymde .cm-string{color:#183691}.cm-s-easymde .cm-header-1{font-size:calc(1.375rem + 1.5vw)}.cm-s-easymde .cm-header-2{font-size:calc(1.325rem + .9vw)}.cm-s-easymde .cm-header-3{font-size:calc(1.3rem + .6vw)}.cm-s-easymde .cm-header-4{font-size:calc(1.275rem + .3vw)}.cm-s-easymde .cm-header-5{font-size:1.25rem}.cm-s-easymde .cm-header-6{font-size:1rem}.cm-s-easymde .cm-header-1,.cm-s-easymde .cm-header-2,.cm-s-easymde .cm-header-3,.cm-s-easymde .cm-header-4,.cm-s-easymde .cm-header-5,.cm-s-easymde .cm-header-6{margin-bottom:.5rem;line-height:1.2}.cm-s-easymde .cm-comment{background:#0000000d;border-radius:2px}.cm-s-easymde .cm-link{color:#7f8c8d}.cm-s-easymde .cm-url{color:#aab2b3}.cm-s-easymde .cm-quote{color:#7f8c8d;font-style:italic}.editor-toolbar .easymde-dropdown{position:relative;background:linear-gradient(to bottom right,#fff 0 84%,#333 50% 100%);border-radius:0;border:1px solid #fff}.editor-toolbar .easymde-dropdown:hover{background:linear-gradient(to bottom right,#fff 0 84%,#333 50% 100%)}.easymde-dropdown-content{display:block;visibility:hidden;position:absolute;background-color:#f9f9f9;box-shadow:0 8px 16px #0003;padding:8px;z-index:2;top:30px}.easymde-dropdown:active .easymde-dropdown-content,.easymde-dropdown:focus .easymde-dropdown-content,.easymde-dropdown:focus-within .easymde-dropdown-content{visibility:visible}.easymde-dropdown-content button{display:block}span[data-img-src]:after{content:"";background-image:var(--bg-image);display:block;max-height:100%;max-width:100%;background-size:contain;height:0;padding-top:var(--height);width:var(--width);background-repeat:no-repeat}.CodeMirror .cm-spell-error:not(.cm-url):not(.cm-comment):not(.cm-tag):not(.cm-word){background:#ff000026}.editor-toolbar .mde-btn:before{font-style:normal;font-weight:400;font-family:inherit}.editor-toolbar .mde-bold:before{content:"B";font-weight:700}.editor-toolbar .mde-italic:before{content:"I";font-style:italic}.editor-toolbar .mde-ul:before{content:"\2022\2002\2014"}.editor-toolbar .mde-link:before{content:"\1f517"}.editor-toolbar .mde-preview:before{content:"\1f441"}.EasyMDEContainer .CodeMirror{min-height:180px}.photo-convert-status:empty{display:none}.photo-convert-status{font-size:var(--text-sm);margin-top:var(--space-2)}.photo-reauth-hint{display:none;font-size:var(--text-sm);color:var(--color-ink-muted);margin-top:var(--space-2)}.photo-reauth-hint.is-shown{display:block}.post-form-wrap select{width:100%;font-family:var(--font-ui);font-size:var(--text-base);padding:.875rem 2.5rem .875rem 1rem;min-height:44px;border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-canvas);color:var(--color-ink);-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2390887E' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 1rem center}.post-form-wrap select:focus{outline:2px solid var(--color-accent);outline-offset:1px;border-color:var(--color-accent)}.post-form-wrap input[type=number]{width:100%;font-family:var(--font-ui);font-size:var(--text-base);padding:.875rem 1rem;min-height:44px;border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-canvas);color:var(--color-ink);-webkit-appearance:none;appearance:none}.post-form-wrap input[type=number]:focus{outline:2px solid var(--color-accent);outline-offset:1px;border-color:var(--color-accent)}.more-options{margin-bottom:var(--space-5);border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-canvas)}.more-options__summary{cursor:pointer;padding:.875rem 1rem;min-height:44px;display:flex;align-items:center;font-family:var(--font-ui);font-size:var(--text-sm);font-weight:600;color:var(--color-ink);list-style:none;user-select:none}.more-options__summary::-webkit-details-marker{display:none}.more-options__summary:before{content:"\25b8";margin-right:var(--space-2);color:var(--color-ink-muted);transition:transform .15s}.more-options[open] .more-options__summary:before{transform:rotate(90deg)}.more-options[open] .more-options__summary{border-bottom:1px solid var(--color-border)}.more-options>.form-field{padding:0 1rem}.more-options>.form-field:first-of-type{padding-top:var(--space-4)}.more-options>.form-field:last-child{padding-bottom:var(--space-4);margin-bottom:0}.btn-action.is-loading{position:relative;color:transparent;pointer-events:none}.btn-action.is-loading:after{content:"";position:absolute;top:50%;left:50%;width:16px;height:16px;margin:-8px 0 0 -8px;border:2px solid var(--color-ink-muted);border-top-color:var(--color-accent);border-radius:50%;animation:post-spin .7s linear infinite}.btn-action[disabled]{opacity:.5;cursor:not-allowed}@keyframes post-spin{to{transform:rotate(360deg)}}.post-form-wrap .form-messages{margin-bottom:var(--space-5)}.post-form-wrap .form-message{padding:.875rem 1rem;border-radius:var(--radius-md);font-size:var(--text-sm);margin-bottom:var(--space-2)}.post-form-wrap .form-message.notice,.post-form-wrap .form-message.error{background:var(--color-accent-light);color:var(--color-ink);border:1px solid var(--color-error)}.post-form-wrap .form-message.success{background:var(--color-accent-light);color:var(--color-ink);border:1px solid var(--color-accent)}.EasyMDEContainer .CodeMirror{background:var(--color-canvas);color:var(--color-ink);border:1px solid var(--color-border);border-radius:0 0 var(--radius-md) var(--radius-md);font-family:var(--font-ui);font-size:var(--text-base);line-height:var(--leading-normal);padding:var(--space-1)}.EasyMDEContainer .CodeMirror-cursor{border-color:var(--color-ink)}.EasyMDEContainer .CodeMirror-selected{background:var(--color-accent-light)!important}.EasyMDEContainer .editor-toolbar{background:var(--color-surface-raised);border:1px solid var(--color-border);border-bottom:none;border-radius:var(--radius-md) var(--radius-md) 0 0;opacity:1}.EasyMDEContainer .editor-toolbar button{color:var(--color-ink)!important;min-width:34px;height:34px}.EasyMDEContainer .editor-toolbar button:hover,.EasyMDEContainer .editor-toolbar button.active{background:var(--color-accent-light);border-color:var(--color-border)}.EasyMDEContainer .editor-toolbar i.separator{border-color:var(--color-border)}.EasyMDEContainer .editor-preview,.EasyMDEContainer .editor-preview-side{background:var(--color-canvas);color:var(--color-ink)}.EasyMDEContainer .editor-preview a{color:var(--color-accent)} +.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:0 0}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:0 0}.cm-fat-cursor{caret-color:transparent}@-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;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.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:#ff96004d}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:0;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none;outline:0}.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:0 0!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:0 0;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;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-code{outline:0}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-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,.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:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:0 0}.EasyMDEContainer{display:block}.CodeMirror-rtl pre{direction:rtl}.EasyMDEContainer.sided--no-fullscreen{display:flex;flex-direction:row;flex-wrap:wrap}.EasyMDEContainer .CodeMirror{box-sizing:border-box;height:auto;border:1px solid #ced4da;border-bottom-left-radius:4px;border-bottom-right-radius:4px;padding:10px;font:inherit;z-index:0;word-wrap:break-word}.EasyMDEContainer .CodeMirror-scroll{cursor:text}.EasyMDEContainer .CodeMirror-fullscreen{background:#fff;position:fixed!important;inset:50px 0 0;height:auto;z-index:8;border-right:none!important;border-bottom-right-radius:0!important}.EasyMDEContainer .CodeMirror-sided{width:50%!important}.EasyMDEContainer.sided--no-fullscreen .CodeMirror-sided{border-right:none!important;border-bottom-right-radius:0;position:relative;flex:1 1 auto}.EasyMDEContainer .CodeMirror-placeholder{opacity:.5}.EasyMDEContainer .CodeMirror-focused .CodeMirror-selected{background:#d9d9d9}.editor-toolbar{position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;padding:9px 10px;border-top:1px solid #ced4da;border-left:1px solid #ced4da;border-right:1px solid #ced4da;border-top-left-radius:4px;border-top-right-radius:4px}.editor-toolbar.fullscreen{width:100%;height:50px;padding-top:10px;padding-bottom:10px;box-sizing:border-box;background:#fff;border:0;position:fixed;top:0;left:0;opacity:1;z-index:9}.editor-toolbar.fullscreen:before{width:20px;height:50px;background:-moz-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:-webkit-gradient(linear,left top,right top,color-stop(0,#fff),color-stop(100%,rgba(255,255,255,0)));background:-webkit-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:-o-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:-ms-linear-gradient(left,#fff 0,rgba(255,255,255,0) 100%);background:linear-gradient(to right,#fff 0,#fff0);position:fixed;top:0;left:0;margin:0;padding:0}.editor-toolbar.fullscreen:after{width:20px;height:50px;background:-moz-linear-gradient(left,rgba(255,255,255,0) 0,#fff 100%);background:-webkit-gradient(linear,left top,right top,color-stop(0,rgba(255,255,255,0)),color-stop(100%,#fff));background:-webkit-linear-gradient(left,rgba(255,255,255,0) 0,#fff 100%);background:-o-linear-gradient(left,rgba(255,255,255,0) 0,#fff 100%);background:-ms-linear-gradient(left,rgba(255,255,255,0) 0,#fff 100%);background:linear-gradient(to right,#fff0 0,#fff);position:fixed;top:0;right:0;margin:0;padding:0}.EasyMDEContainer.sided--no-fullscreen .editor-toolbar{width:100%}.editor-toolbar .easymde-dropdown,.editor-toolbar button{background:0 0;display:inline-block;text-align:center;text-decoration:none!important;height:30px;margin:0;padding:0;border:1px solid transparent;border-radius:3px;cursor:pointer}.editor-toolbar button{font-weight:700;min-width:30px;padding:0 6px;white-space:nowrap}.editor-toolbar button.active,.editor-toolbar button:hover{background:#fcfcfc;border-color:#95a5a6}.editor-toolbar i.separator{display:inline-block;width:0;border-left:1px solid #d9d9d9;border-right:1px solid #fff;color:transparent;text-indent:-10px;margin:0 6px}.editor-toolbar button:after{font-family:Arial,Helvetica Neue,Helvetica,sans-serif;font-size:65%;vertical-align:text-bottom;position:relative;top:2px}.editor-toolbar button.heading-1:after{content:"1"}.editor-toolbar button.heading-2:after{content:"2"}.editor-toolbar button.heading-3:after{content:"3"}.editor-toolbar button.heading-bigger:after{content:"\25b2"}.editor-toolbar button.heading-smaller:after{content:"\25bc"}.editor-toolbar.disabled-for-preview button:not(.no-disable){opacity:.6;pointer-events:none}@media only screen and (max-width:700px){.editor-toolbar i.no-mobile{display:none}}.editor-statusbar{padding:8px 10px;font-size:12px;color:#959694;text-align:right}.EasyMDEContainer.sided--no-fullscreen .editor-statusbar{width:100%}.editor-statusbar span{display:inline-block;min-width:4em;margin-left:1em}.editor-statusbar .lines:before{content:"lines: "}.editor-statusbar .words:before{content:"words: "}.editor-statusbar .characters:before{content:"characters: "}.editor-preview-full{position:absolute;width:100%;height:100%;top:0;left:0;z-index:7;overflow:auto;display:none;box-sizing:border-box}.editor-preview-side{position:fixed;bottom:0;width:50%;top:50px;right:0;z-index:9;overflow:auto;display:none;box-sizing:border-box;border:1px solid #ddd;word-wrap:break-word}.editor-preview-active-side{display:block}.EasyMDEContainer.sided--no-fullscreen .editor-preview-active-side{flex:1 1 auto;height:auto;position:static}.editor-preview-active{display:block}.editor-preview{padding:10px;background:#fafafa}.editor-preview>p{margin-top:0}.editor-preview pre{background:#eee;margin-bottom:10px}.editor-preview table td,.editor-preview table th{border:1px solid #ddd;padding:5px}.cm-s-easymde .cm-tag{color:#63a35c}.cm-s-easymde .cm-attribute{color:#795da3}.cm-s-easymde .cm-string{color:#183691}.cm-s-easymde .cm-header-1{font-size:calc(1.375rem + 1.5vw)}.cm-s-easymde .cm-header-2{font-size:calc(1.325rem + .9vw)}.cm-s-easymde .cm-header-3{font-size:calc(1.3rem + .6vw)}.cm-s-easymde .cm-header-4{font-size:calc(1.275rem + .3vw)}.cm-s-easymde .cm-header-5{font-size:1.25rem}.cm-s-easymde .cm-header-6{font-size:1rem}.cm-s-easymde .cm-header-1,.cm-s-easymde .cm-header-2,.cm-s-easymde .cm-header-3,.cm-s-easymde .cm-header-4,.cm-s-easymde .cm-header-5,.cm-s-easymde .cm-header-6{margin-bottom:.5rem;line-height:1.2}.cm-s-easymde .cm-comment{background:#0000000d;border-radius:2px}.cm-s-easymde .cm-link{color:#7f8c8d}.cm-s-easymde .cm-url{color:#aab2b3}.cm-s-easymde .cm-quote{color:#7f8c8d;font-style:italic}.editor-toolbar .easymde-dropdown{position:relative;background:linear-gradient(to bottom right,#fff 0 84%,#333 50% 100%);border-radius:0;border:1px solid #fff}.editor-toolbar .easymde-dropdown:hover{background:linear-gradient(to bottom right,#fff 0 84%,#333 50% 100%)}.easymde-dropdown-content{display:block;visibility:hidden;position:absolute;background-color:#f9f9f9;box-shadow:0 8px 16px #0003;padding:8px;z-index:2;top:30px}.easymde-dropdown:active .easymde-dropdown-content,.easymde-dropdown:focus .easymde-dropdown-content,.easymde-dropdown:focus-within .easymde-dropdown-content{visibility:visible}.easymde-dropdown-content button{display:block}span[data-img-src]:after{content:"";background-image:var(--bg-image);display:block;max-height:100%;max-width:100%;background-size:contain;height:0;padding-top:var(--height);width:var(--width);background-repeat:no-repeat}.CodeMirror .cm-spell-error:not(.cm-url):not(.cm-comment):not(.cm-tag):not(.cm-word){background:#ff000026}.editor-toolbar .mde-btn:before{font-style:normal;font-weight:400;font-family:inherit}.editor-toolbar .mde-bold:before{content:"B";font-weight:700}.editor-toolbar .mde-italic:before{content:"I";font-style:italic}.editor-toolbar .mde-ul:before{content:"\2022\2002\2014"}.editor-toolbar .mde-link:before{content:"\1f517"}.editor-toolbar .mde-preview:before{content:"\1f441"}.EasyMDEContainer .CodeMirror{min-height:180px}.photo-convert-status:empty{display:none}.photo-convert-status{font-size:var(--text-sm);margin-top:var(--space-2)}.photo-reauth-hint{display:none;font-size:var(--text-sm);color:var(--color-ink-muted);margin-top:var(--space-2)}.photo-reauth-hint.is-shown{display:block}.post-form-wrap select{width:100%;font-family:var(--font-ui);font-size:var(--text-base);padding:.875rem 2.5rem .875rem 1rem;min-height:44px;border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-canvas);color:var(--color-ink);-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2390887E' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 1rem center}.post-form-wrap select:focus{outline:2px solid var(--color-accent);outline-offset:1px;border-color:var(--color-accent)}.post-form-wrap input[type=number]{width:100%;font-family:var(--font-ui);font-size:var(--text-base);padding:.875rem 1rem;min-height:44px;border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-canvas);color:var(--color-ink);-webkit-appearance:none;appearance:none}.post-form-wrap input[type=number]:focus{outline:2px solid var(--color-accent);outline-offset:1px;border-color:var(--color-accent)}.more-options{margin-bottom:var(--space-5);border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-canvas)}.more-options__summary{cursor:pointer;padding:.875rem 1rem;min-height:44px;display:flex;align-items:center;font-family:var(--font-ui);font-size:var(--text-sm);font-weight:600;color:var(--color-ink);list-style:none;user-select:none}.more-options__summary::-webkit-details-marker{display:none}.more-options__summary:before{content:"\25b8";margin-right:var(--space-2);color:var(--color-ink-muted);transition:transform .15s}.more-options[open] .more-options__summary:before{transform:rotate(90deg)}.more-options[open] .more-options__summary{border-bottom:1px solid var(--color-border)}.more-options>.form-field{padding:0 1rem}.more-options>.form-field:first-of-type{padding-top:var(--space-4)}.more-options>.form-field:last-child{padding-bottom:var(--space-4);margin-bottom:0}.btn-action.is-loading{position:relative;color:transparent;pointer-events:none}.btn-action.is-loading:after{content:"";position:absolute;top:50%;left:50%;width:16px;height:16px;margin:-8px 0 0 -8px;border:2px solid var(--color-ink-muted);border-top-color:var(--color-accent);border-radius:50%;animation:post-spin .7s linear infinite}.btn-action[disabled]{opacity:.5;cursor:not-allowed}@keyframes post-spin{to{transform:rotate(360deg)}}.post-form-wrap .notices{padding:1rem 1.1rem;border-radius:var(--radius-md);font-size:var(--text-base);margin:0 0 var(--space-5);background:var(--color-canvas);color:var(--color-ink);border-left:4px solid var(--color-accent)}.post-form-wrap .notices p{margin:0}.post-form-wrap .notices.error,.post-form-wrap .notices.red{border-left-color:var(--color-error)}.post-form-wrap .notices.success,.post-form-wrap .notices.green{border-left-color:var(--color-accent)}.post-success{margin:0 0 var(--space-5);padding:1.1rem;border-radius:var(--radius-md);background:var(--color-accent-light);border:1px solid var(--color-accent)}.post-success__title{font-family:var(--font-ui);font-size:var(--text-md);font-weight:600;color:var(--color-ink);margin:0 0 var(--space-3)}.post-success__actions{display:flex;flex-wrap:wrap;gap:var(--space-3)}.post-success__view{flex:1;min-width:140px;text-align:center;padding:.8rem 1rem;min-height:44px;border-radius:var(--radius-md);background:var(--color-accent);color:var(--color-accent-on);font-weight:600;text-decoration:none}.post-success__again{flex:1;min-width:140px;text-align:center;padding:.8rem 1rem;min-height:44px;border-radius:var(--radius-md);background:transparent;color:var(--color-ink);border:1px solid var(--color-border);font-weight:600;text-decoration:none}.filepond--credits{display:none!important}.EasyMDEContainer .CodeMirror{background:var(--color-canvas);color:var(--color-ink);border:1px solid var(--color-border);border-radius:0 0 var(--radius-md) var(--radius-md);font-family:var(--font-ui);font-size:var(--text-base);line-height:var(--leading-normal);padding:var(--space-1)}.EasyMDEContainer .CodeMirror-cursor{border-color:var(--color-ink)}.EasyMDEContainer .CodeMirror-selected{background:var(--color-accent-light)!important}.EasyMDEContainer .editor-toolbar{background:var(--color-surface-raised);border:1px solid var(--color-border);border-bottom:none;border-radius:var(--radius-md) var(--radius-md) 0 0;opacity:1}.EasyMDEContainer .editor-toolbar button{color:var(--color-ink)!important;min-width:34px;height:34px}.EasyMDEContainer .editor-toolbar button:hover,.EasyMDEContainer .editor-toolbar button.active{background:var(--color-accent-light);border-color:var(--color-border)}.EasyMDEContainer .editor-toolbar i.separator{border-color:var(--color-border)}.EasyMDEContainer .editor-preview,.EasyMDEContainer .editor-preview-side{background:var(--color-canvas);color:var(--color-ink)}.EasyMDEContainer .editor-preview a{color:var(--color-accent)} /*! Bundled license information: easymde/dist/easymde.min.css: diff --git a/themes/intotheeast/js/post/post-form.js b/themes/intotheeast/js/post/post-form.js index 1c9ff4c..fc172dd 100644 --- a/themes/intotheeast/js/post/post-form.js +++ b/themes/intotheeast/js/post/post-form.js @@ -29,7 +29,7 @@ b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],r=e.length;t<=r;){var n=e. `),de=N.line+ue.length-1,E=ue[ue.length-1].length;return{from:c(de,E),to:c(de+ae.length-1,ae.length==1?E+ae[0].length:ae[ae.length-1].length),match:G}}}}function p(F,B,N){for(var R,H=0;H<=F.length;){B.lastIndex=H;var _=B.exec(F);if(!_)break;var X=_.index+_[0].length;if(X>F.length-N)break;(!R||X>R.index+R[0].length)&&(R=_),H=_.index+1}return R}function y(F,B,N){B=l(B,"g");for(var R=N.line,H=N.ch,_=F.firstLine();R>=_;R--,H=-1){var X=F.getLine(R),K=p(X,B,H<0?0:X.length-H);if(K)return{from:c(R,K.index),to:c(R,K.index+K[0].length),match:K}}}function w(F,B,N){if(!u(B))return y(F,B,N);B=l(B,"gm");for(var R,H=1,_=F.getLine(N.line).length-N.ch,X=N.line,K=F.firstLine();X>=K;){for(var ge=0;ge=K;ge++){var G=F.getLine(X--);R=R==null?G:G+` `+R}H*=2;var ue=p(R,B,_);if(ue){var ae=R.slice(0,ue.index).split(` `),de=ue[0].split(` -`),E=X+ae.length,U=ae[ae.length-1].length;return{from:c(E,U),to:c(E+de.length-1,de.length==1?U+de[0].length:de[de.length-1].length),match:ue}}}}var D,L;String.prototype.normalize?(D=function(F){return F.normalize("NFD").toLowerCase()},L=function(F){return F.normalize("NFD")}):(D=function(F){return F.toLowerCase()},L=function(F){return F});function T(F,B,N,R){if(F.length==B.length)return N;for(var H=0,_=N+Math.max(0,F.length-B.length);;){if(H==_)return H;var X=H+_>>1,K=R(F.slice(0,X)).length;if(K==N)return X;K>N?_=X:H=X+1}}function M(F,B,N,R){if(!B.length)return null;var H=R?D:L,_=H(B).split(/\r|\n\r?/);e:for(var X=N.line,K=N.ch,ge=F.lastLine()+1-_.length;X<=ge;X++,K=0){var G=F.getLine(X).slice(K),ue=H(G);if(_.length==1){var ae=ue.indexOf(_[0]);if(ae==-1)continue e;var N=T(G,ue,ae,H)+K;return{from:c(X,T(G,ue,ae,H)+K),to:c(X,T(G,ue,ae+_[0].length,H)+K)}}else{var de=ue.length-_[0].length;if(ue.slice(de)!=_[0])continue e;for(var E=1;E<_.length-1;E++)if(H(F.getLine(X+E))!=_[E])continue e;var U=F.getLine(X+_.length-1),W=H(U),V=_[_.length-1];if(W.slice(0,V.length)!=V)continue e;return{from:c(X,T(G,ue,de,H)+K),to:c(X+_.length-1,T(U,W,V.length,H))}}}}function z(F,B,N,R){if(!B.length)return null;var H=R?D:L,_=H(B).split(/\r|\n\r?/);e:for(var X=N.line,K=N.ch,ge=F.firstLine()-1+_.length;X>=ge;X--,K=-1){var G=F.getLine(X);K>-1&&(G=G.slice(0,K));var ue=H(G);if(_.length==1){var ae=ue.lastIndexOf(_[0]);if(ae==-1)continue e;return{from:c(X,T(G,ue,ae,H)),to:c(X,T(G,ue,ae+_[0].length,H))}}else{var de=_[_.length-1];if(ue.slice(0,de.length)!=de)continue e;for(var E=1,N=X-_.length+1;E<_.length-1;E++)if(H(F.getLine(N+E))!=_[E])continue e;var U=F.getLine(X+1-_.length),W=H(U);if(W.slice(W.length-_[0].length)!=_[0])continue e;return{from:c(X+1-_.length,T(U,W,U.length-_[0].length,H)),to:c(X,T(G,ue,de.length,H))}}}}function I(F,B,N,R){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=F,N=N?F.clipPos(N):c(0,0),this.pos={from:N,to:N};var H;typeof R=="object"?H=R.caseFold:(H=R,R=null),typeof B=="string"?(H==null&&(H=!1),this.matches=function(_,X){return(_?z:M)(F,B,X,H)}):(B=l(B,"gm"),!R||R.multiline!==!1?this.matches=function(_,X){return(_?w:f)(F,B,X)}:this.matches=function(_,X){return(_?y:g)(F,B,X)})}I.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(F){var B=this.doc.clipPos(F?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(B=c(B.line,B.ch),F?(B.ch--,B.ch<0&&(B.line--,B.ch=(this.doc.getLine(B.line)||"").length)):(B.ch++,B.ch>(this.doc.getLine(B.line)||"").length&&(B.ch=0,B.line++)),a.cmpPos(B,this.doc.clipPos(B))!=0))return this.atOccurrence=!1;var N=this.matches(F,B);if(this.afterEmptyMatch=N&&a.cmpPos(N.from,N.to)==0,N)return this.pos=N,this.atOccurrence=!0,this.pos.match||!0;var R=c(F?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:R,to:R},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(F,B){if(this.atOccurrence){var N=a.splitLines(F);this.doc.replaceRange(N,this.pos.from,this.pos.to,B),this.pos.to=c(this.pos.from.line+N.length-1,N[N.length-1].length+(N.length==1?this.pos.from.ch:0))}}},a.defineExtension("getSearchCursor",function(F,B,N){return new I(this.doc,F,B,N)}),a.defineDocExtension("getSearchCursor",function(F,B,N){return new I(this,F,B,N)}),a.defineExtension("selectMatches",function(F,B){for(var N=[],R=this.getSearchCursor(F,this.getCursor("from"),B);R.findNext()&&!(a.cmpPos(R.to(),this.getCursor("to"))>0);)N.push({anchor:R.from(),head:R.to()});N.length&&this.setSelections(N,0)})})});var Zs=Ye((Xs,Ys)=>{(function(a){typeof Xs=="object"&&typeof Ys=="object"?a(ct(),Zo(),Qo()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../markdown/markdown","../../addon/mode/overlay"],a):a(CodeMirror)})(function(a){"use strict";var c=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;a.defineMode("gfm",function(d,l){var u=0;function g(w){return w.code=!1,null}var f={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(w){return{code:w.code,codeBlock:w.codeBlock,ateSpace:w.ateSpace}},token:function(w,D){if(D.combineTokens=null,D.codeBlock)return w.match(/^```+/)?(D.codeBlock=!1,null):(w.skipToEnd(),null);if(w.sol()&&(D.code=!1),w.sol()&&w.match(/^```+/))return w.skipToEnd(),D.codeBlock=!0,null;if(w.peek()==="`"){w.next();var L=w.pos;w.eatWhile("`");var T=1+w.pos-L;return D.code?T===u&&(D.code=!1):(u=T,D.code=!0),null}else if(D.code)return w.next(),null;if(w.eatSpace())return D.ateSpace=!0,null;if((w.sol()||D.ateSpace)&&(D.ateSpace=!1,l.gitHubSpice!==!1)){if(w.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return D.combineTokens=!0,"link";if(w.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return D.combineTokens=!0,"link"}return w.match(c)&&w.string.slice(w.start-2,w.start)!="]("&&(w.start==0||/\W/.test(w.string.charAt(w.start-1)))?(D.combineTokens=!0,"link"):(w.next(),null)},blankLine:g},p={taskLists:!0,strikethrough:!0,emoji:!0};for(var y in l)p[y]=l[y];return p.name="markdown",a.overlayMode(a.getMode(d,p),f)},"markdown"),a.defineMIME("text/x-gfm","gfm")})});var Qs=Ye(()=>{});var Js=Ye((Yd,$o)=>{var Jo;(function(){"use strict";Jo=function(a,c,d,l){l=l||{},this.dictionary=null,this.rules={},this.dictionaryTable=new Map,this.compoundRules=[],this.compoundRuleCodes={},this.replacementTable=[],this.flags=l.flags||{},this.memoized={},this.loaded=!1;var u=this,g,f,p,y,w;a&&(u.dictionary=a,c&&d?M():(typeof window<"u"?(l.dictionaryPath?g=l.dictionaryPath:g="typo/dictionaries",window.chrome&&window.chrome.runtime&&window.chrome.runtime.getURL?g=window.chrome.runtime.getURL(g):window.browser&&window.browser.runtime&&window.browser.runtime.getURL&&(g=window.browser.runtime.getURL(g))):typeof __dirname<"u"?g=__dirname+"/dictionaries":g="./dictionaries",c||D(g+"/"+a+"/"+a+".aff",L),d||D(g+"/"+a+"/"+a+".dic",T)));function D(z,I){var F=u._readFile(z,null,l?.asyncLoad);l?.asyncLoad?F.then(function(B){I(B)}):I(F)}function L(z){c=z,d&&M()}function T(z){d=z,c&&M()}function M(){for(u.rules=u._parseAFF(c),u.compoundRuleCodes={},f=0,y=u.compoundRules.length;f0&&(_.continuationClasses=R),H!=="."&&(T==="SFX"?_.match=new RegExp(H+"$"):_.match=new RegExp("^"+H)),F!="0"&&(T==="SFX"?_.remove=new RegExp(F+"$"):_.remove=F),I.push(_)}c[M]={type:T,combineable:z==="Y",entries:I},f+=u}else if(T==="COMPOUNDRULE"){for(u=parseInt(L[1],10),p=f+1,w=f+1+u;p0&&(d.get(ue)===null&&d.set(ue,[]),d.get(ue).push(ae))}for(var u=1,g=c.length;u1){var D=this.parseRuleCodes(y[1]);(!("NEEDAFFIX"in this.flags)||D.indexOf(this.flags.NEEDAFFIX)===-1)&&l(w,D);for(var L=0,T=D.length;L"u"){if("COMPOUNDMIN"in this.flags&&a.length>=this.flags.COMPOUNDMIN){for(d=0,l=this.compoundRules.length;d"u"&&(d=Array.prototype.concat.apply([],this.dictionaryTable.get(a))),d&&d.indexOf(this.flags[c])!==-1))},alphabet:"",suggest:function(a,c){if(!this.loaded)throw"Dictionary not loaded.";if(c=c||5,this.memoized.hasOwnProperty(a)){var d=this.memoized[a].limit;if(c<=d||this.memoized[a].suggestions.length1&&K[1][1]!==K[1][0]&&(H=K[0]+K[1][1]+K[1][0]+K[1].substring(2),(!M||w.check(H))&&(H in z?z[H]+=1:z[H]=1)),K[1]){var ge=K[1].substring(0,1).toUpperCase()===K[1].substring(0,1)?"uppercase":"lowercase";for(F=0;F<_;F++){var G=w.alphabet[F];ge==="uppercase"&&(G=G.toUpperCase()),G!=K[1].substring(0,1)&&(H=K[0]+G+K[1].substring(1),(!M||w.check(H))&&(H in z?z[H]+=1:z[H]=1))}}if(K[1])for(F=0;F<_;F++){var ge=K[0].substring(-1).toUpperCase()===K[0].substring(-1)&&K[1].substring(0,1).toUpperCase()===K[1].substring(0,1)?"uppercase":"lowercase",G=w.alphabet[F];ge==="uppercase"&&(G=G.toUpperCase()),H=K[0]+G+K[1],(!M||w.check(H))&&(H in z?z[H]+=1:z[H]=1)}}return z}function L(T){var M,z=D((M={},M[T]=!0,M)),I=D(z,!0),F=I;for(var B in z)w.check(B)&&(B in F?F[B]+=z[B]:F[B]=z[B]);var N,R,H=[];for(N in F)F.hasOwnProperty(N)&&(w.hasFlag(N,"PRIORITYSUGGEST")&&(F[N]+=1e3),H.push([N,F[N]]));function _(G,ue){var ae=G[1],de=ue[1];return aede?1:ue[0].localeCompare(G[0])}H.sort(_).reverse();var X=[],K="lowercase";T.toUpperCase()===T?K="uppercase":T.substr(0,1).toUpperCase()+T.substr(1).toLowerCase()===T&&(K="capitalized");var ge=c;for(N=0;N{"use strict";var $s=Js();function Ae(a){if(a=a||{},typeof a.codeMirrorInstance!="function"||typeof a.codeMirrorInstance.defineMode!="function"){console.log("CodeMirror Spell Checker: You must provide an instance of CodeMirror via the option `codeMirrorInstance`");return}String.prototype.includes||(String.prototype.includes=function(){"use strict";return String.prototype.indexOf.apply(this,arguments)!==-1}),a.codeMirrorInstance.defineMode("spell-checker",function(c){if(!Ae.aff_loading){Ae.aff_loading=!0;var d=new XMLHttpRequest;d.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.aff",!0),d.onload=function(){d.readyState===4&&d.status===200&&(Ae.aff_data=d.responseText,Ae.num_loaded++,Ae.num_loaded==2&&(Ae.typo=new $s("en_US",Ae.aff_data,Ae.dic_data,{platform:"any"})))},d.send(null)}if(!Ae.dic_loading){Ae.dic_loading=!0;var l=new XMLHttpRequest;l.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.dic",!0),l.onload=function(){l.readyState===4&&l.status===200&&(Ae.dic_data=l.responseText,Ae.num_loaded++,Ae.num_loaded==2&&(Ae.typo=new $s("en_US",Ae.aff_data,Ae.dic_data,{platform:"any"})))},l.send(null)}var u='!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~ ',g={token:function(p){var y=p.peek(),w="";if(u.includes(y))return p.next(),null;for(;(y=p.peek())!=null&&!u.includes(y);)w+=y,p.next();return Ae.typo&&!Ae.typo.check(w)?"spell-error":null}},f=a.codeMirrorInstance.getMode(c,c.backdrop||"text/plain");return a.codeMirrorInstance.overlayMode(f,g,!0)})}Ae.num_loaded=0;Ae.aff_loading=!1;Ae.dic_loading=!1;Ae.aff_data="";Ae.dic_data="";Ae.typo;Vs.exports=Ae});var hu=Ye(Se=>{"use strict";function tu(a,c){for(var d=0;da.length)&&(c=a.length);for(var d=0,l=new Array(c);d=a.length?{done:!0}:{done:!1,value:a[l++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +`),E=X+ae.length,U=ae[ae.length-1].length;return{from:c(E,U),to:c(E+de.length-1,de.length==1?U+de[0].length:de[de.length-1].length),match:ue}}}}var D,L;String.prototype.normalize?(D=function(F){return F.normalize("NFD").toLowerCase()},L=function(F){return F.normalize("NFD")}):(D=function(F){return F.toLowerCase()},L=function(F){return F});function T(F,B,N,R){if(F.length==B.length)return N;for(var H=0,_=N+Math.max(0,F.length-B.length);;){if(H==_)return H;var X=H+_>>1,K=R(F.slice(0,X)).length;if(K==N)return X;K>N?_=X:H=X+1}}function M(F,B,N,R){if(!B.length)return null;var H=R?D:L,_=H(B).split(/\r|\n\r?/);e:for(var X=N.line,K=N.ch,ge=F.lastLine()+1-_.length;X<=ge;X++,K=0){var G=F.getLine(X).slice(K),ue=H(G);if(_.length==1){var ae=ue.indexOf(_[0]);if(ae==-1)continue e;var N=T(G,ue,ae,H)+K;return{from:c(X,T(G,ue,ae,H)+K),to:c(X,T(G,ue,ae+_[0].length,H)+K)}}else{var de=ue.length-_[0].length;if(ue.slice(de)!=_[0])continue e;for(var E=1;E<_.length-1;E++)if(H(F.getLine(X+E))!=_[E])continue e;var U=F.getLine(X+_.length-1),W=H(U),V=_[_.length-1];if(W.slice(0,V.length)!=V)continue e;return{from:c(X,T(G,ue,de,H)+K),to:c(X+_.length-1,T(U,W,V.length,H))}}}}function z(F,B,N,R){if(!B.length)return null;var H=R?D:L,_=H(B).split(/\r|\n\r?/);e:for(var X=N.line,K=N.ch,ge=F.firstLine()-1+_.length;X>=ge;X--,K=-1){var G=F.getLine(X);K>-1&&(G=G.slice(0,K));var ue=H(G);if(_.length==1){var ae=ue.lastIndexOf(_[0]);if(ae==-1)continue e;return{from:c(X,T(G,ue,ae,H)),to:c(X,T(G,ue,ae+_[0].length,H))}}else{var de=_[_.length-1];if(ue.slice(0,de.length)!=de)continue e;for(var E=1,N=X-_.length+1;E<_.length-1;E++)if(H(F.getLine(N+E))!=_[E])continue e;var U=F.getLine(X+1-_.length),W=H(U);if(W.slice(W.length-_[0].length)!=_[0])continue e;return{from:c(X+1-_.length,T(U,W,U.length-_[0].length,H)),to:c(X,T(G,ue,de.length,H))}}}}function I(F,B,N,R){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=F,N=N?F.clipPos(N):c(0,0),this.pos={from:N,to:N};var H;typeof R=="object"?H=R.caseFold:(H=R,R=null),typeof B=="string"?(H==null&&(H=!1),this.matches=function(_,X){return(_?z:M)(F,B,X,H)}):(B=l(B,"gm"),!R||R.multiline!==!1?this.matches=function(_,X){return(_?w:f)(F,B,X)}:this.matches=function(_,X){return(_?y:g)(F,B,X)})}I.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(F){var B=this.doc.clipPos(F?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(B=c(B.line,B.ch),F?(B.ch--,B.ch<0&&(B.line--,B.ch=(this.doc.getLine(B.line)||"").length)):(B.ch++,B.ch>(this.doc.getLine(B.line)||"").length&&(B.ch=0,B.line++)),a.cmpPos(B,this.doc.clipPos(B))!=0))return this.atOccurrence=!1;var N=this.matches(F,B);if(this.afterEmptyMatch=N&&a.cmpPos(N.from,N.to)==0,N)return this.pos=N,this.atOccurrence=!0,this.pos.match||!0;var R=c(F?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:R,to:R},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(F,B){if(this.atOccurrence){var N=a.splitLines(F);this.doc.replaceRange(N,this.pos.from,this.pos.to,B),this.pos.to=c(this.pos.from.line+N.length-1,N[N.length-1].length+(N.length==1?this.pos.from.ch:0))}}},a.defineExtension("getSearchCursor",function(F,B,N){return new I(this.doc,F,B,N)}),a.defineDocExtension("getSearchCursor",function(F,B,N){return new I(this,F,B,N)}),a.defineExtension("selectMatches",function(F,B){for(var N=[],R=this.getSearchCursor(F,this.getCursor("from"),B);R.findNext()&&!(a.cmpPos(R.to(),this.getCursor("to"))>0);)N.push({anchor:R.from(),head:R.to()});N.length&&this.setSelections(N,0)})})});var Zs=Ye((Xs,Ys)=>{(function(a){typeof Xs=="object"&&typeof Ys=="object"?a(ct(),Zo(),Qo()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../markdown/markdown","../../addon/mode/overlay"],a):a(CodeMirror)})(function(a){"use strict";var c=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;a.defineMode("gfm",function(d,l){var u=0;function g(w){return w.code=!1,null}var f={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(w){return{code:w.code,codeBlock:w.codeBlock,ateSpace:w.ateSpace}},token:function(w,D){if(D.combineTokens=null,D.codeBlock)return w.match(/^```+/)?(D.codeBlock=!1,null):(w.skipToEnd(),null);if(w.sol()&&(D.code=!1),w.sol()&&w.match(/^```+/))return w.skipToEnd(),D.codeBlock=!0,null;if(w.peek()==="`"){w.next();var L=w.pos;w.eatWhile("`");var T=1+w.pos-L;return D.code?T===u&&(D.code=!1):(u=T,D.code=!0),null}else if(D.code)return w.next(),null;if(w.eatSpace())return D.ateSpace=!0,null;if((w.sol()||D.ateSpace)&&(D.ateSpace=!1,l.gitHubSpice!==!1)){if(w.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return D.combineTokens=!0,"link";if(w.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return D.combineTokens=!0,"link"}return w.match(c)&&w.string.slice(w.start-2,w.start)!="]("&&(w.start==0||/\W/.test(w.string.charAt(w.start-1)))?(D.combineTokens=!0,"link"):(w.next(),null)},blankLine:g},p={taskLists:!0,strikethrough:!0,emoji:!0};for(var y in l)p[y]=l[y];return p.name="markdown",a.overlayMode(a.getMode(d,p),f)},"markdown"),a.defineMIME("text/x-gfm","gfm")})});var Qs=Ye(()=>{});var Js=Ye((Zd,$o)=>{var Jo;(function(){"use strict";Jo=function(a,c,d,l){l=l||{},this.dictionary=null,this.rules={},this.dictionaryTable=new Map,this.compoundRules=[],this.compoundRuleCodes={},this.replacementTable=[],this.flags=l.flags||{},this.memoized={},this.loaded=!1;var u=this,g,f,p,y,w;a&&(u.dictionary=a,c&&d?M():(typeof window<"u"?(l.dictionaryPath?g=l.dictionaryPath:g="typo/dictionaries",window.chrome&&window.chrome.runtime&&window.chrome.runtime.getURL?g=window.chrome.runtime.getURL(g):window.browser&&window.browser.runtime&&window.browser.runtime.getURL&&(g=window.browser.runtime.getURL(g))):typeof __dirname<"u"?g=__dirname+"/dictionaries":g="./dictionaries",c||D(g+"/"+a+"/"+a+".aff",L),d||D(g+"/"+a+"/"+a+".dic",T)));function D(z,I){var F=u._readFile(z,null,l?.asyncLoad);l?.asyncLoad?F.then(function(B){I(B)}):I(F)}function L(z){c=z,d&&M()}function T(z){d=z,c&&M()}function M(){for(u.rules=u._parseAFF(c),u.compoundRuleCodes={},f=0,y=u.compoundRules.length;f0&&(_.continuationClasses=R),H!=="."&&(T==="SFX"?_.match=new RegExp(H+"$"):_.match=new RegExp("^"+H)),F!="0"&&(T==="SFX"?_.remove=new RegExp(F+"$"):_.remove=F),I.push(_)}c[M]={type:T,combineable:z==="Y",entries:I},f+=u}else if(T==="COMPOUNDRULE"){for(u=parseInt(L[1],10),p=f+1,w=f+1+u;p0&&(d.get(ue)===null&&d.set(ue,[]),d.get(ue).push(ae))}for(var u=1,g=c.length;u1){var D=this.parseRuleCodes(y[1]);(!("NEEDAFFIX"in this.flags)||D.indexOf(this.flags.NEEDAFFIX)===-1)&&l(w,D);for(var L=0,T=D.length;L"u"){if("COMPOUNDMIN"in this.flags&&a.length>=this.flags.COMPOUNDMIN){for(d=0,l=this.compoundRules.length;d"u"&&(d=Array.prototype.concat.apply([],this.dictionaryTable.get(a))),d&&d.indexOf(this.flags[c])!==-1))},alphabet:"",suggest:function(a,c){if(!this.loaded)throw"Dictionary not loaded.";if(c=c||5,this.memoized.hasOwnProperty(a)){var d=this.memoized[a].limit;if(c<=d||this.memoized[a].suggestions.length1&&K[1][1]!==K[1][0]&&(H=K[0]+K[1][1]+K[1][0]+K[1].substring(2),(!M||w.check(H))&&(H in z?z[H]+=1:z[H]=1)),K[1]){var ge=K[1].substring(0,1).toUpperCase()===K[1].substring(0,1)?"uppercase":"lowercase";for(F=0;F<_;F++){var G=w.alphabet[F];ge==="uppercase"&&(G=G.toUpperCase()),G!=K[1].substring(0,1)&&(H=K[0]+G+K[1].substring(1),(!M||w.check(H))&&(H in z?z[H]+=1:z[H]=1))}}if(K[1])for(F=0;F<_;F++){var ge=K[0].substring(-1).toUpperCase()===K[0].substring(-1)&&K[1].substring(0,1).toUpperCase()===K[1].substring(0,1)?"uppercase":"lowercase",G=w.alphabet[F];ge==="uppercase"&&(G=G.toUpperCase()),H=K[0]+G+K[1],(!M||w.check(H))&&(H in z?z[H]+=1:z[H]=1)}}return z}function L(T){var M,z=D((M={},M[T]=!0,M)),I=D(z,!0),F=I;for(var B in z)w.check(B)&&(B in F?F[B]+=z[B]:F[B]=z[B]);var N,R,H=[];for(N in F)F.hasOwnProperty(N)&&(w.hasFlag(N,"PRIORITYSUGGEST")&&(F[N]+=1e3),H.push([N,F[N]]));function _(G,ue){var ae=G[1],de=ue[1];return aede?1:ue[0].localeCompare(G[0])}H.sort(_).reverse();var X=[],K="lowercase";T.toUpperCase()===T?K="uppercase":T.substr(0,1).toUpperCase()+T.substr(1).toLowerCase()===T&&(K="capitalized");var ge=c;for(N=0;N{"use strict";var $s=Js();function Ae(a){if(a=a||{},typeof a.codeMirrorInstance!="function"||typeof a.codeMirrorInstance.defineMode!="function"){console.log("CodeMirror Spell Checker: You must provide an instance of CodeMirror via the option `codeMirrorInstance`");return}String.prototype.includes||(String.prototype.includes=function(){"use strict";return String.prototype.indexOf.apply(this,arguments)!==-1}),a.codeMirrorInstance.defineMode("spell-checker",function(c){if(!Ae.aff_loading){Ae.aff_loading=!0;var d=new XMLHttpRequest;d.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.aff",!0),d.onload=function(){d.readyState===4&&d.status===200&&(Ae.aff_data=d.responseText,Ae.num_loaded++,Ae.num_loaded==2&&(Ae.typo=new $s("en_US",Ae.aff_data,Ae.dic_data,{platform:"any"})))},d.send(null)}if(!Ae.dic_loading){Ae.dic_loading=!0;var l=new XMLHttpRequest;l.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.dic",!0),l.onload=function(){l.readyState===4&&l.status===200&&(Ae.dic_data=l.responseText,Ae.num_loaded++,Ae.num_loaded==2&&(Ae.typo=new $s("en_US",Ae.aff_data,Ae.dic_data,{platform:"any"})))},l.send(null)}var u='!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~ ',g={token:function(p){var y=p.peek(),w="";if(u.includes(y))return p.next(),null;for(;(y=p.peek())!=null&&!u.includes(y);)w+=y,p.next();return Ae.typo&&!Ae.typo.check(w)?"spell-error":null}},f=a.codeMirrorInstance.getMode(c,c.backdrop||"text/plain");return a.codeMirrorInstance.overlayMode(f,g,!0)})}Ae.num_loaded=0;Ae.aff_loading=!1;Ae.dic_loading=!1;Ae.aff_data="";Ae.dic_data="";Ae.typo;Vs.exports=Ae});var hu=Ye(Se=>{"use strict";function tu(a,c){for(var d=0;da.length)&&(c=a.length);for(var d=0,l=new Array(c);d=a.length?{done:!0}:{done:!1,value:a[l++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uc(a,c){if(typeof a!="object"||a===null)return a;var d=a[Symbol.toPrimitive];if(d!==void 0){var l=d.call(a,c||"default");if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(a)}function jc(a){var c=Uc(a,"string");return typeof c=="symbol"?c:String(c)}function Vo(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}Se.defaults=Vo();function Gc(a){Se.defaults=a}var uu=/[&<>"']/,Kc=new RegExp(uu.source,"g"),fu=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Xc=new RegExp(fu.source,"g"),Yc={"&":"&","<":"<",">":">",'"':""","'":"'"},iu=function(c){return Yc[c]};function et(a,c){if(c){if(uu.test(a))return a.replace(Kc,iu)}else if(fu.test(a))return a.replace(Xc,iu);return a}var Zc=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function cu(a){return a.replace(Zc,function(c,d){return d=d.toLowerCase(),d==="colon"?":":d.charAt(0)==="#"?d.charAt(1)==="x"?String.fromCharCode(parseInt(d.substring(2),16)):String.fromCharCode(+d.substring(1)):""})}var Qc=/(^|[^\[])\^/g;function we(a,c){a=typeof a=="string"?a:a.source,c=c||"";var d={replace:function(u,g){return g=g.source||g,g=g.replace(Qc,"$1"),a=a.replace(u,g),d},getRegex:function(){return new RegExp(a,c)}};return d}var Jc=/[^\w:]/g,$c=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function nu(a,c,d){if(a){var l;try{l=decodeURIComponent(cu(d)).replace(Jc,"").toLowerCase()}catch{return null}if(l.indexOf("javascript:")===0||l.indexOf("vbscript:")===0||l.indexOf("data:")===0)return null}c&&!$c.test(d)&&(d=rd(c,d));try{d=encodeURI(d).replace(/%25/g,"%")}catch{return null}return d}var sn={},Vc=/^[^:]+:\/*[^/]*$/,ed=/^([^:]+:)[\s\S]*$/,td=/^([^:]+:\/*[^/]*)[\s\S]*$/;function rd(a,c){sn[" "+a]||(Vc.test(a)?sn[" "+a]=a+"/":sn[" "+a]=un(a,"/",!0)),a=sn[" "+a];var d=a.indexOf(":")===-1;return c.substring(0,2)==="//"?d?c:a.replace(ed,"$1")+c:c.charAt(0)==="/"?d?c:a.replace(td,"$1")+c:a+c}var fn={exec:function(){}};function ou(a,c){var d=a.replace(/\|/g,function(g,f,p){for(var y=!1,w=f;--w>=0&&p[w]==="\\";)y=!y;return y?"|":" |"}),l=d.split(/ \|/),u=0;if(l[0].trim()||l.shift(),l.length>0&&!l[l.length-1].trim()&&l.pop(),l.length>c)l.splice(c);else for(;l.length1;)c&1&&(d+=a),c>>=1,a+=a;return d+a}function lu(a,c,d,l){var u=c.href,g=c.title?et(c.title):null,f=a[1].replace(/\\([\[\]])/g,"$1");if(a[0].charAt(0)!=="!"){l.state.inLink=!0;var p={type:"link",raw:d,href:u,title:g,text:f,tokens:l.inlineTokens(f)};return l.state.inLink=!1,p}return{type:"image",raw:d,href:u,title:g,text:et(f)}}function od(a,c){var d=a.match(/^(\s+)(?:```)/);if(d===null)return c;var l=d[1];return c.split(` `).map(function(u){var g=u.match(/^\s+/);if(g===null)return u;var f=g[0];return f.length>=l.length?u.slice(l.length):u}).join(` `)}var cn=function(){function a(d){this.options=d||Se.defaults}var c=a.prototype;return c.space=function(l){var u=this.rules.block.newline.exec(l);if(u&&u[0].length>0)return{type:"space",raw:u[0]}},c.code=function(l){var u=this.rules.block.code.exec(l);if(u){var g=u[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:u[0],codeBlockStyle:"indented",text:this.options.pedantic?g:un(g,` @@ -75,7 +75,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `},c.tablecell=function(l,u){var g=u.header?"th":"td",f=u.align?"<"+g+' align="'+u.align+'">':"<"+g+">";return f+l+(" `)},c.strong=function(l){return""+l+""},c.em=function(l){return""+l+""},c.codespan=function(l){return""+l+""},c.br=function(){return this.options.xhtml?"
":"
"},c.del=function(l){return""+l+""},c.link=function(l,u,g){if(l=nu(this.options.sanitize,this.options.baseUrl,l),l===null)return g;var f='",f},c.image=function(l,u,g){if(l=nu(this.options.sanitize,this.options.baseUrl,l),l===null)return g;var f=''+g+'":">",f},c.text=function(l){return l},a}(),ea=function(){function a(){}var c=a.prototype;return c.strong=function(l){return l},c.em=function(l){return l},c.codespan=function(l){return l},c.del=function(l){return l},c.html=function(l){return l},c.text=function(l){return l},c.link=function(l,u,g){return""+g},c.image=function(l,u,g){return""+g},c.br=function(){return""},a}(),ta=function(){function a(){this.seen={}}var c=a.prototype;return c.serialize=function(l){return l.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},c.getNextSafeSlug=function(l,u){var g=l,f=0;if(this.seen.hasOwnProperty(g)){f=this.seen[l];do f++,g=l+"-"+f;while(this.seen.hasOwnProperty(g))}return u||(this.seen[l]=f,this.seen[g]=0),g},c.slug=function(l,u){u===void 0&&(u={});var g=this.serialize(l);return this.getNextSafeSlug(g,u.dryrun)},a}(),_r=function(){function a(d){this.options=d||Se.defaults,this.options.renderer=this.options.renderer||new dn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ea,this.slugger=new ta}a.parse=function(l,u){var g=new a(u);return g.parse(l)},a.parseInline=function(l,u){var g=new a(u);return g.parseInline(l)};var c=a.prototype;return c.parse=function(l,u){u===void 0&&(u=!0);var g="",f,p,y,w,D,L,T,M,z,I,F,B,N,R,H,_,X,K,ge,G=l.length;for(f=0;f0&&H.tokens[0].type==="paragraph"?(H.tokens[0].text=K+" "+H.tokens[0].text,H.tokens[0].tokens&&H.tokens[0].tokens.length>0&&H.tokens[0].tokens[0].type==="text"&&(H.tokens[0].tokens[0].text=K+" "+H.tokens[0].tokens[0].text)):H.tokens.unshift({type:"text",text:K}):R+=K),R+=this.parse(H.tokens,N),z+=this.renderer.listitem(R,X,_);g+=this.renderer.list(z,F,B);continue}case"html":{g+=this.renderer.html(I.text);continue}case"paragraph":{g+=this.renderer.paragraph(this.parseInline(I.tokens));continue}case"text":{for(z=I.tokens?this.parseInline(I.tokens):I.text;f+1";if(c)return Promise.resolve(u);if(d){d(null,u);return}return u}if(c)return Promise.reject(l);if(d){d(l);return}throw l}}function du(a,c){return function(d,l,u){typeof l=="function"&&(u=l,l=null);var g=gt({},l);l=gt({},le.defaults,g);var f=ld(l.silent,l.async,u);if(typeof d>"u"||d===null)return f(new Error("marked(): input parameter is undefined or null"));if(typeof d!="string")return f(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(d)+", string expected"));if(nd(l),l.hooks&&(l.hooks.options=l),u){var p=l.highlight,y;try{l.hooks&&(d=l.hooks.preprocess(d)),y=a(d,l)}catch(M){return f(M)}var w=function(z){var I;if(!z)try{l.walkTokens&&le.walkTokens(y,l.walkTokens),I=c(y,l),l.hooks&&(I=l.hooks.postprocess(I))}catch(F){z=F}return l.highlight=p,z?f(z):u(null,I)};if(!p||p.length<3||(delete l.highlight,!y.length))return w();var D=0;le.walkTokens(y,function(M){M.type==="code"&&(D++,setTimeout(function(){p(M.text,M.lang,function(z,I){if(z)return w(z);I!=null&&I!==M.text&&(M.text=I,M.escaped=!0),D--,D===0&&w()})},0))}),D===0&&w();return}if(l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(d):d).then(function(M){return a(M,l)}).then(function(M){return l.walkTokens?Promise.all(le.walkTokens(M,l.walkTokens)).then(function(){return M}):M}).then(function(M){return c(M,l)}).then(function(M){return l.hooks?l.hooks.postprocess(M):M}).catch(f);try{l.hooks&&(d=l.hooks.preprocess(d));var L=a(d,l);l.walkTokens&&le.walkTokens(L,l.walkTokens);var T=c(L,l);return l.hooks&&(T=l.hooks.postprocess(T)),T}catch(M){return f(M)}}}function le(a,c,d){return du(Pr.lex,_r.parse)(a,c,d)}le.options=le.setOptions=function(a){return le.defaults=gt({},le.defaults,a),Gc(le.defaults),le};le.getDefaults=Vo;le.defaults=Se.defaults;le.use=function(){for(var a=le.defaults.extensions||{renderers:{},childTokens:{}},c=arguments.length,d=new Array(c),l=0;l{"use strict";var Wr=ct();xs();Cs();Ss();Zo();Qo();Hs();_s();Us();Ks();Zs();Yo();var vd=eu(),ra=hu().marked,vu=/Mac/.test(navigator.platform),md=new RegExp(/()+?/g),wi={toggleBold:gn,toggleItalic:vn,drawLink:An,toggleHeadingSmaller:ki,toggleHeadingBigger:xn,drawImage:Ln,toggleBlockquote:yn,toggleOrderedList:Sn,toggleUnorderedList:kn,toggleCheckList:Fn,toggleCodeBlock:bn,togglePreview:In,toggleStrikethrough:mn,toggleHeading1:Dn,toggleHeading2:Cn,toggleHeading3:wn,toggleHeading4:na,toggleHeading5:oa,toggleHeading6:aa,cleanBlock:En,drawTable:Tn,drawHorizontalRule:Mn,undo:Bn,redo:Nn,toggleSideBySide:qr,toggleFullScreen:hr},bd={toggleBold:"Cmd-B",toggleItalic:"Cmd-I",drawLink:"Cmd-K",toggleHeadingSmaller:"Cmd-H",toggleHeadingBigger:"Shift-Cmd-H",toggleHeading1:"Ctrl+Alt+1",toggleHeading2:"Ctrl+Alt+2",toggleHeading3:"Ctrl+Alt+3",toggleHeading4:"Ctrl+Alt+4",toggleHeading5:"Ctrl+Alt+5",toggleHeading6:"Ctrl+Alt+6",cleanBlock:"Cmd-E",drawImage:"Cmd-Alt-I",toggleBlockquote:"Cmd-'",toggleOrderedList:"Cmd-Alt-L",toggleUnorderedList:"Cmd-L",toggleCheckList:"Shift-Cmd-L",toggleCodeBlock:"Cmd-Alt-C",togglePreview:"Cmd-P",toggleSideBySide:"F9",toggleFullScreen:"F11"},yd=function(a){for(var c in wi)if(wi[c]===a)return c;return null},ia=function(){var a=!1;return function(c){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(c)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(c.substr(0,4)))&&(a=!0)}(navigator.userAgent||navigator.vendor||window.opera),a};function xd(a){for(var c;(c=md.exec(a))!==null;){var d=c[0];if(d.indexOf("target=")===-1){var l=d.replace(/>$/,' target="_blank">');a=a.replace(d,l)}}return a}function Dd(a){for(var c=new DOMParser,d=c.parseFromString(a,"text/html"),l=d.getElementsByTagName("li"),u=0;u0){for(var M=document.createElement("i"),z=0;z";if(c)return Promise.resolve(u);if(d){d(null,u);return}return u}if(c)return Promise.reject(l);if(d){d(l);return}throw l}}function du(a,c){return function(d,l,u){typeof l=="function"&&(u=l,l=null);var g=gt({},l);l=gt({},le.defaults,g);var f=ld(l.silent,l.async,u);if(typeof d>"u"||d===null)return f(new Error("marked(): input parameter is undefined or null"));if(typeof d!="string")return f(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(d)+", string expected"));if(nd(l),l.hooks&&(l.hooks.options=l),u){var p=l.highlight,y;try{l.hooks&&(d=l.hooks.preprocess(d)),y=a(d,l)}catch(M){return f(M)}var w=function(z){var I;if(!z)try{l.walkTokens&&le.walkTokens(y,l.walkTokens),I=c(y,l),l.hooks&&(I=l.hooks.postprocess(I))}catch(F){z=F}return l.highlight=p,z?f(z):u(null,I)};if(!p||p.length<3||(delete l.highlight,!y.length))return w();var D=0;le.walkTokens(y,function(M){M.type==="code"&&(D++,setTimeout(function(){p(M.text,M.lang,function(z,I){if(z)return w(z);I!=null&&I!==M.text&&(M.text=I,M.escaped=!0),D--,D===0&&w()})},0))}),D===0&&w();return}if(l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(d):d).then(function(M){return a(M,l)}).then(function(M){return l.walkTokens?Promise.all(le.walkTokens(M,l.walkTokens)).then(function(){return M}):M}).then(function(M){return c(M,l)}).then(function(M){return l.hooks?l.hooks.postprocess(M):M}).catch(f);try{l.hooks&&(d=l.hooks.preprocess(d));var L=a(d,l);l.walkTokens&&le.walkTokens(L,l.walkTokens);var T=c(L,l);return l.hooks&&(T=l.hooks.postprocess(T)),T}catch(M){return f(M)}}}function le(a,c,d){return du(Pr.lex,_r.parse)(a,c,d)}le.options=le.setOptions=function(a){return le.defaults=gt({},le.defaults,a),Gc(le.defaults),le};le.getDefaults=Vo;le.defaults=Se.defaults;le.use=function(){for(var a=le.defaults.extensions||{renderers:{},childTokens:{}},c=arguments.length,d=new Array(c),l=0;l{"use strict";var Wr=ct();xs();Cs();Ss();Zo();Qo();Hs();_s();Us();Ks();Zs();Yo();var vd=eu(),ra=hu().marked,vu=/Mac/.test(navigator.platform),md=new RegExp(/()+?/g),wi={toggleBold:gn,toggleItalic:vn,drawLink:An,toggleHeadingSmaller:ki,toggleHeadingBigger:xn,drawImage:Ln,toggleBlockquote:yn,toggleOrderedList:Sn,toggleUnorderedList:kn,toggleCheckList:Fn,toggleCodeBlock:bn,togglePreview:In,toggleStrikethrough:mn,toggleHeading1:Dn,toggleHeading2:Cn,toggleHeading3:wn,toggleHeading4:na,toggleHeading5:oa,toggleHeading6:aa,cleanBlock:En,drawTable:Tn,drawHorizontalRule:Mn,undo:Bn,redo:Nn,toggleSideBySide:qr,toggleFullScreen:hr},bd={toggleBold:"Cmd-B",toggleItalic:"Cmd-I",drawLink:"Cmd-K",toggleHeadingSmaller:"Cmd-H",toggleHeadingBigger:"Shift-Cmd-H",toggleHeading1:"Ctrl+Alt+1",toggleHeading2:"Ctrl+Alt+2",toggleHeading3:"Ctrl+Alt+3",toggleHeading4:"Ctrl+Alt+4",toggleHeading5:"Ctrl+Alt+5",toggleHeading6:"Ctrl+Alt+6",cleanBlock:"Cmd-E",drawImage:"Cmd-Alt-I",toggleBlockquote:"Cmd-'",toggleOrderedList:"Cmd-Alt-L",toggleUnorderedList:"Cmd-L",toggleCheckList:"Shift-Cmd-L",toggleCodeBlock:"Cmd-Alt-C",togglePreview:"Cmd-P",toggleSideBySide:"F9",toggleFullScreen:"F11"},yd=function(a){for(var c in wi)if(wi[c]===a)return c;return null},ia=function(){var a=!1;return function(c){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(c)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(c.substr(0,4)))&&(a=!0)}(navigator.userAgent||navigator.vendor||window.opera),a};function xd(a){for(var c;(c=md.exec(a))!==null;){var d=c[0];if(d.indexOf("target=")===-1){var l=d.replace(/>$/,' target="_blank">');a=a.replace(d,l)}}return a}function Dd(a){for(var c=new DOMParser,d=c.parseFromString(a,"text/html"),l=d.getElementsByTagName("li"),u=0;u0){for(var M=document.createElement("i"),z=0;z=0&&(D=f.getLineHandle(T),!d(D));T--);var B=f.getTokenAt({line:T,ch:1}),N=l(B).fencedChars,R,H,_,X;d(f.getLineHandle(p.line))?(R="",H=p.line):d(f.getLineHandle(p.line-1))?(R="",H=p.line-1):(R=N+` @@ -92,4 +92,4 @@ Please report this to https://github.com/markedjs/marked.`,a){var u="

An error ----- `]},Ed={link:"URL for the link:",image:"URL of the image:"},Ad={locale:"en-US",format:{hour:"2-digit",minute:"2-digit"}},Ld={bold:"**",code:"```",italic:"*"},Td={sbInit:"Attach files by drag and dropping or pasting from clipboard.",sbOnDragEnter:"Drop image to upload it.",sbOnDrop:"Uploading image #images_names#...",sbProgress:"Uploading #file_name#: #progress#%",sbOnUploaded:"Uploaded #image_name#",sizeUnits:" B, KB, MB"},Md={noFileGiven:"You must select a file.",typeNotAllowed:"This image type is not allowed.",fileTooLarge:`Image #image_name# is too big (#image_size#). -Maximum file size is #image_max_size#.`,importError:"Something went wrong when uploading the image #image_name#."};function J(a){a=a||{},a.parent=this;var c=!0;if(a.autoDownloadFontAwesome===!1&&(c=!1),a.autoDownloadFontAwesome!==!0)for(var d=document.styleSheets,l=0;l-1&&(c=!1);if(c){var u=document.createElement("link");u.rel="stylesheet",u.href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css",document.getElementsByTagName("head")[0].appendChild(u)}if(a.element)this.element=a.element;else if(a.element===null){console.log("EasyMDE: Error. No element was found.");return}if(a.toolbar===void 0){a.toolbar=[];for(var g in dr)Object.prototype.hasOwnProperty.call(dr,g)&&(g.indexOf("separator-")!=-1&&a.toolbar.push("|"),(dr[g].default===!0||a.showIcons&&a.showIcons.constructor===Array&&a.showIcons.indexOf(g)!=-1)&&a.toolbar.push(g))}if(Object.prototype.hasOwnProperty.call(a,"previewClass")||(a.previewClass="editor-preview"),Object.prototype.hasOwnProperty.call(a,"status")||(a.status=["autosave","lines","words","cursor"],a.uploadImage&&a.status.unshift("upload-image")),a.previewRender||(a.previewRender=function(p){return this.parent.markdown(p)}),a.parsingConfig=Rt({highlightFormatting:!0},a.parsingConfig||{}),a.insertTexts=Rt({},Fd,a.insertTexts||{}),a.promptTexts=Rt({},Ed,a.promptTexts||{}),a.blockStyles=Rt({},Ld,a.blockStyles||{}),a.autosave!=null&&(a.autosave.timeFormat=Rt({},Ad,a.autosave.timeFormat||{})),a.iconClassMap=Rt({},ke,a.iconClassMap||{}),a.shortcuts=Rt({},bd,a.shortcuts||{}),a.maxHeight=a.maxHeight||void 0,a.direction=a.direction||"ltr",typeof a.maxHeight<"u"?a.minHeight=a.maxHeight:a.minHeight=a.minHeight||"300px",a.errorCallback=a.errorCallback||function(p){alert(p)},a.uploadImage=a.uploadImage||!1,a.imageMaxSize=a.imageMaxSize||2097152,a.imageAccept=a.imageAccept||"image/png, image/jpeg, image/gif, image/avif",a.imageTexts=Rt({},Td,a.imageTexts||{}),a.errorMessages=Rt({},Md,a.errorMessages||{}),a.imagePathAbsolute=a.imagePathAbsolute||!1,a.imageCSRFName=a.imageCSRFName||"csrfmiddlewaretoken",a.imageCSRFHeader=a.imageCSRFHeader||!1,a.imageInputName=a.imageInputName||"image",a.autosave!=null&&a.autosave.unique_id!=null&&a.autosave.unique_id!=""&&(a.autosave.uniqueId=a.autosave.unique_id),a.overlayMode&&a.overlayMode.combine===void 0&&(a.overlayMode.combine=!0),this.options=a,this.render(),a.initialValue&&(!this.options.autosave||this.options.autosave.foundSavedValue!==!0)&&this.value(a.initialValue),a.uploadImage){var f=this;this.codemirror.on("dragenter",function(p,y){f.updateStatusBar("upload-image",f.options.imageTexts.sbOnDragEnter),y.stopPropagation(),y.preventDefault()}),this.codemirror.on("dragend",function(p,y){f.updateStatusBar("upload-image",f.options.imageTexts.sbInit),y.stopPropagation(),y.preventDefault()}),this.codemirror.on("dragleave",function(p,y){f.updateStatusBar("upload-image",f.options.imageTexts.sbInit),y.stopPropagation(),y.preventDefault()}),this.codemirror.on("dragover",function(p,y){f.updateStatusBar("upload-image",f.options.imageTexts.sbOnDragEnter),y.stopPropagation(),y.preventDefault()}),this.codemirror.on("drop",function(p,y){y.stopPropagation(),y.preventDefault(),a.imageUploadFunction?f.uploadImagesUsingCustomFunction(a.imageUploadFunction,y.dataTransfer.files):f.uploadImages(y.dataTransfer.files)}),this.codemirror.on("paste",function(p,y){a.imageUploadFunction?f.uploadImagesUsingCustomFunction(a.imageUploadFunction,y.clipboardData.files):f.uploadImages(y.clipboardData.files)})}}J.prototype.uploadImages=function(a,c,d){if(a.length!==0){for(var l=[],u=0;u=2){var R=N[1];if(c.imagesPreviewHandler){var H=c.imagesPreviewHandler(N[1]);typeof H=="string"&&(R=H)}if(window.EMDEimagesCache[R])M(B,window.EMDEimagesCache[R]);else{window.EMDEimagesCache[R]={};var _=document.createElement("img");_.onload=function(){window.EMDEimagesCache[R]={naturalWidth:_.naturalWidth,naturalHeight:_.naturalHeight,url:R},M(B,window.EMDEimagesCache[R])},_.src=R}}}})}this.codemirror.on("update",function(){z()}),this.gui.sideBySide=this.createSideBySide(),this._rendered=this.element,(c.autofocus===!0||a.autofocus)&&this.codemirror.focus();var I=this.codemirror;setTimeout(function(){I.refresh()}.bind(I),0)};J.prototype.cleanup=function(){document.removeEventListener("keydown",this.documentOnKeyDown)};function Cu(){if(typeof localStorage=="object")try{localStorage.setItem("smde_localStorage",1),localStorage.removeItem("smde_localStorage")}catch{return!1}else return!1;return!0}J.prototype.autosave=function(){if(Cu()){var a=this;if(this.options.autosave.uniqueId==null||this.options.autosave.uniqueId==""){console.log("EasyMDE: You must set a uniqueId to use the autosave feature");return}this.options.autosave.binded!==!0&&(a.element.form!=null&&a.element.form!=null&&a.element.form.addEventListener("submit",function(){clearTimeout(a.autosaveTimeoutId),a.autosaveTimeoutId=void 0,localStorage.removeItem("smde_"+a.options.autosave.uniqueId)}),this.options.autosave.binded=!0),this.options.autosave.loaded!==!0&&(typeof localStorage.getItem("smde_"+this.options.autosave.uniqueId)=="string"&&localStorage.getItem("smde_"+this.options.autosave.uniqueId)!=""&&(this.codemirror.setValue(localStorage.getItem("smde_"+this.options.autosave.uniqueId)),this.options.autosave.foundSavedValue=!0),this.options.autosave.loaded=!0);var c=a.value();c!==""?localStorage.setItem("smde_"+this.options.autosave.uniqueId,c):localStorage.removeItem("smde_"+this.options.autosave.uniqueId);var d=document.getElementById("autosaved");if(d!=null&&d!=null&&d!=""){var l=new Date,u=new Intl.DateTimeFormat([this.options.autosave.timeFormat.locale,"en-US"],this.options.autosave.timeFormat.format).format(l),g=this.options.autosave.text==null?"Autosaved: ":this.options.autosave.text;d.innerHTML=g+u}}else console.log("EasyMDE: localStorage not available, cannot autosave")};J.prototype.clearAutosavedValue=function(){if(Cu()){if(this.options.autosave==null||this.options.autosave.uniqueId==null||this.options.autosave.uniqueId==""){console.log("EasyMDE: You must set a uniqueId to clear the autosave value");return}localStorage.removeItem("smde_"+this.options.autosave.uniqueId)}else console.log("EasyMDE: localStorage not available, cannot autosave")};J.prototype.openBrowseFileWindow=function(a,c){var d=this,l=this.gui.toolbar.getElementsByClassName("imageInput")[0];l.click();function u(g){d.options.imageUploadFunction?d.uploadImagesUsingCustomFunction(d.options.imageUploadFunction,g.target.files):d.uploadImages(g.target.files,a,c),l.removeEventListener("change",u)}l.addEventListener("change",u)};J.prototype.uploadImage=function(a,c,d){var l=this;c=c||function(w){yu(l,w)};function u(y){l.updateStatusBar("upload-image",y),setTimeout(function(){l.updateStatusBar("upload-image",l.options.imageTexts.sbInit)},1e4),d&&typeof d=="function"&&d(y),l.options.errorCallback(y)}function g(y){var w=l.options.imageTexts.sizeUnits.split(",");return y.replace("#image_name#",a.name).replace("#image_size#",pn(a.size,w)).replace("#image_max_size#",pn(l.options.imageMaxSize,w))}if(a.size>this.options.imageMaxSize){u(g(this.options.errorMessages.fileTooLarge));return}var f=new FormData;f.append("image",a),l.options.imageCSRFToken&&!l.options.imageCSRFHeader&&f.append(l.options.imageCSRFName,l.options.imageCSRFToken);var p=new XMLHttpRequest;p.upload.onprogress=function(y){if(y.lengthComputable){var w=""+Math.round(y.loaded*100/y.total);l.updateStatusBar("upload-image",l.options.imageTexts.sbProgress.replace("#file_name#",a.name).replace("#progress#",w))}},p.open("POST",this.options.imageUploadEndpoint),l.options.imageCSRFToken&&l.options.imageCSRFHeader&&p.setRequestHeader(l.options.imageCSRFName,l.options.imageCSRFToken),p.onload=function(){try{var y=JSON.parse(this.responseText)}catch{console.error("EasyMDE: The server did not return a valid json."),u(g(l.options.errorMessages.importError));return}this.status===200&&y&&!y.error&&y.data&&y.data.filePath?c((l.options.imagePathAbsolute?"":window.location.origin+"/")+y.data.filePath):y.error&&y.error in l.options.errorMessages?u(g(l.options.errorMessages[y.error])):y.error?u(g(y.error)):(console.error("EasyMDE: Received an unexpected response after uploading the image."+this.status+" ("+this.statusText+")"),u(g(l.options.errorMessages.importError)))},p.onerror=function(y){console.error("EasyMDE: An unexpected error occurred when trying to upload the image."+y.target.status+" ("+y.target.statusText+")"),u(l.options.errorMessages.importError)},p.send(f)};J.prototype.uploadImageUsingCustomFunction=function(a,c){var d=this;function l(f){yu(d,f)}function u(f){var p=g(f);d.updateStatusBar("upload-image",p),setTimeout(function(){d.updateStatusBar("upload-image",d.options.imageTexts.sbInit)},1e4),d.options.errorCallback(p)}function g(f){var p=d.options.imageTexts.sizeUnits.split(",");return f.replace("#image_name#",c.name).replace("#image_size#",pn(c.size,p)).replace("#image_max_size#",pn(d.options.imageMaxSize,p))}a.apply(this,[c,l,u])};J.prototype.setPreviewMaxHeight=function(){var a=this.codemirror,c=a.getWrapperElement(),d=c.nextSibling,l=parseInt(window.getComputedStyle(c).paddingTop),u=parseInt(window.getComputedStyle(c).borderTopWidth),g=parseInt(this.options.maxHeight),f=g+l*2+u*2,p=f.toString()+"px";d.style.height=p};J.prototype.createSideBySide=function(){var a=this.codemirror,c=a.getWrapperElement(),d=c.nextSibling;if(!d||!d.classList.contains("editor-preview-side")){if(d=document.createElement("div"),d.className="editor-preview-side",this.options.previewClass)if(Array.isArray(this.options.previewClass))for(var l=0;l0),c>0)d("Converting "+c+" photo"+(c>1?"s":"")+"\u2026");else{var p=Su();p&&/Converting/.test(p.textContent)&&d("")}}a.addEventListener("submit",function(f){c>0&&(f.preventDefault(),d("Hang on \u2014 a photo is still converting.","err"))},!0);function u(f){return function(p){var y=p&&p.file;return y?Id(y).then(function(w){return w?(c++,l(),import("./heic-to-CN7JBE7H.js").then(function(D){var L=D.heicTo||D.default&&D.default.heicTo;return L({blob:y,type:"image/jpeg",quality:.85})}).then(function(D){var L=new File([D],zd(y.name),{type:"image/jpeg"});f.addFile(L)}).catch(function(){d("A photo couldn\u2019t be converted and was skipped \u2014 the others are fine.","err")}).then(function(){c--,l()}),!1):!0}):!0}}var g=0;(function f(){var p=window.GravFilePond&&window.GravFilePond.getInstances?window.GravFilePond.getInstances():[];if(!p.length){g++<120&&setTimeout(f,50);return}p.forEach(function(y){y&&!y._heicHooked&&(y._heicHooked=!0,y.setOptions({beforeAddFile:u(y)}))})})()}function vr(a){return document.querySelector('[name="data['+a+']"]')}function Hd(){var a=Array.prototype.slice.call(document.querySelectorAll(".advanced-field"));if(a.length){var c=[];if(a.forEach(function(g){var f=g.closest(".form-field");f&&c.indexOf(f)===-1&&c.push(f)}),!!c.length){var d=document.createElement("details");d.className="more-options";var l=document.createElement("summary");l.className="more-options__summary",l.textContent="More options",d.appendChild(l),c[0].parentNode.insertBefore(d,c[0]),c.forEach(function(g){d.appendChild(g)});var u=c.some(function(g){var f=g.querySelector('input[type="text"]');if(f&&f.value.trim())return!0;var p=g.querySelector('input[type="radio"]:checked');return!!(p&&p.value&&p.value!=="0")});u&&(d.open=!0)}}}var Rd={0:"Sunny",1:"Partly cloudy",2:"Partly cloudy",3:"Cloudy",45:"Foggy",48:"Foggy",51:"Drizzle",53:"Drizzle",55:"Drizzle",56:"Drizzle",57:"Drizzle",61:"Rain",63:"Rain",65:"Rain",66:"Rain",67:"Rain",80:"Rain",81:"Rain",82:"Rain",71:"Snow",73:"Snow",75:"Snow",77:"Snow",85:"Snow",86:"Snow",95:"Thunderstorm",96:"Thunderstorm",99:"Thunderstorm"};function $t(a,c,d){a&&(a.className="form-status"+(d?" form-status--"+d:""),a.textContent=c||"")}function Pd(){var a=document.getElementById("get-location"),c=document.getElementById("get-weather");if(!a&&!c)return;var d=document.getElementById("location-status"),l=document.getElementById("weather-status");function u(){var f=vr("lat"),p=vr("lng"),y=f?f.value.trim():"",w=p?p.value.trim():"";return y&&w?{lat:y,lng:w}:null}function g(){if(c){var f=!!u();c.disabled=!f,c.title=f?"":"Get location first"}}g(),a&&a.addEventListener("click",function(){if(!navigator.geolocation){$t(d,"Geolocation is not supported on this device.","err");return}a.classList.add("is-loading"),a.disabled=!0,$t(d,"Getting location\u2026"),navigator.geolocation.getCurrentPosition(function(f){var p=f.coords.latitude.toFixed(6),y=f.coords.longitude.toFixed(6),w=vr("lat"),D=vr("lng");w&&(w.value=p),D&&(D.value=y),a.classList.remove("is-loading"),a.disabled=!1,$t(d,"\u2713 Location captured \xB7 "+p+", "+y,"ok"),g()},function(f){a.classList.remove("is-loading"),a.disabled=!1,$t(d,"\u2717 "+(f&&f.message?f.message:"Could not get location")+" \u2014 enter coordinates manually if needed.","err")},{enableHighAccuracy:!0,timeout:15e3})}),c&&c.addEventListener("click",function(){var f=u();if(!f){$t(l,"Get location first, then fetch weather.","err");return}c.classList.add("is-loading"),c.disabled=!0,$t(l,"Fetching weather\u2026");var p="https://api.open-meteo.com/v1/forecast?latitude="+f.lat+"&longitude="+f.lng+"¤t=temperature_2m,weather_code&temperature_unit=celsius";fetch(p).then(function(y){return y.json()}).then(function(y){var w=Math.round(y.current.temperature_2m),D=Rd[y.current.weather_code]||"Cloudy",L=vr("weather_temp_c"),T=vr("weather_desc");L&&(L.value=w),T&&(T.value=D),c.classList.remove("is-loading"),g(),$t(l,"\u2713 Weather set \xB7 "+D+" \xB7 "+w+"\xB0C (edit above if needed)","ok")}).catch(function(){c.classList.remove("is-loading"),g(),$t(l,"\u2717 Could not fetch weather \u2014 set it manually above.","err")})})}function _d(){var a={title:"Title",content:"Content"},c=document.querySelector('form[name="new-entry"]');if(!c)return;function d(){c.querySelectorAll(".field-error").forEach(function(u){u.remove()}),c.querySelectorAll(".field-invalid").forEach(function(u){u.classList.remove("field-invalid")})}function l(u,g){u.classList.add("field-invalid");var f=document.createElement("span");f.className="field-error",f.textContent=g,u.parentNode.insertBefore(f,u.nextSibling)}c.addEventListener("submit",function(u){d();var g=null;Object.keys(a).forEach(function(f){var p=vr(f);p&&!String(p.value).trim()&&(l(p,a[f]+" is required."),g||(g=p))}),g&&(u.preventDefault(),g.focus(),g.scrollIntoView({behavior:"smooth",block:"center"}))})}var ua="intotheeast:new-entry-draft";function Wd(a){return Array.prototype.slice.call(a.querySelectorAll('[name^="data["]')).filter(function(c){if(c.type==="file")return!1;var d=c.name;return d.indexOf("data[_json")!==0&&d.indexOf("data[photos")!==0})}function qd(){var a=document.querySelector(".filepond-root, .form-input-file");if(!(!a||!a.parentNode)&&!a.parentNode.querySelector(".photo-reauth-hint")){var c=document.createElement("p");c.className="photo-reauth-hint is-shown",c.textContent="Your text was restored \u2014 photos need re-selecting (they can\u2019t be saved in a draft).",a.parentNode.insertBefore(c,a.nextSibling)}}function Ud(){var a=document.querySelector('form[name="new-entry"]');if(!a)return;if(document.querySelector(".notices.success")){try{localStorage.removeItem(ua)}catch{}return}function c(){var g={};Wd(a).forEach(function(f){f.type==="radio"?f.checked&&(g[f.name]=f.value):g[f.name]=f.value});try{localStorage.setItem(ua,JSON.stringify(g))}catch{}}var d=null;try{d=localStorage.getItem(ua)}catch{d=null}if(d){var l=null;try{l=JSON.parse(d)}catch{l=null}if(l){var u=!1;Object.keys(l).forEach(function(g){var f=l[g];if(f!=null&&String(f).trim()&&(u=!0),g!=="data[content]"){var p=a.querySelectorAll('input[type="radio"][name="'+g+'"]');if(p.length){p.forEach(function(w){w.checked=w.value===f});return}var y=a.querySelector('[name="'+g+'"]');y&&y.type!=="file"&&(y.value=f)}}),window.postFormEditor&&l["data[content]"]!=null&&window.postFormEditor.value(l["data[content]"]),u&&qd()}}a.addEventListener("input",c),a.addEventListener("change",c),window.postFormEditor&&window.postFormEditor.codemirror.on("change",c)}function Fu(){window.postFormEditor=Bd(),Ud(),Od(),Hd(),Pd(),_d()}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Fu):Fu(); +Maximum file size is #image_max_size#.`,importError:"Something went wrong when uploading the image #image_name#."};function J(a){a=a||{},a.parent=this;var c=!0;if(a.autoDownloadFontAwesome===!1&&(c=!1),a.autoDownloadFontAwesome!==!0)for(var d=document.styleSheets,l=0;l-1&&(c=!1);if(c){var u=document.createElement("link");u.rel="stylesheet",u.href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css",document.getElementsByTagName("head")[0].appendChild(u)}if(a.element)this.element=a.element;else if(a.element===null){console.log("EasyMDE: Error. No element was found.");return}if(a.toolbar===void 0){a.toolbar=[];for(var g in dr)Object.prototype.hasOwnProperty.call(dr,g)&&(g.indexOf("separator-")!=-1&&a.toolbar.push("|"),(dr[g].default===!0||a.showIcons&&a.showIcons.constructor===Array&&a.showIcons.indexOf(g)!=-1)&&a.toolbar.push(g))}if(Object.prototype.hasOwnProperty.call(a,"previewClass")||(a.previewClass="editor-preview"),Object.prototype.hasOwnProperty.call(a,"status")||(a.status=["autosave","lines","words","cursor"],a.uploadImage&&a.status.unshift("upload-image")),a.previewRender||(a.previewRender=function(p){return this.parent.markdown(p)}),a.parsingConfig=Rt({highlightFormatting:!0},a.parsingConfig||{}),a.insertTexts=Rt({},Fd,a.insertTexts||{}),a.promptTexts=Rt({},Ed,a.promptTexts||{}),a.blockStyles=Rt({},Ld,a.blockStyles||{}),a.autosave!=null&&(a.autosave.timeFormat=Rt({},Ad,a.autosave.timeFormat||{})),a.iconClassMap=Rt({},ke,a.iconClassMap||{}),a.shortcuts=Rt({},bd,a.shortcuts||{}),a.maxHeight=a.maxHeight||void 0,a.direction=a.direction||"ltr",typeof a.maxHeight<"u"?a.minHeight=a.maxHeight:a.minHeight=a.minHeight||"300px",a.errorCallback=a.errorCallback||function(p){alert(p)},a.uploadImage=a.uploadImage||!1,a.imageMaxSize=a.imageMaxSize||2097152,a.imageAccept=a.imageAccept||"image/png, image/jpeg, image/gif, image/avif",a.imageTexts=Rt({},Td,a.imageTexts||{}),a.errorMessages=Rt({},Md,a.errorMessages||{}),a.imagePathAbsolute=a.imagePathAbsolute||!1,a.imageCSRFName=a.imageCSRFName||"csrfmiddlewaretoken",a.imageCSRFHeader=a.imageCSRFHeader||!1,a.imageInputName=a.imageInputName||"image",a.autosave!=null&&a.autosave.unique_id!=null&&a.autosave.unique_id!=""&&(a.autosave.uniqueId=a.autosave.unique_id),a.overlayMode&&a.overlayMode.combine===void 0&&(a.overlayMode.combine=!0),this.options=a,this.render(),a.initialValue&&(!this.options.autosave||this.options.autosave.foundSavedValue!==!0)&&this.value(a.initialValue),a.uploadImage){var f=this;this.codemirror.on("dragenter",function(p,y){f.updateStatusBar("upload-image",f.options.imageTexts.sbOnDragEnter),y.stopPropagation(),y.preventDefault()}),this.codemirror.on("dragend",function(p,y){f.updateStatusBar("upload-image",f.options.imageTexts.sbInit),y.stopPropagation(),y.preventDefault()}),this.codemirror.on("dragleave",function(p,y){f.updateStatusBar("upload-image",f.options.imageTexts.sbInit),y.stopPropagation(),y.preventDefault()}),this.codemirror.on("dragover",function(p,y){f.updateStatusBar("upload-image",f.options.imageTexts.sbOnDragEnter),y.stopPropagation(),y.preventDefault()}),this.codemirror.on("drop",function(p,y){y.stopPropagation(),y.preventDefault(),a.imageUploadFunction?f.uploadImagesUsingCustomFunction(a.imageUploadFunction,y.dataTransfer.files):f.uploadImages(y.dataTransfer.files)}),this.codemirror.on("paste",function(p,y){a.imageUploadFunction?f.uploadImagesUsingCustomFunction(a.imageUploadFunction,y.clipboardData.files):f.uploadImages(y.clipboardData.files)})}}J.prototype.uploadImages=function(a,c,d){if(a.length!==0){for(var l=[],u=0;u=2){var R=N[1];if(c.imagesPreviewHandler){var H=c.imagesPreviewHandler(N[1]);typeof H=="string"&&(R=H)}if(window.EMDEimagesCache[R])M(B,window.EMDEimagesCache[R]);else{window.EMDEimagesCache[R]={};var _=document.createElement("img");_.onload=function(){window.EMDEimagesCache[R]={naturalWidth:_.naturalWidth,naturalHeight:_.naturalHeight,url:R},M(B,window.EMDEimagesCache[R])},_.src=R}}}})}this.codemirror.on("update",function(){z()}),this.gui.sideBySide=this.createSideBySide(),this._rendered=this.element,(c.autofocus===!0||a.autofocus)&&this.codemirror.focus();var I=this.codemirror;setTimeout(function(){I.refresh()}.bind(I),0)};J.prototype.cleanup=function(){document.removeEventListener("keydown",this.documentOnKeyDown)};function Cu(){if(typeof localStorage=="object")try{localStorage.setItem("smde_localStorage",1),localStorage.removeItem("smde_localStorage")}catch{return!1}else return!1;return!0}J.prototype.autosave=function(){if(Cu()){var a=this;if(this.options.autosave.uniqueId==null||this.options.autosave.uniqueId==""){console.log("EasyMDE: You must set a uniqueId to use the autosave feature");return}this.options.autosave.binded!==!0&&(a.element.form!=null&&a.element.form!=null&&a.element.form.addEventListener("submit",function(){clearTimeout(a.autosaveTimeoutId),a.autosaveTimeoutId=void 0,localStorage.removeItem("smde_"+a.options.autosave.uniqueId)}),this.options.autosave.binded=!0),this.options.autosave.loaded!==!0&&(typeof localStorage.getItem("smde_"+this.options.autosave.uniqueId)=="string"&&localStorage.getItem("smde_"+this.options.autosave.uniqueId)!=""&&(this.codemirror.setValue(localStorage.getItem("smde_"+this.options.autosave.uniqueId)),this.options.autosave.foundSavedValue=!0),this.options.autosave.loaded=!0);var c=a.value();c!==""?localStorage.setItem("smde_"+this.options.autosave.uniqueId,c):localStorage.removeItem("smde_"+this.options.autosave.uniqueId);var d=document.getElementById("autosaved");if(d!=null&&d!=null&&d!=""){var l=new Date,u=new Intl.DateTimeFormat([this.options.autosave.timeFormat.locale,"en-US"],this.options.autosave.timeFormat.format).format(l),g=this.options.autosave.text==null?"Autosaved: ":this.options.autosave.text;d.innerHTML=g+u}}else console.log("EasyMDE: localStorage not available, cannot autosave")};J.prototype.clearAutosavedValue=function(){if(Cu()){if(this.options.autosave==null||this.options.autosave.uniqueId==null||this.options.autosave.uniqueId==""){console.log("EasyMDE: You must set a uniqueId to clear the autosave value");return}localStorage.removeItem("smde_"+this.options.autosave.uniqueId)}else console.log("EasyMDE: localStorage not available, cannot autosave")};J.prototype.openBrowseFileWindow=function(a,c){var d=this,l=this.gui.toolbar.getElementsByClassName("imageInput")[0];l.click();function u(g){d.options.imageUploadFunction?d.uploadImagesUsingCustomFunction(d.options.imageUploadFunction,g.target.files):d.uploadImages(g.target.files,a,c),l.removeEventListener("change",u)}l.addEventListener("change",u)};J.prototype.uploadImage=function(a,c,d){var l=this;c=c||function(w){yu(l,w)};function u(y){l.updateStatusBar("upload-image",y),setTimeout(function(){l.updateStatusBar("upload-image",l.options.imageTexts.sbInit)},1e4),d&&typeof d=="function"&&d(y),l.options.errorCallback(y)}function g(y){var w=l.options.imageTexts.sizeUnits.split(",");return y.replace("#image_name#",a.name).replace("#image_size#",pn(a.size,w)).replace("#image_max_size#",pn(l.options.imageMaxSize,w))}if(a.size>this.options.imageMaxSize){u(g(this.options.errorMessages.fileTooLarge));return}var f=new FormData;f.append("image",a),l.options.imageCSRFToken&&!l.options.imageCSRFHeader&&f.append(l.options.imageCSRFName,l.options.imageCSRFToken);var p=new XMLHttpRequest;p.upload.onprogress=function(y){if(y.lengthComputable){var w=""+Math.round(y.loaded*100/y.total);l.updateStatusBar("upload-image",l.options.imageTexts.sbProgress.replace("#file_name#",a.name).replace("#progress#",w))}},p.open("POST",this.options.imageUploadEndpoint),l.options.imageCSRFToken&&l.options.imageCSRFHeader&&p.setRequestHeader(l.options.imageCSRFName,l.options.imageCSRFToken),p.onload=function(){try{var y=JSON.parse(this.responseText)}catch{console.error("EasyMDE: The server did not return a valid json."),u(g(l.options.errorMessages.importError));return}this.status===200&&y&&!y.error&&y.data&&y.data.filePath?c((l.options.imagePathAbsolute?"":window.location.origin+"/")+y.data.filePath):y.error&&y.error in l.options.errorMessages?u(g(l.options.errorMessages[y.error])):y.error?u(g(y.error)):(console.error("EasyMDE: Received an unexpected response after uploading the image."+this.status+" ("+this.statusText+")"),u(g(l.options.errorMessages.importError)))},p.onerror=function(y){console.error("EasyMDE: An unexpected error occurred when trying to upload the image."+y.target.status+" ("+y.target.statusText+")"),u(l.options.errorMessages.importError)},p.send(f)};J.prototype.uploadImageUsingCustomFunction=function(a,c){var d=this;function l(f){yu(d,f)}function u(f){var p=g(f);d.updateStatusBar("upload-image",p),setTimeout(function(){d.updateStatusBar("upload-image",d.options.imageTexts.sbInit)},1e4),d.options.errorCallback(p)}function g(f){var p=d.options.imageTexts.sizeUnits.split(",");return f.replace("#image_name#",c.name).replace("#image_size#",pn(c.size,p)).replace("#image_max_size#",pn(d.options.imageMaxSize,p))}a.apply(this,[c,l,u])};J.prototype.setPreviewMaxHeight=function(){var a=this.codemirror,c=a.getWrapperElement(),d=c.nextSibling,l=parseInt(window.getComputedStyle(c).paddingTop),u=parseInt(window.getComputedStyle(c).borderTopWidth),g=parseInt(this.options.maxHeight),f=g+l*2+u*2,p=f.toString()+"px";d.style.height=p};J.prototype.createSideBySide=function(){var a=this.codemirror,c=a.getWrapperElement(),d=c.nextSibling;if(!d||!d.classList.contains("editor-preview-side")){if(d=document.createElement("div"),d.className="editor-preview-side",this.options.previewClass)if(Array.isArray(this.options.previewClass))for(var l=0;l0),c>0)d("Converting "+c+" photo"+(c>1?"s":"")+"\u2026");else{var p=Su();p&&/Converting/.test(p.textContent)&&d("")}}a.addEventListener("submit",function(f){c>0&&(f.preventDefault(),d("Hang on \u2014 a photo is still converting.","err"))},!0);function u(f){return function(p){var y=p&&p.file;return y?Id(y).then(function(w){return w?(c++,l(),import("./heic-to-CN7JBE7H.js").then(function(D){var L=D.heicTo||D.default&&D.default.heicTo;return L({blob:y,type:"image/jpeg",quality:.85})}).then(function(D){var L=new File([D],zd(y.name),{type:"image/jpeg"});f.addFile(L)}).catch(function(){d("A photo couldn\u2019t be converted and was skipped \u2014 the others are fine.","err")}).then(function(){c--,l()}),!1):!0}):!0}}var g=0;(function f(){var p=window.GravFilePond&&window.GravFilePond.getInstances?window.GravFilePond.getInstances():[];if(!p.length){g++<120&&setTimeout(f,50);return}p.forEach(function(y){y&&!y._heicHooked&&(y._heicHooked=!0,y.setOptions({beforeAddFile:u(y)}))})})()}function vr(a){return document.querySelector('[name="data['+a+']"]')}function Hd(){var a=Array.prototype.slice.call(document.querySelectorAll(".advanced-field"));if(a.length){var c=[];if(a.forEach(function(g){var f=g.closest(".form-field");f&&c.indexOf(f)===-1&&c.push(f)}),!!c.length){var d=document.createElement("details");d.className="more-options";var l=document.createElement("summary");l.className="more-options__summary",l.textContent="More options",d.appendChild(l),c[0].parentNode.insertBefore(d,c[0]),c.forEach(function(g){d.appendChild(g)});var u=c.some(function(g){var f=g.querySelector('input[type="text"]');if(f&&f.value.trim())return!0;var p=g.querySelector('input[type="radio"]:checked');return!!(p&&p.value&&p.value!=="0")});u&&(d.open=!0)}}}var Rd={0:"Sunny",1:"Partly cloudy",2:"Partly cloudy",3:"Cloudy",45:"Foggy",48:"Foggy",51:"Drizzle",53:"Drizzle",55:"Drizzle",56:"Drizzle",57:"Drizzle",61:"Rain",63:"Rain",65:"Rain",66:"Rain",67:"Rain",80:"Rain",81:"Rain",82:"Rain",71:"Snow",73:"Snow",75:"Snow",77:"Snow",85:"Snow",86:"Snow",95:"Thunderstorm",96:"Thunderstorm",99:"Thunderstorm"};function $t(a,c,d){a&&(a.className="form-status"+(d?" form-status--"+d:""),a.textContent=c||"")}function Pd(){var a=document.getElementById("get-location"),c=document.getElementById("get-weather");if(!a&&!c)return;var d=document.getElementById("location-status"),l=document.getElementById("weather-status");function u(){var f=vr("lat"),p=vr("lng"),y=f?f.value.trim():"",w=p?p.value.trim():"";return y&&w?{lat:y,lng:w}:null}function g(){if(c){var f=!!u();c.disabled=!f,c.title=f?"":"Get location first"}}g(),a&&a.addEventListener("click",function(){if(!navigator.geolocation){$t(d,"Geolocation is not supported on this device.","err");return}a.classList.add("is-loading"),a.disabled=!0,$t(d,"Getting location\u2026"),navigator.geolocation.getCurrentPosition(function(f){var p=f.coords.latitude.toFixed(6),y=f.coords.longitude.toFixed(6),w=vr("lat"),D=vr("lng");w&&(w.value=p),D&&(D.value=y),a.classList.remove("is-loading"),a.disabled=!1,$t(d,"\u2713 Location captured \xB7 "+p+", "+y,"ok"),g()},function(f){a.classList.remove("is-loading"),a.disabled=!1,$t(d,"\u2717 "+(f&&f.message?f.message:"Could not get location")+" \u2014 enter coordinates manually if needed.","err")},{enableHighAccuracy:!0,timeout:15e3})}),c&&c.addEventListener("click",function(){var f=u();if(!f){$t(l,"Get location first, then fetch weather.","err");return}c.classList.add("is-loading"),c.disabled=!0,$t(l,"Fetching weather\u2026");var p="https://api.open-meteo.com/v1/forecast?latitude="+f.lat+"&longitude="+f.lng+"¤t=temperature_2m,weather_code&temperature_unit=celsius";fetch(p).then(function(y){return y.json()}).then(function(y){var w=Math.round(y.current.temperature_2m),D=Rd[y.current.weather_code]||"Cloudy",L=vr("weather_temp_c"),T=vr("weather_desc");L&&(L.value=w),T&&(T.value=D),c.classList.remove("is-loading"),g(),$t(l,"\u2713 Weather set \xB7 "+D+" \xB7 "+w+"\xB0C (edit above if needed)","ok")}).catch(function(){c.classList.remove("is-loading"),g(),$t(l,"\u2717 Could not fetch weather \u2014 set it manually above.","err")})})}function _d(){var a={title:"Title",content:"Content"},c=document.querySelector('form[name="new-entry"]');if(!c)return;function d(){c.querySelectorAll(".field-error").forEach(function(u){u.remove()}),c.querySelectorAll(".field-invalid").forEach(function(u){u.classList.remove("field-invalid")})}function l(u,g){u.classList.add("field-invalid");var f=document.createElement("span");f.className="field-error",f.textContent=g,u.parentNode.insertBefore(f,u.nextSibling)}c.addEventListener("submit",function(u){d();var g=null;Object.keys(a).forEach(function(f){var p=vr(f);p&&!String(p.value).trim()&&(l(p,a[f]+" is required."),g||(g=p))}),g&&(u.preventDefault(),g.focus(),g.scrollIntoView({behavior:"smooth",block:"center"}))})}var ua="intotheeast:new-entry-draft";function Wd(a){return Array.prototype.slice.call(a.querySelectorAll('[name^="data["]')).filter(function(c){if(c.type==="file")return!1;var d=c.name;return d.indexOf("data[_json")!==0&&d.indexOf("data[photos")!==0})}function qd(){var a=document.querySelector(".filepond-root, .form-input-file");if(!(!a||!a.parentNode)&&!a.parentNode.querySelector(".photo-reauth-hint")){var c=document.createElement("p");c.className="photo-reauth-hint is-shown",c.textContent="Your text was restored \u2014 photos need re-selecting (they can\u2019t be saved in a draft).",a.parentNode.insertBefore(c,a.nextSibling)}}function Ud(){var a=document.querySelector('form[name="new-entry"]');if(!a)return;if(document.querySelector(".notices.success")){try{localStorage.removeItem(ua)}catch{}return}function c(){var g={};Wd(a).forEach(function(f){f.type==="radio"?f.checked&&(g[f.name]=f.value):g[f.name]=f.value});try{localStorage.setItem(ua,JSON.stringify(g))}catch{}}var d=null;try{d=localStorage.getItem(ua)}catch{d=null}if(d){var l=null;try{l=JSON.parse(d)}catch{l=null}if(l){var u=!1;Object.keys(l).forEach(function(g){var f=l[g];if(f!=null&&String(f).trim()&&(u=!0),g!=="data[content]"){var p=a.querySelectorAll('input[type="radio"][name="'+g+'"]');if(p.length){p.forEach(function(w){w.checked=w.value===f});return}var y=a.querySelector('[name="'+g+'"]');y&&y.type!=="file"&&(y.value=f)}}),window.postFormEditor&&l["data[content]"]!=null&&window.postFormEditor.value(l["data[content]"]),u&&qd()}}a.addEventListener("input",c),a.addEventListener("change",c),window.postFormEditor&&window.postFormEditor.codemirror.on("change",c)}function jd(){var a=document.querySelector(".post-form-wrap"),c=document.querySelector(".post-form-wrap .notices.success, .post-form-wrap .notices.green");if(!(!a||!c)){var d=document.createElement("div");d.className="post-success";var l=document.createElement("p");l.className="post-success__title",l.textContent="\u2713 Saved to your journal.",d.appendChild(l);var u=document.createElement("div");u.className="post-success__actions";var g=a.getAttribute("data-trip-url");if(g){var f=document.createElement("a");f.className="post-success__view",f.href=g,f.textContent="View your journal \u2192",u.appendChild(f)}var p=document.createElement("a");p.className="post-success__again",p.href=window.location.pathname,p.textContent="Post another",u.appendChild(p),d.appendChild(u),c.parentNode.insertBefore(d,c.nextSibling),c.scrollIntoView({behavior:"smooth",block:"start"})}}function Fu(){window.postFormEditor=Bd(),jd(),Ud(),Od(),Hd(),Pd(),_d()}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Fu):Fu(); diff --git a/themes/intotheeast/js/src/post-form.css b/themes/intotheeast/js/src/post-form.css index 658555c..05af444 100644 --- a/themes/intotheeast/js/src/post-form.css +++ b/themes/intotheeast/js/src/post-form.css @@ -132,25 +132,68 @@ .btn-action[disabled] { opacity: 0.5; cursor: not-allowed; } @keyframes post-spin { to { transform: rotate(360deg); } } -/* Grav form save/validation messages (success + error from the server) */ -.post-form-wrap .form-messages { margin-bottom: var(--space-5); } -.post-form-wrap .form-message { - padding: 0.875rem 1rem; +/* Grav renders form status as

. + The theme doesn't style .notices, so on the dark background it was nearly + invisible — style it prominently here. */ +.post-form-wrap .notices { + padding: 1rem 1.1rem; border-radius: var(--radius-md); - font-size: var(--text-sm); - margin-bottom: var(--space-2); -} -.post-form-wrap .form-message.notice, -.post-form-wrap .form-message.error { - background: var(--color-accent-light); + font-size: var(--text-base); + margin: 0 0 var(--space-5); + background: var(--color-canvas); color: var(--color-ink); - border: 1px solid var(--color-error); + border-left: 4px solid var(--color-accent); } -.post-form-wrap .form-message.success { +.post-form-wrap .notices p { margin: 0; } +.post-form-wrap .notices.error, +.post-form-wrap .notices.red { border-left-color: var(--color-error); } +.post-form-wrap .notices.success, +.post-form-wrap .notices.green { border-left-color: var(--color-accent); } + +/* Post-success confirmation CTA (injected by post-form.js). */ +.post-success { + margin: 0 0 var(--space-5); + padding: 1.1rem; + border-radius: var(--radius-md); background: var(--color-accent-light); - color: var(--color-ink); border: 1px solid var(--color-accent); } +.post-success__title { + font-family: var(--font-ui); + font-size: var(--text-md); + font-weight: 600; + color: var(--color-ink); + margin: 0 0 var(--space-3); +} +.post-success__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); } +.post-success__view { + flex: 1; + min-width: 140px; + text-align: center; + padding: 0.8rem 1rem; + min-height: 44px; + border-radius: var(--radius-md); + background: var(--color-accent); + color: var(--color-accent-on); + font-weight: 600; + text-decoration: none; +} +.post-success__again { + flex: 1; + min-width: 140px; + text-align: center; + padding: 0.8rem 1rem; + min-height: 44px; + border-radius: var(--radius-md); + background: transparent; + color: var(--color-ink); + border: 1px solid var(--color-border); + font-weight: 600; + text-decoration: none; +} + +/* Hide FilePond's "Powered by PQINA" credit. */ +.filepond--credits { display: none !important; } /* ── EasyMDE — Field Notes dark theme (U5) ─────────────────── */ .EasyMDEContainer .CodeMirror { diff --git a/themes/intotheeast/js/src/post-form.js b/themes/intotheeast/js/src/post-form.js index 6748e46..fe973e1 100644 --- a/themes/intotheeast/js/src/post-form.js +++ b/themes/intotheeast/js/src/post-form.js @@ -457,11 +457,54 @@ function initDraft() { } } +/* ── Post-success confirmation (issue: message was off-screen) ───── + * After a successful submit the page re-renders with Grav's success notice at + * the top of a long, reset form — easy to miss on mobile. Scroll it into view + * and add a "View your journal" / "Post another" CTA the owner can act on. + */ +function initSuccessState() { + var wrap = document.querySelector('.post-form-wrap'); + var notice = document.querySelector('.post-form-wrap .notices.success, .post-form-wrap .notices.green'); + if (!wrap || !notice) return; + + var panel = document.createElement('div'); + panel.className = 'post-success'; + + var title = document.createElement('p'); + title.className = 'post-success__title'; + title.textContent = '✓ Saved to your journal.'; + panel.appendChild(title); + + var actions = document.createElement('div'); + actions.className = 'post-success__actions'; + + var tripUrl = wrap.getAttribute('data-trip-url'); + if (tripUrl) { + var view = document.createElement('a'); + view.className = 'post-success__view'; + view.href = tripUrl; + view.textContent = 'View your journal →'; + actions.appendChild(view); + } + + var again = document.createElement('a'); + again.className = 'post-success__again'; + again.href = window.location.pathname; // reload /post fresh + again.textContent = 'Post another'; + actions.appendChild(again); + + panel.appendChild(actions); + notice.parentNode.insertBefore(panel, notice.nextSibling); + + notice.scrollIntoView({ behavior: 'smooth', block: 'start' }); +} + /* ── Boot ────────────────────────────────────────────────── */ function boot() { // Exposed for U6 draft restore and the Playwright specs; null when this // bundle loads on a page without the content field. window.postFormEditor = initEditor(); + initSuccessState(); // Restore before disclosure/geo so their on-load checks (auto-open, // weather-button enable) see the restored values. initDraft(); diff --git a/themes/intotheeast/templates/post-form.html.twig b/themes/intotheeast/templates/post-form.html.twig index 63291e6..6ff60f0 100644 --- a/themes/intotheeast/templates/post-form.html.twig +++ b/themes/intotheeast/templates/post-form.html.twig @@ -1,12 +1,18 @@ {% extends 'default.html.twig' %} {% block head_assets %} + {# FilePond's own CSS must load from the . The filepond field registers + it via assets.addCss() during body rendering, which is too late for the + theme's head-only {{ assets.css() }} — so the widget renders unstyled + (giant overlapping tiles) unless we add it here. #} + {% do assets.addCss('plugin://form/assets/filepond/filepond.min.css') %} + {% do assets.addCss('plugin://form/assets/filepond/filepond-plugin-image-preview.min.css') %} {% do assets.addCss('theme://css-compiled/post-form.css') %} {% endblock %} {% block content %} -
+

New Entry

{% include 'forms/form.html.twig' ignore missing %}