forked from rDrama/rDrama
1
0
Fork 0
rDrama/files/assets/js/fp.js

1 line
86 KiB
JavaScript
Raw Normal View History

2022-07-16 21:00:02 +00:00
var FingerprintJS=function(e){"use strict";var t=function(){return(t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function n(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function r(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(t){o(t)}}function u(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(u){o=[6,u],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}}function o(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)r[i]=o[a];return r}var a="3.5.4";function u(e,t){return new Promise((function(n){return s(n,e,t)}))}function s(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Date.now()+t,o=0,a=function(){o=setTimeout((function(){Date.now()<i?a():e.apply(void 0,n)}),i-Date.now())};return a(),function(){return clearTimeout(o)}}function c(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];var o,a=!1,u=e,c=0,l=function(){a||o||(c=Date.now(),o=s((function(){a=!0,n.apply(void 0,r)}),u))},f=function(){!a&&o&&(o(),o=void 0,u-=Date.now()-c)};return t&&l(),{start:l,stop:f}}function l(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=document,o="visibilitychange",a=function(){return i.hidden?l():s()},u=c(t,!i.hidden,(function(){i.removeEventListener(o,a),e.apply(void 0,n)})),s=u.start,l=u.stop;return i.addEventListener(o,a),function(){i.removeEventListener(o,a),l()}}function f(e,t){return new Promise((function(n){return l(n,e,t)}))}function d(e,t){return r(this,void 0,void 0,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e()];case 1:return[2,r.sent()];case 2:return n=r.sent(),console.error(n),[2,t];case 3:return[2]}}))}))}function v(e,t){var n=this;return new Promise((function(o,a){var u=t(),s=!1;null==e||e.then(o,a).then((function(){return s=!0}));var c=function(e){return r(n,void 0,void 0,(function(){var t,n;return i(this,(function(r){switch(r.label){case 0:if(e.done)return[2,o(e.value)];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,e.value];case 2:if(t=r.sent(),!s)try{c(u.next(t))}catch(i){a(i)}return[3,4];case 3:if(n=r.sent(),!s)try{c(u.throw(n))}catch(i){a(i)}return[3,4];case 4:return[2]}}))}))};c(u.next())}))}function h(e,t){return r(this,void 0,void 0,(function(){var n,r,o,a;return i(this,(function(i){switch(i.label){case 0:try{n=t().then((function(e){return r=[!0,e]}),(function(e){return r=[!1,e]}))}catch(u){r=[!1,u]}return a=e.then((function(e){return o=[!0,e]