UNPKG

firebase

Version:

Firebase JavaScript library for web and Node.js

1 lines • 684 kB
import{_isFirebaseServerApp as _,getApp as h,_getProvider,_removeServiceInstance as d,_registerComponent as g,registerVersion as f,SDK_VERSION as q}from"https://www.gstatic.com/firebasejs/12.17.1/firebase-app.js";const stringToByteArray$1=function(_){const h=[];let d=0;for(let g=0;g<_.length;g++){let f=_.charCodeAt(g);f<128?h[d++]=f:f<2048?(h[d++]=f>>6|192,h[d++]=63&f|128):55296==(64512&f)&&g+1<_.length&&56320==(64512&_.charCodeAt(g+1))?(f=65536+((1023&f)<<10)+(1023&_.charCodeAt(++g)),h[d++]=f>>18|240,h[d++]=f>>12&63|128,h[d++]=f>>6&63|128,h[d++]=63&f|128):(h[d++]=f>>12|224,h[d++]=f>>6&63|128,h[d++]=63&f|128)}return h},j={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(_,h){if(!Array.isArray(_))throw Error("encodeByteArray takes an array as a parameter");this.init_();const d=h?this.byteToCharMapWebSafe_:this.byteToCharMap_,g=[];for(let h=0;h<_.length;h+=3){const f=_[h],q=h+1<_.length,j=q?_[h+1]:0,ee=h+2<_.length,te=ee?_[h+2]:0,ne=f>>2,re=(3&f)<<4|j>>4;let se=(15&j)<<2|te>>6,ie=63&te;ee||(ie=64,q||(se=64)),g.push(d[ne],d[re],d[se],d[ie])}return g.join("")},encodeString(_,h){return this.HAS_NATIVE_SUPPORT&&!h?btoa(_):this.encodeByteArray(stringToByteArray$1(_),h)},decodeString(_,h){return this.HAS_NATIVE_SUPPORT&&!h?atob(_):function(_){const h=[];let d=0,g=0;for(;d<_.length;){const f=_[d++];if(f<128)h[g++]=String.fromCharCode(f);else if(f>191&&f<224){const q=_[d++];h[g++]=String.fromCharCode((31&f)<<6|63&q)}else if(f>239&&f<365){const q=((7&f)<<18|(63&_[d++])<<12|(63&_[d++])<<6|63&_[d++])-65536;h[g++]=String.fromCharCode(55296+(q>>10)),h[g++]=String.fromCharCode(56320+(1023&q))}else{const q=_[d++],j=_[d++];h[g++]=String.fromCharCode((15&f)<<12|(63&q)<<6|63&j)}}return h.join("")}(this.decodeStringToByteArray(_,h))},decodeStringToByteArray(_,h){this.init_();const d=h?this.charToByteMapWebSafe_:this.charToByteMap_,g=[];for(let h=0;h<_.length;){const f=d[_.charAt(h++)],q=h<_.length?d[_.charAt(h)]:0;++h;const j=h<_.length?d[_.charAt(h)]:64;++h;const ee=h<_.length?d[_.charAt(h)]:64;if(++h,null==f||null==q||null==j||null==ee)throw new DecodeBase64StringError;const te=f<<2|q>>4;if(g.push(te),64!==j){const _=q<<4&240|j>>2;if(g.push(_),64!==ee){const _=j<<6&192|ee;g.push(_)}}}return g},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let _=0;_<this.ENCODED_VALS.length;_++)this.byteToCharMap_[_]=this.ENCODED_VALS.charAt(_),this.charToByteMap_[this.byteToCharMap_[_]]=_,this.byteToCharMapWebSafe_[_]=this.ENCODED_VALS_WEBSAFE.charAt(_),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[_]]=_,_>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(_)]=_,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(_)]=_)}}};class DecodeBase64StringError extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const base64urlEncodeWithoutPadding=function(_){return function(_){const h=stringToByteArray$1(_);return j.encodeByteArray(h,!0)}(_).replace(/\./g,"")};function getGlobal(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("Unable to locate global object.")}const getDefaultsFromCookie=()=>{if("undefined"==typeof document)return;let _;try{_=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(_){return}const h=_&&function(_){try{return j.decodeString(_,!0)}catch(_){console.error("base64Decode failed: ",_)}return null}(_[1]);return h&&JSON.parse(h)},getDefaults=()=>{try{return getGlobal().__FIREBASE_DEFAULTS__||(()=>{if("undefined"==typeof process||void 0===process.env)return;const _=process.env.__FIREBASE_DEFAULTS__;return _?JSON.parse(_):void 0})()||getDefaultsFromCookie()}catch(_){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${_}`)}},getDefaultEmulatorHostnameAndPort=_=>{const h=(_=>getDefaults()?.emulatorHosts?.[_])(_);if(!h)return;const d=h.lastIndexOf(":");if(d<=0||d+1===h.length)throw new Error(`Invalid host ${h} with no separate hostname and port!`);const g=parseInt(h.substring(d+1),10);return"["===h[0]?[h.substring(1,d-1),g]:[h.substring(0,d),g]};function getUA(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function isNode(){const _=getDefaults()?.forceEnvironment;if("node"===_)return!0;if("browser"===_)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(_){return!1}}function isSafari(){return!isNode()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function isSafariOrWebkit(){return!isNode()&&!!navigator.userAgent&&(navigator.userAgent.includes("Safari")||navigator.userAgent.includes("WebKit"))&&!navigator.userAgent.includes("Chrome")}class FirebaseError extends Error{constructor(_,h,d){super(h),this.code=_,this.customData=d,this.name="FirebaseError",Object.setPrototypeOf(this,FirebaseError.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ErrorFactory.prototype.create)}}class ErrorFactory{constructor(_,h,d){this.service=_,this.serviceName=h,this.errors=d}create(_,...h){const d=h[0]||{},g=`${this.service}/${_}`,f=this.errors[_],q=f?function replaceTemplate(_,h){try{let d=0,g="";for(;d<_.length;){const f=_.indexOf("{$",d);if(-1===f){g+=_.substring(d);break}const q=_.indexOf("}",f+2);if(-1===q){g+=_.substring(d);break}const j=_.substring(f+2,q),ee=h[j];g+=_.substring(d,f)+(null!=ee?String(ee):`<${j}?>`),d=q+1}return g}catch(h){return _}}(f,d):"Error",j=`${this.serviceName}: ${q} (${g}).`;return new FirebaseError(g,j,d)}}function deepEqual(_,h){if(_===h)return!0;const d=Object.keys(_),g=Object.keys(h);for(const f of d){if(!g.includes(f))return!1;const d=_[f],q=h[f];if(isObject(d)&&isObject(q)){if(!deepEqual(d,q))return!1}else if(d!==q)return!1}for(const _ of g)if(!d.includes(_))return!1;return!0}function isObject(_){return null!==_&&"object"==typeof _}function getModularInstance(_){return _&&_._delegate?_._delegate:_}function isCloudWorkstation(_){try{return(_.startsWith("http://")||_.startsWith("https://")?new URL(_).hostname:_).endsWith(".cloudworkstations.dev")}catch{return!1}}async function pingServer(_){return(await fetch(_,{credentials:"include"})).ok}class Component{constructor(_,h,d){this.name=_,this.instanceFactory=h,this.type=d,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(_){return this.instantiationMode=_,this}setMultipleInstances(_){return this.multipleInstances=_,this}setServiceProps(_){return this.serviceProps=_,this}setInstanceCreatedCallback(_){return this.onInstanceCreated=_,this}}var ee,te,ne,re="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};(function(){var _;function m(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.C=Array(this.blockSize),this.o=this.h=0,this.u()}function n(_,h,d){d||(d=0);const g=Array(16);if("string"==typeof h)for(var f=0;f<16;++f)g[f]=h.charCodeAt(d++)|h.charCodeAt(d++)<<8|h.charCodeAt(d++)<<16|h.charCodeAt(d++)<<24;else for(f=0;f<16;++f)g[f]=h[d++]|h[d++]<<8|h[d++]<<16|h[d++]<<24;h=_.g[0],d=_.g[1],f=_.g[2];let q,j=_.g[3];q=h+(j^d&(f^j))+g[0]+3614090360&4294967295,q=j+(f^(h=d+(q<<7&4294967295|q>>>25))&(d^f))+g[1]+3905402710&4294967295,j=h+(q<<12&4294967295|q>>>20),q=f+(d^j&(h^d))+g[2]+606105819&4294967295,q=d+(h^(f=j+(q<<17&4294967295|q>>>15))&(j^h))+g[3]+3250441966&4294967295,q=h+(j^(d=f+(q<<22&4294967295|q>>>10))&(f^j))+g[4]+4118548399&4294967295,q=j+(f^(h=d+(q<<7&4294967295|q>>>25))&(d^f))+g[5]+1200080426&4294967295,j=h+(q<<12&4294967295|q>>>20),q=f+(d^j&(h^d))+g[6]+2821735955&4294967295,q=d+(h^(f=j+(q<<17&4294967295|q>>>15))&(j^h))+g[7]+4249261313&4294967295,q=h+(j^(d=f+(q<<22&4294967295|q>>>10))&(f^j))+g[8]+1770035416&4294967295,q=j+(f^(h=d+(q<<7&4294967295|q>>>25))&(d^f))+g[9]+2336552879&4294967295,j=h+(q<<12&4294967295|q>>>20),q=f+(d^j&(h^d))+g[10]+4294925233&4294967295,q=d+(h^(f=j+(q<<17&4294967295|q>>>15))&(j^h))+g[11]+2304563134&4294967295,q=h+(j^(d=f+(q<<22&4294967295|q>>>10))&(f^j))+g[12]+1804603682&4294967295,q=j+(f^(h=d+(q<<7&4294967295|q>>>25))&(d^f))+g[13]+4254626195&4294967295,j=h+(q<<12&4294967295|q>>>20),q=f+(d^j&(h^d))+g[14]+2792965006&4294967295,q=d+(h^(f=j+(q<<17&4294967295|q>>>15))&(j^h))+g[15]+1236535329&4294967295,q=h+(f^j&((d=f+(q<<22&4294967295|q>>>10))^f))+g[1]+4129170786&4294967295,q=j+(d^f&((h=d+(q<<5&4294967295|q>>>27))^d))+g[6]+3225465664&4294967295,j=h+(q<<9&4294967295|q>>>23),q=f+(h^d&(j^h))+g[11]+643717713&4294967295,q=d+(j^h&((f=j+(q<<14&4294967295|q>>>18))^j))+g[0]+3921069994&4294967295,q=h+(f^j&((d=f+(q<<20&4294967295|q>>>12))^f))+g[5]+3593408605&4294967295,q=j+(d^f&((h=d+(q<<5&4294967295|q>>>27))^d))+g[10]+38016083&4294967295,j=h+(q<<9&4294967295|q>>>23),q=f+(h^d&(j^h))+g[15]+3634488961&4294967295,q=d+(j^h&((f=j+(q<<14&4294967295|q>>>18))^j))+g[4]+3889429448&4294967295,q=h+(f^j&((d=f+(q<<20&4294967295|q>>>12))^f))+g[9]+568446438&4294967295,q=j+(d^f&((h=d+(q<<5&4294967295|q>>>27))^d))+g[14]+3275163606&4294967295,j=h+(q<<9&4294967295|q>>>23),q=f+(h^d&(j^h))+g[3]+4107603335&4294967295,q=d+(j^h&((f=j+(q<<14&4294967295|q>>>18))^j))+g[8]+1163531501&4294967295,q=h+(f^j&((d=f+(q<<20&4294967295|q>>>12))^f))+g[13]+2850285829&4294967295,q=j+(d^f&((h=d+(q<<5&4294967295|q>>>27))^d))+g[2]+4243563512&4294967295,j=h+(q<<9&4294967295|q>>>23),q=f+(h^d&(j^h))+g[7]+1735328473&4294967295,q=d+(j^h&((f=j+(q<<14&4294967295|q>>>18))^j))+g[12]+2368359562&4294967295,q=h+((d=f+(q<<20&4294967295|q>>>12))^f^j)+g[5]+4294588738&4294967295,q=j+((h=d+(q<<4&4294967295|q>>>28))^d^f)+g[8]+2272392833&4294967295,j=h+(q<<11&4294967295|q>>>21),q=f+(j^h^d)+g[11]+1839030562&4294967295,q=d+((f=j+(q<<16&4294967295|q>>>16))^j^h)+g[14]+4259657740&4294967295,q=h+((d=f+(q<<23&4294967295|q>>>9))^f^j)+g[1]+2763975236&4294967295,q=j+((h=d+(q<<4&4294967295|q>>>28))^d^f)+g[4]+1272893353&4294967295,j=h+(q<<11&4294967295|q>>>21),q=f+(j^h^d)+g[7]+4139469664&4294967295,q=d+((f=j+(q<<16&4294967295|q>>>16))^j^h)+g[10]+3200236656&4294967295,q=h+((d=f+(q<<23&4294967295|q>>>9))^f^j)+g[13]+681279174&4294967295,q=j+((h=d+(q<<4&4294967295|q>>>28))^d^f)+g[0]+3936430074&4294967295,j=h+(q<<11&4294967295|q>>>21),q=f+(j^h^d)+g[3]+3572445317&4294967295,q=d+((f=j+(q<<16&4294967295|q>>>16))^j^h)+g[6]+76029189&4294967295,q=h+((d=f+(q<<23&4294967295|q>>>9))^f^j)+g[9]+3654602809&4294967295,q=j+((h=d+(q<<4&4294967295|q>>>28))^d^f)+g[12]+3873151461&4294967295,j=h+(q<<11&4294967295|q>>>21),q=f+(j^h^d)+g[15]+530742520&4294967295,q=d+((f=j+(q<<16&4294967295|q>>>16))^j^h)+g[2]+3299628645&4294967295,q=h+(f^((d=f+(q<<23&4294967295|q>>>9))|~j))+g[0]+4096336452&4294967295,q=j+(d^((h=d+(q<<6&4294967295|q>>>26))|~f))+g[7]+1126891415&4294967295,j=h+(q<<10&4294967295|q>>>22),q=f+(h^(j|~d))+g[14]+2878612391&4294967295,q=d+(j^((f=j+(q<<15&4294967295|q>>>17))|~h))+g[5]+4237533241&4294967295,q=h+(f^((d=f+(q<<21&4294967295|q>>>11))|~j))+g[12]+1700485571&4294967295,q=j+(d^((h=d+(q<<6&4294967295|q>>>26))|~f))+g[3]+2399980690&4294967295,j=h+(q<<10&4294967295|q>>>22),q=f+(h^(j|~d))+g[10]+4293915773&4294967295,q=d+(j^((f=j+(q<<15&4294967295|q>>>17))|~h))+g[1]+2240044497&4294967295,q=h+(f^((d=f+(q<<21&4294967295|q>>>11))|~j))+g[8]+1873313359&4294967295,q=j+(d^((h=d+(q<<6&4294967295|q>>>26))|~f))+g[15]+4264355552&4294967295,j=h+(q<<10&4294967295|q>>>22),q=f+(h^(j|~d))+g[6]+2734768916&4294967295,q=d+(j^((f=j+(q<<15&4294967295|q>>>17))|~h))+g[13]+1309151649&4294967295,q=h+(f^((d=f+(q<<21&4294967295|q>>>11))|~j))+g[4]+4149444226&4294967295,q=j+(d^((h=d+(q<<6&4294967295|q>>>26))|~f))+g[11]+3174756917&4294967295,j=h+(q<<10&4294967295|q>>>22),q=f+(h^(j|~d))+g[2]+718787259&4294967295,q=d+(j^((f=j+(q<<15&4294967295|q>>>17))|~h))+g[9]+3951481745&4294967295,_.g[0]=_.g[0]+h&4294967295,_.g[1]=_.g[1]+(f+(q<<21&4294967295|q>>>11))&4294967295,_.g[2]=_.g[2]+f&4294967295,_.g[3]=_.g[3]+j&4294967295}function t(_,h){this.h=h;const d=[];let g=!0;for(let f=_.length-1;f>=0;f--){const q=0|_[f];g&&q==h||(d[f]=q,g=!1)}this.g=d}!function k(_,h){function c(){}c.prototype=h.prototype,_.F=h.prototype,_.prototype=new c,_.prototype.constructor=_,_.D=function(_,d,g){for(var f=Array(arguments.length-2),q=2;q<arguments.length;q++)f[q-2]=arguments[q];return h.prototype[d].apply(_,f)}}(m,(function l(){this.blockSize=-1})),m.prototype.u=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0},m.prototype.v=function(_,h){void 0===h&&(h=_.length);const d=h-this.blockSize,g=this.C;let f=this.h,q=0;for(;q<h;){if(0==f)for(;q<=d;)n(this,_,q),q+=this.blockSize;if("string"==typeof _){for(;q<h;)if(g[f++]=_.charCodeAt(q++),f==this.blockSize){n(this,g),f=0;break}}else for(;q<h;)if(g[f++]=_[q++],f==this.blockSize){n(this,g),f=0;break}}this.h=f,this.o+=h},m.prototype.A=function(){var _=Array((this.h<56?this.blockSize:2*this.blockSize)-this.h);_[0]=128;for(var h=1;h<_.length-8;++h)_[h]=0;h=8*this.o;for(var d=_.length-8;d<_.length;++d)_[d]=255&h,h/=256;for(this.v(_),_=Array(16),h=0,d=0;d<4;++d)for(let g=0;g<32;g+=8)_[h++]=this.g[d]>>>g&255;return _};var h={};function u(_){return-128<=_&&_<128?function p(_,d){var g=h;return Object.prototype.hasOwnProperty.call(g,_)?g[_]:g[_]=d(_)}(_,(function(_){return new t([0|_],_<0?-1:0)})):new t([0|_],_<0?-1:0)}function v(_){if(isNaN(_)||!isFinite(_))return d;if(_<0)return x(v(-_));const h=[];let g=1;for(let d=0;_>=g;d++)h[d]=_/g|0,g*=4294967296;return new t(h,0)}var d=u(0),g=u(1),f=u(16777216);function C(_){if(0!=_.h)return!1;for(let h=0;h<_.g.length;h++)if(0!=_.g[h])return!1;return!0}function B(_){return-1==_.h}function x(_){const h=_.g.length,d=[];for(let g=0;g<h;g++)d[g]=~_.g[g];return new t(d,~_.h).add(g)}function F(_,h){return _.add(x(h))}function G(_,h){for(;(65535&_[h])!=_[h];)_[h+1]+=_[h]>>>16,_[h]&=65535,h++}function H(_,h){this.g=_,this.h=h}function D(_,h){if(C(h))throw Error("division by zero");if(C(_))return new H(d,d);if(B(_))return h=D(x(_),h),new H(x(h.g),x(h.h));if(B(h))return h=D(_,x(h)),new H(x(h.g),h.h);if(_.g.length>30){if(B(_)||B(h))throw Error("slowDivide_ only works with positive integers.");for(var f=g,q=h;q.l(_)<=0;)f=I(f),q=I(q);var j=J(f,1),ee=J(q,1);for(q=J(q,2),f=J(f,2);!C(q);){var te=ee.add(q);te.l(_)<=0&&(j=j.add(f),ee=te),q=J(q,1),f=J(f,1)}return h=F(_,j.j(h)),new H(j,h)}for(j=d;_.l(h)>=0;){for(f=Math.max(1,Math.floor(_.m()/h.m())),q=(q=Math.ceil(Math.log(f)/Math.LN2))<=48?1:Math.pow(2,q-48),te=(ee=v(f)).j(h);B(te)||te.l(_)>0;)te=(ee=v(f-=q)).j(h);C(ee)&&(ee=g),j=j.add(ee),_=F(_,te)}return new H(j,_)}function I(_){const h=_.g.length+1,d=[];for(let g=0;g<h;g++)d[g]=_.i(g)<<1|_.i(g-1)>>>31;return new t(d,_.h)}function J(_,h){const d=h>>5;h%=32;const g=_.g.length-d,f=[];for(let q=0;q<g;q++)f[q]=h>0?_.i(q+d)>>>h|_.i(q+d+1)<<32-h:_.i(q+d);return new t(f,_.h)}(_=t.prototype).m=function(){if(B(this))return-x(this).m();let _=0,h=1;for(let d=0;d<this.g.length;d++){const g=this.i(d);_+=(g>=0?g:4294967296+g)*h,h*=4294967296}return _},_.toString=function(_){if((_=_||10)<2||36<_)throw Error("radix out of range: "+_);if(C(this))return"0";if(B(this))return"-"+x(this).toString(_);const h=v(Math.pow(_,6));var d=this;let g="";for(;;){const f=D(d,h).g;let q=(((d=F(d,f.j(h))).g.length>0?d.g[0]:d.h)>>>0).toString(_);if(C(d=f))return q+g;for(;q.length<6;)q="0"+q;g=q+g}},_.i=function(_){return _<0?0:_<this.g.length?this.g[_]:this.h},_.l=function(_){return B(_=F(this,_))?-1:C(_)?0:1},_.abs=function(){return B(this)?x(this):this},_.add=function(_){const h=Math.max(this.g.length,_.g.length),d=[];let g=0;for(let f=0;f<=h;f++){let h=g+(65535&this.i(f))+(65535&_.i(f)),q=(h>>>16)+(this.i(f)>>>16)+(_.i(f)>>>16);g=q>>>16,h&=65535,q&=65535,d[f]=q<<16|h}return new t(d,-2147483648&d[d.length-1]?-1:0)},_.j=function(_){if(C(this)||C(_))return d;if(B(this))return B(_)?x(this).j(x(_)):x(x(this).j(_));if(B(_))return x(this.j(x(_)));if(this.l(f)<0&&_.l(f)<0)return v(this.m()*_.m());const h=this.g.length+_.g.length,g=[];for(var q=0;q<2*h;q++)g[q]=0;for(q=0;q<this.g.length;q++)for(let h=0;h<_.g.length;h++){const d=this.i(q)>>>16,f=65535&this.i(q),j=_.i(h)>>>16,ee=65535&_.i(h);g[2*q+2*h]+=f*ee,G(g,2*q+2*h),g[2*q+2*h+1]+=d*ee,G(g,2*q+2*h+1),g[2*q+2*h+1]+=f*j,G(g,2*q+2*h+1),g[2*q+2*h+2]+=d*j,G(g,2*q+2*h+2)}for(_=0;_<h;_++)g[_]=g[2*_+1]<<16|g[2*_];for(_=h;_<2*h;_++)g[_]=0;return new t(g,0)},_.B=function(_){return D(this,_).h},_.and=function(_){const h=Math.max(this.g.length,_.g.length),d=[];for(let g=0;g<h;g++)d[g]=this.i(g)&_.i(g);return new t(d,this.h&_.h)},_.or=function(_){const h=Math.max(this.g.length,_.g.length),d=[];for(let g=0;g<h;g++)d[g]=this.i(g)|_.i(g);return new t(d,this.h|_.h)},_.xor=function(_){const h=Math.max(this.g.length,_.g.length),d=[];for(let g=0;g<h;g++)d[g]=this.i(g)^_.i(g);return new t(d,this.h^_.h)},m.prototype.digest=m.prototype.A,m.prototype.reset=m.prototype.u,m.prototype.update=m.prototype.v,te=m,t.prototype.add=t.prototype.add,t.prototype.multiply=t.prototype.j,t.prototype.modulo=t.prototype.B,t.prototype.compare=t.prototype.l,t.prototype.toNumber=t.prototype.m,t.prototype.toString=t.prototype.toString,t.prototype.getBits=t.prototype.i,t.fromNumber=v,t.fromString=function y(_,h){if(0==_.length)throw Error("number format error: empty string");if((h=h||10)<2||36<h)throw Error("radix out of range: "+h);if("-"==_.charAt(0))return x(y(_.substring(1),h));if(_.indexOf("-")>=0)throw Error('number format error: interior "-" character');const g=v(Math.pow(h,8));let f=d;for(let d=0;d<_.length;d+=8){var q=Math.min(8,_.length-d);const j=parseInt(_.substring(d,d+q),h);q<8?(q=v(Math.pow(h,q)),f=f.j(q).add(v(j))):(f=f.j(g),f=f.add(v(j)))}return f},ee=t}).apply(void 0!==re?re:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}),function(_){_[_.DEBUG=0]="DEBUG",_[_.VERBOSE=1]="VERBOSE",_[_.INFO=2]="INFO",_[_.WARN=3]="WARN",_[_.ERROR=4]="ERROR",_[_.SILENT=5]="SILENT"}(ne||(ne={}));const se={debug:ne.DEBUG,verbose:ne.VERBOSE,info:ne.INFO,warn:ne.WARN,error:ne.ERROR,silent:ne.SILENT},ie=ne.INFO,ae={[ne.DEBUG]:"log",[ne.VERBOSE]:"log",[ne.INFO]:"info",[ne.WARN]:"warn",[ne.ERROR]:"error"},defaultLogHandler=(_,h,...d)=>{if(h<_.logLevel)return;const g=(new Date).toISOString(),f=ae[h];if(!f)throw new Error(`Attempted to log a message with an invalid logType (value: ${h})`);console[f](`[${g}] ${_.name}:`,...d)};var oe,Be,ue,le,ce,_e,he,de,Ce,Ee,pe,me,ge,fe,Te,Ie,Ae,Pe,Re,Ve,De,ye,we,be="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function __setFunctionName(_,h,d){return"symbol"==typeof h&&(h=h.description?"[".concat(h.description,"]"):""),Object.defineProperty(_,"name",{configurable:!0,value:d?"".concat(d," ",h):h})}(function(){var _,h=Object.defineProperty;var d=function ba(_){_=["object"==typeof globalThis&&globalThis,_,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof be&&be];for(var h=0;h<_.length;++h){var d=_[h];if(d&&d.Math==Math)return d}throw Error("Cannot find global object")}(this);function da(_,g){if(g)e:{var f=d;_=_.split(".");for(var q=0;q<_.length-1;q++){var j=_[q];if(!(j in f))break e;f=f[j]}(g=g(q=f[_=_[_.length-1]]))!=q&&null!=g&&h(f,_,{configurable:!0,writable:!0,value:g})}}da("Symbol.dispose",(function(_){return _||Symbol("Symbol.dispose")})),da("Array.prototype.values",(function(_){return _||function(){return this[Symbol.iterator]()}})),da("Object.entries",(function(_){return _||function(_){var h,d=[];for(h in _)Object.prototype.hasOwnProperty.call(_,h)&&d.push([h,_[h]]);return d}}));var g=g||{},f=this||self;function n(_){var h=typeof _;return"object"==h&&null!=_||"function"==h}function fa(_,h,d){return _.call.apply(_.bind,arguments)}function p(_,h,d){return(p=fa).apply(null,arguments)}function ha(_,h){var d=Array.prototype.slice.call(arguments,1);return function(){var h=d.slice();return h.push.apply(h,arguments),_.apply(this,h)}}function t(_,h){function c(){}c.prototype=h.prototype,_.Z=h.prototype,_.prototype=new c,_.prototype.constructor=_,_.Ob=function(_,d,g){for(var f=Array(arguments.length-2),q=2;q<arguments.length;q++)f[q-2]=arguments[q];return h.prototype[d].apply(_,f)}}var q="undefined"!=typeof AsyncContext&&"function"==typeof AsyncContext.Snapshot?_=>_&&AsyncContext.Snapshot.wrap(_):_=>_;function ja(_){const h=_.length;if(h>0){const d=Array(h);for(let g=0;g<h;g++)d[g]=_[g];return d}return[]}function ka(_,h){for(let h=1;h<arguments.length;h++){const g=arguments[h];var d=typeof g;if("array"==(d="object"!=d?d:g?Array.isArray(g)?"array":d:"null")||"object"==d&&"number"==typeof g.length){d=_.length||0;const h=g.length||0;_.length=d+h;for(let f=0;f<h;f++)_[d+f]=g[f]}else _.push(g)}}function ma(_){f.setTimeout((()=>{throw _}),0)}function na(){var _=ne;let h=null;return _.g&&(h=_.g,_.g=_.g.next,_.g||(_.h=null),h.next=null),h}var j=new class la{constructor(_,h){this.i=_,this.j=h,this.h=0,this.g=null}get(){let _;return this.h>0?(this.h--,_=this.g,this.g=_.next,_.next=null):_=this.i(),_}}((()=>new ra),(_=>_.reset()));class ra{constructor(){this.next=this.g=this.h=null}set(_,h){this.h=_,this.g=h,this.next=null}reset(){this.next=this.g=this.h=null}}let ee,te=!1,ne=new class pa{constructor(){this.h=this.g=null}add(_,h){const d=j.get();d.set(_,h),this.h?this.h.next=d:this.g=d,this.h=d}},ta=()=>{const _=Promise.resolve(void 0);ee=()=>{_.then(sa)}};function sa(){for(var _;_=na();){try{_.h.call(_.g)}catch(_){ma(_)}var h=j;h.j(_),h.h<100&&(h.h++,_.next=h.g,h.g=_)}te=!1}function w(){this.u=this.u,this.C=this.C}function x(_,h){this.type=_,this.g=this.target=h,this.defaultPrevented=!1}w.prototype.u=!1,w.prototype.dispose=function(){this.u||(this.u=!0,this.N())},w.prototype[Symbol.dispose]=function(){this.dispose()},w.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},x.prototype.h=function(){this.defaultPrevented=!0};var re=function(){if(!f.addEventListener||!Object.defineProperty)return!1;var _=!1,h=Object.defineProperty({},"passive",{get:function(){_=!0}});try{const c=()=>{};f.addEventListener("test",c,h),f.removeEventListener("test",c,h)}catch(_){}return _}();function y(_){return/^[\s\xa0]*$/.test(_)}function z(_,h){x.call(this,_?_.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,_&&this.init(_,h)}t(z,x),z.prototype.init=function(_,h){const d=this.type=_.type,g=_.changedTouches&&_.changedTouches.length?_.changedTouches[0]:null;this.target=_.target||_.srcElement,this.g=h,(h=_.relatedTarget)||("mouseover"==d?h=_.fromElement:"mouseout"==d&&(h=_.toElement)),this.relatedTarget=h,g?(this.clientX=void 0!==g.clientX?g.clientX:g.pageX,this.clientY=void 0!==g.clientY?g.clientY:g.pageY,this.screenX=g.screenX||0,this.screenY=g.screenY||0):(this.clientX=void 0!==_.clientX?_.clientX:_.pageX,this.clientY=void 0!==_.clientY?_.clientY:_.pageY,this.screenX=_.screenX||0,this.screenY=_.screenY||0),this.button=_.button,this.key=_.key||"",this.ctrlKey=_.ctrlKey,this.altKey=_.altKey,this.shiftKey=_.shiftKey,this.metaKey=_.metaKey,this.pointerId=_.pointerId||0,this.pointerType=_.pointerType,this.state=_.state,this.i=_,_.defaultPrevented&&z.Z.h.call(this)},z.prototype.h=function(){z.Z.h.call(this);const _=this.i;_.preventDefault?_.preventDefault():_.returnValue=!1};var se="closure_listenable_"+(1e6*Math.random()|0),ie=0;function wa(_,h,d,g,f){this.listener=_,this.proxy=null,this.src=h,this.type=d,this.capture=!!g,this.ha=f,this.key=++ie,this.da=this.fa=!1}function xa(_){_.da=!0,_.listener=null,_.proxy=null,_.src=null,_.ha=null}function ya(_,h,d){for(const g in _)h.call(d,_[g],g,_)}function Ba(_){const h={};for(const d in _)h[d]=_[d];return h}const ae="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Da(_,h){let d,g;for(let h=1;h<arguments.length;h++){for(d in g=arguments[h],g)_[d]=g[d];for(let h=0;h<ae.length;h++)d=ae[h],Object.prototype.hasOwnProperty.call(g,d)&&(_[d]=g[d])}}function Ea(_){this.src=_,this.g={},this.h=0}function Ga(_,h){const d=h.type;if(d in _.g){var g,f=_.g[d],q=Array.prototype.indexOf.call(f,h,void 0);(g=q>=0)&&Array.prototype.splice.call(f,q,1),g&&(xa(h),0==_.g[d].length&&(delete _.g[d],_.h--))}}function Fa(_,h,d,g){for(let f=0;f<_.length;++f){const q=_[f];if(!q.da&&q.listener==h&&q.capture==!!d&&q.ha==g)return f}return-1}Ea.prototype.add=function(_,h,d,g,f){const q=_.toString();(_=this.g[q])||(_=this.g[q]=[],this.h++);const j=Fa(_,h,g,f);return j>-1?(h=_[j],d||(h.fa=!1)):((h=new wa(h,this.src,q,!!g,f)).fa=d,_.push(h)),h};var Ce="closure_lm_"+(1e6*Math.random()|0),Ee={};function Ka(_,h,d,g,f){if(Array.isArray(h)){for(let q=0;q<h.length;q++)Ka(_,h[q],d,g,f);return null}return d=Ma(d),_&&_[se]?_.J(h,d,!!n(g)&&!!g.capture,f):function Na(_,h,d,g,f,q){if(!h)throw Error("Invalid event type");const j=n(f)?!!f.capture:!!f;let ee=Oa(_);if(ee||(_[Ce]=ee=new Ea(_)),d=ee.add(h,d,g,j,q),d.proxy)return d;if(g=function Pa(){function a(h){return _.call(a.src,a.listener,h)}const _=Ra;return a}(),d.proxy=g,g.src=_,g.listener=d,_.addEventListener)re||(f=j),void 0===f&&(f=!1),_.addEventListener(h.toString(),g,f);else if(_.attachEvent)_.attachEvent(Qa(h.toString()),g);else{if(!_.addListener||!_.removeListener)throw Error("addEventListener and attachEvent are unavailable.");_.addListener(g)}return d}(_,h,d,!1,g,f)}function Sa(_,h,d,g,f){if(Array.isArray(h))for(var q=0;q<h.length;q++)Sa(_,h[q],d,g,f);else g=n(g)?!!g.capture:!!g,d=Ma(d),_&&_[se]?(_=_.i,(q=String(h).toString())in _.g&&((d=Fa(h=_.g[q],d,g,f))>-1&&(xa(h[d]),Array.prototype.splice.call(h,d,1),0==h.length&&(delete _.g[q],_.h--)))):_&&(_=Oa(_))&&(h=_.g[h.toString()],_=-1,h&&(_=Fa(h,d,g,f)),(d=_>-1?h[_]:null)&&Ta(d))}function Ta(_){if("number"!=typeof _&&_&&!_.da){var h=_.src;if(h&&h[se])Ga(h.i,_);else{var d=_.type,g=_.proxy;h.removeEventListener?h.removeEventListener(d,g,_.capture):h.detachEvent?h.detachEvent(Qa(d),g):h.addListener&&h.removeListener&&h.removeListener(g),(d=Oa(h))?(Ga(d,_),0==d.h&&(d.src=null,h[Ce]=null)):xa(_)}}}function Qa(_){return _ in Ee?Ee[_]:Ee[_]="on"+_}function Ra(_,h){if(_.da)_=!0;else{h=new z(h,this);const d=_.listener,g=_.ha||_.src;_.fa&&Ta(_),_=d.call(g,h)}return _}function Oa(_){return(_=_[Ce])instanceof Ea?_:null}var pe="__closure_events_fn_"+(1e9*Math.random()>>>0);function Ma(_){return"function"==typeof _?_:(_[pe]||(_[pe]=function(h){return _.handleEvent(h)}),_[pe])}function C(){w.call(this),this.i=new Ea(this),this.M=this,this.G=null}function D(_,h){var d,g=_.G;if(g)for(d=[];g;g=g.G)d.push(g);if(_=_.M,g=h.type||h,"string"==typeof h)h=new x(h,_);else if(h instanceof x)h.target=h.target||_;else{var f=h;Da(h=new x(g,_),f)}let q,j;if(f=!0,d)for(j=d.length-1;j>=0;j--)q=h.g=d[j],f=Va(q,g,!0,h)&&f;if(q=h.g=_,f=Va(q,g,!0,h)&&f,f=Va(q,g,!1,h)&&f,d)for(j=0;j<d.length;j++)q=h.g=d[j],f=Va(q,g,!1,h)&&f}function Va(_,h,d,g){if(!(h=_.i.g[String(h)]))return!0;h=h.concat();let f=!0;for(let q=0;q<h.length;++q){const j=h[q];if(j&&!j.da&&j.capture==d){const h=j.listener,d=j.ha||j.src;j.fa&&Ga(_.i,j),f=!1!==h.call(d,g)&&f}}return f&&!g.defaultPrevented}function Xa(_){_.g=function Wa(_,h){if("function"!=typeof _){if(!_||"function"!=typeof _.handleEvent)throw Error("Invalid listener argument");_=p(_.handleEvent,_)}return Number(h)>2147483647?-1:f.setTimeout(_,h||0)}((()=>{_.g=null,_.i&&(_.i=!1,Xa(_))}),_.l);const h=_.h;_.h=null,_.m.apply(null,h)}t(C,w),C.prototype[se]=!0,C.prototype.removeEventListener=function(_,h,d,g){Sa(this,_,h,d,g)},C.prototype.N=function(){if(C.Z.N.call(this),this.i){var _=this.i;for(const h in _.g){const d=_.g[h];for(let _=0;_<d.length;_++)xa(d[_]);delete _.g[h],_.h--}}this.G=null},C.prototype.J=function(_,h,d,g){return this.i.add(String(_),h,!1,d,g)},C.prototype.K=function(_,h,d,g){return this.i.add(String(_),h,!0,d,g)};class Ya extends w{constructor(_,h){super(),this.m=_,this.l=h,this.h=null,this.i=!1,this.g=null}j(_){this.h=arguments,this.g?this.i=!0:Xa(this)}N(){super.N(),this.g&&(f.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function E(_){w.call(this),this.h=_,this.g={}}t(E,w);var me=[];function $a(_){ya(_.g,(function(_,h){this.g.hasOwnProperty(h)&&Ta(_)}),_),_.g={}}E.prototype.N=function(){E.Z.N.call(this),$a(this)},E.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var ge=f.JSON.stringify,fe=f.JSON.parse,Te=class{stringify(_){return f.JSON.stringify(_,void 0)}parse(_){return f.JSON.parse(_,void 0)}};function eb(){}function fb(){}var Ie={OPEN:"a",hb:"b",ERROR:"c",tb:"d"};function gb(){x.call(this,"d")}function hb(){x.call(this,"c")}t(gb,x),t(hb,x);var Ae={},Pe=null;function jb(){return Pe=Pe||new C}function kb(_){x.call(this,Ae.Ia,_)}function lb(_){const h=jb();D(h,new kb(h))}function mb(_,h){x.call(this,Ae.STAT_EVENT,_),this.stat=h}function J(_){const h=jb();D(h,new mb(h,_))}function nb(_,h){x.call(this,Ae.Ja,_),this.size=h}function ob(_,h){if("function"!=typeof _)throw Error("Fn must not be null and must be a function");return f.setTimeout((function(){_()}),h)}function pb(){this.g=!0}function K(_,h,d,g){_.info((function(){return"XMLHTTP TEXT ("+h+"): "+function sb(_,h){if(!_.g)return h;if(!h)return null;try{const q=JSON.parse(h);if(q)for(_=0;_<q.length;_++)if(Array.isArray(q[_])){var d=q[_];if(!(d.length<2)){var g=d[1];if(Array.isArray(g)&&!(g.length<1)){var f=g[0];if("noop"!=f&&"stop"!=f&&"close"!=f)for(let _=1;_<g.length;_++)g[_]=""}}}return ge(q)}catch(_){return h}}(_,d)+(g?" "+g:"")}))}Ae.Ia="serverreachability",t(kb,x),Ae.STAT_EVENT="statevent",t(mb,x),Ae.Ja="timingevent",t(nb,x),pb.prototype.ua=function(){this.g=!1},pb.prototype.info=function(){};var Re,Ve={NO_ERROR:0,cb:1,qb:2,pb:3,kb:4,ob:5,rb:6,Ga:7,TIMEOUT:8,ub:9},De={ib:"complete",Fb:"success",ERROR:"error",Ga:"abort",xb:"ready",yb:"readystatechange",TIMEOUT:"timeout",sb:"incrementaldata",wb:"progress",lb:"downloadprogress",Nb:"uploadprogress"};function xb(){}function L(_){return encodeURIComponent(String(_))}function yb(_){var h=1;_=_.split(":");const d=[];for(;h>0&&_.length;)d.push(_.shift()),h--;return _.length&&d.push(_.join(":")),d}function N(_,h,d,g){this.j=_,this.i=h,this.l=d,this.S=g||1,this.V=new E(this),this.H=45e3,this.J=null,this.o=!1,this.u=this.B=this.A=this.M=this.F=this.T=this.D=null,this.G=[],this.g=null,this.C=0,this.m=this.v=null,this.X=-1,this.K=!1,this.P=0,this.O=null,this.W=this.L=this.U=this.R=!1,this.h=new zb}function zb(){this.i=null,this.g="",this.h=!1}t(xb,eb),xb.prototype.g=function(){return new XMLHttpRequest},Re=new xb;var ye={},we={};function Cb(_,h,d){_.M=1,_.A=Db(O(h)),_.u=d,_.R=!0,Eb(_,null)}function Eb(_,h){_.F=Date.now(),Fb(_),_.B=O(_.A);var d=_.B,g=_.S;Array.isArray(g)||(g=[String(g)]),Gb(d.i,"t",g),_.C=0,d=_.j.L,_.h=new zb,_.g=Hb(_.j,d?h:null,!_.u),_.P>0&&(_.O=new Ya(p(_.Y,_,_.g),_.P)),h=_.V,d=_.g,g=_.ba;var f="readystatechange";Array.isArray(f)||(f&&(me[0]=f.toString()),f=me);for(let _=0;_<f.length;_++){const q=Ka(d,f[_],g||h.handleEvent,!1,h.h||h);if(!q)break;h.g[q.key]=q}h=_.J?Ba(_.J):{},_.u?(_.v||(_.v="POST"),h["Content-Type"]="application/x-www-form-urlencoded",_.g.ea(_.B,_.v,_.u,h)):(_.v="GET",_.g.ea(_.B,_.v,null,h)),lb(),function qb(_,h,d,g,f,q){_.info((function(){if(_.g)if(q){var j="",ee=q.split("&");for(let _=0;_<ee.length;_++){var te=ee[_].split("=");if(te.length>1){const _=te[0];te=te[1];const h=_.split("_");j=h.length>=2&&"type"==h[1]?j+(_+"=")+te+"&":j+(_+"=redacted&")}}}else j=null;else j=q;return"XMLHTTP REQ ("+g+") [attempt "+f+"]: "+h+"\n"+d+"\n"+j}))}(_.i,_.v,_.B,_.l,_.S,_.u)}function Ob(_){return!!_.g&&("GET"==_.v&&2!=_.M&&_.j.Aa)}function Nb(_,h){var d=_.C,g=h.indexOf("\n",d);return-1==g?we:(d=Number(h.substring(d,g)),isNaN(d)?ye:(g+=1)+d>h.length?we:(h=h.slice(g,g+d),_.C=g+d,h))}function Fb(_){_.T=Date.now()+_.H,Sb(_,_.H)}function Sb(_,h){if(null!=_.D)throw Error("WatchDog timer not null");_.D=ob(p(_.aa,_),h)}function Jb(_){_.D&&(f.clearTimeout(_.D),_.D=null)}function Mb(_){0==_.j.I||_.K||Qb(_.j,_)}function Q(_){Jb(_);var h=_.O;h&&"function"==typeof h.dispose&&h.dispose(),_.O=null,$a(_.V),_.g&&(h=_.g,_.g=null,h.abort(),h.dispose())}function Lb(_,h){try{var d=_.j;if(0!=d.I&&(d.g==_||Tb(d.h,_)))if(!_.L&&Tb(d.h,_)&&3==d.I){try{var g=d.Ba.g.parse(h)}catch(_){g=null}if(Array.isArray(g)&&3==g.length){var f=g;if(0==f[0]){e:if(!d.v){if(d.g){if(!(d.g.F+3e3<_.F))break e;Ub(d),Vb(d)}Wb(d),J(18)}}else d.xa=f[1],0<d.xa-d.K&&f[2]<37500&&d.F&&0==d.A&&!d.C&&(d.C=ob(p(d.Va,d),6e3));Xb(d.h)<=1&&d.ta&&(d.ta=void 0)}else R(d,11)}else if((_.L||d.g==_)&&Ub(d),!y(h))for(f=d.Ba.g.parse(h),h=0;h<f.length;h++){let ne=f[h];const re=ne[0];if(!(re<=d.K))if(d.K=re,ne=ne[1],2==d.I)if("c"==ne[0]){d.M=ne[1],d.ba=ne[2];const h=ne[3];null!=h&&(d.ka=h,d.j.info("VER="+d.ka));const f=ne[4];null!=f&&(d.za=f,d.j.info("SVER="+d.za));const re=ne[5];null!=re&&"number"==typeof re&&re>0&&(g=1.5*re,d.O=g,d.j.info("backChannelRequestTimeoutMs_="+g)),g=d;const se=_.g;if(se){const _=se.g?se.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(_){var q=g.h;q.g||-1==_.indexOf("spdy")&&-1==_.indexOf("quic")&&-1==_.indexOf("h2")||(q.j=q.l,q.g=new Set,q.h&&(Yb(q,q.h),q.h=null))}if(g.G){const _=se.g?se.g.getResponseHeader("X-HTTP-Session-Id"):null;_&&(g.wa=_,S(g.J,g.G,_))}}d.I=3,d.l&&d.l.ra(),d.aa&&(d.T=Date.now()-_.F,d.j.info("Handshake RTT: "+d.T+"ms"));var j=_;if((g=d).na=Zb(g,g.L?g.ba:null,g.W),j.L){$b(g.h,j);var ee=j,te=g.O;te&&(ee.H=te),ee.D&&(Jb(ee),Fb(ee)),g.g=j}else ac(g);d.i.length>0&&bc(d)}else"stop"!=ne[0]&&"close"!=ne[0]||R(d,7);else 3==d.I&&("stop"==ne[0]||"close"==ne[0]?"stop"==ne[0]?R(d,7):cc(d):"noop"!=ne[0]&&d.l&&d.l.qa(ne),d.A=0)}lb()}catch(_){}}N.prototype.ba=function(_){_=_.target;const h=this.O;h&&3==P(_)?h.j():this.Y(_)},N.prototype.Y=function(_){try{if(_==this.g)e:{const te=P(this.g),ne=this.g.ya();this.g.ca();if(!(te<3)&&(3!=te||this.g&&(this.h.h||this.g.la()||Ib(this.g)))){this.K||4!=te||7==ne||lb(),Jb(this);var h=this.g.ca();this.X=h;var d=function Kb(_){if(!Ob(_))return _.g.la();const h=Ib(_.g);if(""===h)return"";let d="";const g=h.length,q=4==P(_.g);if(!_.h.i){if("undefined"==typeof TextDecoder)return Q(_),Mb(_),"";_.h.i=new f.TextDecoder}for(let f=0;f<g;f++)_.h.h=!0,d+=_.h.i.decode(h[f],{stream:!(q&&f==g-1)});return h.length=0,_.h.g+=d,_.C=0,_.h.g}(this);if(this.o=200==h,function rb(_,h,d,g,f,q,j){_.info((function(){return"XMLHTTP RESP ("+g+") [ attempt "+f+"]: "+h+"\n"+d+"\n"+q+" "+j}))}(this.i,this.v,this.B,this.l,this.S,te,h),this.o){if(this.U&&!this.L){t:{if(this.g){var g,q=this.g;if((g=q.g?q.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!y(g)){var j=g;break t}}j=null}if(!(_=j)){this.o=!1,this.m=3,J(12),Q(this),Mb(this);break e}K(this.i,this.l,_,"Initial handshake response via X-HTTP-Initial-Response"),this.L=!0,Lb(this,_)}if(this.R){let h;for(_=!0;!this.K&&this.C<d.length;){if(h=Nb(this,d),h==we){4==te&&(this.m=4,J(14),_=!1),K(this.i,this.l,null,"[Incomplete Response]");break}if(h==ye){this.m=4,J(15),K(this.i,this.l,d,"[Invalid Chunk]"),_=!1;break}K(this.i,this.l,h,null),Lb(this,h)}if(Ob(this)&&0!=this.C&&(this.h.g=this.h.g.slice(this.C),this.C=0),4!=te||0!=d.length||this.h.h||(this.m=1,J(16),_=!1),this.o=this.o&&_,_){if(d.length>0&&!this.W){this.W=!0;var ee=this.j;ee.g==this&&ee.aa&&!ee.P&&(ee.j.info("Great, no buffering proxy detected. Bytes received: "+d.length),Pb(ee),ee.P=!0,J(11))}}else K(this.i,this.l,d,"[Invalid Chunked Response]"),Q(this),Mb(this)}else K(this.i,this.l,d,null),Lb(this,d);4==te&&Q(this),this.o&&!this.K&&(4==te?Qb(this.j,this):(this.o=!1,Fb(this)))}else(function Rb(_){const h={};_=(_.g&&P(_)>=2&&_.g.getAllResponseHeaders()||"").split("\r\n");for(let g=0;g<_.length;g++){if(y(_[g]))continue;var d=yb(_[g]);const f=d[0];if("string"!=typeof(d=d[1]))continue;d=d.trim();const q=h[f]||[];h[f]=q,q.push(d)}!function Aa(_,h){for(const d in _)h.call(void 0,_[d],d,_)}(h,(function(_){return _.join(", ")}))})(this.g),400==h&&d.indexOf("Unknown SID")>0?(this.m=3,J(12)):(this.m=0,J(13)),Q(this),Mb(this)}}}catch(_){}},N.prototype.cancel=function(){this.K=!0,Q(this)},N.prototype.aa=function(){this.D=null;const _=Date.now();_-this.T>=0?(function tb(_,h){_.info((function(){return"TIMEOUT: "+h}))}(this.i,this.B),2!=this.M&&(lb(),J(17)),Q(this),this.m=2,Mb(this)):Sb(this,this.T-_)};var Se=class{constructor(_,h){this.g=_,this.map=h}};function ec(_){this.l=_||10,f.PerformanceNavigationTiming?_=(_=f.performance.getEntriesByType("navigation")).length>0&&("hq"==_[0].nextHopProtocol||"h2"==_[0].nextHopProtocol):_=!!(f.chrome&&f.chrome.loadTimes&&f.chrome.loadTimes()&&f.chrome.loadTimes().wasFetchedViaSpdy),this.j=_?this.l:1,this.g=null,this.j>1&&(this.g=new Set),this.h=null,this.i=[]}function fc(_){return!!_.h||!!_.g&&_.g.size>=_.j}function Xb(_){return _.h?1:_.g?_.g.size:0}function Tb(_,h){return _.h?_.h==h:!!_.g&&_.g.has(h)}function Yb(_,h){_.g?_.g.add(h):_.h=h}function $b(_,h){_.h&&_.h==h?_.h=null:_.g&&_.g.has(h)&&_.g.delete(h)}function hc(_){if(null!=_.h)return _.i.concat(_.h.G);if(null!=_.g&&0!==_.g.size){let h=_.i;for(const d of _.g.values())h=h.concat(d.G);return h}return ja(_.i)}ec.prototype.cancel=function(){if(this.i=hc(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(const _ of this.g.values())_.cancel();this.g.clear()}};var ve=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function T(_){let h;this.g=this.o=this.j="",this.u=null,this.m=this.h="",this.l=!1,_ instanceof T?(this.l=_.l,kc(this,_.j),this.o=_.o,this.g=_.g,lc(this,_.u),this.h=_.h,mc(this,nc(_.i)),this.m=_.m):_&&(h=String(_).match(ve))?(this.l=!1,kc(this,h[1]||"",!0),this.o=oc(h[2]||""),this.g=oc(h[3]||"",!0),lc(this,h[4]),this.h=oc(h[5]||"",!0),mc(this,h[6]||"",!0),this.m=oc(h[7]||"")):(this.l=!1,this.i=new pc(null,this.l))}function O(_){return new T(_)}function kc(_,h,d){_.j=d?oc(h,!0):h,_.j&&(_.j=_.j.replace(/:$/,""))}function lc(_,h){if(h){if(h=Number(h),isNaN(h)||h<0)throw Error("Bad port number "+h);_.u=h}else _.u=null}function mc(_,h,d){h instanceof pc?(_.i=h,function vc(_,h){h&&!_.j&&(U(_),_.i=null,_.g.forEach((function(_,h){const d=h.toLowerCase();h!=d&&(yc(this,h),Gb(this,d,_))}),_)),_.j=h}(_.i,_.l)):(d||(h=qc(h,Oe)),_.i=new pc(h,_.l))}function S(_,h,d){_.i.set(h,d)}function Db(_){return S(_,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),_}function oc(_,h){return _?h?decodeURI(_.replace(/%25/g,"%2525")):decodeURIComponent(_):""}function qc(_,h,d){return"string"==typeof _?(_=encodeURI(_).replace(h,xc),d&&(_=_.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),_):null}function xc(_){return"%"+((_=_.charCodeAt(0))>>4&15).toString(16)+(15&_).toString(16)}T.prototype.toString=function(){const _=[];var h=this.j;h&&_.push(qc(h,Fe,!0),":");var d=this.g;return(d||"file"==h)&&(_.push("//"),(h=this.o)&&_.push(qc(h,Fe,!0),"@"),_.push(L(d).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(d=this.u)&&_.push(":",String(d))),(d=this.h)&&(this.g&&"/"!=d.charAt(0)&&_.push("/"),_.push(qc(d,"/"==d.charAt(0)?Ne:xe,!0))),(d=this.i.toString())&&_.push("?",d),(d=this.m)&&_.push("#",qc(d,Le)),_.join("")},T.prototype.resolve=function(_){const h=O(this);let d=!!_.j;d?kc(h,_.j):d=!!_.o,d?h.o=_.o:d=!!_.g,d?h.g=_.g:d=null!=_.u;var g=_.h;if(d)lc(h,_.u);else if(d=!!_.h){if("/"!=g.charAt(0))if(this.g&&!this.h)g="/"+g;else{var f=h.h.lastIndexOf("/");-1!=f&&(g=h.h.slice(0,f+1)+g)}if(".."==(f=g)||"."==f)g="";else if(-1!=f.indexOf("./")||-1!=f.indexOf("/.")){g=0==f.lastIndexOf("/",0),f=f.split("/");const _=[];for(let h=0;h<f.length;){const d=f[h++];"."==d?g&&h==f.length&&_.push(""):".."==d?((_.length>1||1==_.length&&""!=_[0])&&_.pop(),g&&h==f.length&&_.push("")):(_.push(d),g=!0)}g=_.join("/")}else g=f}return d?h.h=g:d=""!==_.i.toString(),d?mc(h,nc(_.i)):d=!!_.m,d&&(h.m=_.m),h};var Fe=/[#\/\?@]/g,xe=/[#\?:]/g,Ne=/[#\?]/g,Oe=/[#\?@]/g,Le=/#/g;function pc(_,h){this.h=this.g=null,this.i=_||null,this.j=!!h}function U(_){_.g||(_.g=new Map,_.h=0,_.i&&function jc(_,h){if(_){_=_.split("&");for(let d=0;d<_.length;d++){const g=_[d].indexOf("=");let f,q=null;g>=0?(f=_[d].substring(0,g),q=_[d].substring(g+1)):f=_[d],h(f,q?decodeURIComponent(q.replace(/\+/g," ")):"")}}}(_.i,(function(h,d){_.add(decodeURIComponent(h.replace(/\+/g," ")),d)})))}function yc(_,h){U(_),h=V(_,h),_.g.has(h)&&(_.i=null,_.h-=_.g.get(h).length,_.g.delete(h))}function zc(_,h){return U(_),h=V(_,h),_.g.has(h)}function Ac(_,h){U(_);let d=[];if("string"==typeof h)zc(_,h)&&(d=d.concat(_.g.get(V(_,h))));else for(_=Array.from(_.g.values()),h=0;h<_.length;h++)d=d.concat(_[h]);return d}function Gb(_,h,d){yc(_,h),d.length>0&&(_.i=null,_.g.set(V(_,h),ja(d)),_.h+=d.length)}function nc(_){const h=new pc;return h.i=_.i,_.g&&(h.g=new Map(_.g),h.h=_.h),h}function V(_,h){return h=String(h),_.j&&(h=h.toLowerCase()),h}function W(_,h,d,g,f){try{f&&(f.onload=null,f.onerror=null,f.onabort=null,f.ontimeout=null),g(d)}catch(_){}}function Dc(){this.g=new Te}function Ec(_){this.i=_.Sb||null,this.h=_.ab||!1}function Fc(_,h){C.call(this),this.H=_,this.o=h,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.A=new Headers,this.h=null,this.F="GET",this.D="",this.g=!1,this.B=this.j=this.l=null,this.v=new AbortController}function Ic(_){_.j.read().then(_.Ma.bind(_)).catch(_.ga.bind(_))}function Hc(_){_.readyState=4,_.l=null,_.j=null,_.B=null,Gc(_)}function Gc(_){_.onreadystatechange&&_.onreadystatechange.call(_)}function Jc(_){let h="";return ya(_,(function(_,d){h+=d,h+=":",h+=_,h+="\r\n"})),h}function Kc(_,h,d){e:{for(g in d){var g=!1;break e}g=!0}g||(d=Jc(d),"string"==typeof _?null!=d&&L(d):S(_,h,d))}function X(_){C.call(this),this.headers=new Map,this.L=_||null,this.h=!1,this.g=null,this.D="",this.o=0,this.l="",this.j=this.B=this.v=this.A=!1,this.m=null,this.F="",this.H=!1}(_=pc.prototype).add=function(_,h){U(this),this.i=null,_=V(this,_);let d=this.g.get(_);return d||this.g.set(_,d=[]),d.push(h),this.h+=1,this},_.forEach=function(_,h){U(this),this.g.forEach((function(d,g){d.forEach((function(d){_.call(h,d,g,this)}),this)}),this)},_.set=function(_,h){return U(this),this.i=null,zc(this,_=V(this,_))&&(this.h-=this.g.get(_).length),this.g.set(_,[h]),this.h+=1,this},_.get=function(_,h){return _&&(_=Ac(this,_)).length>0?String(_[0]):h},_.toString=function(){if(this.i)return this.i;if(!this.g)return"";const _=[],h=Array.from(this.g.keys());for(let g=0;g<h.length;g++){var d=h[g];const f=L(d);d=Ac(this,d);for(let h=0;h<d.length;h++){let g=f;""!==d[h]&&(g+="="+L(d[h])),_.push(g)}}return this.i=_.join("&")},t(Ec,eb),Ec.prototype.g=function(){return new Fc(this.i,this.h)},t(Fc,C),(_=Fc.prototype).open=function(_,h){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.F=_,this.D=h,this.readyState=1,Gc(this)},_.send=function(_){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");if(this.v.signal.aborted)throw this.abort(),Error("Request was aborted.");this.g=!0;const h={headers:this.A,method:this.F,credentials:this.m,cache:void 0,signal:this.v.signal};_&&(h.body=_),(this.H||f).fetch(new Request(this.D,h)).then(this.Pa.bind(this),this.ga.bind(this))},_.abort=function(){this.response=this.responseText="",this.A=new Headers,this.status=0,this.v.abort(),this.j&&this.j.cancel("Request was aborted.").catch((()=>{})),this.readyState>=1&&this.g&&4!=this.readyState&&(this.g=!1,Hc(this)),this.readyState=0},_.Pa=function(_){if(this.g&&(this.l=_,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=_.headers,this.readyState=2,Gc(this)),this.g&&(this.readyState=3,Gc(this),this.g)))if("arraybuffer"===this.responseType)_.arrayBuffer().then(this.Na.bind(this),this.ga.bind(this));else if(void 0!==f.ReadableStream&&"body"in _){if(this.j=_.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.B=new TextDecoder;Ic(this)}else _.text().then(this.Oa.bind(this),this.ga.bind(this))},_.Ma=function(_){if(this.g){if(this.o&&_.value)this.response.push(_.value);else if(!this.o){var h=_.value?_.value:new Uint8Array(0);(h=this.B.decode(h,{stream:!_.done}))&&(this.response=this.responseText+=h)}_.done?Hc(this):Gc(this),3==this.readyState&&Ic(this)}},_.Oa=function(_){this.g&&(this.response=this.responseText=_,Hc(this))},_.Na=function(_){this.g&&(this.response=_,Hc(this))},_.ga=function(){this.g&&Hc(this)},_.setRequestHeader=function(_,h){this.A.append(_,h)},_.getResponseHeader=function(_){return this.h&&this.h.get(_.toLowerCase())||""},_.getAllResponseHeaders=function(){if(!this.h)return"";const _=[],h=this.h.entries();for(var d=h.next();!d.done;)d=d.value,_.push(d[0]+": "+d[1]),d=h.next();return _.join("\r\n")},Object.defineProperty(Fc.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(_){this.m=_?"include":"same-origin"}}),t(X,C);var Me=/^https?$/i,ke=["POST","PUT"];function Nc(_,h){_.h=!1,_.g&&(_.j=!0,_.g.abort(),_.j=!1),_.l=h,_.o=5,Oc(_),Pc(_)}function Oc(_){_.A||(_.A=!0,D(_,"complete"),D(_,"error"))}function Qc(_){if(_.h&&void 0!==g)if(_.v&&4==P(_))setTimeout(_.Ca.bind(_),0);else if(D(_,"readystatechange"),4==P(_)){_.h=!1;try{const g=_.ca();e:switch(g){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var h=!0;break e;default:h=!1}var d;if(!(d=h)){var q;if(q=0===g){let h=String(_.D).match(ve)[1]||null;!h&&f.self&&f.self.location&&(h=f.self.location.protocol.slice(0,-1)),q=!Me.test(h?h.toLowerCase():"")}d=q}if(d)D(_,"complete"),D(_,"success");else{_.o=6;try{var j=P(_)>2?_.g.statusText:""}catch(_){j=""}_.l=j+" ["+_.ca()+"]",Oc(_)}}finally{Pc(_)}}}function Pc(_,h){if(_.g){_.m&&(clearTimeout(_.m),_.m=null);const d=_.g;_.g=null,h||D(_,"ready");try{d.onreadystatechange=null}catch(_){}}}function P(_){return _.g?_.g.readyState:0}function Ib(_){try{if(!_.g)return null;if("response"in _.g)return _.g.response;switch(_.F){case"":case"text":return _.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in _.g)return _.g.mozResponseArrayBuffer}return null}catch(_){return null}}function Rc(_,h,d){return d&&d.internalChannelParams&&d.internalChannelParams[_]||h}function Sc(_){this.za=0,this.i=[],this.j=new pb,this.ba=this.na=this.J=this.W=this.g=this.wa=this.G=this.H=this.u=this.U=this.o=null,this.Ya=this.V=0,this.Sa=Rc("failFast",!1,_),this.F=this.C=this.v=this.m=this.l=null,this.X=!0,this.xa=this.K=-1,this.Y=this.A=this.D=0,this.Qa=Rc("baseRetryDelayMs",5e3,_),this.Za=Rc("retryDelaySeedMs",1e4,_),this.Ta=Rc("forwardChannelMaxRetries",2,_),this.va=Rc("forwardChannelRequestTimeoutMs",2e4,_),this.ma=_&&_.xmlHttpFactory||void 0,this.Ua=_&&_.Rb||void 0,this.Aa=_&&_.useFetchStreams||!1,this.O=void 0,this.L=_&&_.supportsCrossDomainXhr||!1,this.M="",this.h=new ec(_&&_.concurrentRequestLimit),this.Ba=new Dc,this.S=_&&_.fastHandshake||!1,this.R=_&&_.encodeInitMessageHeaders||!1,this.S&&this.R&&(this.R=!1),this.Ra=_&&_.Pb||!1,_&&_.ua&&this.j.ua(),_&&_.forceLongPolling&&(this.X=!1),this.aa=!this.S&&this.X&&_&&_.detectBufferingProxy||!1,this.ia=void 0,_&&_.longPollingTimeout&&_.longPollingTimeout>0&&(this.ia=_.longPollingTimeout),this.ta=void 0,this.T=0,this.P=!1,this.ja=this.B=null}function cc(_){if(Tc(_),3==_.I){var h=_.V++,d=O(_.J);if(S(d,"SID",_.M),S(d,"RID",h),S(d,"TYPE","terminate"),Uc(_,d),(h=new N(_,_.j,h)).M=2,h.A=Db(O(d)),d=!1,f.navigator&&f.navigator.sendBeacon)try{d=f.navigator.sendBeacon(h.A.toString(),"")}catch(_){}!d&&f.Image&&((new Image).src=h.A,d=!0),d||(h.g=Hb(h.j,null),h.g.ea(h.A)),h.F=Date.now(),Fb(h)}Vc(_)}function Vb(_){_.g&&(Pb(_),_.g.cancel(),_.g=null)}function Tc(_){Vb(_),_.v&&(f.clearTimeout(_.v),_.v=null),Ub(_),_.h.cancel(),_.m&&("number"==typeof _.m&&f.clearTimeout(_.m),_.m=null)}function bc(_){if(!fc(_.h)&&!_.m){_.m=!0;var h=_.Ea;ee||ta(),te||(ee(),te=!0),ne.add(h,_),_.D=0}}function Zc(_,h){var d;d=h?h.l:_.V++;const g=O(_.J);S(g,"SID",_.M),S(g,"RID",d),S(g,"AID",_.K),Uc(_,g),_.u&&_.o&&Kc(g,_.u,_.o),d=new N(_,_.j,d,_.D+1),null===_.u&&(d.J=_.o),h&&(_.i=h.G.concat(_.i)),h=Yc(_,d,1e3),d.H=Math.round(.5*_.va)+Math.round(.5*_.va*Math.random()),Yb(_.h,d),Cb(d,g,h)}function Uc(_,h){_.H&&ya(_.H,(function(_,d){S(h,d,_)})),_.l&&ya({},(function(_,d){S(h,d,_)}))}function Yc(_,h,d){d=Math.min(_.i.length,d);const g=_.l?p(_.l.Ka,_.l,_):null;e:{var f=_.i;let h=-1;for(;;){const _=["count="+d];-1==h?d>0?(h=f[0].g,_.push("ofs="+h)):h=0:_.push("ofs="+h);let ee=!0;for(let te=0;te<d;te++){var q=f[te].g;const d=f[te].map;if((q-=h)<0)h=Math.max(0,f[te].g-100),ee=!1;else try{q="req"+q+"_"||"";try{var j=d instanceof Map?d:Object.entries(d);for(const[h,d]of j){let g=d;n(d)&&(g=ge(d)),_.push(q+h+"="+encodeURIComponent(g))}}catch(h){throw _.push(q+"type="+encodeURIComponent("_badmap")),h}}catch(_){g&&g(d)}}if(ee){j=_.join("&");break e}}j=void 0}return _=_.i.splice(0,d),h.G=_,j}function ac(_){if(!_.g&&!_.v){_.Y=1;var h=_.Da;ee||ta(),te||(ee(),te=!0),ne.add(h,_),_.A=0}}function Wb(_){return!(_.g||_.v||_.A>=3)&&(_.Y++,_.v=ob(p(_.Da,_),Xc(_,_.A)),_.A++,!0)}function Pb(_){null!=_.B&&(f.clearTimeout(_.B),_.B=null)}function $c(_){_.g=new N(_,_.j,"rpc",_.Y),null===_.u&&(_.g.J=_.o),_.g.P=0;var h=O(_.na);S(h,"RID","rpc"),S(h,"SID",_.M),S(h,"AID",_.K),S(h,"CI",_.F?"0":"1"),!_.F&&_.ia&&S(h,"TO",_.ia),S(h,"TYPE","xmlhttp"),Uc(_,h),_.u&&_.o&&Kc(h,_.u,_.o),_.O&&(_.g.H=_.O);var d=_.g;_=_.ba,d.M=1,d.A=Db(O(h)),d.u=null,d.R=!0,Eb(d,_)}function Ub(_){null!=_.C&&(f.clearTimeout(_.C),_.C=null)}function Qb(_,h){var d=null;if(_.g==h)