(window.textWebpackJsonp=window.textWebpackJsonp||[]).push([[193],{144:function(t,n,e){"use strict";e.r(n);var r=e(754),o=e(229);for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);e(755),e(756);var a=e(34),s=Object(a.a)(o.default,r.a,r.b,!1,null,"681dd80c",null);n.default=s.exports},198:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getRandomGuestName=n.endpointUrl=n.documentReady=void 0;var r=e(53);
/*
 * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
 *
 * @author Julius Härtl <jus@bitgrid.net>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */n.documentReady=function(t){(document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState)?setTimeout(t,0):document.addEventListener("DOMContentLoaded",t)};var o=(0,r.generateUrl)("/apps/text");n.endpointUrl=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n?"".concat(o,"/public/").concat(t):"".concat(o,"/").concat(t)};var i=["Artichoke","Arugula","Asparagus","Avocado","Bamboo Shoot","Bean Sprout","Bean","Beet","Belgian Endive","Bell Pepper","Bitter Melon","Bitter Gourd","Bok Choy","Broccoli","Brussels Sprout","Burdock Root","Cabbage","Calabash","Caper","Carrot","Cassava","Cauliflower","Celery","Celery Root","Celtuce","Chayote","Chinese Broccoli","Corn","Baby Corn","Cucumber","English Cucumber","Gherkin","Pickling Cucumber","Daikon Radish","Edamame","Eggplant","Elephant Garlic","Endive","Curly","Escarole","Fennel","Fiddlehead","Galangal","Garlic","Ginger","Grape Leave","Green Bean","Wax Bean","Green","Amaranth Leave","Beet Green","Collard Green","Dandelion Green","Kale","Kohlrabi Green","Mustard Green","Rapini","Spinach","Swiss Chard","Turnip Green","Hearts of Palm","Horseradish","Jerusalem Artichoke","Jícama","Kale","Curly","Lacinato","Ornamental","Kohlrabi","Leeks","Lemongrass","Lettuce","Butterhead","Iceberg","Leaf","Romaine","Lotus Root","Lotus Seed","Mushroom","Napa Cabbage","Nopales","Okra","Olive","Onion","Green Onion","Parsley","Parsley Root","Parsnip","Pepper","Plantain","Potato","Pumpkin","Purslane","Radicchio","Radish","Rutabaga","Shallots","Spinach","Squash","Sweet Potato","Swiss Chard","Taro","Tomatillo","Tomato","Turnip","Water Chestnut","Water Spinach","Watercress","Winter Melon","Yams","Zucchini"];n.getRandomGuestName=function(){return i[Math.floor(Math.random()*i.length)]}},207:function(t,n,e){"use strict";e.r(n);var r=e(753),o=e(227);for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);e(757);var a=e(34),s=Object(a.a)(o.default,r.a,r.b,!1,null,"3ea77884",null);n.default=s.exports},227:function(t,n,e){"use strict";e.r(n);var r=e(228),o=e.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(i);n.default=o.a},228:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=i(e(22)),o=i(e(144));function i(t){return t&&t.__esModule?t:{default:t}}function a(t,n,e,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void e(t)}s.done?n(c):Promise.resolve(c).then(r,o)}function s(t){return function(){var n=this,e=arguments;return new Promise((function(r,o){var i=t.apply(n,e);function s(t){a(i,r,o,s,c,"next",t)}function c(t){a(i,r,o,s,c,"throw",t)}s(void 0)}))}}var c=r.default.observable({messages:[],mtime:0}),l=function(t,n){console.debug("callMobileMessage "+t,n);var e=t;void 0!==n&&(e={MessageName:t,Values:n});var r=null;try{r=JSON.stringify(n)}catch(t){r=null}window.DirectEditingMobileInterface&&"function"==typeof window.DirectEditingMobileInterface[t]&&(null==r?window.DirectEditingMobileInterface[t]():window.DirectEditingMobileInterface[t](r)),window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.DirectEditingMobileInterface&&window.webkit.messageHandlers.DirectEditingMobileInterface.postMessage(e),window.postMessage(e)};window.addEventListener("message",(function(t){c.messages.push(t.data),console.debug("postMessage",t)}));var u={name:"DirectEditing",components:{EditorWrapper:o.default},data:function(){return{initial:OCP.InitialState.loadState("text","file"),messages:c.messages,log:c,saving:!1}},computed:{initialSession:function(){return JSON.parse(this.initial.session)||null}},beforeMount:function(){l("loading")},mounted:function(){document.querySelector('meta[name="viewport"]').setAttribute("content","width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0")},methods:{close:function(){var t=this;return s(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.saving=!0,setTimeout(s(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.$refs.editor.close();case 2:l("close");case 3:case"end":return n.stop()}}),n)}))),0);case 2:case"end":return n.stop()}}),n)})))()},share:function(){l("share")},loaded:function(){l("loaded")}}};n.default=u},229:function(t,n,e){"use strict";e.r(n);var r=e(230),o=e.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(i);n.default=o.a},230:function(n,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=g(r(22)),i=g(r(231)),a=g(r(603)),s=r(391),c=r(198),l=r(609),u=r(233),d=r(213),p=r(215),f=r(692),h=g(r(696)),A=g(r(405)),m=g(r(217)),C=r(220),v=r(214);function g(t){return t&&t.__esModule?t:{default:t}}function b(t,n,e,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void e(t)}s.done?n(c):Promise.resolve(c).then(r,o)}var y={name:"EditorWrapper",components:{EditorContent:d.EditorContent,MenuBar:function(){return Promise.all([r.e(0),r.e(202),r.e(196)]).then(r.bind(null,708))},MenuBubble:function(){return Promise.all([r.e(0),r.e(202),r.e(196)]).then(r.bind(null,715))},ReadOnlyEditor:function(){return Promise.all([r.e(192),r.e(201),r.e(193)]).then(r.bind(null,717))},CollisionResolveDialog:function(){return Promise.all([r.e(192),r.e(201),r.e(193)]).then(r.bind(null,720))},GuestNameDialog:function(){return Promise.all([r.e(0),r.e(191),r.e(195)]).then(r.bind(null,722))},SessionList:function(){return Promise.all([r.e(0),r.e(191),r.e(194)]).then(r.bind(null,750))}},directives:{Tooltip:m.default},mixins:[h.default,A.default],props:{initialSession:{type:Object,default:null},relativePath:{type:String,default:null},fileId:{type:Number,default:null},active:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!0},shareToken:{type:String,default:null},mime:{type:String,default:null},autohide:{type:Boolean,default:!1},isDirectEditing:{type:Boolean,default:!1}},data:function(){return{IDLE_TIMEOUT:s.IDLE_TIMEOUT,tiptap:null,syncService:null,document:null,sessions:[],currentSession:null,filteredSessions:{},idle:!1,dirty:!1,initialLoading:!1,lastSavedString:"",syncError:null,hasConnectionIssue:!1,readOnly:!0,forceRecreate:!1,saveStatusPolling:null}},computed:{showAuthorAnnotations:function(){return this.$store.state.showAuthorAnnotations},lastSavedStatus:function(){return this.dirtyStateIndicator?t("text","Saving …"):t("text","Saved")},lastSavedStatusClass:function(){return this.syncError&&""!==this.lastSavedString?"error":""},dirtyStateIndicator:function(){return this.hasUnpushedChanges||this.hasUnsavedChanges},lastSavedStatusTooltip:function(){var n=t("text","Last saved {lastSaved}",{lastSaved:this.lastSavedString});return this.hasSyncCollission&&(n=t("text","The document has been changed outside of the editor. The changes cannot be applied.")),(this.hasUnpushedChanges||this.hasUnsavedChanges)&&(n+=" - "+t("text","Unsaved changes")),{content:n,placement:"bottom"}},hasSyncCollission:function(){return this.syncError&&this.syncError.type===s.ERROR_TYPE.SAVE_COLLISSION},hasUnpushedChanges:function(){return this.dirty},hasUnsavedChanges:function(){return this.document&&this.document.lastSavedVersion<this.document.currentVersion},backendUrl:function(){var t=this;return function(n){return(0,c.endpointUrl)(n,!!t.shareToken)}},hasDocumentParameters:function(){return this.fileId||this.shareToken||this.initialSession},isPublic:function(){return this.isDirectEditing||document.getElementById("isPublic")&&"1"===document.getElementById("isPublic").value},isRichEditor:function(){return"text/markdown"===this.mime},fileExtension:function(){return this.relativePath?this.relativePath.split("/").pop().split(".").pop():"txt"}},watch:{lastSavedStatus:function(){this.$refs.menubar&&this.$refs.menubar.redrawMenuBar()}},mounted:function(){this.active&&this.hasDocumentParameters&&this.initSession(),this.$parent.$emit("update:loaded",!0)},created:function(){var t=this;this.saveStatusPolling=setInterval((function(){t.updateLastSavedStatus()}),2e3)},beforeDestroy:function(){this.close()},methods:{close:function(){var t,n=this;return(t=regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(clearInterval(n.saveStatusPolling),!n.currentSession||!n.syncService){t.next=11;break}return t.prev=2,t.next=5,n.syncService.close();case 5:n.currentSession=null,n.syncService=null,t.next=11;break;case 9:t.prev=9,t.t0=t.catch(2);case 11:return t.abrupt("return",!0);case 12:case"end":return t.stop()}}),t,null,[[2,9]])})),function(){var n=this,e=arguments;return new Promise((function(r,o){var i=t.apply(n,e);function a(t){b(i,r,o,a,s,"next",t)}function s(t){b(i,r,o,a,s,"throw",t)}a(void 0)}))})()},updateLastSavedStatus:function(){this.document&&(this.lastSavedString=(0,a.default)(1e3*this.document.lastSavedVersionTime).fromNow())},initSession:function(){var t=this;if(this.hasDocumentParameters){var n=localStorage.getItem("nick")?localStorage.getItem("nick"):(0,c.getRandomGuestName)();this.syncService=new s.SyncService({shareToken:this.shareToken,filePath:this.relativePath,guestName:n,forceRecreate:this.forceRecreate,serialize:function(n){return t.isRichEditor?(0,u.createMarkdownSerializer)(t.tiptap.nodes,t.tiptap.marks).serialize(n):(0,u.serializePlainText)(t.tiptap)}}).on("opened",(function(n){var e=n.document,r=n.session;t.currentSession=r,t.document=e,t.readOnly=e.readOnly,localStorage.setItem("nick",t.currentSession.guestName)})).on("change",(function(n){var e=n.document,r=n.sessions;""===t.document.baseVersionEtag||e.baseVersionEtag===t.document.baseVersionEtag?(t.updateSessions.bind(t)(r),t.document=e,t.syncError=null,t.tiptap.setOptions({editable:!t.readOnly})):t.resolveUseServerVersion()})).on("loaded",(function(n){var e=n.documentSource;t.hasConnectionIssue=!1,(0,u.loadSyntaxHighlight)(l.extensionHighlight[t.fileExtension]?l.extensionHighlight[t.fileExtension]:t.fileExtension).then((function(n){t.tiptap=(0,u.createEditor)({content:t.isRichEditor?u.markdownit.render(e):"<pre>"+(0,i.default)(e)+"</pre>",onInit:function(n){var e=n.state;t.syncService.state=e,t.syncService.startSync()},onUpdate:function(n){var e=n.state;t.syncService.state=e},extensions:[new p.Collaboration({version:t.document.initialVersion,clientID:t.currentSession.id,debounce:200,onSendable:function(n){n.sendable;t.syncService&&t.syncService.sendSteps()},update:function(t){var n=t.steps,e=t.version,r=t.editor,o=r.state,i=r.view,a=r.schema;if(!((0,C.getVersion)(o)>e)){var s=(0,C.receiveTransaction)(o,n.map((function(t){return v.Step.fromJSON(a,t.step)})),n.map((function(t){return t.clientID})));s.setMeta("clientID",n.map((function(t){return t.clientID}))),i.dispatch(s)}}}),new f.UserColor({clientID:t.currentSession.id,color:function(n){var e=t.sessions.find((function(t){return""+t.id==""+n}));return null==e?void 0:e.color},name:function(n){var e=t.sessions.find((function(t){return""+t.id==""+n}));return null!=e&&e.userId?e.userId:null==e?void 0:e.guestName}}),new f.Keymap({"Mod-s":function(){return t.syncService.save(),!0}})],enableRichEditing:t.isRichEditor,languages:n}),t.tiptap.on("focus",(function(){t.$emit("focus")})),t.tiptap.on("blur",(function(){t.$emit("blur")})),t.syncService.state=t.tiptap.state}))})).on("sync",(function(n){var e=n.steps,r=n.document;t.hasConnectionIssue=!1;try{t.tiptap.extensions.options.collaboration.update({version:r.currentVersion,steps:e,editor:t.tiptap}),t.syncService.state=t.tiptap.state,t.updateLastSavedStatus()}catch(t){console.error("Failed to update steps in collaboration plugin",t)}t.document=r})).on("error",(function(n,e){t.tiptap.setOptions({editable:!1}),n!==s.ERROR_TYPE.SAVE_COLLISSION||t.syncError&&t.syncError.type===s.ERROR_TYPE.SAVE_COLLISSION||(t.initialLoading=!0,t.syncError={type:n,data:e}),n!==s.ERROR_TYPE.CONNECTION_FAILED||t.hasConnectionIssue||(t.hasConnectionIssue=!0,OC.Notification.showTemporary("Connection failed, reconnecting"),!1!==e.retry&&setTimeout(t.reconnect.bind(t),5e3)),n===s.ERROR_TYPE.SOURCE_NOT_FOUND&&(t.hasConnectionIssue=!0),t.$emit("ready")})).on("stateChange",(function(n){n.initialLoading&&!t.initialLoading&&(t.initialLoading=!0,t.autofocus&&t.tiptap.focus("start"),t.$emit("ready"),t.$parent.$emit("ready",!0)),Object.prototype.hasOwnProperty.call(n,"dirty")&&(t.dirty=n.dirty)})).on("idle",(function(){t.syncService.close(),t.idle=!0,t.readOnly=!0,t.tiptap.setOptions({editable:!t.readOnly})})),null===this.initialSession?this.syncService.open({fileId:this.fileId,filePath:this.relativePath}).catch((function(n){t.hasConnectionIssue=!0})):this.syncService.open({initialSession:this.initialSession}).catch((function(n){t.hasConnectionIssue=!0})),this.forceRecreate=!1}else this.$parent.$emit("error","No valid file provided")},resolveUseThisVersion:function(){this.syncService.forceSave(),this.tiptap.setOptions({editable:!this.readOnly})},resolveUseServerVersion:function(){this.forceRecreate=!0,this.reconnect()},reconnect:function(){var t=this;this.initialLoading=!1,this.hasConnectionIssue=!1,this.syncService?this.syncService.close().then((function(){t.syncService=null,t.tiptap.destroy(),t.initSession()})).catch((function(t){})):(this.syncService=null,this.tiptap.destroy(),this.initSession()),this.idle=!1},updateSessions:function(t){var n=this;this.sessions=t.sort((function(t,n){return n.lastContact-t.lastContact}));var e=this.sessions.find((function(t){return t.id===n.currentSession.id}));o.default.set(this,"currentSession",e);var r=this.sessions.map((function(t){return t.userId})),i=this.sessions.map((function(t){return t.guestId})),a=Object.keys(this.filteredSessions).filter((function(t){return!r.includes(t)&&!i.includes(t)}));for(var s in a)o.default.delete(this.filteredSessions,a[s]);for(var c in this.sessions){var l=this.sessions[c],u=l.displayName?l.userId:l.id;this.filteredSessions[u]?this.filteredSessions[u].lastContact<l.lastContact&&o.default.set(this.filteredSessions[u],"lastContact",l.lastContact):o.default.set(this.filteredSessions,u,l),l.id===this.currentSession.id&&o.default.set(this.filteredSessions[u],"isCurrent",!0)}}}};e.default=y},233:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.loadSyntaxHighlight=n.serializePlainText=n.createMarkdownSerializer=n.createEditor=n.markdownit=n.default=void 0;var r=e(213),o=e(215),i=e(620),a=e(622),s=d(e(394)),c=d(e(687)),l=e(219);e(688);var u=e(690);function d(t){return t&&t.__esModule?t:{default:t}}function p(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var r,o,i=[],a=!0,s=!1;try{for(e=e.call(t);!(a=(r=e.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==e.return||e.return()}finally{if(s)throw o}}return i}(t,n)||h(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t){return function(t){if(Array.isArray(t))return A(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||h(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,n){if(t){if("string"==typeof t)return A(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?A(t,n):void 0}}function A(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function m(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function C(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?m(Object(e),!0).forEach((function(n){v(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):m(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function v(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function g(t,n,e,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void e(t)}s.done?n(c):Promise.resolve(c).then(r,o)}var b=function(){var t,n=(t=regeneratorRuntime.mark((function t(n){var r,o,i,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=[n],o={},i=0;case 3:if(!(i<r.length)){t.next=17;break}return t.prev=4,t.next=7,e(691)("./"+r[i]);case 7:a=t.sent,o[r[i]]=a.default,t.next=14;break;case 11:return t.prev=11,t.t0=t.catch(4),t.abrupt("return",void 0);case 14:i++,t.next=3;break;case 17:if(0!==Object.keys(o).length||o.constructor!==Object){t.next=19;break}return t.abrupt("return",void 0);case 19:return t.abrupt("return",{languages:o});case 20:case"end":return t.stop()}}),t,null,[[4,11]])})),function(){var n=this,e=arguments;return new Promise((function(r,o){var i=t.apply(n,e);function a(t){g(i,r,o,a,s,"next",t)}function s(t){g(i,r,o,a,s,"throw",t)}a(void 0)}))});return function(t){return n.apply(this,arguments)}}();n.loadSyntaxHighlight=b;var y=function(t){var n=t.content,e=t.onInit,s=t.onUpdate,c=t.extensions,u=t.enableRichEditing,d=t.languages,p=[];return p=u?[new o.Heading,new o.Code,new i.Strong,new i.Italic,new i.Strike,new o.HardBreak,new o.HorizontalRule,new a.BulletList,new o.OrderedList,new o.Blockquote,new o.CodeBlock,new a.ListItem,new i.Link({openOnClick:!0}),new a.Image,new o.Placeholder({emptyNodeClass:"is-empty",emptyNodeText:(0,l.translate)("text","Add notes, lists or links …"),showOnlyWhenEditable:!0})]:[new a.PlainTextDocument,new r.Text,new o.CodeBlockHighlight(C({},d))],c=c||[],new r.Editor({content:n,onInit:e,onUpdate:s,extensions:[].concat(f(p),[new o.History]).concat(c),useBuiltInExtensions:u})};n.createEditor=y;var B=(0,s.default)("commonmark",{html:!1,breaks:!1}).enable("strikethrough").use(c.default,{enable:!0,labelAfter:!0});n.markdownit=B;var x=function(t){this.message=t};n.createMarkdownSerializer=function(t,n){var e=Object.entries(t).filter((function(t){return p(t,2)[1].toMarkdown})).reduce((function(t,n){var e=p(n,2),r=e[0],o=e[1].toMarkdown;return C(C({},t),{},v({},r,o))}),{}),r=Object.entries(n).filter((function(t){return p(t,2)[1].toMarkdown})).reduce((function(t,n){var e=p(n,2),r=e[0],o=e[1].toMarkdown;return C(C({},t),{},v({},r,o))}),{});return{serializer:new u.MarkdownSerializer(C(C({},u.defaultMarkdownSerializer.nodes),e),C(C({},u.defaultMarkdownSerializer.marks),r)),serialize:function(t,n){return this.serializer.serialize(t,C(C({},n),{},{tightLists:!0})).split("\\[").join("[").split("\\]").join("]")}}};n.serializePlainText=function(t){var n=t.getJSON();if(1!==n.content.length||void 0===n.content[0].content||1!==n.content[0].content.length){if("code_block"===n.content[0].type&&void 0===n.content[0].content)return"";throw new x("Failed to serialize document to plain text")}var e=n.content[0].content[0];if("text"!==e.type)throw new x("Failed to serialize document to plain text");return e.text};var k=y;n.default=k},236:function(t,n,e){"use strict";e.r(n);var r=e(237),o=e.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(i);n.default=o.a},237:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=(r=e(625))&&r.__esModule?r:{default:r},i=e(53);var a=["image/png","image/jpeg","image/gif","image/x-xbitmap","image/bmp","image/svg+xml"],s=function(t,n){var e=t.split("?")[1];if(void 0!==e){var r=e.split(/[&#]/);if(void 0!==r)for(var o=0;o<r.length;o++){var i=r[o].split("=");if(decodeURIComponent(i[0])===n)return decodeURIComponent(i[1])}}},c={name:"ImageView",props:["node","updateAttrs","view"],data:function(){return{imageLoaded:!1,loaded:!1,failed:!1}},computed:{imageUrl:function(){if(this.src.startsWith("http://")||this.src.startsWith("https://"))return this.src;if(this.hasPreviewUrl)return this.src;if(this.fileId)return(0,i.generateUrl)("/core/preview")+"?fileId=".concat(this.fileId,"&x=1024&y=1024&a=true");var t=FileList.getCurrentDirectory()+"/"+this.src,n=encodeURIComponent(o.default.normalize(t));return(0,i.generateUrl)("/core/preview.png")+"?file=".concat(n,"&x=1024&y=1024&a=true")},fileId:function(){return s(this.src,"fileId")},hasPreviewUrl:function(){return this.src.match(/^(\/index.php)?\/core\/preview/)||this.src.match(/^(\/index.php)?\/apps\/files_sharing\/publicpreview\//)},mimeIcon:function(){var t=s(this.src,"mimetype");return t?{backgroundImage:"url("+window.OC.MimeType.getIconUrl(t)+")"}:{}},isSupportedImage:function(){var t=s(this.src,"mimetype");return void 0===t||-1!==a.indexOf(t)},internalLinkOrImage:function(){var t=s(this.src,"fileId");return t?(0,i.generateUrl)("/f/"+t):this.src},src:{get:function(){return this.node.attrs.src},set:function(t){this.updateAttrs({src:t})}},alt:{get:function(){return this.node.attrs.alt?this.node.attrs.alt:""},set:function(t){this.updateAttrs({alt:t})}},t:function(){return function(t,n){return window.t(t,n)}}},beforeMount:function(){var t=this;if(!this.isSupportedImage)return this.failed=!0,this.imageLoaded=!1,void(this.loaded=!0);var n=new Image;n.src=this.imageUrl,n.onload=function(){t.imageLoaded=!0},n.onerror=function(){t.failed=!0,t.imageLoaded=!1,t.loaded=!0}},methods:{updateAlt:function(){this.alt=this.$refs.altInput.value},onLoaded:function(){this.loaded=!0}}};n.default=c},242:function(t,n,e){"use strict";n.a="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgdmlld2JveD0iMCAwIDE2IDE2IiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik0xMS45MjQgNC4wNjZsLTQuOTMyIDQuOTctMi44MjgtMi44M0wyLjc1IDcuNjE4bDQuMjQyIDQuMjQzIDYuMzY1LTYuMzY1LTEuNDMzLTEuNDMyeiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPgo="},255:function(t,n,e){"use strict";e.r(n);var r=e(256),o=e.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(i);n.default=o.a},256:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=e(213),i=(r=e(231))&&r.__esModule?r:{default:r},a=e(233);var s={name:"ReadOnlyEditor",components:{EditorContent:o.EditorContent},props:{content:{type:String,required:!0},isRichEditor:{type:Boolean,default:!0}},data:function(){return{editor:null}},mounted:function(){this.editor=(0,a.createEditor)({content:this.isRichEditor?a.markdownit.render(this.content):"<pre>"+(0,i.default)(this.content)+"</pre>",enableRichEditing:this.isRichEditor}),this.editor.setOptions({editable:!1})},beforeDestroy:function(){this.editor.destroy()}};n.default=s},257:function(t,n,e){"use strict";e.r(n);var r=e(258),o=e.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(i);n.default=o.a},258:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default={name:"CollisionResolveDialog"}},391:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.IDLE_TIMEOUT=n.ERROR_TYPE=n.SyncService=n.default=void 0;var r=s(e(124)),o=s(e(607)),i=e(198),a=e(220);function s(t){return t&&t.__esModule?t:{default:t}}function c(t,n,e,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void e(t)}s.done?n(c):Promise.resolve(c).then(r,o)}function l(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var u={shareToken:null,forceRecreate:!1,serialize:function(t){return t}};n.IDLE_TIMEOUT=30;var d={SAVE_COLLISSION:0,PUSH_FAILURE:1,LOAD_ERROR:2,CONNECTION_FAILED:3,SOURCE_NOT_FOUND:4};n.ERROR_TYPE=d;var p=function(){function t(n){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.eventHandlers={opened:[],loaded:[],fetched:[],sync:[],stateChange:[],error:[],change:[],save:[],idle:[]},this.backend=new o.default(this),this.options=Object.assign({},u,n),this.document=null,this.session=null,this.sessions=[],this.steps=[],this.stepClientIDs=[],this.lastStepPush=Date.now(),this}var n,e,s,p,f;return n=t,(e=[{key:"open",value:(p=regeneratorRuntime.mark((function t(n){var e,r,o,i,a,s=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=n.fileId,r=n.filePath,o=n.initialSession,i=null,void 0!==o){t.next=16;break}return t.prev=3,t.next=6,this._openDocument({fileId:e,filePath:r});case 6:a=t.sent,i=a.data,t.next=14;break;case 10:throw t.prev=10,t.t0=t.catch(3),t.t0.response&&"ECONNABORTED"!==t.t0.code?this.emit("error",d.LOAD_ERROR,t.t0.response.status):this.emit("error",d.CONNECTION_FAILED,{}),t.t0;case 14:t.next=17;break;case 16:i=o;case 17:return this.document=i.document,this.document.readOnly=i.readOnly,this.session=i.session,this.emit("opened",{document:this.document,session:this.session}),t.abrupt("return",this._fetchDocument().then((function(t){var n=t.data;s.emit("loaded",{document:s.document,session:s.session,documentSource:""+n})})));case 22:case"end":return t.stop()}}),t,this,[[3,10]])})),f=function(){var t=this,n=arguments;return new Promise((function(e,r){var o=p.apply(t,n);function i(t){c(o,e,r,i,a,"next",t)}function a(t){c(o,e,r,i,a,"throw",t)}i(void 0)}))},function(t){return f.apply(this,arguments)})},{key:"startSync",value:function(){this.backend.connect()}},{key:"_openDocument",value:function(t){var n=t.fileId,e=t.filePath;return r.default.put((0,i.endpointUrl)("session/create",!!this.options.shareToken),{fileId:n,filePath:e,token:this.options.shareToken,guestName:this.options.guestName,forceRecreate:this.options.forceRecreate})}},{key:"_fetchDocument",value:function(){return r.default.post((0,i.endpointUrl)("session/fetch",!!this.options.shareToken),{documentId:this.document.id,sessionId:this.session.id,sessionToken:this.session.token,token:this.options.shareToken},{transformResponse:[function(t){return t}]})}},{key:"updateSession",value:function(t){var n=this;if(this.isPublic())return r.default.post((0,i.endpointUrl)("session",!!this.options.shareToken),{documentId:this.document.id,sessionId:this.session.id,sessionToken:this.session.token,token:this.options.shareToken,guestName:t}).then((function(t){var e=t.data;return n.session=e,e})).catch((function(t){return console.error("Failed to update the session",t),Promise.reject(t)}))}},{key:"sendSteps",value:function(t){var n=t||(0,a.sendableSteps)(this.state);if(n)return this.backend.sendSteps(n)}},{key:"stepsSince",value:function(t){return{steps:this.steps.slice(t),clientIDs:this.stepClientIDs.slice(t)}}},{key:"_receiveSteps",value:function(t){for(var n=this,e=t.steps,r=t.document,o=[],i=function(t){var r=e[t].data;if(!Array.isArray(r))return console.error("Invalid step data, skipping step",e[t]),"continue";r.forEach((function(r){n.steps.push(r),o.push({step:r,clientID:e[t].sessionId})}))},a=0;a<e.length;a++)i(a);this.lastStepPush=Date.now(),this.emit("sync",{steps:o,document:r}),console.debug("receivedSteps","newVersion",this._getVersion())}},{key:"checkIdle",value:function(){(Date.now()-this.lastStepPush)/1e3/60>30&&(console.debug("[SyncService] Document is idle for ".concat(this.IDLE_TIMEOUT," minutes, suspending connection")),this.emit("idle"))}},{key:"_getVersion",value:function(){return this.state?(0,a.getVersion)(this.state):0}},{key:"_getDocument",value:function(){if(this.state)return this.state.doc}},{key:"_getContent",value:function(){return this.options.serialize(this._getDocument())}},{key:"save",value:function(){this.backend.save&&this.backend.save()}},{key:"forceSave",value:function(){this.backend.forceSave&&this.backend.forceSave()}},{key:"close",value:function(){var t=this,n=!1;return new Promise((function(e,r){t.on("save",(function(){t._close().then((function(){n=!0,e()})).catch((function(){return e()}))})),setTimeout((function(){n||t._close().then((function(){e()})).catch((function(){return e()}))}),2e3),t.save()}))}},{key:"_close",value:function(){return null===this.document||null===this.session?Promise.resolve():(this.backend.disconnect(),r.default.post((0,i.endpointUrl)("session/close",!!this.options.shareToken),{documentId:this.document.id,sessionId:this.session.id,sessionToken:this.session.token,token:this.options.shareToken}))}},{key:"on",value:function(t,n,e){return this.eventHandlers[t].push(n.bind(e)),this}},{key:"emit",value:function(t,n,e){void 0!==this.eventHandlers[t]?this.eventHandlers[t].forEach((function(t){t(n,e)})):console.error("Event not found",t)}},{key:"isPublic",value:function(){return!!this.options.shareToken}}])&&l(n.prototype,e),s&&l(n,s),t}();n.SyncService=p;var f=p;n.default=f},404:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Span=void 0;n.Span=function t(n,e,r){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}
/*
 * @copyright Copyright (c) 2020 Julius Härtl <jus@bitgrid.net>
 *
 * @author Julius Härtl <jus@bitgrid.net>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */(this,t),this.from=n,this.to=e,this.author=r}},405:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=(r=e(72))&&r.__esModule?r:{default:r};
/*
 * @copyright Copyright (c) 2021 Julius Härtl <jus@bitgrid.net>
 *
 * @author Julius Härtl <jus@bitgrid.net>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */
var i={data:function(){return{$store:o.default}},beforeMount:function(){void 0===this.$store&&(this.$store=o.default)}};n.default=i},604:function(t,n,e){var r={"./af":264,"./af.js":264,"./ar":265,"./ar-dz":266,"./ar-dz.js":266,"./ar-kw":267,"./ar-kw.js":267,"./ar-ly":268,"./ar-ly.js":268,"./ar-ma":269,"./ar-ma.js":269,"./ar-sa":270,"./ar-sa.js":270,"./ar-tn":271,"./ar-tn.js":271,"./ar.js":265,"./az":272,"./az.js":272,"./be":273,"./be.js":273,"./bg":274,"./bg.js":274,"./bm":275,"./bm.js":275,"./bn":276,"./bn.js":276,"./bo":277,"./bo.js":277,"./br":278,"./br.js":278,"./bs":279,"./bs.js":279,"./ca":280,"./ca.js":280,"./cs":281,"./cs.js":281,"./cv":282,"./cv.js":282,"./cy":283,"./cy.js":283,"./da":284,"./da.js":284,"./de":285,"./de-at":286,"./de-at.js":286,"./de-ch":287,"./de-ch.js":287,"./de.js":285,"./dv":288,"./dv.js":288,"./el":289,"./el.js":289,"./en-SG":290,"./en-SG.js":290,"./en-au":291,"./en-au.js":291,"./en-ca":292,"./en-ca.js":292,"./en-gb":293,"./en-gb.js":293,"./en-ie":294,"./en-ie.js":294,"./en-il":295,"./en-il.js":295,"./en-nz":296,"./en-nz.js":296,"./eo":297,"./eo.js":297,"./es":298,"./es-do":299,"./es-do.js":299,"./es-us":300,"./es-us.js":300,"./es.js":298,"./et":301,"./et.js":301,"./eu":302,"./eu.js":302,"./fa":303,"./fa.js":303,"./fi":304,"./fi.js":304,"./fo":305,"./fo.js":305,"./fr":306,"./fr-ca":307,"./fr-ca.js":307,"./fr-ch":308,"./fr-ch.js":308,"./fr.js":306,"./fy":309,"./fy.js":309,"./ga":310,"./ga.js":310,"./gd":311,"./gd.js":311,"./gl":312,"./gl.js":312,"./gom-latn":313,"./gom-latn.js":313,"./gu":314,"./gu.js":314,"./he":315,"./he.js":315,"./hi":316,"./hi.js":316,"./hr":317,"./hr.js":317,"./hu":318,"./hu.js":318,"./hy-am":319,"./hy-am.js":319,"./id":320,"./id.js":320,"./is":321,"./is.js":321,"./it":322,"./it-ch":323,"./it-ch.js":323,"./it.js":322,"./ja":324,"./ja.js":324,"./jv":325,"./jv.js":325,"./ka":326,"./ka.js":326,"./kk":327,"./kk.js":327,"./km":328,"./km.js":328,"./kn":329,"./kn.js":329,"./ko":330,"./ko.js":330,"./ku":331,"./ku.js":331,"./ky":332,"./ky.js":332,"./lb":333,"./lb.js":333,"./lo":334,"./lo.js":334,"./lt":335,"./lt.js":335,"./lv":336,"./lv.js":336,"./me":337,"./me.js":337,"./mi":338,"./mi.js":338,"./mk":339,"./mk.js":339,"./ml":340,"./ml.js":340,"./mn":341,"./mn.js":341,"./mr":342,"./mr.js":342,"./ms":343,"./ms-my":344,"./ms-my.js":344,"./ms.js":343,"./mt":345,"./mt.js":345,"./my":346,"./my.js":346,"./nb":347,"./nb.js":347,"./ne":348,"./ne.js":348,"./nl":349,"./nl-be":350,"./nl-be.js":350,"./nl.js":349,"./nn":351,"./nn.js":351,"./pa-in":352,"./pa-in.js":352,"./pl":353,"./pl.js":353,"./pt":354,"./pt-br":355,"./pt-br.js":355,"./pt.js":354,"./ro":356,"./ro.js":356,"./ru":357,"./ru.js":357,"./sd":358,"./sd.js":358,"./se":359,"./se.js":359,"./si":360,"./si.js":360,"./sk":361,"./sk.js":361,"./sl":362,"./sl.js":362,"./sq":363,"./sq.js":363,"./sr":364,"./sr-cyrl":365,"./sr-cyrl.js":365,"./sr.js":364,"./ss":366,"./ss.js":366,"./sv":367,"./sv.js":367,"./sw":368,"./sw.js":368,"./ta":369,"./ta.js":369,"./te":370,"./te.js":370,"./tet":371,"./tet.js":371,"./tg":372,"./tg.js":372,"./th":373,"./th.js":373,"./tl-ph":374,"./tl-ph.js":374,"./tlh":375,"./tlh.js":375,"./tr":376,"./tr.js":376,"./tzl":377,"./tzl.js":377,"./tzm":378,"./tzm-latn":379,"./tzm-latn.js":379,"./tzm.js":378,"./ug-cn":380,"./ug-cn.js":380,"./uk":381,"./uk.js":381,"./ur":382,"./ur.js":382,"./uz":383,"./uz-latn":384,"./uz-latn.js":384,"./uz.js":383,"./vi":385,"./vi.js":385,"./x-pseudo":386,"./x-pseudo.js":386,"./yo":387,"./yo.js":387,"./zh-cn":388,"./zh-cn.js":388,"./zh-hk":389,"./zh-hk.js":389,"./zh-tw":390,"./zh-tw.js":390};function o(t){var n=i(t);return e(n)}function i(t){if(!e.o(r,t)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return r[t]}o.keys=function(){return Object.keys(r)},o.resolve=i,t.exports=o,o.id=604},607:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,o=(r=e(124))&&r.__esModule?r:{default:r},i=e(198),a=e(391),s=e(220);function c(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var l=function(){function t(n){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this._authority=n,this.fetchInterval=300,this.retryTime=500,this.lock=!1,this.fetchRetryCounter=0}var n,e,r;return n=t,(e=[{key:"connect",value:function(){this.initialLoadingFinished=!1,this.fetcher=setInterval(this._fetchSteps.bind(this),50),document.addEventListener("visibilitychange",this.visibilitychange.bind(this))}},{key:"_isPublic",value:function(){return!!this._authority.options.shareToken}},{key:"forceSave",value:function(){this._forcedSave=!0,this.fetchSteps()}},{key:"save",value:function(){this._manualSave=!0,this.fetchSteps()}},{key:"fetchSteps",value:function(){this._fetchSteps()}},{key:"_fetchSteps",value:function(){var t,n=this;!this.lock&&this.fetcher&&(this.lock=!0,(this._forcedSave||this._manualSave||!(0,s.sendableSteps)(this._authority.state)&&this._authority._getVersion()!==this._authority.document.lastSavedVersion)&&(t=this._authority._getContent()),o.default.post((0,i.endpointUrl)("session/sync",this._isPublic()),{documentId:this._authority.document.id,sessionId:this._authority.session.id,sessionToken:this._authority.session.token,version:this._authority._getVersion(),autosaveContent:t,force:!!this._forcedSave,manualSave:!!this._manualSave,token:this._authority.options.shareToken,filePath:this._authority.options.filePath}).then((function(t){if(n.fetchRetryCounter=0,n._authority.document.lastSavedVersion<t.data.document.lastSavedVersion&&(console.debug("Saved document",t.data.document),n._authority.emit("save",{document:t.data.document,sessions:t.data.sessions})),n._authority.emit("change",{document:t.data.document,sessions:t.data.sessions}),n._authority.document=t.data.document,n._authority.sessions=t.data.sessions,0===t.data.steps.length){if(n.initialLoadingFinished||(n.initialLoadingFinished=!0),n._authority.checkIdle())return;return n.lock=!1,t.data.sessions.filter((function(t){return t.lastContact>Date.now()/1e3-9e4})).length<2?n.maximumRefetchTimer():n.increaseRefetchTimer(),n._authority.emit("stateChange",{dirty:!1}),void n._authority.emit("stateChange",{initialLoading:!0})}n._authority._receiveSteps(t.data),n.lock=!1,n._forcedSave=!1,n.initialLoadingFinished&&n.resetRefetchTimer()})).catch((function(t){n.lock=!1,t.response&&"ECONNABORTED"!==t.code?409===t.response.status&&t.response.data.document.currentVersion===n._authority.document.currentVersion?(console.error("Conflict during file save, please resolve"),n._authority.emit("error",a.ERROR_TYPE.SAVE_COLLISSION,{outsideChange:t.response.data.outsideChange})):403===t.response.status||404===t.response.status?(n._authority.emit("error",a.ERROR_TYPE.SOURCE_NOT_FOUND,{}),n.disconnect()):503===t.response.status?(n.increaseRefetchTimer(),n._authority.emit("error",a.ERROR_TYPE.CONNECTION_FAILED,{retry:!1}),console.error("Failed to fetch steps due to unavailable service",t)):(n.disconnect(),n._authority.emit("error",a.ERROR_TYPE.CONNECTION_FAILED,{retry:!1}),console.error("Failed to fetch steps due to other reason",t)):n.fetchRetryCounter++>=5?(console.error("[PollingBackend:fetchSteps] Network error when fetching steps, emitting CONNECTION_FAILED"),n._authority.emit("error",a.ERROR_TYPE.CONNECTION_FAILED,{retry:!1})):console.error("[PollingBackend:fetchSteps] Network error when fetching steps, retry ".concat(n.fetchRetryCounter))})),this._manualSave=!1,this._forcedSave=!1)}},{key:"sendSteps",value:function(t){var n=this;if(this._authority.emit("stateChange",{dirty:!0}),this.lock)setTimeout((function(){n._authority.sendSteps()}),100);else{this.lock=!0;var e="function"==typeof t?t():t,r=e.steps;o.default.post((0,i.endpointUrl)("session/push",!!this._authority.options.shareToken),{documentId:this._authority.document.id,sessionId:this._authority.session.id,sessionToken:this._authority.session.token,steps:r.map((function(t){return t.toJSON?t.toJSON():t}))||[],version:e.version,token:this._authority.options.shareToken,filePath:this._authority.options.filePath}).then((function(t){n.carefulRetryReset(),n.lock=!1,n.fetchSteps()})).catch((function(t){console.error("failed to apply steps due to collission, retrying"),n.lock=!1,t.response&&"ECONNABORTED"!==t.code?(403===t.response.status&&t.response.data.document.currentVersion===n._authority.document.currentVersion&&(n._authority.emit("error",a.ERROR_TYPE.PUSH_FAILURE,{}),OC.Notification.showTemporary("Changes could not be sent yet")),n.fetchSteps(),n.carefulRetry()):n._authority.emit("error",a.ERROR_TYPE.CONNECTION_FAILED,{})}))}}},{key:"disconnect",value:function(){clearInterval(this.fetcher),this.fetcher=0,document.removeEventListener("visibilitychange",this.visibilitychange.bind(this))}},{key:"resetRefetchTimer",value:function(){0!==this.fetcher&&(this.fetchInterval=300,clearInterval(this.fetcher),this.fetcher=setInterval(this._fetchSteps.bind(this),this.fetchInterval))}},{key:"increaseRefetchTimer",value:function(){0!==this.fetcher&&(this.fetchInterval=Math.min(2*this.fetchInterval,5e3),clearInterval(this.fetcher),this.fetcher=setInterval(this._fetchSteps.bind(this),this.fetchInterval))}},{key:"maximumRefetchTimer",value:function(){0!==this.fetcher&&(this.fetchInterval=5e3,clearInterval(this.fetcher),this.fetcher=setInterval(this._fetchSteps.bind(this),this.fetchInterval))}},{key:"visibilitychange",value:function(){0!==this.fetcher&&("hidden"===document.visibilityState?(this.fetchInterval=6e4,clearInterval(this.fetcher),this.fetcher=setInterval(this._fetchSteps.bind(this),this.fetchInterval)):this.resetRefetchTimer())}},{key:"carefulRetry",value:function(){var t=this.retryTime?Math.min(2*this.retryTime,1e4):500;t>5e3&&this.retryTime<5e3&&(OC.Notification.showTemporary("Changes could not be sent yet"),this._authority.emit("error",a.ERROR_TYPE.PUSH_FAILURE,{})),this.retryTime=t}},{key:"carefulRetryReset",value:function(){this.retryTime=500}}])&&c(n.prototype,e),r&&c(n,r),t}();n.default=l},609:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.extensionHighlight=n.default=void 0;
/*
 * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
 *
 * @author Julius Härtl <jus@bitgrid.net>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */
var r={py:"python",gyp:"python",wsgi:"python",htm:"html",xhtml:"html",erl:"erlang",jsp:"java",pl:"perl",rss:"xml",atom:"xml",xsl:"xml",plist:"xml",rb:"ruby",builder:"ruby",gemspec:"ruby",podspec:"ruby",thor:"ruby",diff:"patch",hs:"haskell",icl:"haskell",php3:"php",php4:"php",php5:"php",php6:"php",sh:"bash",zsh:"bash",st:"smalltalk",as:"actionscript",apacheconf:"apache",osacript:"applescript",b:"brainfuck",bf:"brainfuck",clj:"clojure","cmake.in":"cmake",coffee:"coffeescript",cson:"coffescript",iced:"coffescript",c:"cpp",h:"cpp","c++":"cpp","h++":"cpp",hh:"cpp",jinja:"django",bat:"dos",cmd:"dos",fs:"fsharp",hbs:"handlebars","html.hbs":"handlebars","html.handlebars":"handlebars",sublime_metrics:"json",sublime_session:"json","sublime-keymap":"json","sublime-mousemap":"json","sublime-project":"json","sublime-settings":"json","sublime-workspace":"json",mk:"makefile",mak:"makefile",md:"markdown",mkdown:"markdown",mkd:"markdown",nginxconf:"nginx",m:"objectivec",mm:"objectivec",ml:"ocaml",rs:"rust",sci:"scilab",vb:"vbnet",vbs:"vbscript"};n.extensionHighlight=r;var o=r;n.default=o},620:function(t,n,e){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.Link=n.Strike=n.Italic=n.Strong=void 0;var o=e(215),i=e(213),a=e(221),s=e(621),c=e(233);function l(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function u(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?l(Object(e),!0).forEach((function(n){d(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):l(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function d(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function p(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function f(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,n,e){return n&&f(t.prototype,n),e&&f(t,e),t}function A(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&m(t,n)}function m(t,n){return(m=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function C(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=g(t);if(n){var o=g(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return v(this,e)}}function v(t,n){if(n&&("object"===r(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var b=function(t){A(e,t);var n=C(e);function e(){return p(this,e),n.apply(this,arguments)}return h(e,[{key:"name",get:function(){return"strong"}}]),e}(o.Bold);n.Strong=b;var y=function(t){A(e,t);var n=C(e);function e(){return p(this,e),n.apply(this,arguments)}return h(e,[{key:"name",get:function(){return"em"}}]),e}(o.Italic);n.Italic=y;var B=function(t){A(e,t);var n=C(e);function e(){return p(this,e),n.apply(this,arguments)}return h(e,[{key:"schema",get:function(){return{parseDOM:[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",getAttrs:function(t){return"line-through"===t}}],toDOM:function(){return["s",0]},toMarkdown:{open:"~~",close:"~~",mixable:!0,expelEnclosingWhitespace:!0}}}}]),e}(o.Strike);n.Strike=B;var x=function(t){A(e,t);var n=C(e);function e(){return p(this,e),n.apply(this,arguments)}return h(e,[{key:"schema",get:function(){return{attrs:{href:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:function(t){return{href:(0,s.parseHref)(t)}}}],toDOM:function(t){return["a",u(u({},t.attrs),{},{href:(0,s.domHref)(t),title:t.attrs.href,rel:"noopener noreferrer nofollow"}),0]}}}},{key:"plugins",get:function(){return this.options.openOnClick?[new i.Plugin({props:{handleClick:function(t,n,e){var r=t.state.schema,o=(0,a.getMarkAttrs)(t.state,r.marks.link),i=e.target instanceof HTMLAnchorElement||e.target.parentElement instanceof HTMLAnchorElement;if(o.href&&i){var s=e.target.parentElement instanceof HTMLAnchorElement?e.target.parentElement:e.target;e.stopPropagation();var l=s.href;if(0===e.button&&!e.ctrlKey&&l.startsWith(window.location.origin)){var u=OC.parseQueryString(l),d=OC.parseQueryString(l.split("#").pop());if(u.dir&&d.relPath){var p=d.relPath.split("/").pop(),f="".concat(u.dir,"/").concat(p);return document.title="".concat(p," - ").concat(OC.theme.title),window.location.pathname.match(/apps\/files\/$/),void OCA.Viewer.open({path:f})}}if(!c.markdownit.validateLink(l))return void console.error("Invalid link",l);window.open(l)}}}})]:[]}}]),e}(o.Link);n.Link=x},621:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.parseHref=n.domHref=void 0;var r=e(53);function o(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var r,o,i=[],a=!0,s=!1;try{for(e=e.call(t);!(a=(r=e.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==e.return||e.return()}finally{if(s)throw o}}return i}(t,n)||function(t,n){if(!t)return;if("string"==typeof t)return i(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return i(t,n)}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var a=function(t){var n=t.lastIndexOf("/");return n>0?t.slice(0,n):t.slice(0,n+1)};n.domHref=function(t){var n=t.attrs.href;if(!n)return n;if(n.match(/^[a-zA-Z]*:/))return n;var e=n.match(/^([^?]*)\?fileId=(\d+)/);if(e){var i=o(e,3),s=i[1],c=i[2],l=function(t,n){if(!n)return t;if("/"===n[0])return n;for(t=t.split("/"),n=n.split("/");".."===n[0]||"."===n[0];)".."===n[0]&&t.pop(),n.shift();return t.concat(n).join("/")}(a(OCA.Viewer.state.file),a(s));return(0,r.generateUrl)("/apps/files/?dir=".concat(l,"&openfile=").concat(c,"#relPath=").concat(s))}};n.parseHref=function(t){var n=t.getAttribute("href");if(!n)return n;var e=n.match(/\?dir=([^&]*)&openfile=([^&]*)#relPath=([^&]*)/);if(e){var r=o(e,4),i=r[2],a=r[3];return"".concat(a,"?fileId=").concat(i)}return n}},622:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Image",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(n,"PlainTextDocument",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(n,"ListItem",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,"BulletList",{enumerable:!0,get:function(){return a.default}});var r=s(e(623)),o=s(e(627)),i=s(e(628)),a=s(e(632));function s(t){return t&&t.__esModule?t:{default:t}}},623:function(t,n,e){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=e(215),a=(o=e(624))&&o.__esModule?o:{default:o};function s(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function c(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?s(Object(e),!0).forEach((function(n){l(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):s(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function l(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function u(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function d(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,n,e){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,n,e){var r=function(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=m(t)););return t}(t,n);if(r){var o=Object.getOwnPropertyDescriptor(r,n);return o.get?o.get.call(e):o.value}})(t,n,e||t)}function f(t,n){return(f=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function h(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=m(t);if(n){var o=m(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return A(this,e)}}function A(t,n){if(n&&("object"===r(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var C=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&f(t,n)}(i,t);var n,e,r,o=h(i);function i(){return u(this,i),o.apply(this,arguments)}return n=i,(e=[{key:"view",get:function(){return a.default}},{key:"schema",get:function(){return c(c({},p(m(i.prototype),"schema",this)),{},{selectable:!1})}}])&&d(n.prototype,e),r&&d(n,r),i}(i.Image);n.default=C},624:function(t,n,e){"use strict";e.r(n);var r=e(772),o=e(236);for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);e(773);var a=e(34),s=Object(a.a)(o.default,r.a,r.b,!1,null,"efec1cb6",null);n.default=s.exports},626:function(t,n,e){"use strict";var r=e(51),o=e.n(r),i=e(52),a=e.n(i)()(o.a);a.push([t.i,".image[data-v-efec1cb6]{margin:0;padding:0}.image__caption[data-v-efec1cb6]{text-align:center;color:var(--color-text-lighter)}.image__caption input[type='text'][data-v-efec1cb6]{width:100%;border:none;text-align:center}.icon-image[data-v-efec1cb6]{margin-top:10px;height:32px;padding:20px;background-size:contain}.image__loading[data-v-efec1cb6]{height:100px}.image__view[data-v-efec1cb6]{text-align:center}.image__view .image__main[data-v-efec1cb6]{max-height:40vh}.image__placeholder a[data-v-efec1cb6]{display:flex}.image__placeholder .image__main[data-v-efec1cb6]{background-color:var(--color-background-dark);text-align:center;padding:5px;border-radius:var(--border-radius)}.image__placeholder .image__main .icon-image[data-v-efec1cb6]{margin:0}.image__placeholder .image__main p[data-v-efec1cb6]{padding:10px}.fade-enter-active[data-v-efec1cb6]{transition:opacity .3s ease-in-out}.fade-enter-to[data-v-efec1cb6]{opacity:1}.fade-enter[data-v-efec1cb6]{opacity:0}\n","",{version:3,sources:["webpack://./src/nodes/ImageView.vue"],names:[],mappings:"AAoMA,wBACC,QAAS,CACT,SAAU,CACV,iCAGA,iBAAkB,CAClB,+BAAgC,CAFjC,oDAIE,UAAW,CACX,WAAY,CACZ,iBAAkB,CAClB,6BAID,eAAgB,CAChB,WAAY,CACZ,YAAa,CACb,uBAAwB,CACxB,iCAGA,YAAa,CACb,8BAGA,iBAAkB,CADnB,2CAIE,eAAgB,CAChB,uCAKA,YAAa,CAFf,kDAKE,6CAA8C,CAC9C,iBAAkB,CAClB,WAAY,CACZ,kCAAmC,CARrC,8DAWG,QAAS,CAXZ,oDAeG,YAAa,CACb,oCAKF,kCAAmC,CACnC,gCAGA,SAAU,CACV,6BAGA,SAAU",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.image {\n\tmargin: 0;\n\tpadding: 0;\n}\n\n.image__caption {\n\ttext-align: center;\n\tcolor: var(--color-text-lighter);\n\tinput[type='text'] {\n\t\twidth: 100%;\n\t\tborder: none;\n\t\ttext-align: center;\n\t}\n}\n\n.icon-image {\n\tmargin-top: 10px;\n\theight: 32px;\n\tpadding: 20px;\n\tbackground-size: contain;\n}\n\n.image__loading {\n\theight: 100px;\n}\n\n.image__view {\n\ttext-align: center;\n\n\t.image__main {\n\t\tmax-height: 40vh;\n\t}\n}\n\n.image__placeholder {\n\ta {\n\t\tdisplay: flex;\n\t}\n\t.image__main {\n\t\tbackground-color: var(--color-background-dark);\n\t\ttext-align: center;\n\t\tpadding: 5px;\n\t\tborder-radius: var(--border-radius);\n\n\t\t.icon-image {\n\t\t\tmargin: 0;\n\t\t}\n\n\t\tp {\n\t\t\tpadding: 10px;\n\t\t}\n\t}\n}\n\n.fade-enter-active {\n\ttransition: opacity .3s ease-in-out;\n}\n\n.fade-enter-to {\n\topacity: 1;\n}\n\n.fade-enter {\n\topacity: 0;\n}\n"],sourceRoot:""}]),n.a=a},627:function(t,n,e){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e(213),i=e(222);function a(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function s(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,n){return(c=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function l(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=d(t);if(n){var o=d(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return u(this,e)}}function u(t,n){if(n&&("object"===r(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&c(t,n)}(u,t);var n,e,r,o=l(u);function u(){return a(this,u),o.apply(this,arguments)}return n=u,(e=[{key:"name",get:function(){return"doc"}},{key:"schema",get:function(){return{content:"block"}}},{key:"keys",value:function(){var t=this;return{Tab:function(n){return(0,i.insertText)("\t")(n,t.editor.view.dispatch,t.editor.view),!0}}}}])&&s(n.prototype,e),r&&s(n,r),u}(o.Node);n.default=p},628:function(t,n,e){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e(215),i=e(213),a=e(222),s=e(629),c=e(630);function l(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function u(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,n){return(d=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function p(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=h(t);if(n){var o=h(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)}}function f(t,n){if(n&&("object"===r(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var A=0,m=1,C=function(t,n){return(0,s.findParentNode)((function(n){return n.type===t.nodes.list_item}))(n)},v=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&d(t,n)}(f,t);var n,e,r,o=p(f);function f(){return l(this,f),o.apply(this,arguments)}return n=f,(e=[{key:"defaultOptions",get:function(){return{nested:!0}}},{key:"schema",get:function(){return{attrs:{done:{default:!1},type:{default:A}},draggable:!1,content:"paragraph block*",toDOM:function(t){if(t.attrs.type===A)return["li",0];var n={class:"checkbox-item"},e={type:"checkbox",class:"",contenteditable:!1};return t.attrs.done&&(e.checked=!0,n.class+=" checked"),["li",n,["input",e],["label",0]]},parseDOM:[{priority:100,tag:"li",getAttrs:function(t){var n=t.querySelector("input[type=checkbox]");return{done:n&&n.checked,type:n?m:A}}}],toMarkdown:function(t,n){n.attrs.type===m&&t.write("[".concat(n.attrs.done?"x":" ","] ")),t.renderContent(n)}}}},{key:"commands",value:function(t){var n=t.type,e=t.schema;return{bullet_list_item:function(){return function(t,r,o){return(0,a.toggleList)(e.nodes.bullet_list,n)(t,r,o)}},todo_item:function(){return function(t,e,r){var o=t.schema,i=t.selection,s=i.$from,c=i.$to,l=s.blockRange(c),u=t.tr,d=C(o,i);if(void 0===d&&((0,a.toggleList)(o.nodes.bullet_list,n)(t,(function(t){u=t}),r),d=C(o,u.selection)),!l||void 0===d)return!1;u.setNodeMarkup(d.pos,o.nodes.list_item,{type:d.node.attrs.type===m?A:m}),u.scrollIntoView(),e&&e(u)}}}}},{key:"inputRules",value:function(t){var n=t.type;return[(0,a.wrappingInputRule)(/^\s*([-+*])\s(\[ ?\])\s$/,n,(function(t){return{type:m}})),(0,a.wrappingInputRule)(/^\s*([-+*])\s(\[(x|X)\])\s$/,n,(function(t){return{type:m,done:!0}})),(0,c.listInputRule)(/^\s*([-+*])\s([^\s[])$/,n)]}},{key:"plugins",get:function(){return[new i.Plugin({props:{handleClick:function(t,n,e){var r=t.state,o=r.schema,i=t.posAtCoords({left:e.clientX,top:e.clientY}),a=r.doc.resolve(i.pos),c=(0,s.findParentNodeClosestToPos)(a,(function(t){return t.type===o.nodes.list_item})),l="li"===e.target.tagName.toLowerCase();if(void 0!==c&&c.node.attrs.type===m&&l){var u=r.tr;u.setNodeMarkup(c.pos,o.nodes.list_item,{done:!c.node.attrs.done,type:m}),t.dispatch(u)}}}})]}}])&&u(n.prototype,e),r&&u(n,r),f}(o.ListItem);n.default=v},630:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"listInputRule",{enumerable:!0,get:function(){return o.default}});var r,o=(r=e(631))&&r.__esModule?r:{default:r}},631:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=
/*
 * @copyright Copyright (c) 2021 Jonas Meurer <jonas@freesources.org>
 *
 * @author Jonas Meurer <jonas@freesources.org>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */
function(t,n,e){return new r.InputRule(t,(function(e,o,i,a){var s=(0,r.wrappingInputRule)(t,n).handler(e,o,i,a);return o.length>=3&&s.insertText(o[2]),s}))};var r=e(235)},632:function(t,n,e){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function i(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,n){return(a=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function s(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=l(t);if(n){var o=l(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return c(this,e)}}function c(t,n){if(n&&("object"===r(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&a(t,n)}(l,t);var n,e,r,c=s(l);function l(){return o(this,l),c.apply(this,arguments)}return n=l,(e=[{key:"inputRules",value:function(){return[]}}])&&i(n.prototype,e),r&&i(n,r),l}(e(215).BulletList);n.default=u},691:function(t,n,e){var r={"./1c":[413,1],"./1c.js":[413,1],"./abnf":[414,2],"./abnf.js":[414,2],"./accesslog":[415,3],"./accesslog.js":[415,3],"./actionscript":[416,4],"./actionscript.js":[416,4],"./ada":[417,5],"./ada.js":[417,5],"./angelscript":[418,6],"./angelscript.js":[418,6],"./apache":[419,7],"./apache.js":[419,7],"./applescript":[420,8],"./applescript.js":[420,8],"./arcade":[421,9],"./arcade.js":[421,9],"./arduino":[422,10],"./arduino.js":[422,10],"./armasm":[423,11],"./armasm.js":[423,11],"./asciidoc":[424,12],"./asciidoc.js":[424,12],"./aspectj":[425,13],"./aspectj.js":[425,13],"./autohotkey":[426,14],"./autohotkey.js":[426,14],"./autoit":[427,15],"./autoit.js":[427,15],"./avrasm":[428,16],"./avrasm.js":[428,16],"./awk":[429,17],"./awk.js":[429,17],"./axapta":[430,18],"./axapta.js":[430,18],"./bash":[431,19],"./bash.js":[431,19],"./basic":[432,20],"./basic.js":[432,20],"./bnf":[433,21],"./bnf.js":[433,21],"./brainfuck":[434,22],"./brainfuck.js":[434,22],"./c":[436,23],"./c-like":[435,24],"./c-like.js":[435,24],"./c.js":[436,23],"./cal":[437,25],"./cal.js":[437,25],"./capnproto":[438,26],"./capnproto.js":[438,26],"./ceylon":[439,27],"./ceylon.js":[439,27],"./clean":[440,28],"./clean.js":[440,28],"./clojure":[442,29],"./clojure-repl":[441,30],"./clojure-repl.js":[441,30],"./clojure.js":[442,29],"./cmake":[443,31],"./cmake.js":[443,31],"./coffeescript":[444,32],"./coffeescript.js":[444,32],"./coq":[445,33],"./coq.js":[445,33],"./cos":[446,34],"./cos.js":[446,34],"./cpp":[447,35],"./cpp.js":[447,35],"./crmsh":[448,36],"./crmsh.js":[448,36],"./crystal":[449,37],"./crystal.js":[449,37],"./csharp":[450,38],"./csharp.js":[450,38],"./csp":[451,39],"./csp.js":[451,39],"./css":[452,40],"./css.js":[452,40],"./d":[453,41],"./d.js":[453,41],"./dart":[454,42],"./dart.js":[454,42],"./delphi":[455,43],"./delphi.js":[455,43],"./diff":[456,44],"./diff.js":[456,44],"./django":[457,45],"./django.js":[457,45],"./dns":[458,46],"./dns.js":[458,46],"./dockerfile":[459,47],"./dockerfile.js":[459,47],"./dos":[460,48],"./dos.js":[460,48],"./dsconfig":[461,49],"./dsconfig.js":[461,49],"./dts":[462,50],"./dts.js":[462,50],"./dust":[463,51],"./dust.js":[463,51],"./ebnf":[464,52],"./ebnf.js":[464,52],"./elixir":[465,53],"./elixir.js":[465,53],"./elm":[466,54],"./elm.js":[466,54],"./erb":[467,55],"./erb.js":[467,55],"./erlang":[469,56],"./erlang-repl":[468,57],"./erlang-repl.js":[468,57],"./erlang.js":[469,56],"./excel":[470,58],"./excel.js":[470,58],"./fix":[471,59],"./fix.js":[471,59],"./flix":[472,60],"./flix.js":[472,60],"./fortran":[473,61],"./fortran.js":[473,61],"./fsharp":[474,62],"./fsharp.js":[474,62],"./gams":[475,63],"./gams.js":[475,63],"./gauss":[476,64],"./gauss.js":[476,64],"./gcode":[477,65],"./gcode.js":[477,65],"./gherkin":[478,66],"./gherkin.js":[478,66],"./glsl":[479,67],"./glsl.js":[479,67],"./gml":[480,68],"./gml.js":[480,68],"./go":[481,69],"./go.js":[481,69],"./golo":[482,70],"./golo.js":[482,70],"./gradle":[483,71],"./gradle.js":[483,71],"./groovy":[484,72],"./groovy.js":[484,72],"./haml":[485,73],"./haml.js":[485,73],"./handlebars":[486,74],"./handlebars.js":[486,74],"./haskell":[487,75],"./haskell.js":[487,75],"./haxe":[488,76],"./haxe.js":[488,76],"./hsp":[489,77],"./hsp.js":[489,77],"./htmlbars":[490,78],"./htmlbars.js":[490,78],"./http":[491,79],"./http.js":[491,79],"./hy":[492,80],"./hy.js":[492,80],"./inform7":[493,81],"./inform7.js":[493,81],"./ini":[494,82],"./ini.js":[494,82],"./irpf90":[495,83],"./irpf90.js":[495,83],"./isbl":[496,84],"./isbl.js":[496,84],"./java":[497,85],"./java.js":[497,85],"./javascript":[498,86],"./javascript.js":[498,86],"./jboss-cli":[499,87],"./jboss-cli.js":[499,87],"./json":[500,88],"./json.js":[500,88],"./julia":[502,89],"./julia-repl":[501,90],"./julia-repl.js":[501,90],"./julia.js":[502,89],"./kotlin":[503,91],"./kotlin.js":[503,91],"./lasso":[504,92],"./lasso.js":[504,92],"./latex":[505,93],"./latex.js":[505,93],"./ldif":[506,94],"./ldif.js":[506,94],"./leaf":[507,95],"./leaf.js":[507,95],"./less":[508,96],"./less.js":[508,96],"./lisp":[509,97],"./lisp.js":[509,97],"./livecodeserver":[510,98],"./livecodeserver.js":[510,98],"./livescript":[511,99],"./livescript.js":[511,99],"./llvm":[512,100],"./llvm.js":[512,100],"./lsl":[513,101],"./lsl.js":[513,101],"./lua":[514,102],"./lua.js":[514,102],"./makefile":[515,103],"./makefile.js":[515,103],"./markdown":[516,104],"./markdown.js":[516,104],"./mathematica":[517,105],"./mathematica.js":[517,105],"./matlab":[518,106],"./matlab.js":[518,106],"./maxima":[519,107],"./maxima.js":[519,107],"./mel":[520,108],"./mel.js":[520,108],"./mercury":[521,109],"./mercury.js":[521,109],"./mipsasm":[522,110],"./mipsasm.js":[522,110],"./mizar":[523,111],"./mizar.js":[523,111],"./mojolicious":[524,112],"./mojolicious.js":[524,112],"./monkey":[525,113],"./monkey.js":[525,113],"./moonscript":[526,114],"./moonscript.js":[526,114],"./n1ql":[527,115],"./n1ql.js":[527,115],"./nginx":[528,116],"./nginx.js":[528,116],"./nim":[529,117],"./nim.js":[529,117],"./nix":[530,118],"./nix.js":[530,118],"./node-repl":[531,119],"./node-repl.js":[531,119],"./nsis":[532,120],"./nsis.js":[532,120],"./objectivec":[533,121],"./objectivec.js":[533,121],"./ocaml":[534,122],"./ocaml.js":[534,122],"./openscad":[535,123],"./openscad.js":[535,123],"./oxygene":[536,124],"./oxygene.js":[536,124],"./parser3":[537,125],"./parser3.js":[537,125],"./perl":[538,126],"./perl.js":[538,126],"./pf":[539,127],"./pf.js":[539,127],"./pgsql":[540,128],"./pgsql.js":[540,128],"./php":[542,129],"./php-template":[541,130],"./php-template.js":[541,130],"./php.js":[542,129],"./plaintext":[543,131],"./plaintext.js":[543,131],"./pony":[544,132],"./pony.js":[544,132],"./powershell":[545,133],"./powershell.js":[545,133],"./processing":[546,134],"./processing.js":[546,134],"./profile":[547,135],"./profile.js":[547,135],"./prolog":[548,136],"./prolog.js":[548,136],"./properties":[549,137],"./properties.js":[549,137],"./protobuf":[550,138],"./protobuf.js":[550,138],"./puppet":[551,139],"./puppet.js":[551,139],"./purebasic":[552,140],"./purebasic.js":[552,140],"./python":[554,141],"./python-repl":[553,142],"./python-repl.js":[553,142],"./python.js":[554,141],"./q":[555,143],"./q.js":[555,143],"./qml":[556,144],"./qml.js":[556,144],"./r":[557,145],"./r.js":[557,145],"./reasonml":[558,146],"./reasonml.js":[558,146],"./rib":[559,147],"./rib.js":[559,147],"./roboconf":[560,148],"./roboconf.js":[560,148],"./routeros":[561,149],"./routeros.js":[561,149],"./rsl":[562,150],"./rsl.js":[562,150],"./ruby":[563,151],"./ruby.js":[563,151],"./ruleslanguage":[564,152],"./ruleslanguage.js":[564,152],"./rust":[565,153],"./rust.js":[565,153],"./sas":[566,154],"./sas.js":[566,154],"./scala":[567,155],"./scala.js":[567,155],"./scheme":[568,156],"./scheme.js":[568,156],"./scilab":[569,157],"./scilab.js":[569,157],"./scss":[570,158],"./scss.js":[570,158],"./shell":[571,159],"./shell.js":[571,159],"./smali":[572,160],"./smali.js":[572,160],"./smalltalk":[573,161],"./smalltalk.js":[573,161],"./sml":[574,162],"./sml.js":[574,162],"./sqf":[575,163],"./sqf.js":[575,163],"./sql":[576,164],"./sql.js":[576,164],"./stan":[577,165],"./stan.js":[577,165],"./stata":[578,166],"./stata.js":[578,166],"./step21":[579,167],"./step21.js":[579,167],"./stylus":[580,168],"./stylus.js":[580,168],"./subunit":[581,169],"./subunit.js":[581,169],"./swift":[582,170],"./swift.js":[582,170],"./taggerscript":[583,171],"./taggerscript.js":[583,171],"./tap":[584,172],"./tap.js":[584,172],"./tcl":[585,173],"./tcl.js":[585,173],"./thrift":[586,174],"./thrift.js":[586,174],"./tp":[587,175],"./tp.js":[587,175],"./twig":[588,176],"./twig.js":[588,176],"./typescript":[589,177],"./typescript.js":[589,177],"./vala":[590,178],"./vala.js":[590,178],"./vbnet":[591,179],"./vbnet.js":[591,179],"./vbscript":[593,180],"./vbscript-html":[592,181],"./vbscript-html.js":[592,181],"./vbscript.js":[593,180],"./verilog":[594,182],"./verilog.js":[594,182],"./vhdl":[595,183],"./vhdl.js":[595,183],"./vim":[596,184],"./vim.js":[596,184],"./x86asm":[597,185],"./x86asm.js":[597,185],"./xl":[598,186],"./xl.js":[598,186],"./xml":[599,187],"./xml.js":[599,187],"./xquery":[600,188],"./xquery.js":[600,188],"./yaml":[601,189],"./yaml.js":[601,189],"./zephir":[602,190],"./zephir.js":[602,190]};function o(t){if(!e.o(r,t))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=r[t],o=n[0];return e.e(n[1]).then((function(){return e.t(o,7)}))}o.keys=function(){return Object.keys(r)},o.id=691,t.exports=o},692:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Keymap",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(n,"UserColor",{enumerable:!0,get:function(){return o.default}});var r=i(e(693)),o=i(e(694));function i(t){return t&&t.__esModule?t:{default:t}}},693:function(t,n,e){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e(213);function i(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function a(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,n){return(s=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function c(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=u(t);if(n){var o=u(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return l(this,e)}}function l(t,n){if(n&&("object"===r(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&s(t,n)}(u,t);var n,e,r,l=c(u);function u(){return i(this,u),l.apply(this,arguments)}return n=u,(e=[{key:"name",get:function(){return"customkeymap"}},{key:"keys",value:function(t){return t.schema,this.options}},{key:"plugins",get:function(){return[new o.Plugin({props:{handleKeyDown:function(t,n){var e=n.key||n.keyCode;if((n.ctrlKey||n.metaKey)&&!n.shiftKey&&("f"===e||70===e))return n.stopPropagation(),window.dispatchEvent(n),!0}}})]}}])&&a(n.prototype,e),r&&a(n,r),u}(o.Extension);n.default=d},694:function(t,n,e){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o,i=e(213),a=e(216),s=(o=e(695))&&o.__esModule?o:{default:o},c=e(404);function l(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function u(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,n){return(d=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function p(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=h(t);if(n){var o=h(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return f(this,e)}}function f(t,n){if(n&&("object"===r(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var A=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&d(t,n)}(f,t);var n,e,r,o=p(f);function f(){return l(this,f),o.apply(this,arguments)}return n=f,(e=[{key:"name",get:function(){return"users"}},{key:"defaultOptions",get:function(){return{clientID:0,color:function(t){return"#"+Math.floor(Math.abs(16777215*Math.sin(t))%16777215).toString(16)+"aa"},name:function(t){return"Unknown user "+t}}}},{key:"plugins",get:function(){return[new i.Plugin({clientID:this.options.clientID,color:this.options.color,name:this.options.name,state:{init:function(t,n){return{tracked:new s.default([new c.Span(0,n.doc.content.size,null)],[],[],[]),deco:a.DecorationSet.empty}},apply:function(t,n,e,r){var o=this,i=n.tracked,s=n.decos,c=this.getState(e).tracked;return t.docChanged&&(t.getMeta("clientID")||t.setMeta("clientID",t.steps.map((function(t){return o.spec.clientID}))),c=i=i.applyTransform(t)),s=c.blameMap.map((function(t){var n=t.author;return a.Decoration.inline(t.from,t.to,{class:"author-annotation",style:"background-color: "+o.spec.color(n)+"66;",title:o.spec.name(n)})})).filter((function(t){return null!==t})),{tracked:i,deco:a.DecorationSet.create(r.doc,s)}}},props:{decorations:function(t){return this.getState(t).deco}}})]}}])&&u(n.prototype,e),r&&u(n,r),f}(i.Extension);n.default=A},695:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=e(404);function o(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,n,e){for(var o=[],i=n.mapping,a=0;a<t.length;a++){var s=t[a],c=i.map(s.from,1),l=i.map(s.to,-1);c<l&&o.push(new r.Span(c,l,s.author))}for(var u=function(t){var n=i.maps[t],a=i.slice(t+1);n.forEach((function(n,i,s,c){!function(t,n,e,o){if(n>=e)return;for(var i,a=0;a<t.length;a++)if((i=t[a]).author===o){if(i.to>=n)break}else if(i.to>n){if(i.from<n){var s=new r.Span(i.from,n,i.author);i.to>e?t.splice(a++,0,s):t[a++]=s}break}for(;i=t[a];)if(i.author===o){if(i.from>e)break;n=Math.min(n,i.from),e=Math.max(e,i.to),t.splice(a,1)}else{if(i.from>=e)break;if(i.to>e){t[a]=new r.Span(e,i.to,i.author);break}t.splice(a,1)}t.splice(a,0,new r.Span(n,e,o))}(o,a.map(s,1),a.map(c,-1),e[t])}))},d=0;d<i.maps.length;d++)u(d);return o}var a=function(){function t(n){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.blameMap=n}var n,e,r;return n=t,(e=[{key:"applyTransform",value:function(n){var e,r=null!==(e=n.getMeta("clientID"))&&void 0!==e?e:n.steps.map((function(t){return"self"}));return new t(i(this.blameMap,n,r))}}])&&o(n.prototype,e),r&&o(n,r),t}();n.default=a},696:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;
/*
 * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
 *
 * @author Julius Härtl <jus@bitgrid.net>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */
var r={data:function(){return{isMobile:this._isMobile()}},beforeMount:function(){window.addEventListener("resize",this._onResize)},beforeDestroy:function(){window.removeEventListener("resize",this._onResize)},methods:{_onResize:function(){this.isMobile=this._isMobile()},_isMobile:function(){return document.documentElement.clientWidth<768}}};n.default=r},699:function(t,n,e){"use strict";var r=e(51),o=e.n(r),i=e(52),a=e.n(i)()(o.a);a.push([t.i,"#editor-container[data-v-681dd80c]{display:block;width:100%;max-width:100%;height:100%;left:0;top:50px;margin:0 auto;position:relative;background-color:var(--color-main-background)}#editor-wrapper[data-v-681dd80c]{display:flex;width:100%;height:100%;overflow:hidden;position:absolute}#editor-wrapper.show-color-annotations[data-v-681dd80c] .author-annotation{padding-top:2px;padding-bottom:2px}#editor-wrapper[data-v-681dd80c]:not(.show-color-annotations) .author-annotation{background-color:transparent !important;color:var(--color-main-text) !important}#editor-wrapper .ProseMirror[data-v-681dd80c]{margin-top:0 !important}#editor-wrapper.icon-loading #editor[data-v-681dd80c]{opacity:0.3}#editor[data-v-681dd80c],.editor[data-v-681dd80c]{background:var(--color-main-background);color:var(--color-main-text);background-clip:padding-box;border-radius:var(--border-radius);padding:0;position:relative;overflow-y:auto;overflow-x:hidden;width:100%}.document-status[data-v-681dd80c]{z-index:1010;position:relative;background-color:var(--color-main-background)}.document-status .msg[data-v-681dd80c]{padding:12px;padding-left:30px;border-bottom:1px solid var(--color-border);background-position:8px center}.save-status[data-v-681dd80c]{display:inline-flex;padding:0;text-overflow:ellipsis;color:var(--color-text-lighter);position:relative;top:10px;min-width:85px}.save-status.error[data-v-681dd80c]{background-color:var(--color-error);color:var(--color-main-background);border-radius:3px}#editor-container #editor-wrapper.has-conflicts[data-v-681dd80c]{height:calc(100% - 50px)}#editor-container #editor-wrapper.has-conflicts #editor[data-v-681dd80c],#editor-container #editor-wrapper.has-conflicts #read-only-editor[data-v-681dd80c]{width:50%;height:100%}#editor-session-list[data-v-681dd80c]{display:flex}#editor-session-list input[data-v-681dd80c],#editor-session-list div[data-v-681dd80c]{vertical-align:middle;margin-left:3px}.editor__content[data-v-681dd80c]{max-width:670px;margin:auto;position:relative}#body-public[data-v-681dd80c]{height:auto}#files-public-content #editor-container[data-v-681dd80c]{top:0;width:100%}#files-public-content #editor-container #editor[data-v-681dd80c] .menubar{position:sticky;top:0px;width:100%}#files-public-content #editor-container #editor[data-v-681dd80c]{overflow:auto;z-index:1000}#files-public-content #editor-container .has-conflicts #editor[data-v-681dd80c]{padding-top:0}.ie #editor[data-v-681dd80c] .menubar{position:fixed;top:50px;width:100%}.ie .editor__content[data-v-681dd80c] .ProseMirror{padding-top:50px}\n","",{version:3,sources:["webpack://./src/components/EditorWrapper.vue"],names:[],mappings:"AA+fA,mCACC,aAAc,CACd,UAAW,CACX,cAAe,CACf,WAAY,CACZ,MAAO,CACP,QAAS,CACT,aAAc,CACd,iBAAkB,CAClB,6CAA8C,CAC9C,iCAGA,YAAa,CACb,UAAW,CACX,WAAY,CACZ,eAAgB,CAChB,iBAAkB,CALnB,2EAQE,eAAgB,CAChB,kBAAmB,CATrB,iFAaE,uCAAwC,CACxC,uCAAwC,CAd1C,8CAkBE,uBAAwB,CAlB1B,sDAsBG,WAAY,CACZ,kDAKF,uCAAwC,CACxC,4BAA6B,CAC7B,2BAA4B,CAC5B,kCAAmC,CACnC,SAAU,CACV,iBAAkB,CAClB,eAAgB,CAChB,iBAAkB,CAClB,UAAW,CACX,kCAGA,YAAa,CACb,iBAAkB,CAClB,6CAA8C,CAC9C,uCAGA,YAAa,CACb,iBAAkB,CAClB,2CAA4C,CAC5C,8BAA+B,CAC/B,8BAGA,mBAAoB,CACpB,SAAU,CACV,sBAAuB,CACvB,+BAAgC,CAChC,iBAAkB,CAClB,QAAS,CACT,cAAe,CAPhB,oCAUE,mCAAoC,CACpC,kCAAmC,CACnC,iBAAkB,CAClB,iEAID,wBAAyB,CAD1B,4JAIE,SAAU,CACV,WAAY,CACZ,sCAID,YAAa,CADd,sFAIE,qBAAsB,CACtB,eAAgB,CAChB,kCAID,eAAgB,CAChB,WAAY,CACZ,iBAAkB,CAClB,8BAGA,WAAY,CACZ,yDAIC,KAAM,CACN,UAAW,CAHb,0EAMG,eAAgB,CAChB,OAAQ,CACR,UAAW,CARd,iEAYG,aAAc,CAEd,YAAa,CAdhB,gFAiBG,aAAc,CACd,sCAOD,cAAe,CACf,QAAS,CACT,UAAW,CALb,mDAQE,gBAAiB",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n#editor-container {\n\tdisplay: block;\n\twidth: 100%;\n\tmax-width: 100%;\n\theight: 100%;\n\tleft: 0;\n\ttop: 50px;\n\tmargin: 0 auto;\n\tposition: relative;\n\tbackground-color: var(--color-main-background);\n}\n\n#editor-wrapper {\n\tdisplay: flex;\n\twidth: 100%;\n\theight: 100%;\n\toverflow: hidden;\n\tposition: absolute;\n\n\t&.show-color-annotations::v-deep .author-annotation {\n\t\tpadding-top: 2px;\n\t\tpadding-bottom: 2px;\n\t}\n\n\t&:not(.show-color-annotations)::v-deep .author-annotation {\n\t\tbackground-color: transparent !important;\n\t\tcolor: var(--color-main-text) !important;\n\t}\n\n\t.ProseMirror {\n\t\tmargin-top: 0 !important;\n\t}\n\t&.icon-loading {\n\t\t#editor {\n\t\t\topacity: 0.3;\n\t\t}\n\t}\n}\n\n#editor, .editor {\n\tbackground: var(--color-main-background);\n\tcolor: var(--color-main-text);\n\tbackground-clip: padding-box;\n\tborder-radius: var(--border-radius);\n\tpadding: 0;\n\tposition: relative;\n\toverflow-y: auto;\n\toverflow-x: hidden;\n\twidth: 100%;\n}\n\n.document-status {\n\tz-index: 1010;\n\tposition: relative;\n\tbackground-color: var(--color-main-background);\n}\n\n.document-status .msg {\n\tpadding: 12px;\n\tpadding-left: 30px;\n\tborder-bottom: 1px solid var(--color-border);\n\tbackground-position: 8px center;\n}\n\n.save-status {\n\tdisplay: inline-flex;\n\tpadding: 0;\n\ttext-overflow: ellipsis;\n\tcolor: var(--color-text-lighter);\n\tposition: relative;\n\ttop: 10px;\n\tmin-width: 85px;\n\n\t&.error {\n\t\tbackground-color: var(--color-error);\n\t\tcolor: var(--color-main-background);\n\t\tborder-radius: 3px;\n\t}\n}\n\n#editor-container #editor-wrapper.has-conflicts {\n\theight: calc(100% - 50px);\n\n\t#editor, #read-only-editor {\n\t\twidth: 50%;\n\t\theight: 100%;\n\t}\n}\n\n#editor-session-list {\n\tdisplay: flex;\n\n\tinput, div {\n\t\tvertical-align: middle;\n\t\tmargin-left: 3px;\n\t}\n}\n\n.editor__content {\n\tmax-width: 670px;\n\tmargin: auto;\n\tposition: relative;\n}\n\n#body-public {\n\theight: auto;\n}\n\n#files-public-content {\n\t#editor-container {\n\t\ttop: 0;\n\t\twidth: 100%;\n\n\t\t#editor::v-deep .menubar {\n\t\t\tposition: sticky;\n\t\t\ttop: 0px;\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t#editor {\n\t\t\toverflow: auto;\n\t\t\t// Fix for IE11 issue where the menubar sometimes was positioned under the text\n\t\t\tz-index: 1000;\n\t\t}\n\t\t.has-conflicts #editor {\n\t\t\tpadding-top: 0;\n\t\t}\n\t}\n}\n\n.ie {\n\t#editor::v-deep .menubar {\n\t\t// sticky position is not working as body is our scroll container\n\t\tposition: fixed;\n\t\ttop: 50px;\n\t\twidth: 100%;\n\t}\n\t.editor__content::v-deep .ProseMirror {\n\t\tpadding-top: 50px;\n\t}\n}\n\n"],sourceRoot:""}]),n.a=a},700:function(t,n,e){"use strict";var r=e(51),o=e.n(r),i=e(52),a=e.n(i),s=e(241),c=e.n(s),l=e(242),u=a()(o.a),d=c()(l.a);u.push([t.i,'.modal-container #editor-container{position:absolute}.ProseMirror-hideselection *::selection{background:transparent;color:var(--color-main-text)}.ProseMirror-hideselection *::-moz-selection{background:transparent;color:var(--color-main-text)}.ProseMirror-hideselection{caret-color:transparent;color:var(--color-main-text)}.ProseMirror-selectednode{outline:2px solid #8cf}li.ProseMirror-selectednode{outline:none}li.ProseMirror-selectednode:after{content:"";position:absolute;left:-32px;right:-2px;top:-2px;bottom:-2px;border:2px solid #8cf;pointer-events:none}.has-conflicts .ProseMirror-menubar,#editor-wrapper.icon-loading .ProseMirror-menubar{display:none}.ProseMirror-gapcursor{display:none;pointer-events:none;position:absolute}.ProseMirror-gapcursor:after{content:"";display:block;position:absolute;top:-2px;width:20px;border-top:1px solid var(--color-main-text);animation:ProseMirror-cursor-blink 1.1s steps(2, start) infinite}@keyframes ProseMirror-cursor-blink{to{visibility:hidden}}#editor-wrapper div.ProseMirror{margin-top:44px;height:100%;position:relative;word-wrap:break-word;white-space:pre-wrap;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;padding:4px 8px 200px 14px;line-height:150%;font-size:14px;outline:none}#editor-wrapper div.ProseMirror[contenteditable=true],#editor-wrapper div.ProseMirror[contenteditable=false],#editor-wrapper div.ProseMirror [contenteditable=true],#editor-wrapper div.ProseMirror [contenteditable=false]{border:none !important;width:100%;background-color:transparent;color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:14px}#editor-wrapper div.ProseMirror .checkbox-item{display:flex;align-items:start;margin-left:-23px}#editor-wrapper div.ProseMirror .checkbox-item input[type=checkbox]{display:none}#editor-wrapper div.ProseMirror .checkbox-item:before{content:\'\';vertical-align:middle;margin:3px 6px 3px 2px;border:1px solid var(--color-text-maxcontrast);position:relative;display:block;border-radius:var(--border-radius);height:14px;width:14px;box-shadow:none !important;background-position:center;cursor:pointer}#editor-wrapper div.ProseMirror .checkbox-item.checked:before{background-image:url('+d+');background-color:var(--color-primary-element);border-color:var(--color-primary-element)}#editor-wrapper div.ProseMirror .checkbox-item label{display:block;flex-grow:1;max-width:calc(100% - 28px)}#editor-wrapper div.ProseMirror>*:first-child{margin-top:10px}#editor-wrapper div.ProseMirror a{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}#editor-wrapper div.ProseMirror p{margin-bottom:1em;line-height:150%}#editor-wrapper div.ProseMirror em{font-style:italic}#editor-wrapper div.ProseMirror h1,#editor-wrapper div.ProseMirror h2,#editor-wrapper div.ProseMirror h3,#editor-wrapper div.ProseMirror h4,#editor-wrapper div.ProseMirror h5,#editor-wrapper div.ProseMirror h6{font-weight:600;line-height:120%;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}#editor-wrapper div.ProseMirror h1{font-size:36px;margin-top:48px}#editor-wrapper div.ProseMirror h2{font-size:28px;margin-top:48px}#editor-wrapper div.ProseMirror h3{font-size:24px}#editor-wrapper div.ProseMirror h4{font-size:21px}#editor-wrapper div.ProseMirror h5{font-size:17px}#editor-wrapper div.ProseMirror h6{font-size:14px}#editor-wrapper div.ProseMirror img{cursor:default;max-width:100%}#editor-wrapper div.ProseMirror hr{padding:2px 0;border:none;margin:1em 0;width:100%}#editor-wrapper div.ProseMirror hr:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}#editor-wrapper div.ProseMirror pre{white-space:pre;overflow-x:auto;background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:1em 1.3em;margin-bottom:1em}#editor-wrapper div.ProseMirror p code{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}#editor-wrapper div.ProseMirror li{position:relative;padding-left:3px}#editor-wrapper div.ProseMirror li p{margin-bottom:0.5em}#editor-wrapper div.ProseMirror ul,#editor-wrapper div.ProseMirror ol{padding-left:10px;margin-left:10px}#editor-wrapper div.ProseMirror ul li{list-style-type:disc}#editor-wrapper div.ProseMirror ul>li>ul>li{list-style-type:circle}#editor-wrapper div.ProseMirror ul>li>ul>li ul li{list-style-type:square}#editor-wrapper div.ProseMirror blockquote{padding-left:1em;border-left:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-left:0;margin-right:0}#editor-wrapper .ProseMirror-focused .ProseMirror-gapcursor{display:block}#editor-wrapper .editor__content p.is-empty:first-child::before{content:attr(data-empty-text);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}#editor-wrapper:not(.richEditor) .ProseMirror pre{background-color:var(--color-main-background)}#editor-wrapper:not(.richEditor) .ProseMirror pre::before{content:attr(data-language);text-transform:uppercase;display:block;text-align:right;font-weight:bold;font-size:0.6rem}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-comment,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-quote{color:#999999}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-variable,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-template-variable,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-attribute,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-tag,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-name,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-regexp,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-link,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-selector-id,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-selector-class{color:#f2777a}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-number,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-meta,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-built_in,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-builtin-name,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-literal,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-type,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-params{color:#f99157}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-string,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-symbol,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-bullet{color:#99cc99}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-title,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-section{color:#ffcc66}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-keyword,#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-selector-tag{color:#6699cc}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-emphasis{font-style:italic}#editor-wrapper:not(.richEditor) .ProseMirror pre code .hljs-strong{font-weight:700}#files-public-content{height:100%}\n',"",{version:3,sources:["webpack://./css/style.scss","webpack://./src/components/EditorWrapper.vue","webpack://./css/prosemirror.scss"],names:[],mappings:"AAAA,mCACE,iBAAkB,CACnB,wCAEyC,sBAAuB,CAAE,4BAA6B,CAAI,6CACrD,sBAAuB,CAAE,4BAA6B,CAAI,2BAC5E,uBAAwB,CAAE,4BAA6B,CAAI,0BAGtF,sBAAuB,CACxB,4BAIC,YAAa,CACd,kCAGC,UAAW,CACX,iBAAkB,CAClB,UAAW,CACX,UAAW,CAAE,QAAS,CAAE,WAAY,CACpC,qBAAsB,CACtB,mBAAoB,CACrB,sFAKG,YAAa,CACd,uBAID,YAAa,CACb,mBAAoB,CACpB,iBAAkB,CACnB,6BAGC,UAAW,CACX,aAAc,CACd,iBAAkB,CAClB,QAAS,CACT,UAAW,CACX,2CAA4C,CAC5C,gEAAiE,CAClE,oCAGC,GACE,iBAAkB,CAAA,CC8lBtB,gCC/oBC,eAAgB,CAChB,WAAY,CACZ,iBAAkB,CAClB,oBAAqB,CACrB,oBAAqB,CACrB,mCAAoC,CACpC,2BAA4B,CAC5B,0BAA2B,CAC3B,gBAAiB,CACjB,cAAe,CACf,YAAa,CDqoBd,4NC/nBE,sBAAuB,CACvB,UAAW,CACX,4BAA6B,CAC7B,4BAA6B,CAC7B,SAAU,CACV,wBAAyB,CACzB,gBAAiB,CACjB,cAAe,CDwnBjB,+CCpnBE,YAAa,CACb,iBAAkB,CAElB,iBAAkB,CDinBpB,oEC9mBG,YAAa,CD8mBhB,sDC3mBG,UAAW,CACX,qBAAsB,CACtB,sBAAuB,CACvB,8CAA+C,CAC/C,iBAAkB,CAClB,aAAc,CACd,kCAAmC,CACnC,WAAY,CACZ,UAAW,CACX,0BAA2B,CAC3B,0BAA2B,CAC3B,cAAe,CDgmBlB,8DC7lBG,wDAAoD,CACpD,6CAA8C,CAC9C,yCAA0C,CD2lB7C,qDCxlBG,aAAc,CACd,WAAY,CACZ,2BAA4B,CDslB/B,8CCjlBE,eAAgB,CDilBlB,kCC7kBE,kCAAmC,CACnC,yBAA0B,CAC1B,cAAe,CD2kBjB,kCCvkBE,iBAAkB,CAClB,gBAAiB,CDskBnB,mCClkBE,iBAAkB,CDkkBpB,kNCzjBE,eAAgB,CAChB,gBAAiB,CACjB,eAAgB,CAChB,kBAAmB,CACnB,4BAA6B,CDqjB/B,mCCjjBE,cAAe,CACf,eAAgB,CDgjBlB,mCC5iBE,cAAe,CACf,eAAgB,CD2iBlB,mCCviBE,cAAe,CDuiBjB,mCCniBE,cAAe,CDmiBjB,mCC/hBE,cAAe,CD+hBjB,mCC3hBE,cAAe,CD2hBjB,oCCvhBE,cAAe,CACf,cAAe,CDshBjB,mCClhBE,aAAc,CACd,WAAY,CACZ,YAAa,CACb,UAAW,CD+gBb,yCC3gBE,UAAW,CACX,aAAc,CACd,UAAW,CACX,yCAA0C,CAC1C,eAAgB,CDugBlB,oCCngBE,eAAgB,CAChB,eAAgB,CAChB,6CAA8C,CAC9C,kCAAmC,CACnC,iBAAkB,CAClB,iBAAkB,CD8fpB,uCC1fE,6CAA8C,CAC9C,kCAAmC,CACnC,iBAAkB,CDwfpB,mCCpfE,iBAAkB,CAClB,gBAAiB,CDmfnB,qCChfG,mBAAoB,CDgfvB,sEC3eE,iBAAkB,CAClB,gBAAiB,CD0enB,sCCteE,oBAAqB,CDsevB,4CCjeE,sBAAuB,CDiezB,kDC5dE,sBAAuB,CD4dzB,2CCxdE,gBAAiB,CACjB,kDAAmD,CACnD,mCAAoC,CACpC,aAAc,CACd,cAAe,CDodjB,4DC9cC,aAAc,CD8cf,gEC1cC,6BAA8B,CAC9B,UAAW,CACX,mCAAoC,CACpC,mBAAoB,CACpB,QAAS,CDscV,kDAKG,6CAA8C,CALjD,0DAQI,2BAA4B,CAC5B,wBAAyB,CACzB,aAAc,CACd,gBAAiB,CACjB,gBAAiB,CACjB,gBAAiB,CAbrB,wIAkBK,aAAc,CAlBnB,0nBA6BK,aAAc,CA7BnB,ieAsCK,aAAc,CAtCnB,4MA2CK,aAAc,CA3CnB,wIA+CK,aAAc,CA/CnB,+IAmDK,aAAc,CAnDnB,sEAsDK,iBAAkB,CAtDvB,oEAyDK,eAAgB,CAChB,sBASJ,WAAY",sourcesContent:['.modal-container #editor-container {\n  position: absolute;\n}\n\n.ProseMirror-hideselection *::selection { background: transparent; color: var(--color-main-text); }\n.ProseMirror-hideselection *::-moz-selection { background: transparent; color: var(--color-main-text); }\n.ProseMirror-hideselection { caret-color: transparent; color: var(--color-main-text); }\n\n.ProseMirror-selectednode {\n  outline: 2px solid #8cf;\n}\n\n/* Make sure li selections wrap around markers */\nli.ProseMirror-selectednode {\n  outline: none;\n}\n\nli.ProseMirror-selectednode:after {\n  content: "";\n  position: absolute;\n  left: -32px;\n  right: -2px; top: -2px; bottom: -2px;\n  border: 2px solid #8cf;\n  pointer-events: none;\n}\n\n.has-conflicts,\n#editor-wrapper.icon-loading {\n  .ProseMirror-menubar {\n    display: none;\n  }\n}\n\n.ProseMirror-gapcursor {\n  display: none;\n  pointer-events: none;\n  position: absolute;\n}\n\n.ProseMirror-gapcursor:after {\n  content: "";\n  display: block;\n  position: absolute;\n  top: -2px;\n  width: 20px;\n  border-top: 1px solid var(--color-main-text);\n  animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n  to {\n    visibility: hidden;\n  }\n}\n',"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n@import './../../css/style';\n\n#editor-wrapper {\n\t@import './../../css/prosemirror';\n\n\t&:not(.richEditor) .ProseMirror {\n\t\tpre {\n\t\t\tbackground-color: var(--color-main-background);\n\n\t\t\t&::before {\n\t\t\t\tcontent: attr(data-language);\n\t\t\t\ttext-transform: uppercase;\n\t\t\t\tdisplay: block;\n\t\t\t\ttext-align: right;\n\t\t\t\tfont-weight: bold;\n\t\t\t\tfont-size: 0.6rem;\n\t\t\t}\n\t\t\tcode {\n\t\t\t\t.hljs-comment,\n\t\t\t\t.hljs-quote {\n\t\t\t\t\tcolor: #999999;\n\t\t\t\t}\n\t\t\t\t.hljs-variable,\n\t\t\t\t.hljs-template-variable,\n\t\t\t\t.hljs-attribute,\n\t\t\t\t.hljs-tag,\n\t\t\t\t.hljs-name,\n\t\t\t\t.hljs-regexp,\n\t\t\t\t.hljs-link,\n\t\t\t\t.hljs-selector-id,\n\t\t\t\t.hljs-selector-class {\n\t\t\t\t\tcolor: #f2777a;\n\t\t\t\t}\n\t\t\t\t.hljs-number,\n\t\t\t\t.hljs-meta,\n\t\t\t\t.hljs-built_in,\n\t\t\t\t.hljs-builtin-name,\n\t\t\t\t.hljs-literal,\n\t\t\t\t.hljs-type,\n\t\t\t\t.hljs-params {\n\t\t\t\t\tcolor: #f99157;\n\t\t\t\t}\n\t\t\t\t.hljs-string,\n\t\t\t\t.hljs-symbol,\n\t\t\t\t.hljs-bullet {\n\t\t\t\t\tcolor: #99cc99;\n\t\t\t\t}\n\t\t\t\t.hljs-title,\n\t\t\t\t.hljs-section {\n\t\t\t\t\tcolor: #ffcc66;\n\t\t\t\t}\n\t\t\t\t.hljs-keyword,\n\t\t\t\t.hljs-selector-tag {\n\t\t\t\t\tcolor: #6699cc;\n\t\t\t\t}\n\t\t\t\t.hljs-emphasis {\n\t\t\t\t\tfont-style: italic;\n\t\t\t\t}\n\t\t\t\t.hljs-strong {\n\t\t\t\t\tfont-weight: 700;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\n// Required in order to make the public pages behave the same if talk is enabled or not\n// as Talk overwrites the public page styles and changes the DOM layout for the sidebar injection\n#files-public-content {\n\theight: 100%;\n}\n","/* Document rendering styles */\ndiv.ProseMirror {\n\tmargin-top: 44px;\n\theight: 100%;\n\tposition: relative;\n\tword-wrap: break-word;\n\twhite-space: pre-wrap;\n\t-webkit-font-variant-ligatures: none;\n\tfont-variant-ligatures: none;\n\tpadding: 4px 8px 200px 14px;\n\tline-height: 150%;\n\tfont-size: 14px;\n\toutline: none;\n\n\t&[contenteditable=true],\n\t&[contenteditable=false],\n\t[contenteditable=true],\n\t[contenteditable=false] {\n\t\tborder: none !important;\n\t\twidth: 100%;\n\t\tbackground-color: transparent;\n\t\tcolor: var(--color-main-text);\n\t\topacity: 1;\n\t\t-webkit-user-select: text;\n\t\tuser-select: text;\n\t\tfont-size: 14px;\n\t}\n\n\t.checkbox-item {\n\t\tdisplay: flex;\n\t\talign-items: start;\n\t\t// Left-align with list item text\n\t\tmargin-left: -23px;\n\n\t\tinput[type=checkbox] {\n\t\t\tdisplay: none;\n\t\t}\n\t\t&:before {\n\t\t\tcontent: '';\n\t\t\tvertical-align: middle;\n\t\t\tmargin: 3px 6px 3px 2px;\n\t\t\tborder: 1px solid var(--color-text-maxcontrast);\n\t\t\tposition: relative;\n\t\t\tdisplay: block;\n\t\t\tborder-radius: var(--border-radius);\n\t\t\theight: 14px;\n\t\t\twidth: 14px;\n\t\t\tbox-shadow: none !important;\n\t\t\tbackground-position: center;\n\t\t\tcursor: pointer;\n\t\t}\n\t\t&.checked:before {\n\t\t\tbackground-image: url('../../img/checkbox-mark.svg');\n\t\t\tbackground-color: var(--color-primary-element);\n\t\t\tborder-color: var(--color-primary-element);\n\t\t}\n\t\tlabel {\n\t\t\tdisplay: block;\n\t\t\tflex-grow: 1;\n\t\t\tmax-width: calc(100% - 28px);\n\t\t}\n\t}\n\n\t> *:first-child {\n\t\tmargin-top: 10px;\n\t}\n\n\ta {\n\t\tcolor: var(--color-primary-element);\n\t\ttext-decoration: underline;\n\t\tpadding: .5em 0;\n\t}\n\n\tp {\n\t\tmargin-bottom: 1em;\n\t\tline-height: 150%;\n\t}\n\n\tem {\n\t\tfont-style: italic;\n\t}\n\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6 {\n\t\tfont-weight: 600;\n\t\tline-height: 120%;\n\t\tmargin-top: 24px;\n\t\tmargin-bottom: 12px;\n\t\tcolor: var(--color-main-text);\n\t}\n\n\th1 {\n\t\tfont-size: 36px;\n\t\tmargin-top: 48px;\n\t}\n\n\th2 {\n\t\tfont-size: 28px;\n\t\tmargin-top: 48px;\n\t}\n\n\th3 {\n\t\tfont-size: 24px;\n\t}\n\n\th4 {\n\t\tfont-size: 21px;\n\t}\n\n\th5 {\n\t\tfont-size: 17px;\n\t}\n\n\th6 {\n\t\tfont-size: 14px;\n\t}\n\n\timg {\n\t\tcursor: default;\n\t\tmax-width: 100%;\n\t}\n\n\thr {\n\t\tpadding: 2px 0;\n\t\tborder: none;\n\t\tmargin: 1em 0;\n\t\twidth: 100%;\n\t}\n\n\thr:after {\n\t\tcontent: \"\";\n\t\tdisplay: block;\n\t\theight: 1px;\n\t\tbackground-color: var(--color-border-dark);\n\t\tline-height: 2px;\n\t}\n\n\tpre {\n\t\twhite-space: pre;\n\t\toverflow-x: auto;\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: 1em 1.3em;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tp code {\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: .1em .3em;\n\t}\n\n\tli {\n\t\tposition: relative;\n\t\tpadding-left: 3px;\n\n\t\tp {\n\t\t\tmargin-bottom: 0.5em;\n\t\t}\n\t}\n\n\tul, ol {\n\t\tpadding-left: 10px;\n\t\tmargin-left: 10px;\n\t}\n\n\tul li {\n\t\tlist-style-type: disc;\n\t}\n\n\t// Second-level list entries\n\tul > li > ul > li {\n\t\tlist-style-type: circle;\n\t}\n\n\t// Third-level and further down list entries\n\tul > li > ul > li ul li {\n\t\tlist-style-type: square;\n\t}\n\n\tblockquote {\n\t\tpadding-left: 1em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t}\n\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n\tdisplay: block;\n}\n\n.editor__content p.is-empty:first-child::before {\n\tcontent: attr(data-empty-text);\n\tfloat: left;\n\tcolor: var(--color-text-maxcontrast);\n\tpointer-events: none;\n\theight: 0;\n}\n"],sourceRoot:""}]),n.a=u},701:function(t,n,e){"use strict";var r=e(51),o=e.n(r),i=e(52),a=e.n(i)()(o.a);a.push([t.i,"body[data-v-3ea77884]{position:fixed}#direct-editor[data-v-3ea77884]{width:100%;height:100%;position:fixed;overflow:hidden}#direct-editor[data-v-3ea77884] #editor-container{height:100%;top:0}#direct-editor[data-v-3ea77884] #editor-wrapper div.ProseMirror{margin-top:0}pre[data-v-3ea77884]{width:100%;max-width:700px;margin:auto;background-color:var(--color-background-dark)}button[data-v-3ea77884]{width:44px;height:44px;margin:0;background-size:16px;border:0;background-color:transparent;opacity:.5;color:var(--color-main-text);background-position:center center;vertical-align:top}button[data-v-3ea77884]:hover,button[data-v-3ea77884]:focus,button[data-v-3ea77884]:active{background-color:var(--color-background-dark)}button.is-active[data-v-3ea77884],button[data-v-3ea77884]:hover,button[data-v-3ea77884]:focus{opacity:1}button.icon-undo[data-v-3ea77884],button.icon-redo[data-v-3ea77884]{opacity:.4}\n","",{version:3,sources:["webpack://./src/views/DirectEditing.vue"],names:[],mappings:"AAgIA,sBACC,cAAe,CACf,gCAGA,UAAW,CACX,WAAY,CACZ,cAAe,CACf,eAAgB,CAJjB,kDAOE,WAAY,CACZ,KAAM,CARR,gEAWE,YAAa,CACb,qBAID,UAAW,CACX,eAAgB,CAChB,WAAY,CACZ,6CAA8C,CAC9C,wBAGA,UAAW,CACX,WAAY,CACZ,QAAS,CACT,oBAAqB,CACrB,QAAS,CACT,4BAA6B,CAC7B,UAAW,CACX,4BAA6B,CAC7B,iCAAkC,CAClC,kBAAmB,CAVpB,2FAYE,6CAA8C,CAZhD,8FAiBE,SAAU,CAjBZ,oEAqBE,UAAW",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nbody {\n\tposition: fixed;\n}\n\n#direct-editor {\n\twidth: 100%;\n\theight: 100%;\n\tposition: fixed;\n\toverflow: hidden;\n\n\t&::v-deep #editor-container {\n\t\theight: 100%;\n\t\ttop: 0;\n\t}\n\t&::v-deep #editor-wrapper div.ProseMirror {\n\t\tmargin-top: 0;\n\t}\n}\n\npre {\n\twidth: 100%;\n\tmax-width: 700px;\n\tmargin: auto;\n\tbackground-color: var(--color-background-dark);\n}\n\nbutton {\n\twidth: 44px;\n\theight: 44px;\n\tmargin: 0;\n\tbackground-size: 16px;\n\tborder: 0;\n\tbackground-color: transparent;\n\topacity: .5;\n\tcolor: var(--color-main-text);\n\tbackground-position: center center;\n\tvertical-align: top;\n\t&:hover, &:focus, &:active {\n\t\tbackground-color: var(--color-background-dark);\n\t}\n\t&.is-active,\n\t&:hover,\n\t&:focus {\n\t\topacity: 1;\n\t}\n\n\t&.icon-undo, &.icon-redo {\n\t\topacity: .4;\n\t}\n}\n"],sourceRoot:""}]),n.a=a},717:function(t,n,e){"use strict";e.r(n);var r=e(763),o=e(255);for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);e(764),e(765);var a=e(34),s=Object(a.a)(o.default,r.a,r.b,!1,null,null,null);n.default=s.exports},718:function(t,n,e){"use strict";var r=e(51),o=e.n(r),i=e(52),a=e.n(i),s=e(241),c=e.n(s),l=e(242),u=a()(o.a),d=c()(l.a);u.push([t.i,"#read-only-editor{overflow:scroll}#read-only-editor div.ProseMirror{margin-top:44px;height:100%;position:relative;word-wrap:break-word;white-space:pre-wrap;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;padding:4px 8px 200px 14px;line-height:150%;font-size:14px;outline:none}#read-only-editor div.ProseMirror[contenteditable=true],#read-only-editor div.ProseMirror[contenteditable=false],#read-only-editor div.ProseMirror [contenteditable=true],#read-only-editor div.ProseMirror [contenteditable=false]{border:none !important;width:100%;background-color:transparent;color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:14px}#read-only-editor div.ProseMirror .checkbox-item{display:flex;align-items:start;margin-left:-23px}#read-only-editor div.ProseMirror .checkbox-item input[type=checkbox]{display:none}#read-only-editor div.ProseMirror .checkbox-item:before{content:'';vertical-align:middle;margin:3px 6px 3px 2px;border:1px solid var(--color-text-maxcontrast);position:relative;display:block;border-radius:var(--border-radius);height:14px;width:14px;box-shadow:none !important;background-position:center;cursor:pointer}#read-only-editor div.ProseMirror .checkbox-item.checked:before{background-image:url("+d+');background-color:var(--color-primary-element);border-color:var(--color-primary-element)}#read-only-editor div.ProseMirror .checkbox-item label{display:block;flex-grow:1;max-width:calc(100% - 28px)}#read-only-editor div.ProseMirror>*:first-child{margin-top:10px}#read-only-editor div.ProseMirror a{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}#read-only-editor div.ProseMirror p{margin-bottom:1em;line-height:150%}#read-only-editor div.ProseMirror em{font-style:italic}#read-only-editor div.ProseMirror h1,#read-only-editor div.ProseMirror h2,#read-only-editor div.ProseMirror h3,#read-only-editor div.ProseMirror h4,#read-only-editor div.ProseMirror h5,#read-only-editor div.ProseMirror h6{font-weight:600;line-height:120%;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}#read-only-editor div.ProseMirror h1{font-size:36px;margin-top:48px}#read-only-editor div.ProseMirror h2{font-size:28px;margin-top:48px}#read-only-editor div.ProseMirror h3{font-size:24px}#read-only-editor div.ProseMirror h4{font-size:21px}#read-only-editor div.ProseMirror h5{font-size:17px}#read-only-editor div.ProseMirror h6{font-size:14px}#read-only-editor div.ProseMirror img{cursor:default;max-width:100%}#read-only-editor div.ProseMirror hr{padding:2px 0;border:none;margin:1em 0;width:100%}#read-only-editor div.ProseMirror hr:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}#read-only-editor div.ProseMirror pre{white-space:pre;overflow-x:auto;background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:1em 1.3em;margin-bottom:1em}#read-only-editor div.ProseMirror p code{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}#read-only-editor div.ProseMirror li{position:relative;padding-left:3px}#read-only-editor div.ProseMirror li p{margin-bottom:0.5em}#read-only-editor div.ProseMirror ul,#read-only-editor div.ProseMirror ol{padding-left:10px;margin-left:10px}#read-only-editor div.ProseMirror ul li{list-style-type:disc}#read-only-editor div.ProseMirror ul>li>ul>li{list-style-type:circle}#read-only-editor div.ProseMirror ul>li>ul>li ul li{list-style-type:square}#read-only-editor div.ProseMirror blockquote{padding-left:1em;border-left:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-left:0;margin-right:0}#read-only-editor .ProseMirror-focused .ProseMirror-gapcursor{display:block}#read-only-editor .editor__content p.is-empty:first-child::before{content:attr(data-empty-text);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}.thumbnailContainer #read-only-editor{width:100%}.thumbnailContainer #read-only-editor .ProseMirror{height:auto;margin:0 0 0 0;padding:0}\n',"",{version:3,sources:["webpack://./src/components/ReadOnlyEditor.vue","webpack://./css/prosemirror.scss"],names:[],mappings:"AAgEA,kBAEC,eAAgB,CAFjB,kCC9DC,eAAgB,CAChB,WAAY,CACZ,iBAAkB,CAClB,oBAAqB,CACrB,oBAAqB,CACrB,mCAAoC,CACpC,2BAA4B,CAC5B,0BAA2B,CAC3B,gBAAiB,CACjB,cAAe,CACf,YAAa,CDoDd,oOC9CE,sBAAuB,CACvB,UAAW,CACX,4BAA6B,CAC7B,4BAA6B,CAC7B,SAAU,CACV,wBAAyB,CACzB,gBAAiB,CACjB,cAAe,CDuCjB,iDCnCE,YAAa,CACb,iBAAkB,CAElB,iBAAkB,CDgCpB,sEC7BG,YAAa,CD6BhB,wDC1BG,UAAW,CACX,qBAAsB,CACtB,sBAAuB,CACvB,8CAA+C,CAC/C,iBAAkB,CAClB,aAAc,CACd,kCAAmC,CACnC,WAAY,CACZ,UAAW,CACX,0BAA2B,CAC3B,0BAA2B,CAC3B,cAAe,CDelB,gECZG,wDAAoD,CACpD,6CAA8C,CAC9C,yCAA0C,CDU7C,uDCPG,aAAc,CACd,WAAY,CACZ,2BAA4B,CDK/B,gDCAE,eAAgB,CDAlB,oCCIE,kCAAmC,CACnC,yBAA0B,CAC1B,cAAe,CDNjB,oCCUE,iBAAkB,CAClB,gBAAiB,CDXnB,qCCeE,iBAAkB,CDfpB,8NCwBE,eAAgB,CAChB,gBAAiB,CACjB,eAAgB,CAChB,kBAAmB,CACnB,4BAA6B,CD5B/B,qCCgCE,cAAe,CACf,eAAgB,CDjClB,qCCqCE,cAAe,CACf,eAAgB,CDtClB,qCC0CE,cAAe,CD1CjB,qCC8CE,cAAe,CD9CjB,qCCkDE,cAAe,CDlDjB,qCCsDE,cAAe,CDtDjB,sCC0DE,cAAe,CACf,cAAe,CD3DjB,qCC+DE,aAAc,CACd,WAAY,CACZ,YAAa,CACb,UAAW,CDlEb,2CCsEE,UAAW,CACX,aAAc,CACd,UAAW,CACX,yCAA0C,CAC1C,eAAgB,CD1ElB,sCC8EE,eAAgB,CAChB,eAAgB,CAChB,6CAA8C,CAC9C,kCAAmC,CACnC,iBAAkB,CAClB,iBAAkB,CDnFpB,yCCuFE,6CAA8C,CAC9C,kCAAmC,CACnC,iBAAkB,CDzFpB,qCC6FE,iBAAkB,CAClB,gBAAiB,CD9FnB,uCCiGG,mBAAoB,CDjGvB,0ECsGE,iBAAkB,CAClB,gBAAiB,CDvGnB,wCC2GE,oBAAqB,CD3GvB,8CCgHE,sBAAuB,CDhHzB,oDCqHE,sBAAuB,CDrHzB,6CCyHE,gBAAiB,CACjB,kDAAmD,CACnD,mCAAoC,CACpC,aAAc,CACd,cAAe,CD7HjB,8DCmIC,aAAc,CDnIf,kECuIC,6BAA8B,CAC9B,UAAW,CACX,mCAAoC,CACpC,mBAAoB,CACpB,QAAS,CDtIV,sCACC,UAAW,CADZ,mDAIE,WAAY,CACZ,cAAe,CACf,SAAU",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n#read-only-editor {\n\t@import './../../css/prosemirror';\n\toverflow: scroll;\n}\n\n.thumbnailContainer #read-only-editor  {\n\twidth: 100%;\n\n\t.ProseMirror {\n\t\theight: auto;\n\t\tmargin: 0 0 0 0;\n\t\tpadding: 0;\n\t}\n}\n\n","/* Document rendering styles */\ndiv.ProseMirror {\n\tmargin-top: 44px;\n\theight: 100%;\n\tposition: relative;\n\tword-wrap: break-word;\n\twhite-space: pre-wrap;\n\t-webkit-font-variant-ligatures: none;\n\tfont-variant-ligatures: none;\n\tpadding: 4px 8px 200px 14px;\n\tline-height: 150%;\n\tfont-size: 14px;\n\toutline: none;\n\n\t&[contenteditable=true],\n\t&[contenteditable=false],\n\t[contenteditable=true],\n\t[contenteditable=false] {\n\t\tborder: none !important;\n\t\twidth: 100%;\n\t\tbackground-color: transparent;\n\t\tcolor: var(--color-main-text);\n\t\topacity: 1;\n\t\t-webkit-user-select: text;\n\t\tuser-select: text;\n\t\tfont-size: 14px;\n\t}\n\n\t.checkbox-item {\n\t\tdisplay: flex;\n\t\talign-items: start;\n\t\t// Left-align with list item text\n\t\tmargin-left: -23px;\n\n\t\tinput[type=checkbox] {\n\t\t\tdisplay: none;\n\t\t}\n\t\t&:before {\n\t\t\tcontent: '';\n\t\t\tvertical-align: middle;\n\t\t\tmargin: 3px 6px 3px 2px;\n\t\t\tborder: 1px solid var(--color-text-maxcontrast);\n\t\t\tposition: relative;\n\t\t\tdisplay: block;\n\t\t\tborder-radius: var(--border-radius);\n\t\t\theight: 14px;\n\t\t\twidth: 14px;\n\t\t\tbox-shadow: none !important;\n\t\t\tbackground-position: center;\n\t\t\tcursor: pointer;\n\t\t}\n\t\t&.checked:before {\n\t\t\tbackground-image: url('../../img/checkbox-mark.svg');\n\t\t\tbackground-color: var(--color-primary-element);\n\t\t\tborder-color: var(--color-primary-element);\n\t\t}\n\t\tlabel {\n\t\t\tdisplay: block;\n\t\t\tflex-grow: 1;\n\t\t\tmax-width: calc(100% - 28px);\n\t\t}\n\t}\n\n\t> *:first-child {\n\t\tmargin-top: 10px;\n\t}\n\n\ta {\n\t\tcolor: var(--color-primary-element);\n\t\ttext-decoration: underline;\n\t\tpadding: .5em 0;\n\t}\n\n\tp {\n\t\tmargin-bottom: 1em;\n\t\tline-height: 150%;\n\t}\n\n\tem {\n\t\tfont-style: italic;\n\t}\n\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6 {\n\t\tfont-weight: 600;\n\t\tline-height: 120%;\n\t\tmargin-top: 24px;\n\t\tmargin-bottom: 12px;\n\t\tcolor: var(--color-main-text);\n\t}\n\n\th1 {\n\t\tfont-size: 36px;\n\t\tmargin-top: 48px;\n\t}\n\n\th2 {\n\t\tfont-size: 28px;\n\t\tmargin-top: 48px;\n\t}\n\n\th3 {\n\t\tfont-size: 24px;\n\t}\n\n\th4 {\n\t\tfont-size: 21px;\n\t}\n\n\th5 {\n\t\tfont-size: 17px;\n\t}\n\n\th6 {\n\t\tfont-size: 14px;\n\t}\n\n\timg {\n\t\tcursor: default;\n\t\tmax-width: 100%;\n\t}\n\n\thr {\n\t\tpadding: 2px 0;\n\t\tborder: none;\n\t\tmargin: 1em 0;\n\t\twidth: 100%;\n\t}\n\n\thr:after {\n\t\tcontent: \"\";\n\t\tdisplay: block;\n\t\theight: 1px;\n\t\tbackground-color: var(--color-border-dark);\n\t\tline-height: 2px;\n\t}\n\n\tpre {\n\t\twhite-space: pre;\n\t\toverflow-x: auto;\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: 1em 1.3em;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tp code {\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: .1em .3em;\n\t}\n\n\tli {\n\t\tposition: relative;\n\t\tpadding-left: 3px;\n\n\t\tp {\n\t\t\tmargin-bottom: 0.5em;\n\t\t}\n\t}\n\n\tul, ol {\n\t\tpadding-left: 10px;\n\t\tmargin-left: 10px;\n\t}\n\n\tul li {\n\t\tlist-style-type: disc;\n\t}\n\n\t// Second-level list entries\n\tul > li > ul > li {\n\t\tlist-style-type: circle;\n\t}\n\n\t// Third-level and further down list entries\n\tul > li > ul > li ul li {\n\t\tlist-style-type: square;\n\t}\n\n\tblockquote {\n\t\tpadding-left: 1em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t}\n\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n\tdisplay: block;\n}\n\n.editor__content p.is-empty:first-child::before {\n\tcontent: attr(data-empty-text);\n\tfloat: left;\n\tcolor: var(--color-text-maxcontrast);\n\tpointer-events: none;\n\theight: 0;\n}\n"],sourceRoot:""}]),n.a=u},719:function(t,n,e){"use strict";var r=e(51),o=e.n(r),i=e(52),a=e.n(i),s=e(241),c=e.n(s),l=e(242),u=a()(o.a),d=c()(l.a);u.push([t.i,"div.ProseMirror{margin-top:44px;height:100%;position:relative;word-wrap:break-word;white-space:pre-wrap;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;padding:4px 8px 200px 14px;line-height:150%;font-size:14px;outline:none}div.ProseMirror[contenteditable=true],div.ProseMirror[contenteditable=false],div.ProseMirror [contenteditable=true],div.ProseMirror [contenteditable=false]{border:none !important;width:100%;background-color:transparent;color:var(--color-main-text);opacity:1;-webkit-user-select:text;user-select:text;font-size:14px}div.ProseMirror .checkbox-item{display:flex;align-items:start;margin-left:-23px}div.ProseMirror .checkbox-item input[type=checkbox]{display:none}div.ProseMirror .checkbox-item:before{content:'';vertical-align:middle;margin:3px 6px 3px 2px;border:1px solid var(--color-text-maxcontrast);position:relative;display:block;border-radius:var(--border-radius);height:14px;width:14px;box-shadow:none !important;background-position:center;cursor:pointer}div.ProseMirror .checkbox-item.checked:before{background-image:url("+d+');background-color:var(--color-primary-element);border-color:var(--color-primary-element)}div.ProseMirror .checkbox-item label{display:block;flex-grow:1;max-width:calc(100% - 28px)}div.ProseMirror>*:first-child{margin-top:10px}div.ProseMirror a{color:var(--color-primary-element);text-decoration:underline;padding:.5em 0}div.ProseMirror p{margin-bottom:1em;line-height:150%}div.ProseMirror em{font-style:italic}div.ProseMirror h1,div.ProseMirror h2,div.ProseMirror h3,div.ProseMirror h4,div.ProseMirror h5,div.ProseMirror h6{font-weight:600;line-height:120%;margin-top:24px;margin-bottom:12px;color:var(--color-main-text)}div.ProseMirror h1{font-size:36px;margin-top:48px}div.ProseMirror h2{font-size:28px;margin-top:48px}div.ProseMirror h3{font-size:24px}div.ProseMirror h4{font-size:21px}div.ProseMirror h5{font-size:17px}div.ProseMirror h6{font-size:14px}div.ProseMirror img{cursor:default;max-width:100%}div.ProseMirror hr{padding:2px 0;border:none;margin:1em 0;width:100%}div.ProseMirror hr:after{content:"";display:block;height:1px;background-color:var(--color-border-dark);line-height:2px}div.ProseMirror pre{white-space:pre;overflow-x:auto;background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:1em 1.3em;margin-bottom:1em}div.ProseMirror p code{background-color:var(--color-background-dark);border-radius:var(--border-radius);padding:.1em .3em}div.ProseMirror li{position:relative;padding-left:3px}div.ProseMirror li p{margin-bottom:0.5em}div.ProseMirror ul,div.ProseMirror ol{padding-left:10px;margin-left:10px}div.ProseMirror ul li{list-style-type:disc}div.ProseMirror ul>li>ul>li{list-style-type:circle}div.ProseMirror ul>li>ul>li ul li{list-style-type:square}div.ProseMirror blockquote{padding-left:1em;border-left:4px solid var(--color-primary-element);color:var(--color-text-maxcontrast);margin-left:0;margin-right:0}.ProseMirror-focused .ProseMirror-gapcursor{display:block}.editor__content p.is-empty:first-child::before{content:attr(data-empty-text);float:left;color:var(--color-text-maxcontrast);pointer-events:none;height:0}\n',"",{version:3,sources:["webpack://./css/prosemirror.scss"],names:[],mappings:"AACA,gBACC,eAAgB,CAChB,WAAY,CACZ,iBAAkB,CAClB,oBAAqB,CACrB,oBAAqB,CACrB,mCAAoC,CACpC,2BAA4B,CAC5B,0BAA2B,CAC3B,gBAAiB,CACjB,cAAe,CACf,YAAa,CAXd,4JAiBE,sBAAuB,CACvB,UAAW,CACX,4BAA6B,CAC7B,4BAA6B,CAC7B,SAAU,CACV,wBAAyB,CACzB,gBAAiB,CACjB,cAAe,CAxBjB,+BA4BE,YAAa,CACb,iBAAkB,CAElB,iBAAkB,CA/BpB,oDAkCG,YAAa,CAlChB,sCAqCG,UAAW,CACX,qBAAsB,CACtB,sBAAuB,CACvB,8CAA+C,CAC/C,iBAAkB,CAClB,aAAc,CACd,kCAAmC,CACnC,WAAY,CACZ,UAAW,CACX,0BAA2B,CAC3B,0BAA2B,CAC3B,cAAe,CAhDlB,8CAmDG,wDAAoD,CACpD,6CAA8C,CAC9C,yCAA0C,CArD7C,qCAwDG,aAAc,CACd,WAAY,CACZ,2BAA4B,CA1D/B,8BA+DE,eAAgB,CA/DlB,kBAmEE,kCAAmC,CACnC,yBAA0B,CAC1B,cAAe,CArEjB,kBAyEE,iBAAkB,CAClB,gBAAiB,CA1EnB,mBA8EE,iBAAkB,CA9EpB,kHAuFE,eAAgB,CAChB,gBAAiB,CACjB,eAAgB,CAChB,kBAAmB,CACnB,4BAA6B,CA3F/B,mBA+FE,cAAe,CACf,eAAgB,CAhGlB,mBAoGE,cAAe,CACf,eAAgB,CArGlB,mBAyGE,cAAe,CAzGjB,mBA6GE,cAAe,CA7GjB,mBAiHE,cAAe,CAjHjB,mBAqHE,cAAe,CArHjB,oBAyHE,cAAe,CACf,cAAe,CA1HjB,mBA8HE,aAAc,CACd,WAAY,CACZ,YAAa,CACb,UAAW,CAjIb,yBAqIE,UAAW,CACX,aAAc,CACd,UAAW,CACX,yCAA0C,CAC1C,eAAgB,CAzIlB,oBA6IE,eAAgB,CAChB,eAAgB,CAChB,6CAA8C,CAC9C,kCAAmC,CACnC,iBAAkB,CAClB,iBAAkB,CAlJpB,uBAsJE,6CAA8C,CAC9C,kCAAmC,CACnC,iBAAkB,CAxJpB,mBA4JE,iBAAkB,CAClB,gBAAiB,CA7JnB,qBAgKG,mBAAoB,CAhKvB,sCAqKE,iBAAkB,CAClB,gBAAiB,CAtKnB,sBA0KE,oBAAqB,CA1KvB,4BA+KE,sBAAuB,CA/KzB,kCAoLE,sBAAuB,CApLzB,2BAwLE,gBAAiB,CACjB,kDAAmD,CACnD,mCAAoC,CACpC,aAAc,CACd,cAAe,CACf,4CAKD,aAAc,CACd,gDAGA,6BAA8B,CAC9B,UAAW,CACX,mCAAoC,CACpC,mBAAoB,CACpB,QAAS",sourcesContent:["/* Document rendering styles */\ndiv.ProseMirror {\n\tmargin-top: 44px;\n\theight: 100%;\n\tposition: relative;\n\tword-wrap: break-word;\n\twhite-space: pre-wrap;\n\t-webkit-font-variant-ligatures: none;\n\tfont-variant-ligatures: none;\n\tpadding: 4px 8px 200px 14px;\n\tline-height: 150%;\n\tfont-size: 14px;\n\toutline: none;\n\n\t&[contenteditable=true],\n\t&[contenteditable=false],\n\t[contenteditable=true],\n\t[contenteditable=false] {\n\t\tborder: none !important;\n\t\twidth: 100%;\n\t\tbackground-color: transparent;\n\t\tcolor: var(--color-main-text);\n\t\topacity: 1;\n\t\t-webkit-user-select: text;\n\t\tuser-select: text;\n\t\tfont-size: 14px;\n\t}\n\n\t.checkbox-item {\n\t\tdisplay: flex;\n\t\talign-items: start;\n\t\t// Left-align with list item text\n\t\tmargin-left: -23px;\n\n\t\tinput[type=checkbox] {\n\t\t\tdisplay: none;\n\t\t}\n\t\t&:before {\n\t\t\tcontent: '';\n\t\t\tvertical-align: middle;\n\t\t\tmargin: 3px 6px 3px 2px;\n\t\t\tborder: 1px solid var(--color-text-maxcontrast);\n\t\t\tposition: relative;\n\t\t\tdisplay: block;\n\t\t\tborder-radius: var(--border-radius);\n\t\t\theight: 14px;\n\t\t\twidth: 14px;\n\t\t\tbox-shadow: none !important;\n\t\t\tbackground-position: center;\n\t\t\tcursor: pointer;\n\t\t}\n\t\t&.checked:before {\n\t\t\tbackground-image: url('../../img/checkbox-mark.svg');\n\t\t\tbackground-color: var(--color-primary-element);\n\t\t\tborder-color: var(--color-primary-element);\n\t\t}\n\t\tlabel {\n\t\t\tdisplay: block;\n\t\t\tflex-grow: 1;\n\t\t\tmax-width: calc(100% - 28px);\n\t\t}\n\t}\n\n\t> *:first-child {\n\t\tmargin-top: 10px;\n\t}\n\n\ta {\n\t\tcolor: var(--color-primary-element);\n\t\ttext-decoration: underline;\n\t\tpadding: .5em 0;\n\t}\n\n\tp {\n\t\tmargin-bottom: 1em;\n\t\tline-height: 150%;\n\t}\n\n\tem {\n\t\tfont-style: italic;\n\t}\n\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6 {\n\t\tfont-weight: 600;\n\t\tline-height: 120%;\n\t\tmargin-top: 24px;\n\t\tmargin-bottom: 12px;\n\t\tcolor: var(--color-main-text);\n\t}\n\n\th1 {\n\t\tfont-size: 36px;\n\t\tmargin-top: 48px;\n\t}\n\n\th2 {\n\t\tfont-size: 28px;\n\t\tmargin-top: 48px;\n\t}\n\n\th3 {\n\t\tfont-size: 24px;\n\t}\n\n\th4 {\n\t\tfont-size: 21px;\n\t}\n\n\th5 {\n\t\tfont-size: 17px;\n\t}\n\n\th6 {\n\t\tfont-size: 14px;\n\t}\n\n\timg {\n\t\tcursor: default;\n\t\tmax-width: 100%;\n\t}\n\n\thr {\n\t\tpadding: 2px 0;\n\t\tborder: none;\n\t\tmargin: 1em 0;\n\t\twidth: 100%;\n\t}\n\n\thr:after {\n\t\tcontent: \"\";\n\t\tdisplay: block;\n\t\theight: 1px;\n\t\tbackground-color: var(--color-border-dark);\n\t\tline-height: 2px;\n\t}\n\n\tpre {\n\t\twhite-space: pre;\n\t\toverflow-x: auto;\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: 1em 1.3em;\n\t\tmargin-bottom: 1em;\n\t}\n\n\tp code {\n\t\tbackground-color: var(--color-background-dark);\n\t\tborder-radius: var(--border-radius);\n\t\tpadding: .1em .3em;\n\t}\n\n\tli {\n\t\tposition: relative;\n\t\tpadding-left: 3px;\n\n\t\tp {\n\t\t\tmargin-bottom: 0.5em;\n\t\t}\n\t}\n\n\tul, ol {\n\t\tpadding-left: 10px;\n\t\tmargin-left: 10px;\n\t}\n\n\tul li {\n\t\tlist-style-type: disc;\n\t}\n\n\t// Second-level list entries\n\tul > li > ul > li {\n\t\tlist-style-type: circle;\n\t}\n\n\t// Third-level and further down list entries\n\tul > li > ul > li ul li {\n\t\tlist-style-type: square;\n\t}\n\n\tblockquote {\n\t\tpadding-left: 1em;\n\t\tborder-left: 4px solid var(--color-primary-element);\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t}\n\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n\tdisplay: block;\n}\n\n.editor__content p.is-empty:first-child::before {\n\tcontent: attr(data-empty-text);\n\tfloat: left;\n\tcolor: var(--color-text-maxcontrast);\n\tpointer-events: none;\n\theight: 0;\n}\n"],sourceRoot:""}]),n.a=u},72:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=i(e(22)),o=i(e(115));function i(t){return t&&t.__esModule?t:{default:t}}
/*
 * @copyright Copyright (c) 2020 Julius Härtl <jus@bitgrid.net>
 *
 * @author Julius Härtl <jus@bitgrid.net>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */var a=(0,e(96).getBuilder)("text").persist().build();r.default.use(o.default);var s=new o.default.Store({state:{showAuthorAnnotations:"true"===a.getItem("showAuthorAnnotations")},mutations:{SET_SHOW_AUTHOR_ANNOTATIONS:function(t,n){t.showAuthorAnnotations=n,a.setItem("showAuthorAnnotations",""+n)}},actions:{setShowAuthorAnnotations:function(t,n){t.commit;s.commit("SET_SHOW_AUTHOR_ANNOTATIONS",n)}}}),c=s;n.default=c},720:function(t,n,e){"use strict";e.r(n);var r=e(766),o=e(257);for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);e(767);var a=e(34),s=Object(a.a)(o.default,r.a,r.b,!1,null,"7fd0186f",null);n.default=s.exports},721:function(t,n,e){"use strict";var r=e(51),o=e.n(r),i=e(52),a=e.n(i)()(o.a);a.push([t.i,"#resolve-conflicts[data-v-7fd0186f]{display:flex;position:fixed;z-index:10000;bottom:0;max-width:900px;width:100vw;margin:auto;padding:20px 0}#resolve-conflicts button[data-v-7fd0186f]{margin:auto;box-shadow:0 0 10px var(--color-box-shadow)}\n","",{version:3,sources:["webpack://./src/components/CollisionResolveDialog.vue"],names:[],mappings:"AAwCA,oCACC,YAAa,CACb,cAAe,CACf,aAAc,CACd,QAAS,CACT,eAAgB,CAChB,WAAY,CACZ,WAAY,CACZ,cAAe,CARhB,2CAWE,WAAY,CACZ,2CAA4C",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n#resolve-conflicts {\n\tdisplay: flex;\n\tposition: fixed;\n\tz-index: 10000;\n\tbottom: 0;\n\tmax-width: 900px;\n\twidth: 100vw;\n\tmargin: auto;\n\tpadding: 20px 0;\n\n\tbutton {\n\t\tmargin: auto;\n\t\tbox-shadow: 0 0 10px var(--color-box-shadow);\n\t}\n}\n"],sourceRoot:""}]),n.a=a},753:function(t,n,e){"use strict";e.d(n,"a",(function(){return r})),e.d(n,"b",(function(){return o}));var r=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{class:{"icon-loading":t.saving},attrs:{id:"direct-editor"}},[e("EditorWrapper",{ref:"editor",attrs:{"initial-session":t.initialSession,active:!0,mime:t.initial.mimetype,"is-direct-editing":!0},on:{ready:t.loaded},scopedSlots:t._u([{key:"header",fn:function(){return[e("button",{staticClass:"icon-share",on:{click:t.share}}),t._v(" "),e("button",{staticClass:"icon-close",on:{click:t.close}})]},proxy:!0}])})],1)},o=[]},754:function(t,n,e){"use strict";e.d(n,"a",(function(){return r})),e.d(n,"b",(function(){return o}));var r=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{attrs:{id:"editor-container"}},[t.currentSession&&t.active?e("div",{staticClass:"document-status"},[t.idle?e("p",{staticClass:"msg icon-info"},[t._v("\n\t\t\t"+t._s(t.t("text","Document idle for {timeout} minutes, click to continue editing",{timeout:t.IDLE_TIMEOUT}))+" "),e("a",{staticClass:"button primary",on:{click:t.reconnect}},[t._v(t._s(t.t("text","Reconnect")))])]):t.hasSyncCollission?e("p",{staticClass:"msg icon-error"},[t._v("\n\t\t\t"+t._s(t.t("text","The document has been changed outside of the editor. The changes cannot be applied."))+"\n\t\t")]):t.hasConnectionIssue?e("p",{staticClass:"msg icon-info"},[t._v("\n\t\t\t"+t._s(t.t("text","File could not be loaded. Please check your internet connection."))+" "),e("a",{staticClass:"button primary",on:{click:t.reconnect}},[t._v(t._s(t.t("text","Reconnect")))])]):t._e()]):t._e(),t._v(" "),t.currentSession&&t.active?e("div",{class:{"has-conflicts":t.hasSyncCollission,"icon-loading":!t.initialLoading&&!t.hasConnectionIssue,richEditor:t.isRichEditor,"show-color-annotations":t.showAuthorAnnotations},attrs:{id:"editor-wrapper"}},[e("div",{attrs:{id:"editor"}},[t.syncError||t.readOnly?t._e():e("MenuBar",{ref:"menubar",attrs:{editor:t.tiptap,"file-path":t.relativePath,"is-rich-editor":t.isRichEditor,"is-public":t.isPublic,autohide:t.autohide}},[t.currentSession&&t.active?e("div",{attrs:{id:"editor-session-list"}},[e("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.lastSavedStatusTooltip,expression:"lastSavedStatusTooltip"}],staticClass:"save-status",class:t.lastSavedStatusClass},[t._v("\n\t\t\t\t\t\t"+t._s(t.lastSavedStatus)+"\n\t\t\t\t\t")]),t._v(" "),e("SessionList",{attrs:{sessions:t.filteredSessions}},[t.isPublic&&t.currentSession.guestName?e("GuestNameDialog",{attrs:{"sync-service":t.syncService}}):t._e()],1)],1):t._e(),t._v(" "),t._t("header")],2),t._v(" "),e("div",[!t.readOnly&&t.isRichEditor?e("MenuBubble",{attrs:{editor:t.tiptap,"file-path":t.relativePath}}):t._e(),t._v(" "),e("EditorContent",{directives:[{name:"show",rawName:"v-show",value:t.initialLoading,expression:"initialLoading"}],staticClass:"editor__content",attrs:{editor:t.tiptap}})],1)],1),t._v(" "),t.hasSyncCollission?e("ReadOnlyEditor",{attrs:{content:t.syncError.data.outsideChange,"is-rich-editor":t.isRichEditor}}):t._e()],1):t._e(),t._v(" "),t.hasSyncCollission&&!t.readOnly?e("CollisionResolveDialog",{on:{resolveUseThisVersion:t.resolveUseThisVersion,resolveUseServerVersion:t.resolveUseServerVersion}}):t._e()],1)},o=[]},755:function(t,n,e){"use strict";var r=e(50),o=e.n(r),i=e(699),a={insert:"head",singleton:!1};o()(i.a,a),i.a.locals},756:function(t,n,e){"use strict";var r=e(50),o=e.n(r),i=e(700),a={insert:"head",singleton:!1};o()(i.a,a),i.a.locals},757:function(t,n,e){"use strict";var r=e(50),o=e.n(r),i=e(701),a={insert:"head",singleton:!1};o()(i.a,a),i.a.locals},763:function(t,n,e){"use strict";e.d(n,"a",(function(){return r})),e.d(n,"b",(function(){return o}));var r=function(){var t=this.$createElement,n=this._self._c||t;return this.editor?n("EditorContent",{attrs:{id:"read-only-editor",editor:this.editor}}):this._e()},o=[]},764:function(t,n,e){"use strict";var r=e(50),o=e.n(r),i=e(718),a={insert:"head",singleton:!1};o()(i.a,a),i.a.locals},765:function(t,n,e){"use strict";var r=e(50),o=e.n(r),i=e(719),a={insert:"head",singleton:!1};o()(i.a,a),i.a.locals},766:function(t,n,e){"use strict";e.d(n,"a",(function(){return r})),e.d(n,"b",(function(){return o}));var r=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"collision-resolve-dialog",attrs:{id:"resolve-conflicts"}},[e("button",{on:{click:function(n){return t.$emit("resolveUseThisVersion")}}},[t._v("\n\t\t"+t._s(t.t("text","Use current version"))+"\n\t")]),t._v(" "),e("button",{on:{click:function(n){return t.$emit("resolveUseServerVersion")}}},[t._v("\n\t\t"+t._s(t.t("text","Use the saved version"))+"\n\t")])])},o=[]},767:function(t,n,e){"use strict";var r=e(50),o=e.n(r),i=e(721),a={insert:"head",singleton:!1};o()(i.a,a),i.a.locals},772:function(t,n,e){"use strict";e.d(n,"a",(function(){return r})),e.d(n,"b",(function(){return o}));var r=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"image",class:{"icon-loading":!t.loaded},attrs:{"data-src":t.src}},[t.imageLoaded&&t.isSupportedImage?e("div",{staticClass:"image__view"},[e("transition",{attrs:{name:"fade"}},[e("img",{directives:[{name:"show",rawName:"v-show",value:t.loaded,expression:"loaded"}],staticClass:"image__main",attrs:{src:t.imageUrl},on:{load:t.onLoaded}})]),t._v(" "),e("transition",{attrs:{name:"fade"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.loaded,expression:"loaded"}],staticClass:"image__caption"},[e("input",{ref:"altInput",attrs:{type:"text"},domProps:{value:t.alt},on:{keyup:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.updateAlt()}}})])])],1):e("div",{staticClass:"image__placeholder"},[e("transition",{attrs:{name:"fade"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.loaded,expression:"loaded"}],staticClass:"image__main"},[e("a",{attrs:{href:t.internalLinkOrImage,target:"_blank"}},[e("div",{staticClass:"icon-image",style:t.mimeIcon}),t._v(" "),t.isSupportedImage?t._e():e("p",[t._v(t._s(t.alt))])])])]),e("transition",{attrs:{name:"fade"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.loaded,expression:"loaded"}],staticClass:"image__caption"},[e("input",{ref:"altInput",attrs:{type:"text"},domProps:{value:t.alt},on:{keyup:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.updateAlt()}}})])])],1)])},o=[]},773:function(t,n,e){"use strict";var r=e(50),o=e.n(r),i=e(626),a={insert:"head",singleton:!1};o()(i.a,a),i.a.locals}}]);
//# sourceMappingURL=editor.js.map?v=dff8df6a81a97e9c1237