{"size": 1284, "ext": "js", "max_stars_repo_path": "xth.min.js", "max_stars_repo_name": "pldg/xml-to-html", "max_stars_repo_stars_event_min_datetime": "2019-03-27T00:28:14.000Z", "max_stars_repo_stars_event_max_datetime": "2020-11-05T20:54:39.000Z", "max_issues_repo_path": "xth.min.js", "max_issues_repo_name": "pldg/xml-to-html", "max_issues_repo_issues_event_min_datetime": "2021-01-22T20:19:37.000Z", "max_issues_repo_issues_event_max_datetime": "2021-01-22T20:19:37.000Z", "max_forks_repo_path": "xth.min.js", "max_forks_repo_name": "pldg/xml-to-html", "max_forks_repo_forks_event_min_datetime": "2019-07-01T06:43:50.000Z", "max_forks_repo_forks_event_max_datetime": "2019-10-16T08:55:06.000Z"}
{"max_stars_count": 3, "max_issues_count": 2, "max_forks_count": 2, "avg_line_length": 183.4285714286, "max_line_length": 1170, "alphanum_fraction": 0.7063862928}
/**
 * @license MIT
 * @author Luca Poldelmengo
 * @version 1.1.0
 * @see {@link https://github.com/pldg/xth}
 */
function xth(r,e,n){var t=function(r){return"string"==typeof r&&0<r.length};if(void 0===r)throw new Error('"xmlPath" is required');if(!t(r))throw new Error('"xmlPath" must be a non-empty string');if(void 0===e)throw new Error('"xslPath" is required');if(!t(e))throw new Error('"xmlPath" must be a non-empty string');if(void 0===n)throw new Error('"callback" is required');if("function"!=typeof n)throw new Error('"callback" must be typeof function');var s=function(){var r=window.navigator.userAgent,e=r.indexOf("MSIE "),t=r.indexOf("Trident/");if(0<e||0<t)return!0;return!1}();function o(r,e){var t;if(!(t=s?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest))throw new Error("No AJAX support");t.open("GET",r),s||(t.responseType="document"),t.send(),t.onreadystatechange=function(){if(4===t.readyState){if(200!==t.status)throw new Error("Could not load: "+r);e(s?t.responseXML:t.response)}}}o(r,function(t){o(e,function(r){var e="<!DOCTYPE html>"+function(r,e){var t;if(s)t=r.transformNode(e);else{var n=new XSLTProcessor;n.importStylesheet(e);var o=n.transformToDocument(r),i=new XMLSerializer;t=i.serializeToString(o.documentElement)}return t}(t,r);n(e)})})};