Files
apps.apple.com/assets/mt-metricskit-utils-private.esmDkzakSThTT.js

3 lines
13 KiB
JavaScript
Raw Normal View History

2025-11-04 05:03:50 +08:00
var D={setDelegate:!0};function ae(){D={setDelegate:!0}}function oe(e){var t={},r=B(e),n,a;for(var o in e)n=null,a=null,r&&(n=e.__lookupGetter__(o),a=e.__lookupSetter__(o)),n||a?(n&&t.__defineGetter__(o,n),a&&t.__defineSetter__(o,a)):t[o]=e[o];return t}function _(e){return typeof e<"u"}function d(e){return _(e)&&e!==null}function fe(e){return d(e)&&!U(e)&&!V(e)&&!X(e)}function U(e){return G(e)&&e.length===0}function V(e){return b(e)&&e.length===0}function X(e){return y(e)&&Object.keys(e).length===0}function i(e){return typeof e=="function"}function h(e){return typeof e=="number"}function L(e){return h(e)&&e%1===0}function G(e){return typeof e=="string"||e instanceof String}function le(e){return!!e&&e.nodeType==1}function b(e){return!!e&&e.constructor===Array}function y(e){return!!e&&e.constructor===Object}function ue(e){var t=[];for(var r in e){var n=e[r];e.hasOwnProperty(r)&&!i(n)&&t.push(n)}return t}function ie(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&!i(e[r])&&t.push(r);return t}function se(e){for(var t in e)if(e.hasOwnProperty(t))return!0}function ce(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!0}function B(e){return y(e)&&i(e.__lookupGetter__)&&i(e.__lookupSetter__)&&i(e.__defineGetter__)&&i(e.__defineSetter__)}function ve(e){var t=[];for(var r in e){var n=e[r];e.hasOwnProperty(r)&&i(n)&&t.push(n)}return t}function pe(e){var t={};for(var r in e)e.hasOwnProperty(r)&&!i(e[r])&&(t[e[r]]=r);return t}function k(e){var t=[!0,!0,!0].concat(Array.prototype.slice.call(arguments));return I.apply(null,t)}function I(e,t,r,n){for(var a=r?n||{}:{},o,f=3;f<arguments.length;f++){o=arguments[f];for(var l in o)if(Object.prototype.hasOwnProperty.call(o,l)){var u=o[l];(e||u!=null)&&(t||typeof u!="function")&&(a[l]=u)}}return a}function _e(e){for(var t=0;t<e.length;t++){var r=e[t];D[r]=!0}}function W(e,t,r){var n=!1;if(r=r||!1,e&&t&&e!==t){var a={};Object.keys(t).forEach(function(o){e[o]||(a[o]=!0)}),k(a,D),n=Y(e,t,r?e:null,a)}return n}function Y(e,t,r,n){var a=!1;if(e&&t){n=n||{},r=r||t;var o=function(te,M,re,Ye,ne){var g=function(){return re[ne].apply(te,arguments)};return M&&(g.origFunction=M),g.attachedMethod=!0,g};for(var f in t)if(!(f in n)&&t[f]&&i(t[f])){var l=e[f],u=l&&i(l),c=null;u&&(l.attachedMethod===!0?c=l:c=l.bind(e)),e[f]=o(r,c,t,e,f),a=!0}}return a}function K(e){var t=!1;for(var r in e)if(i(e[r])&&e[r].attachedMethod===!0){var n=e[r].origFunction;if(n)for(;e[r].origFunction;)e[r]=e[r].origFunction,t=!0;else delete e[r]}return t}function de(e,t){var r={};for(var n in e)t[n]&&i(e[n].setDelegate)&&(r[n]=e[n].setDelegate.apply(e[n],[t[n]].concat(Array.prototype.slice.call(arguments,2))));return r}var he=function(t){var r=!1;for(var n in t){var a=t[n];a&&typeof a=="object"&&i(a.setDelegate)&&(r|=K(a))}return!!r};function Ee(e,t){var r=null;if(e&&t&&t.setDelegate){var n={},a;for(a in e)i(e[a])&&e[a].origFunction&&(n[a]=e[a]);r=t.setDelegate(n)}return r}function ye(e,t){var r={};if(e)for(var n=0;n<e.length;n++)r[e[n]]=0;if(t)for(var a=0;a<t.length;a++)r[t[a]]=0;return Object.keys(r)}function w(){return typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof window<"u"?window:{}}var Ke=Object.freeze({__proto__:null,_utResetNonOverridableFunctions:ae,shallowClone:oe,isDefined:_,isDefinedNonNull:d,isDefinedNonNullNonEmpty:fe,isEmptyString:U,isEmptyArray:V,isEmptyObject:X,isFunction:i,isNumber:h,isInteger:L,isString:G,isElement:le,isArray:b,isObject:y,values:ue,keys:ie,hasAnyKeys:se,hasAnyNonNullKeys:ce,hasGetterAndSetterMethods:B,methods:ve,invert:pe,extend:k,copyKeysAndValues:I,addNonOverrideableFunctions:_e,attachMethods:Y,detachMethods:K,attachDelegate:W,setDelegates:de,resetDelegates:he,copyDelegatedFunctions:Ee,dedupedArray:ye,globalScope:w}),A={exponential:{maxWait:1500,initialDelay:100,factor:2}},z=function(e,t,r){this.delay=e||A.exponential.initialDelay,this.maxWait=h(t)?t:A.exponential.maxWait,this.factor=r||A.exponential.factor,this.timeWaited=0};z.prototype.nextDelay=function(){var t=null,r=this.maxWait-this.timeWaited;return r>0&&(this.delay=Math.min(this.delay,r),this.timeWaited+=this.delay),
//# sourceMappingURL=mt-metricskit-utils-private.esm~DkzakSThTT.js.map