mirror of
https://github.com/flarum/framework.git
synced 2024-12-11 21:43:38 +08:00
1 line
100 KiB
Plaintext
1 line
100 KiB
Plaintext
{"version":3,"sources":["webpack://@flarum/markdown/webpack/bootstrap","webpack://@flarum/markdown/external \"flarum.core.compat['helpers/icon']\"","webpack://@flarum/markdown/external \"flarum.core.compat['extend']\"","webpack://@flarum/markdown/external \"flarum.core.compat['components/TextEditor']\"","webpack://@flarum/markdown/./node_modules/mdarea/mdarea.js","webpack://@flarum/markdown/./node_modules/@webcomponents/custom-elements/custom-elements.min.js","webpack://@flarum/markdown/./node_modules/@babel/runtime/helpers/esm/extends.js","webpack://@flarum/markdown/./node_modules/@github/markdown-toolbar-element/dist/index.esm.js","webpack://@flarum/markdown/./src/forum/index.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","flarum","core","compat","__WEBPACK_AMD_DEFINE_FACTORY__","__WEBPACK_AMD_DEFINE_ARRAY__","__WEBPACK_AMD_DEFINE_RESULT__","self","undefined","ctrlKey","test","navigator","platform","reInlineKey","reDoubledInline","rePrefix","reList","reCleanIndent","rePureIndent","reIncrement","reStripLast","reMkIndent","codeBlocks","`","~","openingParens","[","(","{","<","closingParens","]",")","}",">","MarkdownArea","elem","this","_useTab","_useInline","_indent","_reOutdent","_reKey","makeKeyRe","_handleKey","setElement","tab","inline","RegExp","apply","e","selectionStart","selectionEnd","arguments","length","window","evt","InputEvent","dispatchEvent","constructor","getElement","_elem","removeEventListener","addEventListener","getValue","setValue","getIndent","setIndent","indent","Array","join","replace","isTabUsed","useTab","ignoreTab","isInlineEnabled","enableInline","disableInline","destroy","defaultPrevented","prefix","target","substring","selection","postfix","altKey","metaKey","shiftKey","lastIndexOf","handleIndentKey","reOutdent","handleOutdentKey","charAt","handleInlineKey","shift","str","offset","line","info","exec","isList","_","parseInt","increment","pure","toIndent","stripLast","handleEnterKey","preventDefault","aa","Set","split","g","b","a","has","isConnected","__CE_isImportDocument","Document","parentNode","ShadowRoot","host","nextSibling","q","nodeType","Node","ELEMENT_NODE","f","localName","getAttribute","import","add","firstChild","__CE_shadowRoot","u","Map","v","push","w","x","__CE_patched","y","__CE_state","connectedCallback","z","A","disconnectedCallback","B","h","__CE_hasRegistry","readyState","__CE_documentLoadHandled","delete","ownerDocument","defaultView","constructionStack","constructorFunction","Error","pop","__CE_definition","attributeChangedCallback","observedAttributes","C","document","MutationObserver","observe","childList","subtree","D","disconnect","ca","Promise","E","F","j","indexOf","addedNodes","Function","TypeError","SyntaxError","k","adoptedCallback","set","ba","da","reject","some","CustomElementRegistry","define","upgrade","whenDefined","polyfillWrapFlushCallback","G","createElement","H","createElementNS","ea","importNode","fa","prepend","ha","append","ia","DocumentFragment","ja","I","cloneNode","J","appendChild","K","insertBefore","L","removeChild","M","replaceChild","N","getOwnPropertyDescriptor","O","Element","attachShadow","P","Q","R","setAttribute","S","removeAttribute","T","getAttributeNS","U","setAttributeNS","ka","removeAttributeNS","la","insertAdjacentElement","ma","insertAdjacentHTML","na","oa","V","before","pa","after","qa","replaceWith","ra","remove","sa","HTMLElement","W","ta","ua","va","Y","Z","customElements","forcePolyfill","X","setPrototypeOf","writable","configurable","xa","TEXT_NODE","childNodes","slice","textContent","createTextNode","ya","toLowerCase","previousSibling","lastChild","String","innerHTML","content","namespaceURI","console","warn","za","Aa","_extends","assign","source","index_esm_extends","_get","receiver","desc","parent","getPrototypeOf","_createClass","defineProperties","props","descriptor","Constructor","protoProps","staticProps","_classCallCheck","instance","_possibleConstructorReturn","ReferenceError","_inherits","subClass","superClass","__proto__","_CustomElement","Reflect","construct","styles","WeakMap","MarkdownButtonElement","_CustomElement2","fn","_this","style","applyStyle","event","hasAttribute","MarkdownHeaderButtonElement","_MarkdownButtonElemen","_this2","MarkdownBoldButtonElement","_MarkdownButtonElemen2","_this3","suffix","trimFirst","MarkdownItalicButtonElement","_MarkdownButtonElemen3","_this4","MarkdownQuoteButtonElement","_MarkdownButtonElemen4","_this5","multiline","surroundWithNewlines","MarkdownCodeButtonElement","_MarkdownButtonElemen5","_this6","blockPrefix","blockSuffix","MarkdownLinkButtonElement","_MarkdownButtonElemen6","_this7","replaceNext","scanFor","MarkdownUnorderedListButtonElement","_MarkdownButtonElemen7","_this8","MarkdownOrderedListButtonElement","_MarkdownButtonElemen8","_this9","orderedList","MarkdownTaskListButtonElement","_MarkdownButtonElemen9","_this10","MarkdownMentionButtonElement","_MarkdownButtonElemen10","_this11","prefixSpace","MarkdownRefButtonElement","_MarkdownButtonElemen11","_this12","modifierKey","userAgent","match","MarkdownToolbarElement","_CustomElement3","toolbar","button","querySelector","click","field","shortcutListeners","id","getElementById","HTMLTextAreaElement","isMultipleLines","string","trim","repeat","canInsertText","styleSelectedText","textarea","styleArgs","text","result","orderedListRegex","lines","every","map","len","index","results","_newlinesToSurroundSe2","newlinesToSurroundSelectedText","_newlinesToAppend2","newlinesToAppend","_newlinesToPrepend2","newlinesToPrepend","arg","startsWith","endsWith","_newlinesToSurroundSe","_newlinesToAppend","_newlinesToPrepend","multilineStyle","originalSelectionStart","originalSelectionEnd","selectedText","prefixToUse","suffixToUse","beforeSelection","wordSelectionStart","wordSelectionEnd","expandedSelectionStart","expandedSelectionEnd","beginsWithPrefix","endsWithSuffix","expandSelectedText","hasReplaceNext","ref","replacementText","position","Math","max","min","_replacementText2","_replacementText3","_replacementText","whitespaceEdges","leadingWhitespace","trailingWhitespace","blockStyle","_ref","contentEditable","execCommand","error","CustomEvent","bubbles","cancelable","setSelectionRange","insertText","afterSelection","breaksBefore","breaksAfter","newlinesBeforeSelection","newlinesAfterSelection","closest","focus","app","initializers","extend","TextEditor","textareaId","vdom","children","attrs","element","isInitialized","context","editor","onunload","items","className","config","elm","$","tooltip","translator","trans","for","title","icon"],"mappings":"2BACA,IAAAA,EAAA,GAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE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\tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 5);\n","module.exports = flarum.core.compat['helpers/icon'];","module.exports = flarum.core.compat['extend'];","module.exports = flarum.core.compat['components/TextEditor'];","(function(root, factory) {\n if (typeof define === 'function' && define.amd) {\n define([], factory);\n } else if (typeof module === 'object' && module.exports) {\n module.exports = factory();\n } else {\n root.MarkdownArea = factory();\n }\n})(typeof self !== 'undefined' ? self : this, function() {\n\n var isMac = /mac|iphone|ipad|ipod/i.test(navigator.platform),\n ctrlKey = isMac ? 'metaKey' : 'ctrlKey',\n reInlineKey = /^[\"'`*_[({<>})\\]]$/,\n reDoubledInline = /[*_]/,\n rePrefix = /^[ \\t]*(?:(?:[-+*]|\\d+\\.)[ \\t]+(?:\\[[ x]][ \\t]+)?|>[ \\t]*)*(?::[ \\t]*)?/,\n reList = /(?:[-+*]|\\d+\\.)[ \\t]+(?:\\[[ x]][ \\t]+)?$/,\n reCleanIndent = /[-+*\\[\\]x\\d.]/g,\n rePureIndent = /[^ \\t]/g,\n reIncrement = /(\\d+)\\.(?=[ \\t]+$)/,\n reStripLast = /(?:(?:^[ \\t]+)?(?:[-+*]|\\d+\\.|[>:])(?:[ \\t]+\\[[ x]])?[ \\t]*|^[ \\t]+)$/,\n reMkIndent = /^(?!$)/mg,\n codeBlocks = {'`': /^``$/m, '~': /^~~$/m},\n openingParens = {'[': ']', '(': ')', '{': '}', '<': '>'},\n closingParens = {']': '[', ')': '(', '}': '{', '>': '<'};\n\n\n function MarkdownArea(elem) {\n this._useTab = true;\n this._useInline = true;\n this._indent = ' ';\n this._reOutdent = /^[ ]{4}/mg;\n this._reKey = makeKeyRe(true, true);\n this._handleKey = this._handleKey.bind(this);\n this.setElement(elem);\n }\n\n MarkdownArea.prototype = {\n constructor: MarkdownArea,\n\n getElement: function () {\n return this._elem;\n },\n\n setElement: function (elem) {\n if (this._elem) {\n this._elem.removeEventListener('keydown', this._handleKey);\n }\n\n this._elem = elem;\n elem.addEventListener('keydown', this._handleKey);\n },\n\n getValue: function () {\n return this._elem.value;\n },\n\n setValue: function (value) {\n this._elem.value = value;\n },\n\n getIndent: function () {\n return this._indent;\n },\n\n setIndent: function (indent) {\n if (typeof indent === 'number') {\n this._indent = new Array(indent + 1).join(' ');\n } else {\n this._indent = (indent + '').replace(/[^ \\t]/g, ' ');\n }\n\n this._reOutdent = new RegExp('^' + this._indent, 'mg');\n },\n\n isTabUsed: function () {\n return this._useTab;\n },\n\n useTab: function () {\n this._useTab = true;\n this._reKey = makeKeyRe(true, this._useInline);\n },\n\n ignoreTab: function () {\n this._useTab = false;\n this._reKey = makeKeyRe(false, this._useInline);\n },\n\n isInlineEnabled: function() {\n return this._useInline;\n },\n\n enableInline: function () {\n this._useInline = true;\n this._reKey = makeKeyRe(this._useTab, true);\n },\n\n disableInline: function () {\n this._useInline = false;\n this._reKey = makeKeyRe(this._useTab, false);\n },\n\n destroy: function () {\n this._elem.removeEventListener('keydown', this._handleKey);\n this._elem = this._reKey = this._handleKey = this._indent = this._reOutdent = null;\n },\n\n _handleKey: function (evt) {\n if (!evt.defaultPrevented && this._reKey.test(evt.key)) {\n var prefix = evt.target.value.substring(0, evt.target.selectionStart),\n selection = evt.target.value.substring(evt.target.selectionStart, evt.target.selectionEnd),\n postfix = evt.target.value.substring(evt.target.selectionEnd);\n\n if (evt.key === 'Enter' && !evt.ctrlKey && !evt.altKey && !evt.metaKey) {\n handleEnterKey(this._elem, prefix, selection, postfix, evt.shiftKey);\n } else if (evt.key === 'Tab' && !evt.shiftKey || evt.key === 'i' && evt[ctrlKey]) {\n handleIndentKey(this._elem, prefix, selection, postfix, this._indent);\n } else if (evt.key === 'Tab' && evt.shiftKey || evt.key === 'o' && evt[ctrlKey]) {\n handleOutdentKey(this._elem, prefix, selection, postfix, this._indent, this._reOutdent);\n } else if (reInlineKey.test(evt.key)) {\n handleInlineKey(this._elem, prefix, selection, postfix, evt.key);\n } else {\n return;\n }\n\n evt.preventDefault();\n }\n }\n };\n\n\n function makeKeyRe(tab, inline) {\n return new RegExp('^(?:Enter' + (tab ? '|Tab' : '') + '|[io' + (inline ? '\"\\'`*_([{<>}\\\\])' : '') + '])$');\n }\n\n\n function handleEnterKey (elem, prefix, selection, postfix, shift) {\n var info = !selection ? getLineInfo(prefix) : null;\n\n if (!selection && info.prefix) {\n if (!shift && info.prefix === info.line) {\n prefix = prefix.substring(0, info.offset) + stripLast(info.prefix);\n } else if (!shift && isList(info.prefix)) {\n prefix += \"\\n\" + increment(info.prefix);\n } else {\n prefix += \"\\n\" + toIndent(info.prefix, shift);\n }\n } else {\n prefix += \"\\n\";\n }\n\n apply(elem, prefix + postfix, prefix.length);\n }\n\n function handleIndentKey (elem, prefix, selection, postfix, indent) {\n var s = prefix.length,\n n = prefix.lastIndexOf(\"\\n\") + 1;\n\n if (n < s) {\n selection = prefix.substring(n) + selection;\n prefix = prefix.substring(0, n);\n }\n\n if (n < s || !selection) {\n s += indent.length;\n }\n\n if (selection) {\n selection = selection.replace(reMkIndent, indent);\n } else {\n prefix += indent;\n }\n\n apply(elem, prefix + selection + postfix, s, selection ? n + selection.length : s);\n }\n\n function handleOutdentKey (elem, prefix, selection, postfix, indent, reOutdent) {\n var s = prefix.length,\n n = prefix.lastIndexOf(\"\\n\") + 1;\n\n if (n < s) {\n selection = prefix.substring(n) + selection;\n prefix = prefix.substring(0, n);\n\n if (selection.substring(0, indent.length) === indent) {\n s -= indent.length;\n }\n }\n\n selection = selection.replace(reOutdent, '');\n apply(elem, prefix + selection + postfix, s, n + selection.length);\n }\n\n function handleInlineKey (elem, prefix, selection, postfix, key) {\n if (!selection && !(key in openingParens) && postfix.charAt(0) === key) {\n apply(elem, prefix + (reDoubledInline.test(key) ? key + key : '') + postfix, prefix.length + 1);\n } else if (!selection && (key === \"'\" || key in closingParens)) {\n apply(elem, prefix + key + postfix, prefix.length + 1);\n } else if (!selection && key in codeBlocks && codeBlocks[key].test(prefix)) {\n apply(elem, prefix + key + \"language\\n\" + key + key + key + (postfix.charAt(0) !== \"\\n\" ? \"\\n\" : '') + postfix, prefix.length + 1, prefix.length + 9);\n } else {\n apply(\n elem,\n prefix + (closingParens[key] || key) + selection + (openingParens[key] || key) + postfix,\n prefix.length + 1,\n prefix.length + 1 + selection.length\n );\n }\n }\n\n function apply(elem, value, s, e) {\n elem.value = value;\n elem.selectionStart = s;\n elem.selectionEnd = arguments.length > 3 ? e : s;\n\n if ('InputEvent' in window) try {\n var evt = new InputEvent('input');\n elem.dispatchEvent(evt);\n } catch (e) { }\n }\n\n function getLineInfo(str) {\n var offset = str.lastIndexOf(\"\\n\") + 1,\n line = str.substring(offset),\n m = rePrefix.exec(line);\n\n return {\n line: line,\n offset: offset,\n prefix: m && m[0]\n };\n }\n\n function isList(prefix) {\n return reList.test(prefix);\n }\n\n function toIndent(prefix, pure) {\n return prefix.replace(pure ? rePureIndent : reCleanIndent, ' ');\n }\n\n function increment(prefix) {\n return prefix.replace(reIncrement, function (_, n) {\n return (parseInt(n) + 1) + '.';\n })\n }\n\n function stripLast(prefix) {\n return prefix.replace(reStripLast, '');\n }\n\n\n return MarkdownArea;\n\n});\n","(function(){\n'use strict';var aa=new Set(\"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph\".split(\" \"));function g(b){var a=aa.has(b);b=/^[a-z][.0-9_a-z]*-[\\-.0-9_a-z]*$/.test(b);return!a&&b}function l(b){var a=b.isConnected;if(void 0!==a)return a;for(;b&&!(b.__CE_isImportDocument||b instanceof Document);)b=b.parentNode||(window.ShadowRoot&&b instanceof ShadowRoot?b.host:void 0);return!(!b||!(b.__CE_isImportDocument||b instanceof Document))}\nfunction p(b,a){for(;a&&a!==b&&!a.nextSibling;)a=a.parentNode;return a&&a!==b?a.nextSibling:null}\nfunction q(b,a,d){d=void 0===d?new Set:d;for(var c=b;c;){if(c.nodeType===Node.ELEMENT_NODE){var e=c;a(e);var f=e.localName;if(\"link\"===f&&\"import\"===e.getAttribute(\"rel\")){c=e.import;if(c instanceof Node&&!d.has(c))for(d.add(c),c=c.firstChild;c;c=c.nextSibling)q(c,a,d);c=p(b,e);continue}else if(\"template\"===f){c=p(b,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)q(e,a,d)}c=c.firstChild?c.firstChild:p(b,c)}}function t(b,a,d){b[a]=d};function u(){this.a=new Map;this.f=new Map;this.c=[];this.b=!1}function ba(b,a,d){b.a.set(a,d);b.f.set(d.constructorFunction,d)}function v(b,a){b.b=!0;b.c.push(a)}function w(b,a){b.b&&q(a,function(a){return x(b,a)})}function x(b,a){if(b.b&&!a.__CE_patched){a.__CE_patched=!0;for(var d=0;d<b.c.length;d++)b.c[d](a)}}function y(b,a){var d=[];q(a,function(a){return d.push(a)});for(a=0;a<d.length;a++){var c=d[a];1===c.__CE_state?b.connectedCallback(c):z(b,c)}}\nfunction A(b,a){var d=[];q(a,function(a){return d.push(a)});for(a=0;a<d.length;a++){var c=d[a];1===c.__CE_state&&b.disconnectedCallback(c)}}\nfunction B(b,a,d){d=void 0===d?{}:d;var c=d.u||new Set,e=d.h||function(a){return z(b,a)},f=[];q(a,function(a){if(\"link\"===a.localName&&\"import\"===a.getAttribute(\"rel\")){var d=a.import;d instanceof Node&&(d.__CE_isImportDocument=!0,d.__CE_hasRegistry=!0);d&&\"complete\"===d.readyState?d.__CE_documentLoadHandled=!0:a.addEventListener(\"load\",function(){var d=a.import;if(!d.__CE_documentLoadHandled){d.__CE_documentLoadHandled=!0;var f=new Set(c);f.delete(d);B(b,d,{u:f,h:e})}})}else f.push(a)},c);if(b.b)for(a=\n0;a<f.length;a++)x(b,f[a]);for(a=0;a<f.length;a++)e(f[a])}\nfunction z(b,a){if(void 0===a.__CE_state){var d=a.ownerDocument;if(d.defaultView||d.__CE_isImportDocument&&d.__CE_hasRegistry)if(d=b.a.get(a.localName)){d.constructionStack.push(a);var c=d.constructorFunction;try{try{if(new c!==a)throw Error(\"The custom element constructor did not produce the element being upgraded.\");}finally{d.constructionStack.pop()}}catch(m){throw a.__CE_state=2,m;}a.__CE_state=1;a.__CE_definition=d;if(d.attributeChangedCallback)for(d=d.observedAttributes,c=0;c<d.length;c++){var e=\nd[c],f=a.getAttribute(e);null!==f&&b.attributeChangedCallback(a,e,null,f,null)}l(a)&&b.connectedCallback(a)}}}u.prototype.connectedCallback=function(b){var a=b.__CE_definition;a.connectedCallback&&a.connectedCallback.call(b)};u.prototype.disconnectedCallback=function(b){var a=b.__CE_definition;a.disconnectedCallback&&a.disconnectedCallback.call(b)};\nu.prototype.attributeChangedCallback=function(b,a,d,c,e){var f=b.__CE_definition;f.attributeChangedCallback&&-1<f.observedAttributes.indexOf(a)&&f.attributeChangedCallback.call(b,a,d,c,e)};function C(b){var a=document;this.c=b;this.a=a;this.b=void 0;B(this.c,this.a);\"loading\"===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function D(b){b.b&&b.b.disconnect()}C.prototype.f=function(b){var a=this.a.readyState;\"interactive\"!==a&&\"complete\"!==a||D(this);for(a=0;a<b.length;a++)for(var d=b[a].addedNodes,c=0;c<d.length;c++)B(this.c,d[c])};function ca(){var b=this;this.b=this.a=void 0;this.c=new Promise(function(a){b.b=a;b.a&&a(b.a)})}function E(b){if(b.a)throw Error(\"Already resolved.\");b.a=void 0;b.b&&b.b(void 0)};function F(b){this.c=!1;this.a=b;this.j=new Map;this.f=function(a){return a()};this.b=!1;this.i=[];this.o=new C(b)}\nF.prototype.l=function(b,a){var d=this;if(!(a instanceof Function))throw new TypeError(\"Custom element constructors must be functions.\");if(!g(b))throw new SyntaxError(\"The element name '\"+b+\"' is not valid.\");if(this.a.a.get(b))throw Error(\"A custom element with name '\"+b+\"' has already been defined.\");if(this.c)throw Error(\"A custom element is already being defined.\");this.c=!0;try{var c=function(a){var b=e[a];if(void 0!==b&&!(b instanceof Function))throw Error(\"The '\"+a+\"' callback must be a function.\");\nreturn b},e=a.prototype;if(!(e instanceof Object))throw new TypeError(\"The custom element constructor's prototype is not an object.\");var f=c(\"connectedCallback\");var m=c(\"disconnectedCallback\");var k=c(\"adoptedCallback\");var h=c(\"attributeChangedCallback\");var n=a.observedAttributes||[]}catch(r){return}finally{this.c=!1}a={localName:b,constructorFunction:a,connectedCallback:f,disconnectedCallback:m,adoptedCallback:k,attributeChangedCallback:h,observedAttributes:n,constructionStack:[]};ba(this.a,\nb,a);this.i.push(a);this.b||(this.b=!0,this.f(function(){return da(d)}))};F.prototype.h=function(b){B(this.a,b)};\nfunction da(b){if(!1!==b.b){b.b=!1;for(var a=b.i,d=[],c=new Map,e=0;e<a.length;e++)c.set(a[e].localName,[]);B(b.a,document,{h:function(a){if(void 0===a.__CE_state){var e=a.localName,f=c.get(e);f?f.push(a):b.a.a.get(e)&&d.push(a)}}});for(e=0;e<d.length;e++)z(b.a,d[e]);for(;0<a.length;){var f=a.shift();e=f.localName;f=c.get(f.localName);for(var m=0;m<f.length;m++)z(b.a,f[m]);(e=b.j.get(e))&&E(e)}}}F.prototype.get=function(b){if(b=this.a.a.get(b))return b.constructorFunction};\nF.prototype.m=function(b){if(!g(b))return Promise.reject(new SyntaxError(\"'\"+b+\"' is not a valid custom element name.\"));var a=this.j.get(b);if(a)return a.c;a=new ca;this.j.set(b,a);this.a.a.get(b)&&!this.i.some(function(a){return a.localName===b})&&E(a);return a.c};F.prototype.s=function(b){D(this.o);var a=this.f;this.f=function(d){return b(function(){return a(d)})}};window.CustomElementRegistry=F;F.prototype.define=F.prototype.l;F.prototype.upgrade=F.prototype.h;F.prototype.get=F.prototype.get;\nF.prototype.whenDefined=F.prototype.m;F.prototype.polyfillWrapFlushCallback=F.prototype.s;var G=window.Document.prototype.createElement,H=window.Document.prototype.createElementNS,ea=window.Document.prototype.importNode,fa=window.Document.prototype.prepend,ha=window.Document.prototype.append,ia=window.DocumentFragment.prototype.prepend,ja=window.DocumentFragment.prototype.append,I=window.Node.prototype.cloneNode,J=window.Node.prototype.appendChild,K=window.Node.prototype.insertBefore,L=window.Node.prototype.removeChild,M=window.Node.prototype.replaceChild,N=Object.getOwnPropertyDescriptor(window.Node.prototype,\n\"textContent\"),O=window.Element.prototype.attachShadow,P=Object.getOwnPropertyDescriptor(window.Element.prototype,\"innerHTML\"),Q=window.Element.prototype.getAttribute,R=window.Element.prototype.setAttribute,S=window.Element.prototype.removeAttribute,T=window.Element.prototype.getAttributeNS,U=window.Element.prototype.setAttributeNS,ka=window.Element.prototype.removeAttributeNS,la=window.Element.prototype.insertAdjacentElement,ma=window.Element.prototype.insertAdjacentHTML,na=window.Element.prototype.prepend,\noa=window.Element.prototype.append,V=window.Element.prototype.before,pa=window.Element.prototype.after,qa=window.Element.prototype.replaceWith,ra=window.Element.prototype.remove,sa=window.HTMLElement,W=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,\"innerHTML\"),ta=window.HTMLElement.prototype.insertAdjacentElement,ua=window.HTMLElement.prototype.insertAdjacentHTML;var va=new function(){};function wa(){var b=X;window.HTMLElement=function(){function a(){var a=this.constructor,c=b.f.get(a);if(!c)throw Error(\"The custom element being constructed was not registered with `customElements`.\");var e=c.constructionStack;if(0===e.length)return e=G.call(document,c.localName),Object.setPrototypeOf(e,a.prototype),e.__CE_state=1,e.__CE_definition=c,x(b,e),e;c=e.length-1;var f=e[c];if(f===va)throw Error(\"The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.\");\ne[c]=va;Object.setPrototypeOf(f,a.prototype);x(b,f);return f}a.prototype=sa.prototype;Object.defineProperty(a.prototype,\"constructor\",{writable:!0,configurable:!0,enumerable:!1,value:a});return a}()};function Y(b,a,d){function c(a){return function(d){for(var e=[],c=0;c<arguments.length;++c)e[c]=arguments[c];c=[];for(var f=[],n=0;n<e.length;n++){var r=e[n];r instanceof Element&&l(r)&&f.push(r);if(r instanceof DocumentFragment)for(r=r.firstChild;r;r=r.nextSibling)c.push(r);else c.push(r)}a.apply(this,e);for(e=0;e<f.length;e++)A(b,f[e]);if(l(this))for(e=0;e<c.length;e++)f=c[e],f instanceof Element&&y(b,f)}}void 0!==d.g&&(a.prepend=c(d.g));void 0!==d.append&&(a.append=c(d.append))};function xa(){var b=X;t(Document.prototype,\"createElement\",function(a){if(this.__CE_hasRegistry){var d=b.a.get(a);if(d)return new d.constructorFunction}a=G.call(this,a);x(b,a);return a});t(Document.prototype,\"importNode\",function(a,d){a=ea.call(this,a,!!d);this.__CE_hasRegistry?B(b,a):w(b,a);return a});t(Document.prototype,\"createElementNS\",function(a,d){if(this.__CE_hasRegistry&&(null===a||\"http://www.w3.org/1999/xhtml\"===a)){var c=b.a.get(d);if(c)return new c.constructorFunction}a=H.call(this,a,\nd);x(b,a);return a});Y(b,Document.prototype,{g:fa,append:ha})};function ya(){function b(b,c){Object.defineProperty(b,\"textContent\",{enumerable:c.enumerable,configurable:!0,get:c.get,set:function(b){if(this.nodeType===Node.TEXT_NODE)c.set.call(this,b);else{var d=void 0;if(this.firstChild){var e=this.childNodes,k=e.length;if(0<k&&l(this)){d=Array(k);for(var h=0;h<k;h++)d[h]=e[h]}}c.set.call(this,b);if(d)for(b=0;b<d.length;b++)A(a,d[b])}}})}var a=X;t(Node.prototype,\"insertBefore\",function(b,c){if(b instanceof DocumentFragment){var e=Array.prototype.slice.apply(b.childNodes);\nb=K.call(this,b,c);if(l(this))for(c=0;c<e.length;c++)y(a,e[c]);return b}e=l(b);c=K.call(this,b,c);e&&A(a,b);l(this)&&y(a,b);return c});t(Node.prototype,\"appendChild\",function(b){if(b instanceof DocumentFragment){var c=Array.prototype.slice.apply(b.childNodes);b=J.call(this,b);if(l(this))for(var e=0;e<c.length;e++)y(a,c[e]);return b}c=l(b);e=J.call(this,b);c&&A(a,b);l(this)&&y(a,b);return e});t(Node.prototype,\"cloneNode\",function(b){b=I.call(this,!!b);this.ownerDocument.__CE_hasRegistry?B(a,b):w(a,\nb);return b});t(Node.prototype,\"removeChild\",function(b){var c=l(b),e=L.call(this,b);c&&A(a,b);return e});t(Node.prototype,\"replaceChild\",function(b,c){if(b instanceof DocumentFragment){var e=Array.prototype.slice.apply(b.childNodes);b=M.call(this,b,c);if(l(this))for(A(a,c),c=0;c<e.length;c++)y(a,e[c]);return b}e=l(b);var f=M.call(this,b,c),d=l(this);d&&A(a,c);e&&A(a,b);d&&y(a,b);return f});N&&N.get?b(Node.prototype,N):v(a,function(a){b(a,{enumerable:!0,configurable:!0,get:function(){for(var b=[],\na=0;a<this.childNodes.length;a++)b.push(this.childNodes[a].textContent);return b.join(\"\")},set:function(b){for(;this.firstChild;)L.call(this,this.firstChild);J.call(this,document.createTextNode(b))}})})};function za(b){function a(a){return function(e){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];d=[];for(var k=[],h=0;h<c.length;h++){var n=c[h];n instanceof Element&&l(n)&&k.push(n);if(n instanceof DocumentFragment)for(n=n.firstChild;n;n=n.nextSibling)d.push(n);else d.push(n)}a.apply(this,c);for(c=0;c<k.length;c++)A(b,k[c]);if(l(this))for(c=0;c<d.length;c++)k=d[c],k instanceof Element&&y(b,k)}}var d=Element.prototype;void 0!==V&&(d.before=a(V));void 0!==V&&(d.after=a(pa));void 0!==qa&&\nt(d,\"replaceWith\",function(a){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];d=[];for(var m=[],k=0;k<c.length;k++){var h=c[k];h instanceof Element&&l(h)&&m.push(h);if(h instanceof DocumentFragment)for(h=h.firstChild;h;h=h.nextSibling)d.push(h);else d.push(h)}k=l(this);qa.apply(this,c);for(c=0;c<m.length;c++)A(b,m[c]);if(k)for(A(b,this),c=0;c<d.length;c++)m=d[c],m instanceof Element&&y(b,m)});void 0!==ra&&t(d,\"remove\",function(){var a=l(this);ra.call(this);a&&A(b,this)})};function Aa(){function b(a,b){Object.defineProperty(a,\"innerHTML\",{enumerable:b.enumerable,configurable:!0,get:b.get,set:function(a){var d=this,e=void 0;l(this)&&(e=[],q(this,function(a){a!==d&&e.push(a)}));b.set.call(this,a);if(e)for(var f=0;f<e.length;f++){var m=e[f];1===m.__CE_state&&c.disconnectedCallback(m)}this.ownerDocument.__CE_hasRegistry?B(c,this):w(c,this);return a}})}function a(a,b){t(a,\"insertAdjacentElement\",function(a,d){var e=l(d);a=b.call(this,a,d);e&&A(c,d);l(a)&&y(c,d);return a})}\nfunction d(a,b){function d(a,b){for(var d=[];a!==b;a=a.nextSibling)d.push(a);for(b=0;b<d.length;b++)B(c,d[b])}t(a,\"insertAdjacentHTML\",function(a,c){a=a.toLowerCase();if(\"beforebegin\"===a){var e=this.previousSibling;b.call(this,a,c);d(e||this.parentNode.firstChild,this)}else if(\"afterbegin\"===a)e=this.firstChild,b.call(this,a,c),d(this.firstChild,e);else if(\"beforeend\"===a)e=this.lastChild,b.call(this,a,c),d(e||this.firstChild,null);else if(\"afterend\"===a)e=this.nextSibling,b.call(this,a,c),d(this.nextSibling,\ne);else throw new SyntaxError(\"The value provided (\"+String(a)+\") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.\");})}var c=X;O&&t(Element.prototype,\"attachShadow\",function(a){return this.__CE_shadowRoot=a=O.call(this,a)});P&&P.get?b(Element.prototype,P):W&&W.get?b(HTMLElement.prototype,W):v(c,function(a){b(a,{enumerable:!0,configurable:!0,get:function(){return I.call(this,!0).innerHTML},set:function(a){var b=\"template\"===this.localName,c=b?this.content:this,d=H.call(document,\nthis.namespaceURI,this.localName);for(d.innerHTML=a;0<c.childNodes.length;)L.call(c,c.childNodes[0]);for(a=b?d.content:d;0<a.childNodes.length;)J.call(c,a.childNodes[0])}})});t(Element.prototype,\"setAttribute\",function(a,b){if(1!==this.__CE_state)return R.call(this,a,b);var d=Q.call(this,a);R.call(this,a,b);b=Q.call(this,a);c.attributeChangedCallback(this,a,d,b,null)});t(Element.prototype,\"setAttributeNS\",function(a,b,d){if(1!==this.__CE_state)return U.call(this,a,b,d);var e=T.call(this,a,b);U.call(this,\na,b,d);d=T.call(this,a,b);c.attributeChangedCallback(this,b,e,d,a)});t(Element.prototype,\"removeAttribute\",function(a){if(1!==this.__CE_state)return S.call(this,a);var b=Q.call(this,a);S.call(this,a);null!==b&&c.attributeChangedCallback(this,a,b,null,null)});t(Element.prototype,\"removeAttributeNS\",function(a,b){if(1!==this.__CE_state)return ka.call(this,a,b);var d=T.call(this,a,b);ka.call(this,a,b);var e=T.call(this,a,b);d!==e&&c.attributeChangedCallback(this,b,d,e,a)});ta?a(HTMLElement.prototype,\nta):la?a(Element.prototype,la):console.warn(\"Custom Elements: `Element#insertAdjacentElement` was not patched.\");ua?d(HTMLElement.prototype,ua):ma?d(Element.prototype,ma):console.warn(\"Custom Elements: `Element#insertAdjacentHTML` was not patched.\");Y(c,Element.prototype,{g:na,append:oa});za(c)};/*\n\n Copyright (c) 2016 The Polymer Project Authors. All rights reserved.\n This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\n The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\n The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\n Code distributed by Google as part of the polymer project is also\n subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n*/\nvar Z=window.customElements;if(!Z||Z.forcePolyfill||\"function\"!=typeof Z.define||\"function\"!=typeof Z.get){var X=new u;wa();xa();Y(X,DocumentFragment.prototype,{g:ia,append:ja});ya();Aa();document.__CE_hasRegistry=!0;var customElements=new F(X);Object.defineProperty(window,\"customElements\",{configurable:!0,enumerable:!0,value:customElements})};\n}).call(self);\n\n//# sourceMappingURL=custom-elements.min.js.map\n","export default function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if (\"value\" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nfunction _CustomElement() {\n return Reflect.construct(HTMLElement, [], this.__proto__.constructor);\n}\n\n;\nObject.setPrototypeOf(_CustomElement.prototype, HTMLElement.prototype);\nObject.setPrototypeOf(_CustomElement, HTMLElement);\nfunction keydown(fn) {\n return function (event) {\n if (event.key === ' ' || event.key === 'Enter') {\n event.preventDefault();\n fn(event);\n }\n };\n}\n\nvar styles = new WeakMap();\n\nvar MarkdownButtonElement = function (_CustomElement2) {\n _inherits(MarkdownButtonElement, _CustomElement2);\n\n function MarkdownButtonElement() {\n _classCallCheck(this, MarkdownButtonElement);\n\n var _this = _possibleConstructorReturn(this, (MarkdownButtonElement.__proto__ || Object.getPrototypeOf(MarkdownButtonElement)).call(this));\n\n var apply = function apply() {\n var style = styles.get(_this);\n if (!style) return;\n applyStyle(_this, style);\n };\n _this.addEventListener('keydown', keydown(apply));\n _this.addEventListener('click', apply);\n return _this;\n }\n\n _createClass(MarkdownButtonElement, [{\n key: 'connectedCallback',\n value: function connectedCallback() {\n if (!this.hasAttribute('tabindex')) {\n this.setAttribute('tabindex', '0');\n }\n\n if (!this.hasAttribute('role')) {\n this.setAttribute('role', 'button');\n }\n }\n }, {\n key: 'click',\n value: function click() {\n var style = styles.get(this);\n if (!style) return;\n applyStyle(this, style);\n }\n }]);\n\n return MarkdownButtonElement;\n}(_CustomElement);\n\nvar MarkdownHeaderButtonElement = function (_MarkdownButtonElemen) {\n _inherits(MarkdownHeaderButtonElement, _MarkdownButtonElemen);\n\n function MarkdownHeaderButtonElement() {\n _classCallCheck(this, MarkdownHeaderButtonElement);\n\n var _this2 = _possibleConstructorReturn(this, (MarkdownHeaderButtonElement.__proto__ || Object.getPrototypeOf(MarkdownHeaderButtonElement)).call(this));\n\n styles.set(_this2, { prefix: '### ' });\n return _this2;\n }\n\n return MarkdownHeaderButtonElement;\n}(MarkdownButtonElement);\n\nif (!window.customElements.get('md-header')) {\n window.MarkdownHeaderButtonElement = MarkdownHeaderButtonElement;\n window.customElements.define('md-header', MarkdownHeaderButtonElement);\n}\n\nvar MarkdownBoldButtonElement = function (_MarkdownButtonElemen2) {\n _inherits(MarkdownBoldButtonElement, _MarkdownButtonElemen2);\n\n function MarkdownBoldButtonElement() {\n _classCallCheck(this, MarkdownBoldButtonElement);\n\n var _this3 = _possibleConstructorReturn(this, (MarkdownBoldButtonElement.__proto__ || Object.getPrototypeOf(MarkdownBoldButtonElement)).call(this));\n\n styles.set(_this3, { prefix: '**', suffix: '**', trimFirst: true });\n return _this3;\n }\n\n _createClass(MarkdownBoldButtonElement, [{\n key: 'connectedCallback',\n value: function connectedCallback() {\n _get(MarkdownBoldButtonElement.prototype.__proto__ || Object.getPrototypeOf(MarkdownBoldButtonElement.prototype), 'connectedCallback', this).call(this);\n this.setAttribute('hotkey', 'b');\n }\n }]);\n\n return MarkdownBoldButtonElement;\n}(MarkdownButtonElement);\n\nif (!window.customElements.get('md-bold')) {\n window.MarkdownBoldButtonElement = MarkdownBoldButtonElement;\n window.customElements.define('md-bold', MarkdownBoldButtonElement);\n}\n\nvar MarkdownItalicButtonElement = function (_MarkdownButtonElemen3) {\n _inherits(MarkdownItalicButtonElement, _MarkdownButtonElemen3);\n\n function MarkdownItalicButtonElement() {\n _classCallCheck(this, MarkdownItalicButtonElement);\n\n var _this4 = _possibleConstructorReturn(this, (MarkdownItalicButtonElement.__proto__ || Object.getPrototypeOf(MarkdownItalicButtonElement)).call(this));\n\n styles.set(_this4, { prefix: '_', suffix: '_', trimFirst: true });\n return _this4;\n }\n\n _createClass(MarkdownItalicButtonElement, [{\n key: 'connectedCallback',\n value: function connectedCallback() {\n _get(MarkdownItalicButtonElement.prototype.__proto__ || Object.getPrototypeOf(MarkdownItalicButtonElement.prototype), 'connectedCallback', this).call(this);\n this.setAttribute('hotkey', 'i');\n }\n }]);\n\n return MarkdownItalicButtonElement;\n}(MarkdownButtonElement);\n\nif (!window.customElements.get('md-italic')) {\n window.MarkdownItalicButtonElement = MarkdownItalicButtonElement;\n window.customElements.define('md-italic', MarkdownItalicButtonElement);\n}\n\nvar MarkdownQuoteButtonElement = function (_MarkdownButtonElemen4) {\n _inherits(MarkdownQuoteButtonElement, _MarkdownButtonElemen4);\n\n function MarkdownQuoteButtonElement() {\n _classCallCheck(this, MarkdownQuoteButtonElement);\n\n var _this5 = _possibleConstructorReturn(this, (MarkdownQuoteButtonElement.__proto__ || Object.getPrototypeOf(MarkdownQuoteButtonElement)).call(this));\n\n styles.set(_this5, { prefix: '> ', multiline: true, surroundWithNewlines: true });\n return _this5;\n }\n\n return MarkdownQuoteButtonElement;\n}(MarkdownButtonElement);\n\nif (!window.customElements.get('md-quote')) {\n window.MarkdownQuoteButtonElement = MarkdownQuoteButtonElement;\n window.customElements.define('md-quote', MarkdownQuoteButtonElement);\n}\n\nvar MarkdownCodeButtonElement = function (_MarkdownButtonElemen5) {\n _inherits(MarkdownCodeButtonElement, _MarkdownButtonElemen5);\n\n function MarkdownCodeButtonElement() {\n _classCallCheck(this, MarkdownCodeButtonElement);\n\n var _this6 = _possibleConstructorReturn(this, (MarkdownCodeButtonElement.__proto__ || Object.getPrototypeOf(MarkdownCodeButtonElement)).call(this));\n\n styles.set(_this6, { prefix: '`', suffix: '`', blockPrefix: '```', blockSuffix: '```' });\n return _this6;\n }\n\n return MarkdownCodeButtonElement;\n}(MarkdownButtonElement);\n\nif (!window.customElements.get('md-code')) {\n window.MarkdownCodeButtonElement = MarkdownCodeButtonElement;\n window.customElements.define('md-code', MarkdownCodeButtonElement);\n}\n\nvar MarkdownLinkButtonElement = function (_MarkdownButtonElemen6) {\n _inherits(MarkdownLinkButtonElement, _MarkdownButtonElemen6);\n\n function MarkdownLinkButtonElement() {\n _classCallCheck(this, MarkdownLinkButtonElement);\n\n var _this7 = _possibleConstructorReturn(this, (MarkdownLinkButtonElement.__proto__ || Object.getPrototypeOf(MarkdownLinkButtonElement)).call(this));\n\n styles.set(_this7, { prefix: '[', suffix: '](url)', replaceNext: 'url', scanFor: 'https?://' });\n return _this7;\n }\n\n _createClass(MarkdownLinkButtonElement, [{\n key: 'connectedCallback',\n value: function connectedCallback() {\n _get(MarkdownLinkButtonElement.prototype.__proto__ || Object.getPrototypeOf(MarkdownLinkButtonElement.prototype), 'connectedCallback', this).call(this);\n this.setAttribute('hotkey', 'k');\n }\n }]);\n\n return MarkdownLinkButtonElement;\n}(MarkdownButtonElement);\n\nif (!window.customElements.get('md-link')) {\n window.MarkdownLinkButtonElement = MarkdownLinkButtonElement;\n window.customElements.define('md-link', MarkdownLinkButtonElement);\n}\n\nvar MarkdownUnorderedListButtonElement = function (_MarkdownButtonElemen7) {\n _inherits(MarkdownUnorderedListButtonElement, _MarkdownButtonElemen7);\n\n function MarkdownUnorderedListButtonElement() {\n _classCallCheck(this, MarkdownUnorderedListButtonElement);\n\n var _this8 = _possibleConstructorReturn(this, (MarkdownUnorderedListButtonElement.__proto__ || Object.getPrototypeOf(MarkdownUnorderedListButtonElement)).call(this));\n\n styles.set(_this8, { prefix: '- ', multiline: true, surroundWithNewlines: true });\n return _this8;\n }\n\n return MarkdownUnorderedListButtonElement;\n}(MarkdownButtonElement);\n\nif (!window.customElements.get('md-unordered-list')) {\n window.MarkdownUnorderedListButtonElement = MarkdownUnorderedListButtonElement;\n window.customElements.define('md-unordered-list', MarkdownUnorderedListButtonElement);\n}\n\nvar MarkdownOrderedListButtonElement = function (_MarkdownButtonElemen8) {\n _inherits(MarkdownOrderedListButtonElement, _MarkdownButtonElemen8);\n\n function MarkdownOrderedListButtonElement() {\n _classCallCheck(this, MarkdownOrderedListButtonElement);\n\n var _this9 = _possibleConstructorReturn(this, (MarkdownOrderedListButtonElement.__proto__ || Object.getPrototypeOf(MarkdownOrderedListButtonElement)).call(this));\n\n styles.set(_this9, { prefix: '1. ', multiline: true, orderedList: true });\n return _this9;\n }\n\n return MarkdownOrderedListButtonElement;\n}(MarkdownButtonElement);\n\nif (!window.customElements.get('md-ordered-list')) {\n window.MarkdownOrderedListButtonElement = MarkdownOrderedListButtonElement;\n window.customElements.define('md-ordered-list', MarkdownOrderedListButtonElement);\n}\n\nvar MarkdownTaskListButtonElement = function (_MarkdownButtonElemen9) {\n _inherits(MarkdownTaskListButtonElement, _MarkdownButtonElemen9);\n\n function MarkdownTaskListButtonElement() {\n _classCallCheck(this, MarkdownTaskListButtonElement);\n\n var _this10 = _possibleConstructorReturn(this, (MarkdownTaskListButtonElement.__proto__ || Object.getPrototypeOf(MarkdownTaskListButtonElement)).call(this));\n\n styles.set(_this10, { prefix: '- [ ] ', multiline: true, surroundWithNewlines: true });\n return _this10;\n }\n\n _createClass(MarkdownTaskListButtonElement, [{\n key: 'connectedCallback',\n value: function connectedCallback() {\n _get(MarkdownTaskListButtonElement.prototype.__proto__ || Object.getPrototypeOf(MarkdownTaskListButtonElement.prototype), 'connectedCallback', this).call(this);\n this.setAttribute('hotkey', 'L');\n }\n }]);\n\n return MarkdownTaskListButtonElement;\n}(MarkdownButtonElement);\n\nif (!window.customElements.get('md-task-list')) {\n window.MarkdownTaskListButtonElement = MarkdownTaskListButtonElement;\n window.customElements.define('md-task-list', MarkdownTaskListButtonElement);\n}\n\nvar MarkdownMentionButtonElement = function (_MarkdownButtonElemen10) {\n _inherits(MarkdownMentionButtonElement, _MarkdownButtonElemen10);\n\n function MarkdownMentionButtonElement() {\n _classCallCheck(this, MarkdownMentionButtonElement);\n\n var _this11 = _possibleConstructorReturn(this, (MarkdownMentionButtonElement.__proto__ || Object.getPrototypeOf(MarkdownMentionButtonElement)).call(this));\n\n styles.set(_this11, { prefix: '@', prefixSpace: true });\n return _this11;\n }\n\n return MarkdownMentionButtonElement;\n}(MarkdownButtonElement);\n\nif (!window.customElements.get('md-mention')) {\n window.MarkdownMentionButtonElement = MarkdownMentionButtonElement;\n window.customElements.define('md-mention', MarkdownMentionButtonElement);\n}\n\nvar MarkdownRefButtonElement = function (_MarkdownButtonElemen11) {\n _inherits(MarkdownRefButtonElement, _MarkdownButtonElemen11);\n\n function MarkdownRefButtonElement() {\n _classCallCheck(this, MarkdownRefButtonElement);\n\n var _this12 = _possibleConstructorReturn(this, (MarkdownRefButtonElement.__proto__ || Object.getPrototypeOf(MarkdownRefButtonElement)).call(this));\n\n styles.set(_this12, { prefix: '#', prefixSpace: true });\n return _this12;\n }\n\n return MarkdownRefButtonElement;\n}(MarkdownButtonElement);\n\nif (!window.customElements.get('md-ref')) {\n window.MarkdownRefButtonElement = MarkdownRefButtonElement;\n window.customElements.define('md-ref', MarkdownRefButtonElement);\n}\n\nvar modifierKey = navigator.userAgent.match(/Macintosh/) ? 'Meta' : 'Control';\n\nvar MarkdownToolbarElement = function (_CustomElement3) {\n _inherits(MarkdownToolbarElement, _CustomElement3);\n\n function MarkdownToolbarElement() {\n _classCallCheck(this, MarkdownToolbarElement);\n\n return _possibleConstructorReturn(this, (MarkdownToolbarElement.__proto__ || Object.getPrototypeOf(MarkdownToolbarElement)).call(this));\n }\n\n _createClass(MarkdownToolbarElement, [{\n key: 'connectedCallback',\n value: function connectedCallback() {\n var fn = shortcut.bind(null, this);\n if (this.field) {\n this.field.addEventListener('keydown', fn);\n shortcutListeners.set(this, fn);\n }\n }\n }, {\n key: 'disconnectedCallback',\n value: function disconnectedCallback() {\n var fn = shortcutListeners.get(this);\n if (fn && this.field) {\n this.field.removeEventListener('keydown', fn);\n shortcutListeners.delete(this);\n }\n }\n }, {\n key: 'field',\n get: function get() {\n var id = this.getAttribute('for');\n if (!id) return;\n var field = document.getElementById(id);\n return field instanceof HTMLTextAreaElement ? field : null;\n }\n }]);\n\n return MarkdownToolbarElement;\n}(_CustomElement);\n\nvar shortcutListeners = new WeakMap();\n\nfunction shortcut(toolbar, event) {\n if (event.metaKey && modifierKey === 'Meta' || event.ctrlKey && modifierKey === 'Control') {\n var button = toolbar.querySelector('[hotkey=\"' + event.key + '\"]');\n if (button) {\n button.click();\n event.preventDefault();\n }\n }\n}\n\nif (!window.customElements.get('markdown-toolbar')) {\n window.MarkdownToolbarElement = MarkdownToolbarElement;\n window.customElements.define('markdown-toolbar', MarkdownToolbarElement);\n}\n\nfunction isMultipleLines(string) {\n return string.trim().split('\\n').length > 1;\n}\n\nfunction repeat(string, n) {\n return Array(n + 1).join(string);\n}\n\nfunction wordSelectionStart(text, index) {\n while (text[index] && text[index - 1] != null && !text[index - 1].match(/\\s/)) {\n index--;\n }\n return index;\n}\n\nfunction wordSelectionEnd(text, index) {\n while (text[index] && !text[index].match(/\\s/)) {\n index++;\n }\n return index;\n}\n\nvar canInsertText = null;\n\nfunction insertText(textarea, _ref) {\n var text = _ref.text,\n selectionStart = _ref.selectionStart,\n selectionEnd = _ref.selectionEnd;\n\n var originalSelectionStart = textarea.selectionStart;\n var before = textarea.value.slice(0, originalSelectionStart);\n var after = textarea.value.slice(textarea.selectionEnd);\n\n if (canInsertText === null || canInsertText === true) {\n textarea.contentEditable = 'true';\n try {\n canInsertText = document.execCommand('insertText', false, text);\n } catch (error) {\n canInsertText = false;\n }\n textarea.contentEditable = 'false';\n }\n\n if (canInsertText && !textarea.value.slice(0, textarea.selectionStart).endsWith(text)) {\n canInsertText = false;\n }\n\n if (!canInsertText) {\n try {\n document.execCommand('ms-beginUndoUnit');\n } catch (e) {\n // Do nothing.\n }\n textarea.value = before + text + after;\n try {\n document.execCommand('ms-endUndoUnit');\n } catch (e) {\n // Do nothing.\n }\n textarea.dispatchEvent(new CustomEvent('input', { bubbles: true, cancelable: true }));\n }\n\n if (selectionStart != null && selectionEnd != null) {\n textarea.setSelectionRange(selectionStart, selectionEnd);\n } else {\n textarea.setSelectionRange(originalSelectionStart, textarea.selectionEnd);\n }\n}\n\nfunction styleSelectedText(textarea, styleArgs) {\n var text = textarea.value.slice(textarea.selectionStart, textarea.selectionEnd);\n\n var result = void 0;\n if (styleArgs.orderedList) {\n result = orderedList(textarea);\n } else if (styleArgs.multiline && isMultipleLines(text)) {\n result = multilineStyle(textarea, styleArgs);\n } else {\n result = blockStyle(textarea, styleArgs);\n }\n\n insertText(textarea, result);\n}\n\nfunction expandSelectedText(textarea, prefixToUse, suffixToUse) {\n if (textarea.selectionStart === textarea.selectionEnd) {\n textarea.selectionStart = wordSelectionStart(textarea.value, textarea.selectionStart);\n textarea.selectionEnd = wordSelectionEnd(textarea.value, textarea.selectionEnd);\n } else {\n var expandedSelectionStart = textarea.selectionStart - prefixToUse.length;\n var expandedSelectionEnd = textarea.selectionEnd + suffixToUse.length;\n var beginsWithPrefix = textarea.value.slice(expandedSelectionStart, textarea.selectionStart) === prefixToUse;\n var endsWithSuffix = textarea.value.slice(textarea.selectionEnd, expandedSelectionEnd) === suffixToUse;\n if (beginsWithPrefix && endsWithSuffix) {\n textarea.selectionStart = expandedSelectionStart;\n textarea.selectionEnd = expandedSelectionEnd;\n }\n }\n return textarea.value.slice(textarea.selectionStart, textarea.selectionEnd);\n}\n\nfunction newlinesToSurroundSelectedText(textarea) {\n var beforeSelection = textarea.value.slice(0, textarea.selectionStart);\n var afterSelection = textarea.value.slice(textarea.selectionEnd);\n\n var breaksBefore = beforeSelection.match(/\\n*$/);\n var breaksAfter = afterSelection.match(/^\\n*/);\n var newlinesBeforeSelection = breaksBefore ? breaksBefore[0].length : 0;\n var newlinesAfterSelection = breaksAfter ? breaksAfter[0].length : 0;\n\n var newlinesToAppend = void 0;\n var newlinesToPrepend = void 0;\n\n if (beforeSelection.match(/\\S/) && newlinesBeforeSelection < 2) {\n newlinesToAppend = repeat('\\n', 2 - newlinesBeforeSelection);\n }\n\n if (afterSelection.match(/\\S/) && newlinesAfterSelection < 2) {\n newlinesToPrepend = repeat('\\n', 2 - newlinesAfterSelection);\n }\n\n if (newlinesToAppend == null) {\n newlinesToAppend = '';\n }\n\n if (newlinesToPrepend == null) {\n newlinesToPrepend = '';\n }\n\n return { newlinesToAppend: newlinesToAppend, newlinesToPrepend: newlinesToPrepend };\n}\n\nfunction blockStyle(textarea, arg) {\n var newlinesToAppend = void 0;\n var newlinesToPrepend = void 0;\n\n var prefix = arg.prefix,\n suffix = arg.suffix,\n blockPrefix = arg.blockPrefix,\n blockSuffix = arg.blockSuffix,\n replaceNext = arg.replaceNext,\n prefixSpace = arg.prefixSpace,\n scanFor = arg.scanFor,\n surroundWithNewlines = arg.surroundWithNewlines;\n\n var originalSelectionStart = textarea.selectionStart;\n var originalSelectionEnd = textarea.selectionEnd;\n\n var selectedText = textarea.value.slice(textarea.selectionStart, textarea.selectionEnd);\n var prefixToUse = isMultipleLines(selectedText) && blockPrefix.length > 0 ? blockPrefix + '\\n' : prefix;\n var suffixToUse = isMultipleLines(selectedText) && blockSuffix.length > 0 ? '\\n' + blockSuffix : suffix;\n\n if (prefixSpace) {\n var beforeSelection = textarea.value[textarea.selectionStart - 1];\n if (textarea.selectionStart !== 0 && beforeSelection != null && !beforeSelection.match(/\\s/)) {\n prefixToUse = ' ' + prefixToUse;\n }\n }\n selectedText = expandSelectedText(textarea, prefixToUse, suffixToUse);\n var selectionStart = textarea.selectionStart;\n var selectionEnd = textarea.selectionEnd;\n var hasReplaceNext = replaceNext.length > 0 && suffixToUse.indexOf(replaceNext) > -1 && selectedText.length > 0;\n if (surroundWithNewlines) {\n var ref = newlinesToSurroundSelectedText(textarea);\n newlinesToAppend = ref.newlinesToAppend;\n newlinesToPrepend = ref.newlinesToPrepend;\n prefixToUse = newlinesToAppend + prefix;\n suffixToUse += newlinesToPrepend;\n }\n\n if (selectedText.startsWith(prefixToUse) && selectedText.endsWith(suffixToUse)) {\n var replacementText = selectedText.slice(prefixToUse.length, selectedText.length - suffixToUse.length);\n if (originalSelectionStart === originalSelectionEnd) {\n var position = originalSelectionStart - prefixToUse.length;\n position = Math.max(position, selectionStart);\n position = Math.min(position, selectionStart + replacementText.length);\n selectionStart = selectionEnd = position;\n } else {\n selectionEnd = selectionStart + replacementText.length;\n }\n return { text: replacementText, selectionStart: selectionStart, selectionEnd: selectionEnd };\n } else if (!hasReplaceNext) {\n var _replacementText = prefixToUse + selectedText + suffixToUse;\n selectionStart = originalSelectionStart + prefixToUse.length;\n selectionEnd = originalSelectionEnd + prefixToUse.length;\n var whitespaceEdges = selectedText.match(/^\\s*|\\s*$/g);\n if (arg.trimFirst && whitespaceEdges) {\n var leadingWhitespace = whitespaceEdges[0] || '';\n var trailingWhitespace = whitespaceEdges[1] || '';\n _replacementText = leadingWhitespace + prefixToUse + selectedText.trim() + suffixToUse + trailingWhitespace;\n selectionStart += leadingWhitespace.length;\n selectionEnd -= trailingWhitespace.length;\n }\n return { text: _replacementText, selectionStart: selectionStart, selectionEnd: selectionEnd };\n } else if (scanFor.length > 0 && selectedText.match(scanFor)) {\n suffixToUse = suffixToUse.replace(replaceNext, selectedText);\n var _replacementText2 = prefixToUse + suffixToUse;\n selectionStart = selectionEnd = selectionStart + prefixToUse.length;\n return { text: _replacementText2, selectionStart: selectionStart, selectionEnd: selectionEnd };\n } else {\n var _replacementText3 = prefixToUse + selectedText + suffixToUse;\n selectionStart = selectionStart + prefixToUse.length + selectedText.length + suffixToUse.indexOf(replaceNext);\n selectionEnd = selectionStart + replaceNext.length;\n return { text: _replacementText3, selectionStart: selectionStart, selectionEnd: selectionEnd };\n }\n}\n\nfunction multilineStyle(textarea, arg) {\n var prefix = arg.prefix,\n suffix = arg.suffix,\n surroundWithNewlines = arg.surroundWithNewlines;\n\n var text = textarea.value.slice(textarea.selectionStart, textarea.selectionEnd);\n var selectionStart = textarea.selectionStart;\n var selectionEnd = textarea.selectionEnd;\n var lines = text.split('\\n');\n var undoStyle = lines.every(function (line) {\n return line.startsWith(prefix) && line.endsWith(suffix);\n });\n\n if (undoStyle) {\n text = lines.map(function (line) {\n return line.slice(prefix.length, line.length - suffix.length);\n }).join('\\n');\n selectionEnd = selectionStart + text.length;\n } else {\n text = lines.map(function (line) {\n return prefix + line + suffix;\n }).join('\\n');\n if (surroundWithNewlines) {\n var _newlinesToSurroundSe = newlinesToSurroundSelectedText(textarea),\n _newlinesToAppend = _newlinesToSurroundSe.newlinesToAppend,\n _newlinesToPrepend = _newlinesToSurroundSe.newlinesToPrepend;\n\n selectionStart += _newlinesToAppend.length;\n selectionEnd = selectionStart + text.length;\n text = _newlinesToAppend + text + _newlinesToPrepend;\n }\n }\n\n return { text: text, selectionStart: selectionStart, selectionEnd: selectionEnd };\n}\n\nfunction orderedList(textarea) {\n var orderedListRegex = /^\\d+\\.\\s+/;\n var selectionEnd = void 0;\n var selectionStart = void 0;\n var text = textarea.value.slice(textarea.selectionStart, textarea.selectionEnd);\n var lines = text.split('\\n');\n\n var undoStyling = lines.every(function (line) {\n return orderedListRegex.test(line);\n });\n\n if (undoStyling) {\n lines = lines.map(function (line) {\n return line.replace(orderedListRegex, '');\n });\n text = lines.join('\\n');\n } else {\n lines = function () {\n var i = void 0;\n var len = void 0;\n var index = void 0;\n var results = [];\n for (index = i = 0, len = lines.length; i < len; index = ++i) {\n var line = lines[index];\n results.push(index + 1 + '. ' + line);\n }\n return results;\n }();\n text = lines.join('\\n');\n\n var _newlinesToSurroundSe2 = newlinesToSurroundSelectedText(textarea),\n _newlinesToAppend2 = _newlinesToSurroundSe2.newlinesToAppend,\n _newlinesToPrepend2 = _newlinesToSurroundSe2.newlinesToPrepend;\n\n selectionStart = textarea.selectionStart + _newlinesToAppend2.length;\n selectionEnd = selectionStart + text.length;\n text = _newlinesToAppend2 + text + _newlinesToPrepend2;\n }\n\n return { text: text, selectionStart: selectionStart, selectionEnd: selectionEnd };\n}\n\nfunction applyStyle(button, styles) {\n var toolbar = button.closest('markdown-toolbar');\n if (!(toolbar instanceof MarkdownToolbarElement)) return;\n\n var defaults = {\n prefix: '',\n suffix: '',\n blockPrefix: '',\n blockSuffix: '',\n multiline: false,\n replaceNext: '',\n prefixSpace: false,\n scanFor: '',\n surroundWithNewlines: false,\n orderedList: false,\n trimFirst: false\n };\n\n var style = _extends({}, defaults, styles);\n\n var field = toolbar.field;\n if (field) {\n field.focus();\n styleSelectedText(field, style);\n }\n}\n\nexport default MarkdownToolbarElement;\n","import { extend } from 'flarum/extend';\nimport TextEditor from 'flarum/components/TextEditor';\nimport icon from 'flarum/helpers/icon';\n\nimport '@webcomponents/custom-elements';\nimport '@github/markdown-toolbar-element';\nimport MarkdownArea from 'mdarea/mdarea.js';\n\napp.initializers.add('flarum-markdown', function(app) {\n let index = 1;\n\n extend(TextEditor.prototype, 'init', function() {\n this.textareaId = 'textarea'+(index++);\n });\n\n extend(TextEditor.prototype, 'view', function(vdom) {\n vdom.children[0].attrs.id = this.textareaId;\n });\n\n extend(TextEditor.prototype, 'configTextarea', function(value, element, isInitialized, context) {\n if (isInitialized) return;\n\n const editor = new MarkdownArea(element);\n editor.disableInline();\n\n context.onunload = function() {\n editor.destroy();\n };\n });\n\n extend(TextEditor.prototype, 'toolbarItems', function(items) {\n const attrs = {\n className: 'Button Button--icon Button--link',\n config: elm => $(elm).tooltip()\n };\n\n const tooltip = name => app.translator.trans(`flarum-markdown.forum.composer.${name}_tooltip`);\n\n items.add('markdown', (\n <markdown-toolbar for={this.textareaId}>\n <md-header title={tooltip('header')} {...attrs}>{icon('fas fa-heading')}</md-header>\n <md-bold title={tooltip('bold')+' <cmd-b>'} {...attrs}>{icon('fas fa-bold')}</md-bold>\n <md-italic title={tooltip('italic')+' <cmd-i>'} {...attrs}>{icon('fas fa-italic')}</md-italic>\n <md-quote title={tooltip('quote')} {...attrs}>{icon('fas fa-quote-left')}</md-quote>\n <md-code title={tooltip('code')} {...attrs}>{icon('fas fa-code')}</md-code>\n <md-link title={tooltip('link')+' <cmd-k>'} {...attrs}>{icon('fas fa-link')}</md-link>\n <md-unordered-list title={tooltip('unordered_list')} {...attrs}>{icon('fas fa-list-ul')}</md-unordered-list>\n <md-ordered-list title={tooltip('ordered_list')} {...attrs}>{icon('fas fa-list-ol')}</md-ordered-list>\n </markdown-toolbar>\n ), 100);\n });\n});\n"],"sourceRoot":""} |