diff --git a/packages/components/dist/assets/org.standardnotes.advanced-markdown-editor/dist/dist.js b/packages/components/dist/assets/org.standardnotes.advanced-markdown-editor/dist/dist.js index 1618d1a7e..ae49cbdcf 100644 --- a/packages/components/dist/assets/org.standardnotes.advanced-markdown-editor/dist/dist.js +++ b/packages/components/dist/assets/org.standardnotes.advanced-markdown-editor/dist/dist.js @@ -1,3 +1,3 @@ /*! For license information please see dist.js.LICENSE.txt */ -(()=>{var e={872:function(e){e.exports=function(){"use strict";function e(t){return e="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},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,u,i){return r=n()?Reflect.construct:function(e,n,r){var u=[null];u.push.apply(u,n);var i=new(Function.bind.apply(e,u));return r&&t(i,r.prototype),i},r.apply(null,arguments)}function u(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n-1:0),u=1;u/gm),Z=D(/^data-[\-\w.\u00B7-\uFFFF]/),G=D(/^aria-[\-\w]+$/),W=D(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=D(/^(?:\w+script|data):/i),V=D(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y=D(/^html$/i),X=function(){return"undefined"==typeof window?null:window},J=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,u="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(u)&&(r=n.currentScript.getAttribute(u));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X(),r=function(e){return t(e)};if(r.version="2.3.8",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var i=n.document,o=n.document,a=n.DocumentFragment,s=n.HTMLTemplateElement,l=n.Node,c=n.Element,D=n.NodeFilter,h=n.NamedNodeMap,f=void 0===h?n.NamedNodeMap||n.MozNamedAttrMap:h,d=n.HTMLFormElement,m=n.DOMParser,g=n.trustedTypes,B=c.prototype,Q=T(B,"cloneNode"),ee=T(B,"nextSibling"),te=T(B,"childNodes"),ne=T(B,"parentNode");if("function"==typeof s){var re=o.createElement("template");re.content&&re.content.ownerDocument&&(o=re.content.ownerDocument)}var ue=J(g,i),ie=ue?ue.createHTML(""):"",oe=o,ae=oe.implementation,se=oe.createNodeIterator,le=oe.createDocumentFragment,ce=oe.getElementsByTagName,pe=i.importNode,De={};try{De=S(o).documentMode?o.documentMode:{}}catch(e){}var he={};r.isSupported="function"==typeof ne&&ae&&void 0!==ae.createHTMLDocument&&9!==De;var fe,de,me=H,ge=q,Ae=Z,be=G,ke=K,Fe=V,Ee=W,Ce=null,xe=_({},[].concat(u(z),u(N),u(R),u(I),u(L))),ye=null,ve=_({},[].concat(u(M),u(P),u(U),u(j))),we=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Be=null,_e=null,Se=!0,Te=!0,ze=!1,Ne=!1,Re=!1,Oe=!1,Ie=!1,$e=!1,Le=!1,Me=!1,Pe=!0,Ue=!0,je=!1,He={},qe=null,Ze=_({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ge=null,We=_({},["audio","video","img","source","image","track"]),Ke=null,Ve=_({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ye="http://www.w3.org/1998/Math/MathML",Xe="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml",Qe=Je,et=!1,tt=["application/xhtml+xml","text/html"],nt="text/html",rt=null,ut=o.createElement("form"),it=function(e){return e instanceof RegExp||e instanceof Function},ot=function(t){rt&&rt===t||(t&&"object"===e(t)||(t={}),t=S(t),Ce="ALLOWED_TAGS"in t?_({},t.ALLOWED_TAGS):xe,ye="ALLOWED_ATTR"in t?_({},t.ALLOWED_ATTR):ve,Ke="ADD_URI_SAFE_ATTR"in t?_(S(Ve),t.ADD_URI_SAFE_ATTR):Ve,Ge="ADD_DATA_URI_TAGS"in t?_(S(We),t.ADD_DATA_URI_TAGS):We,qe="FORBID_CONTENTS"in t?_({},t.FORBID_CONTENTS):Ze,Be="FORBID_TAGS"in t?_({},t.FORBID_TAGS):{},_e="FORBID_ATTR"in t?_({},t.FORBID_ATTR):{},He="USE_PROFILES"in t&&t.USE_PROFILES,Se=!1!==t.ALLOW_ARIA_ATTR,Te=!1!==t.ALLOW_DATA_ATTR,ze=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=t.SAFE_FOR_TEMPLATES||!1,Re=t.WHOLE_DOCUMENT||!1,$e=t.RETURN_DOM||!1,Le=t.RETURN_DOM_FRAGMENT||!1,Me=t.RETURN_TRUSTED_TYPE||!1,Ie=t.FORCE_BODY||!1,Pe=!1!==t.SANITIZE_DOM,Ue=!1!==t.KEEP_CONTENT,je=t.IN_PLACE||!1,Ee=t.ALLOWED_URI_REGEXP||Ee,Qe=t.NAMESPACE||Je,t.CUSTOM_ELEMENT_HANDLING&&it(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(we.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&it(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(we.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(we.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),fe=fe=-1===tt.indexOf(t.PARSER_MEDIA_TYPE)?nt:t.PARSER_MEDIA_TYPE,de="application/xhtml+xml"===fe?function(e){return e}:F,Ne&&(Te=!1),Le&&($e=!0),He&&(Ce=_({},u(L)),ye=[],!0===He.html&&(_(Ce,z),_(ye,M)),!0===He.svg&&(_(Ce,N),_(ye,P),_(ye,j)),!0===He.svgFilters&&(_(Ce,R),_(ye,P),_(ye,j)),!0===He.mathMl&&(_(Ce,I),_(ye,U),_(ye,j))),t.ADD_TAGS&&(Ce===xe&&(Ce=S(Ce)),_(Ce,t.ADD_TAGS)),t.ADD_ATTR&&(ye===ve&&(ye=S(ye)),_(ye,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&_(Ke,t.ADD_URI_SAFE_ATTR),t.FORBID_CONTENTS&&(qe===Ze&&(qe=S(qe)),_(qe,t.FORBID_CONTENTS)),Ue&&(Ce["#text"]=!0),Re&&_(Ce,["html","head","body"]),Ce.table&&(_(Ce,["tbody"]),delete Be.tbody),p&&p(t),rt=t)},at=_({},["mi","mo","mn","ms","mtext"]),st=_({},["foreignobject","desc","title","annotation-xml"]),lt=_({},["title","style","font","a","script"]),ct=_({},N);_(ct,R),_(ct,O);var pt=_({},I);_(pt,$);var Dt=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:Je,tagName:"template"});var n=F(e.tagName),r=F(t.tagName);return e.namespaceURI===Xe?t.namespaceURI===Je?"svg"===n:t.namespaceURI===Ye?"svg"===n&&("annotation-xml"===r||at[r]):Boolean(ct[n]):e.namespaceURI===Ye?t.namespaceURI===Je?"math"===n:t.namespaceURI===Xe?"math"===n&&st[r]:Boolean(pt[n]):e.namespaceURI===Je&&!(t.namespaceURI===Xe&&!st[r])&&!(t.namespaceURI===Ye&&!at[r])&&!pt[n]&&(lt[n]||!ct[n])},ht=function(e){k(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},ft=function(e,t){try{k(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){k(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ye[e])if($e||Le)try{ht(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},dt=function(e){var t,n;if(Ie)e=""+e;else{var r=E(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===fe&&(e=''+e+"");var u=ue?ue.createHTML(e):e;if(Qe===Je)try{t=(new m).parseFromString(u,fe)}catch(e){}if(!t||!t.documentElement){t=ae.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=et?"":u}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),Qe===Je?ce.call(t,Re?"html":"body")[0]:Re?t.documentElement:i},mt=function(e){return se.call(e.ownerDocument||e,e,D.SHOW_ELEMENT|D.SHOW_COMMENT|D.SHOW_TEXT,null,!1)},gt=function(e){return e instanceof d&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof f)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},At=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},bt=function(e,t,n){he[e]&&A(he[e],(function(e){e.call(r,t,n,rt)}))},kt=function(e){var t;if(bt("beforeSanitizeElements",e,null),gt(e))return ht(e),!0;if(v(/[\u0080-\uFFFF]/,e.nodeName))return ht(e),!0;var n=de(e.nodeName);if(bt("uponSanitizeElement",e,{tagName:n,allowedTags:Ce}),e.hasChildNodes()&&!At(e.firstElementChild)&&(!At(e.content)||!At(e.content.firstElementChild))&&v(/<[/\w]/g,e.innerHTML)&&v(/<[/\w]/g,e.textContent))return ht(e),!0;if("select"===n&&v(/