UNPKG

fe-supervisor

Version:

The frontend monitor project

1 lines 41.8 kB
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var peelerJs=require("peeler-js"),ceil=Math.ceil,floor=Math.floor,_toInteger=function(e){return isNaN(e=+e)?0:(0<e?floor:ceil)(e)},_defined=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},_stringAt=function(a){return function(e,r){var t,n,o=String(_defined(e)),i=_toInteger(r),s=o.length;return i<0||s<=i?a?"":void 0:(t=o.charCodeAt(i))<55296||56319<t||i+1===s||(n=o.charCodeAt(i+1))<56320||57343<n?a?o.charAt(i):t:a?o.slice(i,i+2):n-56320+(t-55296<<10)+65536}},_library=!0;function createCommonjsModule(e,r){return e(r={exports:{}},r.exports),r.exports}var _global=createCommonjsModule(function(e){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)}),_core=createCommonjsModule(function(e){var r=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=r)}),_core_1=_core.version,_aFunction=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},_ctx=function(n,o,e){if(_aFunction(n),void 0===o)return n;switch(e){case 1:return function(e){return n.call(o,e)};case 2:return function(e,r){return n.call(o,e,r)};case 3:return function(e,r,t){return n.call(o,e,r,t)}}return function(){return n.apply(o,arguments)}},_isObject=function(e){return"object"==typeof e?null!==e:"function"==typeof e},_anObject=function(e){if(!_isObject(e))throw TypeError(e+" is not an object!");return e},_fails=function(e){try{return!!e()}catch(e){return!0}},_descriptors=!_fails(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),document$1=_global.document,is=_isObject(document$1)&&_isObject(document$1.createElement),_domCreate=function(e){return is?document$1.createElement(e):{}},_ie8DomDefine=!_descriptors&&!_fails(function(){return 7!=Object.defineProperty(_domCreate("div"),"a",{get:function(){return 7}}).a}),_toPrimitive=function(e,r){if(!_isObject(e))return e;var t,n;if(r&&"function"==typeof(t=e.toString)&&!_isObject(n=t.call(e)))return n;if("function"==typeof(t=e.valueOf)&&!_isObject(n=t.call(e)))return n;if(!r&&"function"==typeof(t=e.toString)&&!_isObject(n=t.call(e)))return n;throw TypeError("Can't convert object to primitive value")},dP=Object.defineProperty,f=_descriptors?Object.defineProperty:function(e,r,t){if(_anObject(e),r=_toPrimitive(r,!0),_anObject(t),_ie8DomDefine)try{return dP(e,r,t)}catch(e){}if("get"in t||"set"in t)throw TypeError("Accessors not supported!");return"value"in t&&(e[r]=t.value),e},_objectDp={f:f},_propertyDesc=function(e,r){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:r}},_hide=_descriptors?function(e,r,t){return _objectDp.f(e,r,_propertyDesc(1,t))}:function(e,r,t){return e[r]=t,e},hasOwnProperty={}.hasOwnProperty,_has=function(e,r){return hasOwnProperty.call(e,r)},PROTOTYPE="prototype",$export=function(e,r,t){var n,o,i,s=e&$export.F,a=e&$export.G,c=e&$export.S,u=e&$export.P,l=e&$export.B,p=e&$export.W,f=a?_core:_core[r]||(_core[r]={}),_=f[PROTOTYPE],m=a?_global:c?_global[r]:(_global[r]||{})[PROTOTYPE];for(n in a&&(t=r),t)(o=!s&&m&&void 0!==m[n])&&_has(f,n)||(i=o?m[n]:t[n],f[n]=a&&"function"!=typeof m[n]?t[n]:l&&o?_ctx(i,_global):p&&m[n]==i?function(n){function e(e,r,t){if(this instanceof n){switch(arguments.length){case 0:return new n;case 1:return new n(e);case 2:return new n(e,r)}return new n(e,r,t)}return n.apply(this,arguments)}return e[PROTOTYPE]=n[PROTOTYPE],e}(i):u&&"function"==typeof i?_ctx(Function.call,i):i,u&&((f.virtual||(f.virtual={}))[n]=i,e&$export.R&&_&&!_[n]&&_hide(_,n,i)))};$export.F=1,$export.G=2,$export.S=4,$export.P=8,$export.B=16,$export.W=32,$export.U=64,$export.R=128;var _export=$export,_redefine=_hide,_iterators={},toString={}.toString,_cof=function(e){return toString.call(e).slice(8,-1)},_iobject=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==_cof(e)?e.split(""):Object(e)},_toIobject=function(e){return _iobject(_defined(e))},min=Math.min,_toLength=function(e){return 0<e?min(_toInteger(e),9007199254740991):0},max=Math.max,min$1=Math.min,_toAbsoluteIndex=function(e,r){return(e=_toInteger(e))<0?max(e+r,0):min$1(e,r)},_arrayIncludes=function(a){return function(e,r,t){var n,o=_toIobject(e),i=_toLength(o.length),s=_toAbsoluteIndex(t,i);if(a&&r!=r){for(;s<i;)if((n=o[s++])!=n)return!0}else for(;s<i;s++)if((a||s in o)&&o[s]===r)return a||s||0;return!a&&-1}},_shared=createCommonjsModule(function(e){var r="__core-js_shared__",t=_global[r]||(_global[r]={});(e.exports=function(e,r){return t[e]||(t[e]=void 0!==r?r:{})})("versions",[]).push({version:_core.version,mode:"pure",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),id=0,px=Math.random(),_uid=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++id+px).toString(36))},shared=_shared("keys"),_sharedKey=function(e){return shared[e]||(shared[e]=_uid(e))},arrayIndexOf=_arrayIncludes(!1),IE_PROTO=_sharedKey("IE_PROTO"),_objectKeysInternal=function(e,r){var t,n=_toIobject(e),o=0,i=[];for(t in n)t!=IE_PROTO&&_has(n,t)&&i.push(t);for(;r.length>o;)_has(n,t=r[o++])&&(~arrayIndexOf(i,t)||i.push(t));return i},_enumBugKeys="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),_objectKeys=Object.keys||function(e){return _objectKeysInternal(e,_enumBugKeys)},_objectDps=_descriptors?Object.defineProperties:function(e,r){_anObject(e);for(var t,n=_objectKeys(r),o=n.length,i=0;i<o;)_objectDp.f(e,t=n[i++],r[t]);return e},document$2=_global.document,_html=document$2&&document$2.documentElement,IE_PROTO$1=_sharedKey("IE_PROTO"),Empty=function(){},PROTOTYPE$1="prototype",createDict=function(){var e,r=_domCreate("iframe"),t=_enumBugKeys.length;for(r.style.display="none",_html.appendChild(r),r.src="javascript:",(e=r.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),createDict=e.F;t--;)delete createDict[PROTOTYPE$1][_enumBugKeys[t]];return createDict()},_objectCreate=Object.create||function(e,r){var t;return null!==e?(Empty[PROTOTYPE$1]=_anObject(e),t=new Empty,Empty[PROTOTYPE$1]=null,t[IE_PROTO$1]=e):t=createDict(),void 0===r?t:_objectDps(t,r)},_wks=createCommonjsModule(function(e){var r=_shared("wks"),t=_global.Symbol,n="function"==typeof t;(e.exports=function(e){return r[e]||(r[e]=n&&t[e]||(n?t:_uid)("Symbol."+e))}).store=r}),def=_objectDp.f,TAG=_wks("toStringTag"),_setToStringTag=function(e,r,t){e&&!_has(e=t?e:e.prototype,TAG)&&def(e,TAG,{configurable:!0,value:r})},IteratorPrototype={};_hide(IteratorPrototype,_wks("iterator"),function(){return this});var _iterCreate=function(e,r,t){e.prototype=_objectCreate(IteratorPrototype,{next:_propertyDesc(1,t)}),_setToStringTag(e,r+" Iterator")},_toObject=function(e){return Object(_defined(e))},IE_PROTO$2=_sharedKey("IE_PROTO"),ObjectProto=Object.prototype,_objectGpo=Object.getPrototypeOf||function(e){return e=_toObject(e),_has(e,IE_PROTO$2)?e[IE_PROTO$2]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?ObjectProto:null},ITERATOR=_wks("iterator"),BUGGY=!([].keys&&"next"in[].keys()),FF_ITERATOR="@@iterator",KEYS="keys",VALUES="values",returnThis=function(){return this},_iterDefine=function(e,r,t,n,o,i,s){_iterCreate(t,r,n);function a(e){if(!BUGGY&&e in m)return m[e];switch(e){case KEYS:case VALUES:return function(){return new t(this,e)}}return function(){return new t(this,e)}}var c,u,l,p=r+" Iterator",f=o==VALUES,_=!1,m=e.prototype,d=m[ITERATOR]||m[FF_ITERATOR]||o&&m[o],g=d||a(o),h=o?f?a("entries"):g:void 0,y="Array"==r&&m.entries||d;if(y&&(l=_objectGpo(y.call(new e)))!==Object.prototype&&l.next&&_setToStringTag(l,p,!0),f&&d&&d.name!==VALUES&&(_=!0,g=function(){return d.call(this)}),s&&(BUGGY||_||!m[ITERATOR])&&_hide(m,ITERATOR,g),_iterators[r]=g,_iterators[p]=returnThis,o)if(c={values:f?g:a(VALUES),keys:i?g:a(KEYS),entries:h},s)for(u in c)u in m||_redefine(m,u,c[u]);else _export(_export.P+_export.F*(BUGGY||_),r,c);return c},$at=_stringAt(!0);_iterDefine(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,r=this._t,t=this._i;return t>=r.length?{value:void 0,done:!0}:(e=$at(r,t),this._i+=e.length,{value:e,done:!1})});var _iterStep=function(e,r){return{value:r,done:!!e}},es6_array_iterator=_iterDefine(Array,"Array",function(e,r){this._t=_toIobject(e),this._i=0,this._k=r},function(){var e=this._t,r=this._k,t=this._i++;return!e||t>=e.length?(this._t=void 0,_iterStep(1)):_iterStep(0,"keys"==r?t:"values"==r?e[t]:[t,e[t]])},"values");_iterators.Arguments=_iterators.Array;for(var TO_STRING_TAG=_wks("toStringTag"),DOMIterables="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),i=0;i<DOMIterables.length;i++){var NAME=DOMIterables[i],Collection=_global[NAME],proto=Collection&&Collection.prototype;proto&&!proto[TO_STRING_TAG]&&_hide(proto,TO_STRING_TAG,NAME),_iterators[NAME]=_iterators.Array}var defer,channel,port,TAG$1=_wks("toStringTag"),ARG="Arguments"==_cof(function(){return arguments}()),tryGet=function(e,r){try{return e[r]}catch(e){}},_classof=function(e){var r,t,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=tryGet(r=Object(e),TAG$1))?t:ARG?_cof(r):"Object"==(n=_cof(r))&&"function"==typeof r.callee?"Arguments":n},_anInstance=function(e,r,t,n){if(!(e instanceof r)||void 0!==n&&n in e)throw TypeError(t+": incorrect invocation!");return e},_iterCall=function(r,e,t,n){try{return n?e(_anObject(t)[0],t[1]):e(t)}catch(e){var o=r.return;throw void 0!==o&&_anObject(o.call(r)),e}},ITERATOR$1=_wks("iterator"),ArrayProto=Array.prototype,_isArrayIter=function(e){return void 0!==e&&(_iterators.Array===e||ArrayProto[ITERATOR$1]===e)},ITERATOR$2=_wks("iterator"),core_getIteratorMethod=_core.getIteratorMethod=function(e){if(null!=e)return e[ITERATOR$2]||e["@@iterator"]||_iterators[_classof(e)]},_forOf=createCommonjsModule(function(e){var f={},_={},r=e.exports=function(e,r,t,n,o){var i,s,a,c,u=o?function(){return e}:core_getIteratorMethod(e),l=_ctx(t,n,r?2:1),p=0;if("function"!=typeof u)throw TypeError(e+" is not iterable!");if(_isArrayIter(u)){for(i=_toLength(e.length);p<i;p++)if((c=r?l(_anObject(s=e[p])[0],s[1]):l(e[p]))===f||c===_)return c}else for(a=u.call(e);!(s=a.next()).done;)if((c=_iterCall(a,l,s.value,r))===f||c===_)return c};r.BREAK=f,r.RETURN=_}),SPECIES=_wks("species"),_speciesConstructor=function(e,r){var t,n=_anObject(e).constructor;return void 0===n||null==(t=_anObject(n)[SPECIES])?r:_aFunction(t)},_invoke=function(e,r,t){var n=void 0===t;switch(r.length){case 0:return n?e():e.call(t);case 1:return n?e(r[0]):e.call(t,r[0]);case 2:return n?e(r[0],r[1]):e.call(t,r[0],r[1]);case 3:return n?e(r[0],r[1],r[2]):e.call(t,r[0],r[1],r[2]);case 4:return n?e(r[0],r[1],r[2],r[3]):e.call(t,r[0],r[1],r[2],r[3])}return e.apply(t,r)},process=_global.process,setTask=_global.setImmediate,clearTask=_global.clearImmediate,MessageChannel=_global.MessageChannel,Dispatch=_global.Dispatch,counter=0,queue={},ONREADYSTATECHANGE="onreadystatechange",run=function(){var e=+this;if(queue.hasOwnProperty(e)){var r=queue[e];delete queue[e],r()}},listener=function(e){run.call(e.data)};setTask&&clearTask||(setTask=function(e){for(var r=[],t=1;t<arguments.length;)r.push(arguments[t++]);return queue[++counter]=function(){_invoke("function"==typeof e?e:Function(e),r)},defer(counter),counter},clearTask=function(e){delete queue[e]},"process"==_cof(process)?defer=function(e){process.nextTick(_ctx(run,e,1))}:Dispatch&&Dispatch.now?defer=function(e){Dispatch.now(_ctx(run,e,1))}:MessageChannel?(port=(channel=new MessageChannel).port2,channel.port1.onmessage=listener,defer=_ctx(port.postMessage,port,1)):_global.addEventListener&&"function"==typeof postMessage&&!_global.importScripts?(defer=function(e){_global.postMessage(e+"","*")},_global.addEventListener("message",listener,!1)):defer=ONREADYSTATECHANGE in _domCreate("script")?function(e){_html.appendChild(_domCreate("script"))[ONREADYSTATECHANGE]=function(){_html.removeChild(this),run.call(e)}}:function(e){setTimeout(_ctx(run,e,1),0)});var _task={set:setTask,clear:clearTask},macrotask=_task.set,Observer=_global.MutationObserver||_global.WebKitMutationObserver,process$1=_global.process,Promise$1=_global.Promise,isNode="process"==_cof(process$1),_microtask=function(){function e(){var e,r;for(isNode&&(e=process$1.domain)&&e.exit();t;){r=t.fn,t=t.next;try{r()}catch(e){throw t?o():n=void 0,e}}n=void 0,e&&e.enter()}var t,n,o;if(isNode)o=function(){process$1.nextTick(e)};else if(!Observer||_global.navigator&&_global.navigator.standalone)if(Promise$1&&Promise$1.resolve){var r=Promise$1.resolve(void 0);o=function(){r.then(e)}}else o=function(){macrotask.call(_global,e)};else{var i=!0,s=document.createTextNode("");new Observer(e).observe(s,{characterData:!0}),o=function(){s.data=i=!i}}return function(e){var r={fn:e,next:void 0};n&&(n.next=r),t||(t=r,o()),n=r}};function PromiseCapability(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=_aFunction(t),this.reject=_aFunction(n)}var f$1=function(e){return new PromiseCapability(e)},_newPromiseCapability={f:f$1},_perform=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}},navigator$1=_global.navigator,_userAgent=navigator$1&&navigator$1.userAgent||"",_promiseResolve=function(e,r){if(_anObject(e),_isObject(r)&&r.constructor===e)return r;var t=_newPromiseCapability.f(e);return(0,t.resolve)(r),t.promise},_redefineAll=function(e,r,t){for(var n in r)t&&e[n]?e[n]=r[n]:_hide(e,n,r[n]);return e},SPECIES$1=_wks("species"),_setSpecies=function(e){var r="function"==typeof _core[e]?_core[e]:_global[e];_descriptors&&r&&!r[SPECIES$1]&&_objectDp.f(r,SPECIES$1,{configurable:!0,get:function(){return this}})},ITERATOR$3=_wks("iterator"),SAFE_CLOSING=!1;try{var riter=[7][ITERATOR$3]();riter.return=function(){SAFE_CLOSING=!0},Array.from(riter,function(){throw 2})}catch(e){}var Internal,newGenericPromiseCapability,OwnPromiseCapability,Wrapper,_iterDetect=function(e,r){if(!r&&!SAFE_CLOSING)return!1;var t=!1;try{var n=[7],o=n[ITERATOR$3]();o.next=function(){return{done:t=!0}},n[ITERATOR$3]=function(){return o},e(n)}catch(e){}return t},task=_task.set,microtask=_microtask(),PROMISE="Promise",TypeError$1=_global.TypeError,process$2=_global.process,versions=process$2&&process$2.versions,v8=versions&&versions.v8||"",$Promise=_global[PROMISE],isNode$1="process"==_classof(process$2),empty=function(){},newPromiseCapability=newGenericPromiseCapability=_newPromiseCapability.f,USE_NATIVE=!!function(){try{var e=$Promise.resolve(1),r=(e.constructor={})[_wks("species")]=function(e){e(empty,empty)};return(isNode$1||"function"==typeof PromiseRejectionEvent)&&e.then(empty)instanceof r&&0!==v8.indexOf("6.6")&&-1===_userAgent.indexOf("Chrome/66")}catch(e){}}(),isThenable=function(e){var r;return!(!_isObject(e)||"function"!=typeof(r=e.then))&&r},notify=function(l,t){if(!l._n){l._n=!0;var n=l._c;microtask(function(){for(var c=l._v,u=1==l._s,e=0,r=function(e){var r,t,n,o=u?e.ok:e.fail,i=e.resolve,s=e.reject,a=e.domain;try{o?(u||(2==l._h&&onHandleUnhandled(l),l._h=1),!0===o?r=c:(a&&a.enter(),r=o(c),a&&(a.exit(),n=!0)),r===e.promise?s(TypeError$1("Promise-chain cycle")):(t=isThenable(r))?t.call(r,i,s):i(r)):s(c)}catch(e){a&&!n&&a.exit(),s(e)}};n.length>e;)r(n[e++]);l._c=[],l._n=!1,t&&!l._h&&onUnhandled(l)})}},onUnhandled=function(i){task.call(_global,function(){var e,r,t,n=i._v,o=isUnhandled(i);if(o&&(e=_perform(function(){isNode$1?process$2.emit("unhandledRejection",n,i):(r=_global.onunhandledrejection)?r({promise:i,reason:n}):(t=_global.console)&&t.error&&t.error("Unhandled promise rejection",n)}),i._h=isNode$1||isUnhandled(i)?2:1),i._a=void 0,o&&e.e)throw e.v})},isUnhandled=function(e){return 1!==e._h&&0===(e._a||e._c).length},onHandleUnhandled=function(r){task.call(_global,function(){var e;isNode$1?process$2.emit("rejectionHandled",r):(e=_global.onrejectionhandled)&&e({promise:r,reason:r._v})})},$reject=function(e){var r=this;r._d||(r._d=!0,(r=r._w||r)._v=e,r._s=2,r._a||(r._a=r._c.slice()),notify(r,!0))},$resolve=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw TypeError$1("Promise can't be resolved itself");(t=isThenable(e))?microtask(function(){var r={_w:n,_d:!1};try{t.call(e,_ctx($resolve,r,1),_ctx($reject,r,1))}catch(e){$reject.call(r,e)}}):(n._v=e,n._s=1,notify(n,!1))}catch(e){$reject.call({_w:n,_d:!1},e)}}};USE_NATIVE||($Promise=function(e){_anInstance(this,$Promise,PROMISE,"_h"),_aFunction(e),Internal.call(this);try{e(_ctx($resolve,this,1),_ctx($reject,this,1))}catch(e){$reject.call(this,e)}},(Internal=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=_redefineAll($Promise.prototype,{then:function(e,r){var t=newPromiseCapability(_speciesConstructor(this,$Promise));return t.ok="function"!=typeof e||e,t.fail="function"==typeof r&&r,t.domain=isNode$1?process$2.domain:void 0,this._c.push(t),this._a&&this._a.push(t),this._s&&notify(this,!1),t.promise},catch:function(e){return this.then(void 0,e)}}),OwnPromiseCapability=function(){var e=new Internal;this.promise=e,this.resolve=_ctx($resolve,e,1),this.reject=_ctx($reject,e,1)},_newPromiseCapability.f=newPromiseCapability=function(e){return e===$Promise||e===Wrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)}),_export(_export.G+_export.W+_export.F*!USE_NATIVE,{Promise:$Promise}),_setToStringTag($Promise,PROMISE),_setSpecies(PROMISE),Wrapper=_core[PROMISE],_export(_export.S+_export.F*!USE_NATIVE,PROMISE,{reject:function(e){var r=newPromiseCapability(this);return(0,r.reject)(e),r.promise}}),_export(_export.S+_export.F*_library,PROMISE,{resolve:function(e){return _promiseResolve(this===Wrapper?$Promise:this,e)}}),_export(_export.S+_export.F*!(USE_NATIVE&&_iterDetect(function(e){$Promise.all(e).catch(empty)})),PROMISE,{all:function(e){var s=this,r=newPromiseCapability(s),a=r.resolve,c=r.reject,t=_perform(function(){var n=[],o=0,i=1;_forOf(e,!1,function(e){var r=o++,t=!1;n.push(void 0),i++,s.resolve(e).then(function(e){t||(t=!0,n[r]=e,--i||a(n))},c)}),--i||a(n)});return t.e&&c(t.v),r.promise},race:function(e){var r=this,t=newPromiseCapability(r),n=t.reject,o=_perform(function(){_forOf(e,!1,function(e){r.resolve(e).then(t.resolve,n)})});return o.e&&n(o.v),t.promise}}),_export(_export.P+_export.R,"Promise",{finally:function(r){var t=_speciesConstructor(this,_core.Promise||_global.Promise),e="function"==typeof r;return this.then(e?function(e){return _promiseResolve(t,r()).then(function(){return e})}:r,e?function(e){return _promiseResolve(t,r()).then(function(){throw e})}:r)}}),_export(_export.S,"Promise",{try:function(e){var r=_newPromiseCapability.f(this),t=_perform(e);return(t.e?r.reject:r.resolve)(t.v),r.promise}});var promise=_core.Promise,promise$1=promise,_objectSap=function(e,r){var t=(_core.Object||{})[e]||Object[e],n={};n[e]=r(t),_export(_export.S+_export.F*_fails(function(){t(1)}),"Object",n)},hiddenKeys=_enumBugKeys.concat("length","prototype"),f$2=Object.getOwnPropertyNames||function(e){return _objectKeysInternal(e,hiddenKeys)},_objectGopn={f:f$2},gOPN=_objectGopn.f,toString$1={}.toString,windowNames="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],getWindowNames=function(e){try{return gOPN(e)}catch(e){return windowNames.slice()}},f$3=function(e){return windowNames&&"[object Window]"==toString$1.call(e)?getWindowNames(e):gOPN(_toIobject(e))},_objectGopnExt={f:f$3};_objectSap("getOwnPropertyNames",function(){return _objectGopnExt.f});var $Object=_core.Object,getOwnPropertyNames=function(e){return $Object.getOwnPropertyNames(e)},getOwnPropertyNames$1=getOwnPropertyNames,$JSON=_core.JSON||(_core.JSON={stringify:JSON.stringify}),stringify=function(e){return $JSON.stringify.apply($JSON,arguments)},stringify$1=stringify,__assign=function(){return(__assign=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e}).apply(this,arguments)};function __awaiter(i,s,a,c){return new(a=a||Promise)(function(e,r){function t(e){try{o(c.next(e))}catch(e){r(e)}}function n(e){try{o(c.throw(e))}catch(e){r(e)}}function o(r){r.done?e(r.value):new a(function(e){e(r.value)}).then(t,n)}o((c=c.apply(i,s||[])).next())})}function __generator(t,n){var o,i,s,e,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return e={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function r(r){return function(e){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,i&&(s=2&r[0]?i.return:r[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,r[1])).done)return s;switch(i=0,s&&(r=[2&r[0],s.value]),r[0]){case 0:case 1:s=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(s=0<(s=a.trys).length&&s[s.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!s||r[1]>s[0]&&r[1]<s[3])){a.label=r[1];break}if(6===r[0]&&a.label<s[1]){a.label=s[1],s=r;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(r);break}s[2]&&a.ops.pop(),a.trys.pop();continue}r=n.call(t,a)}catch(e){r=[6,e],i=0}finally{o=s=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,e])}}}function __spreadArrays(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;var n=Array(e),o=0;for(r=0;r<t;r++)for(var i=arguments[r],s=0,a=i.length;s<a;s++,o++)n[o]=i[s];return n}function notSupport(){return console.warn("Your browser not support the [Performance] API!"),!1}function notSupportPromisify(){return console.warn("Your browser not support the [Performance] API!"),promise$1.resolve(!1)}var ExceptionTypes,Observer$1=function(){function e(e,r){this.cache=[],this.observer=this.init(e,r)}return e.prototype.init=function(e,r){if(!e)return console.warn("Please pass a vaild HTMLElement"),null;var t;try{(t=new MutationObserver(r)).observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["src","href"]})}catch(e){return null}return t},e.prototype.cancel=function(){this.observer&&this.observer.disconnect()},e.prototype.setCache=function(e){this.cache.push(e)},e.prototype.getCache=function(){return this.cache},e.prototype.clearCache=function(){this.cache.splice(0)},e}();!function(e){e[e.js=0]="js",e[e.api=1]="api",e[e.source=2]="source"}(ExceptionTypes=ExceptionTypes||{});var jsErrors=[],apiErrors=[],sourceErrors=[],errorTag="fe-supervisor-error";function getErrors(e){var r;switch(e?ExceptionTypes[e]:void 0){case ExceptionTypes.js:r=jsErrors;break;case ExceptionTypes.api:r=apiErrors;break;case ExceptionTypes.source:r=sourceErrors;break;default:r={jsErrors:jsErrors,apiErrors:apiErrors,sourceErrors:sourceErrors}}return r}var HandleException={getErrors:getErrors,setErrors:function(e){var r=e.type;switch(ExceptionTypes[r]){case ExceptionTypes.js:var t=(new Error).stack;jsErrors.push(__assign(__assign({},e),{code_site:t}));break;case ExceptionTypes.api:apiErrors.push(e);break;case ExceptionTypes.source:sourceErrors.push(e)}},clearError:function(e){var r=e?ExceptionTypes[e]:void 0,t=!0;try{switch(r){case ExceptionTypes.js:jsErrors.splice(0);break;case ExceptionTypes.api:apiErrors.splice(0);break;case ExceptionTypes.source:sourceErrors.splice(0);break;default:jsErrors.splice(0),apiErrors.splice(0),sourceErrors.splice(0)}}catch(e){t=!1}return t},dupliError:function(a,c){return __awaiter(this,void 0,promise$1,function(){function r(){var r,t;return __generator(this,function(e){switch(e.label){case 0:r=0,e.label=1;case 1:return r<i?(t=o[r]).msg&&t.msg===c?(n=!0,[2]):[4]:[3,4];case 2:e.sent(),e.label=3;case 3:return r++,[3,1];case 4:return[2]}})}var n,o,i,t,s;return __generator(this,function(e){switch(e.label){case 0:return n=!1,o=HandleException.getErrors(a),i=o&&o.length||0,peelerJs.compatCheck("generator")?[4,peelerJs.timeslice(r)]:[3,2];case 1:return e.sent(),[2,n];case 2:for(t=0;t<i;t++)if((s=o[t]).msg&&s.msg===c){n=!0;break}return[2,n]}})})}};function catchError(r,t){return __awaiter(this,void 0,promise$1,function(){return __generator(this,function(e){switch(e.label){case 0:return r?[4,HandleException.dupliError(r,t)]:[2];case 1:return e.sent()||HandleException.setErrors({ts:peelerJs.getTs(),type:r,url:location.href,msg:t}),[2]}})})}var markCache=[],measureCache=[],marks=[],measures=[],getMemory="undefined"!=typeof window&&window.performance?function(){var e,r,t,n;try{var o=window.performance.memory||{};e=o.jsHeapSizeLimit||1,r=o.usedJSHeapSize||0,t=o.totalJSHeapSize||1,n=+Number.prototype.toFixed.call(r/t,3)}catch(e){catchError("js","[SV - getMemory]: "+stringify$1(e,getOwnPropertyNames$1(e)))}finally{return{limit:e,memory:n||"N/A",used:n?r:"N/A",total:n?t:"N/A"}}}:notSupport,getTiming="undefined"!=typeof window&&window.performance?function(){var e,r,t,n,o,i,s,a,c,u,l,p,f,_,m,d,g,h,y,v,b;e=r=t=n=o=i=s=a=c=u=l=p=f=_=m=d=g=h=y=v=b="N/A";try{var w=window.performance.timing||{};e=timingFilter(w.domLoading-w.navigationStart),r=timingFilter(w.domContentLoadedEventStart-w.navigationStart),t=timingFilter(w.responseEnd-w.navigationStart),n=timingFilter(w.fetchStart-w.navigationStart),o=timingFilter(w.redirectEnd-w.redirectStart),i=timingFilter(w.domainLookupEnd-w.domainLookupStart),s=timingFilter(w.connectEnd-w.connectStart),a=timingFilter(w.responseStart-w.requestStart),c=timingFilter(w.responseEnd-w.responseStart),u=timingFilter(w.responseEnd-w.requestStart),l=timingFilter(w.domLoading-w.responseEnd),p=timingFilter(w.domInteractive-w.domLoading),f=timingFilter(w.domContentLoadedEventStart-w.domLoading),_=timingFilter(w.domComplete-w.domLoading),m=timingFilter(w.domComplete-w.navigationStart),d=timingFilter(w.domContentLoadedEventStart-w.domInteractive),g=timingFilter(w.domContentLoadedEventEnd-w.domInteractive),h=timingFilter(w.domContentLoadedEventEnd-w.navigationStart),y=timingFilter(w.domContentLoadedEventStart-w.domLoading),v=timingFilter(w.loadEventEnd-w.domLoading),b=timingFilter(w.loadEventEnd-w.navigationStart)}catch(e){catchError("js","[SV - getTiming]: "+stringify$1(e,getOwnPropertyNames$1(e)))}finally{return{wscreen:e,fscreen:r,network:t,network_prev:n,network_redirect:o,network_dns:i,network_tcp:s,network_request:a,network_response:c,network_interact:u,dom_loading:l,dom_interact:p,dom_ready:f,dom_load:_,dom_complete:m,js_ready:d,js_load:g,js_complete:h,render_ready:y,render_load:v,total:b}}}:notSupport,getSource="undefined"!=typeof window&&window.performance?function(C){return __awaiter(this,void 0,promise$1,function(){function n(e){var r=e.entryType||"",t=e.initiatorType||"",n={name:e.name,duration:+Number.prototype.toFixed.call(e.duration,2),type:t};if("xmlhttprequest"===t||"fetchrequest"===t){if(S)if(peelerJs.isType("string")(S)){if(n.name===S)return}else if(peelerJs.isType("array")(S))for(var o=S&&S.length||0,i=0;i<o;i++)if(n.name===S[i])return;randomRatio(y)&&p.push(n),j<=n.duration&&f.push(n),peelerJs.isType("string")(b)?n.name===b&&_.push(n):peelerJs.isType("array")(b)&&b.some(function(e){return e===n.name&&(_.push(n),!0)})}else if("script"===t||"css"===t||"img"===t||"link"===t||"css"===t){if(P)if(peelerJs.isType("string")(P)){if(n.name===P)return}else if(peelerJs.isType("array")(P))for(var s=P&&P.length||0,a=0;a<s;a++)if(n.name===P[a])return;if(randomRatio(v)&&m.push(n),j<=n.duration&&d.push(n),peelerJs.isType("string")(w))t===w&&g.push(n);else if(peelerJs.isType("array")(w))w.some(function(e){return e===t&&(g.push(n),!0)});else if(peelerJs.isType("object")(w))for(var c in w)c===t&&w[c].some(function(e){return e===n.name&&(g.push(n),!0)})}else if(O&&"paint"===r){var u=e.startTime,l="";if("first-paint"===n.name||"first-contentful-paint"===n.name){switch(n.name){case"first-paint":l="FP";break;case"first-contentful-paint":l="FCP"}h.push(__assign(__assign({},n),{type:l,startTime:u}))}}}function r(){var r,t;return __generator(this,function(e){switch(e.label){case 0:r=$.length,t=0,e.label=1;case 1:return t<r?(n($[t]),[4]):[3,4];case 2:e.sent(),e.label=3;case 3:return t++,[3,1];case 4:return[2]}})}var p,f,_,m,d,g,h,t,o,y,i,v,s,b,a,w,c,u,l,E,T,O,S,P,x,$,j,k,A,I;return __generator(this,function(e){switch(e.label){case 0:p=[],f=[],_=[],m=[],d=[],g=[],h=[],e.label=1;case 1:return e.trys.push([1,5,6,7]),o=(t=C||{}).apiRatio,y=void 0===o?.1:o,i=t.sourceRatio,v=void 0===i?.1:i,s=t.apis,b=void 0===s?"":s,a=t.sources,w=void 0===a?"":a,c=t.timeout,u=void 0===c?2e3:c,l=t.whitelist,E=void 0===l?{}:l,T=t.paintTiming,O=void 0!==T&&T,S=E.api||"",P=E.source||"",x=window.performance,$=x.getEntries&&x.getEntries()||[],j=u,peelerJs.compatCheck("generator")?[4,peelerJs.timeslice(r)]:[3,3];case 2:return e.sent(),[3,4];case 3:for(k=$.length,A=0;A<k;A++)n($[A]);e.label=4;case 4:return[3,7];case 5:return I=e.sent(),catchError("js","[SV - getSource]: "+stringify$1(I,getOwnPropertyNames$1(I))),[3,7];case 6:return[2,{api_random:p,api_timeout:f,api_appoint:_,source_random:m,source_timeout:d,source_appoint:g,others:h}];case 7:return[2]}})})}:notSupportPromisify,getExecTiming="undefined"!=typeof window&&window.performance?function(){return __awaiter(this,void 0,promise$1,function(){function n(e){"measure"===e.entryType&&t.push({name:e.name,duration:+Number.prototype.toFixed.call(e.duration,3)})}function r(){var r,t;return __generator(this,function(e){switch(e.label){case 0:for(r=i&&i.length||0,t=0;t<r;t++)n(i[t]);return[4];case 1:return e.sent(),[2]}})}var t,o,i,s,a,c;return __generator(this,function(e){switch(e.label){case 0:t=[],e.label=1;case 1:return e.trys.push([1,5,6,7]),o=window.performance,i=[],i=o.mark&&o.measure?o.getEntriesByType&&o.getEntriesByType("measure")||o.getEntries&&o.getEntries()||[]:measureCache,peelerJs.compatCheck("generator")?[4,peelerJs.timeslice(r)]:[3,3];case 2:return e.sent(),[3,4];case 3:for(s=i&&i.length||0,a=0;a<s;a++)n(i[a]);e.label=4;case 4:return[3,7];case 5:return c=e.sent(),catchError("js","[SV - getExecTiming]: "+stringify$1(c,getOwnPropertyNames$1(c))),[3,7];case 6:return[2,{exec:t}];case 7:return[2]}})})}:notSupportPromisify,getPerformanceData="undefined"!=typeof window&&window.performance?function(a){return __awaiter(this,void 0,promise$1,function(){var r,t,n,o,i,s;return __generator(this,function(e){switch(e.label){case 0:return e.trys.push([0,3,4,5]),i=getMemory(),r=i&&i.memory,t=getTiming()||{},[4,getSource(a).then(function(e){return e})];case 1:return n=e.sent(),[4,getExecTiming().then(function(e){return e})];case 2:return o=e.sent(),[3,5];case 3:return s=e.sent(),catchError("js","[SV - getPerformanceData]: "+stringify$1(s,getOwnPropertyNames$1(s))),[3,5];case 4:return[2,__assign(__assign(__assign({memory:r||"N/A"},t),n),o)];case 5:return[2]}})})}:notSupportPromisify,mark="undefined"!=typeof window&&window.performance?function(e){var r=!0;try{var t=window.performance,n=e+"_start",o=e+"_end";~marks.indexOf(e)?~measures.indexOf(e)?(r=!1,console.warn("Cannot repeat tag the mark: "+e)):(t.mark&&t.measure?(t.mark(o),t.measure(""+e,n,o)):(compatibleMark(o),compatibleMeasure(""+e,n,o)),measures.push(e)):(t.mark?t.mark(n):compatibleMark(n),marks.push(e))}catch(e){r=!1,catchError("js","[SV - mark]: "+stringify$1(e,getOwnPropertyNames$1(e)))}finally{return r}}:notSupport,clearPerformance="undefined"!=typeof window&&window.performance?function(e){try{var r=!e||"source"===e||"all"===e,t=!e||"mark"===e||"all"===e,n=!e||"measure"===e||"all"===e,o=window.performance;return t&&(o.clearMarks&&o.clearMarks(),marks.splice(0),markCache.splice(0)),n&&(o.clearMeasures&&o.clearMeasures(),measures.splice(0),measureCache.splice(0)),r&&o.clearResourceTimings&&o.clearResourceTimings(),!0}catch(e){return catchError("js","[SV - clearPerformance]: "+stringify$1(e,getOwnPropertyNames$1(e))),!1}}:notSupport,observeSource="undefined"!=typeof window&&window.performance?function(e,f,r){var t=r||{},n=t.sourceType,l=void 0===n?"img":n,o=t.timeout,_=void 0===o?2e3:o,i=t.whitelist,m=void 0===i?{}:i;function d(c,u){if(peelerJs.compatCheck("generator"))return function(){var r,t,n,o,i,s,a;return __generator(this,function(e){switch(e.label){case 0:e.trys.push([0,7,,8]),r=c&&c.length||0,t=0,e.label=1;case 1:return t<r?(n=c[t],o=n.nodeName.toLowerCase(),~l.indexOf(o)&&(i=n.src||n.href||"",u[o]||(u[o]=[]),i&&u[o].push(i)),0<((s=n.children)&&s.length||0)?[4,peelerJs.timeslice(d(s,u))]:[3,3]):[3,6];case 2:e.sent(),e.label=3;case 3:return[4];case 4:e.sent(),e.label=5;case 5:return t++,[3,1];case 6:return[3,8];case 7:return a=e.sent(),catchError("js","[SV - observeSource_iterationDOM]: "+stringify$1(a,getOwnPropertyNames$1(a))),[3,8];case 8:return[2]}})};!function e(r,t){for(var n=r&&r.length||0,o=0;o<n;o++){var i=r[o],s=i.nodeName.toLowerCase();if(~l.indexOf(s)){var a=i.src||i.href||"";t[s]||(t[s]=[]),a&&t[s].push(a)}var c=i.children;0<(c&&c.length||0)&&e(c,t)}}(c,u)}return l=peelerJs.isType("string")(l)?[l.toLowerCase()]:__spreadArrays(l.map(function(e){return e.toLowerCase()})),function(a,c){__awaiter(this,void 0,void 0,function(){var r,t,n,o,i,s;return __generator(this,function(e){switch(e.label){case 0:r=[],e.label=1;case 1:return e.trys.push([1,5,6,7]),t=a.nodeName.toLowerCase(),n={},~l.indexOf(t)&&(o=a.src||a.href||"",n[t]||(n[t]=[]),o&&n[t].push(o)),(i=a.children)&&0<i.length?[4,peelerJs.timeslice(d(i,n))]:[3,3];case 2:e.sent(),e.label=3;case 3:return[4,getSource({apiRatio:0,sourceRatio:0,sources:n,whitelist:m}).then(function(e){return e.source_appoint})];case 4:return r=e.sent(),!c&&f&&f(r),[3,7];case 5:return s=e.sent(),catchError("js","[SV - observeSource_getSourceByDom]: "+stringify$1(s,getOwnPropertyNames$1(s))),[3,7];case 6:return[2,r];case 7:return[2]}})})}(e),new Observer$1(e,function(p){return __awaiter(this,void 0,void 0,function(){var i,s,r,a,t,n,o,c,u,l;return __generator(this,function(e){switch(e.label){case 0:i=0,s=200,r=p&&p.length||0,a={},t=0,e.label=1;case 1:if(!(t<r))return[3,6];switch(n=p[t],n.type){case"childList":return[3,2];case"attributes":return[3,4]}return[3,5];case 2:return o=n.addedNodes,[4,peelerJs.timeslice(d(o,a))];case 3:return e.sent(),[3,5];case 4:return c=n.attributeName,u=n.target,l=u.tagName&&u.tagName.toLowerCase()||"img",c&&(a[l]||(a[l]=[]),a[l].push(u[c])),[3,5];case 5:return t++,[3,1];case 6:return function o(){setTimeout(function(){return __awaiter(this,void 0,void 0,function(){var r,t,n;return __generator(this,function(e){switch(e.label){case 0:return[4,getSource({apiRatio:0,sourceRatio:0,sources:a,whitelist:m}).then(function(e){return e.source_appoint})];case 1:for(n in r=e.sent(),t=0,a)t+=a[n].length;return r&&r.length===t||_<=i?[2,f&&f(r)]:(i+=s,o(),[2])}})})},s)}(),[2]}})})})}:notSupport;function compatibleMark(e){var r=+(window.performance.now&&""+window.performance.now()||peelerJs.getTs());markCache.push({tag:e,ts:r})}function compatibleMeasure(e,r,t){for(var n=markCache&&markCache.length||0,o=0,i=0,s=0;s<n;s++){var a=markCache[s];a.tag===r&&(o=a.ts),a.tag===t&&(i=a.ts)}measureCache.push({entryType:"measure",name:e,duration:Math.abs(i-o)})}function timingFilter(e){return null==e||isNaN(e)?"N/A":0<e?e:0}function randomRatio(e){return 0!==e&&Math.random()<=e}var SV=function(){function e(e){this.config=e}return e.prototype.updateConfig=function(e){this.config=__assign(__assign({},this.config),e)},e.prototype.getMemory=function(){return getMemory()},e.prototype.getTiming=function(){return getTiming()},e.prototype.getSource=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return[4,getSource(this.config)];case 1:return[2,e.sent()]}})})},e.prototype.getExecTiming=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return[4,getExecTiming()];case 1:return[2,e.sent()]}})})},e.prototype.getPerformanceData=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,getPerformanceData(this.config)]})})},e.prototype.clearPerformance=function(e){return clearPerformance(e)},e.prototype.observeSource=function(e,r,t){return this.config&&this.config.timeout&&(t=__assign({timeout:this.config.timeout},t)),observeSource(e,r,t)},e}(),getEnvInfo="undefined"==typeof window?function(){return console.warn("Please call in browser environment"),!1}:function(){var e=navigator.userAgent,r=window.screen,t=location.href,n=document.referrer,o={ts:peelerJs.getTs(),os:"",browser:"",screen_size:(r.width||0)+"x"+(r.height||0),page_url:t,referer:n,device:"ontouchstart"in window?"mobile":"pc",ua:e},i=peelerJs.getUA(e),s=i.isMobile,a=i.isAndroid,c=i.isIOS,u=i.isWindows,l=i.isMac,p=i.isWeixin,f=i.isSinaWeibo,_=i.isQQWeibo,m=i.isFacebook,d=i.isTwitter,g=i.isInstagram,h=i.isChrome,y=i.isFirefox,v=i.isGecko,b=i.isIE,w=i.isEdge,E=i.isOpera,T=i.isSafari,O=i.is360se,S=i.isQQ,P=i.isUCBrowser,x=i.isBaiduBrowser,$=i.isSougouBrowser,j=i.isLiebaoBrowser,k=i.isWebKit;return s?a?o.os="android":c&&(o.os="ios"):u?o.os="windows":l&&(o.os="mac"),p?o.browser="weixin":f?o.browser="weibo_sina":_?o.browser="weibo_qq":m?o.browser="facebook":d?o.browser="twitter":g?o.browser="instagram":h?o.browser="chrome":y||v?o.browser="firefox":b?o.browser="ie":w?o.browser="edge":E?o.browser="opera":T?o.browser="safari":O?o.browser="360":S?o.browser="qq":P?o.browser="uc":x?o.browser="baidu":$?o.browser="sougou":j?o.browser="liebao":k&&(o.browser="webkit"),o},_createProperty=function(e,r,t){r in e?_objectDp.f(e,r,_propertyDesc(0,t)):e[r]=t};_export(_export.S+_export.F*!_iterDetect(function(e){Array.from(e)}),"Array",{from:function(e,r,t){var n,o,i,s,a=_toObject(e),c="function"==typeof this?this:Array,u=arguments.length,l=1<u?r:void 0,p=void 0!==l,f=0,_=core_getIteratorMethod(a);if(p&&(l=_ctx(l,2<u?t:void 0,2)),null==_||c==Array&&_isArrayIter(_))for(o=new c(n=_toLength(a.length));f<n;f++)_createProperty(o,f,p?l(a[f],f):a[f]);else for(s=_.call(a),o=new c;!(i=s.next()).done;f++)_createProperty(o,f,p?_iterCall(s,l,[i.value,f],!0):i.value);return o.length=f,o}});var from_1=_core.Array.from,from_1$1=from_1;function getError(e){return e?HandleException.getErrors(e):HandleException.getErrors()}function setError(e){HandleException.setErrors(e)}function clearError(e){return HandleException.clearError(e)}function observeError(e,l,r){return new Observer$1(e,function(e){var u=(r&&"string"==typeof r?[r]:r)||["img"];!function n(e){try{for(var r=e&&e.length||0,t=0;t<r;t++){var o=e[t].addedNodes;if(o)for(var i=o.length||0,s=0;s<i;s++)c(o[s]);else c(e[t])}}catch(e){var a="[SV - observeError_handleError]: "+stringify$1(e,getOwnPropertyNames$1(e));catchError("js",a)}function c(o){try{var e=o.nodeName,i=e.toLowerCase();e:if(~u.indexOf(i)){if(o.getAttribute){if(o.getAttribute(errorTag))break e;o.setAttribute(errorTag,"true")}peelerJs.addListener("error",function(e){var r=e.target,t=r&&(r.href||r.src)||location.href,n={ts:peelerJs.getTs(),type:"source",sourceType:i,url:t,msg:stringify$1(e,getOwnPropertyNames$1(e))};HandleException.setErrors(n),l&&l(o,e)},o,{passive:!0})}var r=o.children;if(r&&0<r.length)return n(r)}catch(e){var t="[SV - observeError_bindError]: "+stringify$1(e,getOwnPropertyNames$1(e));catchError("js",t)}}}(e)})}function transArray(e){return from_1$1?from_1$1(e):Array.prototype.slice.call(e)}function handleError(e,t){e&&!e.getAttribute(errorTag)&&(e.setAttribute(errorTag,"true"),peelerJs.addListener("error",function(e){var r=e.target.src||e.target.href;HandleException.setErrors({ts:peelerJs.getTs(),type:"source",sourceType:t,url:r,msg:stringify$1(e,getOwnPropertyNames$1(e))})},e))}function makeTrackInfo(e,r){try{if("pv"===e)peelerJs.storage.get("uuid","cookie")||(e="uv",peelerJs.storage.set("uuid",peelerJs.uuid(),"cookie",{expires:86400}))}catch(e){catchError("js","[SV - makeTrackInfo]: "+stringify$1(e,getOwnPropertyNames$1(e)))}finally{return{ts:peelerJs.getTs(),type:e,info:r}}}"undefined"!=typeof window&&(peelerJs.addListener("error",function(e){var r=e.filename,t=e.message,n=e.error;HandleException.setErrors({ts:peelerJs.getTs(),type:"js",url:r||"",msg:t,error:n})},window,{passive:!0}),peelerJs.addListener("DOMContentLoaded",function(){for(var e=transArray(document.getElementsByTagName("img")),r=transArray(document.getElementsByTagName("link")),t=transArray(document.getElementsByTagName("script")),n=e&&e.length||0,o=r&&r.length||0,i=t&&t.length||0,s=Math.max(n,o,i),a=0;a<s;a++)e[a]&&handleError(e[a],"img"),r[a]&&handleError(r[a],"link"),t[a]&&handleError(t[a],"script")},window));var Supervisor={getPerformanceData:getPerformanceData,getMemory:getMemory,getTiming:getTiming,getSource:getSource,getExecTiming:getExecTiming,mark:mark,clearPerformance:clearPerformance,observeSource:observeSource,getEnvInfo:getEnvInfo,getError:getError,setError:setError,clearError:clearError,observeError:observeError,makeTrackInfo:makeTrackInfo,SV:SV};exports.SV=SV,exports.clearError=clearError,exports.clearPerformance=clearPerformance,exports.default=Supervisor,exports.getEnvInfo=getEnvInfo,exports.getError=getError,exports.getExecTiming=getExecTiming,exports.getMemory=getMemory,exports.getPerformanceData=getPerformanceData,exports.getSource=getSource,exports.getTiming=getTiming,exports.makeTrackInfo=makeTrackInfo,exports.mark=mark,exports.observeError=observeError,exports.observeSource=observeSource,exports.setError=setError;