{"size": 5335, "ext": "js", "max_stars_repo_path": "dist/randomorg.min.js", "max_stars_repo_name": "tunnckoCore/randomorg-js", "max_stars_repo_stars_event_min_datetime": "2015-08-20T03:38:41.000Z", "max_stars_repo_stars_event_max_datetime": "2019-04-14T20:31:28.000Z", "max_issues_repo_path": "dist/randomorg.min.js", "max_issues_repo_name": "tunnckoCore/randomorg-js", "max_issues_repo_issues_event_min_datetime": "2015-01-06T19:32:47.000Z", "max_issues_repo_issues_event_max_datetime": "2017-03-08T00:47:05.000Z", "max_forks_repo_path": "dist/randomorg.min.js", "max_forks_repo_name": "tunnckoCore/randomorg-js", "max_forks_repo_forks_event_min_datetime": "2016-01-29T06:55:53.000Z", "max_forks_repo_forks_event_max_datetime": "2021-04-30T02:13:44.000Z"}
{"max_stars_count": 8, "max_issues_count": 10, "max_forks_count": 5, "avg_line_length": 1778.3333333333, "max_line_length": 5292, "alphanum_fraction": 0.6969072165}
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.RandomOrg=t()}(this,function(){function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}function t(e){var t=m.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}function n(e,t,n){if(!v(t))throw new TypeError("iterator must be a function");arguments.length<3&&(n=this),"[object Array]"===j.call(e)?r(e,t,n):"string"==typeof e?o(e,t,n):s(e,t,n)}function r(e,t,n){for(var r=0,o=e.length;r<o;r++)S.call(e,r)&&t.call(n,e[r],r,e)}function o(e,t,n){for(var r=0,o=e.length;r<o;r++)t.call(n,e.charAt(r),r,e)}function s(e,t,n){for(var r in e)S.call(e,r)&&t.call(n,e[r],r,e)}function i(){for(var e=arguments,t={},n=0;n<arguments.length;n++){var r=e[n];for(var o in r)x.call(r,o)&&(t[o]=r[o])}return t}function a(e,t){for(var n=0;n<e.length;n++)t(e[n])}function u(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function c(e,t,n){var r=e;return M(t)?(n=t,"string"==typeof e&&(r={uri:e})):r=D(t,{uri:e}),r.callback=n,r}function f(e,t,n){return t=c(e,t,n),p(t)}function p(e){function t(){4===a.readyState&&o()}function n(){var e=void 0;if(e=a.response?a.response:a.responseText||d(a),b)try{e=JSON.parse(e)}catch(e){}return e}function r(e){return clearTimeout(l),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,i(e,v)}function o(){if(!p){var t;clearTimeout(l),t=e.useXDR&&void 0===a.status?200:1223===a.status?204:a.status;var r=v,o=null;return 0!==t?(r={body:n(),statusCode:t,method:y,headers:{},url:g,rawRequest:a},a.getAllResponseHeaders&&(r.headers=L(a.getAllResponseHeaders()))):o=new Error("Internal XMLHttpRequest Error"),i(o,r,r.body)}}if("undefined"==typeof e.callback)throw new Error("callback argument missing");var s=!1,i=function(t,n,r){s||(s=!0,e.callback(t,n,r))},a=e.xhr||null;a||(a=e.cors||e.useXDR?new f.XDomainRequest:new f.XMLHttpRequest);var c,p,l,g=a.url=e.uri||e.url,y=a.method=e.method||"GET",h=e.body||e.data,w=a.headers=e.headers||{},m=!!e.sync,b=!1,v={body:void 0,headers:{},statusCode:0,method:y,url:g,rawRequest:a};if("json"in e&&e.json!==!1&&(b=!0,w.accept||w.Accept||(w.Accept="application/json"),"GET"!==y&&"HEAD"!==y&&(w["content-type"]||w["Content-Type"]||(w["Content-Type"]="application/json"),h=JSON.stringify(e.json===!0?h:e.json))),a.onreadystatechange=t,a.onload=o,a.onerror=r,a.onprogress=function(){},a.onabort=function(){p=!0},a.ontimeout=r,a.open(y,g,!m,e.username,e.password),m||(a.withCredentials=!!e.withCredentials),!m&&e.timeout>0&&(l=setTimeout(function(){if(!p){p=!0,a.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",r(e)}},e.timeout)),a.setRequestHeader)for(c in w)w.hasOwnProperty(c)&&a.setRequestHeader(c,w[c]);else if(e.headers&&!u(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(a.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(a),a.send(h||null),a}function d(e){if("document"===e.responseType)return e.responseXML;var t=204===e.status&&e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;return""!==e.responseType||t?null:e.responseXML}function l(){}function g(e){var t=function(t){return function(n,r,o){var s=C.concat?C.concat:C,i=t||e||0|1e3*Math.random();s({url:"https://api.random.org/json-rpc/1/invoke",json:!0,method:"POST",body:{jsonrpc:"2.0",method:n,params:r,id:i}},function(e,t,n){return e?o(e):void o(null,n)})}},n={};return A.forEach(function(e){n[e]=function(n,r,o){n&&"object"==typeof n&&(o=r,r=n,n=!1),t(n)(e,r,o)}}),n.request=t(e),n.RandomOrg=g,n}var y="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h=e(function(e){"undefined"!=typeof window?e.exports=window:"undefined"!=typeof y?e.exports=y:"undefined"!=typeof self?e.exports=self:e.exports={}}),w=t,m=Object.prototype.toString,b=e(function(e,t){function n(e){return e.replace(/^\s*|\s*$/g,"")}t=e.exports=n,t.left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}}),v=w,R=n,j=Object.prototype.toString,S=Object.prototype.hasOwnProperty,T=b,X=R,q=function(e){return"[object Array]"===Object.prototype.toString.call(e)},E=function(e){if(!e)return{};var t={};return X(T(e).split("\n"),function(e){var n=e.indexOf(":"),r=T(e.slice(0,n)).toLowerCase(),o=T(e.slice(n+1));"undefined"==typeof t[r]?t[r]=o:q(t[r])?t[r].push(o):t[r]=[t[r],o]}),t},O=i,x=Object.prototype.hasOwnProperty,H=h,M=w,L=E,D=O,C=f;f.XMLHttpRequest=H.XMLHttpRequest||l,f.XDomainRequest="withCredentials"in new f.XMLHttpRequest?f.XMLHttpRequest:H.XDomainRequest,a(["get","put","post","patch","head","delete"],function(e){f["delete"===e?"del":e]=function(t,n,r){return n=c(t,n,r),n.method=e.toUpperCase(),p(n)}});var A=["generateIntegers","generateDecimalFractions","generateGaussians","generateStrings","generateUUIDs","generateBlobs","getUsage","generateSignedIntegers","generateSignedDecimalFractions","generateSignedGaussians","generateSignedStrings","generateSignedUUIDs","generateSignedBlobs","verifySignature"],U=g();return U});
//# sourceMappingURL=randomorg.min.js.map
