text: "use strict";!function(t,e){var n=function(e){function n(t,e,n){var r=n[n.length-1];t.replaceChild(r,e);for(var i=n.length-2;i>=0;i--)t.insertBefore(n[i],r),r=n[i]}function r(t,e,n){for(var r=[],i=0;i<t.length;i++){var o=t[i],a=o.isLink&&s.resolve(e.validate,o.toString(),o.type);if(o.isLink&&a){var u=o.toHref(e.defaultProtocol),l=s.resolve(e.format,o.toString(),o.type),c=s.resolve(e.formatHref,u,o.type),h=s.resolve(e.attributes,u,o.type),p=s.resolve(e.tagName,u,o.type),f=s.resolve(e.linkClass,u,o.type),d=s.resolve(e.target,u,o.type),m=s.resolve(e.events,u,o.type),g=n.createElement(p);if(g.setAttribute("href",c),g.setAttribute("class",f),d&&g.setAttribute("target",d),h)for(var v in h)g.setAttribute(v,h[v]);if(m)for(var y in m)g.addEventListener?g.addEventListener(y,m[y]):g.attachEvent&&g.attachEvent("on"+y,m[y]);g.appendChild(n.createTextNode(l)),r.push(g)}else"nl"===o.type&&e.nl2br?r.push(n.createElement("br")):r.push(n.createTextNode(o.toString()))}return r}function i(t,e,o){if(!t||t.nodeType!==u)throw new Error("Cannot linkify "+t+" - Invalid DOM Node type");var c=e.ignoreTags;if("A"===t.tagName||s.contains(c,t.tagName))return t;for(var h=t.firstChild;h;){switch(h.nodeType){case u:i(h,e,o);break;case l:var p=h.nodeValue,f=a(p),d=r(f,e,o);n(t,h,d),h=d[d.length-1]}h=h.nextSibling}return t}function o(e,n){var r=arguments.length<=2||void 0===arguments[2]?null:arguments[2];try{r=r||t&&t.document||global&&global.document}catch(o){}if(!r)throw new Error("Cannot find document implementation. If you are in a non-browser environment like Node.js, pass the document implementation as the third argument to linkifyElement.");return n=s.normalize(n),i(e,n,r)}var a=e.tokenize,s=e.options,u=1,l=3;return o.helper=i,o.normalize=s.normalize,o}(e);t.linkifyElement=n}(window,linkify);