");var i=ae?ae.createHTML(e):e;if(lt===at)try{t=(new m).parseFromString(i,ye)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(lt,"template",null);try{t.documentElement.innerHTML=ct?le:i}catch(e){}}var o=t.body||t.documentElement;return e&&n&&o.insertBefore(s.createTextNode(n),o.childNodes[0]||null),lt===at?pe.call(t,We?"html":"body")[0]:We?t.documentElement:o},Ct=function(e){return de.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null,!1)},It=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Ot=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Mt=function(e,t,r){ge[e]&&w(ge[e],(function(e){e.call(n,t,r,mt)}))},Nt=function(e){var t;if(Mt("beforeSanitizeElements",e,null),It(e))return xt(e),!0;if(M(/[\u0080-\uFFFF]/,e.nodeName))return xt(e),!0;var r=be(e.nodeName);if(Mt("uponSanitizeElement",e,{tagName:r,allowedTags:Ie}),e.hasChildNodes()&&!Ot(e.firstElementChild)&&(!Ot(e.content)||!Ot(e.content.firstElementChild))&&M(/<[/\w]/g,e.innerHTML)&&M(/<[/\w]/g,e.textContent))return xt(e),!0;if("select"===r&&M(/