dotfiles/.config/spicetify/Extracted/Themed/hub/hub.bundle.js

108 lines
3.2 MiB
JavaScript
Raw Normal View History

2021-03-28 17:11:08 +02:00
(()=>{var __webpack_modules__={27358:e=>{"use strict";e.exports={version:"1.1.55"}},93481:e=>{"use strict";e.exports=JSON.parse('{"desktop.zlink.glue.more":"المزيد","desktop.zlink.glue.save":"حفظ","desktop.zlink.glue.save_to_your_library":"احفظها في مكتبتك الموسيقية","desktop.zlink.glue.remove_from_your_library":"احذف من مكتبتك الموسيقية","desktop.zlink.glue.save_to_your_favorite_songs":"حفظ في الإعجابات","desktop.zlink.glue.remove_from_your_favorite_songs":"حذف من الإعجابات","desktop.zlink.glue.saved":"تمّ الحفظ","desktop.zlink.glue.remove":"احذف","desktop.zlink.glue.follow":"تابع","desktop.zlink.glue.following":"متابع","desktop.zlink.glue.unfollow":"ألغي المتابعة","desktop.zlink.glue.play":"استمع","desktop.zlink.glue.pause":"إيقاف مؤقّت","desktop.zlink.glue.playCount":{"zero":"{0} استماع","one":"{0} استماع","two":"{0} استماعان","few":"{0} استماعات","many":"{0} استماعاً","other":"{0} استماع"},"desktop.zlink.glue.various-artists-capitalized":"فنانون متنوعون","desktop.zlink.glue.previous":"السابق","desktop.zlink.glue.next":"التالي","desktop.zlink.glue.press_shift_enter_to_play":"اضغط Shift +Enter للاستماع","desktop.zlink.glue.album":"الألبوم","desktop.zlink.glue.artist":"الفنان","desktop.zlink.glue.date_added":"تاريخ الإضافة","desktop.zlink.glue.duration":"المدة الزمنية","desktop.zlink.glue.popularity":"رائجة","desktop.zlink.glue.title":"الأغنية","desktop.zlink.song.title":"الأغنية","desktop.zlink.song.by":"من","desktop.zlink.song.various-artists":"فنانون متنوعون","desktop.zlink.song.fromAlbum":"من الألبوم","desktop.zlink.song.error":"حدث خطأ ما خلال إحضار معلومات عن هذه الأغنية","desktop.zlink.song.x-more":{"zero":"& لا توجد أغانٍ إضافية","one":"& أغنية واحدة إضافية","two":"& أغنيتين إضافيتين","few":"& {0} أغانٍ إضافية","many":"& {0} أغنيةً إضافية","other":"& {0} أغنية إضافية"},"desktop.zlink.search.app_name":"ابحث","desktop.zlink.home.app_name":"الصفحة الرئيسية","desktop.zlink.browse.app_name":"تصفح","desktop.zlink.discover.app_name":"اكتشف","desktop.zlink.activity.app_name":"النشاط","desktop.zlink.recently_played.app_name":"أغاني استمعت إليها مؤخراً","desktop.zlink.radio.app_name":"راديو","desktop.zlink.settings.app_name":"الإعدادات","desktop.zlink.experiments.app_name":"خصائص تجريبية","desktop.zlink.experiments.feedback_label":"تقديم الآراء:","desktop.zlink.experiments.link_label":"رابط:","desktop.zlink.experiments.description":"الخصائص التجريبية هي مشاريع غير مُعدّة للاستفادة منها تماماً وقت الذروة. قد تتوقّف فجأة (أو تختفي) في أيّ وقت. أخبرنا برأيك على Twitter:<a href=\\"{0}\\">#SpotifyExperiments</a>","desktop.zlink.profile.app_name":"الصفحة الشخصية","desktop.zlink.concerts.app_name":"الحفلات الموسيقية","desktop.zlink.friends_mix.app_name":"ميكس الأصدقاء","desktop.zlink.profile.private_session":"جلسة خاصة","desktop.zlink.profile.update_prepared":"التحديث متوفر. أعد البدء الآن.","desktop.zlink.profile.upgrade":"قم بالترقية","desktop.zlink.profile.upgrade_a11y":"قم بالترقية إلى Spotify Premium","desktop.zlink.profile.upgrade_account":"قم بترقية حسابك","desktop.zlink.profile.upgrade_tooltip":"قم بالترقية إلى حساب Premium","desktop.zlink.profile.account":"حساب","desktop.zlink.profile.logout":"سجّل الخروج","desktop.zlink.profile.enabled":"تمّ تفعيله","desktop.zlink.profile.menu_label":"القائمة","desktop.zlink.profile.switch":"بدّل المستخدم","desktop.zlink.profil
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/const o=n(79742),i=n(80645),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50;const r=2147483647;function s(e){if(e>r)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return p(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|f(e,t);let o=s(n);const i=o.write(e,t);i!==n&&(o=o.slice(0,i));return o}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return k(t.buffer,t.byteOffset,t.byteLength)}return c(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return k(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return k(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return l.from(o,t,n);const i=function(e){if(l.isBuffer(e)){const t=0|m(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||$(e.length)?s(0):c(e);if("Buffer"===e.type&&Array.isArray(e.data))return c(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function p(e){return d(e),s(e<0?0:0|m(e))}function c(e){const t=e.length<0?0:0|m(e.length),n=s(t);for(let o=0;o<t;o+=1)n[o]=255&e[o];return n}function k(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let o;return o=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(o,l.prototype),o}function m(e){if(e>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function f(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(e).length;default:if(i)return o?-1:K(e).length;t=(""+t).toLowerCase(),i=!0}}function h(e,t,n){let o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function y(e,t,n){const o=e[t];e[t]=e[n],e[n]=o}function g(e,t,n
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
t.read=function(e,t,n,o,i){var a,r,s=8*i-o-1,l=(1<<s)-1,u=l>>1,d=-7,p=n?i-1:0,c=n?-1:1,k=e[t+p];for(p+=c,a=k&(1<<-d)-1,k>>=-d,d+=s;d>0;a=256*a+e[t+p],p+=c,d-=8);for(r=a&(1<<-d)-1,a>>=-d,d+=o;d>0;r=256*r+e[t+p],p+=c,d-=8);if(0===a)a=1-u;else{if(a===l)return r?NaN:1/0*(k?-1:1);r+=Math.pow(2,o),a-=u}return(k?-1:1)*r*Math.pow(2,a-o)},t.write=function(e,t,n,o,i,a){var r,s,l,u=8*a-i-1,d=(1<<u)-1,p=d>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,k=o?0:a-1,m=o?1:-1,f=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,r=d):(r=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-r))<1&&(r--,l*=2),(t+=r+p>=1?c/l:c*Math.pow(2,1-p))*l>=2&&(r++,l/=2),r+p>=d?(s=0,r=d):r+p>=1?(s=(t*l-1)*Math.pow(2,i),r+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,i),r=0));i>=8;e[n+k]=255&s,k+=m,s/=256,i-=8);for(r=r<<i|s,u+=i;u>0;e[n+k]=255&r,k+=m,r/=256,u-=8);e[n+k-m]|=128*f}},61202:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});const o=200,i=0,a="linear",r=!0;class s{constructor(e={}){this._curve=e.curve||a,this._baseTime=e.baseTime||o,this._ceiling=e.ceiling||i,this._jitter="jitter"in e?!!e.jitter:r}getTime(e){let t;switch(this._curve){case"static":t=1;break;case"logarithmic":t=Math.log(e);break;case"exponential":t=Math.pow(Math.E,e);break;case"linear":default:t=e+1}let n=Math.min(4294967296,Math.floor(t*this._baseTime));return this._ceiling&&(n=Math.min(n,this._ceiling)),this._jitter?function(e){const t=e/5;return Math.floor(e-t/2+Math.random()*t)}(n):n}}},6759:(e,t,n)=>{"use strict";n.d(t,{V:()=>s});var o=n(61202);function i(){let e=()=>{},t=()=>{};return{promise:new Promise(((n,o)=>{e=n,t=o})),resolve:e,reject:t}}function a(){return Promise.reject(new Error("Backoff already consumed"))}const r={backoffInitial:!1,baseTime:200,ceiling:0,curve:"linear",maxDuration:1/0,maxRetries:1/0,maxTime:1/0,retryPredicate:()=>!0};class s{constructor(e,t){this._resolver=i(),this._ts=0,this._callCount=0,this._tickInterval=0,this._isRunning=!1;const n=t||{};this._fn=e,this._maxDuration=n.maxDuration||r.maxDuration,this._maxRetries="maxRetries"in n?n.maxRetries:r.maxRetries,this._maxTime=n.maxTime||r.maxTime,this._retryPredicate=n.retryPredicate||r.retryPredicate,this._backoffInitial=!!n.backoffInitial,this._counter=new o.A({curve:n.curve,baseTime:n.baseTime,ceiling:n.ceiling}),this._backoffInitial&&(this._maxRetries+=1)}static init(e,t={}){return new s(e,t).start()}_destroy(){this._fn=a,this._resolver=i()}_failure(e){if(e&&"retryAfter"in e)this._retryAfter(e);else{const t=this._counter.getTime(this._callCount);this._shouldRetry(t,e)?(this._callCount++,this._tickInterval=setTimeout((()=>this._tick()),t)):(this._resolver.reject(e),this._destroy())}}_retryAfter(e){this._callCount++,this._tickInterval=setTimeout((()=>this._tick()),e.retryAfter)}_success(...e){this._resolver.resolve(...e),this._destroy()}_shouldRetry(e,t){const n=Date.now()-this._ts+e;return this._callCount<this._maxRetries&&e<this._maxTime&&n<this._maxDuration&&this._retryPredicate(t)}_tick(){this._fn().then(((...e)=>this._success(...e))).catch((e=>this._failure(e)))}getResolver(){return this._resolver.promise}start(e){return!this._fn&&e&&(this._fn=e),this._isRunning||(this._ts=Date.now(),this._isRunning=!0,this._backoffInitial?(this._callCount=1,this._tickInterval=setTimeout((()=>this._tick()),this._counter.getTime(0))):this._tick()),this._resolver.promise}stop(){clearTimeout(this._tickInterval),this._isRunning=!1,this._destroy()}}},60392:(e,t,n)=>{"use strict";n.d(t,{P:()=>i});var o,i={};n.r(i),n.d(i,{disable:()=>h,disableAll:()=>b,enable:()=>f,enableAll:()=>g,forTag:()=>_,intercept:()=>c,list:()=>m,remove:()=>v,setLevel:()=>y,unintercept:()=>k}),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.DEBUG=2]="DEBUG",e[e.INFO=4]="INFO",e[e.WARN=8]="WARN",e[e.ERROR=16]="ERROR"}(o||(o={}));const a="true"==="{}".DEBUG?class{constructor(e,t="",n=(()=>!1)){this._tagParts=[],this._tagText="",this._enabled=!0,this._level=o.NONE,this.tag="",this.description="",this._predicate=function(){return!1},this.tag=e,this.description=t,this._predicate=n,this._tagParts=e.split("."),this._tagText=`[${e}]`}_print(e,t,n){
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function s(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var l,u,d=function(){return(d=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function p(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,a=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)r.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return r}function k(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(c(arguments[t]));return e}!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(l||(l={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}}(l||(l={})),function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(u||(u={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(u||(u={}));var m=function(){return(m=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,a=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)r.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return r}function h(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}function y(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return E(e,Error)}}function g(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function b(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function _(e){return"[object String]"===Object.prototype.toString.call(e)}function v(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function z(e){return"[object Object]"===Object.prototype.toString.call(e)}function w(e){return"undefined"!=typeof Event&&E(e,Event)}function S(e){return"undefined"!=typeof Element&&E(e,Element)}function x(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function E(e,t){try{return e instanceof t}catch(e){return!1}}var P,T=n(7790);!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(P||(P={}));var A=function(){function e(e){var t=this;this._state=P.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(P.RESOLVED,e)},this._reject=function(e){t._setResult(P.REJECTED,e)},this._setResult=function(e,n){t._state===P.PENDING&&(x(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==P.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===P.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===P.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((func
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var V=function(e,t){return(V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};var H=function(){return(H=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function G(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function K(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,a=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)r.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return r}function W(e){try{for(var t=e,n=[],o=0,i=0,a=" > ".length,r=void 0;t&&o++<5&&!("html"===(r=J(t))||o>1&&i+n.length*a+r.length>=80);)n.push(r),i+=r.length,t=t.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function J(e){var t,n,o,i,a,r=e,s=[];if(!r||!r.tagName)return"";if(s.push(r.tagName.toLowerCase()),r.id&&s.push("#"+r.id),(t=r.className)&&_(t))for(n=t.split(/\s+/),a=0;a<n.length;a++)s.push("."+n[a]);var l=["type","name","title","alt"];for(a=0;a<l.length;a++)o=l[a],(i=r.getAttribute(o))&&s.push("["+o+'="'+i+'"]');return s.join("")}var Y=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t<this._inner.length;t++){if(this._inner[t]===e)return!0}return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e){this._inner.splice(t,1);break}},e}(),$="<anonymous>";function Q(e){try{return e&&"function"==typeof e&&e.name||$}catch(e){return $}}function X(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function Z(e,t){if(!Array.isArray(e))return"";for(var n=[],o=0;o<e.length;o++){var i=e[o];try{n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function ee(e,t){return!!_(e)&&(function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}function te(e,t,n){if(t in e){var o=e[t],i=n(o);if("function"==typeof i)try{i.prototype=i.prototype||{},Object.defineProperties(i,{__sentry_original__:{enumerable:!1,value:o}})}catch(e){}e[t]=i}}function ne(e){if(y(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}if(w(e)){var i=e,a={};a.type=i.type;try{a.target=S(i.target)?W(i.target):Object.prototype.toString.call(i.target)}catch(e){a.target="<unknown>"}try{a.currentTarget=S(i.currentTarget)?W(i.currentTarget):Object.prototype.toString.call(i.currentTarget)}catch(e){a.currentTarget="<unknown>"}for(var o in"undefined"!=typeof CustomEvent&&E(e,CustomEvent)&&(a.detail=i.detail),i)Object.prototype.hasOwnProperty.call(i,o)&&(a[o]=i);return a}return e}function oe(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function ie(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var o=se(e,t);return oe(o)>n?ie(e,t-1,n):o}function ae(e,t){return"domain"===t&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":void 0!==n.g&&e===n.g?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":function(e){return z(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}(e)?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+Q(e)+"]":"symbol"==typeof e?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":e}function re(e,t,n,o){if(void 0===n&&(n=1/0),void 0===o&&(o=new Y),0===n)return function(e){var t=Obj
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var o=n(95766),i=n(62333),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50;var r=2147483647;function s(e){if(e>r)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return p(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|m(e,t),o=s(n),i=o.write(e,t);i!==n&&(o=o.slice(0,i));return o}(e,t);if(ArrayBuffer.isView(e))return c(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(F(e,ArrayBuffer)||e&&F(e.buffer,ArrayBuffer))return function(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var o;o=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n);return Object.setPrototypeOf(o,l.prototype),o}(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return l.from(o,t,n);var i=function(e){if(l.isBuffer(e)){var t=0|k(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||q(e.length)?s(0):c(e);if("Buffer"===e.type&&Array.isArray(e.data))return c(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function p(e){return d(e),s(e<0?0:0|k(e))}function c(e){for(var t=e.length<0?0:0|k(e.length),n=s(t),o=0;o<t;o+=1)n[o]=255&e[o];return n}function k(e){if(e>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||F(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return M(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(i)return o?-1:M(e).length;t=(""+t).toLowerCase(),i=!0}}function f(e,t,n){var o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function h(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function y(e,t,n,o,i){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),q(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.f
/** @license MIT License (c) copyright 2013-2014 original author or authors */
!function(e){e((function(e){var t=e("./when").Promise,n=e("./lib/liftAll"),o=Array.prototype.slice,i=e("./lib/apply")(t,r);return{lift:u,liftAll:d,apply:a,call:l,promisify:p};function a(e,t){return i(e,this,t||[])}function r(e,t,n,o){n.push(m(o.resolve,o),m(o.reject,o)),s(e,t,n,o)}function s(e,t,n,o){try{e.apply(t,n)}catch(e){o.reject(e)}}function l(e){return i(e,this,o.call(arguments,1))}function u(e){var t=arguments.length>1?o.call(arguments,1):[];return function(){return i(e,this,t.concat(o.call(arguments)))}}function d(e,t,o){return n(u,t,o,e)}function p(e,n){return function(){var o=this;return t.all(arguments).then((function(i){var a,r,s=t._defer();return"number"==typeof n.callback&&(a=c(i,n.callback)),"number"==typeof n.errback&&(r=c(i,n.errback)),r<a?(k(i,r,s._handler.reject,s._handler),k(i,a,s._handler.resolve,s._handler)):(k(i,a,s._handler.resolve,s._handler),k(i,r,s._handler.reject,s._handler)),e.apply(o,i),s}))}}function c(e,t){return t<0?e.length+t+2:t}function k(e,t,n,o){"number"==typeof t&&e.splice(t,0,m(n,o))}function m(e,t){return function(){arguments.length>1?e.call(t,o.call(arguments)):e.apply(t,arguments)}}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"./lib/apply":11,"./lib/liftAll":23,"./when":32}],3:[function(t,n,o){
/** @license MIT License (c) copyright B Cavalier & J Hann */
!function(e){e((function(){return function(e,t){return e.cancel=function(){try{e.reject(t(e))}catch(t){e.reject(t)}return e.promise},e}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e()})},{}],4:[function(t,n,o){
/** @license MIT License (c) copyright 2011-2013 original author or authors */
!function(e){e((function(e){var t=e("./when");return function(e,n){return t(n).delay(e)}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"./when":32}],5:[function(t,n,o){
/** @license MIT License (c) copyright 2013-2014 original author or authors */
!function(e){e((function(e){var t=e("./when"),n=t.try,o=e("./lib/liftAll"),i=e("./lib/apply")(t.Promise),a=Array.prototype.slice;return{lift:s,liftAll:l,call:n,apply:r,compose:u};function r(e,t){return i(e,this,null==t?[]:a.call(t))}function s(e){var t=arguments.length>1?a.call(arguments,1):[];return function(){return i(e,this,t.concat(a.call(arguments)))}}function l(e,t,n){return o(s,t,n,e)}function u(e){var o=a.call(arguments,1);return function(){var i=this,r=a.call(arguments),s=n.apply(i,[e].concat(r));return t.reduce(o,(function(e,t){return t.call(i,e)}),s)}}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"./lib/apply":11,"./lib/liftAll":23,"./when":32}],6:[function(t,n,o){
/** @license MIT License (c) copyright 2011-2013 original author or authors */
!function(e){e((function(e){var t=e("./when"),n=Array.prototype.slice;return o.n=i,o;function o(e,o){return function(){var i=n.call(arguments);return t(e()).withThis(this).then((function(e){return t(o.apply(this,i)).finally(e)}))}}function i(e){var n=0,o=[];return function(){return t.promise((function(t){n<e?t(i):o.push(t),n+=1}))};function i(){n=Math.max(n-1,0),o.length>0&&o.shift()(i)}}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"./when":32}],7:[function(t,n,o){
/** @license MIT License (c) copyright 2011-2013 original author or authors */
!function(e){"use strict";e((function(e){var t=e("./when"),n=t.Promise,o=t.resolve;return{all:t.lift(i),map:a,settle:r};function i(e){for(var t,o=n._defer(),i=n._handler(o),a={},r=Object.keys(e),s=r.length,l=0;l<r.length;++l)t=r[l],n._handler(e[t]).fold(u,t,a,i);return 0===s&&i.resolve(a),o;function u(e,t,n){this[e]=t,0==--s&&n.resolve(a)}}function a(e,t){return o(e).then((function(e){return i(Object.keys(e).reduce((function(t,i){return t[i]=o(e[i]).fold(n,i),t}),{}))}));function n(e,n){return t(n,e)}}function r(e){var i=Object.keys(e),a={};if(0===i.length)return o(a);var r=n._defer(),l=n._handler(r),u=i.map((function(t){return e[t]}));return t.settle(u).then((function(e){s(i,e,a,l)})),r}function s(e,t,n,o){for(var i=0;i<e.length;i++)n[e[i]]=t[i];o.resolve(n)}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"./when":32}],8:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(e){return e("./makePromise")({scheduler:new(e("./Scheduler"))(e("./env").asap)})}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"./Scheduler":9,"./env":21,"./makePromise":24}],9:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(){function e(e){this._async=e,this._running=!1,this._queue=this,this._queueLen=0,this._afterQueue={},this._afterQueueLen=0;var t=this;this.drain=function(){t._drain()}}return e.prototype.enqueue=function(e){this._queue[this._queueLen++]=e,this.run()},e.prototype.afterQueue=function(e){this._afterQueue[this._afterQueueLen++]=e,this.run()},e.prototype.run=function(){this._running||(this._running=!0,this._async(this.drain))},e.prototype._drain=function(){for(var e=0;e<this._queueLen;++e)this._queue[e].run(),this._queue[e]=void 0;for(this._queueLen=0,this._running=!1,e=0;e<this._afterQueueLen;++e)this._afterQueue[e].run(),this._afterQueue[e]=void 0;this._afterQueueLen=0},e}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e()})},{}],10:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(){function e(t){Error.call(this),this.message=t,this.name=e.name,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e()})},{}],11:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(){return e.tryCatchResolve=t,e;function e(e,n){return arguments.length<2&&(n=t),o;function o(t,o,a){var r=e._defer(),s=a.length;return i({f:t,thisArg:o,args:a,params:new Array(s),i:s-1,call:n},r._handler),r}function i(t,o){if(t.i<0)return n(t.f,t.thisArg,t.params,o);e._handler(t.args[t.i]).fold(a,t,void 0,o)}function a(e,t,n){e.params[e.i]=t,e.i-=1,i(e,n)}}function t(e,t,n,o){try{o.resolve(e.apply(t,n))}catch(e){o.reject(e)}}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e()})},{}],12:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(e){var t=e("../state"),n=e("../apply");return function(e){var o=n(e),i=e.resolve,a=e.all,r=Array.prototype.reduce,s=Array.prototype.reduceRight,l=Array.prototype.slice;return e.any=u,e.some=d,e.settle=m,e.map=p,e.filter=c,e.reduce=h,e.reduceRight=y,e.prototype.spread=function(e){return this.then(a).then((function(t){return e.apply(this,t)}))},e;function u(t){for(var n,o,i=e._defer(),a=i._handler,r=t.length>>>0,s=r,l=[],u=0;u<r;++u)if(void 0!==(o=t[u])||u in t){if((n=e._handler(o)).state()>0){a.become(n),e._visitRemaining(t,u,n);break}n.visit(a,d,p)}else--s;return 0===s&&a.reject(new RangeError("any(): array must not be empty")),i;function d(e){l=null,this.resolve(e)}function p(e){this.resolved||(l.push(e),0==--s&&this.reject(l))}}function d(t,n){var o,i,a,r=e._defer(),s=r._handler,l=[],u=[],d=t.length>>>0,p=0;for(a=0;a<d;++a)(void 0!==(i=t[a])||a in t)&&++p;for(n=Math.max(n,0),o=p-n+1,n>(p=Math.min(n,p))?s.reject(new RangeError("some(): array must contain at least "+n+" item(s), but had "+p)):0===p&&s.resolve(l),a=0;a<d;++a)(void 0!==(i=t[a])||a in t)&&e._handler(i).visit(s,c,k,s.notify);return r;function c(e){this.resolved||(l.push(e),0==--p&&(u=null,this.resolve(l)))}function k(e){this.resolved||(u.push(e),0==--o&&(l=null,this.reject(u)))}}function p(t,n){return e._traverse(n,t)}function c(t,n){var o=l.call(t);return e._traverse(n,o).then((function(e){return k(o,e)}))}function k(t,n){for(var o=n.length,i=new Array(o),a=0,r=0;a<o;++a)n[a]&&(i[r++]=e._handler(t[a]).value);return i.length=r,i}function m(e){return a(e.map(f))}function f(n){var o;return n instanceof e&&(o=n._handler.join()),o&&0===o.state()||!o?i(n).then(t.fulfilled,t.rejected):(o._unreport(),t.inspect(o))}function h(e,t){return arguments.length>2?r.call(e,g(t),arguments[2]):r.call(e,g(t))}function y(e,t){return arguments.length>2?s.call(e,g(t),arguments[2]):s.call(e,g(t))}function g(e){return function(t,n,i){return o(e,void 0,[t,n,i])}}}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"../apply":11,"../state":25}],13:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(){return function(n){var a=n.resolve,r=n.reject,s=n.prototype.catch;function l(e,n){return function(o){return t(o,n)?e.call(this,o):r(o)}}function u(e,t,n,i){var a=e.call(t);return o(a)?d(a,n,i):n(i)}function d(e,t,n){return a(e).then((function(){return t(n)}))}return n.prototype.done=function(e,t){this._handler.visit(this._handler.receiver,e,t)},n.prototype.catch=n.prototype.otherwise=function(t){return arguments.length<2?s.call(this,t):"function"!=typeof t?this.ensure(e):s.call(this,l(arguments[1],t))},n.prototype.finally=n.prototype.ensure=function(e){return"function"!=typeof e?this:this.then((function(t){return u(e,this,i,t)}),(function(t){return u(e,this,r,t)}))},n.prototype.else=n.prototype.orElse=function(e){return this.then(void 0,(function(){return e}))},n.prototype.yield=function(e){return this.then((function(){return e}))},n.prototype.tap=function(e){return this.then(e).yield(this)},n};function e(){throw new TypeError("catch predicate must be a function")}function t(e,t){return n(t)?e instanceof t:t(e)}function n(e){return e===Error||null!=e&&e.prototype instanceof Error}function o(e){return("object"==typeof e||"function"==typeof e)&&null!==e}function i(e){return e}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e()})},{}],14:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(){return function(e){return e.prototype.fold=function(t,n){var o=this._beget();return this._handler.fold((function(n,o,i){e._handler(n).fold((function(e,n,o){o.resolve(t.call(this,n,e))}),o,this,i)}),n,o._handler.receiver,o._handler),o},e}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e()})},{}],15:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(e){var t=e("../state").inspect;return function(e){return e.prototype.inspect=function(){return t(e._handler(this))},e}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"../state":25}],16:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(){return function(e){var t=e.resolve;return e.iterate=n,e.unfold=o,e;function n(e,t,n,i){return o((function(t){return[t,e(t)]}),t,n,i)}function o(e,n,i,a){return t(a).then((function(o){return t(n(o)).then((function(n){return n?o:t(e(o)).spread(r)}))}));function r(a,r){return t(i(a)).then((function(){return o(e,n,i,r)}))}}}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e()})},{}],17:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(){return function(e){return e.prototype.progress=function(e){return this.then(void 0,void 0,e)},e}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e()})},{}],18:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(e){var t=e("../env"),n=e("../TimeoutError");function o(e,n,o,i){return t.setTimer((function(){e(o,i,n)}),n)}return function(e){function i(e,t,n){o(a,e,t,n)}function a(e,t){t.resolve(e)}function r(e,t,o){var i=void 0===e?new n("timed out after "+o+"ms"):e;t.reject(i)}return e.prototype.delay=function(e){var t=this._beget();return this._handler.fold(i,e,void 0,t._handler),t},e.prototype.timeout=function(e,n){var i=this._beget(),a=i._handler,s=o(r,e,n,i._handler);return this._handler.visit(a,(function(e){t.clearTimer(s),this.resolve(e)}),(function(e){t.clearTimer(s),this.reject(e)}),a.notify),i},e}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"../TimeoutError":10,"../env":21}],19:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(e){var t=e("../env").setTimer,n=e("../format");return function(e){var a,r=i,s=i;"undefined"!=typeof console&&(a=console,r=void 0!==a.error?function(e){a.error(e)}:function(e){a.log(e)},s=void 0!==a.info?function(e){a.info(e)}:function(e){a.log(e)}),e.onPotentiallyUnhandledRejection=function(e){k(p,e)},e.onPotentiallyUnhandledRejectionHandled=function(e){k(c,e)},e.onFatalRejection=function(e){k(o,e.value)};var l=[],u=[],d=null;function p(e){e.handled||(u.push(e),r("Potentially unhandled rejection ["+e.id+"] "+n.formatError(e.value)))}function c(e){var t=u.indexOf(e);t>=0&&(u.splice(t,1),s("Handled previous rejection ["+e.id+"] "+n.formatObject(e.value)))}function k(e,n){l.push(e,n),null===d&&(d=t(m,0))}function m(){for(d=null;l.length>0;)l.shift()(l.shift())}return e};function o(e){throw e}function i(){}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"../env":21,"../format":22}],20:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(){return function(e){return e.prototype.with=e.prototype.withThis=function(e){var t=this._beget(),n=t._handler;return n.receiver=e,this._handler.chain(n,e),t},e}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e()})},{}],21:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(e){var t,n="undefined"!=typeof setTimeout&&setTimeout,o=function(e,t){return setTimeout(e,t)},i=function(e){return clearTimeout(e)},a=function(e){return n(e,0)};if(s())a=function(e){return process.nextTick(e)};else if(t=l())a=u(t);else if(!n){var r=e("vertx");o=function(e,t){return r.setTimer(t,e)},i=r.cancelTimer,a=r.runOnLoop||r.runOnContext}return{setTimer:o,clearTimer:i,asap:a};function s(){return"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)}function l(){return"undefined"!=typeof MutationObserver&&MutationObserver||"undefined"!=typeof WebKitMutationObserver&&WebKitMutationObserver}function u(e){var t,n=document.createTextNode("");function o(){var e=t;t=void 0,e()}new e(o).observe(n,{characterData:!0});var i=0;return function(e){t=e,n.data=i^=1}}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{}],22:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(){return{formatError:e,formatObject:t,tryStringify:n};function e(e){var n="object"==typeof e&&null!==e&&(e.stack||e.message)?e.stack||e.message:t(e);return e instanceof Error?n:n+" (WARNING: non-Error used)"}function t(e){var t=String(e);return"[object Object]"===t&&"undefined"!=typeof JSON&&(t=n(e,t)),t}function n(e,t){try{return JSON.stringify(e)}catch(e){return t}}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e()})},{}],23:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(){return function(n,o,i,a){return void 0===o&&(o=e),Object.keys(a).reduce((function(e,t){var i=a[t];return"function"==typeof i?o(e,n(i),t):e}),void 0===i?t(a):i)};function e(e,t,n){return e[n]=t,e}function t(e){return"function"==typeof e?e.bind():Object.create(e)}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e()})},{}],24:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(){return function(e){var t=e.scheduler,n=te(),o=Object.create||function(e){function t(){}return t.prototype=e,new t};function i(e,t){this._handler=e===z?t:a(e)}function a(e){var t=new x;try{e(n,o,i)}catch(e){o(e)}return t;function n(e){t.resolve(e)}function o(e){t.reject(e)}function i(e){t.notify(e)}}function r(e){return F(e)?e:new i(z,new E(b(e)))}function s(e){return new i(z,new E(new O(e)))}function l(){return j}function u(){return new i(z,new x)}function d(e,t){return new t(z,new x(e.receiver,e.join().context))}function p(e){return k(Q,null,e)}function c(e,t){return k(K,e,t)}function k(e,t,n){for(var o,a="function"==typeof t?d:p,r=new x,s=n.length>>>0,l=new Array(s),u=0;u<n.length&&!r.resolved;++u)void 0!==(o=n[u])||u in n?m(n,a,u,o,r):--s;return 0===s&&r.become(new T(l)),new i(z,r);function d(o,i,a){a.resolved||m(n,p,o,e(t,i,o),a)}function p(e,t,n){l[e]=t,0==--s&&n.become(new T(l))}}function m(e,t,n,o,i){if(q(o)){var a=_(o),r=a.state();0===r?a.fold(t,n,void 0,i):r>0?t(n,a.value,i):(i.become(a),f(e,n+1,a))}else t(n,o,i)}function f(e,t,n){for(var o=t;o<e.length;++o)h(b(e[o]),n)}function h(e,t){if(e!==t){var n=e.state();0===n?e.visit(e,void 0,e._unreport):n<0&&e._unreport()}}function y(e){return"object"!=typeof e||null===e?s(new TypeError("non-iterable passed to race()")):0===e.length?l():1===e.length?r(e[0]):g(e)}function g(e){var t,n,o,a=new x;for(t=0;t<e.length;++t)if(void 0!==(n=e[t])||t in e){if(0!==(o=b(n)).state()){a.become(o),f(e,t+1,o);break}o.visit(a,a.resolve,a.reject)}return new i(z,a)}function b(e){return F(e)?e._handler.join():q(e)?v(e):new T(e)}function _(e){return F(e)?e._handler.join():v(e)}function v(e){try{var t=e.then;return"function"==typeof t?new P(t,e):new T(e)}catch(e){return new O(e)}}function z(){}function w(){}i.resolve=r,i.reject=s,i.never=l,i._defer=u,i._handler=b,i.prototype.then=function(e,t,n){var o=this._handler,i=o.join().state();if("function"!=typeof e&&i>0||"function"!=typeof t&&i<0)return new this.constructor(z,o);var a=this._beget(),r=a._handler;return o.chain(r,o.receiver,e,t,n),a},i.prototype.catch=function(e){return this.then(void 0,e)},i.prototype._beget=function(){return d(this._handler,this.constructor)},i.all=p,i.race=y,i._traverse=c,i._visitRemaining=f,z.prototype.when=z.prototype.become=z.prototype.notify=z.prototype.fail=z.prototype._unreport=z.prototype._report=X,z.prototype._state=0,z.prototype.state=function(){return this._state},z.prototype.join=function(){for(var e=this;void 0!==e.handler;)e=e.handler;return e},z.prototype.chain=function(e,t,n,o,i){this.when({resolver:e,receiver:t,fulfilled:n,rejected:o,progress:i})},z.prototype.visit=function(e,t,n,o){this.chain(S,e,t,n,o)},z.prototype.fold=function(e,t,n,o){this.when(new B(e,t,n,o))},$(z,w),w.prototype.become=function(e){e.fail()};var S=new w;function x(e,t){i.createContext(this,t),this.consumers=void 0,this.receiver=e,this.handler=void 0,this.resolved=!1}function E(e){this.handler=e}function P(e,n){x.call(this),t.enqueue(new M(e,n,this))}function T(e){i.createContext(this),this.value=e}$(z,x),x.prototype._state=0,x.prototype.resolve=function(e){this.become(b(e))},x.prototype.reject=function(e){this.resolved||this.become(new O(e))},x.prototype.join=function(){if(!this.resolved)return this;for(var e=this;void 0!==e.handler;)if((e=e.handler)===this)return this.handler=N();return e},x.prototype.run=function(){var e=this.consumers,t=this.handler;this.handler=this.handler.join(),this.consumers=void 0;for(var n=0;n<e.length;++n)t.when(e[n])},x.prototype.become=function(e){this.resolved||(this.resolved=!0,this.handler=e,void 0!==this.consumers&&t.enqueue(this),void 0!==this.context&&e._report(this.context))},x.prototype.when=function(e){this.resolved?t.enqueue(new L(e,this.handler)):void 0===this.consumers?this.consumers=[e]:this.consumers.push(e)},x.prototype.notify=function(e){this.resolved||t.enqueue(new D(e,this))},x.prototype.fail=function(e){var t=void 0===e?this.context:e;this.resolved&&this.handler.join().fail(t)},x.prototype._report=function(e){this.resolved&&this.handler.jo
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(){return{pending:e,fulfilled:n,rejected:t,inspect:o};function e(){return{state:"pending"}}function t(e){return{state:"rejected",reason:e}}function n(e){return{state:"fulfilled",value:e}}function o(o){var i=o.state();return 0===i?e():i>0?n(o.value):t(o.value)}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e()})},{}],26:[function(t,n,o){
/** @license MIT License (c) copyright 2013 original author or authors */
!function(e){e((function(e){var t=e("./when"),n=e("./lib/liftAll"),o=e("./lib/env").setTimer,i=Array.prototype.slice,a=e("./lib/apply")(t.Promise,s);return{lift:u,liftAll:d,apply:r,call:l,createCallback:p,bindCallback:c,liftCallback:k};function r(e,t){return a(e,this,t||[])}function s(e,t,n,o){var i=p(o);try{switch(n.length){case 2:e.call(t,n[0],n[1],i);break;case 1:e.call(t,n[0],i);break;case 0:e.call(t,i);break;default:n.push(i),e.apply(t,n)}}catch(e){o.reject(e)}}function l(e){return a(e,this,i.call(arguments,1))}function u(e){var t=arguments.length>1?i.call(arguments,1):[];return function(){var n,o=t.length,i=arguments.length,r=new Array(i+o);for(n=0;n<o;++n)r[n]=t[n];for(n=0;n<i;++n)r[n+o]=arguments[n];return a(e,this,r)}}function d(e,t,o){return n(u,t,o,e)}function p(e){return function(t,n){t?e.reject(t):arguments.length>2?e.resolve(i.call(arguments,1)):e.resolve(n)}}function c(e,n){return e=t(e),n&&e.then(i,a),e;function i(e){a(null,e)}function a(e,t){o((function(){n(e,t)}),0)}}function k(e){return function(t){return c(t,e)}}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"./lib/apply":11,"./lib/env":21,"./lib/liftAll":23,"./when":32}],27:[function(t,n,o){
/** @license MIT License (c) copyright 2011-2013 original author or authors */
!function(e){e((function(e){var t=e("./when"),n=t.Promise.all,o=Array.prototype.slice;return function(e){return n(o.call(arguments,1)).then((function(n){return t.map(e,(function(e){return e.apply(void 0,n)}))}))}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"./when":32}],28:[function(t,n,o){
/** @license MIT License (c) copyright 2011-2013 original author or authors */
!function(e){e((function(e){var t=e("./when"),n=t.Promise.all,o=Array.prototype.slice;return function(e){var i=function(e,t){return i=function(e,t){return t(e)},t.apply(null,e)};return n(o.call(arguments,1)).then((function(n){return t.reduce(e,(function(e,t){return i(e,t)}),n)}))}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"./when":32}],29:[function(t,n,o){
/** @license MIT License (c) copyright 2012-2013 original author or authors */
!function(e){"use strict";e((function(e){var t=e("./when"),n=t.try,o=e("./cancelable");return function(e,i,a,r){var s,l,u;function d(e){s.resolve(e)}function p(e){n(i).then(c,u),void 0!==e&&s.notify(e)}function c(){l||t(e(),(function(e){t(a(e),(function(t){return t?d(e):p(e)}),(function(){p(e)}))}),u)}return l=!1,s=o(t.defer(),(function(){l=!0})),u=s.reject,a=a||function(){return!1},"function"!=typeof i&&(i=function(e){return function(){return t().delay(e)}}(i)),r?p():c(),s.promise=Object.create(s.promise),s.promise.cancel=s.cancel,s.promise}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"./cancelable":3,"./when":32}],30:[function(t,n,o){
/** @license MIT License (c) copyright 2011-2013 original author or authors */
!function(e){e((function(e){var t=e("./when"),n=t.Promise.all,o=Array.prototype.slice;return function(e){var i=[];return n(o.call(arguments,1)).then((function(n){return t.reduce(e,(function(e,o){return t(o.apply(void 0,n),a)}),i)}));function a(e){return i.push(e),i}}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"./when":32}],31:[function(t,n,o){
/** @license MIT License (c) copyright 2011-2013 original author or authors */
!function(e){e((function(e){var t=e("./when");return function(e,n){return t(n).timeout(e)}}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"./when":32}],32:[function(t,n,o){
/** @license MIT License (c) copyright 2010-2014 original author or authors */
!function(e){"use strict";e((function(e){var t=e("./lib/decorators/timed"),n=e("./lib/decorators/array"),o=e("./lib/decorators/flow"),i=e("./lib/decorators/fold"),a=e("./lib/decorators/inspect"),r=e("./lib/decorators/iterate"),s=e("./lib/decorators/progress"),l=e("./lib/decorators/with"),u=e("./lib/decorators/unhandledRejection"),d=e("./lib/TimeoutError"),p=[n,o,i,r,s,a,l,t,u].reduce((function(e,t){return t(e)}),e("./lib/Promise")),c=e("./lib/apply")(p);function k(e,t,n,o){var i=p.resolve(e);return arguments.length<2?i:i.then(t,n,o)}function m(e){return new p(e)}function f(e){return function(){for(var t=0,n=arguments.length,o=new Array(n);t<n;++t)o[t]=arguments[t];return c(e,this,o)}}function h(e){for(var t=0,n=arguments.length-1,o=new Array(n);t<n;++t)o[t]=arguments[t+1];return c(e,this,o)}function y(){return new g}function g(){var e=p._defer();function t(t){e._handler.resolve(t)}function n(t){e._handler.reject(t)}function o(t){e._handler.notify(t)}this.promise=e,this.resolve=t,this.reject=n,this.notify=o,this.resolver={resolve:t,reject:n,notify:o}}function b(e){return e&&"function"==typeof e.then}function _(){return p.all(arguments)}function v(e){return k(e,p.all)}function z(e){return k(e,p.settle)}function w(e,t){return k(e,(function(e){return p.map(e,t)}))}function S(e,t){return k(e,(function(e){return p.filter(e,t)}))}return k.promise=m,k.resolve=p.resolve,k.reject=p.reject,k.lift=f,k.try=h,k.attempt=h,k.iterate=p.iterate,k.unfold=p.unfold,k.join=_,k.all=v,k.settle=z,k.any=f(p.any),k.some=f(p.some),k.race=f(p.race),k.map=w,k.filter=S,k.reduce=f(p.reduce),k.reduceRight=f(p.reduceRight),k.isPromiseLike=b,k.Promise=p,k.defer=y,k.TimeoutError=d,k}))}("function"==typeof e&&e.amd?e:function(e){n.exports=e(t)})},{"./lib/Promise":8,"./lib/TimeoutError":10,"./lib/apply":11,"./lib/decorators/array":12,"./lib/decorators/flow":13,"./lib/decorators/fold":14,"./lib/decorators/inspect":15,"./lib/decorators/iterate":16,"./lib/decorators/progress":17,"./lib/decorators/timed":18,"./lib/decorators/unhandledRejection":19,"./lib/decorators/with":20}]},{},[1])(1)}()}()},20910:(e,t,n)=>{var o;/** @license MIT License (c) copyright 2010-2014 original author or authors */!function(i){"use strict";void 0===(o=function(){return e.tryCatchResolve=t,e;function e(e,n){return arguments.length<2&&(n=t),o;function o(t,o,a){var r=e._defer(),s=a.length;return i({f:t,thisArg:o,args:a,params:new Array(s),i:s-1,call:n},r._handler),r}function i(t,o){if(t.i<0)return n(t.f,t.thisArg,t.params,o);e._handler(t.args[t.i]).fold(a,t,void 0,o)}function a(e,t,n){e.params[e.i]=t,e.i-=1,i(e,n)}}function t(e,t,n,o){try{o.resolve(e.apply(t,n))}catch(e){o.reject(e)}}}.call(t,n,t,e))||(e.exports=o)}(n.amdD)},56849:(e,t,n)=>{var o;/** @license MIT License (c) copyright 2010-2014 original author or authors */!function(i){"use strict";void 0===(o=function(e){var t,o="undefined"!=typeof setTimeout&&setTimeout,i=function(e,t){return setTimeout(e,t)},a=function(e){return clearTimeout(e)},r=function(e){return o(e,0)};if(function(){return"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)}())r=function(e){return process.nextTick(e)};else if(t=function(){return"undefined"!=typeof MutationObserver&&MutationObserver||"undefined"!=typeof WebKitMutationObserver&&WebKitMutationObserver}())r=function(e){var t,n=document.createTextNode("");function o(){var e=t;t=void 0,e()}new e(o).observe(n,{characterData:!0});var i=0;return function(e){t=e,n.data=i^=1}}(t);else if(!o){var s=n(45968);i=function(e,t){return s.setTimer(t,e)},a=s.cancelTimer,r=s.runOnLoop||s.runOnContext}return{setTimer:i,clearTimer:a,asap:r}}.call(t,n,t,e))||(e.exports=o)}(n.amdD)},15228:(e,t,n)=>{var o;/** @license MIT License (c) copyright 2010-2014 original author or authors */!function(i){"use strict";void 0===(o=function(){return function(t,n,o,i){return void 0===n&&(n=e),Object.keys(i).reduce((function(e,o){var a=i[o];return"function"==typeof a?n(e,t(a),o):e}),void 0===o?function(e){return"function"==typeof e?e.bind():Object.create(e)}(i):o)};function e(e,t,n){return e[n]=t,e
//# sourceMappingURL=hub.bundle.js.map