define("pretty-text/pretty-text",["exports","pretty-text/engines/discourse-markdown-it","discourse-common/lib/object"],(function(e,a,n){"use strict";function t(e,a){if(n=e,!(null!=(t=a)&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?t[Symbol.hasInstance](n):n instanceof t))throw new TypeError("Cannot call a class as a function");var n,t}function o(e,a){for(var n=0;n1?n-1:0),o=1;oe.length)&&(a=e.length);for(var n=0,t=new Array(a);n"):o};return e.replace(new RegExp(d,"g"),o).replace(_(n.inlineEmoji),o)},e.performEmojiEscape=function(e,n){var t=Object.assign({},a.translations,n.customEmojiTranslation||{}),o=function(o,i){if(l(e,i,n.inlineEmoji)){if(t[o])return n.emojiShortcuts?":".concat(t[o],":"):o;if(a.replacements[o])return":".concat(a.replacements[o],":")}return o};return e.replace(new RegExp(d,"g"),o).replace(_(n.inlineEmoji),o)},e.isCustomEmoji=c,e.buildEmojiUrl=m,e.emojiExists=function(e){return e=e.toLowerCase(),!!(i.hasOwnProperty(e)||r.hasOwnProperty(e)||s.hasOwnProperty(e))},e.emojiSearch=function(e,n){var o=n&&n.maxResults||-1,d=n&&n.diversity;if(0===o)return[];u=u||[].concat(t(Object.keys(r)),t(Object.keys(i)),t(Object.keys(s))).sort();var _=[];function l(e){var a=s[e]||e;-1===_.indexOf(a)&&(d&&d>1&&f(a)?_.push("".concat(a,":t").concat(d)):_.push(a))}for(var c=0;c0&&l(h)}return-1===o?_:_.slice(0,o)},e.isSkinTonableEmoji=f,e.emojiReplacementRegex=void 0;var i={};var r={},d="๐Ÿด๓ ง๓ ข(?:๓ ท๓ ฌ๓ ณ|๓ ณ๓ ฃ๓ ด|๓ ฅ๓ ฎ๓ ง)๓ ฟ|(?:๐Ÿง‘๐Ÿฟโ€โค๏ธโ€(?:๐Ÿ’‹โ€)?๐Ÿง‘|๐Ÿ‘ฉ๐Ÿฟโ€๐Ÿคโ€(?:\ud83d[\udc68\udc69]))(?:\ud83c[\udffb-\udffe])|(?:๐Ÿง‘๐Ÿพโ€โค๏ธโ€(?:๐Ÿ’‹โ€)?๐Ÿง‘|๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€(?:\ud83d[\udc68\udc69]))(?:\ud83c[\udffb-\udffd\udfff])|(?:๐Ÿง‘๐Ÿฝโ€โค๏ธโ€(?:๐Ÿ’‹โ€)?๐Ÿง‘|๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿคโ€(?:\ud83d[\udc68\udc69]))(?:\ud83c[\udffb\udffc\udffe\udfff])|(?:๐Ÿง‘๐Ÿผโ€โค๏ธโ€(?:๐Ÿ’‹โ€)?๐Ÿง‘|๐Ÿ‘ฉ๐Ÿผโ€๐Ÿคโ€(?:\ud83d[\udc68\udc69]))(?:\ud83c[\udffb\udffd-\udfff])|(?:๐Ÿง‘๐Ÿปโ€โค๏ธโ€(?:๐Ÿ’‹โ€)?๐Ÿง‘|๐Ÿ‘ฉ๐Ÿปโ€๐Ÿคโ€(?:\ud83d[\udc68\udc69]))(?:\ud83c[\udffc-\udfff])|๐Ÿ‘จ(?:๐Ÿป(?:โ€(?:โค๏ธโ€(?:๐Ÿ’‹โ€๐Ÿ‘จ(?:\ud83c[\udffb-\udfff])|๐Ÿ‘จ(?:\ud83c[\udffb-\udfff]))|๐Ÿคโ€๐Ÿ‘จ(?:\ud83c[\udffc-\udfff])|[โš•โš–โœˆ]๏ธ|\ud83c[\udf3e\udf73\udf7c\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddaf-\uddb3\uddbc\uddbd]))?|(?:\ud83c[\udffc-\udfff])โ€โค๏ธโ€(?:๐Ÿ’‹โ€๐Ÿ‘จ(?:\ud83c[\udffb-\udfff])|๐Ÿ‘จ(?:\ud83c[\udffb-\udfff]))|โ€(?:โค๏ธโ€(?:๐Ÿ’‹โ€)?๐Ÿ‘จ|(?:\ud83d[\udc68\udc69])โ€(?:๐Ÿ‘ฆโ€๐Ÿ‘ฆ|๐Ÿ‘งโ€(?:\ud83d[\udc66\udc67]))|๐Ÿ‘ฆโ€๐Ÿ‘ฆ|๐Ÿ‘งโ€(?:\ud83d[\udc66\udc67])|\ud83c[\udf3e\udf73\udf7c\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddaf-\uddb3\uddbc\uddbd])|๐Ÿฟโ€(?:๐Ÿคโ€๐Ÿ‘จ(?:\ud83c[\udffb-\udffe])|\ud83c[\udf3e\udf73\udf7c\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddaf-\uddb3\uddbc\uddbd])|๐Ÿพโ€(?:๐Ÿคโ€๐Ÿ‘จ(?:\ud83c[\udffb-\udffd\udfff])|\ud83c[\udf3e\udf73\udf7c\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddaf-\uddb3\uddbc\uddbd])|๐Ÿฝโ€(?:๐Ÿคโ€๐Ÿ‘จ(?:\ud83c[\udffb\udffc\udffe\udfff])|\ud83c[\udf3e\udf73\udf7c\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddaf-\uddb3\uddbc\uddbd])|๐Ÿผโ€(?:๐Ÿคโ€๐Ÿ‘จ(?:\ud83c[\udffb\udffd-\udfff])|\ud83c[\udf3e\udf73\udf7c\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddaf-\uddb3\uddbc\uddbd])|(?:๐Ÿฟโ€[โš•โš–โœˆ]|๐Ÿพโ€[โš•โš–โœˆ]|๐Ÿฝโ€[โš•โš–โœˆ]|๐Ÿผโ€[โš•โš–โœˆ]|โ€[โš•โš–โœˆ])๏ธ|โ€(?:(?:\ud83d[\udc68\udc69])โ€(?:\ud83d[\udc66\udc67])|\ud83d[\udc66\udc67])|๐Ÿฟ|๐Ÿพ|๐Ÿฝ|๐Ÿผ)?|(?:๐Ÿ‘ฉ(?:๐Ÿปโ€โค๏ธโ€(?:๐Ÿ’‹โ€(?:\ud83d[\udc68\udc69])|\ud83d[\udc68\udc69])|(?:\ud83c[\udffc-\udfff])โ€โค๏ธโ€(?:๐Ÿ’‹โ€(?:\ud83d[\udc68\udc69])|\ud83d[\udc68\udc69]))|๐Ÿง‘(?:\ud83c[\udffb-\udfff])โ€๐Ÿคโ€๐Ÿง‘)(?:\ud83c[\udffb-\udfff])|๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€(?:๐Ÿ‘ฆโ€๐Ÿ‘ฆ|๐Ÿ‘งโ€(?:\ud83d[\udc66\udc67]))|๐Ÿ‘ฉ(?:โ€(?:โค๏ธโ€(?:๐Ÿ’‹โ€(?:\ud83d[\udc68\udc69])|\ud83d[\udc68\udc69])|\ud83c[\udf3e\udf73\udf7c\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddaf-\uddb3\uddbc\uddbd])|๐Ÿฟโ€(?:\ud83c[\udf3e\udf73\udf7c\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddaf-\uddb3\uddbc\uddbd])|๐Ÿพโ€(?:\ud83c[\udf3e\udf73\udf7c\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddaf-\uddb3\uddbc\uddbd])|๐Ÿฝโ€(?:\ud83c[\udf3e\udf73\udf7c\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddaf-\uddb3\uddbc\uddbd])|๐Ÿผโ€(?:\ud83c[\udf3e\udf73\udf7c\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddaf-\uddb3\uddbc\uddbd])|๐Ÿปโ€(?:\ud83c[\udf3e\udf73\udf7c\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddaf-\uddb3\uddbc\uddbd]))|๐Ÿง‘(?:โ€(?:๐Ÿคโ€๐Ÿง‘|\ud83c[\udf3e\udf73\udf7c\udf84\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddaf-\uddb3\uddbc\uddbd])|๐Ÿฟโ€(?:\ud83c[\udf3e\udf73\udf7c\udf84\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddaf-\uddb3\uddbc\uddbd])|๐Ÿพโ€(?:\ud83c[\udf3e\udf73\udf7c\udf84\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddaf-\uddb3\uddbc\uddbd])|๐Ÿฝโ€(?:\ud83c[\udf3e\udf73\udf7c\udf84\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddaf-\uddb3\uddbc\uddbd])|๐Ÿผโ€(?:\ud83c[\udf3e\udf73\udf7c\udf84\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddaf-\uddb3\uddbc\uddbd])|๐Ÿปโ€(?:\ud83c[\udf3e\udf73\udf7c\udf84\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddaf-\uddb3\uddbc\uddbd]))|๐Ÿ‘ฉโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ|๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€(?:\ud83d[\udc66\udc67])|๐Ÿ‘ฉโ€๐Ÿ‘งโ€(?:\ud83d[\udc66\udc67])|(?:๐Ÿ‘๏ธโ€๐Ÿ—จ|๐Ÿง‘(?:๐Ÿฟโ€[โš•โš–โœˆ]|๐Ÿพโ€[โš•โš–โœˆ]|๐Ÿฝโ€[โš•โš–โœˆ]|๐Ÿผโ€[โš•โš–โœˆ]|๐Ÿปโ€[โš•โš–โœˆ]|โ€[โš•โš–โœˆ])|๐Ÿ‘ฉ(?:๐Ÿฟโ€[โš•โš–โœˆ]|๐Ÿพโ€[โš•โš–โœˆ]|๐Ÿฝโ€[โš•โš–โœˆ]|๐Ÿผโ€[โš•โš–โœˆ]|๐Ÿปโ€[โš•โš–โœˆ]|โ€[โš•โš–โœˆ])|๐Ÿ˜ถโ€๐ŸŒซ|๐Ÿณ๏ธโ€โšง|๐Ÿปโ€โ„|(?:(?:\ud83c[\udfc3\udfc4\udfca]|\ud83d[\udc6e\udc70\udc71\udc73\udc77\udc81\udc82\udc86\udc87\ude45-\ude47\ude4b\ude4d\ude4e\udea3\udeb4-\udeb6]|\ud83e[\udd26\udd35\udd37-\udd39\udd3d\udd3e\uddb8\uddb9\uddcd-\uddcf\uddd4\uddd6-\udddd])(?:\ud83c[\udffb-\udfff])|๐Ÿ‘ฏ|\ud83e[\udd3c\uddde\udddf])โ€[โ™€โ™‚]|(?:โ›น|\ud83c[\udfcb\udfcc]|๐Ÿ•ต)(?:๏ธ|\ud83c[\udffb-\udfff])โ€[โ™€โ™‚]|๐Ÿดโ€โ˜ |(?:\ud83c[\udfc3\udfc4\udfca]|\ud83d[\udc6e\udc70\udc71\udc73\udc77\udc81\udc82\udc86\udc87\ude45-\ude47\ude4b\ude4d\ude4e\udea3\udeb4-\udeb6]|\ud83e[\udd26\udd35\udd37-\udd39\udd3d\udd3e\uddb8\uddb9\uddcd-\uddcf\uddd4\uddd6-\udddd])โ€[โ™€โ™‚]|[ยฉยฎโ€ผโ‰โ„ขโ„นโ†”-โ†™โ†ฉโ†ชโŒจโโญ-โฏโฑโฒโธ-โบโ“‚โ–ชโ–ซโ–ถโ—€โ—ปโ—ผโ˜€-โ˜„โ˜Žโ˜‘โ˜˜โ˜ โ˜ขโ˜ฃโ˜ฆโ˜ชโ˜ฎโ˜ฏโ˜ธ-โ˜บโ™€โ™‚โ™Ÿโ™ โ™ฃโ™ฅโ™ฆโ™จโ™ปโ™พโš’โš”-โš—โš™โš›โšœโš โšงโšฐโšฑโ›ˆโ›โ›‘โ›“โ›ฉโ›ฐโ›ฑโ›ดโ›ทโ›ธโœ‚โœˆโœ‰โœโœ’โœ”โœ–โœโœกโœณโœดโ„โ‡โฃโžกโคดโคตโฌ…-โฌ‡ใ€ฐใ€ฝใŠ—ใŠ™]|\ud83c[\udd70\udd71\udd7e\udd7f\ude02\ude37\udf21\udf24-\udf2c\udf36\udf7d\udf96\udf97\udf99-\udf9b\udf9e\udf9f\udfcd\udfce\udfd4-\udfdf\udff5\udff7]|\ud83d[\udc3f\udcfd\udd49\udd4a\udd6f\udd70\udd73\udd76-\udd79\udd87\udd8a-\udd8d\udda5\udda8\uddb1\uddb2\uddbc\uddc2-\uddc4\uddd1-\uddd3\udddc-\uddde\udde1\udde3\udde8\uddef\uddf3\uddfa\udecb\udecd-\udecf\udee0-\udee5\udee9\udef0\udef3])๏ธ|๐Ÿณ๏ธโ€๐ŸŒˆ|๐Ÿ‘ฉโ€๐Ÿ‘ง|๐Ÿ‘ฉโ€๐Ÿ‘ฆ|๐Ÿ˜ตโ€๐Ÿ’ซ|๐Ÿ˜ฎโ€๐Ÿ’จ|๐Ÿ•โ€๐Ÿฆบ|๐Ÿง‘(?:๐Ÿฟ|๐Ÿพ|๐Ÿฝ|๐Ÿผ|๐Ÿป)?|๐Ÿ‘ฉ(?:๐Ÿฟ|๐Ÿพ|๐Ÿฝ|๐Ÿผ|๐Ÿป)?|๐Ÿ‡ฝ๐Ÿ‡ฐ|๐Ÿ‡ถ๐Ÿ‡ฆ|๐Ÿ‡ด๐Ÿ‡ฒ|๐Ÿˆโ€โฌ›|โค๏ธโ€(?:๐Ÿ”ฅ|๐Ÿฉน)|๐Ÿ‘๏ธ|๐Ÿณ๏ธ|๐Ÿ‡ฟ(?:\ud83c[\udde6\uddf2\uddfc])|๐Ÿ‡พ(?:\ud83c[\uddea\uddf9])|๐Ÿ‡ผ(?:\ud83c[\uddeb\uddf8])|๐Ÿ‡ป(?:\ud83c[\udde6\udde8\uddea\uddec\uddee\uddf3\uddfa])|๐Ÿ‡บ(?:\ud83c[\udde6\uddec\uddf2\uddf3\uddf8\uddfe\uddff])|๐Ÿ‡น(?:\ud83c[\udde6\udde8\udde9\uddeb-\udded\uddef-\uddf4\uddf7\uddf9\uddfb\uddfc\uddff])|๐Ÿ‡ธ(?:\ud83c[\udde6-\uddea\uddec-\uddf4\uddf7-\uddf9\uddfb\uddfd-\uddff])|๐Ÿ‡ท(?:\ud83c[\uddea\uddf4\uddf8\uddfa\uddfc])|๐Ÿ‡ต(?:\ud83c[\udde6\uddea-\udded\uddf0-\uddf3\uddf7-\uddf9\uddfc\uddfe])|๐Ÿ‡ณ(?:\ud83c[\udde6\udde8\uddea-\uddec\uddee\uddf1\uddf4\uddf5\uddf7\uddfa\uddff])|๐Ÿ‡ฒ(?:\ud83c[\udde6\udde8-\udded\uddf0-\uddff])|๐Ÿ‡ฑ(?:\ud83c[\udde6-\udde8\uddee\uddf0\uddf7-\uddfb\uddfe])|๐Ÿ‡ฐ(?:\ud83c[\uddea\uddec-\uddee\uddf2\uddf3\uddf5\uddf7\uddfc\uddfe\uddff])|๐Ÿ‡ฏ(?:\ud83c[\uddea\uddf2\uddf4\uddf5])|๐Ÿ‡ฎ(?:\ud83c[\udde8-\uddea\uddf1-\uddf4\uddf6-\uddf9])|๐Ÿ‡ญ(?:\ud83c[\uddf0\uddf2\uddf3\uddf7\uddf9\uddfa])|๐Ÿ‡ฌ(?:\ud83c[\udde6\udde7\udde9-\uddee\uddf1-\uddf3\uddf5-\uddfa\uddfc\uddfe])|๐Ÿ‡ซ(?:\ud83c[\uddee-\uddf0\uddf2\uddf4\uddf7])|๐Ÿ‡ช(?:\ud83c[\udde6\udde8\uddea\uddec\udded\uddf7-\uddfa])|๐Ÿ‡ฉ(?:\ud83c[\uddea\uddec\uddef\uddf0\uddf2\uddf4\uddff])|๐Ÿ‡จ(?:\ud83c[\udde6\udde8\udde9\uddeb-\uddee\uddf0-\uddf5\uddf7\uddfa-\uddff])|๐Ÿ‡ง(?:\ud83c[\udde6\udde7\udde9-\uddef\uddf1-\uddf4\uddf6-\uddf9\uddfb\uddfc\uddfe\uddff])|๐Ÿ‡ฆ(?:\ud83c[\udde8-\uddec\uddee\uddf1\uddf2\uddf4\uddf6-\uddfa\uddfc\uddfd\uddff])|[#*0-9]๏ธโƒฃ|โค๏ธ|(?:\ud83c[\udfc3\udfc4\udfca]|\ud83d[\udc6e\udc70\udc71\udc73\udc77\udc81\udc82\udc86\udc87\ude45-\ude47\ude4b\ude4d\ude4e\udea3\udeb4-\udeb6]|\ud83e[\udd26\udd35\udd37-\udd39\udd3d\udd3e\uddb8\uddb9\uddcd-\uddcf\uddd4\uddd6-\udddd])(?:\ud83c[\udffb-\udfff])|(?:โ›น|\ud83c[\udfcb\udfcc]|๐Ÿ•ต)(?:๏ธ|\ud83c[\udffb-\udfff])|๐Ÿด|(?:[โœŠโœ‹]|\ud83c[\udf85\udfc2\udfc7]|\ud83d[\udc42\udc43\udc46-\udc50\udc66\udc67\udc6b-\udc6d\udc72\udc74-\udc76\udc78\udc7c\udc83\udc85\udc8f\udc91\udcaa\udd7a\udd95\udd96\ude4c\ude4f\udec0\udecc]|\ud83e[\udd0c\udd0f\udd18-\udd1c\udd1e\udd1f\udd30-\udd34\udd36\udd77\uddb5\uddb6\uddbb\uddd2\uddd3\uddd5])(?:\ud83c[\udffb-\udfff])|(?:[โ˜โœŒโœ]|\ud83d[\udd74\udd90])(?:๏ธ|\ud83c[\udffb-\udfff])|[โœŠโœ‹]|\ud83c[\udf85\udfc2\udfc7]|\ud83d[\udc08\udc15\udc3b\udc42\udc43\udc46-\udc50\udc66\udc67\udc6b-\udc6d\udc72\udc74-\udc76\udc78\udc7c\udc83\udc85\udc8f\udc91\udcaa\udd7a\udd95\udd96\ude2e\ude35\ude36\ude4c\ude4f\udec0\udecc]|\ud83e[\udd0c\udd0f\udd18-\udd1c\udd1e\udd1f\udd30-\udd34\udd36\udd77\uddb5\uddb6\uddbb\uddd2\uddd3\uddd5]|\ud83c[\udfc3\udfc4\udfca]|\ud83d[\udc6e\udc70\udc71\udc73\udc77\udc81\udc82\udc86\udc87\ude45-\ude47\ude4b\ude4d\ude4e\udea3\udeb4-\udeb6]|\ud83e[\udd26\udd35\udd37-\udd39\udd3d\udd3e\uddb8\uddb9\uddcd-\uddcf\uddd4\uddd6-\udddd]|๐Ÿ‘ฏ|\ud83e[\udd3c\uddde\udddf]|[โŒšโŒ›โฉ-โฌโฐโณโ—ฝโ—พโ˜”โ˜•โ™ˆ-โ™“โ™ฟโš“โšกโšชโšซโšฝโšพโ›„โ›…โ›Žโ›”โ›ชโ›ฒโ›ณโ›ตโ›บโ›ฝโœ…โœจโŒโŽโ“-โ•โ—โž•-โž—โžฐโžฟโฌ›โฌœโญโญ•]|\ud83c[\udc04\udccf\udd8e\udd91-\udd9a\ude01\ude1a\ude2f\ude32-\ude36\ude38-\ude3a\ude50\ude51\udf00-\udf20\udf2d-\udf35\udf37-\udf7c\udf7e-\udf84\udf86-\udf93\udfa0-\udfc1\udfc5\udfc6\udfc8\udfc9\udfcf-\udfd3\udfe0-\udff0\udff8-\udfff]|\ud83d[\udc00-\udc07\udc09-\udc14\udc16-\udc3a\udc3c-\udc3e\udc40\udc44\udc45\udc51-\udc65\udc6a\udc79-\udc7b\udc7d-\udc80\udc84\udc88-\udc8e\udc90\udc92-\udca9\udcab-\udcfc\udcff-\udd3d\udd4b-\udd4e\udd50-\udd67\udda4\uddfb-\ude2d\ude2f-\ude34\ude37-\ude44\ude48-\ude4a\ude80-\udea2\udea4-\udeb3\udeb7-\udebf\udec1-\udec5\uded0-\uded2\uded5-\uded7\udeeb\udeec\udef4-\udefc\udfe0-\udfeb]|\ud83e[\udd0d\udd0e\udd10-\udd17\udd1d\udd20-\udd25\udd27-\udd2f\udd3a\udd3f-\udd45\udd47-\udd76\udd78\udd7a-\uddb4\uddb7\uddba\uddbc-\uddcb\uddd0\udde0-\uddff\ude70-\ude74\ude78-\ude7a\ude80-\ude86\ude90-\udea8\udeb0-\udeb6\udec0-\udec2\uded0-\uded6]|(?:[#*0-9ยฉยฎโ€ผโ‰โ„ขโ„นโ†”-โ†™โ†ฉโ†ชโŒšโŒ›โŒจโโฉ-โณโธ-โบโ“‚โ–ชโ–ซโ–ถโ—€โ—ป-โ—พโ˜€-โ˜„โ˜Žโ˜‘โ˜”โ˜•โ˜˜โ˜โ˜ โ˜ขโ˜ฃโ˜ฆโ˜ชโ˜ฎโ˜ฏโ˜ธ-โ˜บโ™€โ™‚โ™ˆ-โ™“โ™Ÿโ™ โ™ฃโ™ฅโ™ฆโ™จโ™ปโ™พโ™ฟโš’-โš—โš™โš›โšœโš โšกโšงโšชโšซโšฐโšฑโšฝโšพโ›„โ›…โ›ˆโ›Žโ›โ›‘โ›“โ›”โ›ฉโ›ชโ›ฐ-โ›ตโ›ท-โ›บโ›ฝโœ‚โœ…โœˆ-โœโœโœ’โœ”โœ–โœโœกโœจโœณโœดโ„โ‡โŒโŽโ“-โ•โ—โฃโคโž•-โž—โžกโžฐโžฟโคดโคตโฌ…-โฌ‡โฌ›โฌœโญโญ•ใ€ฐใ€ฝใŠ—ใŠ™]|\ud83c[\udc04\udccf\udd70\udd71\udd7e\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01\ude02\ude1a\ude2f\ude32-\ude3a\ude50\ude51\udf00-\udf21\udf24-\udf93\udf96\udf97\udf99-\udf9b\udf9e-\udff0\udff3-\udff5\udff7-\udfff]|\ud83d[\udc00-\udcfd\udcff-\udd3d\udd49-\udd4e\udd50-\udd67\udd6f\udd70\udd73-\udd7a\udd87\udd8a-\udd8d\udd90\udd95\udd96\udda4\udda5\udda8\uddb1\uddb2\uddbc\uddc2-\uddc4\uddd1-\uddd3\udddc-\uddde\udde1\udde3\udde8\uddef\uddf3\uddfa-\ude4f\ude80-\udec5\udecb-\uded2\uded5-\uded7\udee0-\udee5\udee9\udeeb\udeec\udef0\udef3-\udefc\udfe0-\udfeb]|\ud83e[\udd0c-\udd3a\udd3c-\udd45\udd47-\udd78\udd7a-\uddcb\uddcd-\uddff\ude70-\ude74\ude78-\ude7a\ude80-\ude86\ude90-\udea8\udeb0-\udeb6\udec0-\udec2\uded0-\uded6]|โ˜ป|โ™ก)๏ธ?";function _(e){return e?/:[^\s:]+(?::t\d)?:?/g:/\B:[^\s:]+(?::t\d)?:?\B/g}e.emojiReplacementRegex=d,a.emojis.forEach((function(e){return r[e]=!0}));var u,s={};function l(e,a,n){if(n)return!0;var t=e.slice(0,a);return 0===t.length||/(?:\s|[>.,\/#!$%^&*;:{}=\-_`~()])$/.test(t)||new RegExp("(?:".concat(d,")$"),"g").test(t)}function c(e,a){return e=e.toLowerCase(),!!i.hasOwnProperty(e)||!!(a&&a.customEmoji&&a.customEmoji.hasOwnProperty(e))}function m(e,a){var t;e=String(e).toLowerCase(),i.hasOwnProperty(e)&&(t=i[e].url),a&&a.customEmoji&&a.customEmoji[e]&&(t=a.customEmoji[e].url||a.customEmoji[e]);var o=e.match(/([^:]+):?/),d="/images/emoji";return a.emojiCDNUrl&&(d=a.emojiCDNUrl),o&&!t&&(r.hasOwnProperty(o[1])||s.hasOwnProperty(o[1]))&&(t=a.getURL("".concat(d,"/").concat(a.emojiSet,"/").concat(e.replace(/:t/,"/"),".png"))),t&&(t=t+"?v="+n.IMAGE_VERSION),t}function f(e){var n=e.split(":").filter(Boolean)[0];return!!n&&-1!==a.tonableEmojis.indexOf(n)}Object.keys(a.aliases).forEach((function(e){a.aliases[e].forEach((function(a){return s[a]=e}))}))})),define("pretty-text/engines/discourse-markdown-it",["exports","pretty-text/allow-lister","discourse-common/lib/deprecated","pretty-text/guid","pretty-text/sanitizer"],(function(e,a,n,t,o){"use strict";function i(e,a){return function(e){if(Array.isArray(e))return e}(e)||function(e,a){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],t=!0,o=!1,i=void 0;try{for(var r,d=e[Symbol.iterator]();!(t=(r=d.next()).done)&&(n.push(r.value),!a||n.length!==a);t=!0);}catch(e){o=!0,i=e}finally{try{t||null==d.return||d.return()}finally{if(o)throw i}}return n}(e,a)||function(e,a){if(!e)return;if("string"==typeof e)return r(e,a);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,a)}(e,a)||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 r(e,a){(null==a||a>e.length)&&(a=e.length);for(var n=0,t=new Array(a);n=0;e--){var a=this.rules[e];this.cache[a.rule.tag]=a}}}},{key:"push",value:function(e,a){this.rules.push({name:e,rule:a}),this.cache=null}}])&&_(a.prototype,n),t&&_(a,t),e}();function c(e,a,n){var o=e[a].content;if(o&&o.length>0){var i=(0,t.default)();return n.discourse.hoisted[i]=e[a].content,i}return""}function m(e){var a=e.indexOf("=");if(-1===a)return null;var n="data-".concat(e.substr(0,a)).toLowerCase();return/^[A-Za-z]+[\w\-\:\.]*$/.test(n)?[n,e.substr(a+1)]:null}var f,g=/^([1-9]+[0-9]*)x([1-9]+[0-9]*)(\s*,\s*(x?)([1-9][0-9]{0,2}?)([%x]?))?$/;function h(e,a,n,t,o){var i=e[a],r=o.renderInlineAsText(i.children,n,t).split("|"),d=[r[0]];if("video"===r[1])return n.discourse.previewing?'
\n \n
':function(e){var a=e.attrGet("src"),n=e.attrGet("data-orig-src"),t=null!==n?'data-orig-src="'.concat(n,'"'):"";return'
\n \n
")}(i);if("audio"===r[1])return function(e){var a=e.attrGet("src"),n=e.attrGet("data-orig-src"),t=null!==n?'data-orig-src="'.concat(n,'"'):"";return'")}(i);for(var _,u,s=1;s0&&(d.content=s.join("|")),o.renderToken(e,a,n)}})),function e(a,n,t){function o(r,d){if(!n[r]){if(!a[r]){var _="function"==typeof require&&require;if(!d&&_)return _(r,!0);if(i)return i(r,!0);var u=new Error("Cannot find module '"+r+"'");throw u.code="MODULE_NOT_FOUND",u}var s=n[r]={exports:{}};a[r][0].call(s.exports,(function(e){var n=a[r][1][e];return o(n||e)}),s,s.exports,e,a,n,t)}return n[r].exports}for(var i="function"==typeof require&&require,r=0;r/g,s=/"/g,l=/"/g,c=/&#([a-zA-Z0-9]*);?/gim,m=/:?/gim,f=/&newline;?/gim,g=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a)\:/gi,h=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,p=/u\s*r\s*l\s*\(.*/gi;function w(e){return e.replace(s,""")}function b(e){return e.replace(l,'"')}function y(e){return e.replace(c,(function(e,a){return"x"===a[0]||"X"===a[0]?String.fromCharCode(parseInt(a.substr(1),16)):String.fromCharCode(parseInt(a,10))}))}function k(e){return e.replace(m,":").replace(f," ")}function v(e){for(var a="",n=0,t=e.length;n/g;n.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","loop","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],sup:[],strong:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","loop","preload","src","height","width"]},n.getDefaultWhiteList=i,n.onTag=function(e,a,n){},n.onIgnoreTag=function(e,a,n){},n.onTagAttr=function(e,a,n){},n.onIgnoreTagAttr=function(e,a,n){},n.safeAttrValue=function(e,a,n,t){if(t=t||r,n=x(n),"href"===a||"src"===a){if("#"===(n=o.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===a){if(g.lastIndex=0,g.test(n))return""}else if("style"===a){if(h.lastIndex=0,h.test(n))return"";if(p.lastIndex=0,p.test(n)&&(g.lastIndex=0,g.test(n)))return"";n=t.process(n)}return n=j(n)},n.escapeHtml=d,n.escapeQuote=w,n.unescapeQuote=b,n.escapeHtmlEntities=y,n.escapeDangerHtml5Entities=k,n.clearNonPrintableCharacter=v,n.friendlyAttrValue=x,n.escapeAttrValue=j,n.onIgnoreTagStripAll=function(){return""},n.StripTagBody=function(e,a){"function"!=typeof a&&(a=function(){});var n=!Array.isArray(e),t=[],i=!1;return{onIgnoreTag:function(r,d,_){if(function(a){return!!n||-1!==o.indexOf(e,a)}(r)){if(_.isClosing){var u="[/removed]",s=_.position+u.length;return t.push([!1!==i?i:_.position,s]),i=!1,u}return i||(i=_.position),"[removed]"}return a(r,d,_)},remove:function(e){var a="",n=0;return o.forEach(t,(function(t){a+=e.slice(n,t[0]),n=t[1]})),a+=e.slice(n)}}},n.stripCommentTag=function(e){return e.replace(z,"")},n.stripBlankChar=function(e){var a=e.split("");return(a=a.filter((function(e){var a=e.charCodeAt(0);return 127!==a&&(!(a<=31)||(10===a||13===a))}))).join("")},n.cssFilter=r},{"./util":4,cssfilter:8}],2:[function(e,a,n){var t=e("./default"),o=e("./parser"),i=e("./xss");for(var r in(n=a.exports=function(e,a){return new i(a).process(e)}).FilterXSS=i,t)n[r]=t[r];for(var r in o)n[r]=o[r];"undefined"!=typeof window&&(window.filterXSS=a.exports)},{"./default":1,"./parser":3,"./xss":5}],3:[function(e,a,n){var t=e("./util");function o(e){var a=e.indexOf(" ");if(-1===a)var n=e.slice(1,-1);else n=e.slice(1,a+1);return"/"===(n=t.trim(n).toLowerCase()).slice(0,1)&&(n=n.slice(1)),"/"===n.slice(-1)&&(n=n.slice(0,-1)),n}function i(e){return"0;a--){var n=e[a];if(" "!==n)return"="===n?a:-1}}function u(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}n.parseTag=function(e,a,n){var t="",r=0,d=!1,_=!1,u=0,s=e.length,l="",c="";for(u=0;u"===m){t+=n(e.slice(r,d)),c=o(l=e.slice(d,u+1)),t+=a(d,t.length,c,l,i(l)),r=u+1,d=!1;continue}if(('"'===m||"'"===m)&&"="===e.charAt(u-1)){_=m;continue}}else if(m===_){_=!1;continue}}return r";var w=function(e){var a=e.indexOf(" ");if(-1===a)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=_.trim(e.slice(a+1,-1)))[e.length-1];return n&&(e=_.trim(e.slice(0,-1))),{html:e,closing:n}}(r),b=n[o],y=d(w.html,(function(e,a){var n,t=-1!==_.indexOf(b,e);return u(n=s(o,e,a,t))?t?(a=c(o,e,a,f))?e+'="'+a+'"':e:u(n=l(o,e,a,t))?void 0:n:n}));r="<"+o;return y&&(r+=" "+y),w.closing&&(r+=" /"),r+=">"}return u(h=i(o,r,p))?m(r):h}),m);return g&&(h=g.remove(h)),h},a.exports=s},{"./default":1,"./parser":3,"./util":4,cssfilter:8}],6:[function(e,a,n){var t=e("./default"),o=e("./parser");e("./util");function i(e){return null==e}function r(e){(e=e||{}).whiteList=e.whiteList||t.whiteList,e.onAttr=e.onAttr||t.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||t.onIgnoreAttr,this.options=e}r.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var a=this.options,n=a.whiteList,t=a.onAttr,r=a.onIgnoreAttr;return o(e,(function(e,a,o,d,_){var u=n[o],s=!1;!0===u?s=u:"function"==typeof u?s=u(d):u instanceof RegExp&&(s=u.test(d)),!0!==s&&(s=!1);var l,c={position:a,sourcePosition:e,source:_,isWhite:s};return s?i(l=t(o,d,c))?o+":"+d:l:i(l=r(o,d,c))?void 0:l}))},a.exports=r},{"./default":7,"./parser":9,"./util":10}],7:[function(e,a,n){function t(){var e={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return e}n.whiteList=t(),n.getDefaultWhiteList=t,n.onAttr=function(e,a,n){},n.onIgnoreAttr=function(e,a,n){}},{}],8:[function(e,a,n){var t=e("./default"),o=e("./css");for(var i in(n=a.exports=function(e,a){return new o(a).process(e)}).FilterCSS=o,t)n[i]=t[i];"undefined"!=typeof window&&(window.filterCSS=a.exports)},{"./css":6,"./default":7}],9:[function(e,a,n){var t=e("./util");a.exports=function(e,a){";"!==(e=t.trimRight(e))[e.length-1]&&(e+=";");var n=e.length,o=!1,i=0,r=0,d="";function _(){if(!o){var n=t.trim(e.slice(i,r)),_=n.indexOf(":");if(-1!==_){var u=t.trim(n.slice(0,_)),s=t.trim(n.slice(_+1));if(u){var l=a(i,d.length,u,s,n);l&&(d+=l+"; ")}}}i=r+1}for(;re.length)&&(a=e.length);for(var n=0,t=new Array(a);n0&&(c.class=(c.class||[]).concat(o)),s){var m=c[s]=c[s]||[];l?m.push(l):c[s]=["*"]}}}))))})),this._cache={custom:o,allowList:{tagList:a,attrList:t}}}},{key:"_ensureCache",value:function(){this._cache||this._buildCache()}},{key:"getAllowList",value:function(){return this._ensureCache(),this._cache.allowList}},{key:"getWhiteList",value:function(){return(0,a.default)("`getWhiteList` has been replaced with `getAllowList`",{since:"2.6.0.beta.4",dropFrom:"2.7.0"}),this.getAllowList()}},{key:"getCustom",value:function(){return this._ensureCache(),this._cache.custom}},{key:"getAllowedHrefSchemes",value:function(){return this._allowedHrefSchemes}},{key:"getAllowedIframes",value:function(){return this._allowedIframes}}])&&i(t.prototype,d),u&&i(t,u),e}();e.default=d;var _=["a.anchor","a.attachment","a.hashtag","a.mention","a.mention-group","a.onebox","a.inline-onebox","a.inline-onebox-loading","a[data-bbcode]","a[name]","a[rel=nofollow]","a[rel=ugc]","a[target=_blank]","a[title]","abbr[title]","aside.quote","aside[data-*]","audio","audio[controls]","audio[preload]","b","big","blockquote","br","code","dd","del","div","div.quote-controls","div.title","div[align]","div[lang]","div[data-*]","div[dir]","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","iframe","iframe[frameborder]","iframe[height]","iframe[marginheight]","iframe[marginwidth]","iframe[width]","iframe[allowfullscreen]","img[alt]","img[height]","img[title]","img[width]","img[data-thumbnail]","ins","kbd","li","mark","ol","ol[start]","p","p[lang]","picture","pre","s","small","span[lang]","span.excerpt","div.excerpt","div.video-container","div.onebox-placeholder-container","span.placeholder-icon video","span.hashtag","span.mention","strike","strong","sub","sup","source[data-orig-src]","source[src]","source[srcset]","source[type]","track","track[default]","track[label]","track[kind]","track[src]","track[srclang]","ul","video","video[controls]","video[controlslist]","video[crossorigin]","video[height]","video[loop]","video[muted]","video[playsinline]","video[poster]","video[preload]","video[width]","ruby","ruby[lang]","rb","rb[lang]","rp","rt","rt[lang]"];e.DEFAULT_LIST=_})),define("pretty-text/white-lister",["exports","pretty-text/allow-lister","discourse-common/lib/deprecated"],(function(e,a,n){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function o(e,a){if(n=e,!(null!=(t=a)&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?t[Symbol.hasInstance](n):n instanceof t))throw new TypeError("Cannot call a class as a function");var n,t}function i(e,a){return i=Object.setPrototypeOf||function(e,a){return e.__proto__=a,e},i(e,a)}function r(e){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,t=_(e);if(a){var o=_(this).constructor;n=Reflect.construct(t,arguments,o)}else n=t.apply(this,arguments);return d(this,n)}}function d(e,a){return!a||"object"!==t(a)&&"function"!=typeof a?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):a}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_LIST=e.default=void 0;var u=function(e){!function(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),a&&i(e,a)}(t,e);var a=r(t);function t(e){return o(this,t),(0,n.default)("`WhiteLister` has been replaced with `AllowLister`",{since:"2.6.0.beta.4",dropFrom:"2.7.0"}),a.call(this,e)}return t}(a.default);e.default=u;var s=a.DEFAULT_LIST;e.DEFAULT_LIST=s})),define("pretty-text/sanitizer",["exports","xss","discourse-common/lib/escape"],(function(e,a,n){"use strict";function t(e,n){return n?"".concat(e,'="').concat(a.default.escapeAttrValue(n),'"'):e}function o(e,a){if(e=e.replace(/'/g,"%27"),/^(https?:)?\/\/[\w\.\-]+/i.test(e))return e;if(/^\/[\w\.\-]+/i.test(e))return e;if(/^#[\w\.\-]+/i.test(e))return e;if(/^mailto:[\w\.\-@]+/i.test(e))return e;if(a&&a.length>0)for(var n=0;n0&&(_=[new RegExp("^("+r.join("|")+")://[\\w\\.\\-]+","i")],r.includes("tel")&&_.push(new RegExp("^tel://\\+?[\\w\\.\\-]+","i")));return(0,a.default)(e,{whiteList:i.tagList,stripIgnoreTag:!0,stripIgnoreTagBody:["script","table"],onIgnoreTagAttr:function(e,a,r){var u=i.attrList[e];if(u){var s=u[a];if(s&&(-1!==s.indexOf("*")||-1!==s.indexOf(r))||-1===a.indexOf("data-html-")&&0===a.indexOf("data-")&&u["data-*"]||"a"===e&&"href"===a&&o(r,_)||"img"===e&&"src"===a&&(/^data:image.*$/i.test(r)||o(r,_))||"iframe"===e&&"src"===a&&d.some((function(e){return 0===r.toLowerCase().indexOf((e||"").toLowerCase())})))return t(a,r);if("iframe"===e&&"src"===a)return"-STRIP-";if("video"===e&&"autoplay"===a)return"autoplay muted";if(-1!==["h1","h2","h3","h4","h5","h6"].indexOf(e)&&r.match(/^heading\-\-[a-zA-Z0-9\-\_]+$/))return t(a,r);for(var l=n.getCustom(),c=0;c]+\-STRIP\-[^>]*>[^<]*<\/iframe>/g,"").replace(/&(?![#\w]+;)/g,"&").replace(/'/g,"'").replace(/ \/>/g,">")},Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return n.default}})})),define("pretty-text/oneboxer",["exports","pretty-text/oneboxer-cache","@ember/runloop"],(function(e,a,n){"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.resetCache=function(){o.clear(),(0,a.resetLocalCache)(),(0,a.resetFailedCache)()},e.load=function(e){var r=e.elem,_=e.ajax,u=e.topicId,s=e.categoryId,l=e.refresh,c=void 0===l||l,m=e.offline,f=void 0!==m&&m,g=e.synchronous,h=void 0!==g&&g,p=$(r);if(p.data("onebox-loaded"))return;if(p.hasClass(i))return;var w=r.href;if(!c){var b=a.localCache[(0,a.normalize)(w)];if(b)return b.prop("outerHTML");if(a.failedCache[(0,a.normalize)(w)])return;if(f)return}if(p.addClass(i),o.push({url:w,refresh:c,$elem:p,categoryId:s,topicId:u}),h)return d(_);t=t||(0,n.later)((function(){return d(_)}),150)},e.LOADING_ONEBOX_CSS_CLASS=void 0;var o=[],i="loading-onebox";function r(e){$(e).addClass("size-resolved"),e.width>0&&e.width===e.height&&$(e).addClass("onebox-avatar")}function d(e){if(0!==o.length){var _=150,u=!0,s=o.shift(),l=s.url,c=s.refresh,m=s.$elem,f=s.categoryId,g=s.topicId;return e("/onebox",{dataType:"html",data:{url:l,refresh:c,category_id:f,topic_id:g},cache:!0}).then((function(e){var n=$(e);(0,a.setLocalCache)((0,a.normalize)(l),n),m.replaceWith(n),function(e){if(e.hasClass("allowlistedgeneric")){var a=e.find(".onebox-body img.thumbnail"),n=a[0];1!==a.length||a.hasClass("size-resolved")||(n.complete?r(n):a.on("load.onebox",(function(){r(n),a.off("load.onebox")})))}}(n)}),(function(e){e&&e.jqXHR&&429===e.jqXHR.status?(_=2e3,u=!1,o.unshift({url:l,refresh:c,$elem:m,categoryId:f,topicId:g})):(0,a.setFailedCache)((0,a.normalize)(l),!0)})).finally((function(){t=(0,n.later)((function(){return d(e)}),_),u&&(m.removeClass(i),m.data("onebox-loaded"))}))}t=null}e.LOADING_ONEBOX_CSS_CLASS=i})),define("pretty-text/oneboxer-cache",["exports"],(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resetLocalCache=function(){e.localCache=a={}},e.resetFailedCache=function(){e.failedCache=n={}},e.setLocalCache=function(e,n){a[e]=n},e.setFailedCache=function(e,a){n[e]=a},e.normalize=t,e.lookupCache=function(e){var n=a[t(e)];return n&&n.prop("outerHTML")},e.failedCache=e.localCache=void 0;var a={};e.localCache=a;var n={};function t(e){return e.replace(/\/$/,"")}e.failedCache=n})),define("pretty-text/inline-oneboxer",["exports"],(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyInlineOneboxes=function(e,n,t){t=t||{};var o=Object.keys(e).filter((function(e){return!a[e]}));if(o.forEach((function(e){a[e]={}})),0===o.length)return;n("/inline-onebox",{data:{urls:o,category_id:t.categoryId,topic_id:t.topicId}}).then((function(n){n["inline-oneboxes"].forEach((function(n){n.title&&(a[n.url]=n,(e[n.url]||[]).forEach((function(e){$(e).text(n.title).addClass("inline-onebox").removeClass("inline-onebox-loading")})))}))}))},e.cachedInlineOnebox=function(e){return a[e]},e.applyCachedInlineOnebox=function(e,n){return a[e]=n},e.deleteCachedInlineOnebox=function(e){return delete a[e]};var a={}})),define("pretty-text/upload-short-url",["exports","I18n","discourse-common/lib/debounce"],(function(e,a,n){"use strict";function t(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,a){if(!e)return;if("string"==typeof e)return o(e,a);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,a)}(e)||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 o(e,a){(null==a||a>e.length)&&(a=e.length);for(var n=0,t=new Array(a);n0&&l(t,e,n)},e.resolveAllShortUrls=function(e,a,t,o){var i=t.querySelectorAll(m);if(i.length>0&&(l(i,a,o),(i=t.querySelectorAll(m)).length>0))return(0,n.default)(null,c,i,e,a,o,450,!0)};var i={};function r(e){return i[e]||{}}var d="missing";function _(e,a){if(0!==(e=e.filter(Boolean)).length)return a("/uploads/lookup-urls",{type:"POST",data:{short_urls:e}}).then((function(a){return a.forEach((function(e){u(e.short_url,{url:e.url,short_path:e.short_path})})),e.forEach((function(e){return u(e,{url:r(e).url||d,short_path:r(e).short_path||d})})),a}))}function u(e,a){i[e]=a}function s(e,n,t,o,i){var _=function(e,a,n){if(!a.url)return;if("orig-href"!==e)return a.url;if(n.secure_media&&a.url.indexOf("secure-media-uploads")>-1)return a.url;return a.short_path}(t,r(e.getAttribute("data-".concat(t))),n);if(_)if(e.removeAttribute("data-".concat(t)),_!==d)i(_);else if(o&&o.removeMissing){var u=getComputedStyle(document.body),s=document.createElement("canvas");s.width=e.width,s.height=e.height;var l=s.getContext("2d");l.fillStyle=getComputedStyle(document.body).backgroundColor,l.strokeRect(0,0,s.width,s.height),l.lineWidth=2,l.strokeStyle=getComputedStyle(document.body).color,l.strokeRect(0,0,s.width,s.height);var c,m=25,f=a.default.t("image_removed");do{--m,l.font="".concat(m,"px ").concat(u.fontFamily),c=l.measureText(f)}while(c.width>s.width);l.fillStyle=getComputedStyle(document.body).color,l.fillText(f,(s.width-c.width)/2,(s.height+m)/2),e.parentNode.replaceChild(s,e)}}function l(e,a,n){e.forEach((function(e){switch(e.tagName){case"A":s(e,a,"orig-href",n,(function(a){e.href=a}));break;case"IMG":s(e,a,"orig-src",n,(function(a){e.src=a}));break;case"SOURCE":s(e,a,"orig-src",n,(function(a){if(a.startsWith("//".concat(window.location.host))){var n=new RegExp("//"+window.location.host,"g");a=a.replace(n,"")}e.src=a;var t=e.parentElement.querySelector("a");t&&(t.href=a,t.textContent=a)}))}}))}function c(e,a,n,o){return _(t(e).map((function(e){return e.getAttribute("data-orig-src")||e.getAttribute("data-orig-href")})),a).then((function(){return l(e,n,o)}))}var m="img[data-orig-src], a[data-orig-href], source[data-orig-src]"})); //# sourceMappingURL=/assets/pretty-text-bundle-040ac8329a20a2521202a2d2c59aa36509c83fc079f86105bfd735894194388d.js.map