firebase
Version:
Firebase JavaScript library for web and Node.js
1 lines • 276 kB
JavaScript
import{_getProvider as t,getApp as e,_removeServiceInstance as n,_registerComponent as r,registerVersion as s,SDK_VERSION as i}from"https://www.gstatic.com/firebasejs/9.0.0-beta.7/firebase-app.js";var o=function(t,e){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};var a=function(){return(a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var s in e=arguments[n])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)};function c(t,e){for(var n=0,r=e.length,s=t.length;n<r;n++,s++)t[s]=e[n];return t}var u={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray:function(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],s=0;s<t.length;s+=3){var i=t[s],o=s+1<t.length,a=o?t[s+1]:0,c=s+2<t.length,u=c?t[s+2]:0,h=i>>2,l=(3&i)<<4|a>>4,d=(15&a)<<2|u>>6,f=63&u;c||(f=64,o||(d=64)),r.push(n[h],n[l],n[d],n[f])}return r.join("")},encodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(function(t){for(var e=[],n=0,r=0;r<t.length;r++){var s=t.charCodeAt(r);s<128?e[n++]=s:s<2048?(e[n++]=s>>6|192,e[n++]=63&s|128):55296==(64512&s)&&r+1<t.length&&56320==(64512&t.charCodeAt(r+1))?(s=65536+((1023&s)<<10)+(1023&t.charCodeAt(++r)),e[n++]=s>>18|240,e[n++]=s>>12&63|128,e[n++]=s>>6&63|128,e[n++]=63&s|128):(e[n++]=s>>12|224,e[n++]=s>>6&63|128,e[n++]=63&s|128)}return e}(t),e)},decodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):function(t){for(var e=[],n=0,r=0;n<t.length;){var s=t[n++];if(s<128)e[r++]=String.fromCharCode(s);else if(s>191&&s<224){var i=t[n++];e[r++]=String.fromCharCode((31&s)<<6|63&i)}else if(s>239&&s<365){var o=((7&s)<<18|(63&(i=t[n++]))<<12|(63&(a=t[n++]))<<6|63&t[n++])-65536;e[r++]=String.fromCharCode(55296+(o>>10)),e[r++]=String.fromCharCode(56320+(1023&o))}else{i=t[n++];var a=t[n++];e[r++]=String.fromCharCode((15&s)<<12|(63&i)<<6|63&a)}}return e.join("")}(this.decodeStringToByteArray(t,e))},decodeStringToByteArray:function(t,e){this.init_();for(var n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],s=0;s<t.length;){var i=n[t.charAt(s++)],o=s<t.length?n[t.charAt(s)]:0,a=++s<t.length?n[t.charAt(s)]:64,c=++s<t.length?n[t.charAt(s)]:64;if(++s,null==i||null==o||null==a||null==c)throw Error();var u=i<<2|o>>4;if(r.push(u),64!==a){var h=o<<4&240|a>>2;if(r.push(h),64!==c){var l=a<<6&192|c;r.push(l)}}}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};function h(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function l(){return!function(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(t){return!1}}()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}var d=function(t){function e(n,r,s){var i=t.call(this,r)||this;return i.code=n,i.customData=s,i.name="FirebaseError",Object.setPrototypeOf(i,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(i,f.prototype.create),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e}(Error),f=function(){function t(t,e,n){this.service=t,this.serviceName=e,this.errors=n}return t.prototype.create=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=e[0]||{},s=this.service+"/"+t,i=this.errors[t],o=i?g(i,r):"Error",a=this.serviceName+": "+o+" ("+s+").",c=new d(s,a,r);return c},t}();function g(t,e){return t.replace(m,(function(t,n){var r=e[n];return null!=r?String(r):"<"+n+"?>"}))}var m=/\{\$([^}]+)}/g;function p(t){return t&&t._delegate?t._delegate:t}var y,w,v=function(){function t(t,e,n){this.name=t,this.instanceFactory=e,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}return t.prototype.setInstantiationMode=function(t){return this.instantiationMode=t,this},t.prototype.setMultipleInstances=function(t){return this.multipleInstances=t,this},t.prototype.setServiceProps=function(t){return this.serviceProps=t,this},t.prototype.setInstanceCreatedCallback=function(t){return this.onInstanceCreated=t,this},t}();!function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"}(w||(w={}));var b={debug:w.DEBUG,verbose:w.VERBOSE,info:w.INFO,warn:w.WARN,error:w.ERROR,silent:w.SILENT},T=w.INFO,E=((y={})[w.DEBUG]="log",y[w.VERBOSE]="log",y[w.INFO]="info",y[w.WARN]="warn",y[w.ERROR]="error",y),I=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!(e<t.logLevel)){var s=(new Date).toISOString(),i=E[e];if(!i)throw new Error("Attempted to log a message with an invalid logType (value: "+e+")");console[i].apply(console,c(["["+s+"] "+t.name+":"],n))}},S=function(){function t(t){this.name=t,this._logLevel=T,this._logHandler=I,this._userLogHandler=null}return Object.defineProperty(t.prototype,"logLevel",{get:function(){return this._logLevel},set:function(t){if(!(t in w))throw new TypeError('Invalid value "'+t+'" assigned to `logLevel`');this._logLevel=t},enumerable:!1,configurable:!0}),t.prototype.setLogLevel=function(t){this._logLevel="string"==typeof t?b[t]:t},Object.defineProperty(t.prototype,"logHandler",{get:function(){return this._logHandler},set:function(t){if("function"!=typeof t)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(t){this._userLogHandler=t},enumerable:!1,configurable:!0}),t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,c([this,w.DEBUG],t)),this._logHandler.apply(this,c([this,w.DEBUG],t))},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,c([this,w.VERBOSE],t)),this._logHandler.apply(this,c([this,w.VERBOSE],t))},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,c([this,w.INFO],t)),this._logHandler.apply(this,c([this,w.INFO],t))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,c([this,w.WARN],t)),this._logHandler.apply(this,c([this,w.WARN],t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,c([this,w.ERROR],t)),this._logHandler.apply(this,c([this,w.ERROR],t))},t}(),_=function(t,e){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function A(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}var D,N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},C=C||{},x=N||self;function k(){}function R(t){var e=typeof t;return"array"==(e="object"!=e?e:t?Array.isArray(t)?"array":e:"null")||"object"==e&&"number"==typeof t.length}function L(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var O="closure_uid_"+(1e9*Math.random()>>>0),M=0;function F(t,e,n){return t.call.apply(t.bind,arguments)}function P(t,e,n){if(!t)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function V(t,e,n){return(V=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?F:P).apply(null,arguments)}function U(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}function q(t,e){function n(){}n.prototype=e.prototype,t.Z=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.Vb=function(t,n,r){for(var s=Array(arguments.length-2),i=2;i<arguments.length;i++)s[i-2]=arguments[i];return e.prototype[n].apply(t,s)}}function B(){this.s=this.s,this.o=this.o}var j={};B.prototype.s=!1,B.prototype.na=function(){if(!this.s&&(this.s=!0,this.M(),0)){var t=function(t){return Object.prototype.hasOwnProperty.call(t,O)&&t[O]||(t[O]=++M)}(this);delete j[t]}},B.prototype.M=function(){if(this.o)for(;this.o.length;)this.o.shift()()};var $=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if("string"==typeof t)return"string"!=typeof e||1!=e.length?-1:t.indexOf(e,0);for(var n=0;n<t.length;n++)if(n in t&&t[n]===e)return n;return-1},K=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,n){for(var r=t.length,s="string"==typeof t?t.split(""):t,i=0;i<r;i++)i in s&&e.call(n,s[i],i,t)};function G(t){return Array.prototype.concat.apply([],arguments)}function z(t){var e=t.length;if(0<e){for(var n=Array(e),r=0;r<e;r++)n[r]=t[r];return n}return[]}function H(t){return/^[\s\xa0]*$/.test(t)}var Q,W=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]};function Y(t,e){return-1!=t.indexOf(e)}function X(t,e){return t<e?-1:t>e?1:0}t:{var J=x.navigator;if(J){var Z=J.userAgent;if(Z){Q=Z;break t}}Q=""}function tt(t,e,n){for(var r in t)e.call(n,t[r],r,t)}function et(t){var e={};for(var n in t)e[n]=t[n];return e}var nt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function rt(t,e){for(var n,r,s=1;s<arguments.length;s++){for(n in r=arguments[s])t[n]=r[n];for(var i=0;i<nt.length;i++)n=nt[i],Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}}function st(t){return st[" "](t),t}st[" "]=k;var it,ot,at=Y(Q,"Opera"),ct=Y(Q,"Trident")||Y(Q,"MSIE"),ut=Y(Q,"Edge"),ht=ut||ct,lt=Y(Q,"Gecko")&&!(Y(Q.toLowerCase(),"webkit")&&!Y(Q,"Edge"))&&!(Y(Q,"Trident")||Y(Q,"MSIE"))&&!Y(Q,"Edge"),dt=Y(Q.toLowerCase(),"webkit")&&!Y(Q,"Edge");function ft(){var t=x.document;return t?t.documentMode:void 0}t:{var gt="",mt=(ot=Q,lt?/rv:([^\);]+)(\)|;)/.exec(ot):ut?/Edge\/([\d\.]+)/.exec(ot):ct?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(ot):dt?/WebKit\/(\S+)/.exec(ot):at?/(?:Version)[ \/]?(\S+)/.exec(ot):void 0);if(mt&&(gt=mt?mt[1]:""),ct){var pt=ft();if(null!=pt&&pt>parseFloat(gt)){it=String(pt);break t}}it=gt}var yt,wt={};function vt(){return function(t){var e=wt;return Object.prototype.hasOwnProperty.call(e,9)?e[9]:e[9]=t(9)}((function(){for(var t=0,e=W(String(it)).split("."),n=W("9").split("."),r=Math.max(e.length,n.length),s=0;0==t&&s<r;s++){var i=e[s]||"",o=n[s]||"";do{if(i=/(\d*)(\D*)(.*)/.exec(i)||["","","",""],o=/(\d*)(\D*)(.*)/.exec(o)||["","","",""],0==i[0].length&&0==o[0].length)break;t=X(0==i[1].length?0:parseInt(i[1],10),0==o[1].length?0:parseInt(o[1],10))||X(0==i[2].length,0==o[2].length)||X(i[2],o[2]),i=i[3],o=o[3]}while(0==t)}return 0<=t}))}if(x.document&&ct){var bt=ft();yt=bt||(parseInt(it,10)||void 0)}else yt=void 0;var Tt=yt,Et=function(){if(!x.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{x.addEventListener("test",k,e),x.removeEventListener("test",k,e)}catch(t){}return t}();function It(t,e){this.type=t,this.g=this.target=e,this.defaultPrevented=!1}function St(t,e){if(It.call(this,t?t.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,t){var n=this.type=t.type,r=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.g=e,e=t.relatedTarget){if(lt){t:{try{st(e.nodeName);var s=!0;break t}catch(t){}s=!1}s||(e=null)}}else"mouseover"==n?e=t.fromElement:"mouseout"==n&&(e=t.toElement);this.relatedTarget=e,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType="string"==typeof t.pointerType?t.pointerType:_t[t.pointerType]||"",this.state=t.state,this.i=t,t.defaultPrevented&&St.Z.h.call(this)}}It.prototype.h=function(){this.defaultPrevented=!0},q(St,It);var _t={2:"touch",3:"pen",4:"mouse"};St.prototype.h=function(){St.Z.h.call(this);var t=this.i;t.preventDefault?t.preventDefault():t.returnValue=!1};var At="closure_listenable_"+(1e6*Math.random()|0),Dt=0;function Nt(t,e,n,r,s){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.ia=s,this.key=++Dt,this.ca=this.fa=!1}function Ct(t){t.ca=!0,t.listener=null,t.proxy=null,t.src=null,t.ia=null}function xt(t){this.src=t,this.g={},this.h=0}function kt(t,e){var n=e.type;if(n in t.g){var r,s=t.g[n],i=$(s,e);(r=0<=i)&&Array.prototype.splice.call(s,i,1),r&&(Ct(e),0==t.g[n].length&&(delete t.g[n],t.h--))}}function Rt(t,e,n,r){for(var s=0;s<t.length;++s){var i=t[s];if(!i.ca&&i.listener==e&&i.capture==!!n&&i.ia==r)return s}return-1}xt.prototype.add=function(t,e,n,r,s){var i=t.toString();(t=this.g[i])||(t=this.g[i]=[],this.h++);var o=Rt(t,e,r,s);return-1<o?(e=t[o],n||(e.fa=!1)):((e=new Nt(e,this.src,i,!!r,s)).fa=n,t.push(e)),e};var Lt="closure_lm_"+(1e6*Math.random()|0),Ot={};function Mt(t,e,n,r,s){if(r&&r.once)return Pt(t,e,n,r,s);if(Array.isArray(e)){for(var i=0;i<e.length;i++)Mt(t,e[i],n,r,s);return null}return n=Kt(n),t&&t[At]?t.N(e,n,L(r)?!!r.capture:!!r,s):Ft(t,e,n,!1,r,s)}function Ft(t,e,n,r,s,i){if(!e)throw Error("Invalid event type");var o=L(s)?!!s.capture:!!s,a=jt(t);if(a||(t[Lt]=a=new xt(t)),(n=a.add(e,n,r,o,i)).proxy)return n;if(r=function(){function t(n){return e.call(t.src,t.listener,n)}var e=Bt;return t}(),n.proxy=r,r.src=t,r.listener=n,t.addEventListener)Et||(s=o),void 0===s&&(s=!1),t.addEventListener(e.toString(),r,s);else if(t.attachEvent)t.attachEvent(qt(e.toString()),r);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(r)}return n}function Pt(t,e,n,r,s){if(Array.isArray(e)){for(var i=0;i<e.length;i++)Pt(t,e[i],n,r,s);return null}return n=Kt(n),t&&t[At]?t.O(e,n,L(r)?!!r.capture:!!r,s):Ft(t,e,n,!0,r,s)}function Vt(t,e,n,r,s){if(Array.isArray(e))for(var i=0;i<e.length;i++)Vt(t,e[i],n,r,s);else r=L(r)?!!r.capture:!!r,n=Kt(n),t&&t[At]?(t=t.i,(e=String(e).toString())in t.g&&(-1<(n=Rt(i=t.g[e],n,r,s))&&(Ct(i[n]),Array.prototype.splice.call(i,n,1),0==i.length&&(delete t.g[e],t.h--)))):t&&(t=jt(t))&&(e=t.g[e.toString()],t=-1,e&&(t=Rt(e,n,r,s)),(n=-1<t?e[t]:null)&&Ut(n))}function Ut(t){if("number"!=typeof t&&t&&!t.ca){var e=t.src;if(e&&e[At])kt(e.i,t);else{var n=t.type,r=t.proxy;e.removeEventListener?e.removeEventListener(n,r,t.capture):e.detachEvent?e.detachEvent(qt(n),r):e.addListener&&e.removeListener&&e.removeListener(r),(n=jt(e))?(kt(n,t),0==n.h&&(n.src=null,e[Lt]=null)):Ct(t)}}}function qt(t){return t in Ot?Ot[t]:Ot[t]="on"+t}function Bt(t,e){if(t.ca)t=!0;else{e=new St(e,this);var n=t.listener,r=t.ia||t.src;t.fa&&Ut(t),t=n.call(r,e)}return t}function jt(t){return(t=t[Lt])instanceof xt?t:null}var $t="__closure_events_fn_"+(1e9*Math.random()>>>0);function Kt(t){return"function"==typeof t?t:(t[$t]||(t[$t]=function(e){return t.handleEvent(e)}),t[$t])}function Gt(){B.call(this),this.i=new xt(this),this.P=this,this.I=null}function zt(t,e){var n,r=t.I;if(r)for(n=[];r;r=r.I)n.push(r);if(t=t.P,r=e.type||e,"string"==typeof e)e=new It(e,t);else if(e instanceof It)e.target=e.target||t;else{var s=e;rt(e=new It(r,t),s)}if(s=!0,n)for(var i=n.length-1;0<=i;i--){var o=e.g=n[i];s=Ht(o,r,!0,e)&&s}if(s=Ht(o=e.g=t,r,!0,e)&&s,s=Ht(o,r,!1,e)&&s,n)for(i=0;i<n.length;i++)s=Ht(o=e.g=n[i],r,!1,e)&&s}function Ht(t,e,n,r){if(!(e=t.i.g[String(e)]))return!0;e=e.concat();for(var s=!0,i=0;i<e.length;++i){var o=e[i];if(o&&!o.ca&&o.capture==n){var a=o.listener,c=o.ia||o.src;o.fa&&kt(t.i,o),s=!1!==a.call(c,r)&&s}}return s&&!r.defaultPrevented}q(Gt,B),Gt.prototype[At]=!0,Gt.prototype.removeEventListener=function(t,e,n,r){Vt(this,t,e,n,r)},Gt.prototype.M=function(){if(Gt.Z.M.call(this),this.i){var t,e=this.i;for(t in e.g){for(var n=e.g[t],r=0;r<n.length;r++)Ct(n[r]);delete e.g[t],e.h--}}this.I=null},Gt.prototype.N=function(t,e,n,r){return this.i.add(String(t),e,!1,n,r)},Gt.prototype.O=function(t,e,n,r){return this.i.add(String(t),e,!0,n,r)};var Qt=x.JSON.stringify;function Wt(){var t=re,e=null;return t.g&&(e=t.g,t.g=t.g.next,t.g||(t.h=null),e.next=null),e}var Yt,Xt=function(){function t(){this.h=this.g=null}return t.prototype.add=function(t,e){var n=Jt.get();n.set(t,e),this.h?this.h.next=n:this.g=n,this.h=n},t}(),Jt=new(function(){function t(t,e){this.i=t,this.j=e,this.h=0,this.g=null}return t.prototype.get=function(){var t;return 0<this.h?(this.h--,t=this.g,this.g=t.next,t.next=null):t=this.i(),t},t}())((function(){return new Zt}),(function(t){return t.reset()})),Zt=function(){function t(){this.next=this.g=this.h=null}return t.prototype.set=function(t,e){this.h=t,this.g=e,this.next=null},t.prototype.reset=function(){this.next=this.g=this.h=null},t}();function te(t){x.setTimeout((function(){throw t}),0)}function ee(t,e){Yt||function(){var t=x.Promise.resolve(void 0);Yt=function(){t.then(se)}}(),ne||(Yt(),ne=!0),re.add(t,e)}var ne=!1,re=new Xt;function se(){for(var t;t=Wt();){try{t.h.call(t.g)}catch(t){te(t)}var e=Jt;e.j(t),100>e.h&&(e.h++,t.next=e.g,e.g=t)}ne=!1}function ie(t,e){Gt.call(this),this.h=t||1,this.g=e||x,this.j=V(this.kb,this),this.l=Date.now()}function oe(t){t.da=!1,t.S&&(t.g.clearTimeout(t.S),t.S=null)}function ae(t,e,n){if("function"==typeof t)n&&(t=V(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=V(t.handleEvent,t)}return 2147483647<Number(e)?-1:x.setTimeout(t,e||0)}function ce(t){t.g=ae((function(){t.g=null,t.i&&(t.i=!1,ce(t))}),t.j);var e=t.h;t.h=null,t.m.apply(null,e)}q(ie,Gt),(D=ie.prototype).da=!1,D.S=null,D.kb=function(){if(this.da){var t=Date.now()-this.l;0<t&&t<.8*this.h?this.S=this.g.setTimeout(this.j,this.h-t):(this.S&&(this.g.clearTimeout(this.S),this.S=null),zt(this,"tick"),this.da&&(oe(this),this.start()))}},D.start=function(){this.da=!0,this.S||(this.S=this.g.setTimeout(this.j,this.h),this.l=Date.now())},D.M=function(){ie.Z.M.call(this),oe(this),delete this.g};var ue=function(t){function e(e,n){var r=t.call(this)||this;return r.m=e,r.j=n,r.h=null,r.i=!1,r.g=null,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}_(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.prototype.l=function(t){this.h=arguments,this.g?this.i=!0:ce(this)},e.prototype.M=function(){t.prototype.M.call(this),this.g&&(x.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)},e}(B);function he(t){B.call(this),this.h=t,this.g={}}q(he,B);var le=[];function de(t,e,n,r){Array.isArray(n)||(n&&(le[0]=n.toString()),n=le);for(var s=0;s<n.length;s++){var i=Mt(e,n[s],r||t.handleEvent,!1,t.h||t);if(!i)break;t.g[i.key]=i}}function fe(t){tt(t.g,(function(t,e){this.g.hasOwnProperty(e)&&Ut(t)}),t),t.g={}}function ge(){this.g=!0}function me(t,e,n,r){t.info((function(){return"XMLHTTP TEXT ("+e+"): "+function(t,e){if(!t.g)return e;if(!e)return null;try{var n=JSON.parse(e);if(n)for(t=0;t<n.length;t++)if(Array.isArray(n[t])){var r=n[t];if(!(2>r.length)){var s=r[1];if(Array.isArray(s)&&!(1>s.length)){var i=s[0];if("noop"!=i&&"stop"!=i&&"close"!=i)for(var o=1;o<s.length;o++)s[o]=""}}}return Qt(n)}catch(t){return e}}(t,n)+(r?" "+r:"")}))}he.prototype.M=function(){he.Z.M.call(this),fe(this)},he.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},ge.prototype.Aa=function(){this.g=!1},ge.prototype.info=function(){};var pe={},ye=null;function we(){return ye=ye||new Gt}function ve(t){It.call(this,pe.Ma,t)}function be(t){var e=we();zt(e,new ve(e,t))}function Te(t,e){It.call(this,pe.STAT_EVENT,t),this.stat=e}function Ee(t){var e=we();zt(e,new Te(e,t))}function Ie(t,e){It.call(this,pe.Na,t),this.size=e}function Se(t,e){if("function"!=typeof t)throw Error("Fn must not be null and must be a function");return x.setTimeout((function(){t()}),e)}pe.Ma="serverreachability",q(ve,It),pe.STAT_EVENT="statevent",q(Te,It),pe.Na="timingevent",q(Ie,It);var _e={NO_ERROR:0,lb:1,yb:2,xb:3,sb:4,wb:5,zb:6,Ja:7,TIMEOUT:8,Cb:9},Ae={qb:"complete",Mb:"success",Ka:"error",Ja:"abort",Eb:"ready",Fb:"readystatechange",TIMEOUT:"timeout",Ab:"incrementaldata",Db:"progress",tb:"downloadprogress",Ub:"uploadprogress"};function De(){}function Ne(t){return t.h||(t.h=t.i())}function Ce(){}De.prototype.h=null;var xe,ke={OPEN:"a",pb:"b",Ka:"c",Bb:"d"};function Re(){It.call(this,"d")}function Le(){It.call(this,"c")}function Oe(){}function Me(t,e,n,r){this.l=t,this.j=e,this.m=n,this.X=r||1,this.V=new he(this),this.P=Pe,t=ht?125:void 0,this.W=new ie(t),this.H=null,this.i=!1,this.s=this.A=this.v=this.K=this.F=this.Y=this.B=null,this.D=[],this.g=null,this.C=0,this.o=this.u=null,this.N=-1,this.I=!1,this.O=0,this.L=null,this.aa=this.J=this.$=this.U=!1,this.h=new Fe}function Fe(){this.i=null,this.g="",this.h=!1}q(Re,It),q(Le,It),q(Oe,De),Oe.prototype.g=function(){return new XMLHttpRequest},Oe.prototype.i=function(){return{}},xe=new Oe;var Pe=45e3,Ve={},Ue={};function qe(t,e,n){t.K=1,t.v=hn(rn(e)),t.s=n,t.U=!0,Be(t,null)}function Be(t,e){t.F=Date.now(),Ge(t),t.A=rn(t.v);var n=t.A,r=t.X;Array.isArray(r)||(r=[String(r)]),In(n.h,"t",r),t.C=0,n=t.l.H,t.h=new Fe,t.g=Sr(t.l,n?e:null,!t.s),0<t.O&&(t.L=new ue(V(t.Ia,t,t.g),t.O)),de(t.V,t.g,"readystatechange",t.gb),e=t.H?et(t.H):{},t.s?(t.u||(t.u="POST"),e["Content-Type"]="application/x-www-form-urlencoded",t.g.ea(t.A,t.u,t.s,e)):(t.u="GET",t.g.ea(t.A,t.u,null,e)),be(1),function(t,e,n,r,s,i){t.info((function(){if(t.g)if(i)for(var o="",a=i.split("&"),c=0;c<a.length;c++){var u=a[c].split("=");if(1<u.length){var h=u[0];u=u[1];var l=h.split("_");o=2<=l.length&&"type"==l[1]?o+(h+"=")+u+"&":o+(h+"=redacted&")}}else o=null;else o=i;return"XMLHTTP REQ ("+r+") [attempt "+s+"]: "+e+"\n"+n+"\n"+o}))}(t.j,t.u,t.A,t.m,t.X,t.s)}function je(t){return!!t.g&&("GET"==t.u&&2!=t.K&&t.l.Ba)}function $e(t,e,n){for(var r,s=!0;!t.I&&t.C<n.length;){if((r=Ke(t,n))==Ue){4==e&&(t.o=4,Ee(14),s=!1),me(t.j,t.m,null,"[Incomplete Response]");break}if(r==Ve){t.o=4,Ee(15),me(t.j,t.m,n,"[Invalid Chunk]"),s=!1;break}me(t.j,t.m,r,null),Ye(t,r)}je(t)&&r!=Ue&&r!=Ve&&(t.h.g="",t.C=0),4!=e||0!=n.length||t.h.h||(t.o=1,Ee(16),s=!1),t.i=t.i&&s,s?0<n.length&&!t.aa&&(t.aa=!0,(e=t.l).g==t&&e.$&&!e.L&&(e.h.info("Great, no buffering proxy detected. Bytes received: "+n.length),pr(e),e.L=!0,Ee(11))):(me(t.j,t.m,n,"[Invalid Chunked Response]"),We(t),Qe(t))}function Ke(t,e){var n=t.C,r=e.indexOf("\n",n);return-1==r?Ue:(n=Number(e.substring(n,r)),isNaN(n)?Ve:(r+=1)+n>e.length?Ue:(e=e.substr(r,n),t.C=r+n,e))}function Ge(t){t.Y=Date.now()+t.P,ze(t,t.P)}function ze(t,e){if(null!=t.B)throw Error("WatchDog timer not null");t.B=Se(V(t.eb,t),e)}function He(t){t.B&&(x.clearTimeout(t.B),t.B=null)}function Qe(t){0==t.l.G||t.I||vr(t.l,t)}function We(t){He(t);var e=t.L;e&&"function"==typeof e.na&&e.na(),t.L=null,oe(t.W),fe(t.V),t.g&&(e=t.g,t.g=null,e.abort(),e.na())}function Ye(t,e){try{var n=t.l;if(0!=n.G&&(n.g==t||xn(n.i,t)))if(n.I=t.N,!t.J&&xn(n.i,t)&&3==n.G){try{var r=n.Ca.g.parse(e)}catch(i){r=null}if(Array.isArray(r)&&3==r.length){var s=r;if(0==s[0]){t:if(!n.u){if(n.g){if(!(n.g.F+3e3<t.F))break t;wr(n),ar(n)}mr(n),Ee(18)}}else n.ta=s[1],0<n.ta-n.U&&37500>s[2]&&n.N&&0==n.A&&!n.v&&(n.v=Se(V(n.ab,n),6e3));if(1>=Cn(n.i)&&n.ka){try{n.ka()}catch(i){}n.ka=void 0}}else Tr(n,11)}else if((t.J||n.g==t)&&wr(n),!H(e))for(s=n.Ca.g.parse(e),e=0;e<s.length;e++){var i=s[e];if(n.U=i[0],i=i[1],2==n.G)if("c"==i[0]){n.J=i[1],n.la=i[2];var o=i[3];null!=o&&(n.ma=o,n.h.info("VER="+n.ma));var a=i[4];null!=a&&(n.za=a,n.h.info("SVER="+n.za));var c=i[5];null!=c&&"number"==typeof c&&0<c&&(r=1.5*c,n.K=r,n.h.info("backChannelRequestTimeoutMs_="+r)),r=n;var u=t.g;if(u){var h=u.g?u.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(h){var l=r.i;!l.g&&(Y(h,"spdy")||Y(h,"quic")||Y(h,"h2"))&&(l.j=l.l,l.g=new Set,l.h&&(kn(l,l.h),l.h=null))}if(r.D){var d=u.g?u.g.getResponseHeader("X-HTTP-Session-Id"):null;d&&(r.sa=d,un(r.F,r.D,d))}}n.G=3,n.j&&n.j.xa(),n.$&&(n.O=Date.now()-t.F,n.h.info("Handshake RTT: "+n.O+"ms"));var f=t;if((r=n).oa=Ir(r,r.H?r.la:null,r.W),f.J){Rn(r.i,f);var g=f,m=r.K;m&&g.setTimeout(m),g.B&&(He(g),Ge(g)),r.g=f}else gr(r);0<n.l.length&&hr(n)}else"stop"!=i[0]&&"close"!=i[0]||Tr(n,7);else 3==n.G&&("stop"==i[0]||"close"==i[0]?"stop"==i[0]?Tr(n,7):or(n):"noop"!=i[0]&&n.j&&n.j.wa(i),n.A=0)}be(4)}catch(i){}}function Xe(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(R(t)||"string"==typeof t)K(t,e,void 0);else{if(t.T&&"function"==typeof t.T)var n=t.T();else if(t.R&&"function"==typeof t.R)n=void 0;else if(R(t)||"string"==typeof t){n=[];for(var r=t.length,s=0;s<r;s++)n.push(s)}else for(s in n=[],r=0,t)n[r++]=s;s=(r=function(t){if(t.R&&"function"==typeof t.R)return t.R();if("string"==typeof t)return t.split("");if(R(t)){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e}for(r in e=[],n=0,t)e[n++]=t[r];return e}(t)).length;for(var i=0;i<s;i++)e.call(void 0,r[i],n&&n[i],t)}}function Je(t,e){this.h={},this.g=[],this.i=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(t)if(t instanceof Je)for(n=t.T(),r=0;r<n.length;r++)this.set(n[r],t.get(n[r]));else for(r in t)this.set(r,t[r])}function Ze(t){if(t.i!=t.g.length){for(var e=0,n=0;e<t.g.length;){var r=t.g[e];tn(t.h,r)&&(t.g[n++]=r),e++}t.g.length=n}if(t.i!=t.g.length){var s={};for(n=e=0;e<t.g.length;)tn(s,r=t.g[e])||(t.g[n++]=r,s[r]=1),e++;t.g.length=n}}function tn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(D=Me.prototype).setTimeout=function(t){this.P=t},D.gb=function(t){t=t.target;var e=this.L;e&&3==er(t)?e.l():this.Ia(t)},D.Ia=function(t){try{if(t==this.g)t:{var e=er(this.g),n=this.g.Da(),r=this.g.ba();if(!(3>e)&&(3!=e||ht||this.g&&(this.h.h||this.g.ga()||nr(this.g)))){this.I||4!=e||7==n||be(8==n||0>=r?3:2),He(this);var s=this.g.ba();this.N=s;e:if(je(this)){var i=nr(this.g);t="";var o=i.length,a=4==er(this.g);if(!this.h.i){if("undefined"==typeof TextDecoder){We(this),Qe(this);var c="";break e}this.h.i=new x.TextDecoder}for(n=0;n<o;n++)this.h.h=!0,t+=this.h.i.decode(i[n],{stream:a&&n==o-1});i.splice(0,o),this.h.g+=t,this.C=0,c=this.h.g}else c=this.g.ga();if(this.i=200==s,function(t,e,n,r,s,i,o){t.info((function(){return"XMLHTTP RESP ("+r+") [ attempt "+s+"]: "+e+"\n"+n+"\n"+i+" "+o}))}(this.j,this.u,this.A,this.m,this.X,e,s),this.i){if(this.$&&!this.J){e:{if(this.g){var u,h=this.g;if((u=h.g?h.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!H(u)){var l=u;break e}}l=null}if(!(s=l)){this.i=!1,this.o=3,Ee(12),We(this),Qe(this);break t}me(this.j,this.m,s,"Initial handshake response via X-HTTP-Initial-Response"),this.J=!0,Ye(this,s)}this.U?($e(this,e,c),ht&&this.i&&3==e&&(de(this.V,this.W,"tick",this.fb),this.W.start())):(me(this.j,this.m,c,null),Ye(this,c)),4==e&&We(this),this.i&&!this.I&&(4==e?vr(this.l,this):(this.i=!1,Ge(this)))}else 400==s&&0<c.indexOf("Unknown SID")?(this.o=3,Ee(12)):(this.o=0,Ee(13)),We(this),Qe(this)}}}catch(e){}},D.fb=function(){if(this.g){var t=er(this.g),e=this.g.ga();this.C<e.length&&(He(this),$e(this,t,e),this.i&&4!=t&&Ge(this))}},D.cancel=function(){this.I=!0,We(this)},D.eb=function(){this.B=null;var t=Date.now();0<=t-this.Y?(function(t,e){t.info((function(){return"TIMEOUT: "+e}))}(this.j,this.A),2!=this.K&&(be(3),Ee(17)),We(this),this.o=2,Qe(this)):ze(this,this.Y-t)},(D=Je.prototype).R=function(){Ze(this);for(var t=[],e=0;e<this.g.length;e++)t.push(this.h[this.g[e]]);return t},D.T=function(){return Ze(this),this.g.concat()},D.get=function(t,e){return tn(this.h,t)?this.h[t]:e},D.set=function(t,e){tn(this.h,t)||(this.i++,this.g.push(t)),this.h[t]=e},D.forEach=function(t,e){for(var n=this.T(),r=0;r<n.length;r++){var s=n[r],i=this.get(s);t.call(e,i,s,this)}};var en=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function nn(t,e){if(this.i=this.s=this.j="",this.m=null,this.o=this.l="",this.g=!1,t instanceof nn){this.g=void 0!==e?e:t.g,sn(this,t.j),this.s=t.s,on(this,t.i),an(this,t.m),this.l=t.l,e=t.h;var n=new vn;n.i=e.i,e.g&&(n.g=new Je(e.g),n.h=e.h),cn(this,n),this.o=t.o}else t&&(n=String(t).match(en))?(this.g=!!e,sn(this,n[1]||"",!0),this.s=ln(n[2]||""),on(this,n[3]||"",!0),an(this,n[4]),this.l=ln(n[5]||"",!0),cn(this,n[6]||"",!0),this.o=ln(n[7]||"")):(this.g=!!e,this.h=new vn(null,this.g))}function rn(t){return new nn(t)}function sn(t,e,n){t.j=n?ln(e,!0):e,t.j&&(t.j=t.j.replace(/:$/,""))}function on(t,e,n){t.i=n?ln(e,!0):e}function an(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.m=e}else t.m=null}function cn(t,e,n){e instanceof vn?(t.h=e,function(t,e){e&&!t.j&&(bn(t),t.i=null,t.g.forEach((function(t,e){var n=e.toLowerCase();e!=n&&(Tn(this,e),In(this,n,t))}),t)),t.j=e}(t.h,t.g)):(n||(e=dn(e,yn)),t.h=new vn(e,t.g))}function un(t,e,n){t.h.set(e,n)}function hn(t){return un(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),t}function ln(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function dn(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,fn),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function fn(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}nn.prototype.toString=function(){var t=[],e=this.j;e&&t.push(dn(e,gn,!0),":");var n=this.i;return(n||"file"==e)&&(t.push("//"),(e=this.s)&&t.push(dn(e,gn,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.m)&&t.push(":",String(n))),(n=this.l)&&(this.i&&"/"!=n.charAt(0)&&t.push("/"),t.push(dn(n,"/"==n.charAt(0)?pn:mn,!0))),(n=this.h.toString())&&t.push("?",n),(n=this.o)&&t.push("#",dn(n,wn)),t.join("")};var gn=/[#\/\?@]/g,mn=/[#\?:]/g,pn=/[#\?]/g,yn=/[#\?@]/g,wn=/#/g;function vn(t,e){this.h=this.g=null,this.i=t||null,this.j=!!e}function bn(t){t.g||(t.g=new Je,t.h=0,t.i&&function(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var r=t[n].indexOf("="),s=null;if(0<=r){var i=t[n].substring(0,r);s=t[n].substring(r+1)}else i=t[n];e(i,s?decodeURIComponent(s.replace(/\+/g," ")):"")}}}(t.i,(function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)})))}function Tn(t,e){bn(t),e=Sn(t,e),tn(t.g.h,e)&&(t.i=null,t.h-=t.g.get(e).length,tn((t=t.g).h,e)&&(delete t.h[e],t.i--,t.g.length>2*t.i&&Ze(t)))}function En(t,e){return bn(t),e=Sn(t,e),tn(t.g.h,e)}function In(t,e,n){Tn(t,e),0<n.length&&(t.i=null,t.g.set(Sn(t,e),z(n)),t.h+=n.length)}function Sn(t,e){return e=String(e),t.j&&(e=e.toLowerCase()),e}(D=vn.prototype).add=function(t,e){bn(this),this.i=null,t=Sn(this,t);var n=this.g.get(t);return n||this.g.set(t,n=[]),n.push(e),this.h+=1,this},D.forEach=function(t,e){bn(this),this.g.forEach((function(n,r){K(n,(function(n){t.call(e,n,r,this)}),this)}),this)},D.T=function(){bn(this);for(var t=this.g.R(),e=this.g.T(),n=[],r=0;r<e.length;r++)for(var s=t[r],i=0;i<s.length;i++)n.push(e[r]);return n},D.R=function(t){bn(this);var e=[];if("string"==typeof t)En(this,t)&&(e=G(e,this.g.get(Sn(this,t))));else{t=this.g.R();for(var n=0;n<t.length;n++)e=G(e,t[n])}return e},D.set=function(t,e){return bn(this),this.i=null,En(this,t=Sn(this,t))&&(this.h-=this.g.get(t).length),this.g.set(t,[e]),this.h+=1,this},D.get=function(t,e){return t&&0<(t=this.R(t)).length?String(t[0]):e},D.toString=function(){if(this.i)return this.i;if(!this.g)return"";for(var t=[],e=this.g.T(),n=0;n<e.length;n++){var r=e[n],s=encodeURIComponent(String(r));r=this.R(r);for(var i=0;i<r.length;i++){var o=s;""!==r[i]&&(o+="="+encodeURIComponent(String(r[i]))),t.push(o)}}return this.i=t.join("&")};var _n=function(t,e){this.h=t,this.g=e};function An(t){this.l=t||Dn,x.PerformanceNavigationTiming?t=0<(t=x.performance.getEntriesByType("navigation")).length&&("hq"==t[0].nextHopProtocol||"h2"==t[0].nextHopProtocol):t=!!(x.g&&x.g.Ea&&x.g.Ea()&&x.g.Ea().Zb),this.j=t?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}var Dn=10;function Nn(t){return!!t.h||!!t.g&&t.g.size>=t.j}function Cn(t){return t.h?1:t.g?t.g.size:0}function xn(t,e){return t.h?t.h==e:!!t.g&&t.g.has(e)}function kn(t,e){t.g?t.g.add(e):t.h=e}function Rn(t,e){t.h&&t.h==e?t.h=null:t.g&&t.g.has(e)&&t.g.delete(e)}function Ln(t){var e,n;if(null!=t.h)return t.i.concat(t.h.D);if(null!=t.g&&0!==t.g.size){var r=t.i;try{for(var s=A(t.g.values()),i=s.next();!i.done;i=s.next()){var o=i.value;r=r.concat(o.D)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return r}return z(t.i)}function On(){}function Mn(){this.g=new On}function Fn(t,e,n){var r=n||"";try{Xe(t,(function(t,n){var s=t;L(t)&&(s=Qt(t)),e.push(r+n+"="+encodeURIComponent(s))}))}catch(t){throw e.push(r+"type="+encodeURIComponent("_badmap")),t}}function Pn(t,e,n,r,s){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,s(r)}catch(t){}}function Vn(t){this.l=t.$b||null,this.j=t.ib||!1}function Un(t,e){Gt.call(this),this.D=t,this.u=e,this.m=void 0,this.readyState=qn,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.v=new Headers,this.h=null,this.C="GET",this.B="",this.g=!1,this.A=this.j=this.l=null}An.prototype.cancel=function(){var t,e;if(this.i=Ln(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){try{for(var n=A(this.g.values()),r=n.next();!r.done;r=n.next()){r.value.cancel()}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this.g.clear()}},On.prototype.stringify=function(t){return x.JSON.stringify(t,void 0)},On.prototype.parse=function(t){return x.JSON.parse(t,void 0)},q(Vn,De),Vn.prototype.g=function(){return new Un(this.l,this.j)},Vn.prototype.i=function(t){return function(){return t}}({}),q(Un,Gt);var qn=0;function Bn(t){t.j.read().then(t.Sa.bind(t)).catch(t.ha.bind(t))}function jn(t){t.readyState=4,t.l=null,t.j=null,t.A=null,$n(t)}function $n(t){t.onreadystatechange&&t.onreadystatechange.call(t)}(D=Un.prototype).open=function(t,e){if(this.readyState!=qn)throw this.abort(),Error("Error reopening a connection");this.C=t,this.B=e,this.readyState=1,$n(this)},D.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;var e={headers:this.v,method:this.C,credentials:this.m,cache:void 0};t&&(e.body=t),(this.D||x).fetch(new Request(this.B,e)).then(this.Va.bind(this),this.ha.bind(this))},D.abort=function(){this.response=this.responseText="",this.v=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted."),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,jn(this)),this.readyState=qn},D.Va=function(t){if(this.g&&(this.l=t,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=t.headers,this.readyState=2,$n(this)),this.g&&(this.readyState=3,$n(this),this.g)))if("arraybuffer"===this.responseType)t.arrayBuffer().then(this.Ta.bind(this),this.ha.bind(this));else if(void 0!==x.ReadableStream&&"body"in t){if(this.j=t.body.getReader(),this.u){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.A=new TextDecoder;Bn(this)}else t.text().then(this.Ua.bind(this),this.ha.bind(this))},D.Sa=function(t){if(this.g){if(this.u&&t.value)this.response.push(t.value);else if(!this.u){var e=t.value?t.value:new Uint8Array(0);(e=this.A.decode(e,{stream:!t.done}))&&(this.response=this.responseText+=e)}t.done?jn(this):$n(this),3==this.readyState&&Bn(this)}},D.Ua=function(t){this.g&&(this.response=this.responseText=t,jn(this))},D.Ta=function(t){this.g&&(this.response=t,jn(this))},D.ha=function(){this.g&&jn(this)},D.setRequestHeader=function(t,e){this.v.append(t,e)},D.getResponseHeader=function(t){return this.h&&this.h.get(t.toLowerCase())||""},D.getAllResponseHeaders=function(){if(!this.h)return"";for(var t=[],e=this.h.entries(),n=e.next();!n.done;)n=n.value,t.push(n[0]+": "+n[1]),n=e.next();return t.join("\r\n")},Object.defineProperty(Un.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(t){this.m=t?"include":"same-origin"}});var Kn=x.JSON.parse;function Gn(t){Gt.call(this),this.headers=new Je,this.u=t||null,this.h=!1,this.C=this.g=null,this.H="",this.m=0,this.j="",this.l=this.F=this.v=this.D=!1,this.B=0,this.A=null,this.J=zn,this.K=this.L=!1}q(Gn,Gt);var zn="",Hn=/^https?$/i,Qn=["POST","PUT"];function Wn(t){return"content-type"==t.toLowerCase()}function Yn(t,e){t.h=!1,t.g&&(t.l=!0,t.g.abort(),t.l=!1),t.j=e,t.m=5,Xn(t),Zn(t)}function Xn(t){t.D||(t.D=!0,zt(t,"complete"),zt(t,"error"))}function Jn(t){if(t.h&&void 0!==C&&(!t.C[1]||4!=er(t)||2!=t.ba()))if(t.v&&4==er(t))ae(t.Fa,0,t);else if(zt(t,"readystatechange"),4==er(t)){t.h=!1;try{var e,n=t.ba();t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break t;default:r=!1}if(!(e=r)){var s;if(s=0===n){var i=String(t.H).match(en)[1]||null;if(!i&&x.self&&x.self.location){var o=x.self.location.protocol;i=o.substr(0,o.length-1)}s=!Hn.test(i?i.toLowerCase():"")}e=s}if(e)zt(t,"complete"),zt(t,"success");else{t.m=6;try{var a=2<er(t)?t.g.statusText:""}catch(t){a=""}t.j=a+" ["+t.ba()+"]",Xn(t)}}finally{Zn(t)}}}function Zn(t,e){if(t.g){tr(t);var n=t.g,r=t.C[0]?k:null;t.g=null,t.C=null,e||zt(t,"ready");try{n.onreadystatechange=r}catch(t){}}}function tr(t){t.g&&t.K&&(t.g.ontimeout=null),t.A&&(x.clearTimeout(t.A),t.A=null)}function er(t){return t.g?t.g.readyState:0}function nr(t){try{if(!t.g)return null;if("response"in t.g)return t.g.response;switch(t.J){case zn:case"text":return t.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in t.g)return t.g.mozResponseArrayBuffer}return null}catch(t){return null}}function rr(t,e,n){t:{for(r in n){var r=!1;break t}r=!0}r||(n=function(t){var e="";return tt(t,(function(t,n){e+=n,e+=":",e+=t,e+="\r\n"})),e}(n),"string"==typeof t?null!=n&&encodeURIComponent(String(n)):un(t,e,n))}function sr(t,e,n){return n&&n.internalChannelParams&&n.internalChannelParams[t]||e}function ir(t){this.za=0,this.l=[],this.h=new ge,this.la=this.oa=this.F=this.W=this.g=this.sa=this.D=this.aa=this.o=this.P=this.s=null,this.Za=this.V=0,this.Xa=sr("failFast",!1,t),this.N=this.v=this.u=this.m=this.j=null,this.X=!0,this.I=this.ta=this.U=-1,this.Y=this.A=this.C=0,this.Pa=sr("baseRetryDelayMs",5e3,t),this.$a=sr("retryDelaySeedMs",1e4,t),this.Ya=sr("forwardChannelMaxRetries",2,t),this.ra=sr("forwardChannelRequestTimeoutMs",2e4,t),this.qa=t&&t.xmlHttpFactory||void 0,this.Ba=t&&t.Yb||!1,this.K=void 0,this.H=t&&t.supportsCrossDomainXhr||!1,this.J="",this.i=new An(t&&t.concurrentRequestLimit),this.Ca=new Mn,this.ja=t&&t.fastHandshake||!1,this.Ra=t&&t.Wb||!1,t&&t.Aa&&this.h.Aa(),t&&t.forceLongPolling&&(this.X=!1),this.$=!this.ja&&this.X&&t&&t.detectBufferingProxy||!1,this.ka=void 0,this.O=0,this.L=!1,this.B=null,this.Wa=!t||!1!==t.Xb}function or(t){if(cr(t),3==t.G){var e=t.V++,n=rn(t.F);un(n,"SID",t.J),un(n,"RID",e),un(n,"TYPE","terminate"),dr(t,n),(e=new Me(t,t.h,e,void 0)).K=2,e.v=hn(rn(n)),n=!1,x.navigator&&x.navigator.sendBeacon&&(n=x.navigator.sendBeacon(e.v.toString(),"")),!n&&x.Image&&((new Image).src=e.v,n=!0),n||(e.g=Sr(e.l,null),e.g.ea(e.v)),e.F=Date.now(),Ge(e)}Er(t)}function ar(t){t.g&&(pr(t),t.g.cancel(),t.g=null)}function cr(t){ar(t),t.u&&(x.clearTimeout(t.u),t.u=null),wr(t),t.i.cancel(),t.m&&("number"==typeof t.m&&x.clearTimeout(t.m),t.m=null)}function ur(t,e){t.l.push(new _n(t.Za++,e)),3==t.G&&hr(t)}function hr(t){Nn(t.i)||t.m||(t.m=!0,ee(t.Ha,t),t.C=0)}function lr(t,e){var n;n=e?e.m:t.V++;var r=rn(t.F);un(r,"SID",t.J),un(r,"RID",n),un(r,"AID",t.U),dr(t,r),t.o&&t.s&&rr(r,t.o,t.s),n=new Me(t,t.h,n,t.C+1),null===t.o&&(n.H=t.s),e&&(t.l=e.D.concat(t.l)),e=fr(t,n,1e3),n.setTimeout(Math.round(.5*t.ra)+Math.round(.5*t.ra*Math.random())),kn(t.i,n),qe(n,r,e)}function dr(t,e){t.j&&Xe({},(function(t,n){un(e,n,t)}))}function fr(t,e,n){n=Math.min(t.l.length,n);var r=t.j?V(t.j.Oa,t.j,t):null;t:for(var s=t.l,i=-1;;){var o=["count="+n];-1==i?0<n?(i=s[0].h,o.push("ofs="+i)):i=0:o.push("ofs="+i);for(var a=!0,c=0;c<n;c++){var u=s[c].h,h=s[c].g;if(0>(u-=i))i=Math.max(0,s[c].h-100),a=!1;else try{Fn(h,o,"req"+u+"_")}catch(t){r&&r(h)}}if(a){r=o.join("&");break t}}return t=t.l.splice(0,n),e.D=t,r}function gr(t){t.g||t.u||(t.Y=1,ee(t.Ga,t),t.A=0)}function mr(t){return!(t.g||t.u||3<=t.A)&&(t.Y++,t.u=Se(V(t.Ga,t),br(t,t.A)),t.A++,!0)}function pr(t){null!=t.B&&(x.clearTimeout(t.B),t.B=null)}function yr(t){t.g=new Me(t,t.h,"rpc",t.Y),null===t.o&&(t.g.H=t.s),t.g.O=0;var e=rn(t.oa);un(e,"RID","rpc"),un(e,"SID",t.J),un(e,"CI",t.N?"0":"1"),un(e,"AID",t.U),dr(t,e),un(e,"TYPE","xmlhttp"),t.o&&t.s&&rr(e,t.o,t.s),t.K&&t.g.setTimeout(t.K);var n=t.g;t=t.la,n.K=1,n.v=hn(rn(e)),n.s=null,n.U=!0,Be(n,t)}function wr(t){null!=t.v&&(x.clearTimeout(t.v),t.v=null)}function vr(t,e){var n=null;if(t.g==e){wr(t),pr(t),t.g=null;var r=2}else{if(!xn(t.i,e))return;n=e.D,Rn(t.i,e),r=1}if(t.I=e.N,0!=t.G)if(e.i)if(1==r){n=e.s?e.s.length:0,e=Date.now()-e.F;var s=t.C;zt(r=we(),new Ie(r,n,e,s)),hr(t)}else gr(t);else if(3==(s=e.o)||0==s&&0<t.I||!(1==r&&function(t,e){return!(Cn(t.i)>=t.i.j-(t.m?1:0)||(t.m?(t.l=e.D.concat(t.l),0):1==t.G||2==t.G||t.C>=(t.Xa?0:t.Ya)||(t.m=Se(V(t.Ha,t,e),br(t,t.C)),t.C++,0)))}(t,e)||2==r&&mr(t)))switch(n&&0<n.length&&(e=t.i,e.i=e.i.concat(n)),s){case 1:Tr(t,5);break;case 4:Tr(t,10);break;case 3:Tr(t,6);break;default:Tr(t,2)}}function br(t,e){var n=t.Pa+Math.floor(Math.random()*t.$a);return t.j||(n*=2),n*e}function Tr(t,e){if(t.h.info("Error code "+e),2==e){var n=null;t.j&&(n=null);var r=V(t.jb,t);n||(n=new nn("//www.google.com/images/cleardot.gif"),x.location&&"http"==x.location.protocol||sn(n,"https"),hn(n)),function(t,e){var n=new ge;if(x.Image){var r=new Image;r.onload=U(Pn,n,r,"TestLoadImage: loaded",!0,e),r.onerror=U(Pn,n,r,"TestLoadImage: error",!1,e),r.onabort=U(Pn,n,r,"TestLoadImage: abort",!1,e),r.ontimeout=U(Pn,n,r,"TestLoadImage: timeout",!1,e),x.setTimeout((function(){r.ontimeout&&r.ontimeout()}),1e4),r.src=t}else e(!1)}(n.toString(),r)}else Ee(2);t.G=0,t.j&&t.j.va(e),Er(t),cr(t)}function Er(t){t.G=0,t.I=-1,t.j&&(0==Ln(t.i).length&&0==t.l.length||(t.i.i.length=0,z(t.l),t.l.length=0),t.j.ua())}function Ir(t,e,n){var r=function(t){return t instanceof nn?rn(t):new nn(t,void 0)}(n);if(""!=r.i)e&&on(r,e+"."+r.i),an(r,r.m);else{var s=x.location;r=function(t,e,n,r){var s=new nn(null,void 0);return t&&sn(s,t),e&&on(s,e),n&&an(s,n),r&&(s.l=r),s}(s.protocol,e?e+"."+s.hostname:s.hostname,+s.port,n)}return t.aa&&tt(t.aa,(function(t,e){un(r,e,t)})),e=t.D,n=t.sa,e&&n&&un(r,e,n),un(r,"VER",t.ma),dr(t,r),r}function Sr(t,e,n){if(e&&!t.H)throw Error("Can't create secondary domain capable XhrIo object.");return(e=n&&t.Ba&&!t.qa?new Gn(new Vn({ib:!0})):new Gn(t.qa)).L=t.H,e}function _r(){}function Ar(){if(ct&&!(10<=Number(Tt)))throw Error("Environmental error: no available transport.")}function Dr(t,e){Gt.call(this),this.g=new ir(e),this.l=t,this.h=e&&e.messageUrlParams||null,t=e&&e.messageHeaders||null,e&&e.clientProtocolHeaderRequired&&(t?t["X-Client-Protocol"]="webchannel":t={"X-Client-Protocol":"webchannel"}),this.g.s=t,t=e&&e.initMessageHeaders||null,e&&e.messageContentType&&(t?t["X-WebChannel-Content-Type"]=e.messageContentType:t={"X-WebChannel-Content-Type":e.messageContentType}),e&&e.ya&&(t?t["X-WebChannel-Client-Profile"]=e.ya:t={"X-WebChannel-Client-Profile":e.ya}),this.g.P=t,(t=e&&e.httpHeadersOverwriteParam)&&!H(t)&&(this.g.o=t),this.A=e&&e.supportsCrossDomainXhr||!1,this.v=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!H(e)&&(this.g.D=e,null!==(t=this.h)&&e in t&&(e in(t=this.h)&&delete t[e])),this.j=new xr(this)}function Nr(t){Re.call(this);var e=t.__sm__;if(e){t:{for(var n in e){t=n;break t}t=void 0}(this.i=t)&&(t=this.i,e=null!==e&&t in e?e[t]:void 0),this.data=e}else this.data=t}function Cr(){Le.call(this),this.status=1}function xr(t){this.g=t}(D=Gn.prototype).ea=function(t,e,n,r){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.H+"; newUri="+t);e=e?e.toUpperCase():"GET",this.H=t,this.j="",this.m=0,this.D=!1,this.h=!0,this.g=this.u?this.u.g():xe.g(),this.C=this.u?Ne(this.u):Ne(xe),this.g.onreadystatechange=V(this.Fa,this);try{this.F=!0,this.g.open(e,String(t),!0),this.F=!1}catch(t){return void Yn(this,t)}t=n||"";var s=new Je(this.headers);r&&Xe(r,(function(t,e){s.set(e,t)})),r=function(t){t:{for(var e=Wn,n=t.length,r="string"==typeof t?t.split(""):t,s=0;s<n;s++)if(s in r&&e.call(void 0,r[s],s,t)){e=s;break t}e=-1}return 0>e?null:"string"==typeof t?t.charAt(e):t[e]}(s.T()),n=x.FormData&&t instanceof x.FormData,!(0<=$(Qn,e))||r||n||s.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),s.forEach((function(t,e){this.g.setRequestHeader(e,t)}),this),this.J&&(this.g.responseType=this.J),"withCredentials"in this.g&&this.g.withCredentials!==this.L&&(this.g.withCredentials=this.L);try{tr(this),0<this.B&&((this.K=function(t){return ct&&vt()&&"number"==typeof t.timeout&&void 0!==t.ontimeout}(this.g))?(this.g.timeout=this.B,this.g.ontimeout=V(this.pa,this)):this.A=ae(this.pa,this.B,this)),this.v=!0,this.g.send(t),this.v=!1}catch(t){Yn(this,t)}},D.pa=function(){void 0!==C&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,zt(this,"timeout"),this.abort(8))},D.abort=function(t){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=t||7,zt(this,"complete"),zt(this,"abort"),Zn(this))},D.M=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),Zn(this,!0)),Gn.Z.M.call(this)},D.Fa=function(){this.s||(this.F||this.v||this.l?Jn(this):this.cb())},D.cb=function(){Jn(this)},D.ba=function(){try{return 2<er(this)?this.g.status:-1}catch(t){return-1}},D.ga=function(){try{return this.g?this.g.responseText:""}catch(t){return""}},D.Qa=function(t){if(this.g){var e=this.g.responseText;return t&&0==e.indexOf(t)&&(e=e.substring(t.length)),Kn(e)}},D.Da=function(){return this.m},D.La=function(){return"string"==typeof this.j?this.j:String(this.j)},(D=ir.prototype).ma=8,D.G=1,D.hb=function(t){try{this.h.info("Origin Trials invoked: "+t)}catch(t){}},D.Ha=function(t){if(this.m)if(this.m=null,1==this.G){if(!t){this.V=Math.floor(1e5*Math.random()),t=this.V++;var e=new Me(this,this.h,t,void 0),n=this.s;if(this.P&&(n?rt(n=et(n),this.P):n=this.P),null===this.o&&(e.H=n),this.ja)t:{for(var r=0,s=0;s<this.l.length;s++){var i=this.l[s];if(void 0===(i="__data__"in i.g&&"string"==typeof(i=i.g.__data__)?i.length:void 0))break;if(4096<(r+=i)){r=s;break t}if(4096===r||s===this.l.length-1){r=s+1;break t}}r=1e3}else r=1e3;r=fr(this,e,r),un(s=rn(this.F),"RID",t),un(s,"CVER",22),this.D&&un(s,"X-HTTP-Session-Id",this.D),dr(this,s),this.o&&n&&rr(s,this.o,n),kn(this.i,e),this.Ra&&un(s,"TYPE","init"),this.ja?(un(s,"$req",r),un(s,"SID","null"),e.$=!0,qe(e,s,null)):qe(e,s,r),this.G=2}}else 3==this.G&&(t?lr(this,t):0==this.l.length||Nn(this.i)||lr(this))},D.Ga=function(){if(this.u=null,yr(this),this.$&&!(this.L||null==this.g||0>=this.O)){var t=2*this.O;this.h.info("BP detection timer enabled: "+t),this.B=Se(V(this.bb,this),t)}},D.bb=function(){this.B&&(this.B=null,this.h.info("BP detection timeout reached."),this.h.info("Buffering proxy detected and switch to long-polling!"),this.N=!1,this.L=!0,Ee(10),ar(this),yr(this))},D.ab=function(){null!=this.v&&(this.v=null,ar(this),mr(this),Ee(19))},D.jb=function(t){t?(this.h.info("Successfully pinged google.com"),Ee(2)):(this.h.info("Failed to ping google.com"),Ee(1))},(D=_r.prototype).xa=function(){},D.wa=function(){},D.va=function(){},D.ua=function(){},D.Oa=function(){},Ar.prototype.g=function(t,e){return new Dr(t,e)},q(Dr,Gt),Dr.prototype.m=function(){this.g.j=this.j,this.A&&(this.g.H=!0);var t=this.