text: function getInverseObj(e){return Object.keys(e).sort().reduce(function(n,t){return n[e[t]]="&"+t+";",n},{})}function getInverseReplacer(e){return new RegExp("\\"+Object.keys(e).sort().join("|\\"),"g")}function nonUTF8Replacer(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function astralReplacer(e){var n=e.charCodeAt(0),t=e.charCodeAt(1),r=1024*(n-55296)+t-56320+65536;return"&#x"+r.toString(16).toUpperCase()+";"}function getInverse(e,n){function t(n){return e[n]}return function(e){return e.replace(n,t).replace(re_astralSymbols,astralReplacer).replace(re_nonASCII,nonUTF8Replacer)}}var inverseXML=getInverseObj(require("../maps/xml.json")),xmlReplacer=getInverseReplacer(inverseXML);exports.XML=getInverse(inverseXML,xmlReplacer);var inverseHTML=getInverseObj(require("../maps/entities.json")),htmlReplacer=getInverseReplacer(inverseHTML);exports.HTML=getInverse(inverseHTML,htmlReplacer);var re_nonASCII=/[^\0-\x7F]/g,re_astralSymbols=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;