text: /*! For license information please see main.6bcf38b1.js.LICENSE.txt */
  !function(){var e={757:function(e,t,n){e.exports=n(727)},725:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,a){for(var o,s,u=i(e),c=1;c<arguments.length;c++){for(var l in o=Object(arguments[c]))n.call(o,l)&&(u[l]=o[l]);if(t){s=t(o);for(var f=0;f<s.length;f++)r.call(o,s[f])&&(u[s[f]]=o[s[f]])}}return u}},888:function(e,t,n){"use strict";var r=n(47);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},7:function(e,t,n){e.exports=n(888)()},47:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},463:function(e,t,n){"use strict";var r=n(791),i=n(725),a=n(296);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(o(227));var s=new Set,u={};function c(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(u[e]=t,e=0;e<t.length;e++)s.add(t[e])}var f=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d=Object.prototype.hasOwnProperty,p={},v={};function m(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function A(e){return e[1].toUpperCase()}function k(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!d.call(v,e)||!d.call(p,e)&&(h.test(e)?v[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,A);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,A);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,A);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var b=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=60103,x=60106,I=60107,E=60108,S=60114,T=60109,C=60110,_=60112,N=60113,D=60120,O=60115,R=60116,P=60121,M=60128,B=60129,L=60130,j=60131;if("function"===typeof Symbol&&Symbol.for){var U=Symbol.for;w=U("react.element"),x=U("react.portal"),I=U("react.fragment"),E=U("react.strict_mode"),S=U("react.profiler"),T=U("react.provider"),C=U("react.context"),_=U("react.forward_ref"),N=U("react.suspense"),D=U("react.suspense_list"),O=U("react.memo"),R=U("react.lazy"),P=U("react.block"),U("react.scope"),M=U("react.opaque.id"),B=U("react.debug_trace_mode"),L=U("react.offscreen"),j=U("react.legacy_hidden")}var F,Q="function"===typeof Symbol&&Symbol.iterator;function V(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=Q&&e[Q]||e["@@iterator"])?e:null}function z(e){if(void 0===F)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}return"\n"+F+e}var q=!1;function G(e,t){if(!e||q)return"";q=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var i=u.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s])return"\n"+i[o].replace(" at new "," at ")}while(1<=o&&0<=s);break}}}finally{q=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function H(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=G(e.type,!1);case 11:return e=G(e.type.render,!1);case 22:return e=G(e.type._render,!1);case 1:return e=G(e.type,!0);default:return""}}function K(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case I:return"Fragment";case x:return"Portal";case S:return"Profiler";case E:return"StrictMode";case N:return"Suspense";case D:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case _:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case O:return K(e.type);case P:return K(e._render);case R:t=e._payload,e=e._init;try{return K(e(t))}catch(n){}}return null}function W(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function J(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=J(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=J(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function $(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&k(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ae(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function oe(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function ce(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function le(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",he="http://www.w3.org/2000/svg";function de(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?de(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ve,me,ge=(me=function(e,t){if(e.namespaceURI!==he||"innerHTML"in e)e.innerHTML=t;else{for((ve=ve||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ve.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return me(e,t)}))}:me);function ye(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Ae={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ke=["Webkit","ms","Moz","O"];function be(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||Ae.hasOwnProperty(e)&&Ae[e]?(""+t).trim():t+"px"}function we(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=be(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(Ae).forEach((function(e){ke.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ae[t]=Ae[e]}))}));var xe=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ie(e,t){if(t){if(xe[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function Ee(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Se(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Te=null,Ce=null,_e=null;function Ne(e){if(e=ri(e)){if("function"!==typeof Te)throw Error(o(280));var t=e.stateNode;t&&(t=ai(t),Te(e.stateNode,e.type,t))}}function De(e){Ce?_e?_e.push(e):_e=[e]:Ce=e}function Oe(){if(Ce){var e=Ce,t=_e;if(_e=Ce=null,Ne(e),t)for(e=0;e<t.length;e++)Ne(t[e])}}function Re(e,t){return e(t)}function Pe(e,t,n,r,i){return e(t,n,r,i)}function Me(){}var Be=Re,Le=!1,je=!1;function Ue(){null===Ce&&null===_e||(Me(),Oe())}function Fe(e,t){var n=e.stateNode;if(null===n)return null;var r=ai(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Qe=!1;if(f)try{var Ve={};Object.defineProperty(Ve,"passive",{get:function(){Qe=!0}}),window.addEventListener("test",Ve,Ve),window.removeEventListener("test",Ve,Ve)}catch(me){Qe=!1}function ze(e,t,n,r,i,a,o,s,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(l){this.onError(l)}}var qe=!1,Ge=null,He=!1,Ke=null,We={onError:function(e){qe=!0,Ge=e}};function Je(e,t,n,r,i,a,o,s,u){qe=!1,Ge=null,ze.apply(We,arguments)}function Ye(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Xe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ze(e){if(Ye(e)!==e)throw Error(o(188))}function $e(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Ze(i),e;if(a===r)return Ze(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=a;break}if(u===r){s=!0,r=i,n=a;break}u=u.sibling}if(!s){for(u=a.child;u;){if(u===n){s=!0,n=a,r=i;break}if(u===r){s=!0,r=a,n=i;break}u=u.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,it,at=!1,ot=[],st=null,ut=null,ct=null,lt=new Map,ft=new Map,ht=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function vt(e,t){switch(e){case"focusin":case"focusout":st=null;break;case"dragenter":case"dragleave":ut=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":lt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ft.delete(t.pointerId)}}function mt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e=pt(t,n,r,i,a),null!==t&&(null!==(t=ri(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function gt(e){var t=ni(e.target);if(null!==t){var n=Ye(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void it(e.lanePriority,(function(){a.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function yt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=$t(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ri(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function At(e,t,n){yt(e)&&n.delete(t)}function kt(){for(at=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=ri(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=$t(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==st&&yt(st)&&(st=null),null!==ut&&yt(ut)&&(ut=null),null!==ct&&yt(ct)&&(ct=null),lt.forEach(At),ft.forEach(At)}function bt(e,t){e.blockedOn===t&&(e.blockedOn=null,at||(at=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,kt)))}function wt(e){function t(t){return bt(t,e)}if(0<ot.length){bt(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==st&&bt(st,e),null!==ut&&bt(ut,e),null!==ct&&bt(ct,e),lt.forEach(t),ft.forEach(t),n=0;n<ht.length;n++)(r=ht[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ht.length&&null===(n=ht[0]).blockedOn;)gt(n),null===n.blockedOn&&ht.shift()}function xt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var It={animationend:xt("Animation","AnimationEnd"),animationiteration:xt("Animation","AnimationIteration"),animationstart:xt("Animation","AnimationStart"),transitionend:xt("Transition","TransitionEnd")},Et={},St={};function Tt(e){if(Et[e])return Et[e];if(!It[e])return e;var t,n=It[e];for(t in n)if(n.hasOwnProperty(t)&&t in St)return Et[e]=n[t];return e}f&&(St=document.createElement("div").style,"AnimationEvent"in window||(delete It.animationend.animation,delete It.animationiteration.animation,delete It.animationstart.animation),"TransitionEvent"in window||delete It.transitionend.transition);var Ct=Tt("animationend"),_t=Tt("animationiteration"),Nt=Tt("animationstart"),Dt=Tt("transitionend"),Ot=new Map,Rt=new Map,Pt=["abort","abort",Ct,"animationEnd",_t,"animationIteration",Nt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Dt,"transitionEnd","waiting","waiting"];function Mt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Rt.set(r,t),Ot.set(r,i),c(i,[r])}}(0,a.unstable_now)();var Bt=8;function Lt(e){if(0!==(1&e))return Bt=15,1;if(0!==(2&e))return Bt=14,2;if(0!==(4&e))return Bt=13,4;var t=24&e;return 0!==t?(Bt=12,t):0!==(32&e)?(Bt=11,32):0!==(t=192&e)?(Bt=10,t):0!==(256&e)?(Bt=9,256):0!==(t=3584&e)?(Bt=8,t):0!==(4096&e)?(Bt=7,4096):0!==(t=4186112&e)?(Bt=6,t):0!==(t=62914560&e)?(Bt=5,t):67108864&e?(Bt=4,67108864):0!==(134217728&e)?(Bt=3,134217728):0!==(t=805306368&e)?(Bt=2,t):0!==(1073741824&e)?(Bt=1,1073741824):(Bt=8,e)}function jt(e,t){var n=e.pendingLanes;if(0===n)return Bt=0;var r=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,s=e.pingedLanes;if(0!==a)r=a,i=Bt=15;else if(0!==(a=134217727&n)){var u=a&~o;0!==u?(r=Lt(u),i=Bt):0!==(s&=a)&&(r=Lt(s),i=Bt)}else 0!==(a=n&~o)?(r=Lt(a),i=Bt):0!==s&&(r=Lt(s),i=Bt);if(0===r)return 0;if(r=n&((0>(r=31-qt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&o)){if(Lt(t),i<=Bt)return t;Bt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-qt(t)),r|=e[n],t&=~i;return r}function Ut(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ft(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Qt(24&~t))?Ft(10,t):e;case 10:return 0===(e=Qt(192&~t))?Ft(8,t):e;case 8:return 0===(e=Qt(3584&~t))&&(0===(e=Qt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Qt(805306368&~t))&&(t=268435456),t}throw Error(o(358,e))}function Qt(e){return e&-e}function Vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function zt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-qt(t)]=n}var qt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Gt(e)/Ht|0)|0},Gt=Math.log,Ht=Math.LN2;var Kt=a.unstable_UserBlockingPriority,Wt=a.unstable_runWithPriority,Jt=!0;function Yt(e,t,n,r){Le||Me();var i=Zt,a=Le;Le=!0;try{Pe(i,e,t,n,r)}finally{(Le=a)||Ue()}}function Xt(e,t,n,r){Wt(Kt,Zt.bind(null,e,t,n,r))}function Zt(e,t,n,r){var i;if(Jt)if((i=0===(4&t))&&0<ot.length&&-1<dt.indexOf(e))e=pt(null,e,t,n,r),ot.push(e);else{var a=$t(e,t,n,r);if(null===a)i&&vt(e,r);else{if(i){if(-1<dt.indexOf(e))return e=pt(a,e,t,n,r),void ot.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return st=mt(st,e,t,n,r,i),!0;case"dragenter":return ut=mt(ut,e,t,n,r,i),!0;case"mouseover":return ct=mt(ct,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return lt.set(a,mt(lt.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,ft.set(a,mt(ft.get(a)||null,e,t,n,r,i)),!0}return!1}(a,e,t,n,r))return;vt(e,r)}Mr(e,t,r,null,n)}}}function $t(e,t,n,r){var i=Se(r);if(null!==(i=ni(i))){var a=Ye(i);if(null===a)i=null;else{var o=a.tag;if(13===o){if(null!==(i=Xe(a)))return i;i=null}else if(3===o){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return Mr(e,t,r,i,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,i="value"in en?en.value:en.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return nn=i.slice(e,1<t?1-t:void 0)}function an(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function sn(){return!1}function un(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?on:sn,this.isPropagationStopped=sn,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var cn,ln,fn,hn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=un(hn),pn=i({},hn,{view:0,detail:0}),vn=un(pn),mn=i({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fn&&(fn&&"mousemove"===e.type?(cn=e.screenX-fn.screenX,ln=e.screenY-fn.screenY):ln=cn=0,fn=e),cn)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),gn=un(mn),yn=un(i({},mn,{dataTransfer:0})),An=un(i({},pn,{relatedTarget:0})),kn=un(i({},hn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=i({},hn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wn=un(bn),xn=un(i({},hn,{data:0})),In={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Cn(){return Tn}var _n=i({},pn,{key:function(e){if(e.key){var t=In[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=an(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?an(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?an(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Nn=un(_n),Dn=un(i({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),On=un(i({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Rn=un(i({},hn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=i({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Mn=un(Pn),Bn=[9,13,27,32],Ln=f&&"CompositionEvent"in window,jn=null;f&&"documentMode"in document&&(jn=document.documentMode);var Un=f&&"TextEvent"in window&&!jn,Fn=f&&(!Ln||jn&&8<jn&&11>=jn),Qn=String.fromCharCode(32),Vn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Bn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Gn=!1;var Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Kn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Wn(e,t,n,r){De(r),0<(t=Lr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Jn=null,Yn=null;function Xn(e){_r(e,0)}function Zn(e){if(X(ii(e)))return e}function $n(e,t){if("change"===e)return t}var er=!1;if(f){var tr;if(f){var nr="oninput"in document;if(!nr){var rr=document.createElement("div");rr.setAttribute("oninput","return;"),nr="function"===typeof rr.oninput}tr=nr}else tr=!1;er=tr&&(!document.documentMode||9<document.documentMode)}function ir(){Jn&&(Jn.detachEvent("onpropertychange",ar),Yn=Jn=null)}function ar(e){if("value"===e.propertyName&&Zn(Yn)){var t=[];if(Wn(t,Yn,e,Se(e)),e=Xn,Le)e(t);else{Le=!0;try{Re(e,t)}finally{Le=!1,Ue()}}}}function or(e,t,n){"focusin"===e?(ir(),Yn=n,(Jn=t).attachEvent("onpropertychange",ar)):"focusout"===e&&ir()}function sr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zn(Yn)}function ur(e,t){if("click"===e)return Zn(t)}function cr(e,t){if("input"===e||"change"===e)return Zn(t)}var lr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},fr=Object.prototype.hasOwnProperty;function hr(e,t){if(lr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!fr.call(t,n[r])||!lr(e[n[r]],t[n[r]]))return!1;return!0}function dr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pr(e,t){var n,r=dr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=dr(r)}}function vr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?vr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function mr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var yr=f&&"documentMode"in document&&11>=document.documentMode,Ar=null,kr=null,br=null,wr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wr||null==Ar||Ar!==Z(r)||("selectionStart"in(r=Ar)&&gr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&hr(br,r)||(br=r,0<(r=Lr(kr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ar)))}Mt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Mt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Mt(Pt,2);for(var Ir="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Er=0;Er<Ir.length;Er++)Rt.set(Ir[Er],0);l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Tr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sr));function Cr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,u,c){if(Je.apply(this,arguments),qe){if(!qe)throw Error(o(198));var l=Ge;qe=!1,Ge=null,He||(He=!0,Ke=l)}}(r,t,void 0,e),e.currentTarget=null}function _r(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],u=s.instance,c=s.currentTarget;if(s=s.listener,u!==a&&i.isPropagationStopped())break e;Cr(i,s,c),a=u}else for(o=0;o<r.length;o++){if(u=(s=r[o]).instance,c=s.currentTarget,s=s.listener,u!==a&&i.isPropagationStopped())break e;Cr(i,s,c),a=u}}}if(He)throw e=Ke,He=!1,Ke=null,e}function Nr(e,t){var n=oi(t),r=e+"__bubble";n.has(r)||(Pr(t,e,2,!1),n.add(r))}var Dr="_reactListening"+Math.random().toString(36).slice(2);function Or(e){e[Dr]||(e[Dr]=!0,s.forEach((function(t){Tr.has(t)||Rr(t,!1,e,null),Rr(t,!0,e,null)})))}function Rr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&Tr.has(e)){if("scroll"!==e)return;i|=2,a=r}var o=oi(a),s=e+"__"+(t?"capture":"bubble");o.has(s)||(t&&(i|=4),Pr(a,e,i,t),o.add(s))}function Pr(e,t,n,r){var i=Rt.get(t);switch(void 0===i?2:i){case 0:i=Yt;break;case 1:i=Xt;break;default:i=Zt}n=i.bind(null,t,n,e),i=void 0,!Qe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Mr(e,t,n,r,i){var a=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var u=o.tag;if((3===u||4===u)&&((u=o.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=ni(s)))return;if(5===(u=o.tag)||6===u){r=a=o;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(je)return e(t,n);je=!0;try{Be(e,t,n)}finally{je=!1,Ue()}}((function(){var r=a,i=Se(n),o=[];e:{var s=Ot.get(e);if(void 0!==s){var u=dn,c=e;switch(e){case"keypress":if(0===an(n))break e;case"keydown":case"keyup":u=Nn;break;case"focusin":c="focus",u=An;break;case"focusout":c="blur",u=An;break;case"beforeblur":case"afterblur":u=An;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=On;break;case Ct:case _t:case Nt:u=kn;break;case Dt:u=Rn;break;case"scroll":u=vn;break;case"wheel":u=Mn;break;case"copy":case"cut":case"paste":u=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Dn}var l=0!==(4&t),f=!l&&"scroll"===e,h=l?null!==s?s+"Capture":null:s;l=[];for(var d,p=r;null!==p;){var v=(d=p).stateNode;if(5===d.tag&&null!==v&&(d=v,null!==h&&(null!=(v=Fe(p,h))&&l.push(Br(p,v,d)))),f)break;p=p.return}0<l.length&&(s=new u(s,c,null,n,i),o.push({event:s,listeners:l}))}}if(0===(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(c=n.relatedTarget||n.fromElement)||!ni(c)&&!c[ei])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?ni(c):null)&&(c!==(f=Ye(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(u=null,c=r),u!==c)){if(l=gn,v="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(l=Dn,v="onPointerLeave",h="onPointerEnter",p="pointer"),f=null==u?s:ii(u),d=null==c?s:ii(c),(s=new l(v,p+"leave",u,n,i)).target=f,s.relatedTarget=d,v=null,ni(i)===r&&((l=new l(h,p+"enter",c,n,i)).target=d,l.relatedTarget=f,v=l),f=v,u&&c)e:{for(h=c,p=0,d=l=u;d;d=jr(d))p++;for(d=0,v=h;v;v=jr(v))d++;for(;0<p-d;)l=jr(l),p--;for(;0<d-p;)h=jr(h),d--;for(;p--;){if(l===h||null!==h&&l===h.alternate)break e;l=jr(l),h=jr(h)}l=null}else l=null;null!==u&&Ur(o,s,u,l,!1),null!==c&&null!==f&&Ur(o,f,c,l,!0)}if("select"===(u=(s=r?ii(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var m=$n;else if(Kn(s))if(er)m=cr;else{m=sr;var g=or}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=ur);switch(m&&(m=m(e,r))?Wn(o,m,n,i):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ie(s,"number",s.value)),g=r?ii(r):window,e){case"focusin":(Kn(g)||"true"===g.contentEditable)&&(Ar=g,kr=r,br=null);break;case"focusout":br=kr=Ar=null;break;case"mousedown":wr=!0;break;case"contextmenu":case"mouseup":case"dragend":wr=!1,xr(o,n,i);break;case"selectionchange":if(yr)break;case"keydown":case"keyup":xr(o,n,i)}var y;if(Ln)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else Gn?zn(e,n)&&(A="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(A="onCompositionStart");A&&(Fn&&"ko"!==n.locale&&(Gn||"onCompositionStart"!==A?"onCompositionEnd"===A&&Gn&&(y=rn()):(tn="value"in(en=i)?en.value:en.textContent,Gn=!0)),0<(g=Lr(r,A)).length&&(A=new xn(A,e,null,n,i),o.push({event:A,listeners:g}),y?A.data=y:null!==(y=qn(n))&&(A.data=y))),(y=Un?function(e,t){switch(e){case"compositionend":return qn(t);case"keypress":return 32!==t.which?null:(Vn=!0,Qn);case"textInput":return(e=t.data)===Qn&&Vn?null:e;default:return null}}(e,n):function(e,t){if(Gn)return"compositionend"===e||!Ln&&zn(e,t)?(e=rn(),nn=tn=en=null,Gn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Lr(r,"onBeforeInput")).length&&(i=new xn("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=y))}_r(o,t)}))}function Br(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Lr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Fe(e,n))&&r.unshift(Br(e,a,i)),null!=(a=Fe(e,t))&&r.push(Br(e,a,i))),e=e.return}return r}function jr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ur(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var s=n,u=s.alternate,c=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(u=Fe(n,a))&&o.unshift(Br(n,u,s)):i||null!=(u=Fe(n,a))&&o.push(Br(n,u,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Fr(){}var Qr=null,Vr=null;function zr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function qr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Gr="function"===typeof setTimeout?setTimeout:void 0,Hr="function"===typeof clearTimeout?clearTimeout:void 0;function Kr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Wr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Jr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Yr=0;var Xr=Math.random().toString(36).slice(2),Zr="__reactFiber$"+Xr,$r="__reactProps$"+Xr,ei="__reactContainer$"+Xr,ti="__reactEvents$"+Xr;function ni(e){var t=e[Zr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ei]||n[Zr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Jr(e);null!==e;){if(n=e[Zr])return n;e=Jr(e)}return t}n=(e=n).parentNode}return null}function ri(e){return!(e=e[Zr]||e[ei])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ii(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function ai(e){return e[$r]||null}function oi(e){var t=e[ti];return void 0===t&&(t=e[ti]=new Set),t}var si=[],ui=-1;function ci(e){return{current:e}}function li(e){0>ui||(e.current=si[ui],si[ui]=null,ui--)}function fi(e,t){ui++,si[ui]=e.current,e.current=t}var hi={},di=ci(hi),pi=ci(!1),vi=hi;function mi(e,t){var n=e.type.contextTypes;if(!n)return hi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function gi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function yi(){li(pi),li(di)}function Ai(e,t,n){if(di.current!==hi)throw Error(o(168));fi(di,t),fi(pi,n)}function ki(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(o(108,K(t)||"Unknown",a));return i({},n,r)}function bi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hi,vi=di.current,fi(di,e),fi(pi,pi.current),!0}function wi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=ki(e,t,vi),r.__reactInternalMemoizedMergedChildContext=e,li(pi),li(di),fi(di,e)):li(pi),fi(pi,n)}var xi=null,Ii=null,Ei=a.unstable_runWithPriority,Si=a.unstable_scheduleCallback,Ti=a.unstable_cancelCallback,Ci=a.unstable_shouldYield,_i=a.unstable_requestPaint,Ni=a.unstable_now,Di=a.unstable_getCurrentPriorityLevel,Oi=a.unstable_ImmediatePriority,Ri=a.unstable_UserBlockingPriority,Pi=a.unstable_NormalPriority,Mi=a.unstable_LowPriority,Bi=a.unstable_IdlePriority,Li={},ji=void 0!==_i?_i:function(){},Ui=null,Fi=null,Qi=!1,Vi=Ni(),zi=1e4>Vi?Ni:function(){return Ni()-Vi};function qi(){switch(Di()){case Oi:return 99;case Ri:return 98;case Pi:return 97;case Mi:return 96;case Bi:return 95;default:throw Error(o(332))}}function Gi(e){switch(e){case 99:return Oi;case 98:return Ri;case 97:return Pi;case 96:return Mi;case 95:return Bi;default:throw Error(o(332))}}function Hi(e,t){return e=Gi(e),Ei(e,t)}function Ki(e,t,n){return e=Gi(e),Si(e,t,n)}function Wi(){if(null!==Fi){var e=Fi;Fi=null,Ti(e)}Ji()}function Ji(){if(!Qi&&null!==Ui){Qi=!0;var e=0;try{var t=Ui;Hi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ui=null}catch(n){throw null!==Ui&&(Ui=Ui.slice(e+1)),Si(Oi,Wi),n}finally{Qi=!1}}}var Yi=b.ReactCurrentBatchConfig;function Xi(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Zi=ci(null),$i=null,ea=null,ta=null;function na(){ta=ea=$i=null}function ra(e){var t=Zi.current;li(Zi),e.type._context._currentValue=t}function ia(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function aa(e,t){$i=e,ta=ea=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Lo=!0),e.firstContext=null)}function oa(e,t){if(ta!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(ta=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ea){if(null===$i)throw Error(o(308));ea=t,$i.dependencies={lanes:0,firstContext:t,responders:null}}else ea=ea.next=t;return e._currentValue}var sa=!1;function ua(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ca(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function la(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fa(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ha(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function da(e,t,n,r){var a=e.updateQueue;sa=!1;var o=a.firstBaseUpdate,s=a.lastBaseUpdate,u=a.shared.pending;if(null!==u){a.shared.pending=null;var c=u,l=c.next;c.next=null,null===s?o=l:s.next=l,s=c;var f=e.alternate;if(null!==f){var h=(f=f.updateQueue).lastBaseUpdate;h!==s&&(null===h?f.firstBaseUpdate=l:h.next=l,f.lastBaseUpdate=c)}}if(null!==o){for(h=a.baseState,s=0,f=l=c=null;;){u=o.lane;var d=o.eventTime;if((r&u)===u){null!==f&&(f=f.next={eventTime:d,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var p=e,v=o;switch(u=t,d=n,v.tag){case 1:if("function"===typeof(p=v.payload)){h=p.call(d,h,u);break e}h=p;break e;case 3:p.flags=-4097&p.flags|64;case 0:if(null===(u="function"===typeof(p=v.payload)?p.call(d,h,u):p)||void 0===u)break e;h=i({},h,u);break e;case 2:sa=!0}}null!==o.callback&&(e.flags|=32,null===(u=a.effects)?a.effects=[o]:u.push(o))}else d={eventTime:d,lane:u,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===f?(l=f=d,c=h):f=f.next=d,s|=u;if(null===(o=o.next)){if(null===(u=a.shared.pending))break;o=u.next,u.next=null,a.lastBaseUpdate=u,a.shared.pending=null}}null===f&&(c=h),a.baseState=c,a.firstBaseUpdate=l,a.lastBaseUpdate=f,Qs|=s,e.lanes=s,e.memoizedState=h}}function pa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var va=(new r.Component).refs;function ma(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ga={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=hu(),i=du(e),a=la(r,i);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),fa(e,a),pu(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=hu(),i=du(e),a=la(r,i);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),fa(e,a),pu(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=hu(),r=du(e),i=la(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),fa(e,i),pu(e,r,n)}};function ya(e,t,n,r,i,a,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!hr(n,r)||!hr(i,a))}function Aa(e,t,n){var r=!1,i=hi,a=t.contextType;return"object"===typeof a&&null!==a?a=oa(a):(i=gi(t)?vi:di.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?mi(e,i):hi),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ga,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ka(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ga.enqueueReplaceState(t,t.state,null)}function ba(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=va,ua(e);var a=t.contextType;"object"===typeof a&&null!==a?i.context=oa(a):(a=gi(t)?vi:di.current,i.context=mi(e,a)),da(e,n,i,r),i.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(ma(e,t,a,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ga.enqueueReplaceState(i,i.state,null),da(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4)}var wa=Array.isArray;function xa(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=r.refs;t===va&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Ia(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Ea(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Hu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Yu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=xa(e,t,n),r.return=e,r):((r=Ku(n.type,n.key,n.props,null,e.mode,r)).ref=xa(e,t,n),r.return=e,r)}function l(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Xu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Wu(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function h(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Yu(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Ku(t.type,t.key,t.props,null,e.mode,n)).ref=xa(e,null,t),n.return=e,n;case x:return(t=Xu(t,e.mode,n)).return=e,t}if(wa(t)||V(t))return(t=Wu(t,e.mode,n,null)).return=e,t;Ia(e,t)}return null}function d(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?n.type===I?f(e,t,n.props.children,r,i):c(e,t,n,r):null;case x:return n.key===i?l(e,t,n,r):null}if(wa(n)||V(n))return null!==i?null:f(e,t,n,r,null);Ia(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r||"number"===typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case w:return e=e.get(null===r.key?n:r.key)||null,r.type===I?f(t,e,r.props.children,i,r.key):c(t,e,r,i);case x:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(wa(r)||V(r))return f(t,e=e.get(n)||null,r,i,null);Ia(t,r)}return null}function v(i,o,s,u){for(var c=null,l=null,f=o,v=o=0,m=null;null!==f&&v<s.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var g=d(i,f,s[v],u);if(null===g){null===f&&(f=m);break}e&&f&&null===g.alternate&&t(i,f),o=a(g,o,v),null===l?c=g:l.sibling=g,l=g,f=m}if(v===s.length)return n(i,f),c;if(null===f){for(;v<s.length;v++)null!==(f=h(i,s[v],u))&&(o=a(f,o,v),null===l?c=f:l.sibling=f,l=f);return c}for(f=r(i,f);v<s.length;v++)null!==(m=p(f,i,v,s[v],u))&&(e&&null!==m.alternate&&f.delete(null===m.key?v:m.key),o=a(m,o,v),null===l?c=m:l.sibling=m,l=m);return e&&f.forEach((function(e){return t(i,e)})),c}function m(i,s,u,c){var l=V(u);if("function"!==typeof l)throw Error(o(150));if(null==(u=l.call(u)))throw Error(o(151));for(var f=l=null,v=s,m=s=0,g=null,y=u.next();null!==v&&!y.done;m++,y=u.next()){v.index>m?(g=v,v=null):g=v.sibling;var A=d(i,v,y.value,c);if(null===A){null===v&&(v=g);break}e&&v&&null===A.alternate&&t(i,v),s=a(A,s,m),null===f?l=A:f.sibling=A,f=A,v=g}if(y.done)return n(i,v),l;if(null===v){for(;!y.done;m++,y=u.next())null!==(y=h(i,y.value,c))&&(s=a(y,s,m),null===f?l=y:f.sibling=y,f=y);return l}for(v=r(i,v);!y.done;m++,y=u.next())null!==(y=p(v,i,m,y.value,c))&&(e&&null!==y.alternate&&v.delete(null===y.key?m:y.key),s=a(y,s,m),null===f?l=y:f.sibling=y,f=y);return e&&v.forEach((function(e){return t(i,e)})),l}return function(e,r,a,u){var c="object"===typeof a&&null!==a&&a.type===I&&null===a.key;c&&(a=a.props.children);var l="object"===typeof a&&null!==a;if(l)switch(a.$$typeof){case w:e:{for(l=a.key,c=r;null!==c;){if(c.key===l){if(7===c.tag){if(a.type===I){n(e,c.sibling),(r=i(c,a.props.children)).return=e,e=r;break e}}else if(c.elementType===a.type){n(e,c.sibling),(r=i(c,a.props)).ref=xa(e,c,a),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}a.type===I?((r=Wu(a.props.children,e.mode,u,a.key)).return=e,e=r):((u=Ku(a.type,a.key,a.props,null,e.mode,u)).ref=xa(e,r,a),u.return=e,e=u)}return s(e);case x:e:{for(c=a.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=i(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Xu(a,e.mode,u)).return=e,e=r}return s(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,a)).return=e,e=r):(n(e,r),(r=Yu(a,e.mode,u)).return=e,e=r),s(e);if(wa(a))return v(e,r,a,u);if(V(a))return m(e,r,a,u);if(l&&Ia(e,a),"undefined"===typeof a&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,K(e.type)||"Component"))}return n(e,r)}}var Sa=Ea(!0),Ta=Ea(!1),Ca={},_a=ci(Ca),Na=ci(Ca),Da=ci(Ca);function Oa(e){if(e===Ca)throw Error(o(174));return e}function Ra(e,t){switch(fi(Da,t),fi(Na,e),fi(_a,Ca),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}li(_a),fi(_a,t)}function Pa(){li(_a),li(Na),li(Da)}function Ma(e){Oa(Da.current);var t=Oa(_a.current),n=pe(t,e.type);t!==n&&(fi(Na,e),fi(_a,n))}function Ba(e){Na.current===e&&(li(_a),li(Na))}var La=ci(0);function ja(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ua=null,Fa=null,Qa=!1;function Va(e,t){var n=qu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function za(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function qa(e){if(Qa){var t=Fa;if(t){var n=t;if(!za(e,t)){if(!(t=Wr(n.nextSibling))||!za(e,t))return e.flags=-1025&e.flags|2,Qa=!1,void(Ua=e);Va(Ua,n)}Ua=e,Fa=Wr(t.firstChild)}else e.flags=-1025&e.flags|2,Qa=!1,Ua=e}}function Ga(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ua=e}function Ha(e){if(e!==Ua)return!1;if(!Qa)return Ga(e),Qa=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!qr(t,e.memoizedProps))for(t=Fa;t;)Va(e,t),t=Wr(t.nextSibling);if(Ga(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Fa=Wr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Fa=null}}else Fa=Ua?Wr(e.stateNode.nextSibling):null;return!0}function Ka(){Fa=Ua=null,Qa=!1}var Wa=[];function Ja(){for(var e=0;e<Wa.length;e++)Wa[e]._workInProgressVersionPrimary=null;Wa.length=0}var Ya=b.ReactCurrentDispatcher,Xa=b.ReactCurrentBatchConfig,Za=0,$a=null,eo=null,to=null,no=!1,ro=!1;function io(){throw Error(o(321))}function ao(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function oo(e,t,n,r,i,a){if(Za=a,$a=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ya.current=null===e||null===e.memoizedState?Ro:Po,e=n(r,i),ro){a=0;do{if(ro=!1,!(25>a))throw Error(o(301));a+=1,to=eo=null,t.updateQueue=null,Ya.current=Mo,e=n(r,i)}while(ro)}if(Ya.current=Oo,t=null!==eo&&null!==eo.next,Za=0,to=eo=$a=null,no=!1,t)throw Error(o(300));return e}function so(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===to?$a.memoizedState=to=e:to=to.next=e,to}function uo(){if(null===eo){var e=$a.alternate;e=null!==e?e.memoizedState:null}else e=eo.next;var t=null===to?$a.memoizedState:to.next;if(null!==t)to=t,eo=e;else{if(null===e)throw Error(o(310));e={memoizedState:(eo=e).memoizedState,baseState:eo.baseState,baseQueue:eo.baseQueue,queue:eo.queue,next:null},null===to?$a.memoizedState=to=e:to=to.next=e}return to}function co(e,t){return"function"===typeof t?t(e):t}function lo(e){var t=uo(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=eo,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=s=a=null,c=i;do{var l=c.lane;if((Za&l)===l)null!==u&&(u=u.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var f={lane:l,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===u?(s=u=f,a=r):u=u.next=f,$a.lanes|=l,Qs|=l}c=c.next}while(null!==c&&c!==i);null===u?a=r:u.next=s,lr(r,t.memoizedState)||(Lo=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function fo(e){var t=uo(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);lr(a,t.memoizedState)||(Lo=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ho(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Za&e)===e)&&(t._workInProgressVersionPrimary=r,Wa.push(t))),e)return n(t._source);throw Wa.push(t),Error(o(350))}function po(e,t,n,r){var i=Rs;if(null===i)throw Error(o(349));var a=t._getVersion,s=a(t._source),u=Ya.current,c=u.useState((function(){return ho(i,t,n)})),l=c[1],f=c[0];c=to;var h=e.memoizedState,d=h.refs,p=d.getSnapshot,v=h.source;h=h.subscribe;var m=$a;return e.memoizedState={refs:d,source:t,subscribe:r},u.useEffect((function(){d.getSnapshot=n,d.setSnapshot=l;var e=a(t._source);if(!lr(s,e)){e=n(t._source),lr(f,e)||(l(e),e=du(m),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,o=e;0<o;){var u=31-qt(o),c=1<<u;r[u]|=e,o&=~c}}}),[n,t,r]),u.useEffect((function(){return r(t._source,(function(){var e=d.getSnapshot,n=d.setSnapshot;try{n(e(t._source));var r=du(m);i.mutableReadLanes|=r&i.pendingLanes}catch(a){n((function(){throw a}))}}))}),[t,r]),lr(p,n)&&lr(v,t)&&lr(h,r)||((e={pending:null,dispatch:null,lastRenderedReducer:co,lastRenderedState:f}).dispatch=l=Do.bind(null,$a,e),c.queue=e,c.baseQueue=null,f=ho(i,t,n),c.memoizedState=c.baseState=f),f}function vo(e,t,n){return po(uo(),e,t,n)}function mo(e){var t=so();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:co,lastRenderedState:e}).dispatch=Do.bind(null,$a,e),[t.memoizedState,e]}function go(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=$a.updateQueue)?(t={lastEffect:null},$a.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function yo(e){return e={current:e},so().memoizedState=e}function Ao(){return uo().memoizedState}function ko(e,t,n,r){var i=so();$a.flags|=e,i.memoizedState=go(1|t,n,void 0,void 0===r?null:r)}function bo(e,t,n,r){var i=uo();r=void 0===r?null:r;var a=void 0;if(null!==eo){var o=eo.memoizedState;if(a=o.destroy,null!==r&&ao(r,o.deps))return void go(t,n,a,r)}$a.flags|=e,i.memoizedState=go(1|t,n,a,r)}function wo(e,t){return ko(516,4,e,t)}function xo(e,t){return bo(516,4,e,t)}function Io(e,t){return bo(4,2,e,t)}function Eo(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function So(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,bo(4,2,Eo.bind(null,t,e),n)}function To(){}function Co(e,t){var n=uo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ao(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function _o(e,t){var n=uo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ao(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function No(e,t){var n=qi();Hi(98>n?98:n,(function(){e(!0)})),Hi(97<n?97:n,(function(){var n=Xa.transition;Xa.transition=1;try{e(!1),t()}finally{Xa.transition=n}}))}function Do(e,t,n){var r=hu(),i=du(e),a={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===$a||null!==o&&o===$a)ro=no=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var s=t.lastRenderedState,u=o(s,n);if(a.eagerReducer=o,a.eagerState=u,lr(u,s))return}catch(c){}pu(e,i,r)}}var Oo={readContext:oa,useCallback:io,useContext:io,useEffect:io,useImperativeHandle:io,useLayoutEffect:io,useMemo:io,useReducer:io,useRef:io,useState:io,useDebugValue:io,useDeferredValue:io,useTransition:io,useMutableSource:io,useOpaqueIdentifier:io,unstable_isNewReconciler:!1},Ro={readContext:oa,useCallback:function(e,t){return so().memoizedState=[e,void 0===t?null:t],e},useContext:oa,useEffect:wo,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ko(4,2,Eo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ko(4,2,e,t)},useMemo:function(e,t){var n=so();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=so();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Do.bind(null,$a,e),[r.memoizedState,e]},useRef:yo,useState:mo,useDebugValue:To,useDeferredValue:function(e){var t=mo(e),n=t[0],r=t[1];return wo((function(){var t=Xa.transition;Xa.transition=1;try{r(e)}finally{Xa.transition=t}}),[e]),n},useTransition:function(){var e=mo(!1),t=e[0];return yo(e=No.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=so();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},po(r,e,t,n)},useOpaqueIdentifier:function(){if(Qa){var e=!1,t=function(e){return{$$typeof:M,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Yr++).toString(36))),Error(o(355))})),n=mo(t)[1];return 0===(2&$a.mode)&&($a.flags|=516,go(5,(function(){n("r:"+(Yr++).toString(36))}),void 0,null)),t}return mo(t="r:"+(Yr++).toString(36)),t},unstable_isNewReconciler:!1},Po={readContext:oa,useCallback:Co,useContext:oa,useEffect:xo,useImperativeHandle:So,useLayoutEffect:Io,useMemo:_o,useReducer:lo,useRef:Ao,useState:function(){return lo(co)},useDebugValue:To,useDeferredValue:function(e){var t=lo(co),n=t[0],r=t[1];return xo((function(){var t=Xa.transition;Xa.transition=1;try{r(e)}finally{Xa.transition=t}}),[e]),n},useTransition:function(){var e=lo(co)[0];return[Ao().current,e]},useMutableSource:vo,useOpaqueIdentifier:function(){return lo(co)[0]},unstable_isNewReconciler:!1},Mo={readContext:oa,useCallback:Co,useContext:oa,useEffect:xo,useImperativeHandle:So,useLayoutEffect:Io,useMemo:_o,useReducer:fo,useRef:Ao,useState:function(){return fo(co)},useDebugValue:To,useDeferredValue:function(e){var t=fo(co),n=t[0],r=t[1];return xo((function(){var t=Xa.transition;Xa.transition=1;try{r(e)}finally{Xa.transition=t}}),[e]),n},useTransition:function(){var e=fo(co)[0];return[Ao().current,e]},useMutableSource:vo,useOpaqueIdentifier:function(){return fo(co)[0]},unstable_isNewReconciler:!1},Bo=b.ReactCurrentOwner,Lo=!1;function jo(e,t,n,r){t.child=null===e?Ta(t,null,n,r):Sa(t,e.child,n,r)}function Uo(e,t,n,r,i){n=n.render;var a=t.ref;return aa(t,i),r=oo(e,t,n,r,a,i),null===e||Lo?(t.flags|=1,jo(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,as(e,t,i))}function Fo(e,t,n,r,i,a){if(null===e){var o=n.type;return"function"!==typeof o||Gu(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ku(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Qo(e,t,o,r,i,a))}return o=e.child,0===(i&a)&&(i=o.memoizedProps,(n=null!==(n=n.compare)?n:hr)(i,r)&&e.ref===t.ref)?as(e,t,a):(t.flags|=1,(e=Hu(o,r)).ref=t.ref,e.return=t,t.child=e)}function Qo(e,t,n,r,i,a){if(null!==e&&hr(e.memoizedProps,r)&&e.ref===t.ref){if(Lo=!1,0===(a&i))return t.lanes=e.lanes,as(e,t,a);0!==(16384&e.flags)&&(Lo=!0)}return qo(e,t,n,r,a)}function Vo(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},wu(t,n);else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},wu(t,e),null;t.memoizedState={baseLanes:0},wu(t,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,wu(t,r);return jo(e,t,i,n),t.child}function zo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function qo(e,t,n,r,i){var a=gi(n)?vi:di.current;return a=mi(t,a),aa(t,i),n=oo(e,t,n,r,a,i),null===e||Lo?(t.flags|=1,jo(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,as(e,t,i))}function Go(e,t,n,r,i){if(gi(n)){var a=!0;bi(t)}else a=!1;if(aa(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),Aa(t,n,r),ba(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,c=n.contextType;"object"===typeof c&&null!==c?c=oa(c):c=mi(t,c=gi(n)?vi:di.current);var l=n.getDerivedStateFromProps,f="function"===typeof l||"function"===typeof o.getSnapshotBeforeUpdate;f||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==r||u!==c)&&ka(t,o,r,c),sa=!1;var h=t.memoizedState;o.state=h,da(t,r,o,i),u=t.memoizedState,s!==r||h!==u||pi.current||sa?("function"===typeof l&&(ma(t,n,l,r),u=t.memoizedState),(s=sa||ya(t,n,s,r,h,u,c))?(f||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4)):("function"===typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=c,r=s):("function"===typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,ca(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Xi(t.type,s),o.props=c,f=t.pendingProps,h=o.context,"object"===typeof(u=n.contextType)&&null!==u?u=oa(u):u=mi(t,u=gi(n)?vi:di.current);var d=n.getDerivedStateFromProps;(l="function"===typeof d||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==f||h!==u)&&ka(t,o,r,u),sa=!1,h=t.memoizedState,o.state=h,da(t,r,o,i);var p=t.memoizedState;s!==f||h!==p||pi.current||sa?("function"===typeof d&&(ma(t,n,d,r),p=t.memoizedState),(c=sa||ya(t,n,c,r,h,p,u))?(l||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,u),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,u)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=u,r=c):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),r=!1)}return Ho(e,t,n,r,a,i)}function Ho(e,t,n,r,i,a){zo(e,t);var o=0!==(64&t.flags);if(!r&&!o)return i&&wi(t,n,!1),as(e,t,a);r=t.stateNode,Bo.current=t;var s=o&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=Sa(t,e.child,null,a),t.child=Sa(t,null,s,a)):jo(e,t,s,a),t.memoizedState=r.state,i&&wi(t,n,!0),t.child}function Ko(e){var t=e.stateNode;t.pendingContext?Ai(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ai(0,t.context,!1),Ra(e,t.containerInfo)}var Wo,Jo,Yo,Xo={dehydrated:null,retryLane:0};function Zo(e,t,n){var r,i=t.pendingProps,a=La.current,o=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),fi(La,1&a),null===e?(void 0!==i.fallback&&qa(t),e=i.children,a=i.fallback,o?(e=$o(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Xo,e):"number"===typeof i.unstable_expectedLoadTime?(e=$o(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Xo,t.lanes=33554432,e):((n=Ju({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(i=ts(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Xo,i):(n=es(e,t,i.children,n),t.memoizedState=null,n))}function $o(e,t,n,r){var i=e.mode,a=e.child;return t={mode:"hidden",children:t},0===(2&i)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=Ju(t,i,0,null),n=Wu(n,i,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function es(e,t,n,r){var i=e.child;return e=i.sibling,n=Hu(i,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function ts(e,t,n,r,i){var a=t.mode,o=e.child;e=o.sibling;var s={mode:"hidden",children:n};return 0===(2&a)&&t.child!==o?((n=t.child).childLanes=0,n.pendingProps=s,null!==(o=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Hu(o,s),null!==e?r=Hu(e,r):(r=Wu(r,a,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function ns(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ia(e.return,t)}function rs(e,t,n,r,i,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.lastEffect=a)}function is(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(jo(e,t,r.children,n),0!==(2&(r=La.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ns(e,n);else if(19===e.tag)ns(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(fi(La,r),0===(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ja(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),rs(t,!1,i,n,a,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ja(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}rs(t,!0,n,null,a,t.lastEffect);break;case"together":rs(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function as(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Qs|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Hu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Hu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function os(e,t){if(!Qa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ss(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return gi(t.type)&&yi(),null;case 3:return Pa(),li(pi),li(di),Ja(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ha(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Ba(t);var a=Oa(Da.current);if(n=t.type,null!==e&&null!=t.stateNode)Jo(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(o(166));return null}if(e=Oa(_a.current),Ha(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Zr]=t,r[$r]=s,n){case"dialog":Nr("cancel",r),Nr("close",r);break;case"iframe":case"object":case"embed":Nr("load",r);break;case"video":case"audio":for(e=0;e<Sr.length;e++)Nr(Sr[e],r);break;case"source":Nr("error",r);break;case"img":case"image":case"link":Nr("error",r),Nr("load",r);break;case"details":Nr("toggle",r);break;case"input":ee(r,s),Nr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Nr("invalid",r);break;case"textarea":ue(r,s),Nr("invalid",r)}for(var c in Ie(n,s),e=null,s)s.hasOwnProperty(c)&&(a=s[c],"children"===c?"string"===typeof a?r.textContent!==a&&(e=["children",a]):"number"===typeof a&&r.textContent!==""+a&&(e=["children",""+a]):u.hasOwnProperty(c)&&null!=a&&"onScroll"===c&&Nr("scroll",r));switch(n){case"input":Y(r),re(r,s,!0);break;case"textarea":Y(r),le(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=Fr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(c=9===a.nodeType?a:a.ownerDocument,e===fe&&(e=de(n)),e===fe?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[Zr]=t,e[$r]=r,Wo(e,t),t.stateNode=e,c=Ee(n,r),n){case"dialog":Nr("cancel",e),Nr("close",e),a=r;break;case"iframe":case"object":case"embed":Nr("load",e),a=r;break;case"video":case"audio":for(a=0;a<Sr.length;a++)Nr(Sr[a],e);a=r;break;case"source":Nr("error",e),a=r;break;case"img":case"image":case"link":Nr("error",e),Nr("load",e),a=r;break;case"details":Nr("toggle",e),a=r;break;case"input":ee(e,r),a=$(e,r),Nr("invalid",e);break;case"option":a=ae(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=i({},r,{value:void 0}),Nr("invalid",e);break;case"textarea":ue(e,r),a=se(e,r),Nr("invalid",e);break;default:a=r}Ie(n,a);var l=a;for(s in l)if(l.hasOwnProperty(s)){var f=l[s];"style"===s?we(e,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&ge(e,f):"children"===s?"string"===typeof f?("textarea"!==n||""!==f)&&ye(e,f):"number"===typeof f&&ye(e,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(u.hasOwnProperty(s)?null!=f&&"onScroll"===s&&Nr("scroll",e):null!=f&&k(e,s,f,c))}switch(n){case"input":Y(e),re(e,r,!1);break;case"textarea":Y(e),le(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?oe(e,!!r.multiple,s,!1):null!=r.defaultValue&&oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof a.onClick&&(e.onclick=Fr)}zr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Yo(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));n=Oa(Da.current),Oa(_a.current),Ha(t)?(r=t.stateNode,n=t.memoizedProps,r[Zr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Zr]=t,t.stateNode=r)}return null;case 13:return li(La),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Ha(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&La.current)?0===js&&(js=3):(0!==js&&3!==js||(js=4),null===Rs||0===(134217727&Qs)&&0===(134217727&Vs)||yu(Rs,Ms))),(r||n)&&(t.flags|=4),null);case 4:return Pa(),null===e&&Or(t.stateNode.containerInfo),null;case 10:return ra(t),null;case 19:if(li(La),null===(r=t.memoizedState))return null;if(s=0!==(64&t.flags),null===(c=r.rendering))if(s)os(r,!1);else{if(0!==js||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=ja(e))){for(t.flags|=64,os(r,!1),null!==(s=c.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return fi(La,1&La.current|2),t.child}e=e.sibling}null!==r.tail&&zi()>Hs&&(t.flags|=64,s=!0,os(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=ja(c))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),os(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!Qa)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*zi()-r.renderingStartTime>Hs&&1073741824!==n&&(t.flags|=64,s=!0,os(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=zi(),n.sibling=null,t=La.current,fi(La,s?1&t|2:1&t),n):null;case 23:case 24:return xu(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(o(156,t.tag))}function us(e){switch(e.tag){case 1:gi(e.type)&&yi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Pa(),li(pi),li(di),Ja(),0!==(64&(t=e.flags)))throw Error(o(285));return e.flags=-4097&t|64,e;case 5:return Ba(e),null;case 13:return li(La),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return li(La),null;case 4:return Pa(),null;case 10:return ra(e),null;case 23:case 24:return xu(),null;default:return null}}function cs(e,t){try{var n="",r=t;do{n+=H(r),r=r.return}while(r);var i=n}catch(a){i="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:i}}function ls(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Wo=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Jo=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Oa(_a.current);var o,s=null;switch(n){case"input":a=$(e,a),r=$(e,r),s=[];break;case"option":a=ae(e,a),r=ae(e,r),s=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),s=[];break;case"textarea":a=se(e,a),r=se(e,r),s=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(e.onclick=Fr)}for(f in Ie(n,r),n=null,a)if(!r.hasOwnProperty(f)&&a.hasOwnProperty(f)&&null!=a[f])if("style"===f){var c=a[f];for(o in c)c.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(u.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var l=r[f];if(c=null!=a?a[f]:void 0,r.hasOwnProperty(f)&&l!==c&&(null!=l||null!=c))if("style"===f)if(c){for(o in c)!c.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&c[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(f,n)),n=l;else"dangerouslySetInnerHTML"===f?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(s=s||[]).push(f,l)):"children"===f?"string"!==typeof l&&"number"!==typeof l||(s=s||[]).push(f,""+l):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(u.hasOwnProperty(f)?(null!=l&&"onScroll"===f&&Nr("scroll",e),s||c===l||(s=[])):"object"===typeof l&&null!==l&&l.$$typeof===M?l.toString():(s=s||[]).push(f,l))}n&&(s=s||[]).push("style",n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}},Yo=function(e,t,n,r){n!==r&&(t.flags|=4)};var fs="function"===typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=la(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ys||(Ys=!0,Xs=r),ls(0,t)},n}function ds(e,t,n){(n=la(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return ls(0,t),r(i)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Zs?Zs=new Set([this]):Zs.add(this),ls(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ps="function"===typeof WeakSet?WeakSet:Set;function vs(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Fu(e,n)}else t.current=null}function ms(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Xi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Kr(t.stateNode.containerInfo))}throw Error(o(163))}function gs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!==(4&(i=i.tag))&&0!==(1&i)&&(Lu(n,e),Bu(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Xi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&pa(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}pa(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&zr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&wt(n)))))}throw Error(o(163))}function ys(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=void 0!==i&&null!==i&&i.hasOwnProperty("display")?i.display:null,r.style.display=be("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function As(e,t){if(Ii&&"function"===typeof Ii.onCommitFiberUnmount)try{Ii.onCommitFiberUnmount(xi,t)}catch(a){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!==(4&r))Lu(t,n);else{r=t;try{i()}catch(a){Fu(r,a)}}n=n.next}while(n!==e)}break;case 1:if(vs(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){Fu(t,a)}break;case 5:vs(t);break;case 4:Es(e,t)}}function ks(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function bs(e){return 5===e.tag||3===e.tag||4===e.tag}function ws(e){e:{for(var t=e.return;null!==t;){if(bs(t))break e;t=t.return}throw Error(o(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&n.flags&&(ye(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||bs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?xs(e,n,t):Is(e,n,t)}function xs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Fr));else if(4!==r&&null!==(e=e.child))for(xs(e,t,n),e=e.sibling;null!==e;)xs(e,t,n),e=e.sibling}function Is(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Is(e,t,n),e=e.sibling;null!==e;)Is(e,t,n),e=e.sibling}function Es(e,t){for(var n,r,i=t,a=!1;;){if(!a){a=i.return;e:for(;;){if(null===a)throw Error(o(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===i.tag||6===i.tag){e:for(var s=e,u=i,c=u;;)if(As(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===u)break e;for(;null===c.sibling;){if(null===c.return||c.return===u)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(s=n,u=i.stateNode,8===s.nodeType?s.parentNode.removeChild(u):s.removeChild(u)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(As(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(a=!1)}i.sibling.return=i.return,i=i.sibling}}function Ss(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[$r]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Ee(e,i),t=Ee(e,r),i=0;i<a.length;i+=2){var s=a[i],u=a[i+1];"style"===s?we(n,u):"dangerouslySetInnerHTML"===s?ge(n,u):"children"===s?ye(n,u):k(n,s,u,t)}switch(e){case"input":ne(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?oe(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?oe(n,!!r.multiple,r.defaultValue,!0):oe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,wt(n.containerInfo)));case 13:return null!==t.memoizedState&&(Gs=zi(),ys(t.child,!0)),void Ts(t);case 19:return void Ts(t);case 23:case 24:return void ys(t,null!==t.memoizedState)}throw Error(o(163))}function Ts(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ps),t.forEach((function(t){var r=Vu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Cs(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var _s=Math.ceil,Ns=b.ReactCurrentDispatcher,Ds=b.ReactCurrentOwner,Os=0,Rs=null,Ps=null,Ms=0,Bs=0,Ls=ci(0),js=0,Us=null,Fs=0,Qs=0,Vs=0,zs=0,qs=null,Gs=0,Hs=1/0;function Ks(){Hs=zi()+500}var Ws,Js=null,Ys=!1,Xs=null,Zs=null,$s=!1,eu=null,tu=90,nu=[],ru=[],iu=null,au=0,ou=null,su=-1,uu=0,cu=0,lu=null,fu=!1;function hu(){return 0!==(48&Os)?zi():-1!==su?su:su=zi()}function du(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===qi()?1:2;if(0===uu&&(uu=Fs),0!==Yi.transition){0!==cu&&(cu=null!==qs?qs.pendingLanes:0),e=uu;var t=4186112&~cu;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=qi(),0!==(4&Os)&&98===e?e=Ft(12,uu):e=Ft(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),uu),e}function pu(e,t,n){if(50<au)throw au=0,ou=null,Error(o(185));if(null===(e=vu(e,t)))return null;zt(e,t,n),e===Rs&&(Vs|=t,4===js&&yu(e,Ms));var r=qi();1===t?0!==(8&Os)&&0===(48&Os)?Au(e):(mu(e,n),0===Os&&(Ks(),Wi())):(0===(4&Os)||98!==r&&99!==r||(null===iu?iu=new Set([e]):iu.add(e)),mu(e,n)),qs=e}function vu(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function mu(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,s=e.pendingLanes;0<s;){var u=31-qt(s),c=1<<u,l=a[u];if(-1===l){if(0===(c&r)||0!==(c&i)){l=t,Lt(c);var f=Bt;a[u]=10<=f?l+250:6<=f?l+5e3:-1}}else l<=t&&(e.expiredLanes|=c);s&=~c}if(r=jt(e,e===Rs?Ms:0),t=Bt,0===r)null!==n&&(n!==Li&&Ti(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Li&&Ti(n)}15===t?(n=Au.bind(null,e),null===Ui?(Ui=[n],Fi=Si(Oi,Ji)):Ui.push(n),n=Li):14===t?n=Ki(99,Au.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(o(358,e))}}(t),n=Ki(n,gu.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function gu(e){if(su=-1,cu=uu=0,0!==(48&Os))throw Error(o(327));var t=e.callbackNode;if(Mu()&&e.callbackNode!==t)return null;var n=jt(e,e===Rs?Ms:0);if(0===n)return null;var r=n,i=Os;Os|=16;var a=Su();for(Rs===e&&Ms===r||(Ks(),Iu(e,r));;)try{_u();break}catch(u){Eu(e,u)}if(na(),Ns.current=a,Os=i,null!==Ps?r=0:(Rs=null,Ms=0,r=js),0!==(Fs&Vs))Iu(e,0);else if(0!==r){if(2===r&&(Os|=64,e.hydrate&&(e.hydrate=!1,Kr(e.containerInfo)),0!==(n=Ut(e))&&(r=Tu(e,n))),1===r)throw t=Us,Iu(e,0),yu(e,n),mu(e,zi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(o(345));case 2:case 5:Ou(e);break;case 3:if(yu(e,n),(62914560&n)===n&&10<(r=Gs+500-zi())){if(0!==jt(e,0))break;if(((i=e.suspendedLanes)&n)!==n){hu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Gr(Ou.bind(null,e),r);break}Ou(e);break;case 4:if(yu(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var s=31-qt(n);a=1<<s,(s=r[s])>i&&(i=s),n&=~a}if(n=i,10<(n=(120>(n=zi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*_s(n/1960))-n)){e.timeoutHandle=Gr(Ou.bind(null,e),n);break}Ou(e);break;default:throw Error(o(329))}}return mu(e,zi()),e.callbackNode===t?gu.bind(null,e):null}function yu(e,t){for(t&=~zs,t&=~Vs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-qt(t),r=1<<n;e[n]=-1,t&=~r}}function Au(e){if(0!==(48&Os))throw Error(o(327));if(Mu(),e===Rs&&0!==(e.expiredLanes&Ms)){var t=Ms,n=Tu(e,t);0!==(Fs&Vs)&&(n=Tu(e,t=jt(e,t)))}else n=Tu(e,t=jt(e,0));if(0!==e.tag&&2===n&&(Os|=64,e.hydrate&&(e.hydrate=!1,Kr(e.containerInfo)),0!==(t=Ut(e))&&(n=Tu(e,t))),1===n)throw n=Us,Iu(e,0),yu(e,t),mu(e,zi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ou(e),mu(e,zi()),null}function ku(e,t){var n=Os;Os|=1;try{return e(t)}finally{0===(Os=n)&&(Ks(),Wi())}}function bu(e,t){var n=Os;Os&=-2,Os|=8;try{return e(t)}finally{0===(Os=n)&&(Ks(),Wi())}}function wu(e,t){fi(Ls,Bs),Bs|=t,Fs|=t}function xu(){Bs=Ls.current,li(Ls)}function Iu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Hr(n)),null!==Ps)for(n=Ps.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&yi();break;case 3:Pa(),li(pi),li(di),Ja();break;case 5:Ba(r);break;case 4:Pa();break;case 13:case 19:li(La);break;case 10:ra(r);break;case 23:case 24:xu()}n=n.return}Rs=e,Ps=Hu(e.current,null),Ms=Bs=Fs=t,js=0,Us=null,zs=Vs=Qs=0}function Eu(e,t){for(;;){var n=Ps;try{if(na(),Ya.current=Oo,no){for(var r=$a.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}no=!1}if(Za=0,to=eo=$a=null,ro=!1,Ds.current=null,null===n||null===n.return){js=1,Us=t,Ps=null;break}e:{var a=e,o=n.return,s=n,u=t;if(t=Ms,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u;if(0===(2&s.mode)){var l=s.alternate;l?(s.updateQueue=l.updateQueue,s.memoizedState=l.memoizedState,s.lanes=l.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=0!==(1&La.current),h=o;do{var d;if(d=13===h.tag){var p=h.memoizedState;if(null!==p)d=null!==p.dehydrated;else{var v=h.memoizedProps;d=void 0!==v.fallback&&(!0!==v.unstable_avoidThisFallback||!f)}}if(d){var m=h.updateQueue;if(null===m){var g=new Set;g.add(c),h.updateQueue=g}else m.add(c);if(0===(2&h.mode)){if(h.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=la(-1,1);y.tag=2,fa(s,y)}s.lanes|=1;break e}u=void 0,s=t;var A=a.pingCache;if(null===A?(A=a.pingCache=new fs,u=new Set,A.set(c,u)):void 0===(u=A.get(c))&&(u=new Set,A.set(c,u)),!u.has(s)){u.add(s);var k=Qu.bind(null,a,c,s);c.then(k,k)}h.flags|=4096,h.lanes=t;break e}h=h.return}while(null!==h);u=Error((K(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==js&&(js=2),u=cs(u,s),h=o;do{switch(h.tag){case 3:a=u,h.flags|=4096,t&=-t,h.lanes|=t,ha(h,hs(0,a,t));break e;case 1:a=u;var b=h.type,w=h.stateNode;if(0===(64&h.flags)&&("function"===typeof b.getDerivedStateFromError||null!==w&&"function"===typeof w.componentDidCatch&&(null===Zs||!Zs.has(w)))){h.flags|=4096,t&=-t,h.lanes|=t,ha(h,ds(h,a,t));break e}}h=h.return}while(null!==h)}Du(n)}catch(x){t=x,Ps===n&&null!==n&&(Ps=n=n.return);continue}break}}function Su(){var e=Ns.current;return Ns.current=Oo,null===e?Oo:e}function Tu(e,t){var n=Os;Os|=16;var r=Su();for(Rs===e&&Ms===t||Iu(e,t);;)try{Cu();break}catch(i){Eu(e,i)}if(na(),Os=n,Ns.current=r,null!==Ps)throw Error(o(261));return Rs=null,Ms=0,js}function Cu(){for(;null!==Ps;)Nu(Ps)}function _u(){for(;null!==Ps&&!Ci();)Nu(Ps)}function Nu(e){var t=Ws(e.alternate,e,Bs);e.memoizedProps=e.pendingProps,null===t?Du(e):Ps=t,Ds.current=null}function Du(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=ss(n,t,Bs)))return void(Ps=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Bs)||0===(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=us(t)))return n.flags&=2047,void(Ps=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ps=t);Ps=t=e}while(null!==t);0===js&&(js=5)}function Ou(e){var t=qi();return Hi(99,Ru.bind(null,e,t)),null}function Ru(e,t){do{Mu()}while(null!==eu);if(0!==(48&Os))throw Error(o(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,a=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var s=e.eventTimes,u=e.expirationTimes;0<a;){var c=31-qt(a),l=1<<c;i[c]=0,s[c]=-1,u[c]=-1,a&=~l}if(null!==iu&&0===(24&r)&&iu.has(e)&&iu.delete(e),e===Rs&&(Ps=Rs=null,Ms=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Os,Os|=32,Ds.current=null,Qr=Jt,gr(s=mr())){if("selectionStart"in s)u={start:s.selectionStart,end:s.selectionEnd};else e:if(u=(u=s.ownerDocument)&&u.defaultView||window,(l=u.getSelection&&u.getSelection())&&0!==l.rangeCount){u=l.anchorNode,a=l.anchorOffset,c=l.focusNode,l=l.focusOffset;try{u.nodeType,c.nodeType}catch(S){u=null;break e}var f=0,h=-1,d=-1,p=0,v=0,m=s,g=null;t:for(;;){for(var y;m!==u||0!==a&&3!==m.nodeType||(h=f+a),m!==c||0!==l&&3!==m.nodeType||(d=f+l),3===m.nodeType&&(f+=m.nodeValue.length),null!==(y=m.firstChild);)g=m,m=y;for(;;){if(m===s)break t;if(g===u&&++p===a&&(h=f),g===c&&++v===l&&(d=f),null!==(y=m.nextSibling))break;g=(m=g).parentNode}m=y}u=-1===h||-1===d?null:{start:h,end:d}}else u=null;u=u||{start:0,end:0}}else u=null;Vr={focusedElem:s,selectionRange:u},Jt=!1,lu=null,fu=!1,Js=r;do{try{Pu()}catch(S){if(null===Js)throw Error(o(330));Fu(Js,S),Js=Js.nextEffect}}while(null!==Js);lu=null,Js=r;do{try{for(s=e;null!==Js;){var A=Js.flags;if(16&A&&ye(Js.stateNode,""),128&A){var k=Js.alternate;if(null!==k){var b=k.ref;null!==b&&("function"===typeof b?b(null):b.current=null)}}switch(1038&A){case 2:ws(Js),Js.flags&=-3;break;case 6:ws(Js),Js.flags&=-3,Ss(Js.alternate,Js);break;case 1024:Js.flags&=-1025;break;case 1028:Js.flags&=-1025,Ss(Js.alternate,Js);break;case 4:Ss(Js.alternate,Js);break;case 8:Es(s,u=Js);var w=u.alternate;ks(u),null!==w&&ks(w)}Js=Js.nextEffect}}catch(S){if(null===Js)throw Error(o(330));Fu(Js,S),Js=Js.nextEffect}}while(null!==Js);if(b=Vr,k=mr(),A=b.focusedElem,s=b.selectionRange,k!==A&&A&&A.ownerDocument&&vr(A.ownerDocument.documentElement,A)){null!==s&&gr(A)&&(k=s.start,void 0===(b=s.end)&&(b=k),"selectionStart"in A?(A.selectionStart=k,A.selectionEnd=Math.min(b,A.value.length)):(b=(k=A.ownerDocument||document)&&k.defaultView||window).getSelection&&(b=b.getSelection(),u=A.textContent.length,w=Math.min(s.start,u),s=void 0===s.end?w:Math.min(s.end,u),!b.extend&&w>s&&(u=s,s=w,w=u),u=pr(A,w),a=pr(A,s),u&&a&&(1!==b.rangeCount||b.anchorNode!==u.node||b.anchorOffset!==u.offset||b.focusNode!==a.node||b.focusOffset!==a.offset)&&((k=k.createRange()).setStart(u.node,u.offset),b.removeAllRanges(),w>s?(b.addRange(k),b.extend(a.node,a.offset)):(k.setEnd(a.node,a.offset),b.addRange(k))))),k=[];for(b=A;b=b.parentNode;)1===b.nodeType&&k.push({element:b,left:b.scrollLeft,top:b.scrollTop});for("function"===typeof A.focus&&A.focus(),A=0;A<k.length;A++)(b=k[A]).element.scrollLeft=b.left,b.element.scrollTop=b.top}Jt=!!Qr,Vr=Qr=null,e.current=n,Js=r;do{try{for(A=e;null!==Js;){var x=Js.flags;if(36&x&&gs(A,Js.alternate,Js),128&x){k=void 0;var I=Js.ref;if(null!==I){var E=Js.stateNode;Js.tag,k=E,"function"===typeof I?I(k):I.current=k}}Js=Js.nextEffect}}catch(S){if(null===Js)throw Error(o(330));Fu(Js,S),Js=Js.nextEffect}}while(null!==Js);Js=null,ji(),Os=i}else e.current=n;if($s)$s=!1,eu=e,tu=t;else for(Js=r;null!==Js;)t=Js.nextEffect,Js.nextEffect=null,8&Js.flags&&((x=Js).sibling=null,x.stateNode=null),Js=t;if(0===(r=e.pendingLanes)&&(Zs=null),1===r?e===ou?au++:(au=0,ou=e):au=0,n=n.stateNode,Ii&&"function"===typeof Ii.onCommitFiberRoot)try{Ii.onCommitFiberRoot(xi,n,void 0,64===(64&n.current.flags))}catch(S){}if(mu(e,zi()),Ys)throw Ys=!1,e=Xs,Xs=null,e;return 0!==(8&Os)||Wi(),null}function Pu(){for(;null!==Js;){var e=Js.alternate;fu||null===lu||(0!==(8&Js.flags)?et(Js,lu)&&(fu=!0):13===Js.tag&&Cs(e,Js)&&et(Js,lu)&&(fu=!0));var t=Js.flags;0!==(256&t)&&ms(e,Js),0===(512&t)||$s||($s=!0,Ki(97,(function(){return Mu(),null}))),Js=Js.nextEffect}}function Mu(){if(90!==tu){var e=97<tu?97:tu;return tu=90,Hi(e,ju)}return!1}function Bu(e,t){nu.push(t,e),$s||($s=!0,Ki(97,(function(){return Mu(),null})))}function Lu(e,t){ru.push(t,e),$s||($s=!0,Ki(97,(function(){return Mu(),null})))}function ju(){if(null===eu)return!1;var e=eu;if(eu=null,0!==(48&Os))throw Error(o(331));var t=Os;Os|=32;var n=ru;ru=[];for(var r=0;r<n.length;r+=2){var i=n[r],a=n[r+1],s=i.destroy;if(i.destroy=void 0,"function"===typeof s)try{s()}catch(c){if(null===a)throw Error(o(330));Fu(a,c)}}for(n=nu,nu=[],r=0;r<n.length;r+=2){i=n[r],a=n[r+1];try{var u=i.create;i.destroy=u()}catch(c){if(null===a)throw Error(o(330));Fu(a,c)}}for(u=e.current.firstEffect;null!==u;)e=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=e;return Os=t,Wi(),!0}function Uu(e,t,n){fa(e,t=hs(0,t=cs(n,t),1)),t=hu(),null!==(e=vu(e,1))&&(zt(e,1,t),mu(e,t))}function Fu(e,t){if(3===e.tag)Uu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Uu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Zs||!Zs.has(r))){var i=ds(n,e=cs(t,e),1);if(fa(n,i),i=hu(),null!==(n=vu(n,1)))zt(n,1,i),mu(n,i);else if("function"===typeof r.componentDidCatch&&(null===Zs||!Zs.has(r)))try{r.componentDidCatch(t,e)}catch(a){}break}}n=n.return}}function Qu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=hu(),e.pingedLanes|=e.suspendedLanes&n,Rs===e&&(Ms&n)===n&&(4===js||3===js&&(62914560&Ms)===Ms&&500>zi()-Gs?Iu(e,0):zs|=n),mu(e,t)}function Vu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===qi()?1:2:(0===uu&&(uu=Fs),0===(t=Qt(62914560&~uu))&&(t=4194304))),n=hu(),null!==(e=vu(e,t))&&(zt(e,t,n),mu(e,n))}function zu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function qu(e,t,n,r){return new zu(e,t,n,r)}function Gu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Hu(e,t){var n=e.alternate;return null===n?((n=qu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ku(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)Gu(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case I:return Wu(n.children,i,a,t);case B:s=8,i|=16;break;case E:s=8,i|=1;break;case S:return(e=qu(12,n,t,8|i)).elementType=S,e.type=S,e.lanes=a,e;case N:return(e=qu(13,n,t,i)).type=N,e.elementType=N,e.lanes=a,e;case D:return(e=qu(19,n,t,i)).elementType=D,e.lanes=a,e;case L:return Ju(n,i,a,t);case j:return(e=qu(24,n,t,i)).elementType=j,e.lanes=a,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case T:s=10;break e;case C:s=9;break e;case _:s=11;break e;case O:s=14;break e;case R:s=16,r=null;break e;case P:s=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=qu(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Wu(e,t,n,r){return(e=qu(7,e,r,t)).lanes=n,e}function Ju(e,t,n,r){return(e=qu(23,e,r,t)).elementType=L,e.lanes=n,e}function Yu(e,t,n){return(e=qu(6,e,null,t)).lanes=n,e}function Xu(e,t,n){return(t=qu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zu(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Vt(0),this.expirationTimes=Vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vt(0),this.mutableSourceEagerHydrationData=null}function $u(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function ec(e,t,n,r){var i=t.current,a=hu(),s=du(i);e:if(n){t:{if(Ye(n=n._reactInternals)!==n||1!==n.tag)throw Error(o(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(gi(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(o(171))}if(1===n.tag){var c=n.type;if(gi(c)){n=ki(n,c,u);break e}}n=u}else n=hi;return null===t.context?t.context=n:t.pendingContext=n,(t=la(a,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),fa(i,t),pu(i,s,a),s}function tc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function nc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function rc(e,t){nc(e,t),(e=e.alternate)&&nc(e,t)}function ic(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Zu(e,t,null!=n&&!0===n.hydrate),t=qu(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ua(t),e[ei]=n.current,Or(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function ac(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function oc(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if("function"===typeof i){var s=i;i=function(){var e=tc(o);s.call(e)}}ec(t,o,e,i)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new ic(e,0,t?{hydrate:!0}:void 0)}(n,r),o=a._internalRoot,"function"===typeof i){var u=i;i=function(){var e=tc(o);u.call(e)}}bu((function(){ec(t,o,e,i)}))}return tc(o)}function sc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ac(t))throw Error(o(200));return $u(e,t,null,n)}Ws=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||pi.current)Lo=!0;else{if(0===(n&r)){switch(Lo=!1,t.tag){case 3:Ko(t),Ka();break;case 5:Ma(t);break;case 1:gi(t.type)&&bi(t);break;case 4:Ra(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;fi(Zi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Zo(e,t,n):(fi(La,1&La.current),null!==(t=as(e,t,n))?t.sibling:null);fi(La,1&La.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return is(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),fi(La,La.current),r)break;return null;case 23:case 24:return t.lanes=0,Vo(e,t,n)}return as(e,t,n)}Lo=0!==(16384&e.flags)}else Lo=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=mi(t,di.current),aa(t,n),i=oo(null,t,r,e,i,n),t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,gi(r)){var a=!0;bi(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,ua(t);var s=r.getDerivedStateFromProps;"function"===typeof s&&ma(t,r,s,e),i.updater=ga,t.stateNode=i,i._reactInternals=t,ba(t,r,e,n),t=Ho(null,t,r,!0,a,n)}else t.tag=0,jo(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(a=i._init)(i._payload),t.type=i,a=t.tag=function(e){if("function"===typeof e)return Gu(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===_)return 11;if(e===O)return 14}return 2}(i),e=Xi(i,e),a){case 0:t=qo(null,t,i,e,n);break e;case 1:t=Go(null,t,i,e,n);break e;case 11:t=Uo(null,t,i,e,n);break e;case 14:t=Fo(null,t,i,Xi(i.type,e),r,n);break e}throw Error(o(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,qo(e,t,r,i=t.elementType===r?i:Xi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Go(e,t,r,i=t.elementType===r?i:Xi(r,i),n);case 3:if(Ko(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,ca(e,t),da(t,r,null,n),(r=t.memoizedState.element)===i)Ka(),t=as(e,t,n);else{if((a=(i=t.stateNode).hydrate)&&(Fa=Wr(t.stateNode.containerInfo.firstChild),Ua=t,a=Qa=!0),a){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(a=e[i])._workInProgressVersionPrimary=e[i+1],Wa.push(a);for(n=Ta(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else jo(e,t,r,n),Ka();t=t.child}return t;case 5:return Ma(t),null===e&&qa(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,qr(r,i)?s=null:null!==a&&qr(r,a)&&(t.flags|=16),zo(e,t),jo(e,t,s,n),t.child;case 6:return null===e&&qa(t),null;case 13:return Zo(e,t,n);case 4:return Ra(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Sa(t,null,r,n):jo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Uo(e,t,r,i=t.elementType===r?i:Xi(r,i),n);case 7:return jo(e,t,t.pendingProps,n),t.child;case 8:case 12:return jo(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,a=i.value;var u=t.type._context;if(fi(Zi,u._currentValue),u._currentValue=a,null!==s)if(u=s.value,0===(a=lr(u,a)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(u,a):1073741823))){if(s.children===i.children&&!pi.current){t=as(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var c=u.dependencies;if(null!==c){s=u.child;for(var l=c.firstContext;null!==l;){if(l.context===r&&0!==(l.observedBits&a)){1===u.tag&&((l=la(-1,n&-n)).tag=2,fa(u,l)),u.lanes|=n,null!==(l=u.alternate)&&(l.lanes|=n),ia(u.return,n),c.lanes|=n;break}l=l.next}}else s=10===u.tag&&u.type===t.type?null:u.child;if(null!==s)s.return=u;else for(s=u;null!==s;){if(s===t){s=null;break}if(null!==(u=s.sibling)){u.return=s.return,s=u;break}s=s.return}u=s}jo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(a=t.pendingProps).children,aa(t,n),r=r(i=oa(i,a.unstable_observedBits)),t.flags|=1,jo(e,t,r,n),t.child;case 14:return a=Xi(i=t.type,t.pendingProps),Fo(e,t,i,a=Xi(i.type,a),r,n);case 15:return Qo(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,gi(r)?(e=!0,bi(t)):e=!1,aa(t,n),Aa(t,r,i),ba(t,r,i,n),Ho(null,t,r,!0,e,n);case 19:return is(e,t,n);case 23:case 24:return Vo(e,t,n)}throw Error(o(156,t.tag))},ic.prototype.render=function(e){ec(e,this._internalRoot,null,null)},ic.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;ec(null,e,null,(function(){t[ei]=null}))},tt=function(e){13===e.tag&&(pu(e,4,hu()),rc(e,4))},nt=function(e){13===e.tag&&(pu(e,67108864,hu()),rc(e,67108864))},rt=function(e){if(13===e.tag){var t=hu(),n=du(e);pu(e,n,t),rc(e,n)}},it=function(e,t){return t()},Te=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ai(r);if(!i)throw Error(o(90));X(r),ne(r,i)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&oe(e,!!n.multiple,t,!1)}},Re=ku,Pe=function(e,t,n,r,i){var a=Os;Os|=4;try{return Hi(98,e.bind(null,t,n,r,i))}finally{0===(Os=a)&&(Ks(),Wi())}},Me=function(){0===(49&Os)&&(function(){if(null!==iu){var e=iu;iu=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,mu(e,zi())}))}Wi()}(),Mu())},Be=function(e,t){var n=Os;Os|=2;try{return e(t)}finally{0===(Os=n)&&(Ks(),Wi())}};var uc={Events:[ri,ii,ai,De,Oe,Mu,{current:!1}]},cc={findFiberByHostInstance:ni,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},lc={bundleType:cc.bundleType,version:cc.version,rendererPackageName:cc.rendererPackageName,rendererConfig:cc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=$e(e))?null:e.stateNode},findFiberByHostInstance:cc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var fc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fc.isDisabled&&fc.supportsFiber)try{xi=fc.inject(lc),Ii=fc}catch(me){}}t.render=function(e,t,n){if(!ac(t))throw Error(o(200));return oc(null,e,t,!1,n)}},164:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(463)},46:function(e,t,n){var r;e.exports=(r=n(791),function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t){e.exports=r},function(e,t,n){"use strict";(function(e){var n=function(){this._tweens={},this._tweensAddedDuringUpdate={}};n.prototype={getAll:function(){return Object.keys(this._tweens).map(function(e){return this._tweens[e]}.bind(this))},removeAll:function(){this._tweens={}},add:function(e){this._tweens[e.getId()]=e,this._tweensAddedDuringUpdate[e.getId()]=e},remove:function(e){delete this._tweens[e.getId()],delete this._tweensAddedDuringUpdate[e.getId()]},update:function(e,t){var n=Object.keys(this._tweens);if(0===n.length)return!1;for(e=void 0!==e?e:i.now();n.length>0;){this._tweensAddedDuringUpdate={};for(var r=0;r<n.length;r++){var a=this._tweens[n[r]];a&&!1===a.update(e)&&(a._isPlaying=!1,t||delete this._tweens[n[r]])}n=Object.keys(this._tweensAddedDuringUpdate)}return!0}};var r,i=new n;i.Group=n,i._nextId=0,i.nextId=function(){return i._nextId++},"undefined"==typeof self&&void 0!==e&&e.hrtime?i.now=function(){var t=e.hrtime();return 1e3*t[0]+t[1]/1e6}:"undefined"!=typeof self&&void 0!==self.performance&&void 0!==self.performance.now?i.now=self.performance.now.bind(self.performance):void 0!==Date.now?i.now=Date.now:i.now=function(){return(new Date).getTime()},i.Tween=function(e,t){this._object=e,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._repeat=0,this._repeatDelayTime=void 0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=null,this._easingFunction=i.Easing.Linear.None,this._interpolationFunction=i.Interpolation.Linear,this._chainedTweens=[],this._onStartCallback=null,this._onStartCallbackFired=!1,this._onUpdateCallback=null,this._onRepeatCallback=null,this._onCompleteCallback=null,this._onStopCallback=null,this._group=t||i,this._id=i.nextId()},i.Tween.prototype={getId:function(){return this._id},isPlaying:function(){return this._isPlaying},to:function(e,t){return this._valuesEnd=Object.create(e),void 0!==t&&(this._duration=t),this},duration:function(e){return this._duration=e,this},start:function(e){for(var t in this._group.add(this),this._isPlaying=!0,this._onStartCallbackFired=!1,this._startTime=void 0!==e?"string"==typeof e?i.now()+parseFloat(e):e:i.now(),this._startTime+=this._delayTime,this._valuesEnd){if(this._valuesEnd[t]instanceof Array){if(0===this._valuesEnd[t].length)continue;this._valuesEnd[t]=[this._object[t]].concat(this._valuesEnd[t])}void 0!==this._object[t]&&(this._valuesStart[t]=this._object[t],this._valuesStart[t]instanceof Array==0&&(this._valuesStart[t]*=1),this._valuesStartRepeat[t]=this._valuesStart[t]||0)}return this},stop:function(){return this._isPlaying?(this._group.remove(this),this._isPlaying=!1,null!==this._onStopCallback&&this._onStopCallback(this._object),this.stopChainedTweens(),this):this},end:function(){return this.update(1/0),this},stopChainedTweens:function(){for(var e=0,t=this._chainedTweens.length;e<t;e++)this._chainedTweens[e].stop()},group:function(e){return this._group=e,this},delay:function(e){return this._delayTime=e,this},repeat:function(e){return this._repeat=e,this},repeatDelay:function(e){return this._repeatDelayTime=e,this},yoyo:function(e){return this._yoyo=e,this},easing:function(e){return this._easingFunction=e,this},interpolation:function(e){return this._interpolationFunction=e,this},chain:function(){return this._chainedTweens=arguments,this},onStart:function(e){return this._onStartCallback=e,this},onUpdate:function(e){return this._onUpdateCallback=e,this},onRepeat:function(e){return this._onRepeatCallback=e,this},onComplete:function(e){return this._onCompleteCallback=e,this},onStop:function(e){return this._onStopCallback=e,this},update:function(e){var t,n,r;if(e<this._startTime)return!0;for(t in!1===this._onStartCallbackFired&&(null!==this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),n=(e-this._startTime)/this._duration,n=0===this._duration||n>1?1:n,r=this._easingFunction(n),this._valuesEnd)if(void 0!==this._valuesStart[t]){var i=this._valuesStart[t]||0,a=this._valuesEnd[t];a instanceof Array?this._object[t]=this._interpolationFunction(a,r):("string"==typeof a&&(a="+"===a.charAt(0)||"-"===a.charAt(0)?i+parseFloat(a):parseFloat(a)),"number"==typeof a&&(this._object[t]=i+(a-i)*r))}if(null!==this._onUpdateCallback&&this._onUpdateCallback(this._object,n),1===n){if(this._repeat>0){for(t in isFinite(this._repeat)&&this._repeat--,this._valuesStartRepeat){if("string"==typeof this._valuesEnd[t]&&(this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(this._valuesEnd[t])),this._yoyo){var o=this._valuesStartRepeat[t];this._valuesStartRepeat[t]=this._valuesEnd[t],this._valuesEnd[t]=o}this._valuesStart[t]=this._valuesStartRepeat[t]}return this._yoyo&&(this._reversed=!this._reversed),void 0!==this._repeatDelayTime?this._startTime=e+this._repeatDelayTime:this._startTime=e+this._delayTime,null!==this._onRepeatCallback&&this._onRepeatCallback(this._object),!0}null!==this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var s=0,u=this._chainedTweens.length;s<u;s++)this._chainedTweens[s].start(this._startTime+this._duration);return!1}return!0}},i.Easing={Linear:{None:function(e){return e}},Quadratic:{In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}},Cubic:{In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}},Quartic:{In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}},Quintic:{In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}},Sinusoidal:{In:function(e){return 1-Math.cos(e*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return.5*(1-Math.cos(Math.PI*e))}},Exponential:{In:function(e){return 0===e?0:Math.pow(1024,e-1)},Out:function(e){return 1===e?1:1-Math.pow(2,-10*e)},InOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))}},Circular:{In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}},Elastic:{In:function(e){return 0===e?0:1===e?1:-Math.pow(2,10*(e-1))*Math.sin(5*(e-1.1)*Math.PI)},Out:function(e){return 0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin(5*(e-.1)*Math.PI)+1},InOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?-.5*Math.pow(2,10*(e-1))*Math.sin(5*(e-1.1)*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin(5*(e-1.1)*Math.PI)+1}},Back:{In:function(e){var t=1.70158;return e*e*((t+1)*e-t)},Out:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},InOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)}},Bounce:{In:function(e){return 1-i.Easing.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?.5*i.Easing.Bounce.In(2*e):.5*i.Easing.Bounce.Out(2*e-1)+.5}}},i.Interpolation={Linear:function(e,t){var n=e.length-1,r=n*t,a=Math.floor(r),o=i.Interpolation.Utils.Linear;return t<0?o(e[0],e[1],r):t>1?o(e[n],e[n-1],n-r):o(e[a],e[a+1>n?n:a+1],r-a)},Bezier:function(e,t){for(var n=0,r=e.length-1,a=Math.pow,o=i.Interpolation.Utils.Bernstein,s=0;s<=r;s++)n+=a(1-t,r-s)*a(t,s)*e[s]*o(r,s);return n},CatmullRom:function(e,t){var n=e.length-1,r=n*t,a=Math.floor(r),o=i.Interpolation.Utils.CatmullRom;return e[0]===e[n]?(t<0&&(a=Math.floor(r=n*(1+t))),o(e[(a-1+n)%n],e[a],e[(a+1)%n],e[(a+2)%n],r-a)):t<0?e[0]-(o(e[0],e[0],e[1],e[1],-r)-e[0]):t>1?e[n]-(o(e[n],e[n],e[n-1],e[n-1],r-n)-e[n]):o(e[a?a-1:0],e[a],e[n<a+1?n:a+1],e[n<a+2?n:a+2],r-a)},Utils:{Linear:function(e,t,n){return(t-e)*n+e},Bernstein:function(e,t){var n=i.Interpolation.Utils.Factorial;return n(e)/n(t)/n(e-t)},Factorial:(r=[1],function(e){var t=1;if(r[e])return r[e];for(var n=e;n>1;n--)t*=n;return r[e]=t,t}),CatmullRom:function(e,t,n,r,i){var a=.5*(n-e),o=.5*(r-t),s=i*i;return(2*t-2*n+a+o)*(i*s)+(-3*t+3*n-2*a-o)*s+a*i+t}}},t.a=i}).call(this,n(3))},function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},o=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,u=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&u()}function s(){a(o)}function u(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(s,t);i=e}return u}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;o.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),c=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},l=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},f=g(0,0,0,0);function h(e){return parseFloat(e)||0}function d(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+h(e["border-"+n+"-width"])}),0)}function p(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var r=l(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],a=e["padding-"+i];t[i]=h(a)}return t}(r),a=i.left+i.right,o=i.top+i.bottom,s=h(r.width),u=h(r.height);if("border-box"===r.boxSizing&&(Math.round(s+a)!==t&&(s-=d(r,"left","right")+a),Math.round(u+o)!==n&&(u-=d(r,"top","bottom")+o)),!function(e){return e===l(e).document.documentElement}(e)){var c=Math.round(s+a)-t,p=Math.round(u+o)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(p)&&(u-=p)}return g(i.left,i.top,s,u)}var v="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof l(e).SVGGraphicsElement}:function(e){return e instanceof l(e).SVGElement&&"function"==typeof e.getBBox};function m(e){return r?v(e)?function(e){var t=e.getBBox();return g(0,0,t.width,t.height)}(e):p(e):f}function g(e,t,n,r){return{x:e,y:t,width:n,height:r}}var y=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=g(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=m(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),A=function(e,t){var n,r,i,a,o,s,u,l=(r=(n=t).x,i=n.y,a=n.width,o=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,u=Object.create(s.prototype),c(u,{x:r,y:i,width:a,height:o,top:i,right:r+a,bottom:o+i,left:r}),u);c(this,{target:e,contentRect:l})},k=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof l(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new y(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof l(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new A(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),b="undefined"!=typeof WeakMap?new WeakMap:new n,w=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),r=new k(t,n,this);b.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){w.prototype[e]=function(){var t;return(t=b.get(this))[e].apply(t,arguments)}}));var x=void 0!==i.ResizeObserver?i.ResizeObserver:w;t.a=x}).call(this,n(4))},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var u,c=[],l=!1,f=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&d())}function d(){if(!l){var e=s(h);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f<t;)u&&u[f].run();f=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||l||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.r(t),n.d(t,"Slide",(function(){return N})),n.d(t,"Fade",(function(){return L})),n.d(t,"Zoom",(function(){return q}));var r=n(0),i=n.n(r),a=n(1),o=n(2);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l={duration:5e3,transitionDuration:1e3,defaultIndex:0,infinite:!0,autoplay:!0,indicators:!1,arrows:!0,pauseOnHover:!0,scale:1,easing:"linear",canSwipe:!0,slidesToShow:1,slidesToScroll:1,cssClass:"",responsive:[]},f=function(e){var t=i.a.Children.map(e.children,(function(e){return e})),n={};if("undefined"!=typeof window&&Array.isArray(e.responsive)){var r=function(e,t){return t.find((function(t){return t.breakpoint<=e}))}(window.innerWidth,e.responsive);r&&(n=r.settings)}return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(n,!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},l,{},e,{},n,{children:t})},h={duration:"number",transitionDuration:"number",defaultIndex:"number",infinite:"boolean",indicators:["boolean","function"],autoplay:"boolean",arrows:"boolean",onChange:"function",pauseOnHover:"boolean",prevArrow:["object","function"],nextArrow:["object","function"],scale:"number",easing:"string",canSwipe:"boolean",slidesToShow:"number",slidesToScroll:"number",cssClass:"string",responsive:"array"},d=function(e){for(var t in e){var n=s(e[t]);h[t]&&(Array.isArray(h[t])&&!h[t].includes(n)?console.warn("".concat(t," must be of one of type ").concat(h[t].join(", "))):("array"!==h[t]||Array.isArray(e[t]))&&("array"===h[t]||Array.isArray(h[t])||n===h[t])||console.warn("".concat(t," must be of type ").concat(h[t])))}};function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(n,!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y={linear:a.a.Easing.Linear.None,ease:a.a.Easing.Quadratic.InOut,"ease-in":a.a.Easing.Quadratic.In,"ease-out":a.a.Easing.Quadratic.Out,cubic:a.a.Easing.Cubic.InOut,"cubic-in":a.a.Easing.Cubic.In,"cubic-out":a.a.Easing.Cubic.Out},A=function(e){return y[e]||y.linear},k=function(e,t){var n=Object.keys(e);return Object.keys(t).reduce((function(e,r){return-1===n.indexOf(r)&&(e[r]=t[r]),e}),{})},b=function(e,t,n){var r=e.prevArrow,a=e.infinite,o=t<=0&&!a,s={"data-type":"prev","aria-label":"Previous Slide",disabled:o,onClick:n};if(r)return i.a.cloneElement(r,m({className:"".concat(r.props.className," nav ").concat(o?"disabled":"")},s));var u="nav default-nav ".concat(o?"disabled":"");return i.a.createElement("button",p({className:u},s),i.a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24"},i.a.createElement("path",{d:"M16.67 0l2.83 2.829-9.339 9.175 9.339 9.167-2.83 2.829-12.17-11.996z"})))},w=function(e,t,n){var r=e.nextArrow,a=e.infinite,o=e.children,s=e.slidesToScroll,u=t>=o.length-s&&!a,c={"data-type":"next","aria-label":"Next Slide",disabled:u,onClick:n};if(r)return i.a.cloneElement(r,m({className:"".concat(r.props.className," nav ").concat(u?"disabled":"")},c));var l="nav default-nav ".concat(u?"disabled":"");return i.a.createElement("button",p({className:l},c),i.a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24"},i.a.createElement("path",{d:"M5 3l3.057-3 11.943 12-11.943 12-3.057-3 9-9z"})))},x=function(e,t,n){var r=e.children,a=e.indicators,o=e.slidesToScroll,s="boolean"!=typeof a,u=Math.ceil(r.length/o);return i.a.createElement("ul",{className:"indicators"},Array.from({length:u},(function(e,r){var u={"data-key":r,"aria-label":"Go to slide ".concat(r+1),onClick:n},c=Math.floor((t+o-1)/o)===r;return s?function(e,t,n,r){return i.a.cloneElement(r,m({className:"".concat(r.props.className," ").concat(e?"active":""),key:t},n))}(c,r,u,a(r)):function(e,t,n){return i.a.createElement("li",{key:t},i.a.createElement("button",p({className:"each-slideshow-indicator ".concat(e?"active":"")},n)))}(c,r,u)})))};function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(){return(E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var N=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==I(t)&&"function"!=typeof t?C(e):t}(this,T(t).call(this))).state={slidesToShow:e.slidesToShow||1,index:e.defaultIndex&&e.defaultIndex<e.children.length?e.defaultIndex:0},n.width=0,n.dragging=!1,n.imageContainer=null,n.wrapper=null,n.timeout=null,n.moveSlides=n.moveSlides.bind(C(n)),n.pauseSlides=n.pauseSlides.bind(C(n)),n.startSlides=n.startSlides.bind(C(n)),n.handleResize=n.handleResize.bind(C(n)),n.initResizeObserver=n.initResizeObserver.bind(C(n)),n.reactSlideshowWrapper=Object(r.createRef)(),n.goToSlide=n.goToSlide.bind(C(n)),n.tweenGroup=new a.a.Group,n.startSwipe=n.startSwipe.bind(C(n)),n.endSwipe=n.endSwipe.bind(C(n)),n.swipe=n.swipe.bind(C(n)),n.distanceSwiped=0,n}var n,s,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(t,e),n=t,(s=[{key:"componentDidMount",value:function(){var e=this;this.setWidth(),this.initResizeObserver(),d(this.props);var t=f(this.props),n=t.autoplay,r=t.duration;n&&(this.timeout=setTimeout((function(){return e.goNext()}),r))}},{key:"initResizeObserver",value:function(){var e=this;this.resizeObserver=new o.a((function(t){t&&e.handleResize()})),this.reactSlideshowWrapper.current&&this.resizeObserver.observe(this.reactSlideshowWrapper.current)}},{key:"componentWillUnmount",value:function(){this.willUnmount=!0,clearTimeout(this.timeout),this.removeResizeObserver()}},{key:"startSwipe",value:function(e){f(this.props).canSwipe&&(this.startingClientX=e.touches?e.touches[0].pageX:e.clientX,clearTimeout(this.timeout),this.dragging=!0)}},{key:"endSwipe",value:function(){f(this.props).canSwipe&&(this.dragging=!1,Math.abs(this.distanceSwiped)/this.width>.2?this.distanceSwiped<0?this.goNext():this.goBack():Math.abs(this.distanceSwiped)>0&&this.slideImages(this.state.index,300))}},{key:"swipe",value:function(e){var t=f(this.props),n=t.canSwipe,r=t.slidesToShow,i=t.children,a=t.infinite,o=t.slidesToScroll;if(n){var s=e.touches?e.touches[0].pageX:e.clientX;if(this.dragging){var u=this.width*(this.state.index+this.getOffset(a,r)),c=s-this.startingClientX;if(!a&&this.state.index===i.length-o&&c<0)return;if(!a&&0===this.state.index&&c>0)return;this.distanceSwiped=c,u-=this.distanceSwiped,this.imageContainer.style.transform="translate(-".concat(u,"px)")}}}},{key:"removeResizeObserver",value:function(){this.resizeObserver&&this.reactSlideshowWrapper&&this.reactSlideshowWrapper.current&&this.resizeObserver.unobserve(this.reactSlideshowWrapper.current)}},{key:"setWidth",value:function(){this.allImages=this.wrapper&&Array.prototype.slice.call(this.wrapper.querySelectorAll(".images-wrap > div"),0)||[];var e=f(this.props),t=e.slidesToShow,n=e.infinite;this.state.slidesToShow!==t&&this.setState({slidesToShow:t,index:0}),this.width=(this.wrapper&&this.wrapper.clientWidth||0)/t;var r=i.a.Children.count(this.props.children),a=this.width*(r+2*t);this.imageContainer&&(this.imageContainer.style.width="".concat(a,"px"),this.imageContainer.style.transform="translate(-".concat(this.width*(this.state.index+this.getOffset(n,t)),"px)")),this.applySlideStyle()}},{key:"componentDidUpdate",value:function(e){var t=this,n=f(this.props),r=n.autoplay,i=n.duration,a=n.children,o=f(e);r!==o.autoplay&&(r?this.timeout=setTimeout((function(){return t.goNext()}),i):clearTimeout(this.timeout)),a.length!=o.children.length&&(this.setWidth(),clearTimeout(this.timeout),this.timeout=setTimeout((function(){return t.goNext()}),i))}},{key:"handleResize",value:function(){this.setWidth()}},{key:"applySlideStyle",value:function(){var e=this;this.allImages.forEach((function(t,n){t.style.width="".concat(e.width,"px")}))}},{key:"pauseSlides",value:function(){f(this.props).pauseOnHover&&clearTimeout(this.timeout)}},{key:"startSlides",value:function(){var e=this,t=f(this.props),n=t.pauseOnHover,r=t.autoplay,i=t.duration;this.dragging?this.endSwipe():n&&r&&(this.timeout=setTimeout((function(){return e.goNext()}),i))}},{key:"moveSlides",value:function(e){"next"===e.currentTarget.dataset.type?this.goNext():this.goBack()}},{key:"goToSlide",value:function(e){var t=e.currentTarget,n=f(this.props).slidesToScroll;this.goTo(parseInt(t.dataset.key*n))}},{key:"goTo",value:function(e){this.slideImages(this.calculateIndex(e))}},{key:"calculateIndex",value:function(e){var t=f(this.props),n=t.children,r=t.slidesToScroll;return e<n.length&&e+r>n.length&&(n.length-r)%r?n.length-r:e}},{key:"goNext",value:function(){var e=this.state.index,t=f(this.props),n=t.children,r=t.infinite,i=t.slidesToScroll;if(r||e!==n.length-i){var a=this.calculateIndex(e+i);this.slideImages(a)}}},{key:"goBack",value:function(){var e=this.state.index,t=f(this.props),n=t.infinite,r=t.slidesToScroll;if(n||0!==e){var i=e-r;i%r&&(i=Math.ceil(i/r)*r),this.slideImages(i)}}},{key:"isSlideActive",value:function(e){var t=f(this.props).slidesToShow;return e<this.state.index+t&&e>=this.state.index}},{key:"renderPreceedingSlides",value:function(e,t){return e.slice(-t).map((function(e,n){return i.a.createElement("div",{"data-index":n-t,"aria-roledescription":"slide","aria-hidden":"true",key:n-t},e)}))}},{key:"renderTrailingSlides",value:function(){var e=f(this.props),t=e.children,n=e.slidesToShow,r=e.slidesToScroll;if(e.infinite||n!==r)return t.slice(0,n).map((function(e,n){return i.a.createElement("div",{"data-index":t.length+n,"aria-roledescription":"slide","aria-hidden":"true",key:t.length+n},e)}))}},{key:"getOffset",value:function(e,t){return e?t:0}},{key:"render",value:function(){var e=this,t=f(this.props),n=t.children,r=t.indicators,a=t.arrows,o=t.cssClass,s=t.slidesToShow,u=t.infinite,c=k(h,this.props),l=this.state.index,d={transform:"translate(-".concat((l+this.getOffset(u,s))*this.width,"px)")};return i.a.createElement("div",E({dir:"ltr","aria-roledescription":"carousel"},c),i.a.createElement("div",{className:"react-slideshow-container",onMouseEnter:this.pauseSlides,onMouseOver:this.pauseSlides,onMouseLeave:this.startSlides,onMouseDown:this.startSwipe,onMouseUp:this.endSwipe,onMouseMove:this.swipe,onTouchStart:this.startSwipe,onTouchEnd:this.endSwipe,onTouchCancel:this.endSwipe,onTouchMove:this.swipe,ref:this.reactSlideshowWrapper},a&&b(f(this.props),this.state.index,this.moveSlides),i.a.createElement("div",{className:"react-slideshow-wrapper slide ".concat(o),ref:function(t){return e.wrapper=t}},i.a.createElement("div",{className:"images-wrap",style:d,ref:function(t){return e.imageContainer=t}},u?this.renderPreceedingSlides(n,s):"",n.map((function(t,n){var r=e.isSlideActive(n);return i.a.createElement("div",{"data-index":n,key:n,className:r?"active":"","aria-roledescription":"slide","aria-hidden":r?"false":"true"},t)})),this.renderTrailingSlides())),a&&w(f(this.props),this.state.index,this.moveSlides)),r&&x(f(this.props),this.state.index,this.goToSlide))}},{key:"slideImages",value:function(e,t){var n=this,r=f(this.props),i=r.children,o=r.transitionDuration,s=r.autoplay,u=r.infinite,c=r.duration,l=r.onChange,h=r.easing,d=r.slidesToShow,p=r.slidesToScroll;if(o=t||o,!this.tweenGroup.getAll().length){clearTimeout(this.timeout);var v={margin:-this.width*(this.state.index+this.getOffset(u,d))+this.distanceSwiped},m=new a.a.Tween(v,this.tweenGroup).to({margin:-this.width*(e+this.getOffset(u,d))},o).onUpdate((function(e){n.imageContainer&&(n.imageContainer.style.transform="translate(".concat(e.margin,"px)"))})).start();m.easing(A(h)),function e(){n.willUnmount?n.tweenGroup.removeAll():(requestAnimationFrame(e),n.tweenGroup.update())}(),m.onComplete((function(){if(!n.willUnmount){n.distanceSwiped=0;var t=e;t<0?t=i.length-p:t>=i.length&&(t=0),"function"==typeof l&&l(n.state.index,t),n.setState({index:t},(function(){s&&(u||n.state.index<i.length)&&(clearTimeout(n.timeout),n.timeout=setTimeout((function(){return n.goNext()}),c))}))}}))}}}])&&S(n.prototype,s),u&&S(n,u),t}(r.Component);function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B(e,t){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var L=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?M(e):t}(this,P(t).call(this))).state={index:e.defaultIndex&&e.defaultIndex<e.children.length?e.defaultIndex:0},n.width=0,n.timeout=null,n.divsContainer=null,n.wrapper=null,n.setWidth=n.setWidth.bind(M(n)),n.handleResize=n.handleResize.bind(M(n)),n.navigate=n.navigate.bind(M(n)),n.preFade=n.preFade.bind(M(n)),n.pauseSlides=n.pauseSlides.bind(M(n)),n.startSlides=n.startSlides.bind(M(n)),n.initResizeObserver=n.initResizeObserver.bind(M(n)),n.tweenGroup=new a.a.Group,n.reactSlideshowWrapper=Object(r.createRef)(),n.wrapper=Object(r.createRef)(),n.startSwipe=n.startSwipe.bind(M(n)),n.endSwipe=n.endSwipe.bind(M(n)),n}var n,s,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&B(e,t)}(t,e),n=t,(s=[{key:"componentDidMount",value:function(){this.setWidth(),this.play(),this.initResizeObserver(),d(this.props)}},{key:"initResizeObserver",value:function(){var e=this;this.reactSlideshowWrapper.current&&(this.resizeObserver=new o.a((function(t){t&&e.handleResize()})),this.resizeObserver.observe(this.reactSlideshowWrapper.current))}},{key:"play",value:function(){var e=this,t=f(this.props),n=t.autoplay,r=t.children,i=t.duration,a=this.state.index;n&&r.length>1&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){return e.fadeImages(a+1)}),i))}},{key:"componentDidUpdate",value:function(e){var t=f(this.props),n=t.autoplay,r=t.children,i=f(e);n!==i.autoplay&&(n?this.play():clearTimeout(this.timeout)),r.length!=i.children.length&&(this.applyStyle(),clearTimeout(this.timeout),this.play())}},{key:"componentWillUnmount",value:function(){this.willUnmount=!0,clearTimeout(this.timeout),this.removeResizeObserver()}},{key:"removeResizeObserver",value:function(){this.resizeObserver&&this.reactSlideshowWrapper&&this.reactSlideshowWrapper.current&&this.resizeObserver.unobserve(this.reactSlideshowWrapper.current)}},{key:"setWidth",value:function(){this.wrapper.current&&(this.width=this.wrapper.current.clientWidth),this.applyStyle()}},{key:"handleResize",value:function(){this.setWidth()}},{key:"applyStyle",value:function(){var e=this.width*i.a.Children.count(this.props.children);if(this.divsContainer){this.divsContainer.style.width="".concat(e,"px");for(var t=0;t<this.divsContainer.children.length;t++){var n=this.divsContainer.children[t];n&&(n.style.width="".concat(this.width,"px"),n.style.left="".concat(t*-this.width,"px"))}}}},{key:"pauseSlides",value:function(){f(this.props).pauseOnHover&&clearTimeout(this.timeout)}},{key:"startSlides",value:function(){var e=this,t=f(this.props),n=t.pauseOnHover,r=t.autoplay,i=t.duration;n&&r&&(this.timeout=setTimeout((function(){return e.goNext()}),i))}},{key:"goNext",value:function(){var e=this.state.index,t=f(this.props),n=t.children;(t.infinite||e!==n.length-1)&&this.fadeImages((e+1)%n.length)}},{key:"goBack",value:function(){var e=this.state.index,t=f(this.props),n=t.children;(t.infinite||0!==e)&&this.fadeImages(0===e?n.length-1:e-1)}},{key:"navigate",value:function(e){var t=e.currentTarget.dataset;t.key!=this.state.index&&this.goTo(parseInt(t.key))}},{key:"goTo",value:function(e){this.fadeImages(e)}},{key:"preFade",value:function(e){"prev"===e.currentTarget.dataset.type?this.goBack():this.goNext()}},{key:"startSwipe",value:function(e){f(this.props).canSwipe&&(this.startingClientX=e.touches?e.touches[0].pageX:e.clientX,clearTimeout(this.timeout),this.dragging=!0)}},{key:"endSwipe",value:function(e){var t=(e.changedTouches?e.changedTouches[0].pageX:e.clientX)-this.startingClientX;f(this.props).canSwipe&&(this.dragging=!1,Math.abs(t)/this.width>.2&&(t<0?this.goNext():this.goBack()))}},{key:"render",value:function(){var e=this,t=f(this.props),n=t.indicators,r=t.children,a=t.arrows,o=t.cssClass,s=this.state.index,u=k(h,this.props);return i.a.createElement("div",O({dir:"ltr","aria-roledescription":"carousel"},u),i.a.createElement("div",{className:"react-slideshow-container",onMouseEnter:this.pauseSlides,onMouseOver:this.pauseSlides,onMouseLeave:this.startSlides,onMouseDown:this.startSwipe,onMouseUp:this.endSwipe,onTouchStart:this.startSwipe,onTouchEnd:this.endSwipe,onTouchCancel:this.endSwipe,ref:this.reactSlideshowWrapper},a&&b(f(this.props),this.state.index,this.preFade),i.a.createElement("div",{className:"react-slideshow-fade-wrapper ".concat(o),ref:this.wrapper},i.a.createElement("div",{className:"react-slideshow-fade-images-wrap",ref:function(t){return e.divsContainer=t}},r.map((function(e,t){return i.a.createElement("div",{style:{opacity:t===s?"1":"0",zIndex:t===s?"1":"0"},"data-index":t,key:t,"aria-roledescription":"slide","aria-hidden":t===s?"false":"true"},e)})))),a&&w(f(this.props),this.state.index,this.preFade)),n&&x(f(this.props),this.state.index,this.navigate))}},{key:"fadeImages",value:function(e){var t=this,n=this.state.index,r=f(this.props),i=r.autoplay,o=r.children,s=r.infinite,u=r.duration,c=r.transitionDuration,l=r.onChange,h=r.easing;if(!this.tweenGroup.getAll().length){this.divsContainer.children[e]||(e=0),clearTimeout(this.timeout),function e(){t.willUnmount?t.tweenGroup.removeAll():(requestAnimationFrame(e),t.tweenGroup.update())}();var d=new a.a.Tween({opacity:0},this.tweenGroup).to({opacity:1},c).onUpdate((function(r){t.divsContainer.children[e].style.opacity=r.opacity,t.divsContainer.children[n].style.opacity=1-r.opacity})).start();d.easing(A(h)),d.onComplete((function(){t.willUnmount||(t.setState({index:e}),"function"==typeof l&&l(n,e),i&&(s||e<o.length-1)&&(clearTimeout(t.timeout),t.timeout=setTimeout((function(){t.fadeImages((e+1)%o.length)}),u)))}))}}}])&&R(n.prototype,s),u&&R(n,u),t}(r.Component);function j(e){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(){return(U=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function F(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Q(e){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function V(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z(e,t){return(z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var q=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==j(t)&&"function"!=typeof t?V(e):t}(this,Q(t).call(this))).state={index:e.defaultIndex&&e.defaultIndex<e.children.length?e.defaultIndex:0},n.width=0,n.timeout=null,n.divsContainer=null,n.wrapper=null,n.setWidth=n.setWidth.bind(V(n)),n.handleResize=n.handleResize.bind(V(n)),n.navigate=n.navigate.bind(V(n)),n.preZoom=n.preZoom.bind(V(n)),n.pauseSlides=n.pauseSlides.bind(V(n)),n.startSlides=n.startSlides.bind(V(n)),n.tweenGroup=new a.a.Group,n.initResizeObserver=n.initResizeObserver.bind(V(n)),n.reactSlideshowWrapper=Object(r.createRef)(),n.startSwipe=n.startSwipe.bind(V(n)),n.endSwipe=n.endSwipe.bind(V(n)),n}var n,s,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&z(e,t)}(t,e),n=t,(s=[{key:"componentDidMount",value:function(){this.setWidth(),this.play(),this.initResizeObserver(),d(this.props)}},{key:"initResizeObserver",value:function(){var e=this;this.reactSlideshowWrapper.current&&(this.resizeObserver=new o.a((function(t){t&&e.handleResize()})),this.resizeObserver.observe(this.reactSlideshowWrapper.current))}},{key:"play",value:function(){var e=this,t=f(this.props),n=t.autoplay,r=t.children,i=t.duration,a=this.state.index;n&&r.length>1&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){return e.zoomTo(a+1)}),i))}},{key:"componentWillUnmount",value:function(){this.willUnmount=!0,clearTimeout(this.timeout),this.removeResizeObserver()}},{key:"removeResizeObserver",value:function(){this.resizeObserver&&this.reactSlideshowWrapper&&this.reactSlideshowWrapper.current&&this.resizeObserver.unobserve(this.reactSlideshowWrapper.current)}},{key:"componentDidUpdate",value:function(e){var t=f(this.props),n=t.autoplay,r=t.children,i=f(e);n!==i.autoplay&&(n?this.play():clearTimeout(this.timeout)),r.length!=i.children.length&&(this.applyStyle(),clearTimeout(this.timeout),this.play())}},{key:"setWidth",value:function(){this.wrapper&&(this.width=this.wrapper.clientWidth),this.applyStyle()}},{key:"handleResize",value:function(){this.setWidth()}},{key:"applyStyle",value:function(){var e=this.width*i.a.Children.count(this.props.children);if(this.divsContainer){this.divsContainer.style.width="".concat(e,"px");for(var t=0;t<this.divsContainer.children.length;t++){var n=this.divsContainer.children[t];n&&(n.style.width="".concat(this.width,"px"),n.style.left="".concat(t*-this.width,"px"))}}}},{key:"pauseSlides",value:function(){f(this.props).pauseOnHover&&clearTimeout(this.timeout)}},{key:"startSlides",value:function(){var e=this,t=f(this.props),n=t.pauseOnHover,r=t.autoplay,i=t.duration;n&&r&&(this.timeout=setTimeout((function(){return e.goNext()}),i))}},{key:"goNext",value:function(){var e=this.state.index,t=f(this.props),n=t.children;(t.infinite||e!==n.length-1)&&this.zoomTo((e+1)%n.length)}},{key:"goBack",value:function(){var e=this.state.index,t=f(this.props),n=t.children;(t.infinite||0!==e)&&this.zoomTo(0===e?n.length-1:e-1)}},{key:"goTo",value:function(e){this.zoomTo(e)}},{key:"navigate",value:function(e){var t=e.currentTarget.dataset;t.key!=this.state.index&&this.goTo(parseInt(t.key))}},{key:"preZoom",value:function(e){"prev"===e.currentTarget.dataset.type?this.goBack():this.goNext()}},{key:"startSwipe",value:function(e){f(this.props).canSwipe&&(this.startingClientX=e.touches?e.touches[0].pageX:e.clientX,clearTimeout(this.timeout),this.dragging=!0)}},{key:"endSwipe",value:function(e){var t=(e.changedTouches?e.changedTouches[0].pageX:e.clientX)-this.startingClientX;f(this.props).canSwipe&&(this.dragging=!1,Math.abs(t)/this.width>.2&&(t<0?this.goNext():this.goBack()))}},{key:"render",value:function(){var e=this,t=f(this.props),n=t.indicators,r=t.arrows,a=t.children,o=t.cssClass,s=this.state.index,u=k(h,this.props);return i.a.createElement("div",U({dir:"ltr","aria-roledescription":"carousel"},u),i.a.createElement("div",{className:"react-slideshow-container",onMouseEnter:this.pauseSlides,onMouseOver:this.pauseSlides,onMouseLeave:this.startSlides,onMouseDown:this.startSwipe,onMouseUp:this.endSwipe,onTouchStart:this.startSwipe,onTouchEnd:this.endSwipe,onTouchCancel:this.endSwipe,ref:this.reactSlideshowWrapper},r&&b(f(this.props),this.state.index,this.preZoom),i.a.createElement("div",{className:"react-slideshow-zoom-wrapper ".concat(o),ref:function(t){return e.wrapper=t}},i.a.createElement("div",{className:"zoom-wrapper",ref:function(t){return e.divsContainer=t}},a.map((function(e,t){return i.a.createElement("div",{style:{opacity:t===s?"1":"0",zIndex:t===s?"1":"0"},"data-index":t,key:t,"aria-roledescription":"slide","aria-hidden":t===s?"false":"true"},e)})))),r&&w(f(this.props),this.state.index,this.preZoom)),n&&x(f(this.props),this.state.index,this.navigate))}},{key:"zoomTo",value:function(e){var t=this,n=this.state.index,r=f(this.props),i=r.children,o=r.scale,s=r.autoplay,u=r.infinite,c=r.transitionDuration,l=r.duration,h=r.onChange,d=r.easing;if(!this.tweenGroup.getAll().length){this.divsContainer&&!this.divsContainer.children[e]&&(e=0),clearTimeout(this.timeout),function e(){t.willUnmount?t.tweenGroup.removeAll():(requestAnimationFrame(e),t.tweenGroup.update())}();var p=new a.a.Tween({opacity:0,scale:1},this.tweenGroup).to({opacity:1,scale:o},c).onUpdate((function(r){t.divsContainer&&(t.divsContainer.children[e].style.opacity=r.opacity,t.divsContainer.children[n].style.opacity=1-r.opacity,t.divsContainer.children[n].style.transform="scale(".concat(r.scale,")"))})).start();p.easing(A(d)),p.onComplete((function(){t.willUnmount||("function"==typeof h&&h(n,e),t.setState({index:e},(function(){t.divsContainer&&(t.divsContainer.children[n].style.transform="scale(1)")})),s&&(u||e<i.length-1)&&(clearTimeout(t.timeout),t.timeout=setTimeout((function(){t.zoomTo((e+1)%i.length)}),l)))}))}}}])&&F(n.prototype,s),u&&F(n,u),t}(r.Component)}]))},374:function(e,t,n){"use strict";n(725);var r=n(791),i=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var a=Symbol.for;i=a("react.element"),t.Fragment=a("react.fragment")}var o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,l=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,r)&&!u.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:l,props:a,_owner:o.current}}t.jsx=c,t.jsxs=c},117:function(e,t,n){"use strict";var r=n(725),i=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,s=60110,u=60112;t.Suspense=60113;var c=60115,l=60116;if("function"===typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),a=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),o=f("react.provider"),s=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),c=f("react.memo"),l=f("react.lazy")}var h="function"===typeof Symbol&&Symbol.iterator;function d(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function m(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||p}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(d(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=m.prototype;var A=y.prototype=new g;A.constructor=y,r(A,m.prototype),A.isPureReactComponent=!0;var k={current:null},b=Object.prototype.hasOwnProperty,w={key:!0,ref:!0,__self:!0,__source:!0};function x(e,t,n){var r,a={},o=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)b.call(t,r)&&!w.hasOwnProperty(r)&&(a[r]=t[r]);var u=arguments.length-2;if(1===u)a.children=n;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];a.children=c}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===a[r]&&(a[r]=u[r]);return{$$typeof:i,type:e,key:o,ref:s,props:a,_owner:k.current}}function I(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var E=/\/+/g;function S(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,n,r,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case i:case a:u=!0}}if(u)return o=o(u=e),e=""===r?"."+S(u,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(E,"$&/")+"/"),T(o,t,n,"",(function(e){return e}))):null!=o&&(I(o)&&(o=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||u&&u.key===o.key?"":(""+o.key).replace(E,"$&/")+"/")+e)),t.push(o)),1;if(u=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var l=r+S(s=e[c],c);u+=T(s,t,n,l,o)}else if(l=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof l)for(e=l.call(e),c=0;!(s=e.next()).done;)u+=T(s=s.value,t,n,l=r+S(s,c++),o);else if("object"===s)throw t=""+e,Error(d(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function C(e,t,n){if(null==e)return e;var r=[],i=0;return T(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function _(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var N={current:null};function D(){var e=N.current;if(null===e)throw Error(d(321));return e}var O={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:k,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:C,forEach:function(e,t,n){C(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return C(e,(function(){t++})),t},toArray:function(e){return C(e,(function(e){return e}))||[]},only:function(e){if(!I(e))throw Error(d(143));return e}},t.Component=m,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(d(267,e));var a=r({},e.props),o=e.key,s=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,u=k.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)b.call(t,l)&&!w.hasOwnProperty(l)&&(a[l]=void 0===t[l]&&void 0!==c?c[l]:t[l])}var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){c=Array(l);for(var f=0;f<l;f++)c[f]=arguments[f+2];a.children=c}return{$$typeof:i,type:e.type,key:o,ref:s,props:a,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=x,t.createFactory=function(e){var t=x.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=I,t.lazy=function(e){return{$$typeof:l,_payload:{_status:-1,_result:e},_init:_}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return D().useCallback(e,t)},t.useContext=function(e,t){return D().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return D().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return D().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return D().useLayoutEffect(e,t)},t.useMemo=function(e,t){return D().useMemo(e,t)},t.useReducer=function(e,t,n){return D().useReducer(e,t,n)},t.useRef=function(e){return D().useRef(e)},t.useState=function(e){return D().useState(e)},t.version="17.0.2"},791:function(e,t,n){"use strict";e.exports=n(117)},184:function(e,t,n){"use strict";e.exports=n(374)},727:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(D){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),o=new C(r||[]);return a._invoke=function(e,t,n){var r=f;return function(i,a){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw a;return N()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=E(o,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var u=l(e,t,n);if("normal"===u.type){if(r=n.done?p:h,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}(e,n,o),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(D){return{type:"throw",arg:D}}}e.wrap=c;var f="suspendedStart",h="suspendedYield",d="executing",p="completed",v={};function m(){}function g(){}function y(){}var A={};u(A,a,(function(){return this}));var k=Object.getPrototypeOf,b=k&&k(k(_([])));b&&b!==n&&r.call(b,a)&&(A=b);var w=y.prototype=m.prototype=Object.create(A);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function n(i,a,o,s){var u=l(e[i],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"===typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(f).then((function(e){c.value=e,o(c)}),(function(e){return n("throw",e,o,s)}))}s(u.arg)}var i;this._invoke=function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}}function E(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=l(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function _(e){if(e){var n=e[a];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}return{next:N}}function N(){return{value:t,done:!0}}return g.prototype=y,u(w,"constructor",y),u(y,"constructor",g),g.displayName=u(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},x(I.prototype),u(I.prototype,o,(function(){return this})),e.AsyncIterator=I,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new I(c(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(w),u(w,s,"Generator"),u(w,a,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=_,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:_(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(n){"object"===typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},813:function(e,t){"use strict";var n,r,i,a;if("object"===typeof performance&&"function"===typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var c=null,l=null,f=function e(){if(null!==c)try{var n=t.unstable_now();c(!0,n),c=null}catch(r){throw setTimeout(e,0),r}};n=function(e){null!==c?setTimeout(n,0,e):(c=e,setTimeout(f,0))},r=function(e,t){l=setTimeout(e,t)},i=function(){clearTimeout(l)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,d=window.clearTimeout;if("undefined"!==typeof console){var p=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof p&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,m=null,g=-1,y=5,A=0;t.unstable_shouldYield=function(){return t.unstable_now()>=A},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var k=new MessageChannel,b=k.port2;k.port1.onmessage=function(){if(null!==m){var e=t.unstable_now();A=e+y;try{m(!0,e)?b.postMessage(null):(v=!1,m=null)}catch(n){throw b.postMessage(null),n}}else v=!1},n=function(e){m=e,v||(v=!0,b.postMessage(null))},r=function(e,n){g=h((function(){e(t.unstable_now())}),n)},i=function(){d(g),g=-1}}function w(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<E(i,t)))break e;e[r]=t,e[n]=i,n=r}}function x(e){return void 0===(e=e[0])?null:e}function I(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],s=a+1,u=e[s];if(void 0!==o&&0>E(o,n))void 0!==u&&0>E(u,o)?(e[r]=u,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==u&&0>E(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}return null}function E(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var S=[],T=[],C=1,_=null,N=3,D=!1,O=!1,R=!1;function P(e){for(var t=x(T);null!==t;){if(null===t.callback)I(T);else{if(!(t.startTime<=e))break;I(T),t.sortIndex=t.expirationTime,w(S,t)}t=x(T)}}function M(e){if(R=!1,P(e),!O)if(null!==x(S))O=!0,n(B);else{var t=x(T);null!==t&&r(M,t.startTime-e)}}function B(e,n){O=!1,R&&(R=!1,i()),D=!0;var a=N;try{for(P(n),_=x(S);null!==_&&(!(_.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=_.callback;if("function"===typeof o){_.callback=null,N=_.priorityLevel;var s=o(_.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?_.callback=s:_===x(S)&&I(S),P(n)}else I(S);_=x(S)}if(null!==_)var u=!0;else{var c=x(T);null!==c&&r(M,c.startTime-n),u=!1}return u}finally{_=null,N=a,D=!1}}var L=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){O||D||(O=!0,n(B))},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_getFirstCallbackNode=function(){return x(S)},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=L,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_scheduleCallback=function(e,a,o){var s=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?s+o:s:o=s,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:C++,callback:a,priorityLevel:e,startTime:o,expirationTime:u=o+u,sortIndex:-1},o>s?(e.sortIndex=o,w(T,e),null===x(S)&&e===x(T)&&(R?i():R=!0,r(M,o-s))):(e.sortIndex=u,w(S,e),O||D||(O=!0,n(B))),e},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}}},296:function(e,t,n){"use strict";e.exports=n(813)},970:function(e,t,n){"use strict";e.exports=n.p+"static/media/cover.f864f88f6f2d627b5a61.png"},959:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIAEAQAAAAO4cAyAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAAAGAAAABgAPBrQs8AAAAHdElNRQfmAhYKIwCwRfurAAAiPUlEQVR42u3debBkdXUH8HMbhkUEZBEFwjYQVi1ZYkEMcWAUCSpYcUlVVLBiWJxYiUmqFEtRgSQViPGPpBBhRAsBF1AwaDAB4oAJEokKKiAzCAziVqwyCA7M0id/PEe2YZb3uvvc7vv5VFlaZdW75/ftO+933q9vn44AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGIymuoBq2Z81K5rZsyP22Sdizz0j99orYqedIl74wmi23TZis80iN9ooms02q64VgHWQjz0WzbJlEY89FvnAAxH33x/NPfdE3H57xKJFEQsXRt51V9Nbvry61EqdawCyv/PO0Rx+eMTcuRGHHBIxe3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/n2t49y848YcQMQEdE011wTcdppo74uALTTKac0vf/6r1FfdaRvATxV5r/+a8Rf/mXV9QGg3jnnNM28eRVXLmwAer3IL3whmre8paoGAKhz+eURb3rTqB76e6ayBiAiIvsbbRTx7//ukwEAdEpee200Rx3VNI8/XlVCaQMQEZH9LbeMZsGCiAMPrK4FAIbvu9+NnDu36T3ySGUV5V/V2/SWLImcMyfy6qurawGAocprr4181auqN/+IFjQAERFN79FHI44+OuKSS6prAYDh+Ld/i+aoo5rekiXVlUS0pAGIiGh6TzwR8da3RpxzTnUtADBYZ5899cBf3Xv+z9SaBiAiomlWrmyaefMiP/ShiH6/uh4AmJmVKyM+8IGmefe7m6Zd+1r5Q4DPJfOwwyI+9zljgwEYT/fdF3nssU3vqquqK1mdVp0APFXTXHtt5MteFnHlldW1AMD6ueaaiP33b+vmH9HiBiAioundf3/E614Xceqpvj8AgPZbsWLqbexXv3rUs/3XV2vfAnim7L/sZdGcfXbEK15RXQsAPEt+5zsRf/EXTe/b364uZV20+gTgqZre978fceihke94R8T991fXAwBTHnoo4q//OpqDDx6XzT9ijE4Anipzm20izzgjmne+M6I3Nk0MAJNk5cqI886besr/oYeqq1lfY9kArJI5e3bEe94TcdJJERtvXF0PAF2wfHnEF74Q8Q//0DSLFlVXM11j3QCskv1ddonmb/824oQTIjbdtLoeACbRsmURF18cefrpTe+OO6qrmamJaABWydxhh4gTT4w89thoZs+urgeACZB33hnNhRdGzJ/f9if718dENQBPlXnQQRHHHRf51rdGs+221fUAME6WLIn4ylciL7ggmq9/vWkyqysatIltAFbJ3GSTiNe+NuKIIyIOPzxir72qawKghXLhwqmvp7/66sj/+I+p76iZXBPfADxT5o47Rs6dG83cuZGHHBLN7rtHzJpVXRcAo7R8ecQdd0R861uRCxZEs2BB0/z859VVjVLnGoBnyv6GG0bMnj11MrD33hF77hnNTjtFbLvt1H+22CJigw2m/huA9nvkkamP6D3ySMQDD0Tcf3/kT38asWjR1H8WLoxYvLjprVhRXSkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAJPh/8qdK39E4oPEAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDItMjJUMTA6MzU6MDArMDA6MDDnIFAUAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTAyLTIyVDEwOjM1OjAwKzAwOjAwln3oqAAAAABJRU5ErkJggg=="},385:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIAEAQAAAAO4cAyAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAAAGAAAABgAPBrQs8AAAAHdElNRQfmAhYKICs31FEoAAAjM0lEQVR42u3debSU9X3H8c93uGxekFUqIlJcEDWRCK4E3FHJEdLErcGNSCVuiUmT2Lol1aPxuDSxtq4RqiiKwX3DAFJBxYVg1eACaECKoIhwL7ssz7d/DCogXO7+nZnf+3UOJ+eocT7zhPC87zMzz5iABLi3aCF16SLfZRdZ167STjtJ7dpJbdt+45e3bi1JslatpKZN8/+CZs1k5eX1v2zDBmnZsujjU/XB23RjZaWsokKaOVN6/3351KmyN94w27AheiaAmrHoAUB98WzXXWV77y316CH17CntsYfUtavUuXP+hI+GUVEhjRsn3XefNH48MQAUBwIARcez1q2lAw6QHXigdMAB0j775E/6G39yR6B58+Q33igbMcJs9eroNQC2jQBAQfOsrEx20EHSoYdKffrI+/SR9egh5XLR21CVBQukX/7SbMyY6CUAto4AQEHJn/APPFA64gjpyCOlfv2kVq2id6G2xo+Xhg41W7gwegmAzREACJd/7X7QIOnEE6X+/bmUX2o+/VQaMsRs0qToJQC+RgAghPt+++VP+I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hLF8uDR7MyR9AqSIA6sByb78tP+UUac2a6C2oT2vWyH/4Q7Pp06OXAEBDIQDqyHITJ8qPP16qrIzegvpQUSE//njLTZwYvQQAGhIBUA8sN2WKvH9/afbs6C2oi1mz5P37W27KlOglANDQCIB6Yrm//lXep4/0wAPRW1Ab998vP/BAy82YEb0EAFCk3I8+2v3ddx2FL/vgA/eBA6N/zwAASoRnTZt6dtZZ7jNnRp/jsDVz5rhffLF7ixbRv1cAIAL3AWhg7k2aSAMGSGeeKQ0eLLVqFb0pXStWSE88Id1/vzRhAjf3AZAyAqAReda0qezgg6UjjpD220/eo4esc+d8FLRpE72vdFRWSitWyBculM2aJc2YIU2ZIn/9dcutWxe9DgAKwf8DlcFU9LWHORgAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDItMjJUMTA6MzI6NDIrMDA6MDAWKVS+AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTAyLTIyVDEwOjMyOjQyKzAwOjAwZ3TsAgAAAABJRU5ErkJggg=="},350:function(e,t,n){"use strict";e.exports=n.p+"static/media/img1.6c879e587ce562e5dfb2.png"},806:function(e,t,n){"use strict";e.exports=n.p+"static/media/img2.f17767c04d37f2b7c1ce.png"},895:function(e,t,n){"use strict";e.exports=n.p+"static/media/img3.17fe6f4c4078b0a6fe28.jpeg"},403:function(e,t,n){"use strict";e.exports=n.p+"static/media/img4.0e86c145bba514a41783.jpg"},841:function(e,t,n){"use strict";e.exports=n.p+"static/media/img5.de3c16607f803a8cd438.jpeg"},689:function(e,t,n){"use strict";e.exports=n.p+"static/media/img5.9811351b274b27fc1d8a.png"},701:function(e,t,n){"use strict";e.exports=n.p+"static/media/industrial.f7180a47329c3588b657.png"},410:function(e,t,n){"use strict";e.exports=n.p+"static/media/Sensors.e82a9d244293dcda9c2a.jpeg"},647:function(e){"use strict";e.exports="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABkAAD/4QMraHR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hbk18zc441xS8syorN0usbg3xUUFAJvqwwrhQSk9AXyAeoG+gq/kn46+Ip6HTiWW8iYQ+s9zaY1xByKEysFKkdjGR10+YGkkH5BJSnr02PXQTLxL4ncUcUWDGSNw5uZZwz2KRmWYOsWNjDdS37ZXSQWWI9RRfL6KjsJeAPVw7ncLN6BoGgaBoGgaBoGgaBoGgaBoGgaBoGgaBoGgaBoGgaBoGgaBoGgaBoGgaBoGgaBoGgaBoGgaD//Z"},261:function(e,t,n){"use strict";e.exports=n.p+"static/media/compressed-air-treatment.751d715cf82c9896cf8e.jpeg"},872:function(e,t,n){"use strict";e.exports=n.p+"static/media/connector.5b878aa123e92157d898.jpeg"},889:function(e,t,n){"use strict";e.exports=n.p+"static/media/controller.8648a9ffcd0c0bd32616.jpeg"},353:function(e,t,n){"use strict";e.exports=n.p+"static/media/function-specific.270c496847ada65d5e0e.jpeg"},292:function(e){"use strict";e.exports="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABkAAD/4QMraHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjMtYzAxMSA2Ni4xNDU2NjEsIDIwMTIvMDIvMDYtMTQ6NTY6MjcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94Y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=="},279:function(e,t,n){"use strict";e.exports=n.p+"static/media/pneumatic-component.b291a340f12c48440f14.jpeg"},979:function(e){"use strict";e.exports="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAABkAAD/4QMraHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjMtYzAxMSA2Ni4xNDU2NjEsIDIwMTIvMDIvMDYtMTQ6NTY6MjcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjkzMjI4REQ1Q0JDNDExRUFBNjg5ODRDRkNEMzQ3MjAxIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjkzMjI4REQ0Q0JDNDExRUFBNjg5ODRDRkNEMzQ3MjAxIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzYgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NDU0REMzMjhDQjI3MTFFQThDQzVG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E6qghyYwj1w0unAYDAYDAYDAYDAYDAYDAYDAYDAYDAt61VOsXiAlKrcq9DWmtTTY7OWgZ+OaysTINj+qTpi9SWbrAAgAgIl5KYAEBAQAcCPa7eAkHWmCx9FqFj4wh1FUteTr5RxHtSKGMIs6xPPBVdsGxAEATbPDrJFAOCqpl4DAhr80KDtwzLWGrh1k7sGu57cEFAboTiWYN/IbQh5ZJRnrfyU0wnMIyFPmYKkzjlZpZ2T9lKRz6KeB9QkKZU1Ug2N8Z419IeR+rqjWSTt5kKNeIx3bphkktOHhIaAByR9a9hWNMhI2LfzR0QOcq50nLx46D2UBKb5R5x0Y4DAYDAYDAYDAYDAYDAYDAYDAYDAYDAYDAYGlnmX/lqA/yJ/zw/wCJf6kfhU/yB/x/+Y/4eMCo+Dv+hUb/AKH/AONzH+hX+D/14f5z/wD0f/5j/wBRgbhYDAYDAYDAYDAYDAYDAYDA/9k="},395:function(e,t,n){"use strict";e.exports=n.p+"static/media/vacuum-technology.8ebd9ce54a6ed52b8691.jpeg"},552:function(e,t,n){"use strict";e.exports=n.p+"static/media/vision-system.3bdd3d2acf0a3396e097.jpeg"},614:function(e,t,n){"use strict";e.exports=n.p+"static/media/line.934edda1e0dc84453a95.png"},53:function(e,t,n){"use strict";e.exports=n.p+"static/media/logo.dd28ddc8f32f0da78c3f.png"},163:function(e,t,n){"use strict";e.exports=n.p+"static/media/process.8b79b90d901e80400d9b.png"},497:function(e){"use strict";e.exports="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCADGAN4DAREAAhEBAxEB/8QAHQAAAQQDAQEAAAAAAAAAAAAAAAMEBgcCBQg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Yn1E/alqSABkk8KdgO+hFpWDo8vF44ZN2Uu2xDvwYHxCx6cke+T5Cgse0WO12KN8La4aGUHdRG6lnxUo7k+tFP6AoCgKAoCgKAoCgKAoCgKAoCgKAoCgKAoCgKCAdM3Q/ZOmLSyrHcH/gprJLkKelsLWws7EEbZQobFOfA8xQc7t/QX1Q3p+6afGubSG5zPAlwRnQpZCgUhW/ZHPccXPlQMOhzoDui7hN0Sxc4ENu04+KeRxuFWTjKAQnJ27yMbUT3dVaH6NdN6EhJYtzS5EjJWuVIPE4VEDOO5A25D86KllAUBQFAUBQFAUBQFAUBQFAUBQFB//Z"},679:function(e,t,n){"use strict";e.exports=n.p+"static/media/Compressed-air.b82a89bc09733a0574e7.jpeg"},826:function(e,t,n){"use strict";e.exports=n.p+"static/media/Control-technology.8adb4f6b3e4ee21eb855.jpeg"},519:function(e,t,n){"use strict";e.exports=n.p+"static/media/Pilo-Valves.af35a209be17d64fd643.jpeg"},190:function(e,t,n){"use strict";e.exports=n.p+"static/media/Pneumatic-connectors.288bc73997e11478af86.jpeg"},186:function(e){"use strict";e.exports="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCADGAN8DAREAAhEBAxEB/8QAHQAAAQQDAQEAAAAAAAAAAAAAAAECBAUDBgcICf/EAEgQAAEDAwIEAwQFCgIJBAMAAAEAAgMEBREGIQcSMUETUWEIInGBFDJykbEVIyRCUmKCobLRM8EWNDVDVGOSoqQXKGSztOHx/8QAFQEBAQAAAAAAAAAAAAAAAAAAAAH/xAAXEQEBAQEAAAAAAAAAAAAAAAAAEQEx/9oADAMBAAIRAxEAPwD6poBAIBAI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iNjnnyAyglw2avmwXMEQ83n/JBY01ipYiHTuMzvI7N+5BZNa1jQ1jQ0DoAMBAqAQCAQCAQCAQCAQCAQCChu2laWt5p6Llp5zuQB7jj6jt8Qg064W6ppJDBVxOieOnkR5g90EPHK1oPlhA4dEEiiP6VF9sfigl3C52u0RtqLvc6ShiklETH1M7Imue44a0FxAJJ6DqgmgEdUDgMIJ1Fa6qsIc1vJH+27p8vNBd09mooWBro/Ed3c5BnZRUbPq00Q/hCDMAGjDQAPRAqAQCAQCAQCAQCAQCAQCAQCAQCDBV0dLXQmCrhbIw9j29QeyDULxo2riBkth8dg35CQHgfgUGuujlgkMM8bo3t6tcCCPkgz0QzUw/bH4oPPXGyu1lrbic3S1voHHTMFsq6OeOrhjLLjW1H5umbSnBdzxvBfIct5QM9ACSPT1ltNW2ipLeHGeSmp4oZJT0c5rA0uJ9SMorZaKx09Ph9RiZ/qPdHy7oLLpsECoBAIBAIBAIBAIBAIBAIBAIBAIBAIBAIBBGrLfRXBnh1lMyUDoSNx8D1CDX6zSLKV4qqKoIZGQ4sk649CEFHpng9ou36mq9cwWzFxrpHyOeZXvDHOPvljXHEfMdzy9clB0KKKOFgjiYGNHQAIHoBAIBAIBAIBAIBAIBAIBAIBB//2Q=="},532:function(e,t,n){"use strict";e.exports=n.p+"static/media/Process-Valves.0ed5655ac05303102099.jpeg"},505:function(e,t,n){"use strict";e.exports=n.p+"static/media/Sensor-Boxes.67f114aa30e1abed3c92.jpeg"},930:function(e,t,n){"use strict";e.exports=n.p+"static/media/Valve-teminals.c1a7f6bc468da82d1dd5.jpeg"}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",function(){"use strict";var e={};n.r(e),n.d(e,{FirebaseError:function(){return Pe},SDK_VERSION:function(){return Nt},_DEFAULT_ENTRY_NAME:function(){return gt},_addComponent:function(){return bt},_addOrOverwriteComponent:function(){return wt},_apps:function(){return At},_clearComponents:function(){return St},_components:function(){return kt},_getProvider:function(){return It},_registerComponent:function(){return xt},_removeServiceInstance:function(){return Et},deleteApp:function(){return Pt},getApp:function(){return Ot},getApps:function(){return Rt},initializeApp:function(){return Dt},onLog:function(){return Lt},registerVersion:function(){return Bt},setLogLevel:function(){return jt}});var t=n(164);function r(e){if(Array.isArray(e))return e}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){if(e){if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){return r(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(u){s=!0,i=u}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}}(e,t)||a(e,t)||o()}var u=n(791);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}var l,f=l||(l={});f.Pop="POP",f.Push="PUSH",f.Replace="REPLACE";var h=function(e){return e};function d(e){e.preventDefault(),e.returnValue=""}function p(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function v(){return Math.random().toString(36).substr(2,8)}function m(e){var t=e.pathname;t=void 0===t?"/":t;var n=e.search;return n=void 0===n?"":n,e=void 0===(e=e.hash)?"":e,n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),e&&"#"!==e&&(t+="#"===e.charAt(0)?e:"#"+e),t}function g(e){var t={};if(e){var n=e.indexOf("#");0<=n&&(t.hash=e.substr(n),e=e.substr(0,n)),0<=(n=e.indexOf("?"))&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function y(e,t){if(!e)throw new Error(t)}var A=(0,u.createContext)(null);var k=(0,u.createContext)(null);var b=(0,u.createContext)({outlet:null,matches:[]});function w(e){return function(e){var t=(0,u.useContext)(b).outlet;if(t)return(0,u.createElement)(N.Provider,{value:e},t);return t}(e.context)}function x(e){y(!1)}function I(e){var t=e.basename,n=void 0===t?"/":t,r=e.children,i=void 0===r?null:r,a=e.location,o=e.navigationType,s=void 0===o?l.Pop:o,c=e.navigator,f=e.static,h=void 0!==f&&f;T()&&y(!1);var d=z(n),p=(0,u.useMemo)((function(){return{basename:d,navigator:c,static:h}}),[d,c,h]);"string"===typeof a&&(a=g(a));var v=a,m=v.pathname,b=void 0===m?"/":m,w=v.search,x=void 0===w?"":w,I=v.hash,E=void 0===I?"":I,S=v.state,C=void 0===S?null:S,_=v.key,N=void 0===_?"default":_,D=(0,u.useMemo)((function(){var e=Q(b,d);return null==e?null:{pathname:e,search:x,hash:E,state:C,key:N}}),[d,b,x,E,C,N]);return null==D?null:(0,u.createElement)(A.Provider,{value:p},(0,u.createElement)(k.Provider,{children:i,value:{location:D,navigationType:s}}))}function E(e){var t=e.children,n=e.location;return function(e,t){T()||y(!1);var n=(0,u.useContext)(b).matches,r=n[n.length-1],i=r?r.params:{},a=(r&&r.pathname,r?r.pathnameBase:"/");r&&r.route;0;var o,s=C();if(t){var c,l="string"===typeof t?g(t):t;"/"===a||(null==(c=l.pathname)?void 0:c.startsWith(a))||y(!1),o=l}else o=s;var f=o.pathname||"/",h="/"===a?f:f.slice(a.length)||"/",d=function(e,t,n){void 0===n&&(n="/");var r=Q(("string"===typeof t?g(t):t).pathname||"/",n);if(null==r)return null;var i=R(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(i);for(var a=null,o=0;null==a&&o<i.length;++o)a=L(i[o],r);return a}(e,{pathname:h});0;return j(d&&d.map((function(e){return Object.assign({},e,{params:Object.assign({},i,e.params),pathname:V([a,e.pathname]),pathnameBase:"/"===e.pathnameBase?a:V([a,e.pathnameBase])})})),n)}(O(t),n)}function S(e){T()||y(!1);var t=(0,u.useContext)(A),n=t.basename,r=t.navigator,i=D(e),a=i.hash,o=i.pathname,s=i.search,c=o;if("/"!==n){var l=function(e){return""===e||""===e.pathname?"/":"string"===typeof e?g(e).pathname:e.pathname}(e),f=null!=l&&l.endsWith("/");c="/"===o?n+(f?"/":""):V([n,o])}return r.createHref({pathname:c,search:s,hash:a})}function T(){return null!=(0,u.useContext)(k)}function C(){return T()||y(!1),(0,u.useContext)(k).location}function _(){T()||y(!1);var e=(0,u.useContext)(A),t=e.basename,n=e.navigator,r=(0,u.useContext)(b).matches,i=C().pathname,a=JSON.stringify(r.map((function(e){return e.pathnameBase}))),o=(0,u.useRef)(!1);(0,u.useEffect)((function(){o.current=!0}));var s=(0,u.useCallback)((function(e,r){if(void 0===r&&(r={}),o.current)if("number"!==typeof e){var s=F(e,JSON.parse(a),i);"/"!==t&&(s.pathname=V([t,s.pathname])),(r.replace?n.replace:n.push)(s,r.state)}else n.go(e)}),[t,n,a,i]);return s}var N=(0,u.createContext)(null);function D(e){var t=(0,u.useContext)(b).matches,n=C().pathname,r=JSON.stringify(t.map((function(e){return e.pathnameBase})));return(0,u.useMemo)((function(){return F(e,JSON.parse(r),n)}),[e,r,n])}function O(e){var t=[];return u.Children.forEach(e,(function(e){if((0,u.isValidElement)(e))if(e.type!==u.Fragment){e.type!==x&&y(!1);var n={caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path};e.props.children&&(n.children=O(e.props.children)),t.push(n)}else t.push.apply(t,O(e.props.children))})),t}function R(e,t,n,r){return void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r=""),e.forEach((function(e,i){var a={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(a.relativePath.startsWith(r)||y(!1),a.relativePath=a.relativePath.slice(r.length));var o=V([r,a.relativePath]),s=n.concat(a);e.children&&e.children.length>0&&(!0===e.index&&y(!1),R(e.children,t,s,o)),(null!=e.path||e.index)&&t.push({path:o,score:B(o,e.index),routesMeta:s})})),t}var P=/^:\w+$/,M=function(e){return"*"===e};function B(e,t){var n=e.split("/"),r=n.length;return n.some(M)&&(r+=-2),t&&(r+=2),n.filter((function(e){return!M(e)})).reduce((function(e,t){return e+(P.test(t)?3:""===t?1:10)}),r)}function L(e,t){for(var n=e.routesMeta,r={},i="/",a=[],o=0;o<n.length;++o){var s=n[o],u=o===n.length-1,c="/"===i?t:t.slice(i.length)||"/",l=U({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},c);if(!l)return null;Object.assign(r,l.params);var f=s.route;a.push({params:r,pathname:V([i,l.pathname]),pathnameBase:V([i,l.pathnameBase]),route:f}),"/"!==l.pathnameBase&&(i=V([i,l.pathnameBase]))}return a}function j(e,t){return void 0===t&&(t=[]),null==e?null:e.reduceRight((function(n,r,i){return(0,u.createElement)(b.Provider,{children:void 0!==r.route.element?r.route.element:(0,u.createElement)(w,null),value:{outlet:n,matches:t.concat(e.slice(0,i+1))}})}),null)}function U(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});var n=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);var r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(function(e,t){return r.push(t),"([^\\/]+)"}));e.endsWith("*")?(r.push("*"),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):i+=n?"\\/*$":"(?:\\b|\\/|$)";return[new RegExp(i,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),r=s(n,2),i=r[0],a=r[1],o=t.match(i);if(!o)return null;var u=o[0],c=u.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:a.reduce((function(e,t,n){if("*"===t){var r=l[n]||"";c=u.slice(0,u.length-r.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return e}}(l[n]||""),e}),{}),pathname:u,pathnameBase:c,pattern:e}}function F(e,t,n){var r,i="string"===typeof e?g(e):e,a=""===e||""===i.pathname?"/":i.pathname;if(null==a)r=n;else{var o=t.length-1;if(a.startsWith("..")){for(var s=a.split("/");".."===s[0];)s.shift(),o-=1;i.pathname=s.join("/")}r=o>=0?t[o]:"/"}var u=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?g(e):e,r=n.pathname,i=n.search,a=void 0===i?"":i,o=n.hash,s=void 0===o?"":o,u=r?r.startsWith("/")?r:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(r,t):t;return{pathname:u,search:q(a),hash:G(s)}}(i,r);return a&&"/"!==a&&a.endsWith("/")&&!u.pathname.endsWith("/")&&(u.pathname+="/"),u}function Q(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var n=e.charAt(t.length);return n&&"/"!==n?null:e.slice(t.length)||"/"}var V=function(e){return e.join("/").replace(/\/\/+/g,"/")},z=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},q=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},G=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""};function H(){return H=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H.apply(this,arguments)}function K(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var W=["onClick","reloadDocument","replace","state","target","to"];function J(e){var t=e.basename,n=e.children,r=e.window,i=(0,u.useRef)();null==i.current&&(i.current=function(e){function t(){var e=o.location,t=s.state||{};return[t.idx,h({pathname:e.pathname,search:e.search,hash:e.hash,state:t.usr||null,key:t.key||"default"})]}function n(e){return"string"===typeof e?e:m(e)}function r(e,t){return void 0===t&&(t=null),h(c({pathname:A.pathname,hash:"",search:""},"string"===typeof e?g(e):e,{state:t,key:v()}))}function i(e){f=e,e=t(),y=e[0],A=e[1],k.call({action:f,location:A})}function a(e){s.go(e)}void 0===e&&(e={});var o=void 0===(e=e.window)?document.defaultView:e,s=o.history,u=null;o.addEventListener("popstate",(function(){if(u)b.call(u),u=null;else{var e=l.Pop,n=t(),r=n[0];if(n=n[1],b.length){if(null!=r){var o=y-r;o&&(u={action:e,location:n,retry:function(){a(-1*o)}},a(o))}}else i(e)}}));var f=l.Pop,y=(e=t())[0],A=e[1],k=p(),b=p();return null==y&&(y=0,s.replaceState(c({},s.state,{idx:y}),"")),{get action(){return f},get location(){return A},createHref:n,push:function e(t,a){var u=l.Push,c=r(t,a);if(!b.length||(b.call({action:u,location:c,retry:function(){e(t,a)}}),0)){var f=[{usr:c.state,key:c.key,idx:y+1},n(c)];c=f[0],f=f[1];try{s.pushState(c,"",f)}catch(Mo){o.location.assign(f)}i(u)}},replace:function e(t,a){var o=l.Replace,u=r(t,a);b.length&&(b.call({action:o,location:u,retry:function(){e(t,a)}}),1)||(u=[{usr:u.state,key:u.key,idx:y},n(u)],s.replaceState(u[0],"",u[1]),i(o))},go:a,back:function(){a(-1)},forward:function(){a(1)},listen:function(e){return k.push(e)},block:function(e){var t=b.push(e);return 1===b.length&&o.addEventListener("beforeunload",d),function(){t(),b.length||o.removeEventListener("beforeunload",d)}}}}({window:r}));var a=i.current,o=s((0,u.useState)({action:a.action,location:a.location}),2),f=o[0],y=o[1];return(0,u.useLayoutEffect)((function(){return a.listen(y)}),[a]),(0,u.createElement)(I,{basename:t,children:n,location:f.location,navigationType:f.action,navigator:a})}var Y=(0,u.forwardRef)((function(e,t){var n=e.onClick,r=e.reloadDocument,i=e.replace,a=void 0!==i&&i,o=e.state,s=e.target,c=e.to,l=K(e,W),f=S(c),h=function(e,t){var n=void 0===t?{}:t,r=n.target,i=n.replace,a=n.state,o=_(),s=C(),c=D(e);return(0,u.useCallback)((function(t){if(0===t.button&&(!r||"_self"===r)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t)){t.preventDefault();var n=!!i||m(s)===m(c);o(e,{replace:n,state:a})}}),[s,o,c,i,a,r,e])}(c,{replace:a,state:o,target:s});return(0,u.createElement)("a",H({},l,{href:f,onClick:function(e){n&&n(e),e.defaultPrevented||r||h(e)},ref:t,target:s}))}));var X={container:"navbar_container__zXXth",logoContainner:"navbar_logoContainner__rjQFH",nameCompany1:"navbar_nameCompany1__G16N4",nameCompany2:"navbar_nameCompany2__XoAb3",search:"navbar_search__oQt92",menuContainer:"navbar_menuContainer__l9dT+",menuActive:"navbar_menuActive__xaIoK",menu:"navbar_menu__og7by",menuIcon:"navbar_menuIcon__AN1hL",hamburger:"navbar_hamburger__REkzA",conMobile:"navbar_conMobile__LeH6T",menuMobile:"navbar_menuMobile__+e4yc",searchMobile:"navbar_searchMobile__uleMJ"},Z=n(350);function $(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,i)}function ee(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){$(a,r,i,o,s,"next",e)}function s(e){$(a,r,i,o,s,"throw",e)}o(void 0)}))}}function te(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function ne(e){return function(e){if(Array.isArray(e))return i(e)}(e)||te(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var re=n(757),ie=n.n(re);function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ue(e,t,n){return t&&se(e.prototype,t),n&&se(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ce(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function le(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fe(e,t){return fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},fe(e,t)}function he(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fe(e,t)}function de(e){return de=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},de(e)}function pe(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function ve(e){return ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ve(e)}function me(e,t){if(t&&("object"===ve(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return le(e)}function ge(e){var t=pe();return function(){var n,r=de(e);if(t){var i=de(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return me(this,n)}}function ye(e,t,n){return ye=pe()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&fe(i,n.prototype),i},ye.apply(null,arguments)}function Ae(e){var t="function"===typeof Map?new Map:void 0;return Ae=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return ye(e,arguments,de(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),fe(n,e)},Ae(e)}var ke=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296===(64512&i)&&r+1<e.length&&56320===(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},be={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(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i<e.length;i+=3){var a=e[i],o=i+1<e.length,s=o?e[i+1]:0,u=i+2<e.length,c=u?e[i+2]:0,l=a>>2,f=(3&a)<<4|s>>4,h=(15&s)<<2|c>>6,d=63&c;u||(d=64,o||(h=64)),r.push(n[l],n[f],n[h],n[d])}return r.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(ke(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){for(var t=[],n=0,r=0;n<e.length;){var i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){var a=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&a)}else if(i>239&&i<365){var o=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(o>>10)),t[r++]=String.fromCharCode(56320+(1023&o))}else{var s=e[n++],u=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&s)<<6|63&u)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray:function(e,t){this.init_();for(var n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i<e.length;){var a=n[e.charAt(i++)],o=i<e.length?n[e.charAt(i)]:0,s=++i<e.length?n[e.charAt(i)]:64,u=++i<e.length?n[e.charAt(i)]:64;if(++i,null==a||null==o||null==s||null==u)throw Error();var c=a<<2|o>>4;if(r.push(c),64!==s){var l=o<<4&240|s>>2;if(r.push(l),64!==u){var f=s<<6&192|u;r.push(f)}}}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},we=function(e){return function(e){var t=ke(e);return be.encodeByteArray(t,!0)}(e).replace(/\./g,"")},xe=function(e){try{return be.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function Ie(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var n in t)t.hasOwnProperty(n)&&"__proto__"!==n&&(e[n]=Ie(e[n],t[n]));return e}var Ee=function(){function e(){var t=this;oe(this,e),this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))}return ue(e,[{key:"wrapCallback",value:function(e){var t=this;return function(n,r){n?t.reject(n):t.resolve(r),"function"===typeof e&&(t.promise.catch((function(){})),1===e.length?e(n):e(n,r))}}}]),e}();function Se(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');var n=t||"demo-project",r=e.iat||0,i=e.sub||e.user_id;if(!i)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");var a=Object.assign({iss:"https://securetoken.google.com/".concat(n),aud:n,iat:r,exp:r+3600,auth_time:r,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}}},e);return[we(JSON.stringify({alg:"none",type:"JWT"})),we(JSON.stringify(a)),""].join(".")}function Te(){return"undefined"!==typeof navigator&&"string"===typeof navigator.userAgent?navigator.userAgent:""}function Ce(){return"undefined"!==typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Te())}function _e(){try{return"[object process]"===Object.prototype.toString.call(n.g.process)}catch(e){return!1}}function Ne(){var e="object"===typeof chrome?chrome.runtime:"object"===typeof browser?browser.runtime:void 0;return"object"===typeof e&&void 0!==e.id}function De(){return"object"===typeof navigator&&"ReactNative"===navigator.product}function Oe(){var e=Te();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function Re(){return"object"===typeof indexedDB}var Pe=function(e){he(n,e);var t=ge(n);function n(e,r,i){var a;return oe(this,n),(a=t.call(this,r)).code=e,a.customData=i,a.name="FirebaseError",Object.setPrototypeOf(le(a),n.prototype),Error.captureStackTrace&&Error.captureStackTrace(le(a),Me.prototype.create),a}return ue(n)}(Ae(Error)),Me=function(){function e(t,n,r){oe(this,e),this.service=t,this.serviceName=n,this.errors=r}return ue(e,[{key:"create",value:function(e){var t=(arguments.length<=1?void 0:arguments[1])||{},n="".concat(this.service,"/").concat(e),r=this.errors[e],i=r?Be(r,t):"Error",a="".concat(this.serviceName,": ").concat(i," (").concat(n,")."),o=new Pe(n,a,t);return o}}]),e}();function Be(e,t){return e.replace(Le,(function(e,n){var r=t[n];return null!=r?String(r):"<".concat(n,"?>")}))}var Le=/\{\$([^}]+)}/g;function je(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ue(e,t){if(e===t)return!0;for(var n=Object.keys(e),r=Object.keys(t),i=0,a=n;i<a.length;i++){var o=a[i];if(!r.includes(o))return!1;var s=e[o],u=t[o];if(Fe(s)&&Fe(u)){if(!Ue(s,u))return!1}else if(s!==u)return!1}for(var c=0,l=r;c<l.length;c++){var f=l[c];if(!n.includes(f))return!1}return!0}function Fe(e){return null!==e&&"object"===typeof e}function Qe(e){for(var t=[],n=function(){var e=s(i[r],2),n=e[0],a=e[1];Array.isArray(a)?a.forEach((function(e){t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))})):t.push(encodeURIComponent(n)+"="+encodeURIComponent(a))},r=0,i=Object.entries(e);r<i.length;r++)n();return t.length?"&"+t.join("&"):""}function Ve(e){var t={};return e.replace(/^\?/,"").split("&").forEach((function(e){if(e){var n=s(e.split("="),2),r=n[0],i=n[1];t[decodeURIComponent(r)]=decodeURIComponent(i)}})),t}function ze(e){var t=e.indexOf("?");if(!t)return"";var n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}function qe(e,t){var n=new Ge(e,t);return n.subscribe.bind(n)}var Ge=function(){function e(t,n){var r=this;oe(this,e),this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then((function(){t(r)})).catch((function(e){r.error(e)}))}return ue(e,[{key:"next",value:function(e){this.forEachObserver((function(t){t.next(e)}))}},{key:"error",value:function(e){this.forEachObserver((function(t){t.error(e)})),this.close(e)}},{key:"complete",value:function(){this.forEachObserver((function(e){e.complete()})),this.close()}},{key:"subscribe",value:function(e,t,n){var r,i=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");void 0===(r=function(e,t){if("object"!==typeof e||null===e)return!1;var n,r=ce(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i in e&&"function"===typeof e[i])return!0}}catch(a){r.e(a)}finally{r.f()}return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n}).next&&(r.next=He),void 0===r.error&&(r.error=He),void 0===r.complete&&(r.complete=He);var a=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((function(){try{i.finalError?r.error(i.finalError):r.complete()}catch(e){}})),this.observers.push(r),a}},{key:"unsubscribeOne",value:function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}},{key:"forEachObserver",value:function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)}},{key:"sendOne",value:function(e,t){var n=this;this.task.then((function(){if(void 0!==n.observers&&void 0!==n.observers[e])try{t(n.observers[e])}catch(r){"undefined"!==typeof console&&console.error&&console.error(r)}}))}},{key:"close",value:function(e){var t=this;this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then((function(){t.observers=void 0,t.onNoObservers=void 0})))}}]),e}();function He(){}function Ke(e){return e&&e._delegate?e._delegate:e}function We(e,t){return new Promise((function(n,r){e.onsuccess=function(e){n(e.target.result)},e.onerror=function(e){var n;r("".concat(t,": ").concat(null===(n=e.target.error)||void 0===n?void 0:n.message))}}))}var Je=function(){function e(t){oe(this,e),this._db=t,this.objectStoreNames=this._db.objectStoreNames}return ue(e,[{key:"transaction",value:function(e,t){return new Ye(this._db.transaction.call(this._db,e,t))}},{key:"createObjectStore",value:function(e,t){return new Xe(this._db.createObjectStore(e,t))}},{key:"close",value:function(){this._db.close()}}]),e}(),Ye=function(){function e(t){var n=this;oe(this,e),this._transaction=t,this.complete=new Promise((function(e,t){n._transaction.oncomplete=function(){e()},n._transaction.onerror=function(){t(n._transaction.error)},n._transaction.onabort=function(){t(n._transaction.error)}}))}return ue(e,[{key:"objectStore",value:function(e){return new Xe(this._transaction.objectStore(e))}}]),e}(),Xe=function(){function e(t){oe(this,e),this._store=t}return ue(e,[{key:"index",value:function(e){return new Ze(this._store.index(e))}},{key:"createIndex",value:function(e,t,n){return new Ze(this._store.createIndex(e,t,n))}},{key:"get",value:function(e){return We(this._store.get(e),"Error reading from IndexedDB")}},{key:"put",value:function(e,t){return We(this._store.put(e,t),"Error writing to IndexedDB")}},{key:"delete",value:function(e){return We(this._store.delete(e),"Error deleting from IndexedDB")}},{key:"clear",value:function(){return We(this._store.clear(),"Error clearing IndexedDB object store")}}]),e}(),Ze=function(){function e(t){oe(this,e),this._index=t}return ue(e,[{key:"get",value:function(e){return We(this._index.get(e),"Error reading from IndexedDB")}}]),e}();var $e=function(){function e(t,n,r){oe(this,e),this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}return ue(e,[{key:"setInstantiationMode",value:function(e){return this.instantiationMode=e,this}},{key:"setMultipleInstances",value:function(e){return this.multipleInstances=e,this}},{key:"setServiceProps",value:function(e){return this.serviceProps=e,this}},{key:"setInstanceCreatedCallback",value:function(e){return this.onInstanceCreated=e,this}}]),e}(),et="[DEFAULT]",tt=function(){function e(t,n){oe(this,e),this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}return ue(e,[{key:"get",value:function(e){var t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){var n=new Ee;if(this.instancesDeferred.set(t,n),this.isInitialized(t)||this.shouldAutoInitialize())try{var r=this.getOrInitializeService({instanceIdentifier:t});r&&n.resolve(r)}catch(i){}}return this.instancesDeferred.get(t).promise}},{key:"getImmediate",value:function(e){var t,n=this.normalizeInstanceIdentifier(null===e||void 0===e?void 0:e.identifier),r=null!==(t=null===e||void 0===e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error("Service ".concat(this.name," is not available"))}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(i){if(r)return null;throw i}}},{key:"getComponent",value:function(){return this.component}},{key:"setComponent",value:function(e){if(e.name!==this.name)throw Error("Mismatching Component ".concat(e.name," for Provider ").concat(this.name,"."));if(this.component)throw Error("Component for ".concat(this.name," has already been provided"));if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:et})}catch(c){}var t,n=ce(this.instancesDeferred.entries());try{for(n.s();!(t=n.n()).done;){var r=s(t.value,2),i=r[0],a=r[1],o=this.normalizeInstanceIdentifier(i);try{var u=this.getOrInitializeService({instanceIdentifier:o});a.resolve(u)}catch(c){}}}catch(l){n.e(l)}finally{n.f()}}}},{key:"clearInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:et;this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}},{key:"delete",value:function(){var e=ee(re.mark((function e(){var t;return re.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Array.from(this.instances.values()),e.next=3,Promise.all([].concat(ne(t.filter((function(e){return"INTERNAL"in e})).map((function(e){return e.INTERNAL.delete()}))),ne(t.filter((function(e){return"_delete"in e})).map((function(e){return e._delete()})))));case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"isComponentSet",value:function(){return null!=this.component}},{key:"isInitialized",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:et;return this.instances.has(e)}},{key:"getOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:et;return this.instancesOptions.get(e)||{}}},{key:"initialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.options,n=void 0===t?{}:t,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error("".concat(this.name,"(").concat(r,") has already been initialized"));if(!this.isComponentSet())throw Error("Component ".concat(this.name," has not been registered yet"));var i,a=this.getOrInitializeService({instanceIdentifier:r,options:n}),o=ce(this.instancesDeferred.entries());try{for(o.s();!(i=o.n()).done;){var u=s(i.value,2),c=u[0],l=u[1],f=this.normalizeInstanceIdentifier(c);r===f&&l.resolve(a)}}catch(h){o.e(h)}finally{o.f()}return a}},{key:"onInit",value:function(e,t){var n,r=this.normalizeInstanceIdentifier(t),i=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;i.add(e),this.onInitCallbacks.set(r,i);var a=this.instances.get(r);return a&&e(a,r),function(){i.delete(e)}}},{key:"invokeOnInitCallbacks",value:function(e,t){var n=this.onInitCallbacks.get(t);if(n){var r,i=ce(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;try{a(e,t)}catch(Cv){}}}catch(o){i.e(o)}finally{i.f()}}}},{key:"getOrInitializeService",value:function(e){var t,n=e.instanceIdentifier,r=e.options,i=void 0===r?{}:r,a=this.instances.get(n);if(!a&&this.component&&(a=this.component.instanceFactory(this.container,{instanceIdentifier:(t=n,t===et?void 0:t),options:i}),this.instances.set(n,a),this.instancesOptions.set(n,i),this.invokeOnInitCallbacks(a,n),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,n,a)}catch(Cv){}return a||null}},{key:"normalizeInstanceIdentifier",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:et;return this.component?this.component.multipleInstances?e:et:e}},{key:"shouldAutoInitialize",value:function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}]),e}();var nt,rt,it=function(){function e(t){oe(this,e),this.name=t,this.providers=new Map}return ue(e,[{key:"addComponent",value:function(e){var t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component ".concat(e.name," has already been registered with ").concat(this.name));t.setComponent(e)}},{key:"addOrOverwriteComponent",value:function(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}},{key:"getProvider",value:function(e){if(this.providers.has(e))return this.providers.get(e);var t=new tt(e,this);return this.providers.set(e,t),t}},{key:"getProviders",value:function(){return Array.from(this.providers.values())}}]),e}(),at=[];!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(rt||(rt={}));var ot,st,ut={debug:rt.DEBUG,verbose:rt.VERBOSE,info:rt.INFO,warn:rt.WARN,error:rt.ERROR,silent:rt.SILENT},ct=rt.INFO,lt=(ae(nt={},rt.DEBUG,"log"),ae(nt,rt.VERBOSE,"log"),ae(nt,rt.INFO,"info"),ae(nt,rt.WARN,"warn"),ae(nt,rt.ERROR,"error"),nt),ft=function(e,t){if(!(t<e.logLevel)){var n=(new Date).toISOString(),r=lt[t];if(!r)throw new Error("Attempted to log a message with an invalid logType (value: ".concat(t,")"));for(var i,a=arguments.length,o=new Array(a>2?a-2:0),s=2;s<a;s++)o[s-2]=arguments[s];(i=console)[r].apply(i,["[".concat(n,"]  ").concat(e.name,":")].concat(o))}},ht=function(){function e(t){oe(this,e),this.name=t,this._logLevel=ct,this._logHandler=ft,this._userLogHandler=null,at.push(this)}return ue(e,[{key:"logLevel",get:function(){return this._logLevel},set:function(e){if(!(e in rt))throw new TypeError('Invalid value "'.concat(e,'" assigned to `logLevel`'));this._logLevel=e}},{key:"setLogLevel",value:function(e){this._logLevel="string"===typeof e?ut[e]:e}},{key:"logHandler",get:function(){return this._logHandler},set:function(e){if("function"!==typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}},{key:"userLogHandler",get:function(){return this._userLogHandler},set:function(e){this._userLogHandler=e}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,[this,rt.DEBUG].concat(t)),this._logHandler.apply(this,[this,rt.DEBUG].concat(t))}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,[this,rt.VERBOSE].concat(t)),this._logHandler.apply(this,[this,rt.VERBOSE].concat(t))}},{key:"info",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,[this,rt.INFO].concat(t)),this._logHandler.apply(this,[this,rt.INFO].concat(t))}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,[this,rt.WARN].concat(t)),this._logHandler.apply(this,[this,rt.WARN].concat(t))}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,[this,rt.ERROR].concat(t)),this._logHandler.apply(this,[this,rt.ERROR].concat(t))}}]),e}();var dt=function(){function e(t){oe(this,e),this.container=t}return ue(e,[{key:"getPlatformInfoString",value:function(){return this.container.getProviders().map((function(e){if(function(e){var t=e.getComponent();return"VERSION"===(null===t||void 0===t?void 0:t.type)}(e)){var t=e.getImmediate();return"".concat(t.library,"/").concat(t.version)}return null})).filter((function(e){return e})).join(" ")}}]),e}();var pt="@firebase/app",vt="0.7.20",mt=new ht("@firebase/app"),gt="[DEFAULT]",yt=(ae(ot={},pt,"fire-core"),ae(ot,"@firebase/app-compat","fire-core-compat"),ae(ot,"@firebase/analytics","fire-analytics"),ae(ot,"@firebase/analytics-compat","fire-analytics-compat"),ae(ot,"@firebase/app-check","fire-app-check"),ae(ot,"@firebase/app-check-compat","fire-app-check-compat"),ae(ot,"@firebase/auth","fire-auth"),ae(ot,"@firebase/auth-compat","fire-auth-compat"),ae(ot,"@firebase/database","fire-rtdb"),ae(ot,"@firebase/database-compat","fire-rtdb-compat"),ae(ot,"@firebase/functions","fire-fn"),ae(ot,"@firebase/functions-compat","fire-fn-compat"),ae(ot,"@firebase/installations","fire-iid"),ae(ot,"@firebase/installations-compat","fire-iid-compat"),ae(ot,"@firebase/messaging","fire-fcm"),ae(ot,"@firebase/messaging-compat","fire-fcm-compat"),ae(ot,"@firebase/performance","fire-perf"),ae(ot,"@firebase/performance-compat","fire-perf-compat"),ae(ot,"@firebase/remote-config","fire-rc"),ae(ot,"@firebase/remote-config-compat","fire-rc-compat"),ae(ot,"@firebase/storage","fire-gcs"),ae(ot,"@firebase/storage-compat","fire-gcs-compat"),ae(ot,"@firebase/firestore","fire-fst"),ae(ot,"@firebase/firestore-compat","fire-fst-compat"),ae(ot,"fire-js","fire-js"),ae(ot,"firebase","fire-js-all"),ot),At=new Map,kt=new Map;function bt(e,t){try{e.container.addComponent(t)}catch(n){mt.debug("Component ".concat(t.name," failed to register with FirebaseApp ").concat(e.name),n)}}function wt(e,t){e.container.addOrOverwriteComponent(t)}function xt(e){var t=e.name;if(kt.has(t))return mt.debug("There were multiple attempts to register component ".concat(t,".")),!1;kt.set(t,e);var n,r=ce(At.values());try{for(r.s();!(n=r.n()).done;){bt(n.value,e)}}catch(i){r.e(i)}finally{r.f()}return!0}function It(e,t){var n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function Et(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:gt;It(e,t).clearInstance(n)}function St(){kt.clear()}var Tt=(ae(st={},"no-app","No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()"),ae(st,"bad-app-name","Illegal App name: '{$appName}"),ae(st,"duplicate-app","Firebase App named '{$appName}' already exists with different options or config"),ae(st,"app-deleted","Firebase App named '{$appName}' already deleted"),ae(st,"invalid-app-argument","firebase.{$appName}() takes either no argument or a Firebase App instance."),ae(st,"invalid-log-argument","First argument to `onLog` must be null or a function."),ae(st,"storage-open","Error thrown when opening storage. Original error: {$originalErrorMessage}."),ae(st,"storage-get","Error thrown when reading from storage. Original error: {$originalErrorMessage}."),ae(st,"storage-set","Error thrown when writing to storage. Original error: {$originalErrorMessage}."),ae(st,"storage-delete","Error thrown when deleting from storage. Original error: {$originalErrorMessage}."),st),Ct=new Me("app","Firebase",Tt),_t=function(){function e(t,n,r){var i=this;oe(this,e),this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new $e("app",(function(){return i}),"PUBLIC"))}return ue(e,[{key:"automaticDataCollectionEnabled",get:function(){return this.checkDestroyed(),this._automaticDataCollectionEnabled},set:function(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}},{key:"name",get:function(){return this.checkDestroyed(),this._name}},{key:"options",get:function(){return this.checkDestroyed(),this._options}},{key:"config",get:function(){return this.checkDestroyed(),this._config}},{key:"container",get:function(){return this._container}},{key:"isDeleted",get:function(){return this._isDeleted},set:function(e){this._isDeleted=e}},{key:"checkDestroyed",value:function(){if(this.isDeleted)throw Ct.create("app-deleted",{appName:this._name})}}]),e}(),Nt="9.6.10";function Dt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"!==typeof t){var n=t;t={name:n}}var r=Object.assign({name:gt,automaticDataCollectionEnabled:!1},t),i=r.name;if("string"!==typeof i||!i)throw Ct.create("bad-app-name",{appName:String(i)});var a=At.get(i);if(a){if(Ue(e,a.options)&&Ue(r,a.config))return a;throw Ct.create("duplicate-app",{appName:i})}var o,s=new it(i),u=ce(kt.values());try{for(u.s();!(o=u.n()).done;){var c=o.value;s.addComponent(c)}}catch(f){u.e(f)}finally{u.f()}var l=new _t(e,r,s);return At.set(i,l),l}function Ot(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gt,t=At.get(e);if(!t)throw Ct.create("no-app",{appName:e});return t}function Rt(){return Array.from(At.values())}function Pt(e){return Mt.apply(this,arguments)}function Mt(){return(Mt=ee(re.mark((function e(t){var n;return re.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.name,!At.has(n)){e.next=6;break}return At.delete(n),e.next=5,Promise.all(t.container.getProviders().map((function(e){return e.delete()})));case 5:t.isDeleted=!0;case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Bt(e,t,n){var r,i=null!==(r=yt[e])&&void 0!==r?r:e;n&&(i+="-".concat(n));var a=i.match(/\s|\//),o=t.match(/\s|\//);if(a||o){var s=['Unable to register library "'.concat(i,'" with version "').concat(t,'":')];return a&&s.push('library name "'.concat(i,'" contains illegal characters (whitespace or "/")')),a&&o&&s.push("and"),o&&s.push('version name "'.concat(t,'" contains illegal characters (whitespace or "/")')),void mt.warn(s.join(" "))}xt(new $e("".concat(i,"-version"),(function(){return{library:i,version:t}}),"VERSION"))}function Lt(e,t){if(null!==e&&"function"!==typeof e)throw Ct.create("invalid-log-argument");!function(e,t){var n,r=ce(at);try{var i=function(){var r=n.value,i=null;t&&t.level&&(i=ut[t.level]),r.userLogHandler=null===e?null:function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),o=2;o<r;o++)a[o-2]=arguments[o];var s=a.map((function(e){if(null==e)return null;if("string"===typeof e)return e;if("number"===typeof e||"boolean"===typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(t){return null}})).filter((function(e){return e})).join(" ");n>=(null!==i&&void 0!==i?i:t.logLevel)&&e({level:rt[n].toLowerCase(),message:s,args:a,type:t.name})}};for(r.s();!(n=r.n()).done;)i()}catch(a){r.e(a)}finally{r.f()}}(e,t)}function jt(e){var t;t=e,at.forEach((function(e){e.setLogLevel(t)}))}var Ut="firebase-heartbeat-store",Ft=null;function Qt(){var e,t,n;return Ft||(Ft=(e="firebase-heartbeat-database",t=1,n=function(e,t){0===t&&e.createObjectStore(Ut)},new Promise((function(r,i){try{var a=indexedDB.open(e,t);a.onsuccess=function(e){r(new Je(e.target.result))},a.onerror=function(e){var t;i("Error opening indexedDB: ".concat(null===(t=e.target.error)||void 0===t?void 0:t.message))},a.onupgradeneeded=function(e){n(new Je(a.result),e.oldVersion,e.newVersion,new Ye(a.transaction))}}catch(o){i("Error opening indexedDB: ".concat(o.message))}}))).catch((function(e){throw Ct.create("storage-open",{originalErrorMessage:e.message})}))),Ft}function Vt(e){return zt.apply(this,arguments)}function zt(){return zt=ee(re.mark((function e(t){var n;return re.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Qt();case 3:return n=e.sent,e.abrupt("return",n.transaction(Ut).objectStore(Ut).get(Ht(t)));case 7:throw e.prev=7,e.t0=e.catch(0),Ct.create("storage-get",{originalErrorMessage:e.t0.message});case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))),zt.apply(this,arguments)}function qt(e,t){return Gt.apply(this,arguments)}function Gt(){return Gt=ee(re.mark((function e(t,n){var r,i,a;return re.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Qt();case 3:return r=e.sent,i=r.transaction(Ut,"readwrite"),a=i.objectStore(Ut),e.next=8,a.put(n,Ht(t));case 8:return e.abrupt("return",i.complete);case 11:throw e.prev=11,e.t0=e.catch(0),Ct.create("storage-set",{originalErrorMessage:e.t0.message});case 14:case"end":return e.stop()}}),e,null,[[0,11]])}))),Gt.apply(this,arguments)}function Ht(e){return"".concat(e.name,"!").concat(e.options.appId)}var Kt=function(){function e(t){var n=this;oe(this,e),this.container=t,this._heartbeatsCache=null;var r=this.container.getProvider("app").getImmediate();this._storage=new Zt(r),this._heartbeatsCachePromise=this._storage.read().then((function(e){return n._heartbeatsCache=e,e}))}return ue(e,[{key:"triggerHeartbeat",value:function(){var e=ee(re.mark((function e(){var t,n,r;return re.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.container.getProvider("platform-logger").getImmediate(),n=t.getPlatformInfoString(),r=Wt(),null!==this._heartbeatsCache){e.next=7;break}return e.next=6,this._heartbeatsCachePromise;case 6:this._heartbeatsCache=e.sent;case 7:if(this._heartbeatsCache.lastSentHeartbeatDate!==r&&!this._heartbeatsCache.heartbeats.some((function(e){return e.date===r}))){e.next=11;break}return e.abrupt("return");case 11:this._heartbeatsCache.heartbeats.push({date:r,agent:n});case 12:return this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter((function(e){var t=new Date(e.date).valueOf();return Date.now()-t<=2592e6})),e.abrupt("return",this._storage.overwrite(this._heartbeatsCache));case 14:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getHeartbeatsHeader",value:function(){var e=ee(re.mark((function e(){var t,n,r,i,a;return re.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==this._heartbeatsCache){e.next=3;break}return e.next=3,this._heartbeatsCachePromise;case 3:if(null!==this._heartbeatsCache&&0!==this._heartbeatsCache.heartbeats.length){e.next=5;break}return e.abrupt("return","");case 5:if(t=Wt(),n=Jt(this._heartbeatsCache.heartbeats),r=n.heartbeatsToSend,i=n.unsentEntries,a=we(JSON.stringify({version:2,heartbeats:r})),this._heartbeatsCache.lastSentHeartbeatDate=t,!(i.length>0)){e.next=15;break}return this._heartbeatsCache.heartbeats=i,e.next=13,this._storage.overwrite(this._heartbeatsCache);case 13:e.next=17;break;case 15:this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache);case 17:return e.abrupt("return",a);case 18:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}();function Wt(){return(new Date).toISOString().substring(0,10)}function Jt(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1024,r=[],i=e.slice(),a=ce(e);try{var o=function(){var e=t.value,a=r.find((function(t){return t.agent===e.agent}));if(a){if(a.dates.push(e.date),$t(r)>n)return a.dates.pop(),"break"}else if(r.push({agent:e.agent,dates:[e.date]}),$t(r)>n)return r.pop(),"break";i=i.slice(1)};for(a.s();!(t=a.n()).done;){var s=o();if("break"===s)break}}catch(u){a.e(u)}finally{a.f()}return{heartbeatsToSend:r,unsentEntries:i}}var Yt,Xt,Zt=function(){function e(t){oe(this,e),this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}return ue(e,[{key:"runIndexedDBEnvironmentCheck",value:function(){var e=ee(re.mark((function e(){return re.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Re()){e.next=4;break}return e.abrupt("return",!1);case 4:return e.abrupt("return",new Promise((function(e,t){try{var n=!0,r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=function(){i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=function(){n=!1},i.onerror=function(){var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(a){t(a)}})).then((function(){return!0})).catch((function(){return!1})));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"read",value:function(){var e=ee(re.mark((function e(){var t;return re.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._canUseIndexedDBPromise;case 2:if(e.sent){e.next=7;break}return e.abrupt("return",{heartbeats:[]});case 7:return e.next=9,Vt(this.app);case 9:return t=e.sent,e.abrupt("return",t||{heartbeats:[]});case 11:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"overwrite",value:function(){var e=ee(re.mark((function e(t){var n,r;return re.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._canUseIndexedDBPromise;case 2:if(e.sent){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,this.read();case 9:return r=e.sent,e.abrupt("return",qt(this.app,{lastSentHeartbeatDate:null!==(n=t.lastSentHeartbeatDate)&&void 0!==n?n:r.lastSentHeartbeatDate,heartbeats:t.heartbeats}));case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"add",value:function(){var e=ee(re.mark((function e(t){var n,r;return re.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._canUseIndexedDBPromise;case 2:if(e.sent){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,this.read();case 9:return r=e.sent,e.abrupt("return",qt(this.app,{lastSentHeartbeatDate:null!==(n=t.lastSentHeartbeatDate)&&void 0!==n?n:r.lastSentHeartbeatDate,heartbeats:[].concat(ne(r.heartbeats),ne(t.heartbeats))}));case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}();function $t(e){return we(JSON.stringify({version:2,heartbeats:e})).length}Yt="",xt(new $e("platform-logger",(function(e){return new dt(e)}),"PRIVATE")),xt(new $e("heartbeat",(function(e){return new Kt(e)}),"PRIVATE")),Bt(pt,vt,Yt),Bt(pt,vt,"esm2017"),Bt("fire-js","");var en=function(){function e(t,n){var r=this;oe(this,e),this._delegate=t,this.firebase=n,bt(t,new $e("app-compat",(function(){return r}),"PUBLIC")),this.container=t.container}return ue(e,[{key:"automaticDataCollectionEnabled",get:function(){return this._delegate.automaticDataCollectionEnabled},set:function(e){this._delegate.automaticDataCollectionEnabled=e}},{key:"name",get:function(){return this._delegate.name}},{key:"options",get:function(){return this._delegate.options}},{key:"delete",value:function(){var e=this;return new Promise((function(t){e._delegate.checkDestroyed(),t()})).then((function(){return e.firebase.INTERNAL.removeApp(e.name),Pt(e._delegate)}))}},{key:"_getService",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gt;this._delegate.checkDestroyed();var r=this._delegate.container.getProvider(e);return r.isInitialized()||"EXPLICIT"!==(null===(t=r.getComponent())||void 0===t?void 0:t.instantiationMode)||r.initialize(),r.getImmediate({identifier:n})}},{key:"_removeServiceInstance",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gt;this._delegate.container.getProvider(e).clearInstance(t)}},{key:"_addComponent",value:function(e){bt(this._delegate,e)}},{key:"_addOrOverwriteComponent",value:function(e){wt(this._delegate,e)}},{key:"toJSON",value:function(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}}}]),e}(),tn=(ae(Xt={},"no-app","No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()"),ae(Xt,"invalid-app-argument","firebase.{$appName}() takes either no argument or a Firebase App instance."),Xt),nn=new Me("app-compat","Firebase",tn);var rn=function t(){var n=function(t){var n={},r={__esModule:!0,initializeApp:function(e){var i=Dt(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});if(je(n,i.name))return n[i.name];var a=new t(i,r);return n[i.name]=a,a},app:i,registerVersion:Bt,setLogLevel:jt,onLog:Lt,apps:null,SDK_VERSION:Nt,INTERNAL:{registerComponent:function(e){var n=e.name,a=n.replace("-compat","");if(xt(e)&&"PUBLIC"===e.type){var o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i();if("function"!==typeof e[a])throw nn.create("invalid-app-argument",{appName:n});return e[a]()};void 0!==e.serviceProps&&Ie(o,e.serviceProps),r[a]=o,t.prototype[a]=function(){for(var t=this._getService.bind(this,n),r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t.apply(this,e.multipleInstances?i:[])}}return"PUBLIC"===e.type?r[a]:null},removeApp:function(e){delete n[e]},useAsService:function(e,t){return"serverAuth"===t?null:t},modularAPIs:e}};function i(e){if(!je(n,e=e||gt))throw nn.create("no-app",{appName:e});return n[e]}return r.default=r,Object.defineProperty(r,"apps",{get:function(){return Object.keys(n).map((function(e){return n[e]}))}}),i.App=t,r}(en);return n.INTERNAL=Object.assign(Object.assign({},n.INTERNAL),{createFirebaseNamespace:t,extendNamespace:function(e){Ie(n,e)},createSubscribe:qe,ErrorFactory:Me,deepExtend:Ie}),n}(),an=new ht("@firebase/app-compat");if("object"===typeof self&&self.self===self&&void 0!==self.firebase){an.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  ");var on=self.firebase.SDK_VERSION;on&&on.indexOf("LITE")>=0&&an.warn("\n    Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n    ")}var sn=rn;!function(e){Bt("@firebase/app-compat","0.1.21",e)}();function un(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=de(e)););return e}function cn(){return cn="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=un(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},cn.apply(this,arguments)}sn.registerVersion("firebase","9.6.10","app-compat");var ln,fn="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{},hn={},dn=dn||{},pn=fn||self;function vn(){}function mn(e){var t=typeof e;return"array"==(t="object"!=t?t:e?Array.isArray(e)?"array":t:"null")||"object"==t&&"number"==typeof e.length}function gn(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var yn="closure_uid_"+(1e9*Math.random()>>>0),An=0;function kn(e,t,n){return e.call.apply(e.bind,arguments)}function bn(e,t,n){if(!e)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),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function wn(e,t,n){return(wn=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?kn:bn).apply(null,arguments)}function xn(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}function In(e,t){function n(){}n.prototype=t.prototype,e.Z=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.Vb=function(e,n,r){for(var i=Array(arguments.length-2),a=2;a<arguments.length;a++)i[a-2]=arguments[a];return t.prototype[n].apply(e,i)}}function En(){this.s=this.s,this.o=this.o}var Sn={};En.prototype.s=!1,En.prototype.na=function(){if(!this.s&&(this.s=!0,this.M(),0)){var e=function(e){return Object.prototype.hasOwnProperty.call(e,yn)&&e[yn]||(e[yn]=++An)}(this);delete Sn[e]}},En.prototype.M=function(){if(this.o)for(;this.o.length;)this.o.shift()()};var Tn=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if("string"===typeof e)return"string"!==typeof t||1!=t.length?-1:e.indexOf(t,0);for(var n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1},Cn=Array.prototype.forEach?function(e,t,n){Array.prototype.forEach.call(e,t,n)}:function(e,t,n){for(var r=e.length,i="string"===typeof e?e.split(""):e,a=0;a<r;a++)a in i&&t.call(n,i[a],a,e)};function _n(e){return Array.prototype.concat.apply([],arguments)}function Nn(e){var t=e.length;if(0<t){for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}return[]}function Dn(e){return/^[\s\xa0]*$/.test(e)}var On,Rn=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]};function Pn(e,t){return-1!=e.indexOf(t)}function Mn(e,t){return e<t?-1:e>t?1:0}e:{var Bn=pn.navigator;if(Bn){var Ln=Bn.userAgent;if(Ln){On=Ln;break e}}On=""}function jn(e,t,n){for(var r in e)t.call(n,e[r],r,e)}function Un(e){var t={};for(var n in e)t[n]=e[n];return t}var Fn="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Qn(e,t){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])e[n]=r[n];for(var a=0;a<Fn.length;a++)n=Fn[a],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function Vn(e){return Vn[" "](e),e}Vn[" "]=vn;var zn,qn=Pn(On,"Opera"),Gn=Pn(On,"Trident")||Pn(On,"MSIE"),Hn=Pn(On,"Edge"),Kn=Hn||Gn,Wn=Pn(On,"Gecko")&&!(Pn(On.toLowerCase(),"webkit")&&!Pn(On,"Edge"))&&!(Pn(On,"Trident")||Pn(On,"MSIE"))&&!Pn(On,"Edge"),Jn=Pn(On.toLowerCase(),"webkit")&&!Pn(On,"Edge");function Yn(){var e=pn.document;return e?e.documentMode:void 0}e:{var Xn="",Zn=function(){var e=On;return Wn?/rv:([^\);]+)(\)|;)/.exec(e):Hn?/Edge\/([\d\.]+)/.exec(e):Gn?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):Jn?/WebKit\/(\S+)/.exec(e):qn?/(?:Version)[ \/]?(\S+)/.exec(e):void 0}();if(Zn&&(Xn=Zn?Zn[1]:""),Gn){var $n=Yn();if(null!=$n&&$n>parseFloat(Xn)){zn=String($n);break e}}zn=Xn}var er,tr={};function nr(){return function(e){var t=tr;return Object.prototype.hasOwnProperty.call(t,9)?t[9]:t[9]=e(9)}((function(){for(var e=0,t=Rn(String(zn)).split("."),n=Rn("9").split("."),r=Math.max(t.length,n.length),i=0;0==e&&i<r;i++){var a=t[i]||"",o=n[i]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],o=/(\d*)(\D*)(.*)/.exec(o)||["","","",""],0==a[0].length&&0==o[0].length)break;e=Mn(0==a[1].length?0:parseInt(a[1],10),0==o[1].length?0:parseInt(o[1],10))||Mn(0==a[2].length,0==o[2].length)||Mn(a[2],o[2]),a=a[3],o=o[3]}while(0==e)}return 0<=e}))}if(pn.document&&Gn){var rr=Yn();er=rr||(parseInt(zn,10)||void 0)}else er=void 0;var ir=er,ar=function(){if(!pn.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{pn.addEventListener("test",vn,t),pn.removeEventListener("test",vn,t)}catch(n){}return e}();function or(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}function sr(e,t){if(or.call(this,e?e.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,e){var n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.g=t,t=e.relatedTarget){if(Wn){e:{try{Vn(t.nodeName);var i=!0;break e}catch(a){}i=!1}i||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,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!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"===typeof e.pointerType?e.pointerType:ur[e.pointerType]||"",this.state=e.state,this.i=e,e.defaultPrevented&&sr.Z.h.call(this)}}or.prototype.h=function(){this.defaultPrevented=!0},In(sr,or);var ur={2:"touch",3:"pen",4:"mouse"};sr.prototype.h=function(){sr.Z.h.call(this);var e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var cr="closure_listenable_"+(1e6*Math.random()|0),lr=0;function fr(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.ia=i,this.key=++lr,this.ca=this.fa=!1}function hr(e){e.ca=!0,e.listener=null,e.proxy=null,e.src=null,e.ia=null}function dr(e){this.src=e,this.g={},this.h=0}function pr(e,t){var n=t.type;if(n in e.g){var r,i=e.g[n],a=Tn(i,t);(r=0<=a)&&Array.prototype.splice.call(i,a,1),r&&(hr(t),0==e.g[n].length&&(delete e.g[n],e.h--))}}function vr(e,t,n,r){for(var i=0;i<e.length;++i){var a=e[i];if(!a.ca&&a.listener==t&&a.capture==!!n&&a.ia==r)return i}return-1}dr.prototype.add=function(e,t,n,r,i){var a=e.toString();(e=this.g[a])||(e=this.g[a]=[],this.h++);var o=vr(e,t,r,i);return-1<o?(t=e[o],n||(t.fa=!1)):((t=new fr(t,this.src,a,!!r,i)).fa=n,e.push(t)),t};var mr="closure_lm_"+(1e6*Math.random()|0),gr={};function yr(e,t,n,r,i){if(r&&r.once)return kr(e,t,n,r,i);if(Array.isArray(t)){for(var a=0;a<t.length;a++)yr(e,t[a],n,r,i);return null}return n=Tr(n),e&&e[cr]?e.N(t,n,gn(r)?!!r.capture:!!r,i):Ar(e,t,n,!1,r,i)}function Ar(e,t,n,r,i,a){if(!t)throw Error("Invalid event type");var o=gn(i)?!!i.capture:!!i,s=Er(e);if(s||(e[mr]=s=new dr(e)),(n=s.add(t,n,r,o,a)).proxy)return n;if(r=function(){function e(n){return t.call(e.src,e.listener,n)}var t=Ir;return e}(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)ar||(i=o),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(xr(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}return n}function kr(e,t,n,r,i){if(Array.isArray(t)){for(var a=0;a<t.length;a++)kr(e,t[a],n,r,i);return null}return n=Tr(n),e&&e[cr]?e.O(t,n,gn(r)?!!r.capture:!!r,i):Ar(e,t,n,!0,r,i)}function br(e,t,n,r,i){if(Array.isArray(t))for(var a=0;a<t.length;a++)br(e,t[a],n,r,i);else r=gn(r)?!!r.capture:!!r,n=Tr(n),e&&e[cr]?(e=e.i,(t=String(t).toString())in e.g&&(-1<(n=vr(a=e.g[t],n,r,i))&&(hr(a[n]),Array.prototype.splice.call(a,n,1),0==a.length&&(delete e.g[t],e.h--)))):e&&(e=Er(e))&&(t=e.g[t.toString()],e=-1,t&&(e=vr(t,n,r,i)),(n=-1<e?t[e]:null)&&wr(n))}function wr(e){if("number"!==typeof e&&e&&!e.ca){var t=e.src;if(t&&t[cr])pr(t.i,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(xr(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=Er(t))?(pr(n,e),0==n.h&&(n.src=null,t[mr]=null)):hr(e)}}}function xr(e){return e in gr?gr[e]:gr[e]="on"+e}function Ir(e,t){if(e.ca)e=!0;else{t=new sr(t,this);var n=e.listener,r=e.ia||e.src;e.fa&&wr(e),e=n.call(r,t)}return e}function Er(e){return(e=e[mr])instanceof dr?e:null}var Sr="__closure_events_fn_"+(1e9*Math.random()>>>0);function Tr(e){return"function"===typeof e?e:(e[Sr]||(e[Sr]=function(t){return e.handleEvent(t)}),e[Sr])}function Cr(){En.call(this),this.i=new dr(this),this.P=this,this.I=null}function _r(e,t){var n,r=e.I;if(r)for(n=[];r;r=r.I)n.push(r);if(e=e.P,r=t.type||t,"string"===typeof t)t=new or(t,e);else if(t instanceof or)t.target=t.target||e;else{var i=t;Qn(t=new or(r,e),i)}if(i=!0,n)for(var a=n.length-1;0<=a;a--){var o=t.g=n[a];i=Nr(o,r,!0,t)&&i}if(i=Nr(o=t.g=e,r,!0,t)&&i,i=Nr(o,r,!1,t)&&i,n)for(a=0;a<n.length;a++)i=Nr(o=t.g=n[a],r,!1,t)&&i}function Nr(e,t,n,r){if(!(t=e.i.g[String(t)]))return!0;t=t.concat();for(var i=!0,a=0;a<t.length;++a){var o=t[a];if(o&&!o.ca&&o.capture==n){var s=o.listener,u=o.ia||o.src;o.fa&&pr(e.i,o),i=!1!==s.call(u,r)&&i}}return i&&!r.defaultPrevented}In(Cr,En),Cr.prototype[cr]=!0,Cr.prototype.removeEventListener=function(e,t,n,r){br(this,e,t,n,r)},Cr.prototype.M=function(){if(Cr.Z.M.call(this),this.i){var e,t=this.i;for(e in t.g){for(var n=t.g[e],r=0;r<n.length;r++)hr(n[r]);delete t.g[e],t.h--}}this.I=null},Cr.prototype.N=function(e,t,n,r){return this.i.add(String(e),t,!1,n,r)},Cr.prototype.O=function(e,t,n,r){return this.i.add(String(e),t,!0,n,r)};var Dr=pn.JSON.stringify;function Or(){var e=Fr,t=null;return e.g&&(t=e.g,e.g=e.g.next,e.g||(e.h=null),t.next=null),t}var Rr,Pr=function(){function e(){oe(this,e),this.h=this.g=null}return ue(e,[{key:"add",value:function(e,t){var n=Mr.get();n.set(e,t),this.h?this.h.next=n:this.g=n,this.h=n}}]),e}(),Mr=new(function(){function e(t,n){oe(this,e),this.i=t,this.j=n,this.h=0,this.g=null}return ue(e,[{key:"get",value:function(){var e;return 0<this.h?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}]),e}())((function(){return new Br}),(function(e){return e.reset()})),Br=function(){function e(){oe(this,e),this.next=this.g=this.h=null}return ue(e,[{key:"set",value:function(e,t){this.h=e,this.g=t,this.next=null}},{key:"reset",value:function(){this.next=this.g=this.h=null}}]),e}();function Lr(e){pn.setTimeout((function(){throw e}),0)}function jr(e,t){Rr||function(){var e=pn.Promise.resolve(void 0);Rr=function(){e.then(Qr)}}(),Ur||(Rr(),Ur=!0),Fr.add(e,t)}var Ur=!1,Fr=new Pr;function Qr(){for(var e;e=Or();){try{e.h.call(e.g)}catch(n){Lr(n)}var t=Mr;t.j(e),100>t.h&&(t.h++,e.next=t.g,t.g=e)}Ur=!1}function Vr(e,t){Cr.call(this),this.h=e||1,this.g=t||pn,this.j=wn(this.kb,this),this.l=Date.now()}function zr(e){e.da=!1,e.S&&(e.g.clearTimeout(e.S),e.S=null)}function qr(e,t,n){if("function"===typeof e)n&&(e=wn(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=wn(e.handleEvent,e)}return 2147483647<Number(t)?-1:pn.setTimeout(e,t||0)}function Gr(e){e.g=qr((function(){e.g=null,e.i&&(e.i=!1,Gr(e))}),e.j);var t=e.h;e.h=null,e.m.apply(null,t)}In(Vr,Cr),(ln=Vr.prototype).da=!1,ln.S=null,ln.kb=function(){if(this.da){var e=Date.now()-this.l;0<e&&e<.8*this.h?this.S=this.g.setTimeout(this.j,this.h-e):(this.S&&(this.g.clearTimeout(this.S),this.S=null),_r(this,"tick"),this.da&&(zr(this),this.start()))}},ln.start=function(){this.da=!0,this.S||(this.S=this.g.setTimeout(this.j,this.h),this.l=Date.now())},ln.M=function(){Vr.Z.M.call(this),zr(this),delete this.g};var Hr=function(e){he(n,e);var t=ge(n);function n(e,r){var i;return oe(this,n),(i=t.call(this)).m=e,i.j=r,i.h=null,i.i=!1,i.g=null,i}return ue(n,[{key:"l",value:function(e){this.h=arguments,this.g?this.i=!0:Gr(this)}},{key:"M",value:function(){cn(de(n.prototype),"M",this).call(this),this.g&&(pn.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}]),n}(En);function Kr(e){En.call(this),this.h=e,this.g={}}In(Kr,En);var Wr=[];function Jr(e,t,n,r){Array.isArray(n)||(n&&(Wr[0]=n.toString()),n=Wr);for(var i=0;i<n.length;i++){var a=yr(t,n[i],r||e.handleEvent,!1,e.h||e);if(!a)break;e.g[a.key]=a}}function Yr(e){jn(e.g,(function(e,t){this.g.hasOwnProperty(t)&&wr(e)}),e),e.g={}}function Xr(){this.g=!0}function Zr(e,t,n,r){e.info((function(){return"XMLHTTP TEXT ("+t+"): "+function(e,t){if(!e.g)return t;if(!t)return null;try{var n=JSON.parse(t);if(n)for(e=0;e<n.length;e++)if(Array.isArray(n[e])){var r=n[e];if(!(2>r.length)){var i=r[1];if(Array.isArray(i)&&!(1>i.length)){var a=i[0];if("noop"!=a&&"stop"!=a&&"close"!=a)for(var o=1;o<i.length;o++)i[o]=""}}}return Dr(n)}catch(s){return t}}(e,n)+(r?" "+r:"")}))}Kr.prototype.M=function(){Kr.Z.M.call(this),Yr(this)},Kr.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},Xr.prototype.Aa=function(){this.g=!1},Xr.prototype.info=function(){};var $r={},ei=null;function ti(){return ei=ei||new Cr}function ni(e){or.call(this,$r.Ma,e)}function ri(e){var t=ti();_r(t,new ni(t,e))}function ii(e,t){or.call(this,$r.STAT_EVENT,e),this.stat=t}function ai(e){var t=ti();_r(t,new ii(t,e))}function oi(e,t){or.call(this,$r.Na,e),this.size=t}function si(e,t){if("function"!==typeof e)throw Error("Fn must not be null and must be a function");return pn.setTimeout((function(){e()}),t)}$r.Ma="serverreachability",In(ni,or),$r.STAT_EVENT="statevent",In(ii,or),$r.Na="timingevent",In(oi,or);var ui={NO_ERROR:0,lb:1,yb:2,xb:3,sb:4,wb:5,zb:6,Ja:7,TIMEOUT:8,Cb:9},ci={qb:"complete",Mb:"success",Ka:"error",Ja:"abort",Eb:"ready",Fb:"readystatechange",TIMEOUT:"timeout",Ab:"incrementaldata",Db:"progress",tb:"downloadprogress",Ub:"uploadprogress"};function li(){}function fi(e){return e.h||(e.h=e.i())}function hi(){}li.prototype.h=null;var di,pi={OPEN:"a",pb:"b",Ka:"c",Bb:"d"};function vi(){or.call(this,"d")}function mi(){or.call(this,"c")}function gi(){}function yi(e,t,n,r){this.l=e,this.j=t,this.m=n,this.X=r||1,this.V=new Kr(this),this.P=ki,e=Kn?125:void 0,this.W=new Vr(e),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 Ai}function Ai(){this.i=null,this.g="",this.h=!1}In(vi,or),In(mi,or),In(gi,li),gi.prototype.g=function(){return new XMLHttpRequest},gi.prototype.i=function(){return{}},di=new gi;var ki=45e3,bi={},wi={};function xi(e,t,n){e.K=1,e.v=Hi(Fi(t)),e.s=n,e.U=!0,Ii(e,null)}function Ii(e,t){e.F=Date.now(),Ci(e),e.A=Fi(e.v);var n=e.A,r=e.X;Array.isArray(r)||(r=[String(r)]),aa(n.h,"t",r),e.C=0,n=e.l.H,e.h=new Ai,e.g=so(e.l,n?t:null,!e.s),0<e.O&&(e.L=new Hr(wn(e.Ia,e,e.g),e.O)),Jr(e.V,e.g,"readystatechange",e.gb),t=e.H?Un(e.H):{},e.s?(e.u||(e.u="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.g.ea(e.A,e.u,e.s,t)):(e.u="GET",e.g.ea(e.A,e.u,null,t)),ri(1),function(e,t,n,r,i,a){e.info((function(){if(e.g)if(a)for(var o="",s=a.split("&"),u=0;u<s.length;u++){var c=s[u].split("=");if(1<c.length){var l=c[0];c=c[1];var f=l.split("_");o=2<=f.length&&"type"==f[1]?o+(l+"=")+c+"&":o+(l+"=redacted&")}}else o=null;else o=a;return"XMLHTTP REQ ("+r+") [attempt "+i+"]: "+t+"\n"+n+"\n"+o}))}(e.j,e.u,e.A,e.m,e.X,e.s)}function Ei(e){return!!e.g&&("GET"==e.u&&2!=e.K&&e.l.Ba)}function Si(e,t,n){for(var r,i=!0;!e.I&&e.C<n.length;){if((r=Ti(e,n))==wi){4==t&&(e.o=4,ai(14),i=!1),Zr(e.j,e.m,null,"[Incomplete Response]");break}if(r==bi){e.o=4,ai(15),Zr(e.j,e.m,n,"[Invalid Chunk]"),i=!1;break}Zr(e.j,e.m,r,null),Ri(e,r)}Ei(e)&&r!=wi&&r!=bi&&(e.h.g="",e.C=0),4!=t||0!=n.length||e.h.h||(e.o=1,ai(16),i=!1),e.i=e.i&&i,i?0<n.length&&!e.aa&&(e.aa=!0,(t=e.l).g==e&&t.$&&!t.L&&(t.h.info("Great, no buffering proxy detected. Bytes received: "+n.length),$a(t),t.L=!0,ai(11))):(Zr(e.j,e.m,n,"[Invalid Chunked Response]"),Oi(e),Di(e))}function Ti(e,t){var n=e.C,r=t.indexOf("\n",n);return-1==r?wi:(n=Number(t.substring(n,r)),isNaN(n)?bi:(r+=1)+n>t.length?wi:(t=t.substr(r,n),e.C=r+n,t))}function Ci(e){e.Y=Date.now()+e.P,_i(e,e.P)}function _i(e,t){if(null!=e.B)throw Error("WatchDog timer not null");e.B=si(wn(e.eb,e),t)}function Ni(e){e.B&&(pn.clearTimeout(e.B),e.B=null)}function Di(e){0==e.l.G||e.I||no(e.l,e)}function Oi(e){Ni(e);var t=e.L;t&&"function"==typeof t.na&&t.na(),e.L=null,zr(e.W),Yr(e.V),e.g&&(t=e.g,e.g=null,t.abort(),t.na())}function Ri(e,t){try{var n=e.l;if(0!=n.G&&(n.g==e||da(n.i,e)))if(n.I=e.N,!e.J&&da(n.i,e)&&3==n.G){try{var r=n.Ca.g.parse(t)}catch(a){r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){e:if(!n.u){if(n.g){if(!(n.g.F+3e3<e.F))break e;to(n),qa(n)}Za(n),ai(18)}}else n.ta=i[1],0<n.ta-n.U&&37500>i[2]&&n.N&&0==n.A&&!n.v&&(n.v=si(wn(n.ab,n),6e3));if(1>=ha(n.i)&&n.ka){try{n.ka()}catch(a){}n.ka=void 0}}else io(n,11)}else if((e.J||n.g==e)&&to(n),!Dn(t))for(i=n.Ca.g.parse(t),t=0;t<i.length;t++){var a=i[t];if(n.U=a[0],a=a[1],2==n.G)if("c"==a[0]){n.J=a[1],n.la=a[2];var o=a[3];null!=o&&(n.ma=o,n.h.info("VER="+n.ma));var s=a[4];null!=s&&(n.za=s,n.h.info("SVER="+n.za));var u=a[5];null!=u&&"number"===typeof u&&0<u&&(r=1.5*u,n.K=r,n.h.info("backChannelRequestTimeoutMs_="+r)),r=n;var c=e.g;if(c){var l=c.g?c.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(l){var f=r.i;!f.g&&(Pn(l,"spdy")||Pn(l,"quic")||Pn(l,"h2"))&&(f.j=f.l,f.g=new Set,f.h&&(pa(f,f.h),f.h=null))}if(r.D){var h=c.g?c.g.getResponseHeader("X-HTTP-Session-Id"):null;h&&(r.sa=h,Gi(r.F,r.D,h))}}n.G=3,n.j&&n.j.xa(),n.$&&(n.O=Date.now()-e.F,n.h.info("Handshake RTT: "+n.O+"ms"));var d=e;if((r=n).oa=oo(r,r.H?r.la:null,r.W),d.J){va(r.i,d);var p=d,v=r.K;v&&p.setTimeout(v),p.B&&(Ni(p),Ci(p)),r.g=d}else Xa(r);0<n.l.length&&Ka(n)}else"stop"!=a[0]&&"close"!=a[0]||io(n,7);else 3==n.G&&("stop"==a[0]||"close"==a[0]?"stop"==a[0]?io(n,7):za(n):"noop"!=a[0]&&n.j&&n.j.wa(a),n.A=0)}ri(4)}catch(a){}}function Pi(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(mn(e)||"string"===typeof e)Cn(e,t,void 0);else{if(e.T&&"function"==typeof e.T)var n=e.T();else if(e.R&&"function"==typeof e.R)n=void 0;else if(mn(e)||"string"===typeof e){n=[];for(var r=e.length,i=0;i<r;i++)n.push(i)}else for(i in n=[],r=0,e)n[r++]=i;r=function(e){if(e.R&&"function"==typeof e.R)return e.R();if("string"===typeof e)return e.split("");if(mn(e)){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}for(r in t=[],n=0,e)t[n++]=e[r];return t}(e),i=r.length;for(var a=0;a<i;a++)t.call(void 0,r[a],n&&n[a],e)}}function Mi(e,t){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(e)if(e instanceof Mi)for(n=e.T(),r=0;r<n.length;r++)this.set(n[r],e.get(n[r]));else for(r in e)this.set(r,e[r])}function Bi(e){if(e.i!=e.g.length){for(var t=0,n=0;t<e.g.length;){var r=e.g[t];Li(e.h,r)&&(e.g[n++]=r),t++}e.g.length=n}if(e.i!=e.g.length){var i={};for(n=t=0;t<e.g.length;)Li(i,r=e.g[t])||(e.g[n++]=r,i[r]=1),t++;e.g.length=n}}function Li(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(ln=yi.prototype).setTimeout=function(e){this.P=e},ln.gb=function(e){e=e.target;var t=this.L;t&&3==ja(e)?t.l():this.Ia(e)},ln.Ia=function(e){try{if(e==this.g)e:{var t=ja(this.g),n=this.g.Da(),r=this.g.ba();if(!(3>t)&&(3!=t||Kn||this.g&&(this.h.h||this.g.ga()||Ua(this.g)))){this.I||4!=t||7==n||ri(8==n||0>=r?3:2),Ni(this);var i=this.g.ba();this.N=i;t:if(Ei(this)){var a=Ua(this.g);e="";var o=a.length,s=4==ja(this.g);if(!this.h.i){if("undefined"===typeof TextDecoder){Oi(this),Di(this);var u="";break t}this.h.i=new pn.TextDecoder}for(n=0;n<o;n++)this.h.h=!0,e+=this.h.i.decode(a[n],{stream:s&&n==o-1});a.splice(0,o),this.h.g+=e,this.C=0,u=this.h.g}else u=this.g.ga();if(this.i=200==i,function(e,t,n,r,i,a,o){e.info((function(){return"XMLHTTP RESP ("+r+") [ attempt "+i+"]: "+t+"\n"+n+"\n"+a+" "+o}))}(this.j,this.u,this.A,this.m,this.X,t,i),this.i){if(this.$&&!this.J){t:{if(this.g){var c,l=this.g;if((c=l.g?l.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!Dn(c)){var f=c;break t}}f=null}if(!(i=f)){this.i=!1,this.o=3,ai(12),Oi(this),Di(this);break e}Zr(this.j,this.m,i,"Initial handshake response via X-HTTP-Initial-Response"),this.J=!0,Ri(this,i)}this.U?(Si(this,t,u),Kn&&this.i&&3==t&&(Jr(this.V,this.W,"tick",this.fb),this.W.start())):(Zr(this.j,this.m,u,null),Ri(this,u)),4==t&&Oi(this),this.i&&!this.I&&(4==t?no(this.l,this):(this.i=!1,Ci(this)))}else 400==i&&0<u.indexOf("Unknown SID")?(this.o=3,ai(12)):(this.o=0,ai(13)),Oi(this),Di(this)}}}catch(t){}},ln.fb=function(){if(this.g){var e=ja(this.g),t=this.g.ga();this.C<t.length&&(Ni(this),Si(this,e,t),this.i&&4!=e&&Ci(this))}},ln.cancel=function(){this.I=!0,Oi(this)},ln.eb=function(){this.B=null;var e=Date.now();0<=e-this.Y?(function(e,t){e.info((function(){return"TIMEOUT: "+t}))}(this.j,this.A),2!=this.K&&(ri(3),ai(17)),Oi(this),this.o=2,Di(this)):_i(this,this.Y-e)},(ln=Mi.prototype).R=function(){Bi(this);for(var e=[],t=0;t<this.g.length;t++)e.push(this.h[this.g[t]]);return e},ln.T=function(){return Bi(this),this.g.concat()},ln.get=function(e,t){return Li(this.h,e)?this.h[e]:t},ln.set=function(e,t){Li(this.h,e)||(this.i++,this.g.push(e)),this.h[e]=t},ln.forEach=function(e,t){for(var n=this.T(),r=0;r<n.length;r++){var i=n[r],a=this.get(i);e.call(t,a,i,this)}};var ji=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Ui(e,t){if(this.i=this.s=this.j="",this.m=null,this.o=this.l="",this.g=!1,e instanceof Ui){this.g=void 0!==t?t:e.g,Qi(this,e.j),this.s=e.s,Vi(this,e.i),zi(this,e.m),this.l=e.l,t=e.h;var n=new ta;n.i=t.i,t.g&&(n.g=new Mi(t.g),n.h=t.h),qi(this,n),this.o=e.o}else e&&(n=String(e).match(ji))?(this.g=!!t,Qi(this,n[1]||"",!0),this.s=Ki(n[2]||""),Vi(this,n[3]||"",!0),zi(this,n[4]),this.l=Ki(n[5]||"",!0),qi(this,n[6]||"",!0),this.o=Ki(n[7]||"")):(this.g=!!t,this.h=new ta(null,this.g))}function Fi(e){return new Ui(e)}function Qi(e,t,n){e.j=n?Ki(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function Vi(e,t,n){e.i=n?Ki(t,!0):t}function zi(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.m=t}else e.m=null}function qi(e,t,n){t instanceof ta?(e.h=t,function(e,t){t&&!e.j&&(na(e),e.i=null,e.g.forEach((function(e,t){var n=t.toLowerCase();t!=n&&(ra(this,t),aa(this,n,e))}),e)),e.j=t}(e.h,e.g)):(n||(t=Wi(t,$i)),e.h=new ta(t,e.g))}function Gi(e,t,n){e.h.set(t,n)}function Hi(e){return Gi(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),e}function Ki(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function Wi(e,t,n){return"string"===typeof e?(e=encodeURI(e).replace(t,Ji),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Ji(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}Ui.prototype.toString=function(){var e=[],t=this.j;t&&e.push(Wi(t,Yi,!0),":");var n=this.i;return(n||"file"==t)&&(e.push("//"),(t=this.s)&&e.push(Wi(t,Yi,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.m)&&e.push(":",String(n))),(n=this.l)&&(this.i&&"/"!=n.charAt(0)&&e.push("/"),e.push(Wi(n,"/"==n.charAt(0)?Zi:Xi,!0))),(n=this.h.toString())&&e.push("?",n),(n=this.o)&&e.push("#",Wi(n,ea)),e.join("")};var Yi=/[#\/\?@]/g,Xi=/[#\?:]/g,Zi=/[#\?]/g,$i=/[#\?@]/g,ea=/#/g;function ta(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function na(e){e.g||(e.g=new Mi,e.h=0,e.i&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),i=null;if(0<=r){var a=e[n].substring(0,r);i=e[n].substring(r+1)}else a=e[n];t(a,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(e.i,(function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)})))}function ra(e,t){na(e),t=oa(e,t),Li(e.g.h,t)&&(e.i=null,e.h-=e.g.get(t).length,Li((e=e.g).h,t)&&(delete e.h[t],e.i--,e.g.length>2*e.i&&Bi(e)))}function ia(e,t){return na(e),t=oa(e,t),Li(e.g.h,t)}function aa(e,t,n){ra(e,t),0<n.length&&(e.i=null,e.g.set(oa(e,t),Nn(n)),e.h+=n.length)}function oa(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}(ln=ta.prototype).add=function(e,t){na(this),this.i=null,e=oa(this,e);var n=this.g.get(e);return n||this.g.set(e,n=[]),n.push(t),this.h+=1,this},ln.forEach=function(e,t){na(this),this.g.forEach((function(n,r){Cn(n,(function(n){e.call(t,n,r,this)}),this)}),this)},ln.T=function(){na(this);for(var e=this.g.R(),t=this.g.T(),n=[],r=0;r<t.length;r++)for(var i=e[r],a=0;a<i.length;a++)n.push(t[r]);return n},ln.R=function(e){na(this);var t=[];if("string"===typeof e)ia(this,e)&&(t=_n(t,this.g.get(oa(this,e))));else{e=this.g.R();for(var n=0;n<e.length;n++)t=_n(t,e[n])}return t},ln.set=function(e,t){return na(this),this.i=null,ia(this,e=oa(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},ln.get=function(e,t){return e&&0<(e=this.R(e)).length?String(e[0]):t},ln.toString=function(){if(this.i)return this.i;if(!this.g)return"";for(var e=[],t=this.g.T(),n=0;n<t.length;n++){var r=t[n],i=encodeURIComponent(String(r));r=this.R(r);for(var a=0;a<r.length;a++){var o=i;""!==r[a]&&(o+="="+encodeURIComponent(String(r[a]))),e.push(o)}}return this.i=e.join("&")};var sa=ue((function e(t,n){oe(this,e),this.h=t,this.g=n}));function ua(e){this.l=e||la,pn.PerformanceNavigationTiming?e=0<(e=pn.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):e=!!(pn.g&&pn.g.Ea&&pn.g.Ea()&&pn.g.Ea().Zb),this.j=e?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}var ca,la=10;function fa(e){return!!e.h||!!e.g&&e.g.size>=e.j}function ha(e){return e.h?1:e.g?e.g.size:0}function da(e,t){return e.h?e.h==t:!!e.g&&e.g.has(t)}function pa(e,t){e.g?e.g.add(t):e.h=t}function va(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}function ma(e){if(null!=e.h)return e.i.concat(e.h.D);if(null!=e.g&&0!==e.g.size){var t,n=e.i,r=ce(e.g.values());try{for(r.s();!(t=r.n()).done;){var i=t.value;n=n.concat(i.D)}}catch(a){r.e(a)}finally{r.f()}return n}return Nn(e.i)}function ga(){}function ya(){this.g=new ga}function Aa(e,t,n){var r=n||"";try{Pi(e,(function(e,n){var i=e;gn(e)&&(i=Dr(e)),t.push(r+n+"="+encodeURIComponent(i))}))}catch(i){throw t.push(r+"type="+encodeURIComponent("_badmap")),i}}function ka(e,t,n,r,i){try{t.onload=null,t.onerror=null,t.onabort=null,t.ontimeout=null,i(r)}catch(a){}}function ba(e){this.l=e.$b||null,this.j=e.ib||!1}function wa(e,t){Cr.call(this),this.D=e,this.u=t,this.m=void 0,this.readyState=xa,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}ua.prototype.cancel=function(){if(this.i=ma(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){var e,t=ce(this.g.values());try{for(t.s();!(e=t.n()).done;){e.value.cancel()}}catch(n){t.e(n)}finally{t.f()}this.g.clear()}},ga.prototype.stringify=function(e){return pn.JSON.stringify(e,void 0)},ga.prototype.parse=function(e){return pn.JSON.parse(e,void 0)},In(ba,li),ba.prototype.g=function(){return new wa(this.l,this.j)},ba.prototype.i=(ca={},function(){return ca}),In(wa,Cr);var xa=0;function Ia(e){e.j.read().then(e.Sa.bind(e)).catch(e.ha.bind(e))}function Ea(e){e.readyState=4,e.l=null,e.j=null,e.A=null,Sa(e)}function Sa(e){e.onreadystatechange&&e.onreadystatechange.call(e)}(ln=wa.prototype).open=function(e,t){if(this.readyState!=xa)throw this.abort(),Error("Error reopening a connection");this.C=e,this.B=t,this.readyState=1,Sa(this)},ln.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;var t={headers:this.v,method:this.C,credentials:this.m,cache:void 0};e&&(t.body=e),(this.D||pn).fetch(new Request(this.B,t)).then(this.Va.bind(this),this.ha.bind(this))},ln.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,Ea(this)),this.readyState=xa},ln.Va=function(e){if(this.g&&(this.l=e,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=e.headers,this.readyState=2,Sa(this)),this.g&&(this.readyState=3,Sa(this),this.g)))if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Ta.bind(this),this.ha.bind(this));else if("undefined"!==typeof pn.ReadableStream&&"body"in e){if(this.j=e.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;Ia(this)}else e.text().then(this.Ua.bind(this),this.ha.bind(this))},ln.Sa=function(e){if(this.g){if(this.u&&e.value)this.response.push(e.value);else if(!this.u){var t=e.value?e.value:new Uint8Array(0);(t=this.A.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t)}e.done?Ea(this):Sa(this),3==this.readyState&&Ia(this)}},ln.Ua=function(e){this.g&&(this.response=this.responseText=e,Ea(this))},ln.Ta=function(e){this.g&&(this.response=e,Ea(this))},ln.ha=function(){this.g&&Ea(this)},ln.setRequestHeader=function(e,t){this.v.append(e,t)},ln.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},ln.getAllResponseHeaders=function(){if(!this.h)return"";for(var e=[],t=this.h.entries(),n=t.next();!n.done;)n=n.value,e.push(n[0]+": "+n[1]),n=t.next();return e.join("\r\n")},Object.defineProperty(wa.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}});var Ta=pn.JSON.parse;function Ca(e){Cr.call(this),this.headers=new Mi,this.u=e||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=_a,this.K=this.L=!1}In(Ca,Cr);var _a="",Na=/^https?$/i,Da=["POST","PUT"];function Oa(e){return"content-type"==e.toLowerCase()}function Ra(e,t){e.h=!1,e.g&&(e.l=!0,e.g.abort(),e.l=!1),e.j=t,e.m=5,Pa(e),Ba(e)}function Pa(e){e.D||(e.D=!0,_r(e,"complete"),_r(e,"error"))}function Ma(e){if(e.h&&"undefined"!=typeof dn&&(!e.C[1]||4!=ja(e)||2!=e.ba()))if(e.v&&4==ja(e))qr(e.Fa,0,e);else if(_r(e,"readystatechange"),4==ja(e)){e.h=!1;try{var t,n=e.ba();e:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break e;default:r=!1}if(!(t=r)){var i;if(i=0===n){var a=String(e.H).match(ji)[1]||null;if(!a&&pn.self&&pn.self.location){var o=pn.self.location.protocol;a=o.substr(0,o.length-1)}i=!Na.test(a?a.toLowerCase():"")}t=i}if(t)_r(e,"complete"),_r(e,"success");else{e.m=6;try{var s=2<ja(e)?e.g.statusText:""}catch(u){s=""}e.j=s+" ["+e.ba()+"]",Pa(e)}}finally{Ba(e)}}}function Ba(e,t){if(e.g){La(e);var n=e.g,r=e.C[0]?vn:null;e.g=null,e.C=null,t||_r(e,"ready");try{n.onreadystatechange=r}catch(i){}}}function La(e){e.g&&e.K&&(e.g.ontimeout=null),e.A&&(pn.clearTimeout(e.A),e.A=null)}function ja(e){return e.g?e.g.readyState:0}function Ua(e){try{if(!e.g)return null;if("response"in e.g)return e.g.response;switch(e.J){case _a:case"text":return e.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.g)return e.g.mozResponseArrayBuffer}return null}catch(t){return null}}function Fa(e,t,n){e:{for(r in n){var r=!1;break e}r=!0}r||(n=function(e){var t="";return jn(e,(function(e,n){t+=n,t+=":",t+=e,t+="\r\n"})),t}(n),"string"===typeof e?null!=n&&encodeURIComponent(String(n)):Gi(e,t,n))}function Qa(e,t,n){return n&&n.internalChannelParams&&n.internalChannelParams[e]||t}function Va(e){this.za=0,this.l=[],this.h=new Xr,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=Qa("failFast",!1,e),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=Qa("baseRetryDelayMs",5e3,e),this.$a=Qa("retryDelaySeedMs",1e4,e),this.Ya=Qa("forwardChannelMaxRetries",2,e),this.ra=Qa("forwardChannelRequestTimeoutMs",2e4,e),this.qa=e&&e.xmlHttpFactory||void 0,this.Ba=e&&e.Yb||!1,this.K=void 0,this.H=e&&e.supportsCrossDomainXhr||!1,this.J="",this.i=new ua(e&&e.concurrentRequestLimit),this.Ca=new ya,this.ja=e&&e.fastHandshake||!1,this.Ra=e&&e.Wb||!1,e&&e.Aa&&this.h.Aa(),e&&e.forceLongPolling&&(this.X=!1),this.$=!this.ja&&this.X&&e&&e.detectBufferingProxy||!1,this.ka=void 0,this.O=0,this.L=!1,this.B=null,this.Wa=!e||!1!==e.Xb}function za(e){if(Ga(e),3==e.G){var t=e.V++,n=Fi(e.F);Gi(n,"SID",e.J),Gi(n,"RID",t),Gi(n,"TYPE","terminate"),Ja(e,n),(t=new yi(e,e.h,t,void 0)).K=2,t.v=Hi(Fi(n)),n=!1,pn.navigator&&pn.navigator.sendBeacon&&(n=pn.navigator.sendBeacon(t.v.toString(),"")),!n&&pn.Image&&((new Image).src=t.v,n=!0),n||(t.g=so(t.l,null),t.g.ea(t.v)),t.F=Date.now(),Ci(t)}ao(e)}function qa(e){e.g&&($a(e),e.g.cancel(),e.g=null)}function Ga(e){qa(e),e.u&&(pn.clearTimeout(e.u),e.u=null),to(e),e.i.cancel(),e.m&&("number"===typeof e.m&&pn.clearTimeout(e.m),e.m=null)}function Ha(e,t){e.l.push(new sa(e.Za++,t)),3==e.G&&Ka(e)}function Ka(e){fa(e.i)||e.m||(e.m=!0,jr(e.Ha,e),e.C=0)}function Wa(e,t){var n;n=t?t.m:e.V++;var r=Fi(e.F);Gi(r,"SID",e.J),Gi(r,"RID",n),Gi(r,"AID",e.U),Ja(e,r),e.o&&e.s&&Fa(r,e.o,e.s),n=new yi(e,e.h,n,e.C+1),null===e.o&&(n.H=e.s),t&&(e.l=t.D.concat(e.l)),t=Ya(e,n,1e3),n.setTimeout(Math.round(.5*e.ra)+Math.round(.5*e.ra*Math.random())),pa(e.i,n),xi(n,r,t)}function Ja(e,t){e.j&&Pi({},(function(e,n){Gi(t,n,e)}))}function Ya(e,t,n){n=Math.min(e.l.length,n);var r=e.j?wn(e.j.Oa,e.j,e):null;e:for(var i=e.l,a=-1;;){var o=["count="+n];-1==a?0<n?(a=i[0].h,o.push("ofs="+a)):a=0:o.push("ofs="+a);for(var s=!0,u=0;u<n;u++){var c=i[u].h,l=i[u].g;if(0>(c-=a))a=Math.max(0,i[u].h-100),s=!1;else try{Aa(l,o,"req"+c+"_")}catch(Mo){r&&r(l)}}if(s){r=o.join("&");break e}}return e=e.l.splice(0,n),t.D=e,r}function Xa(e){e.g||e.u||(e.Y=1,jr(e.Ga,e),e.A=0)}function Za(e){return!(e.g||e.u||3<=e.A)&&(e.Y++,e.u=si(wn(e.Ga,e),ro(e,e.A)),e.A++,!0)}function $a(e){null!=e.B&&(pn.clearTimeout(e.B),e.B=null)}function eo(e){e.g=new yi(e,e.h,"rpc",e.Y),null===e.o&&(e.g.H=e.s),e.g.O=0;var t=Fi(e.oa);Gi(t,"RID","rpc"),Gi(t,"SID",e.J),Gi(t,"CI",e.N?"0":"1"),Gi(t,"AID",e.U),Ja(e,t),Gi(t,"TYPE","xmlhttp"),e.o&&e.s&&Fa(t,e.o,e.s),e.K&&e.g.setTimeout(e.K);var n=e.g;e=e.la,n.K=1,n.v=Hi(Fi(t)),n.s=null,n.U=!0,Ii(n,e)}function to(e){null!=e.v&&(pn.clearTimeout(e.v),e.v=null)}function no(e,t){var n=null;if(e.g==t){to(e),$a(e),e.g=null;var r=2}else{if(!da(e.i,t))return;n=t.D,va(e.i,t),r=1}if(e.I=t.N,0!=e.G)if(t.i)if(1==r){n=t.s?t.s.length:0,t=Date.now()-t.F;var i=e.C;_r(r=ti(),new oi(r,n,t,i)),Ka(e)}else Xa(e);else if(3==(i=t.o)||0==i&&0<e.I||!(1==r&&function(e,t){return!(ha(e.i)>=e.i.j-(e.m?1:0))&&(e.m?(e.l=t.D.concat(e.l),!0):!(1==e.G||2==e.G||e.C>=(e.Xa?0:e.Ya))&&(e.m=si(wn(e.Ha,e,t),ro(e,e.C)),e.C++,!0))}(e,t)||2==r&&Za(e)))switch(n&&0<n.length&&(t=e.i,t.i=t.i.concat(n)),i){case 1:io(e,5);break;case 4:io(e,10);break;case 3:io(e,6);break;default:io(e,2)}}function ro(e,t){var n=e.Pa+Math.floor(Math.random()*e.$a);return e.j||(n*=2),n*t}function io(e,t){if(e.h.info("Error code "+t),2==t){var n=null;e.j&&(n=null);var r=wn(e.jb,e);n||(n=new Ui("//www.google.com/images/cleardot.gif"),pn.location&&"http"==pn.location.protocol||Qi(n,"https"),Hi(n)),function(e,t){var n=new Xr;if(pn.Image){var r=new Image;r.onload=xn(ka,n,r,"TestLoadImage: loaded",!0,t),r.onerror=xn(ka,n,r,"TestLoadImage: error",!1,t),r.onabort=xn(ka,n,r,"TestLoadImage: abort",!1,t),r.ontimeout=xn(ka,n,r,"TestLoadImage: timeout",!1,t),pn.setTimeout((function(){r.ontimeout&&r.ontimeout()}),1e4),r.src=e}else t(!1)}(n.toString(),r)}else ai(2);e.G=0,e.j&&e.j.va(t),ao(e),Ga(e)}function ao(e){e.G=0,e.I=-1,e.j&&(0==ma(e.i).length&&0==e.l.length||(e.i.i.length=0,Nn(e.l),e.l.length=0),e.j.ua())}function oo(e,t,n){var r=function(e){return e instanceof Ui?Fi(e):new Ui(e,void 0)}(n);if(""!=r.i)t&&Vi(r,t+"."+r.i),zi(r,r.m);else{var i=pn.location;r=function(e,t,n,r){var i=new Ui(null,void 0);return e&&Qi(i,e),t&&Vi(i,t),n&&zi(i,n),r&&(i.l=r),i}(i.protocol,t?t+"."+i.hostname:i.hostname,+i.port,n)}return e.aa&&jn(e.aa,(function(e,t){Gi(r,t,e)})),t=e.D,n=e.sa,t&&n&&Gi(r,t,n),Gi(r,"VER",e.ma),Ja(e,r),r}function so(e,t,n){if(t&&!e.H)throw Error("Can't create secondary domain capable XhrIo object.");return(t=n&&e.Ba&&!e.qa?new Ca(new ba({ib:!0})):new Ca(e.qa)).L=e.H,t}function uo(){}function co(){if(Gn&&!(10<=Number(ir)))throw Error("Environmental error: no available transport.")}function lo(e,t){Cr.call(this),this.g=new Va(t),this.l=e,this.h=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.g.s=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.ya&&(e?e["X-WebChannel-Client-Profile"]=t.ya:e={"X-WebChannel-Client-Profile":t.ya}),this.g.P=e,(e=t&&t.httpHeadersOverwriteParam)&&!Dn(e)&&(this.g.o=e),this.A=t&&t.supportsCrossDomainXhr||!1,this.v=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!Dn(t)&&(this.g.D=t,null!==(e=this.h)&&t in e&&(t in(e=this.h)&&delete e[t])),this.j=new po(this)}function fo(e){vi.call(this);var t=e.__sm__;if(t){e:{for(var n in t){e=n;break e}e=void 0}(this.i=e)&&(e=this.i,t=null!==t&&e in t?t[e]:void 0),this.data=t}else this.data=e}function ho(){mi.call(this),this.status=1}function po(e){this.g=e}(ln=Ca.prototype).ea=function(e,t,n,r){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.H+"; newUri="+e);t=t?t.toUpperCase():"GET",this.H=e,this.j="",this.m=0,this.D=!1,this.h=!0,this.g=this.u?this.u.g():di.g(),this.C=this.u?fi(this.u):fi(di),this.g.onreadystatechange=wn(this.Fa,this);try{this.F=!0,this.g.open(t,String(e),!0),this.F=!1}catch(a){return void Ra(this,a)}e=n||"";var i=new Mi(this.headers);r&&Pi(r,(function(e,t){i.set(t,e)})),r=function(e){e:{for(var t=Oa,n=e.length,r="string"===typeof e?e.split(""):e,i=0;i<n;i++)if(i in r&&t.call(void 0,r[i],i,e)){t=i;break e}t=-1}return 0>t?null:"string"===typeof e?e.charAt(t):e[t]}(i.T()),n=pn.FormData&&e instanceof pn.FormData,!(0<=Tn(Da,t))||r||n||i.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),i.forEach((function(e,t){this.g.setRequestHeader(t,e)}),this),this.J&&(this.g.responseType=this.J),"withCredentials"in this.g&&this.g.withCredentials!==this.L&&(this.g.withCredentials=this.L);try{La(this),0<this.B&&((this.K=function(e){return Gn&&nr()&&"number"===typeof e.timeout&&void 0!==e.ontimeout}(this.g))?(this.g.timeout=this.B,this.g.ontimeout=wn(this.pa,this)):this.A=qr(this.pa,this.B,this)),this.v=!0,this.g.send(e),this.v=!1}catch(a){Ra(this,a)}},ln.pa=function(){"undefined"!=typeof dn&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,_r(this,"timeout"),this.abort(8))},ln.abort=function(e){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=e||7,_r(this,"complete"),_r(this,"abort"),Ba(this))},ln.M=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),Ba(this,!0)),Ca.Z.M.call(this)},ln.Fa=function(){this.s||(this.F||this.v||this.l?Ma(this):this.cb())},ln.cb=function(){Ma(this)},ln.ba=function(){try{return 2<ja(this)?this.g.status:-1}catch(ca){return-1}},ln.ga=function(){try{return this.g?this.g.responseText:""}catch(ca){return""}},ln.Qa=function(e){if(this.g){var t=this.g.responseText;return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),Ta(t)}},ln.Da=function(){return this.m},ln.La=function(){return"string"===typeof this.j?this.j:String(this.j)},(ln=Va.prototype).ma=8,ln.G=1,ln.hb=function(e){try{this.h.info("Origin Trials invoked: "+e)}catch(t){}},ln.Ha=function(e){if(this.m)if(this.m=null,1==this.G){if(!e){this.V=Math.floor(1e5*Math.random()),e=this.V++;var t=new yi(this,this.h,e,void 0),n=this.s;if(this.P&&(n?Qn(n=Un(n),this.P):n=this.P),null===this.o&&(t.H=n),this.ja)e:{for(var r=0,i=0;i<this.l.length;i++){var a=this.l[i];if(void 0===(a="__data__"in a.g&&"string"===typeof(a=a.g.__data__)?a.length:void 0))break;if(4096<(r+=a)){r=i;break e}if(4096===r||i===this.l.length-1){r=i+1;break e}}r=1e3}else r=1e3;r=Ya(this,t,r),Gi(i=Fi(this.F),"RID",e),Gi(i,"CVER",22),this.D&&Gi(i,"X-HTTP-Session-Id",this.D),Ja(this,i),this.o&&n&&Fa(i,this.o,n),pa(this.i,t),this.Ra&&Gi(i,"TYPE","init"),this.ja?(Gi(i,"$req",r),Gi(i,"SID","null"),t.$=!0,xi(t,i,null)):xi(t,i,r),this.G=2}}else 3==this.G&&(e?Wa(this,e):0==this.l.length||fa(this.i)||Wa(this))},ln.Ga=function(){if(this.u=null,eo(this),this.$&&!(this.L||null==this.g||0>=this.O)){var e=2*this.O;this.h.info("BP detection timer enabled: "+e),this.B=si(wn(this.bb,this),e)}},ln.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,ai(10),qa(this),eo(this))},ln.ab=function(){null!=this.v&&(this.v=null,qa(this),Za(this),ai(19))},ln.jb=function(e){e?(this.h.info("Successfully pinged google.com"),ai(2)):(this.h.info("Failed to ping google.com"),ai(1))},(ln=uo.prototype).xa=function(){},ln.wa=function(){},ln.va=function(){},ln.ua=function(){},ln.Oa=function(){},co.prototype.g=function(e,t){return new lo(e,t)},In(lo,Cr),lo.prototype.m=function(){this.g.j=this.j,this.A&&(this.g.H=!0);var e=this.g,t=this.l,n=this.h||void 0;e.Wa&&(e.h.info("Origin Trials enabled."),jr(wn(e.hb,e,t))),ai(0),e.W=t,e.aa=n||{},e.N=e.X,e.F=oo(e,null,e.W),Ka(e)},lo.prototype.close=function(){za(this.g)},lo.prototype.u=function(e){if("string"===typeof e){var t={};t.__data__=e,Ha(this.g,t)}else this.v?((t={}).__data__=Dr(e),Ha(this.g,t)):Ha(this.g,e)},lo.prototype.M=function(){this.g.j=null,delete this.j,za(this.g),delete this.g,lo.Z.M.call(this)},In(fo,vi),In(ho,mi),In(po,uo),po.prototype.xa=function(){_r(this.g,"a")},po.prototype.wa=function(e){_r(this.g,new fo(e))},po.prototype.va=function(e){_r(this.g,new ho(e))},po.prototype.ua=function(){_r(this.g,"b")},co.prototype.createWebChannel=co.prototype.g,lo.prototype.send=lo.prototype.u,lo.prototype.open=lo.prototype.m,lo.prototype.close=lo.prototype.close,ui.NO_ERROR=0,ui.TIMEOUT=8,ui.HTTP_ERROR=6,ci.COMPLETE="complete",hi.EventType=pi,pi.OPEN="a",pi.CLOSE="b",pi.ERROR="c",pi.MESSAGE="d",Cr.prototype.listen=Cr.prototype.N,Ca.prototype.listenOnce=Ca.prototype.O,Ca.prototype.getLastError=Ca.prototype.La,Ca.prototype.getLastErrorCode=Ca.prototype.Da,Ca.prototype.getStatus=Ca.prototype.ba,Ca.prototype.getResponseJson=Ca.prototype.Qa,Ca.prototype.getResponseText=Ca.prototype.ga,Ca.prototype.send=Ca.prototype.ea;var vo=hn.createWebChannelTransport=function(){return new co},mo=hn.getStatEventTarget=function(){return ti()},go=hn.ErrorCode=ui,yo=hn.EventType=ci,Ao=hn.Event=$r,ko=hn.Stat={rb:0,ub:1,vb:2,Ob:3,Tb:4,Qb:5,Rb:6,Pb:7,Nb:8,Sb:9,PROXY:10,NOPROXY:11,Lb:12,Hb:13,Ib:14,Gb:15,Jb:16,Kb:17,nb:18,mb:19,ob:20},bo=hn.FetchXmlHttpFactory=ba,wo=hn.WebChannel=hi,xo=hn.XhrIo=Ca,Io="@firebase/firestore",Eo=function(){function e(t){oe(this,e),this.uid=t}return ue(e,[{key:"isAuthenticated",value:function(){return null!=this.uid}},{key:"toKey",value:function(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}},{key:"isEqual",value:function(e){return e.uid===this.uid}}]),e}();Eo.UNAUTHENTICATED=new Eo(null),Eo.GOOGLE_CREDENTIALS=new Eo("google-credentials-uid"),Eo.FIRST_PARTY=new Eo("first-party-uid"),Eo.MOCK_USER=new Eo("mock-user");var So="9.6.10",To=new ht("@firebase/firestore");function Co(){return To.logLevel}function _o(e){if(To.logLevel<=rt.DEBUG){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=n.map(Oo);To.debug.apply(To,["Firestore (".concat(So,"): ").concat(e)].concat(ne(i)))}}function No(e){if(To.logLevel<=rt.ERROR){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=n.map(Oo);To.error.apply(To,["Firestore (".concat(So,"): ").concat(e)].concat(ne(i)))}}function Do(e){if(To.logLevel<=rt.WARN){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=n.map(Oo);To.warn.apply(To,["Firestore (".concat(So,"): ").concat(e)].concat(ne(i)))}}function Oo(e){if("string"==typeof e)return e;try{return t=e,JSON.stringify(t)}catch(t){return e}var t}function Ro(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Unexpected state",t="FIRESTORE (".concat(So,") INTERNAL ASSERTION FAILED: ")+e;throw No(t),new Error(t)}function Po(e,t){e||Ro()}function Mo(e,t){return e}var Bo={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},Lo=function(e){he(n,e);var t=ge(n);function n(e,r){var i;return oe(this,n),(i=t.call(this,e,r)).code=e,i.message=r,i.toString=function(){return"".concat(i.name,": [code=").concat(i.code,"]: ").concat(i.message)},i}return ue(n)}(Pe),jo=ue((function e(){var t=this;oe(this,e),this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))})),Uo=ue((function e(t,n){oe(this,e),this.user=n,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization","Bearer ".concat(t))})),Fo=function(){function e(){oe(this,e)}return ue(e,[{key:"getToken",value:function(){return Promise.resolve(null)}},{key:"invalidateToken",value:function(){}},{key:"start",value:function(e,t){e.enqueueRetryable((function(){return t(Eo.UNAUTHENTICATED)}))}},{key:"shutdown",value:function(){}}]),e}(),Qo=function(){function e(t){oe(this,e),this.token=t,this.changeListener=null}return ue(e,[{key:"getToken",value:function(){return Promise.resolve(this.token)}},{key:"invalidateToken",value:function(){}},{key:"start",value:function(e,t){var n=this;this.changeListener=t,e.enqueueRetryable((function(){return t(n.token.user)}))}},{key:"shutdown",value:function(){this.changeListener=null}}]),e}(),Vo=function(){function e(t){oe(this,e),this.t=t,this.currentUser=Eo.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}return ue(e,[{key:"start",value:function(e,t){var n=this,r=this.i,i=function(e){return n.i!==r?(r=n.i,t(e)):Promise.resolve()},a=new jo;this.o=function(){n.i++,n.currentUser=n.u(),a.resolve(),a=new jo,e.enqueueRetryable((function(){return i(n.currentUser)}))};var o=function(){var t=a;e.enqueueRetryable(ee(ie().mark((function e(){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.promise;case 2:return e.next=4,i(n.currentUser);case 4:case"end":return e.stop()}}),e)}))))},s=function(e){_o("FirebaseAuthCredentialsProvider","Auth detected"),n.auth=e,n.auth.addAuthTokenListener(n.o),o()};this.t.onInit((function(e){return s(e)})),setTimeout((function(){if(!n.auth){var e=n.t.getImmediate({optional:!0});e?s(e):(_o("FirebaseAuthCredentialsProvider","Auth not yet detected"),a.resolve(),a=new jo)}}),0),o()}},{key:"getToken",value:function(){var e=this,t=this.i,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((function(n){return e.i!==t?(_o("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),e.getToken()):n?(Po("string"==typeof n.accessToken),new Uo(n.accessToken,e.currentUser)):null})):Promise.resolve(null)}},{key:"invalidateToken",value:function(){this.forceRefresh=!0}},{key:"shutdown",value:function(){this.auth&&this.auth.removeAuthTokenListener(this.o)}},{key:"u",value:function(){var e=this.auth&&this.auth.getUid();return Po(null===e||"string"==typeof e),new Eo(e)}}]),e}(),zo=ue((function e(t,n,r){oe(this,e),this.type="FirstParty",this.user=Eo.FIRST_PARTY,this.headers=new Map,this.headers.set("X-Goog-AuthUser",n);var i=t.auth.getAuthHeaderValueForFirstParty([]);i&&this.headers.set("Authorization",i),r&&this.headers.set("X-Goog-Iam-Authorization-Token",r)})),qo=function(){function e(t,n,r){oe(this,e),this.h=t,this.l=n,this.m=r}return ue(e,[{key:"getToken",value:function(){return Promise.resolve(new zo(this.h,this.l,this.m))}},{key:"start",value:function(e,t){e.enqueueRetryable((function(){return t(Eo.FIRST_PARTY)}))}},{key:"shutdown",value:function(){}},{key:"invalidateToken",value:function(){}}]),e}(),Go=ue((function e(t){oe(this,e),this.value=t,this.type="AppCheck",this.headers=new Map,t&&t.length>0&&this.headers.set("x-firebase-appcheck",this.value)})),Ho=function(){function e(t){oe(this,e),this.g=t,this.forceRefresh=!1,this.appCheck=null,this.p=null}return ue(e,[{key:"start",value:function(e,t){var n=this,r=function(e){null!=e.error&&_o("FirebaseAppCheckTokenProvider","Error getting App Check token; using placeholder token instead. Error: ".concat(e.error.message));var r=e.token!==n.p;return n.p=e.token,_o("FirebaseAppCheckTokenProvider","Received ".concat(r?"new":"existing"," token.")),r?t(e.token):Promise.resolve()};this.o=function(t){e.enqueueRetryable((function(){return r(t)}))};var i=function(e){_o("FirebaseAppCheckTokenProvider","AppCheck detected"),n.appCheck=e,n.appCheck.addTokenListener(n.o)};this.g.onInit((function(e){return i(e)})),setTimeout((function(){if(!n.appCheck){var e=n.g.getImmediate({optional:!0});e?i(e):_o("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}}),0)}},{key:"getToken",value:function(){var e=this,t=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(t).then((function(t){return t?(Po("string"==typeof t.token),e.p=t.token,new Go(t.token)):null})):Promise.resolve(null)}},{key:"invalidateToken",value:function(){this.forceRefresh=!0}},{key:"shutdown",value:function(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}]),e}(),Ko=function(){function e(t,n){var r=this;oe(this,e),this.previousValue=t,n&&(n.sequenceNumberHandler=function(e){return r.I(e)},this.T=function(e){return n.writeSequenceNumber(e)})}return ue(e,[{key:"I",value:function(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}},{key:"next",value:function(){var e=++this.previousValue;return this.T&&this.T(e),e}}]),e}();function Wo(e){var t="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(e);if(t&&"function"==typeof t.getRandomValues)t.getRandomValues(n);else for(var r=0;r<e;r++)n[r]=Math.floor(256*Math.random());return n}Ko.A=-1;var Jo=function(){function e(){oe(this,e)}return ue(e,null,[{key:"R",value:function(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=Math.floor(256/e.length)*e.length,n="";n.length<20;)for(var r=Wo(40),i=0;i<r.length;++i)n.length<20&&r[i]<t&&(n+=e.charAt(r[i]%e.length));return n}}]),e}();function Yo(e,t){return e<t?-1:e>t?1:0}function Xo(e,t,n){return e.length===t.length&&e.every((function(e,r){return n(e,t[r])}))}function Zo(e){return e+"\0"}var $o=function(){function e(t,n){if(oe(this,e),this.seconds=t,this.nanoseconds=n,n<0)throw new Lo(Bo.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(n>=1e9)throw new Lo(Bo.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(t<-62135596800)throw new Lo(Bo.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t);if(t>=253402300800)throw new Lo(Bo.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t)}return ue(e,[{key:"toDate",value:function(){return new Date(this.toMillis())}},{key:"toMillis",value:function(){return 1e3*this.seconds+this.nanoseconds/1e6}},{key:"_compareTo",value:function(e){return this.seconds===e.seconds?Yo(this.nanoseconds,e.nanoseconds):Yo(this.seconds,e.seconds)}},{key:"isEqual",value:function(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}},{key:"toString",value:function(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}},{key:"toJSON",value:function(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}},{key:"valueOf",value:function(){var e=this.seconds- -62135596800;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}],[{key:"now",value:function(){return e.fromMillis(Date.now())}},{key:"fromDate",value:function(t){return e.fromMillis(t.getTime())}},{key:"fromMillis",value:function(t){var n=Math.floor(t/1e3);return new e(n,Math.floor(1e6*(t-1e3*n)))}}]),e}(),es=function(){function e(t){oe(this,e),this.timestamp=t}return ue(e,[{key:"compareTo",value:function(e){return this.timestamp._compareTo(e.timestamp)}},{key:"isEqual",value:function(e){return this.timestamp.isEqual(e.timestamp)}},{key:"toMicroseconds",value:function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}},{key:"toString",value:function(){return"SnapshotVersion("+this.timestamp.toString()+")"}},{key:"toTimestamp",value:function(){return this.timestamp}}],[{key:"fromTimestamp",value:function(t){return new e(t)}},{key:"min",value:function(){return new e(new $o(0,0))}},{key:"max",value:function(){return new e(new $o(253402300799,999999999))}}]),e}();function ts(e){var t=0;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function ns(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}function rs(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}var is=function(){function e(t,n,r){oe(this,e),void 0===n?n=0:n>t.length&&Ro(),void 0===r?r=t.length-n:r>t.length-n&&Ro(),this.segments=t,this.offset=n,this.len=r}return ue(e,[{key:"length",get:function(){return this.len}},{key:"isEqual",value:function(t){return 0===e.comparator(this,t)}},{key:"child",value:function(t){var n=this.segments.slice(this.offset,this.limit());return t instanceof e?t.forEach((function(e){n.push(e)})):n.push(t),this.construct(n)}},{key:"limit",value:function(){return this.offset+this.length}},{key:"popFirst",value:function(e){return e=void 0===e?1:e,this.construct(this.segments,this.offset+e,this.length-e)}},{key:"popLast",value:function(){return this.construct(this.segments,this.offset,this.length-1)}},{key:"firstSegment",value:function(){return this.segments[this.offset]}},{key:"lastSegment",value:function(){return this.get(this.length-1)}},{key:"get",value:function(e){return this.segments[this.offset+e]}},{key:"isEmpty",value:function(){return 0===this.length}},{key:"isPrefixOf",value:function(e){if(e.length<this.length)return!1;for(var t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}},{key:"isImmediateParentOf",value:function(e){if(this.length+1!==e.length)return!1;for(var t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}},{key:"forEach",value:function(e){for(var t=this.offset,n=this.limit();t<n;t++)e(this.segments[t])}},{key:"toArray",value:function(){return this.segments.slice(this.offset,this.limit())}}],[{key:"comparator",value:function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){var i=e.get(r),a=t.get(r);if(i<a)return-1;if(i>a)return 1}return e.length<t.length?-1:e.length>t.length?1:0}}]),e}(),as=function(e){he(n,e);var t=ge(n);function n(){return oe(this,n),t.apply(this,arguments)}return ue(n,[{key:"construct",value:function(e,t,r){return new n(e,t,r)}},{key:"canonicalString",value:function(){return this.toArray().join("/")}},{key:"toString",value:function(){return this.canonicalString()}}],[{key:"fromString",value:function(){for(var e=[],t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];for(var a=0,o=r;a<o.length;a++){var s=o[a];if(s.indexOf("//")>=0)throw new Lo(Bo.INVALID_ARGUMENT,"Invalid segment (".concat(s,"). Paths must not contain // in them."));e.push.apply(e,ne(s.split("/").filter((function(e){return e.length>0}))))}return new n(e)}},{key:"emptyPath",value:function(){return new n([])}}]),n}(is),os=/^[_a-zA-Z][_a-zA-Z0-9]*$/,ss=function(e){he(n,e);var t=ge(n);function n(){return oe(this,n),t.apply(this,arguments)}return ue(n,[{key:"construct",value:function(e,t,r){return new n(e,t,r)}},{key:"canonicalString",value:function(){return this.toArray().map((function(e){return e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),n.isValidIdentifier(e)||(e="`"+e+"`"),e})).join(".")}},{key:"toString",value:function(){return this.canonicalString()}},{key:"isKeyField",value:function(){return 1===this.length&&"__name__"===this.get(0)}}],[{key:"isValidIdentifier",value:function(e){return os.test(e)}},{key:"keyField",value:function(){return new n(["__name__"])}},{key:"fromServerFormat",value:function(e){for(var t=[],r="",i=0,a=function(){if(0===r.length)throw new Lo(Bo.INVALID_ARGUMENT,"Invalid field path (".concat(e,"). Paths must not be empty, begin with '.', end with '.', or contain '..'"));t.push(r),r=""},o=!1;i<e.length;){var s=e[i];if("\\"===s){if(i+1===e.length)throw new Lo(Bo.INVALID_ARGUMENT,"Path has trailing escape character: "+e);var u=e[i+1];if("\\"!==u&&"."!==u&&"`"!==u)throw new Lo(Bo.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);r+=u,i+=2}else"`"===s?(o=!o,i++):"."!==s||o?(r+=s,i++):(a(),i++)}if(a(),o)throw new Lo(Bo.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new n(t)}},{key:"emptyPath",value:function(){return new n([])}}]),n}(is),us=function(){function e(t){oe(this,e),this.fields=t,t.sort(ss.comparator)}return ue(e,[{key:"covers",value:function(e){var t,n=ce(this.fields);try{for(n.s();!(t=n.n()).done;){if(t.value.isPrefixOf(e))return!0}}catch(r){n.e(r)}finally{n.f()}return!1}},{key:"isEqual",value:function(e){return Xo(this.fields,e.fields,(function(e,t){return e.isEqual(t)}))}}]),e}();var cs=function(e){function t(e){oe(this,t),this.binaryString=e}return ue(t,[{key:Symbol.iterator,value:function(){var e=this,t=0;return{next:function(){return t<e.binaryString.length?{value:e.binaryString.charCodeAt(t++),done:!1}:{value:void 0,done:!0}}}}},{key:"toBase64",value:function(){return e=this.binaryString,btoa(e);var e}},{key:"toUint8Array",value:function(){return function(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(this.binaryString)}},{key:"approximateByteSize",value:function(){return 2*this.binaryString.length}},{key:"compareTo",value:function(e){return Yo(this.binaryString,e.binaryString)}},{key:"isEqual",value:function(e){return this.binaryString===e.binaryString}}],[{key:"fromBase64String",value:function(e){return new t(atob(e))}},{key:"fromUint8Array",value:function(e){var n=function(e){for(var t="",n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return t}(e);return new t(n)}}]),t}();cs.EMPTY_BYTE_STRING=new cs("");var ls=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function fs(e){if(Po(!!e),"string"==typeof e){var t=0,n=ls.exec(e);if(Po(!!n),n[1]){var r=n[1];r=(r+"000000000").substr(0,9),t=Number(r)}var i=new Date(e);return{seconds:Math.floor(i.getTime()/1e3),nanos:t}}return{seconds:hs(e.seconds),nanos:hs(e.nanos)}}function hs(e){return"number"==typeof e?e:"string"==typeof e?Number(e):0}function ds(e){return"string"==typeof e?cs.fromBase64String(e):cs.fromUint8Array(e)}function ps(e){var t,n;return"server_timestamp"===(null===(n=((null===(t=null==e?void 0:e.mapValue)||void 0===t?void 0:t.fields)||{}).__type__)||void 0===n?void 0:n.stringValue)}function vs(e){var t=e.mapValue.fields.__previous_value__;return ps(t)?vs(t):t}function ms(e){var t=fs(e.mapValue.fields.__local_write_time__.timestampValue);return new $o(t.seconds,t.nanos)}var gs=ue((function e(t,n,r,i,a,o,s,u){oe(this,e),this.databaseId=t,this.appId=n,this.persistenceKey=r,this.host=i,this.ssl=a,this.forceLongPolling=o,this.autoDetectLongPolling=s,this.useFetchStreams=u})),ys=function(){function e(t,n){oe(this,e),this.projectId=t,this.database=n||"(default)"}return ue(e,[{key:"isDefaultDatabase",get:function(){return"(default)"===this.database}},{key:"isEqual",value:function(t){return t instanceof e&&t.projectId===this.projectId&&t.database===this.database}}],[{key:"empty",value:function(){return new e("","")}}]),e}();function As(e){return null==e}function ks(e){return 0===e&&1/e==-1/0}function bs(e){return"number"==typeof e&&Number.isInteger(e)&&!ks(e)&&e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER}var ws=function(){function e(t){oe(this,e),this.path=t}return ue(e,[{key:"collectionGroup",get:function(){return this.path.popLast().lastSegment()}},{key:"hasCollectionId",value:function(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}},{key:"getCollectionGroup",value:function(){return this.path.get(this.path.length-2)}},{key:"getCollectionPath",value:function(){return this.path.popLast()}},{key:"isEqual",value:function(e){return null!==e&&0===as.comparator(this.path,e.path)}},{key:"toString",value:function(){return this.path.toString()}}],[{key:"fromPath",value:function(t){return new e(as.fromString(t))}},{key:"fromName",value:function(t){return new e(as.fromString(t).popFirst(5))}},{key:"empty",value:function(){return new e(as.emptyPath())}},{key:"comparator",value:function(e,t){return as.comparator(e.path,t.path)}},{key:"isDocumentKey",value:function(e){return e.length%2==0}},{key:"fromSegments",value:function(t){return new e(new as(t.slice()))}}]),e}(),xs={mapValue:{fields:{__type__:{stringValue:"__max__"}}}},Is={nullValue:"NULL_VALUE"};function Es(e){return"nullValue"in e?0:"booleanValue"in e?1:"integerValue"in e||"doubleValue"in e?2:"timestampValue"in e?3:"stringValue"in e?5:"bytesValue"in e?6:"referenceValue"in e?7:"geoPointValue"in e?8:"arrayValue"in e?9:"mapValue"in e?ps(e)?4:Us(e)?9:10:Ro()}function Ss(e,t){if(e===t)return!0;var n=Es(e);if(n!==Es(t))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return e.booleanValue===t.booleanValue;case 4:return ms(e).isEqual(ms(t));case 3:return function(e,t){if("string"==typeof e.timestampValue&&"string"==typeof t.timestampValue&&e.timestampValue.length===t.timestampValue.length)return e.timestampValue===t.timestampValue;var n=fs(e.timestampValue),r=fs(t.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos}(e,t);case 5:return e.stringValue===t.stringValue;case 6:return function(e,t){return ds(e.bytesValue).isEqual(ds(t.bytesValue))}(e,t);case 7:return e.referenceValue===t.referenceValue;case 8:return function(e,t){return hs(e.geoPointValue.latitude)===hs(t.geoPointValue.latitude)&&hs(e.geoPointValue.longitude)===hs(t.geoPointValue.longitude)}(e,t);case 2:return function(e,t){if("integerValue"in e&&"integerValue"in t)return hs(e.integerValue)===hs(t.integerValue);if("doubleValue"in e&&"doubleValue"in t){var n=hs(e.doubleValue),r=hs(t.doubleValue);return n===r?ks(n)===ks(r):isNaN(n)&&isNaN(r)}return!1}(e,t);case 9:return Xo(e.arrayValue.values||[],t.arrayValue.values||[],Ss);case 10:return function(e,t){var n=e.mapValue.fields||{},r=t.mapValue.fields||{};if(ts(n)!==ts(r))return!1;for(var i in n)if(n.hasOwnProperty(i)&&(void 0===r[i]||!Ss(n[i],r[i])))return!1;return!0}(e,t);default:return Ro()}}function Ts(e,t){return void 0!==(e.values||[]).find((function(e){return Ss(e,t)}))}function Cs(e,t){if(e===t)return 0;var n=Es(e),r=Es(t);if(n!==r)return Yo(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return Yo(e.booleanValue,t.booleanValue);case 2:return function(e,t){var n=hs(e.integerValue||e.doubleValue),r=hs(t.integerValue||t.doubleValue);return n<r?-1:n>r?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(e,t);case 3:return _s(e.timestampValue,t.timestampValue);case 4:return _s(ms(e),ms(t));case 5:return Yo(e.stringValue,t.stringValue);case 6:return function(e,t){var n=ds(e),r=ds(t);return n.compareTo(r)}(e.bytesValue,t.bytesValue);case 7:return function(e,t){for(var n=e.split("/"),r=t.split("/"),i=0;i<n.length&&i<r.length;i++){var a=Yo(n[i],r[i]);if(0!==a)return a}return Yo(n.length,r.length)}(e.referenceValue,t.referenceValue);case 8:return function(e,t){var n=Yo(hs(e.latitude),hs(t.latitude));return 0!==n?n:Yo(hs(e.longitude),hs(t.longitude))}(e.geoPointValue,t.geoPointValue);case 9:return function(e,t){for(var n=e.values||[],r=t.values||[],i=0;i<n.length&&i<r.length;++i){var a=Cs(n[i],r[i]);if(a)return a}return Yo(n.length,r.length)}(e.arrayValue,t.arrayValue);case 10:return function(e,t){var n=e.fields||{},r=Object.keys(n),i=t.fields||{},a=Object.keys(i);r.sort(),a.sort();for(var o=0;o<r.length&&o<a.length;++o){var s=Yo(r[o],a[o]);if(0!==s)return s;var u=Cs(n[r[o]],i[a[o]]);if(0!==u)return u}return Yo(r.length,a.length)}(e.mapValue,t.mapValue);default:throw Ro()}}function _s(e,t){if("string"==typeof e&&"string"==typeof t&&e.length===t.length)return Yo(e,t);var n=fs(e),r=fs(t),i=Yo(n.seconds,r.seconds);return 0!==i?i:Yo(n.nanos,r.nanos)}function Ns(e){return Ds(e)}function Ds(e){return"nullValue"in e?"null":"booleanValue"in e?""+e.booleanValue:"integerValue"in e?""+e.integerValue:"doubleValue"in e?""+e.doubleValue:"timestampValue"in e?function(e){var t=fs(e);return"time(".concat(t.seconds,",").concat(t.nanos,")")}(e.timestampValue):"stringValue"in e?e.stringValue:"bytesValue"in e?ds(e.bytesValue).toBase64():"referenceValue"in e?(n=e.referenceValue,ws.fromName(n).toString()):"geoPointValue"in e?"geo(".concat((t=e.geoPointValue).latitude,",").concat(t.longitude,")"):"arrayValue"in e?function(e){var t,n="[",r=!0,i=ce(e.values||[]);try{for(i.s();!(t=i.n()).done;){var a=t.value;r?r=!1:n+=",",n+=Ds(a)}}catch(o){i.e(o)}finally{i.f()}return n+"]"}(e.arrayValue):"mapValue"in e?function(e){var t,n="{",r=!0,i=ce(Object.keys(e.fields||{}).sort());try{for(i.s();!(t=i.n()).done;){var a=t.value;r?r=!1:n+=",",n+="".concat(a,":").concat(Ds(e.fields[a]))}}catch(o){i.e(o)}finally{i.f()}return n+"}"}(e.mapValue):Ro();var t,n}function Os(e,t){return{referenceValue:"projects/".concat(e.projectId,"/databases/").concat(e.database,"/documents/").concat(t.path.canonicalString())}}function Rs(e){return!!e&&"integerValue"in e}function Ps(e){return!!e&&"arrayValue"in e}function Ms(e){return!!e&&"nullValue"in e}function Bs(e){return!!e&&"doubleValue"in e&&isNaN(Number(e.doubleValue))}function Ls(e){return!!e&&"mapValue"in e}function js(e){if(e.geoPointValue)return{geoPointValue:Object.assign({},e.geoPointValue)};if(e.timestampValue&&"object"==typeof e.timestampValue)return{timestampValue:Object.assign({},e.timestampValue)};if(e.mapValue){var t={mapValue:{fields:{}}};return ns(e.mapValue.fields,(function(e,n){return t.mapValue.fields[e]=js(n)})),t}if(e.arrayValue){for(var n={arrayValue:{values:[]}},r=0;r<(e.arrayValue.values||[]).length;++r)n.arrayValue.values[r]=js(e.arrayValue.values[r]);return n}return Object.assign({},e)}function Us(e){return"__max__"===(((e.mapValue||{}).fields||{}).__type__||{}).stringValue}function Fs(e,t){return void 0===e?t:void 0===t||Cs(e,t)>0?e:t}function Qs(e,t){return void 0===e?t:void 0===t||Cs(e,t)<0?e:t}var Vs=function(){function e(t){oe(this,e),this.value=t}return ue(e,[{key:"field",value:function(e){if(e.isEmpty())return this.value;for(var t=this.value,n=0;n<e.length-1;++n)if(!Ls(t=(t.mapValue.fields||{})[e.get(n)]))return null;return(t=(t.mapValue.fields||{})[e.lastSegment()])||null}},{key:"set",value:function(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=js(t)}},{key:"setAll",value:function(e){var t=this,n=ss.emptyPath(),r={},i=[];e.forEach((function(e,a){if(!n.isImmediateParentOf(a)){var o=t.getFieldsMap(n);t.applyChanges(o,r,i),r={},i=[],n=a.popLast()}e?r[a.lastSegment()]=js(e):i.push(a.lastSegment())}));var a=this.getFieldsMap(n);this.applyChanges(a,r,i)}},{key:"delete",value:function(e){var t=this.field(e.popLast());Ls(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]}},{key:"isEqual",value:function(e){return Ss(this.value,e.value)}},{key:"getFieldsMap",value:function(e){var t=this.value;t.mapValue.fields||(t.mapValue={fields:{}});for(var n=0;n<e.length;++n){var r=t.mapValue.fields[e.get(n)];Ls(r)&&r.mapValue.fields||(r={mapValue:{fields:{}}},t.mapValue.fields[e.get(n)]=r),t=r}return t.mapValue.fields}},{key:"applyChanges",value:function(e,t,n){ns(t,(function(t,n){return e[t]=n}));var r,i=ce(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;delete e[a]}}catch(o){i.e(o)}finally{i.f()}}},{key:"clone",value:function(){return new e(js(this.value))}}],[{key:"empty",value:function(){return new e({mapValue:{}})}}]),e}();function zs(e){var t=[];return ns(e.fields,(function(e,n){var r=new ss([e]);if(Ls(n)){var i=zs(n.mapValue).fields;if(0===i.length)t.push(r);else{var a,o=ce(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;t.push(r.child(s))}}catch(u){o.e(u)}finally{o.f()}}}else t.push(r)})),new us(t)}var qs=function(){function e(t,n,r,i,a,o){oe(this,e),this.key=t,this.documentType=n,this.version=r,this.readTime=i,this.data=a,this.documentState=o}return ue(e,[{key:"convertToFoundDocument",value:function(e,t){return this.version=e,this.documentType=1,this.data=t,this.documentState=0,this}},{key:"convertToNoDocument",value:function(e){return this.version=e,this.documentType=2,this.data=Vs.empty(),this.documentState=0,this}},{key:"convertToUnknownDocument",value:function(e){return this.version=e,this.documentType=3,this.data=Vs.empty(),this.documentState=2,this}},{key:"setHasCommittedMutations",value:function(){return this.documentState=2,this}},{key:"setHasLocalMutations",value:function(){return this.documentState=1,this}},{key:"setReadTime",value:function(e){return this.readTime=e,this}},{key:"hasLocalMutations",get:function(){return 1===this.documentState}},{key:"hasCommittedMutations",get:function(){return 2===this.documentState}},{key:"hasPendingWrites",get:function(){return this.hasLocalMutations||this.hasCommittedMutations}},{key:"isValidDocument",value:function(){return 0!==this.documentType}},{key:"isFoundDocument",value:function(){return 1===this.documentType}},{key:"isNoDocument",value:function(){return 2===this.documentType}},{key:"isUnknownDocument",value:function(){return 3===this.documentType}},{key:"isEqual",value:function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.version.isEqual(t.version)&&this.documentType===t.documentType&&this.documentState===t.documentState&&this.data.isEqual(t.data)}},{key:"mutableCopy",value:function(){return new e(this.key,this.documentType,this.version,this.readTime,this.data.clone(),this.documentState)}},{key:"toString",value:function(){return"Document(".concat(this.key,", ").concat(this.version,", ").concat(JSON.stringify(this.data.value),", {documentType: ").concat(this.documentType,"}), {documentState: ").concat(this.documentState,"})")}}],[{key:"newInvalidDocument",value:function(t){return new e(t,0,es.min(),es.min(),Vs.empty(),0)}},{key:"newFoundDocument",value:function(t,n,r){return new e(t,1,n,es.min(),r,0)}},{key:"newNoDocument",value:function(t,n){return new e(t,2,n,es.min(),Vs.empty(),0)}},{key:"newUnknownDocument",value:function(t,n){return new e(t,3,n,es.min(),Vs.empty(),2)}}]),e}(),Gs=ue((function e(t,n,r,i){oe(this,e),this.indexId=t,this.collectionGroup=n,this.fields=r,this.indexState=i}));function Hs(e){return e.fields.find((function(e){return 2===e.kind}))}function Ks(e){return e.fields.filter((function(e){return 2!==e.kind}))}Gs.UNKNOWN_ID=-1;var Ws=ue((function e(t,n){oe(this,e),this.fieldPath=t,this.kind=n})),Js=function(){function e(t,n){oe(this,e),this.sequenceNumber=t,this.offset=n}return ue(e,null,[{key:"empty",value:function(){return new e(0,Zs.min())}}]),e}();function Ys(e,t){var n=e.toTimestamp().seconds,r=e.toTimestamp().nanoseconds+1,i=es.fromTimestamp(1e9===r?new $o(n+1,0):new $o(n,r));return new Zs(i,ws.empty(),t)}function Xs(e){return new Zs(e.readTime,e.key,-1)}var Zs=function(){function e(t,n,r){oe(this,e),this.readTime=t,this.documentKey=n,this.largestBatchId=r}return ue(e,null,[{key:"min",value:function(){return new e(es.min(),ws.empty(),-1)}},{key:"max",value:function(){return new e(es.max(),ws.empty(),-1)}}]),e}();function $s(e,t){var n=e.readTime.compareTo(t.readTime);return 0!==n?n:0!==(n=ws.comparator(e.documentKey,t.documentKey))?n:Yo(e.largestBatchId,t.largestBatchId)}var eu=ue((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;oe(this,e),this.path=t,this.collectionGroup=n,this.orderBy=r,this.filters=i,this.limit=a,this.startAt=o,this.endAt=s,this.P=null}));function tu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;return new eu(e,t,n,r,i,a,o)}function nu(e){var t=Mo(e);if(null===t.P){var n=t.path.canonicalString();null!==t.collectionGroup&&(n+="|cg:"+t.collectionGroup),n+="|f:",n+=t.filters.map((function(e){return(t=e).field.canonicalString()+t.op.toString()+Ns(t.value);var t})).join(","),n+="|ob:",n+=t.orderBy.map((function(e){return function(e){return e.field.canonicalString()+e.dir}(e)})).join(","),As(t.limit)||(n+="|l:",n+=t.limit),t.startAt&&(n+="|lb:",n+=t.startAt.inclusive?"b:":"a:",n+=t.startAt.position.map((function(e){return Ns(e)})).join(",")),t.endAt&&(n+="|ub:",n+=t.endAt.inclusive?"a:":"b:",n+=t.endAt.position.map((function(e){return Ns(e)})).join(",")),t.P=n}return t.P}function ru(e,t){if(e.limit!==t.limit)return!1;if(e.orderBy.length!==t.orderBy.length)return!1;for(var n=0;n<e.orderBy.length;n++)if(!gu(e.orderBy[n],t.orderBy[n]))return!1;if(e.filters.length!==t.filters.length)return!1;for(var r=0;r<e.filters.length;r++)if(i=e.filters[r],a=t.filters[r],i.op!==a.op||!i.field.isEqual(a.field)||!Ss(i.value,a.value))return!1;var i,a;return e.collectionGroup===t.collectionGroup&&!!e.path.isEqual(t.path)&&!!Au(e.startAt,t.startAt)&&Au(e.endAt,t.endAt)}function iu(e){return ws.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}function au(e,t){return e.filters.filter((function(e){return e instanceof ou&&e.field.isEqual(t)}))}var ou=function(e){he(n,e);var t=ge(n);function n(e,r,i){var a;return oe(this,n),(a=t.call(this)).field=e,a.op=r,a.value=i,a}return ue(n,[{key:"matches",value:function(e){var t=e.data.field(this.field);return"!="===this.op?null!==t&&this.v(Cs(t,this.value)):null!==t&&Es(this.value)===Es(t)&&this.v(Cs(t,this.value))}},{key:"v",value:function(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return 0===e;case"!=":return 0!==e;case">":return e>0;case">=":return e>=0;default:return Ro()}}},{key:"S",value:function(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}}],[{key:"create",value:function(e,t,r){return e.isKeyField()?"in"===t||"not-in"===t?this.V(e,t,r):new su(e,t,r):"array-contains"===t?new fu(e,r):"in"===t?new hu(e,r):"not-in"===t?new du(e,r):"array-contains-any"===t?new pu(e,r):new n(e,t,r)}},{key:"V",value:function(e,t,n){return"in"===t?new uu(e,n):new cu(e,n)}}]),n}(function(){return ue((function e(){oe(this,e)}))}()),su=function(e){he(n,e);var t=ge(n);function n(e,r,i){var a;return oe(this,n),(a=t.call(this,e,r,i)).key=ws.fromName(i.referenceValue),a}return ue(n,[{key:"matches",value:function(e){var t=ws.comparator(e.key,this.key);return this.v(t)}}]),n}(ou),uu=function(e){he(n,e);var t=ge(n);function n(e,r){var i;return oe(this,n),(i=t.call(this,e,"in",r)).keys=lu("in",r),i}return ue(n,[{key:"matches",value:function(e){return this.keys.some((function(t){return t.isEqual(e.key)}))}}]),n}(ou),cu=function(e){he(n,e);var t=ge(n);function n(e,r){var i;return oe(this,n),(i=t.call(this,e,"not-in",r)).keys=lu("not-in",r),i}return ue(n,[{key:"matches",value:function(e){return!this.keys.some((function(t){return t.isEqual(e.key)}))}}]),n}(ou);function lu(e,t){var n;return((null===(n=t.arrayValue)||void 0===n?void 0:n.values)||[]).map((function(e){return ws.fromName(e.referenceValue)}))}var fu=function(e){he(n,e);var t=ge(n);function n(e,r){return oe(this,n),t.call(this,e,"array-contains",r)}return ue(n,[{key:"matches",value:function(e){var t=e.data.field(this.field);return Ps(t)&&Ts(t.arrayValue,this.value)}}]),n}(ou),hu=function(e){he(n,e);var t=ge(n);function n(e,r){return oe(this,n),t.call(this,e,"in",r)}return ue(n,[{key:"matches",value:function(e){var t=e.data.field(this.field);return null!==t&&Ts(this.value.arrayValue,t)}}]),n}(ou),du=function(e){he(n,e);var t=ge(n);function n(e,r){return oe(this,n),t.call(this,e,"not-in",r)}return ue(n,[{key:"matches",value:function(e){if(Ts(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;var t=e.data.field(this.field);return null!==t&&!Ts(this.value.arrayValue,t)}}]),n}(ou),pu=function(e){he(n,e);var t=ge(n);function n(e,r){return oe(this,n),t.call(this,e,"array-contains-any",r)}return ue(n,[{key:"matches",value:function(e){var t=this,n=e.data.field(this.field);return!(!Ps(n)||!n.arrayValue.values)&&n.arrayValue.values.some((function(e){return Ts(t.value.arrayValue,e)}))}}]),n}(ou),vu=ue((function e(t,n){oe(this,e),this.position=t,this.inclusive=n})),mu=ue((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc";oe(this,e),this.field=t,this.dir=n}));function gu(e,t){return e.dir===t.dir&&e.field.isEqual(t.field)}function yu(e,t,n){for(var r=0,i=0;i<e.position.length;i++){var a=t[i],o=e.position[i];if(r=a.field.isKeyField()?ws.comparator(ws.fromName(o.referenceValue),n.key):Cs(o,n.data.field(a.field)),"desc"===a.dir&&(r*=-1),0!==r)break}return r}function Au(e,t){if(null===e)return null===t;if(null===t)return!1;if(e.inclusive!==t.inclusive||e.position.length!==t.position.length)return!1;for(var n=0;n<e.position.length;n++)if(!Ss(e.position[n],t.position[n]))return!1;return!0}var ku=ue((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"F",s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;oe(this,e),this.path=t,this.collectionGroup=n,this.explicitOrderBy=r,this.filters=i,this.limit=a,this.limitType=o,this.startAt=s,this.endAt=u,this.D=null,this.C=null,this.startAt,this.endAt}));function bu(e,t,n,r,i,a,o,s){return new ku(e,t,n,r,i,a,o,s)}function wu(e){return new ku(e)}function xu(e){return!As(e.limit)&&"F"===e.limitType}function Iu(e){return!As(e.limit)&&"L"===e.limitType}function Eu(e){return e.explicitOrderBy.length>0?e.explicitOrderBy[0].field:null}function Su(e){var t,n=ce(e.filters);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.S())return r.field}}catch(i){n.e(i)}finally{n.f()}return null}function Tu(e){return null!==e.collectionGroup}function Cu(e){var t=Mo(e);if(null===t.D){t.D=[];var n=Su(t),r=Eu(t);if(null!==n&&null===r)n.isKeyField()||t.D.push(new mu(n)),t.D.push(new mu(ss.keyField(),"asc"));else{var i,a=!1,o=ce(t.explicitOrderBy);try{for(o.s();!(i=o.n()).done;){var s=i.value;t.D.push(s),s.field.isKeyField()&&(a=!0)}}catch(c){o.e(c)}finally{o.f()}if(!a){var u=t.explicitOrderBy.length>0?t.explicitOrderBy[t.explicitOrderBy.length-1].dir:"asc";t.D.push(new mu(ss.keyField(),u))}}}return t.D}function _u(e){var t=Mo(e);if(!t.C)if("F"===t.limitType)t.C=tu(t.path,t.collectionGroup,Cu(t),t.filters,t.limit,t.startAt,t.endAt);else{var n,r=[],i=ce(Cu(t));try{for(i.s();!(n=i.n()).done;){var a=n.value,o="desc"===a.dir?"asc":"desc";r.push(new mu(a.field,o))}}catch(c){i.e(c)}finally{i.f()}var s=t.endAt?new vu(t.endAt.position,!t.endAt.inclusive):null,u=t.startAt?new vu(t.startAt.position,!t.startAt.inclusive):null;t.C=tu(t.path,t.collectionGroup,r,t.filters,t.limit,s,u)}return t.C}function Nu(e,t,n){return new ku(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),t,n,e.startAt,e.endAt)}function Du(e,t){return ru(_u(e),_u(t))&&e.limitType===t.limitType}function Ou(e){return"".concat(nu(_u(e)),"|lt:").concat(e.limitType)}function Ru(e){return"Query(target=".concat(function(e){var t=e.path.canonicalString();return null!==e.collectionGroup&&(t+=" collectionGroup="+e.collectionGroup),e.filters.length>0&&(t+=", filters: [".concat(e.filters.map((function(e){return"".concat((t=e).field.canonicalString()," ").concat(t.op," ").concat(Ns(t.value));var t})).join(", "),"]")),As(e.limit)||(t+=", limit: "+e.limit),e.orderBy.length>0&&(t+=", orderBy: [".concat(e.orderBy.map((function(e){return function(e){return"".concat(e.field.canonicalString()," (").concat(e.dir,")")}(e)})).join(", "),"]")),e.startAt&&(t+=", startAt: ",t+=e.startAt.inclusive?"b:":"a:",t+=e.startAt.position.map((function(e){return Ns(e)})).join(",")),e.endAt&&(t+=", endAt: ",t+=e.endAt.inclusive?"a:":"b:",t+=e.endAt.position.map((function(e){return Ns(e)})).join(",")),"Target(".concat(t,")")}(_u(e)),"; limitType=").concat(e.limitType,")")}function Pu(e,t){return t.isFoundDocument()&&function(e,t){var n=t.key.path;return null!==e.collectionGroup?t.key.hasCollectionId(e.collectionGroup)&&e.path.isPrefixOf(n):ws.isDocumentKey(e.path)?e.path.isEqual(n):e.path.isImmediateParentOf(n)}(e,t)&&function(e,t){var n,r=ce(e.explicitOrderBy);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!i.field.isKeyField()&&null===t.data.field(i.field))return!1}}catch(a){r.e(a)}finally{r.f()}return!0}(e,t)&&function(e,t){var n,r=ce(e.filters);try{for(r.s();!(n=r.n()).done;){if(!n.value.matches(t))return!1}}catch(i){r.e(i)}finally{r.f()}return!0}(e,t)&&function(e,t){return!(e.startAt&&!function(e,t,n){var r=yu(e,t,n);return e.inclusive?r<=0:r<0}(e.startAt,Cu(e),t))&&!(e.endAt&&!function(e,t,n){var r=yu(e,t,n);return e.inclusive?r>=0:r>0}(e.endAt,Cu(e),t))}(e,t)}function Mu(e){return e.collectionGroup||(e.path.length%2==1?e.path.lastSegment():e.path.get(e.path.length-2))}function Bu(e){return function(t,n){var r,i=!1,a=ce(Cu(e));try{for(a.s();!(r=a.n()).done;){var o=r.value,s=Lu(o,t,n);if(0!==s)return s;i=i||o.field.isKeyField()}}catch(u){a.e(u)}finally{a.f()}return 0}}function Lu(e,t,n){var r=e.field.isKeyField()?ws.comparator(t.key,n.key):function(e,t,n){var r=t.data.field(e),i=n.data.field(e);return null!==r&&null!==i?Cs(r,i):Ro()}(e.field,t,n);switch(e.dir){case"asc":return r;case"desc":return-1*r;default:return Ro()}}function ju(e,t){if(e.N){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:ks(t)?"-0":t}}function Uu(e){return{integerValue:""+e}}function Fu(e,t){return bs(t)?Uu(t):ju(e,t)}var Qu=ue((function e(){oe(this,e),this._=void 0}));function Vu(e,t,n){return e instanceof Gu?function(e,t){var n={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:e.seconds,nanos:e.nanoseconds}}}};return t&&(n.fields.__previous_value__=t),{mapValue:n}}(n,t):e instanceof Hu?Ku(e,t):e instanceof Wu?Ju(e,t):function(e,t){var n=qu(e,t),r=Xu(n)+Xu(e.k);return Rs(n)&&Rs(e.k)?Uu(r):ju(e.M,r)}(e,t)}function zu(e,t,n){return e instanceof Hu?Ku(e,t):e instanceof Wu?Ju(e,t):n}function qu(e,t){return e instanceof Yu?Rs(n=t)||function(e){return!!e&&"doubleValue"in e}(n)?t:{integerValue:0}:null;var n}var Gu=function(e){he(n,e);var t=ge(n);function n(){return oe(this,n),t.apply(this,arguments)}return ue(n)}(Qu),Hu=function(e){he(n,e);var t=ge(n);function n(e){var r;return oe(this,n),(r=t.call(this)).elements=e,r}return ue(n)}(Qu);function Ku(e,t){var n,r=Zu(t),i=ce(e.elements);try{var a=function(){var e=n.value;r.some((function(t){return Ss(t,e)}))||r.push(e)};for(i.s();!(n=i.n()).done;)a()}catch(o){i.e(o)}finally{i.f()}return{arrayValue:{values:r}}}var Wu=function(e){he(n,e);var t=ge(n);function n(e){var r;return oe(this,n),(r=t.call(this)).elements=e,r}return ue(n)}(Qu);function Ju(e,t){var n,r=Zu(t),i=ce(e.elements);try{var a=function(){var e=n.value;r=r.filter((function(t){return!Ss(t,e)}))};for(i.s();!(n=i.n()).done;)a()}catch(o){i.e(o)}finally{i.f()}return{arrayValue:{values:r}}}var Yu=function(e){he(n,e);var t=ge(n);function n(e,r){var i;return oe(this,n),(i=t.call(this)).M=e,i.k=r,i}return ue(n)}(Qu);function Xu(e){return hs(e.integerValue||e.doubleValue)}function Zu(e){return Ps(e)&&e.arrayValue.values?e.arrayValue.values.slice():[]}var $u=ue((function e(t,n){oe(this,e),this.field=t,this.transform=n}));var ec=ue((function e(t,n){oe(this,e),this.version=t,this.transformResults=n})),tc=function(){function e(t,n){oe(this,e),this.updateTime=t,this.exists=n}return ue(e,[{key:"isNone",get:function(){return void 0===this.updateTime&&void 0===this.exists}},{key:"isEqual",value:function(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}}],[{key:"none",value:function(){return new e}},{key:"exists",value:function(t){return new e(void 0,t)}},{key:"updateTime",value:function(t){return new e(t)}}]),e}();function nc(e,t){return void 0!==e.updateTime?t.isFoundDocument()&&t.version.isEqual(e.updateTime):void 0===e.exists||e.exists===t.isFoundDocument()}var rc=ue((function e(){oe(this,e)}));function ic(e,t,n){e instanceof cc?function(e,t,n){var r=e.value.clone(),i=hc(e.fieldTransforms,t,n.transformResults);r.setAll(i),t.convertToFoundDocument(n.version,r).setHasCommittedMutations()}(e,t,n):e instanceof lc?function(e,t,n){if(nc(e.precondition,t)){var r=hc(e.fieldTransforms,t,n.transformResults),i=t.data;i.setAll(fc(e)),i.setAll(r),t.convertToFoundDocument(n.version,i).setHasCommittedMutations()}else t.convertToUnknownDocument(n.version)}(e,t,n):function(e,t,n){t.convertToNoDocument(n.version).setHasCommittedMutations()}(0,t,n)}function ac(e,t,n){e instanceof cc?function(e,t,n){if(nc(e.precondition,t)){var r=e.value.clone(),i=dc(e.fieldTransforms,n,t);r.setAll(i),t.convertToFoundDocument(uc(t),r).setHasLocalMutations()}}(e,t,n):e instanceof lc?function(e,t,n){if(nc(e.precondition,t)){var r=dc(e.fieldTransforms,n,t),i=t.data;i.setAll(fc(e)),i.setAll(r),t.convertToFoundDocument(uc(t),i).setHasLocalMutations()}}(e,t,n):function(e,t){nc(e.precondition,t)&&t.convertToNoDocument(es.min())}(e,t)}function oc(e,t){var n,r=null,i=ce(e.fieldTransforms);try{for(i.s();!(n=i.n()).done;){var a=n.value,o=t.data.field(a.field),s=qu(a.transform,o||null);null!=s&&(null==r&&(r=Vs.empty()),r.set(a.field,s))}}catch(u){i.e(u)}finally{i.f()}return r||null}function sc(e,t){return e.type===t.type&&!!e.key.isEqual(t.key)&&!!e.precondition.isEqual(t.precondition)&&!!function(e,t){return void 0===e&&void 0===t||!(!e||!t)&&Xo(e,t,(function(e,t){return function(e,t){return e.field.isEqual(t.field)&&function(e,t){return e instanceof Hu&&t instanceof Hu||e instanceof Wu&&t instanceof Wu?Xo(e.elements,t.elements,Ss):e instanceof Yu&&t instanceof Yu?Ss(e.k,t.k):e instanceof Gu&&t instanceof Gu}(e.transform,t.transform)}(e,t)}))}(e.fieldTransforms,t.fieldTransforms)&&(0===e.type?e.value.isEqual(t.value):1!==e.type||e.data.isEqual(t.data)&&e.fieldMask.isEqual(t.fieldMask))}function uc(e){return e.isFoundDocument()?e.version:es.min()}var cc=function(e){he(n,e);var t=ge(n);function n(e,r,i){var a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return oe(this,n),(a=t.call(this)).key=e,a.value=r,a.precondition=i,a.fieldTransforms=o,a.type=0,a}return ue(n)}(rc),lc=function(e){he(n,e);var t=ge(n);function n(e,r,i,a){var o,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];return oe(this,n),(o=t.call(this)).key=e,o.data=r,o.fieldMask=i,o.precondition=a,o.fieldTransforms=s,o.type=1,o}return ue(n)}(rc);function fc(e){var t=new Map;return e.fieldMask.fields.forEach((function(n){if(!n.isEmpty()){var r=e.data.field(n);t.set(n,r)}})),t}function hc(e,t,n){var r=new Map;Po(e.length===n.length);for(var i=0;i<n.length;i++){var a=e[i],o=a.transform,s=t.data.field(a.field);r.set(a.field,zu(o,s,n[i]))}return r}function dc(e,t,n){var r,i=new Map,a=ce(e);try{for(a.s();!(r=a.n()).done;){var o=r.value,s=o.transform,u=n.data.field(o.field);i.set(o.field,Vu(s,u,t))}}catch(c){a.e(c)}finally{a.f()}return i}var pc,vc,mc=function(e){he(n,e);var t=ge(n);function n(e,r){var i;return oe(this,n),(i=t.call(this)).key=e,i.precondition=r,i.type=2,i.fieldTransforms=[],i}return ue(n)}(rc),gc=function(e){he(n,e);var t=ge(n);function n(e,r){var i;return oe(this,n),(i=t.call(this)).key=e,i.precondition=r,i.type=3,i.fieldTransforms=[],i}return ue(n)}(rc),yc=ue((function e(t){oe(this,e),this.count=t}));function Ac(e){switch(e){default:return Ro();case Bo.CANCELLED:case Bo.UNKNOWN:case Bo.DEADLINE_EXCEEDED:case Bo.RESOURCE_EXHAUSTED:case Bo.INTERNAL:case Bo.UNAVAILABLE:case Bo.UNAUTHENTICATED:return!1;case Bo.INVALID_ARGUMENT:case Bo.NOT_FOUND:case Bo.ALREADY_EXISTS:case Bo.PERMISSION_DENIED:case Bo.FAILED_PRECONDITION:case Bo.ABORTED:case Bo.OUT_OF_RANGE:case Bo.UNIMPLEMENTED:case Bo.DATA_LOSS:return!0}}function kc(e){if(void 0===e)return No("GRPC error has no .code"),Bo.UNKNOWN;switch(e){case pc.OK:return Bo.OK;case pc.CANCELLED:return Bo.CANCELLED;case pc.UNKNOWN:return Bo.UNKNOWN;case pc.DEADLINE_EXCEEDED:return Bo.DEADLINE_EXCEEDED;case pc.RESOURCE_EXHAUSTED:return Bo.RESOURCE_EXHAUSTED;case pc.INTERNAL:return Bo.INTERNAL;case pc.UNAVAILABLE:return Bo.UNAVAILABLE;case pc.UNAUTHENTICATED:return Bo.UNAUTHENTICATED;case pc.INVALID_ARGUMENT:return Bo.INVALID_ARGUMENT;case pc.NOT_FOUND:return Bo.NOT_FOUND;case pc.ALREADY_EXISTS:return Bo.ALREADY_EXISTS;case pc.PERMISSION_DENIED:return Bo.PERMISSION_DENIED;case pc.FAILED_PRECONDITION:return Bo.FAILED_PRECONDITION;case pc.ABORTED:return Bo.ABORTED;case pc.OUT_OF_RANGE:return Bo.OUT_OF_RANGE;case pc.UNIMPLEMENTED:return Bo.UNIMPLEMENTED;case pc.DATA_LOSS:return Bo.DATA_LOSS;default:return Ro()}}(vc=pc||(pc={}))[vc.OK=0]="OK",vc[vc.CANCELLED=1]="CANCELLED",vc[vc.UNKNOWN=2]="UNKNOWN",vc[vc.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",vc[vc.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",vc[vc.NOT_FOUND=5]="NOT_FOUND",vc[vc.ALREADY_EXISTS=6]="ALREADY_EXISTS",vc[vc.PERMISSION_DENIED=7]="PERMISSION_DENIED",vc[vc.UNAUTHENTICATED=16]="UNAUTHENTICATED",vc[vc.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",vc[vc.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",vc[vc.ABORTED=10]="ABORTED",vc[vc.OUT_OF_RANGE=11]="OUT_OF_RANGE",vc[vc.UNIMPLEMENTED=12]="UNIMPLEMENTED",vc[vc.INTERNAL=13]="INTERNAL",vc[vc.UNAVAILABLE=14]="UNAVAILABLE",vc[vc.DATA_LOSS=15]="DATA_LOSS";var bc=function(){function e(t,n){oe(this,e),this.mapKeyFn=t,this.equalsFn=n,this.inner={},this.innerSize=0}return ue(e,[{key:"get",value:function(e){var t=this.mapKeyFn(e),n=this.inner[t];if(void 0!==n){var r,i=ce(n);try{for(i.s();!(r=i.n()).done;){var a=s(r.value,2),o=a[0],u=a[1];if(this.equalsFn(o,e))return u}}catch(c){i.e(c)}finally{i.f()}}}},{key:"has",value:function(e){return void 0!==this.get(e)}},{key:"set",value:function(e,t){var n=this.mapKeyFn(e),r=this.inner[n];if(void 0===r)return this.inner[n]=[[e,t]],void this.innerSize++;for(var i=0;i<r.length;i++)if(this.equalsFn(r[i][0],e))return void(r[i]=[e,t]);r.push([e,t]),this.innerSize++}},{key:"delete",value:function(e){var t=this.mapKeyFn(e),n=this.inner[t];if(void 0===n)return!1;for(var r=0;r<n.length;r++)if(this.equalsFn(n[r][0],e))return 1===n.length?delete this.inner[t]:n.splice(r,1),this.innerSize--,!0;return!1}},{key:"forEach",value:function(e){ns(this.inner,(function(t,n){var r,i=ce(n);try{for(i.s();!(r=i.n()).done;){var a=s(r.value,2),o=a[0],u=a[1];e(o,u)}}catch(c){i.e(c)}finally{i.f()}}))}},{key:"isEmpty",value:function(){return rs(this.inner)}},{key:"size",value:function(){return this.innerSize}}]),e}(),wc=function(){function e(t,n){oe(this,e),this.comparator=t,this.root=n||Ic.EMPTY}return ue(e,[{key:"insert",value:function(t,n){return new e(this.comparator,this.root.insert(t,n,this.comparator).copy(null,null,Ic.BLACK,null,null))}},{key:"remove",value:function(t){return new e(this.comparator,this.root.remove(t,this.comparator).copy(null,null,Ic.BLACK,null,null))}},{key:"get",value:function(e){for(var t=this.root;!t.isEmpty();){var n=this.comparator(e,t.key);if(0===n)return t.value;n<0?t=t.left:n>0&&(t=t.right)}return null}},{key:"indexOf",value:function(e){for(var t=0,n=this.root;!n.isEmpty();){var r=this.comparator(e,n.key);if(0===r)return t+n.left.size;r<0?n=n.left:(t+=n.left.size+1,n=n.right)}return-1}},{key:"isEmpty",value:function(){return this.root.isEmpty()}},{key:"size",get:function(){return this.root.size}},{key:"minKey",value:function(){return this.root.minKey()}},{key:"maxKey",value:function(){return this.root.maxKey()}},{key:"inorderTraversal",value:function(e){return this.root.inorderTraversal(e)}},{key:"forEach",value:function(e){this.inorderTraversal((function(t,n){return e(t,n),!1}))}},{key:"toString",value:function(){var e=[];return this.inorderTraversal((function(t,n){return e.push("".concat(t,":").concat(n)),!1})),"{".concat(e.join(", "),"}")}},{key:"reverseTraversal",value:function(e){return this.root.reverseTraversal(e)}},{key:"getIterator",value:function(){return new xc(this.root,null,this.comparator,!1)}},{key:"getIteratorFrom",value:function(e){return new xc(this.root,e,this.comparator,!1)}},{key:"getReverseIterator",value:function(){return new xc(this.root,null,this.comparator,!0)}},{key:"getReverseIteratorFrom",value:function(e){return new xc(this.root,e,this.comparator,!0)}}]),e}(),xc=function(){function e(t,n,r,i){oe(this,e),this.isReverse=i,this.nodeStack=[];for(var a=1;!t.isEmpty();)if(a=n?r(t.key,n):1,n&&i&&(a*=-1),a<0)t=this.isReverse?t.left:t.right;else{if(0===a){this.nodeStack.push(t);break}this.nodeStack.push(t),t=this.isReverse?t.right:t.left}}return ue(e,[{key:"getNext",value:function(){var e=this.nodeStack.pop(),t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t}},{key:"hasNext",value:function(){return this.nodeStack.length>0}},{key:"peek",value:function(){if(0===this.nodeStack.length)return null;var e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}]),e}(),Ic=function(){function e(t,n,r,i,a){oe(this,e),this.key=t,this.value=n,this.color=null!=r?r:e.RED,this.left=null!=i?i:e.EMPTY,this.right=null!=a?a:e.EMPTY,this.size=this.left.size+1+this.right.size}return ue(e,[{key:"copy",value:function(t,n,r,i,a){return new e(null!=t?t:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=a?a:this.right)}},{key:"isEmpty",value:function(){return!1}},{key:"inorderTraversal",value:function(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}},{key:"reverseTraversal",value:function(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}},{key:"min",value:function(){return this.left.isEmpty()?this:this.left.min()}},{key:"minKey",value:function(){return this.min().key}},{key:"maxKey",value:function(){return this.right.isEmpty()?this.key:this.right.maxKey()}},{key:"insert",value:function(e,t,n){var r=this,i=n(e,r.key);return(r=i<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===i?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n))).fixUp()}},{key:"removeMin",value:function(){if(this.left.isEmpty())return e.EMPTY;var t=this;return t.left.isRed()||t.left.left.isRed()||(t=t.moveRedLeft()),(t=t.copy(null,null,null,t.left.removeMin(),null)).fixUp()}},{key:"remove",value:function(t,n){var r,i=this;if(n(t,i.key)<0)i.left.isEmpty()||i.left.isRed()||i.left.left.isRed()||(i=i.moveRedLeft()),i=i.copy(null,null,null,i.left.remove(t,n),null);else{if(i.left.isRed()&&(i=i.rotateRight()),i.right.isEmpty()||i.right.isRed()||i.right.left.isRed()||(i=i.moveRedRight()),0===n(t,i.key)){if(i.right.isEmpty())return e.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.removeMin())}i=i.copy(null,null,null,null,i.right.remove(t,n))}return i.fixUp()}},{key:"isRed",value:function(){return this.color}},{key:"fixUp",value:function(){var e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}},{key:"moveRedLeft",value:function(){var e=this.colorFlip();return e.right.left.isRed()&&(e=(e=(e=e.copy(null,null,null,null,e.right.rotateRight())).rotateLeft()).colorFlip()),e}},{key:"moveRedRight",value:function(){var e=this.colorFlip();return e.left.left.isRed()&&(e=(e=e.rotateRight()).colorFlip()),e}},{key:"rotateLeft",value:function(){var t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)}},{key:"rotateRight",value:function(){var t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)}},{key:"colorFlip",value:function(){var e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}},{key:"checkMaxDepth",value:function(){var e=this.check();return Math.pow(2,e)<=this.size+1}},{key:"check",value:function(){if(this.isRed()&&this.left.isRed())throw Ro();if(this.right.isRed())throw Ro();var e=this.left.check();if(e!==this.right.check())throw Ro();return e+(this.isRed()?0:1)}}]),e}();Ic.EMPTY=null,Ic.RED=!0,Ic.BLACK=!1,Ic.EMPTY=new(function(){function e(){oe(this,e),this.size=0}return ue(e,[{key:"key",get:function(){throw Ro()}},{key:"value",get:function(){throw Ro()}},{key:"color",get:function(){throw Ro()}},{key:"left",get:function(){throw Ro()}},{key:"right",get:function(){throw Ro()}},{key:"copy",value:function(e,t,n,r,i){return this}},{key:"insert",value:function(e,t,n){return new Ic(e,t)}},{key:"remove",value:function(e,t){return this}},{key:"isEmpty",value:function(){return!0}},{key:"inorderTraversal",value:function(e){return!1}},{key:"reverseTraversal",value:function(e){return!1}},{key:"minKey",value:function(){return null}},{key:"maxKey",value:function(){return null}},{key:"isRed",value:function(){return!1}},{key:"checkMaxDepth",value:function(){return!0}},{key:"check",value:function(){return 0}}]),e}());var Ec=function(){function e(t){oe(this,e),this.comparator=t,this.data=new wc(this.comparator)}return ue(e,[{key:"has",value:function(e){return null!==this.data.get(e)}},{key:"first",value:function(){return this.data.minKey()}},{key:"last",value:function(){return this.data.maxKey()}},{key:"size",get:function(){return this.data.size}},{key:"indexOf",value:function(e){return this.data.indexOf(e)}},{key:"forEach",value:function(e){this.data.inorderTraversal((function(t,n){return e(t),!1}))}},{key:"forEachInRange",value:function(e,t){for(var n=this.data.getIteratorFrom(e[0]);n.hasNext();){var r=n.getNext();if(this.comparator(r.key,e[1])>=0)return;t(r.key)}}},{key:"forEachWhile",value:function(e,t){var n;for(n=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();n.hasNext();)if(!e(n.getNext().key))return}},{key:"firstAfterOrEqual",value:function(e){var t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null}},{key:"getIterator",value:function(){return new Sc(this.data.getIterator())}},{key:"getIteratorFrom",value:function(e){return new Sc(this.data.getIteratorFrom(e))}},{key:"add",value:function(e){return this.copy(this.data.remove(e).insert(e,!0))}},{key:"delete",value:function(e){return this.has(e)?this.copy(this.data.remove(e)):this}},{key:"isEmpty",value:function(){return this.data.isEmpty()}},{key:"unionWith",value:function(e){var t=this;return t.size<e.size&&(t=e,e=this),e.forEach((function(e){t=t.add(e)})),t}},{key:"isEqual",value:function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.data.getIterator(),r=t.data.getIterator();n.hasNext();){var i=n.getNext().key,a=r.getNext().key;if(0!==this.comparator(i,a))return!1}return!0}},{key:"toArray",value:function(){var e=[];return this.forEach((function(t){e.push(t)})),e}},{key:"toString",value:function(){var e=[];return this.forEach((function(t){return e.push(t)})),"SortedSet("+e.toString()+")"}},{key:"copy",value:function(t){var n=new e(this.comparator);return n.data=t,n}}]),e}(),Sc=function(){function e(t){oe(this,e),this.iter=t}return ue(e,[{key:"getNext",value:function(){return this.iter.getNext().key}},{key:"hasNext",value:function(){return this.iter.hasNext()}}]),e}();function Tc(e){return e.hasNext()?e.getNext():void 0}var Cc=new wc(ws.comparator);function _c(){return Cc}var Nc=new wc(ws.comparator);function Dc(){return Nc}function Oc(){return new bc((function(e){return e.toString()}),(function(e,t){return e.isEqual(t)}))}var Rc=new wc(ws.comparator),Pc=new Ec(ws.comparator);function Mc(){for(var e=Pc,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=0,a=n;i<a.length;i++){var o=a[i];e=e.add(o)}return e}var Bc=new Ec(Yo);function Lc(){return Bc}var jc=function(){function e(t,n,r,i,a){oe(this,e),this.snapshotVersion=t,this.targetChanges=n,this.targetMismatches=r,this.documentUpdates=i,this.resolvedLimboDocuments=a}return ue(e,null,[{key:"createSynthesizedRemoteEventForCurrentChange",value:function(t,n){var r=new Map;return r.set(t,Uc.createSynthesizedTargetChangeForCurrentChange(t,n)),new e(es.min(),r,Lc(),_c(),Mc())}}]),e}(),Uc=function(){function e(t,n,r,i,a){oe(this,e),this.resumeToken=t,this.current=n,this.addedDocuments=r,this.modifiedDocuments=i,this.removedDocuments=a}return ue(e,null,[{key:"createSynthesizedTargetChangeForCurrentChange",value:function(t,n){return new e(cs.EMPTY_BYTE_STRING,n,Mc(),Mc(),Mc())}}]),e}(),Fc=ue((function e(t,n,r,i){oe(this,e),this.O=t,this.removedTargetIds=n,this.key=r,this.F=i})),Qc=ue((function e(t,n){oe(this,e),this.targetId=t,this.$=n})),Vc=ue((function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:cs.EMPTY_BYTE_STRING,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;oe(this,e),this.state=t,this.targetIds=n,this.resumeToken=r,this.cause=i})),zc=function(){function e(){oe(this,e),this.B=0,this.L=Hc(),this.U=cs.EMPTY_BYTE_STRING,this.q=!1,this.G=!0}return ue(e,[{key:"current",get:function(){return this.q}},{key:"resumeToken",get:function(){return this.U}},{key:"K",get:function(){return 0!==this.B}},{key:"j",get:function(){return this.G}},{key:"W",value:function(e){e.approximateByteSize()>0&&(this.G=!0,this.U=e)}},{key:"H",value:function(){var e=Mc(),t=Mc(),n=Mc();return this.L.forEach((function(r,i){switch(i){case 0:e=e.add(r);break;case 2:t=t.add(r);break;case 1:n=n.add(r);break;default:Ro()}})),new Uc(this.U,this.q,e,t,n)}},{key:"J",value:function(){this.G=!1,this.L=Hc()}},{key:"Y",value:function(e,t){this.G=!0,this.L=this.L.insert(e,t)}},{key:"X",value:function(e){this.G=!0,this.L=this.L.remove(e)}},{key:"Z",value:function(){this.B+=1}},{key:"tt",value:function(){this.B-=1}},{key:"et",value:function(){this.G=!0,this.q=!0}}]),e}(),qc=function(){function e(t){oe(this,e),this.nt=t,this.st=new Map,this.it=_c(),this.rt=Gc(),this.ot=new Ec(Yo)}return ue(e,[{key:"ut",value:function(e){var t,n=ce(e.O);try{for(n.s();!(t=n.n()).done;){var r=t.value;e.F&&e.F.isFoundDocument()?this.at(r,e.F):this.ct(r,e.key,e.F)}}catch(s){n.e(s)}finally{n.f()}var i,a=ce(e.removedTargetIds);try{for(a.s();!(i=a.n()).done;){var o=i.value;this.ct(o,e.key,e.F)}}catch(s){a.e(s)}finally{a.f()}}},{key:"ht",value:function(e){var t=this;this.forEachTarget(e,(function(n){var r=t.lt(n);switch(e.state){case 0:t.ft(n)&&r.W(e.resumeToken);break;case 1:r.tt(),r.K||r.J(),r.W(e.resumeToken);break;case 2:r.tt(),r.K||t.removeTarget(n);break;case 3:t.ft(n)&&(r.et(),r.W(e.resumeToken));break;case 4:t.ft(n)&&(t.dt(n),r.W(e.resumeToken));break;default:Ro()}}))}},{key:"forEachTarget",value:function(e,t){var n=this;e.targetIds.length>0?e.targetIds.forEach(t):this.st.forEach((function(e,r){n.ft(r)&&t(r)}))}},{key:"_t",value:function(e){var t=e.targetId,n=e.$.count,r=this.wt(t);if(r){var i=r.target;if(iu(i))if(0===n){var a=new ws(i.path);this.ct(t,a,qs.newNoDocument(a,es.min()))}else Po(1===n);else this.gt(t)!==n&&(this.dt(t),this.ot=this.ot.add(t))}}},{key:"yt",value:function(e){var t=this,n=new Map;this.st.forEach((function(r,i){var a=t.wt(i);if(a){if(r.current&&iu(a.target)){var o=new ws(a.target.path);null!==t.it.get(o)||t.It(i,o)||t.ct(i,o,qs.newNoDocument(o,e))}r.j&&(n.set(i,r.H()),r.J())}}));var r=Mc();this.rt.forEach((function(e,n){var i=!0;n.forEachWhile((function(e){var n=t.wt(e);return!n||2===n.purpose||(i=!1,!1)})),i&&(r=r.add(e))})),this.it.forEach((function(t,n){return n.setReadTime(e)}));var i=new jc(e,n,this.ot,this.it,r);return this.it=_c(),this.rt=Gc(),this.ot=new Ec(Yo),i}},{key:"at",value:function(e,t){if(this.ft(e)){var n=this.It(e,t.key)?2:0;this.lt(e).Y(t.key,n),this.it=this.it.insert(t.key,t),this.rt=this.rt.insert(t.key,this.Tt(t.key).add(e))}}},{key:"ct",value:function(e,t,n){if(this.ft(e)){var r=this.lt(e);this.It(e,t)?r.Y(t,1):r.X(t),this.rt=this.rt.insert(t,this.Tt(t).delete(e)),n&&(this.it=this.it.insert(t,n))}}},{key:"removeTarget",value:function(e){this.st.delete(e)}},{key:"gt",value:function(e){var t=this.lt(e).H();return this.nt.getRemoteKeysForTarget(e).size+t.addedDocuments.size-t.removedDocuments.size}},{key:"Z",value:function(e){this.lt(e).Z()}},{key:"lt",value:function(e){var t=this.st.get(e);return t||(t=new zc,this.st.set(e,t)),t}},{key:"Tt",value:function(e){var t=this.rt.get(e);return t||(t=new Ec(Yo),this.rt=this.rt.insert(e,t)),t}},{key:"ft",value:function(e){var t=null!==this.wt(e);return t||_o("WatchChangeAggregator","Detected inactive target",e),t}},{key:"wt",value:function(e){var t=this.st.get(e);return t&&t.K?null:this.nt.Et(e)}},{key:"dt",value:function(e){var t=this;this.st.set(e,new zc),this.nt.getRemoteKeysForTarget(e).forEach((function(n){t.ct(e,n,null)}))}},{key:"It",value:function(e,t){return this.nt.getRemoteKeysForTarget(e).has(t)}}]),e}();function Gc(){return new wc(ws.comparator)}function Hc(){return new wc(ws.comparator)}var Kc={asc:"ASCENDING",desc:"DESCENDING"},Wc={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},Jc=ue((function e(t,n){oe(this,e),this.databaseId=t,this.N=n}));function Yc(e,t){return e.N?"".concat(new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,"").replace("Z",""),".").concat(("000000000"+t.nanoseconds).slice(-9),"Z"):{seconds:""+t.seconds,nanos:t.nanoseconds}}function Xc(e,t){return e.N?t.toBase64():t.toUint8Array()}function Zc(e,t){return Yc(e,t.toTimestamp())}function $c(e){return Po(!!e),es.fromTimestamp(function(e){var t=fs(e);return new $o(t.seconds,t.nanos)}(e))}function el(e,t){return function(e){return new as(["projects",e.projectId,"databases",e.database])}(e).child("documents").child(t).canonicalString()}function tl(e){var t=as.fromString(e);return Po(Il(t)),t}function nl(e,t){return el(e.databaseId,t.path)}function rl(e,t){var n=tl(t);if(n.get(1)!==e.databaseId.projectId)throw new Lo(Bo.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+e.databaseId.projectId);if(n.get(3)!==e.databaseId.database)throw new Lo(Bo.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+e.databaseId.database);return new ws(sl(n))}function il(e,t){return el(e.databaseId,t)}function al(e){var t=tl(e);return 4===t.length?as.emptyPath():sl(t)}function ol(e){return new as(["projects",e.databaseId.projectId,"databases",e.databaseId.database]).canonicalString()}function sl(e){return Po(e.length>4&&"documents"===e.get(4)),e.popFirst(5)}function ul(e,t,n){return{name:nl(e,t),fields:n.value.mapValue.fields}}function cl(e,t,n){var r=rl(e,t.name),i=$c(t.updateTime),a=new Vs({mapValue:{fields:t.fields}}),o=qs.newFoundDocument(r,i,a);return n&&o.setHasCommittedMutations(),n?o.setHasCommittedMutations():o}function ll(e,t){return"found"in t?function(e,t){Po(!!t.found),t.found.name,t.found.updateTime;var n=rl(e,t.found.name),r=$c(t.found.updateTime),i=new Vs({mapValue:{fields:t.found.fields}});return qs.newFoundDocument(n,r,i)}(e,t):"missing"in t?function(e,t){Po(!!t.missing),Po(!!t.readTime);var n=rl(e,t.missing),r=$c(t.readTime);return qs.newNoDocument(n,r)}(e,t):Ro()}function fl(e,t){var n;if(t instanceof cc)n={update:ul(e,t.key,t.value)};else if(t instanceof mc)n={delete:nl(e,t.key)};else if(t instanceof lc)n={update:ul(e,t.key,t.data),updateMask:xl(t.fieldMask)};else{if(!(t instanceof gc))return Ro();n={verify:nl(e,t.key)}}return t.fieldTransforms.length>0&&(n.updateTransforms=t.fieldTransforms.map((function(e){return function(e,t){var n=t.transform;if(n instanceof Gu)return{fieldPath:t.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof Hu)return{fieldPath:t.field.canonicalString(),appendMissingElements:{values:n.elements}};if(n instanceof Wu)return{fieldPath:t.field.canonicalString(),removeAllFromArray:{values:n.elements}};if(n instanceof Yu)return{fieldPath:t.field.canonicalString(),increment:n.k};throw Ro()}(0,e)}))),t.precondition.isNone||(n.currentDocument=function(e,t){return void 0!==t.updateTime?{updateTime:Zc(e,t.updateTime)}:void 0!==t.exists?{exists:t.exists}:Ro()}(e,t.precondition)),n}function hl(e,t){var n=t.currentDocument?function(e){return void 0!==e.updateTime?tc.updateTime($c(e.updateTime)):void 0!==e.exists?tc.exists(e.exists):tc.none()}(t.currentDocument):tc.none(),r=t.updateTransforms?t.updateTransforms.map((function(t){return function(e,t){var n=null;if("setToServerValue"in t)Po("REQUEST_TIME"===t.setToServerValue),n=new Gu;else if("appendMissingElements"in t){var r=t.appendMissingElements.values||[];n=new Hu(r)}else if("removeAllFromArray"in t){var i=t.removeAllFromArray.values||[];n=new Wu(i)}else"increment"in t?n=new Yu(e,t.increment):Ro();var a=ss.fromServerFormat(t.fieldPath);return new $u(a,n)}(e,t)})):[];if(t.update){t.update.name;var i=rl(e,t.update.name),a=new Vs({mapValue:{fields:t.update.fields}});if(t.updateMask){var o=function(e){var t=e.fieldPaths||[];return new us(t.map((function(e){return ss.fromServerFormat(e)})))}(t.updateMask);return new lc(i,a,o,n,r)}return new cc(i,a,n,r)}if(t.delete){var s=rl(e,t.delete);return new mc(s,n)}if(t.verify){var u=rl(e,t.verify);return new gc(u,n)}return Ro()}function dl(e,t){return{documents:[il(e,t.path)]}}function pl(e,t){var n={structuredQuery:{}},r=t.path;null!==t.collectionGroup?(n.parent=il(e,r),n.structuredQuery.from=[{collectionId:t.collectionGroup,allDescendants:!0}]):(n.parent=il(e,r.popLast()),n.structuredQuery.from=[{collectionId:r.lastSegment()}]);var i=function(e){if(0!==e.length){var t=e.map((function(e){return function(e){if("=="===e.op){if(Bs(e.value))return{unaryFilter:{field:Al(e.field),op:"IS_NAN"}};if(Ms(e.value))return{unaryFilter:{field:Al(e.field),op:"IS_NULL"}}}else if("!="===e.op){if(Bs(e.value))return{unaryFilter:{field:Al(e.field),op:"IS_NOT_NAN"}};if(Ms(e.value))return{unaryFilter:{field:Al(e.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Al(e.field),op:yl(e.op),value:e.value}}}(e)}));return 1===t.length?t[0]:{compositeFilter:{op:"AND",filters:t}}}}(t.filters);i&&(n.structuredQuery.where=i);var a=function(e){if(0!==e.length)return e.map((function(e){return function(e){return{field:Al(e.field),direction:gl(e.dir)}}(e)}))}(t.orderBy);a&&(n.structuredQuery.orderBy=a);var o,s=function(e,t){return e.N||As(t)?t:{value:t}}(e,t.limit);return null!==s&&(n.structuredQuery.limit=s),t.startAt&&(n.structuredQuery.startAt={before:(o=t.startAt).inclusive,values:o.position}),t.endAt&&(n.structuredQuery.endAt=function(e){return{before:!e.inclusive,values:e.position}}(t.endAt)),n}function vl(e){var t=al(e.parent),n=e.structuredQuery,r=n.from?n.from.length:0,i=null;if(r>0){Po(1===r);var a=n.from[0];a.allDescendants?i=a.collectionId:t=t.child(a.collectionId)}var o=[];n.where&&(o=ml(n.where));var s=[];n.orderBy&&(s=n.orderBy.map((function(e){return function(e){return new mu(kl(e.field),function(e){switch(e){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(e.direction))}(e)})));var u=null;n.limit&&(u=function(e){var t;return As(t="object"==typeof e?e.value:e)?null:t}(n.limit));var c=null;n.startAt&&(c=function(e){var t=!!e.before,n=e.values||[];return new vu(n,t)}(n.startAt));var l=null;return n.endAt&&(l=function(e){var t=!e.before,n=e.values||[];return new vu(n,t)}(n.endAt)),bu(t,i,s,o,u,"F",c,l)}function ml(e){return e?void 0!==e.unaryFilter?[wl(e)]:void 0!==e.fieldFilter?[bl(e)]:void 0!==e.compositeFilter?e.compositeFilter.filters.map((function(e){return ml(e)})).reduce((function(e,t){return e.concat(t)})):Ro():[]}function gl(e){return Kc[e]}function yl(e){return Wc[e]}function Al(e){return{fieldPath:e.canonicalString()}}function kl(e){return ss.fromServerFormat(e.fieldPath)}function bl(e){return ou.create(kl(e.fieldFilter.field),function(e){switch(e){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return Ro()}}(e.fieldFilter.op),e.fieldFilter.value)}function wl(e){switch(e.unaryFilter.op){case"IS_NAN":var t=kl(e.unaryFilter.field);return ou.create(t,"==",{doubleValue:NaN});case"IS_NULL":var n=kl(e.unaryFilter.field);return ou.create(n,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":var r=kl(e.unaryFilter.field);return ou.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":var i=kl(e.unaryFilter.field);return ou.create(i,"!=",{nullValue:"NULL_VALUE"});default:return Ro()}}function xl(e){var t=[];return e.fields.forEach((function(e){return t.push(e.canonicalString())})),{fieldPaths:t}}function Il(e){return e.length>=4&&"projects"===e.get(0)&&"databases"===e.get(2)}function El(e){for(var t="",n=0;n<e.length;n++)t.length>0&&(t=Tl(t)),t=Sl(e.get(n),t);return Tl(t)}function Sl(e,t){for(var n=t,r=e.length,i=0;i<r;i++){var a=e.charAt(i);switch(a){case"\0":n+="\x01\x10";break;case"\x01":n+="\x01\x11";break;default:n+=a}}return n}function Tl(e){return e+"\x01\x01"}function Cl(e){var t=e.length;if(Po(t>=2),2===t)return Po("\x01"===e.charAt(0)&&"\x01"===e.charAt(1)),as.emptyPath();for(var n=t-2,r=[],i="",a=0;a<t;){var o=e.indexOf("\x01",a);switch((o<0||o>n)&&Ro(),e.charAt(o+1)){case"\x01":var s=e.substring(a,o),u=void 0;0===i.length?u=s:(u=i+=s,i=""),r.push(u);break;case"\x10":i+=e.substring(a,o),i+="\0";break;case"\x11":i+=e.substring(a,o+1);break;default:Ro()}a=o+2}return new as(r)}var _l=["userId","batchId"];function Nl(e,t){return[e,El(t)]}function Dl(e,t,n){return[e,El(t),n]}var Ol={},Rl=["prefixPath","collectionGroup","readTime","documentId"],Pl=["prefixPath","collectionGroup","documentId"],Ml=["collectionGroup","readTime","prefixPath","documentId"],Bl=["canonicalId","targetId"],Ll=["targetId","path"],jl=["path","targetId"],Ul=["collectionId","parent"],Fl=["indexId","uid"],Ql=["uid","sequenceNumber"],Vl=["indexId","uid","arrayValue","directionalValue","documentKey"],zl=["indexId","uid","documentKey"],ql=["userId","collectionPath","documentId"],Gl=["userId","collectionPath","largestBatchId"],Hl=["userId","collectionGroup","largestBatchId"],Kl=["mutationQueues","mutations","documentMutations","remoteDocuments","targets","owner","targetGlobal","targetDocuments"].concat(["clientMetadata"]).concat(["remoteDocumentGlobal"]).concat(["collectionParents"]).concat(["bundles","namedQueries"]),Wl=[].concat(ne(Kl),["documentOverlays"]),Jl=["mutationQueues","mutations","documentMutations","remoteDocumentsV14","targets","owner","targetGlobal","targetDocuments","clientMetadata","remoteDocumentGlobal","collectionParents","bundles","namedQueries","documentOverlays"],Yl=[].concat(Jl,["indexConfiguration","indexState","indexEntries"]),Xl="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",Zl=function(){function e(){oe(this,e),this.onCommittedListeners=[]}return ue(e,[{key:"addOnCommittedListener",value:function(e){this.onCommittedListeners.push(e)}},{key:"raiseOnCommittedEvent",value:function(){this.onCommittedListeners.forEach((function(e){return e()}))}}]),e}(),$l=function(){function e(t){var n=this;oe(this,e),this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,t((function(e){n.isDone=!0,n.result=e,n.nextCallback&&n.nextCallback(e)}),(function(e){n.isDone=!0,n.error=e,n.catchCallback&&n.catchCallback(e)}))}return ue(e,[{key:"catch",value:function(e){return this.next(void 0,e)}},{key:"next",value:function(t,n){var r=this;return this.callbackAttached&&Ro(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(t,this.result):new e((function(e,i){r.nextCallback=function(n){r.wrapSuccess(t,n).next(e,i)},r.catchCallback=function(t){r.wrapFailure(n,t).next(e,i)}}))}},{key:"toPromise",value:function(){var e=this;return new Promise((function(t,n){e.next(t,n)}))}},{key:"wrapUserFunction",value:function(t){try{var n=t();return n instanceof e?n:e.resolve(n)}catch(t){return e.reject(t)}}},{key:"wrapSuccess",value:function(t,n){return t?this.wrapUserFunction((function(){return t(n)})):e.resolve(n)}},{key:"wrapFailure",value:function(t,n){return t?this.wrapUserFunction((function(){return t(n)})):e.reject(n)}}],[{key:"resolve",value:function(t){return new e((function(e,n){e(t)}))}},{key:"reject",value:function(t){return new e((function(e,n){n(t)}))}},{key:"waitFor",value:function(t){return new e((function(e,n){var r=0,i=0,a=!1;t.forEach((function(t){++r,t.next((function(){++i,a&&i===r&&e()}),(function(e){return n(e)}))})),a=!0,i===r&&e()}))}},{key:"or",value:function(t){var n,r=e.resolve(!1),i=ce(t);try{var a=function(){var t=n.value;r=r.next((function(n){return n?e.resolve(n):t()}))};for(i.s();!(n=i.n()).done;)a()}catch(o){i.e(o)}finally{i.f()}return r}},{key:"forEach",value:function(e,t){var n=this,r=[];return e.forEach((function(e,i){r.push(t.call(n,e,i))})),this.waitFor(r)}}]),e}(),ef=function(){function e(t,n){var r=this;oe(this,e),this.action=t,this.transaction=n,this.aborted=!1,this.At=new jo,this.transaction.oncomplete=function(){r.At.resolve()},this.transaction.onabort=function(){n.error?r.At.reject(new rf(t,n.error)):r.At.resolve()},this.transaction.onerror=function(e){var n=cf(e.target.error);r.At.reject(new rf(t,n))}}return ue(e,[{key:"Rt",get:function(){return this.At.promise}},{key:"abort",value:function(e){e&&this.At.reject(e),this.aborted||(_o("SimpleDb","Aborting transaction:",e?e.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())}},{key:"bt",value:function(){var e=this.transaction;this.aborted||"function"!=typeof e.commit||e.commit()}},{key:"store",value:function(e){var t=this.transaction.objectStore(e);return new of(t)}}],[{key:"open",value:function(t,n,r,i){try{return new e(n,t.transaction(i,r))}catch(t){throw new rf(n,t)}}}]),e}(),tf=function(){function e(t,n,r){oe(this,e),this.name=t,this.version=n,this.Pt=r,12.2===e.Vt(Te())&&No("Firestore persistence suffers from a bug in iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}return ue(e,[{key:"Nt",value:function(){var e=ee(ie().mark((function e(t){var n=this;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.db,e.t0){e.next=6;break}return _o("SimpleDb","Opening database:",this.name),e.next=5,new Promise((function(e,r){var i=indexedDB.open(n.name,n.version);i.onsuccess=function(t){var n=t.target.result;e(n)},i.onblocked=function(){r(new rf(t,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},i.onerror=function(e){var n=e.target.error;"VersionError"===n.name?r(new Lo(Bo.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh.")):"InvalidStateError"===n.name?r(new Lo(Bo.FAILED_PRECONDITION,"Unable to open an IndexedDB connection. This could be due to running in a private browsing session on a browser whose private browsing sessions do not support IndexedDB: "+n)):r(new rf(t,n))},i.onupgradeneeded=function(e){_o("SimpleDb",'Database "'+n.name+'" requires upgrade from version:',e.oldVersion);var t=e.target.result;n.Pt.kt(t,i.transaction,e.oldVersion,n.version).next((function(){_o("SimpleDb","Database upgrade to version "+n.version+" complete")}))}}));case 5:this.db=e.sent;case 6:return this.Mt&&(this.db.onversionchange=function(e){return n.Mt(e)}),e.abrupt("return",this.db);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"Ot",value:function(e){this.Mt=e,this.db&&(this.db.onversionchange=function(t){return e(t)})}},{key:"runTransaction",value:function(){var e=ee(ie().mark((function e(t,n,r,i){var a,o,s,u,c=this;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a="readonly"===n,o=0;case 2:return++o,e.prev=3,e.delegateYield(ie().mark((function e(){var n,o;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.Nt(t);case 2:return c.db=e.sent,n=ef.open(c.db,t,a?"readonly":"readwrite",r),o=i(n).next((function(e){return n.bt(),e})).catch((function(e){return n.abort(e),$l.reject(e)})).toPromise(),o.catch((function(){})),e.next=7,n.Rt;case 7:return e.t0=o,e.abrupt("return",{v:e.t0});case 9:case"end":return e.stop()}}),e)}))(),"t0",5);case 5:if("object"!==typeof(s=e.t0)){e.next=8;break}return e.abrupt("return",s.v);case 8:e.next=15;break;case 10:if(e.prev=10,e.t1=e.catch(3),u="FirebaseError"!==e.t1.name&&o<3,_o("SimpleDb","Transaction failed with error:",e.t1.message,"Retrying:",u),this.close(),u){e.next=15;break}return e.abrupt("return",Promise.reject(e.t1));case 15:e.next=2;break;case 17:case"end":return e.stop()}}),e,this,[[3,10]])})));return function(t,n,r,i){return e.apply(this,arguments)}}()},{key:"close",value:function(){this.db&&this.db.close(),this.db=void 0}}],[{key:"delete",value:function(e){return _o("SimpleDb","Removing database:",e),sf(window.indexedDB.deleteDatabase(e)).toPromise()}},{key:"vt",value:function(){if(!Re())return!1;if(e.St())return!0;var t=Te(),n=e.Vt(t),r=0<n&&n<10,i=e.Dt(t),a=0<i&&i<4.5;return!(t.indexOf("MSIE ")>0||t.indexOf("Trident/")>0||t.indexOf("Edge/")>0||r||a)}},{key:"St",value:function(){var e;return"undefined"!=typeof process&&"YES"===(null===(e={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0})||void 0===e?void 0:e.Ct)}},{key:"xt",value:function(e,t){return e.store(t)}},{key:"Vt",value:function(e){var t=e.match(/i(?:phone|pad|pod) os ([\d_]+)/i),n=t?t[1].split("_").slice(0,2).join("."):"-1";return Number(n)}},{key:"Dt",value:function(e){var t=e.match(/Android ([\d.]+)/i),n=t?t[1].split(".").slice(0,2).join("."):"-1";return Number(n)}}]),e}(),nf=function(){function e(t){oe(this,e),this.Ft=t,this.$t=!1,this.Bt=null}return ue(e,[{key:"isDone",get:function(){return this.$t}},{key:"Lt",get:function(){return this.Bt}},{key:"cursor",set:function(e){this.Ft=e}},{key:"done",value:function(){this.$t=!0}},{key:"Ut",value:function(e){this.Bt=e}},{key:"delete",value:function(){return sf(this.Ft.delete())}}]),e}(),rf=function(e){he(n,e);var t=ge(n);function n(e,r){var i;return oe(this,n),(i=t.call(this,Bo.UNAVAILABLE,"IndexedDB transaction '".concat(e,"' failed: ").concat(r))).name="IndexedDbTransactionError",i}return ue(n)}(Lo);function af(e){return"IndexedDbTransactionError"===e.name}var of=function(){function e(t){oe(this,e),this.store=t}return ue(e,[{key:"put",value:function(e,t){var n;return void 0!==t?(_o("SimpleDb","PUT",this.store.name,e,t),n=this.store.put(t,e)):(_o("SimpleDb","PUT",this.store.name,"<auto-key>",e),n=this.store.put(e)),sf(n)}},{key:"add",value:function(e){return _o("SimpleDb","ADD",this.store.name,e,e),sf(this.store.add(e))}},{key:"get",value:function(e){var t=this;return sf(this.store.get(e)).next((function(n){return void 0===n&&(n=null),_o("SimpleDb","GET",t.store.name,e,n),n}))}},{key:"delete",value:function(e){return _o("SimpleDb","DELETE",this.store.name,e),sf(this.store.delete(e))}},{key:"count",value:function(){return _o("SimpleDb","COUNT",this.store.name),sf(this.store.count())}},{key:"qt",value:function(e,t){var n=this.options(e,t);if(n.index||"function"!=typeof this.store.getAll){var r=this.cursor(n),i=[];return this.Gt(r,(function(e,t){i.push(t)})).next((function(){return i}))}var a=this.store.getAll(n.range);return new $l((function(e,t){a.onerror=function(e){t(e.target.error)},a.onsuccess=function(t){e(t.target.result)}}))}},{key:"Kt",value:function(e,t){var n=this.store.getAll(e,null===t?void 0:t);return new $l((function(e,t){n.onerror=function(e){t(e.target.error)},n.onsuccess=function(t){e(t.target.result)}}))}},{key:"Qt",value:function(e,t){_o("SimpleDb","DELETE ALL",this.store.name);var n=this.options(e,t);n.jt=!1;var r=this.cursor(n);return this.Gt(r,(function(e,t,n){return n.delete()}))}},{key:"Wt",value:function(e,t){var n;t?n=e:(n={},t=e);var r=this.cursor(n);return this.Gt(r,t)}},{key:"zt",value:function(e){var t=this.cursor({});return new $l((function(n,r){t.onerror=function(e){var t=cf(e.target.error);r(t)},t.onsuccess=function(t){var r=t.target.result;r?e(r.primaryKey,r.value).next((function(e){e?r.continue():n()})):n()}}))}},{key:"Gt",value:function(e,t){var n=[];return new $l((function(r,i){e.onerror=function(e){i(e.target.error)},e.onsuccess=function(e){var i=e.target.result;if(i){var a=new nf(i),o=t(i.primaryKey,i.value,a);if(o instanceof $l){var s=o.catch((function(e){return a.done(),$l.reject(e)}));n.push(s)}a.isDone?r():null===a.Lt?i.continue():i.continue(a.Lt)}else r()}})).next((function(){return $l.waitFor(n)}))}},{key:"options",value:function(e,t){var n;return void 0!==e&&("string"==typeof e?n=e:t=e),{index:n,range:t}}},{key:"cursor",value:function(e){var t="next";if(e.reverse&&(t="prev"),e.index){var n=this.store.index(e.index);return e.jt?n.openKeyCursor(e.range,t):n.openCursor(e.range,t)}return this.store.openCursor(e.range,t)}}]),e}();function sf(e){return new $l((function(t,n){e.onsuccess=function(e){var n=e.target.result;t(n)},e.onerror=function(e){var t=cf(e.target.error);n(t)}}))}var uf=!1;function cf(e){var t=tf.Vt(Te());if(t>=12.2&&t<13){var n="An internal error was encountered in the Indexed Database server";if(e.message.indexOf(n)>=0){var r=new Lo("internal","IOS_INDEXEDDB_BUG1: IndexedDb has thrown '".concat(n,"'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround."));return uf||(uf=!0,setTimeout((function(){throw r}),0)),r}}return e}var lf=function(e){he(n,e);var t=ge(n);function n(e,r){var i;return oe(this,n),(i=t.call(this)).Ht=e,i.currentSequenceNumber=r,i}return ue(n)}(Zl);function ff(e,t){var n=Mo(e);return tf.xt(n.Ht,t)}var hf=function(){function e(t,n,r,i){oe(this,e),this.batchId=t,this.localWriteTime=n,this.baseMutations=r,this.mutations=i}return ue(e,[{key:"applyToRemoteDocument",value:function(e,t){for(var n=t.mutationResults,r=0;r<this.mutations.length;r++){var i=this.mutations[r];i.key.isEqual(e.key)&&ic(i,e,n[r])}}},{key:"applyToLocalView",value:function(e){var t,n=ce(this.baseMutations);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.key.isEqual(e.key)&&ac(r,e,this.localWriteTime)}}catch(s){n.e(s)}finally{n.f()}var i,a=ce(this.mutations);try{for(a.s();!(i=a.n()).done;){var o=i.value;o.key.isEqual(e.key)&&ac(o,e,this.localWriteTime)}}catch(s){a.e(s)}finally{a.f()}}},{key:"applyToLocalDocumentSet",value:function(e){var t=this;this.mutations.forEach((function(n){var r=e.get(n.key),i=r;t.applyToLocalView(i),r.isValidDocument()||i.convertToNoDocument(es.min())}))}},{key:"keys",value:function(){return this.mutations.reduce((function(e,t){return e.add(t.key)}),Mc())}},{key:"isEqual",value:function(e){return this.batchId===e.batchId&&Xo(this.mutations,e.mutations,(function(e,t){return sc(e,t)}))&&Xo(this.baseMutations,e.baseMutations,(function(e,t){return sc(e,t)}))}}]),e}(),df=function(){function e(t,n,r,i){oe(this,e),this.batch=t,this.commitVersion=n,this.mutationResults=r,this.docVersions=i}return ue(e,null,[{key:"from",value:function(t,n,r){Po(t.mutations.length===r.length);for(var i=Rc,a=t.mutations,o=0;o<a.length;o++)i=i.insert(a[o].key,r[o].version);return new e(t,n,r,i)}}]),e}(),pf=function(){function e(t,n){oe(this,e),this.largestBatchId=t,this.mutation=n}return ue(e,[{key:"getKey",value:function(){return this.mutation.key}},{key:"isEqual",value:function(e){return null!==e&&this.mutation===e.mutation}},{key:"toString",value:function(){return"Overlay{\n      largestBatchId: ".concat(this.largestBatchId,",\n      mutation: ").concat(this.mutation.toString(),"\n    }")}}]),e}(),vf=function(){function e(t,n,r,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:es.min(),o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:es.min(),s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:cs.EMPTY_BYTE_STRING;oe(this,e),this.target=t,this.targetId=n,this.purpose=r,this.sequenceNumber=i,this.snapshotVersion=a,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=s}return ue(e,[{key:"withSequenceNumber",value:function(t){return new e(this.target,this.targetId,this.purpose,t,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken)}},{key:"withResumeToken",value:function(t,n){return new e(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,t)}},{key:"withLastLimboFreeSnapshotVersion",value:function(t){return new e(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,t,this.resumeToken)}}]),e}(),mf=ue((function e(t){oe(this,e),this.Jt=t}));function gf(e,t){var n=t.key,r={prefixPath:n.getCollectionPath().popLast().toArray(),collectionGroup:n.collectionGroup,documentId:n.path.lastSegment(),readTime:yf(t.readTime),hasCommittedMutations:t.hasCommittedMutations};if(t.isFoundDocument())r.document=function(e,t){return{name:nl(e,t.key),fields:t.data.value.mapValue.fields,updateTime:Yc(e,t.version.toTimestamp())}}(e.Jt,t);else if(t.isNoDocument())r.noDocument={path:n.path.toArray(),readTime:Af(t.version)};else{if(!t.isUnknownDocument())return Ro();r.unknownDocument={path:n.path.toArray(),version:Af(t.version)}}return r}function yf(e){var t=e.toTimestamp();return[t.seconds,t.nanoseconds]}function Af(e){var t=e.toTimestamp();return{seconds:t.seconds,nanoseconds:t.nanoseconds}}function kf(e){var t=new $o(e.seconds,e.nanoseconds);return es.fromTimestamp(t)}function bf(e,t){for(var n=(t.baseMutations||[]).map((function(t){return hl(e.Jt,t)})),r=0;r<t.mutations.length-1;++r){var i=t.mutations[r];if(r+1<t.mutations.length&&void 0!==t.mutations[r+1].transform){var a=t.mutations[r+1];i.updateTransforms=a.transform.fieldTransforms,t.mutations.splice(r+1,1),++r}}var o=t.mutations.map((function(t){return hl(e.Jt,t)})),s=$o.fromMillis(t.localWriteTimeMs);return new hf(t.batchId,s,n,o)}function wf(e){var t,n,r=kf(e.readTime),i=void 0!==e.lastLimboFreeSnapshotVersion?kf(e.lastLimboFreeSnapshotVersion):es.min();return void 0!==e.query.documents?(Po(1===(n=e.query).documents.length),t=_u(wu(al(n.documents[0])))):t=function(e){return _u(vl(e))}(e.query),new vf(t,e.targetId,0,e.lastListenSequenceNumber,r,i,cs.fromBase64String(e.resumeToken))}function xf(e,t){var n,r=Af(t.snapshotVersion),i=Af(t.lastLimboFreeSnapshotVersion);n=iu(t.target)?dl(e.Jt,t.target):pl(e.Jt,t.target);var a=t.resumeToken.toBase64();return{targetId:t.targetId,canonicalId:nu(t.target),readTime:r,resumeToken:a,lastListenSequenceNumber:t.sequenceNumber,lastLimboFreeSnapshotVersion:i,query:n}}function If(e){var t=vl({parent:e.parent,structuredQuery:e.structuredQuery});return"LAST"===e.limitType?Nu(t,t.limit,"L"):t}function Ef(e,t){return new pf(t.largestBatchId,hl(e.Jt,t.overlayMutation))}function Sf(e,t){var n=t.path.lastSegment();return[e,El(t.path.popLast()),n]}var Tf=function(){function e(){oe(this,e)}return ue(e,[{key:"getBundleMetadata",value:function(e,t){return Cf(e).get(t).next((function(e){if(e)return{id:(t=e).bundleId,createTime:kf(t.createTime),version:t.version};var t}))}},{key:"saveBundleMetadata",value:function(e,t){return Cf(e).put({bundleId:(n=t).id,createTime:Af($c(n.createTime)),version:n.version});var n}},{key:"getNamedQuery",value:function(e,t){return _f(e).get(t).next((function(e){if(e)return{name:(t=e).name,query:If(t.bundledQuery),readTime:kf(t.readTime)};var t}))}},{key:"saveNamedQuery",value:function(e,t){return _f(e).put(function(e){return{name:e.name,readTime:Af($c(e.readTime)),bundledQuery:e.bundledQuery}}(t))}}]),e}();function Cf(e){return ff(e,"bundles")}function _f(e){return ff(e,"namedQueries")}var Nf=function(){function e(t,n){oe(this,e),this.M=t,this.userId=n}return ue(e,[{key:"getOverlay",value:function(e,t){var n=this;return Df(e).get(Sf(this.userId,t)).next((function(e){return e?Ef(n.M,e):null}))}},{key:"saveOverlays",value:function(e,t,n){var r=this,i=[];return n.forEach((function(n,a){var o=new pf(t,a);i.push(r.Xt(e,o))})),$l.waitFor(i)}},{key:"removeOverlaysForBatchId",value:function(e,t,n){var r=this,i=new Set;t.forEach((function(e){return i.add(El(e.getCollectionPath()))}));var a=[];return i.forEach((function(t){var i=IDBKeyRange.bound([r.userId,t,n],[r.userId,t,n+1],!1,!0);a.push(Df(e).Qt("collectionPathOverlayIndex",i))})),$l.waitFor(a)}},{key:"getOverlaysForCollection",value:function(e,t,n){var r=this,i=Oc(),a=El(t),o=IDBKeyRange.bound([this.userId,a,n],[this.userId,a,Number.POSITIVE_INFINITY],!0);return Df(e).qt("collectionPathOverlayIndex",o).next((function(e){var t,n=ce(e);try{for(n.s();!(t=n.n()).done;){var a=t.value,o=Ef(r.M,a);i.set(o.getKey(),o)}}catch(s){n.e(s)}finally{n.f()}return i}))}},{key:"getOverlaysForCollectionGroup",value:function(e,t,n,r){var i,a=this,o=Oc(),s=IDBKeyRange.bound([this.userId,t,n],[this.userId,t,Number.POSITIVE_INFINITY],!0);return Df(e).Wt({index:"collectionGroupOverlayIndex",range:s},(function(e,t,n){var s=Ef(a.M,t);o.size()<r||s.largestBatchId===i?(o.set(s.getKey(),s),i=s.largestBatchId):n.done()})).next((function(){return o}))}},{key:"Xt",value:function(e,t){return Df(e).put(function(e,t,n){var r=s(Sf(t,n.mutation.key),3);r[0];return{userId:t,collectionPath:r[1],documentId:r[2],collectionGroup:n.mutation.key.getCollectionGroup(),largestBatchId:n.largestBatchId,overlayMutation:fl(e.Jt,n.mutation)}}(this.M,this.userId,t))}}],[{key:"Yt",value:function(t,n){return new e(t,n.uid||"")}}]),e}();function Df(e){return ff(e,"documentOverlays")}var Of=function(){function e(){oe(this,e)}return ue(e,[{key:"Zt",value:function(e,t){this.te(e,t),t.ee()}},{key:"te",value:function(e,t){if("nullValue"in e)this.ne(t,5);else if("booleanValue"in e)this.ne(t,10),t.se(e.booleanValue?1:0);else if("integerValue"in e)this.ne(t,15),t.se(hs(e.integerValue));else if("doubleValue"in e){var n=hs(e.doubleValue);isNaN(n)?this.ne(t,13):(this.ne(t,15),ks(n)?t.se(0):t.se(n))}else if("timestampValue"in e){var r=e.timestampValue;this.ne(t,20),"string"==typeof r?t.ie(r):(t.ie("".concat(r.seconds||"")),t.se(r.nanos||0))}else if("stringValue"in e)this.re(e.stringValue,t),this.oe(t);else if("bytesValue"in e)this.ne(t,30),t.ue(ds(e.bytesValue)),this.oe(t);else if("referenceValue"in e)this.ae(e.referenceValue,t);else if("geoPointValue"in e){var i=e.geoPointValue;this.ne(t,45),t.se(i.latitude||0),t.se(i.longitude||0)}else"mapValue"in e?Us(e)?this.ne(t,Number.MAX_SAFE_INTEGER):(this.ce(e.mapValue,t),this.oe(t)):"arrayValue"in e?(this.he(e.arrayValue,t),this.oe(t)):Ro()}},{key:"re",value:function(e,t){this.ne(t,25),this.le(e,t)}},{key:"le",value:function(e,t){t.ie(e)}},{key:"ce",value:function(e,t){var n=e.fields||{};this.ne(t,55);for(var r=0,i=Object.keys(n);r<i.length;r++){var a=i[r];this.re(a,t),this.te(n[a],t)}}},{key:"he",value:function(e,t){var n=e.values||[];this.ne(t,50);var r,i=ce(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;this.te(a,t)}}catch(o){i.e(o)}finally{i.f()}}},{key:"ae",value:function(e,t){var n=this;this.ne(t,37),ws.fromName(e).path.forEach((function(e){n.ne(t,60),n.le(e,t)}))}},{key:"ne",value:function(e,t){e.se(t)}},{key:"oe",value:function(e){e.se(2)}}]),e}();function Rf(e){if(0===e)return 8;var t=0;return e>>4==0&&(t+=4,e<<=4),e>>6==0&&(t+=2,e<<=2),e>>7==0&&(t+=1),t}function Pf(e){var t=64-function(e){for(var t=0,n=0;n<8;++n){var r=Rf(255&e[n]);if(t+=r,8!==r)break}return t}(e);return Math.ceil(t/8)}Of.fe=new Of;var Mf=function(){function e(){oe(this,e),this.buffer=new Uint8Array(1024),this.position=0}return ue(e,[{key:"de",value:function(e){for(var t=e[Symbol.iterator](),n=t.next();!n.done;)this._e(n.value),n=t.next();this.we()}},{key:"me",value:function(e){for(var t=e[Symbol.iterator](),n=t.next();!n.done;)this.ge(n.value),n=t.next();this.ye()}},{key:"pe",value:function(e){var t,n=ce(e);try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.charCodeAt(0);if(i<128)this._e(i);else if(i<2048)this._e(960|i>>>6),this._e(128|63&i);else if(r<"\ud800"||"\udbff"<r)this._e(480|i>>>12),this._e(128|63&i>>>6),this._e(128|63&i);else{var a=r.codePointAt(0);this._e(240|a>>>18),this._e(128|63&a>>>12),this._e(128|63&a>>>6),this._e(128|63&a)}}}catch(o){n.e(o)}finally{n.f()}this.we()}},{key:"Ie",value:function(e){var t,n=ce(e);try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.charCodeAt(0);if(i<128)this.ge(i);else if(i<2048)this.ge(960|i>>>6),this.ge(128|63&i);else if(r<"\ud800"||"\udbff"<r)this.ge(480|i>>>12),this.ge(128|63&i>>>6),this.ge(128|63&i);else{var a=r.codePointAt(0);this.ge(240|a>>>18),this.ge(128|63&a>>>12),this.ge(128|63&a>>>6),this.ge(128|63&a)}}}catch(o){n.e(o)}finally{n.f()}this.ye()}},{key:"Te",value:function(e){var t=this.Ee(e),n=Pf(t);this.Ae(1+n),this.buffer[this.position++]=255&n;for(var r=t.length-n;r<t.length;++r)this.buffer[this.position++]=255&t[r]}},{key:"Re",value:function(e){var t=this.Ee(e),n=Pf(t);this.Ae(1+n),this.buffer[this.position++]=~(255&n);for(var r=t.length-n;r<t.length;++r)this.buffer[this.position++]=~(255&t[r])}},{key:"be",value:function(){this.Pe(255),this.Pe(255)}},{key:"Ve",value:function(){this.ve(255),this.ve(255)}},{key:"reset",value:function(){this.position=0}},{key:"seed",value:function(e){this.Ae(e.length),this.buffer.set(e,this.position),this.position+=e.length}},{key:"Se",value:function(){return this.buffer.slice(0,this.position)}},{key:"Ee",value:function(e){var t=function(e){var t=new DataView(new ArrayBuffer(8));return t.setFloat64(0,e,!1),new Uint8Array(t.buffer)}(e),n=0!=(128&t[0]);t[0]^=n?255:128;for(var r=1;r<t.length;++r)t[r]^=n?255:0;return t}},{key:"_e",value:function(e){var t=255&e;0===t?(this.Pe(0),this.Pe(255)):255===t?(this.Pe(255),this.Pe(0)):this.Pe(t)}},{key:"ge",value:function(e){var t=255&e;0===t?(this.ve(0),this.ve(255)):255===t?(this.ve(255),this.ve(0)):this.ve(e)}},{key:"we",value:function(){this.Pe(0),this.Pe(1)}},{key:"ye",value:function(){this.ve(0),this.ve(1)}},{key:"Pe",value:function(e){this.Ae(1),this.buffer[this.position++]=e}},{key:"ve",value:function(e){this.Ae(1),this.buffer[this.position++]=~e}},{key:"Ae",value:function(e){var t=e+this.position;if(!(t<=this.buffer.length)){var n=2*this.buffer.length;n<t&&(n=t);var r=new Uint8Array(n);r.set(this.buffer),this.buffer=r}}}]),e}(),Bf=function(){function e(t){oe(this,e),this.De=t}return ue(e,[{key:"ue",value:function(e){this.De.de(e)}},{key:"ie",value:function(e){this.De.pe(e)}},{key:"se",value:function(e){this.De.Te(e)}},{key:"ee",value:function(){this.De.be()}}]),e}(),Lf=function(){function e(t){oe(this,e),this.De=t}return ue(e,[{key:"ue",value:function(e){this.De.me(e)}},{key:"ie",value:function(e){this.De.Ie(e)}},{key:"se",value:function(e){this.De.Re(e)}},{key:"ee",value:function(){this.De.Ve()}}]),e}(),jf=function(){function e(){oe(this,e),this.De=new Mf,this.Ce=new Bf(this.De),this.xe=new Lf(this.De)}return ue(e,[{key:"seed",value:function(e){this.De.seed(e)}},{key:"Ne",value:function(e){return 0===e?this.Ce:this.xe}},{key:"Se",value:function(){return this.De.Se()}},{key:"reset",value:function(){this.De.reset()}}]),e}(),Uf=function(){function e(t,n,r,i){oe(this,e),this.indexId=t,this.documentKey=n,this.arrayValue=r,this.directionalValue=i}return ue(e,[{key:"ke",value:function(){var t=this.directionalValue.length,n=0===t||255===this.directionalValue[t-1]?t+1:t,r=new Uint8Array(n);return r.set(this.directionalValue,0),n!==t?r.set([0],this.directionalValue.length):++r[r.length-1],new e(this.indexId,this.documentKey,this.arrayValue,r)}}]),e}();function Ff(e,t){var n=e.indexId-t.indexId;return 0!==n?n:0!==(n=Qf(e.arrayValue,t.arrayValue))?n:0!==(n=Qf(e.directionalValue,t.directionalValue))?n:ws.comparator(e.documentKey,t.documentKey)}function Qf(e,t){for(var n=0;n<e.length&&n<t.length;++n){var r=e[n]-t[n];if(0!==r)return r}return e.length-t.length}var Vf=function(){function e(t){oe(this,e),this.collectionId=null!=t.collectionGroup?t.collectionGroup:t.path.lastSegment(),this.Me=t.orderBy,this.Oe=[];var n,r=ce(t.filters);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.S()?this.Fe=i:this.Oe.push(i)}}catch(a){r.e(a)}finally{r.f()}}return ue(e,[{key:"$e",value:function(e){var t=Hs(e);if(void 0!==t&&!this.Be(t))return!1;for(var n=Ks(e),r=0,i=0;r<n.length&&this.Be(n[r]);++r);if(r===n.length)return!0;if(void 0!==this.Fe){var a=n[r];if(!this.Le(this.Fe,a)||!this.Ue(this.Me[i++],a))return!1;++r}for(;r<n.length;++r){var o=n[r];if(i>=this.Me.length||!this.Ue(this.Me[i++],o))return!1}return!0}},{key:"Be",value:function(e){var t,n=ce(this.Oe);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(this.Le(r,e))return!0}}catch(i){n.e(i)}finally{n.f()}return!1}},{key:"Le",value:function(e,t){if(void 0===e||!e.field.isEqual(t.fieldPath))return!1;var n="array-contains"===e.op||"array-contains-any"===e.op;return 2===t.kind===n}},{key:"Ue",value:function(e,t){return!!e.field.isEqual(t.fieldPath)&&(0===t.kind&&"asc"===e.dir||1===t.kind&&"desc"===e.dir)}}]),e}(),zf=function(){function e(){oe(this,e),this.qe=new qf}return ue(e,[{key:"addToCollectionParentIndex",value:function(e,t){return this.qe.add(t),$l.resolve()}},{key:"getCollectionParents",value:function(e,t){return $l.resolve(this.qe.getEntries(t))}},{key:"addFieldIndex",value:function(e,t){return $l.resolve()}},{key:"deleteFieldIndex",value:function(e,t){return $l.resolve()}},{key:"getDocumentsMatchingTarget",value:function(e,t){return $l.resolve(null)}},{key:"getFieldIndex",value:function(e,t){return $l.resolve(null)}},{key:"getFieldIndexes",value:function(e,t){return $l.resolve([])}},{key:"getNextCollectionGroupToUpdate",value:function(e){return $l.resolve(null)}},{key:"updateCollectionGroup",value:function(e,t,n){return $l.resolve()}},{key:"updateIndexEntries",value:function(e,t){return $l.resolve()}}]),e}(),qf=function(){function e(){oe(this,e),this.index={}}return ue(e,[{key:"add",value:function(e){var t=e.lastSegment(),n=e.popLast(),r=this.index[t]||new Ec(as.comparator),i=!r.has(n);return this.index[t]=r.add(n),i}},{key:"has",value:function(e){var t=e.lastSegment(),n=e.popLast(),r=this.index[t];return r&&r.has(n)}},{key:"getEntries",value:function(e){return(this.index[e]||new Ec(as.comparator)).toArray()}}]),e}(),Gf=new Uint8Array(0),Hf=function(){function e(t){oe(this,e),this.user=t,this.Ge=new qf,this.Ke=new bc((function(e){return nu(e)}),(function(e,t){return ru(e,t)})),this.uid=t.uid||""}return ue(e,[{key:"addToCollectionParentIndex",value:function(e,t){var n=this;if(!this.Ge.has(t)){var r=t.lastSegment(),i=t.popLast();e.addOnCommittedListener((function(){n.Ge.add(t)}));var a={collectionId:r,parent:El(i)};return Kf(e).put(a)}return $l.resolve()}},{key:"getCollectionParents",value:function(e,t){var n=[],r=IDBKeyRange.bound([t,""],[Zo(t),""],!1,!0);return Kf(e).qt(r).next((function(e){var r,i=ce(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a.collectionId!==t)break;n.push(Cl(a.parent))}}catch(o){i.e(o)}finally{i.f()}return n}))}},{key:"addFieldIndex",value:function(e,t){var n=Jf(e),r=function(e){return{indexId:e.indexId,collectionGroup:e.collectionGroup,fields:e.fields.map((function(e){return[e.fieldPath.canonicalString(),e.kind]}))}}(t);return delete r.indexId,n.add(r).next()}},{key:"deleteFieldIndex",value:function(e,t){var n=Jf(e),r=Yf(e),i=Wf(e);return n.delete(t.indexId).next((function(){return r.delete(IDBKeyRange.bound([t.indexId],[t.indexId+1],!1,!0))})).next((function(){return i.delete(IDBKeyRange.bound([t.indexId],[t.indexId+1],!1,!0))}))}},{key:"getDocumentsMatchingTarget",value:function(e,t){var n=this,r=Wf(e),i=!0,a=new Map;return $l.forEach(this.Qe(t),(function(t){return n.getFieldIndex(e,t).next((function(e){i&&(i=!!e),a.set(t,e)}))})).next((function(){if(i){var e=Mc();return $l.forEach(a,(function(i,a){var o;_o("IndexedDbIndexManager","Using index ".concat((o=i,"id=".concat(o.indexId,"|cg=").concat(o.collectionGroup,"|f=").concat(o.fields.map((function(e){return"".concat(e.fieldPath,":").concat(e.kind)})).join(",")))," to execute ").concat(nu(t)));var s=function(e,t){var n=Hs(t);if(void 0===n)return null;var r,i=ce(au(e,n.fieldPath));try{for(i.s();!(r=i.n()).done;){var a=r.value;switch(a.op){case"array-contains-any":return a.value.arrayValue.values||[];case"array-contains":return[a.value]}}}catch(o){i.e(o)}finally{i.f()}return null}(a,i),u=function(e,t){var n,r=new Map,i=ce(Ks(t));try{for(i.s();!(n=i.n()).done;){var a,o=n.value,s=ce(au(e,o.fieldPath));try{for(s.s();!(a=s.n()).done;){var u=a.value;switch(u.op){case"==":case"in":r.set(o.fieldPath.canonicalString(),u.value);break;case"not-in":case"!=":return r.set(o.fieldPath.canonicalString(),u.value),Array.from(r.values())}}}catch(c){s.e(c)}finally{s.f()}}}catch(c){i.e(c)}finally{i.f()}return null}(a,i),c=function(e,t){var n,r,i=[],a=!0,o=ce(Ks(t));try{for(o.s();!(n=o.n()).done;){var s,u=n.value,c=void 0,l=!0,f=ce(au(e,u.fieldPath));try{for(f.s();!(s=f.n()).done;){var h=s.value,d=void 0,p=!0;switch(h.op){case"<":case"<=":d="nullValue"in(r=h.value)?Is:"booleanValue"in r?{booleanValue:!1}:"integerValue"in r||"doubleValue"in r?{doubleValue:NaN}:"timestampValue"in r?{timestampValue:{seconds:Number.MIN_SAFE_INTEGER}}:"stringValue"in r?{stringValue:""}:"bytesValue"in r?{bytesValue:""}:"referenceValue"in r?Os(ys.empty(),ws.empty()):"geoPointValue"in r?{geoPointValue:{latitude:-90,longitude:-180}}:"arrayValue"in r?{arrayValue:{}}:"mapValue"in r?{mapValue:{}}:Ro();break;case"==":case"in":case">=":d=h.value;break;case">":d=h.value,p=!1;break;case"!=":case"not-in":d=Is}Fs(c,d)===d&&(c=d,l=p)}}catch(g){f.e(g)}finally{f.f()}if(null!==e.startAt)for(var v=0;v<e.orderBy.length;++v)if(e.orderBy[v].field.isEqual(u.fieldPath)){var m=e.startAt.position[v];Fs(c,m)===m&&(c=m,l=e.startAt.inclusive);break}if(void 0===c)return null;i.push(c),a&&(a=l)}}catch(g){o.e(g)}finally{o.f()}return new vu(i,a)}(a,i),l=function(e,t){var n,r,i=[],a=!0,o=ce(Ks(t));try{for(o.s();!(n=o.n()).done;){var s,u=n.value,c=void 0,l=!0,f=ce(au(e,u.fieldPath));try{for(f.s();!(s=f.n()).done;){var h=s.value,d=void 0,p=!0;switch(h.op){case">=":case">":d="nullValue"in(r=h.value)?{booleanValue:!1}:"booleanValue"in r?{doubleValue:NaN}:"integerValue"in r||"doubleValue"in r?{timestampValue:{seconds:Number.MIN_SAFE_INTEGER}}:"timestampValue"in r?{stringValue:""}:"stringValue"in r?{bytesValue:""}:"bytesValue"in r?Os(ys.empty(),ws.empty()):"referenceValue"in r?{geoPointValue:{latitude:-90,longitude:-180}}:"geoPointValue"in r?{arrayValue:{}}:"arrayValue"in r?{mapValue:{}}:"mapValue"in r?xs:Ro(),p=!1;break;case"==":case"in":case"<=":d=h.value;break;case"<":d=h.value,p=!1;break;case"!=":case"not-in":d=xs}Qs(c,d)===d&&(c=d,l=p)}}catch(g){f.e(g)}finally{f.f()}if(null!==e.endAt)for(var v=0;v<e.orderBy.length;++v)if(e.orderBy[v].field.isEqual(u.fieldPath)){var m=e.endAt.position[v];Qs(c,m)===m&&(c=m,l=e.endAt.inclusive);break}if(void 0===c)return null;i.push(c),a&&(a=l)}}catch(g){o.e(g)}finally{o.f()}return new vu(i,a)}(a,i),f=n.je(i,a,c),h=n.je(i,a,l),d=n.We(i,a,u),p=n.ze(i.indexId,s,f,!!c&&c.inclusive,h,!!l&&l.inclusive,d);return $l.forEach(p,(function(n){return r.Kt(n,t.limit).next((function(t){t.forEach((function(t){e=e.add(new ws(Cl(t.documentKey)))}))}))}))})).next((function(){return e}))}return $l.resolve(null)}))}},{key:"Qe",value:function(e){var t=this.Ke.get(e);return t||(t=[e],this.Ke.set(e,t),t)}},{key:"ze",value:function(e,t,n,r,i,a,o){for(var s=this,u=(null!=t?t.length:1)*Math.max(null!=n?n.length:1,null!=i?i.length:1),c=u/(null!=t?t.length:1),l=[],f=function(u){var f=t?s.He(t[u/c]):Gf,h=n?s.Je(e,f,n[u%c],r):s.Ye(e),d=i?s.Xe(e,f,i[u%c],a):s.Ye(e+1);l.push.apply(l,ne(s.createRange(h,d,o.map((function(t){return s.Je(e,f,t,!0)})))))},h=0;h<u;++h)f(h);return l}},{key:"Je",value:function(e,t,n,r){var i=new Uf(e,ws.empty(),t,n);return r?i:i.ke()}},{key:"Xe",value:function(e,t,n,r){var i=new Uf(e,ws.empty(),t,n);return r?i.ke():i}},{key:"Ye",value:function(e){return new Uf(e,ws.empty(),Gf,Gf)}},{key:"getFieldIndex",value:function(e,t){var n=new Vf(t),r=null!=t.collectionGroup?t.collectionGroup:t.path.lastSegment();return this.getFieldIndexes(e,r).next((function(e){var t=e.filter((function(e){return n.$e(e)}));return t.sort((function(e,t){return t.fields.length-e.fields.length})),t.length>0?t[0]:null}))}},{key:"Ze",value:function(e,t){var n,r=new jf,i=ce(Ks(e));try{for(i.s();!(n=i.n()).done;){var a=n.value,o=t.data.field(a.fieldPath);if(null==o)return null;var s=r.Ne(a.kind);Of.fe.Zt(o,s)}}catch(u){i.e(u)}finally{i.f()}return r.Se()}},{key:"He",value:function(e){var t=new jf;return Of.fe.Zt(e,t.Ne(0)),t.Se()}},{key:"We",value:function(e,t,n){if(null===n)return[];var r=[];r.push(new jf);var i,a=0,o=ce(Ks(e));try{for(o.s();!(i=o.n()).done;){var s,u=i.value,c=n[a++],l=ce(r);try{for(l.s();!(s=l.n()).done;){var f=s.value;if(this.tn(t,u.fieldPath)&&Ps(c))r=this.en(r,u,c);else{var h=f.Ne(u.kind);Of.fe.Zt(c,h)}}}catch(d){l.e(d)}finally{l.f()}}}catch(d){o.e(d)}finally{o.f()}return this.nn(r)}},{key:"je",value:function(e,t,n){return null==n?null:this.We(e,t,n.position)}},{key:"nn",value:function(e){for(var t=[],n=0;n<e.length;++n)t[n]=e[n].Se();return t}},{key:"en",value:function(e,t,n){var r,i=ne(e),a=[],o=ce(n.arrayValue.values||[]);try{for(o.s();!(r=o.n()).done;){var s,u=r.value,c=ce(i);try{for(c.s();!(s=c.n()).done;){var l=s.value,f=new jf;f.seed(l.Se()),Of.fe.Zt(u,f.Ne(t.kind)),a.push(f)}}catch(h){c.e(h)}finally{c.f()}}}catch(h){o.e(h)}finally{o.f()}return a}},{key:"tn",value:function(e,t){return!!e.filters.find((function(e){return e instanceof ou&&e.field.isEqual(t)&&("in"===e.op||"not-in"===e.op)}))}},{key:"getFieldIndexes",value:function(e,t){var n=this,r=Jf(e),i=Yf(e);return(t?r.qt("collectionGroupIndex",IDBKeyRange.bound(t,t)):r.qt()).next((function(e){var t=[];return $l.forEach(e,(function(e){return i.get([e.indexId,n.uid]).next((function(n){t.push(function(e,t){var n=t?new Js(t.sequenceNumber,new Zs(kf(t.readTime),new ws(Cl(t.documentKey)),t.largestBatchId)):Js.empty(),r=e.fields.map((function(e){var t=s(e,2),n=t[0],r=t[1];return new Ws(ss.fromServerFormat(n),r)}));return new Gs(e.indexId,e.collectionGroup,r,n)}(e,n))}))})).next((function(){return t}))}))}},{key:"getNextCollectionGroupToUpdate",value:function(e){return this.getFieldIndexes(e).next((function(e){return 0===e.length?null:(e.sort((function(e,t){var n=e.indexState.sequenceNumber-t.indexState.sequenceNumber;return 0!==n?n:Yo(e.collectionGroup,t.collectionGroup)})),e[0].collectionGroup)}))}},{key:"updateCollectionGroup",value:function(e,t,n){var r=this,i=Jf(e),a=Yf(e);return this.sn(e).next((function(e){return i.qt("collectionGroupIndex",IDBKeyRange.bound(t,t)).next((function(t){return $l.forEach(t,(function(t){return a.put(function(e,t,n,r){return{indexId:e,uid:t.uid||"",sequenceNumber:n,readTime:Af(r.readTime),documentKey:El(r.documentKey.path),largestBatchId:r.largestBatchId}}(t.indexId,r.user,e,n))}))}))}))}},{key:"updateIndexEntries",value:function(e,t){var n=this,r=new Map;return $l.forEach(t,(function(t,i){var a=r.get(t.collectionGroup);return(a?$l.resolve(a):n.getFieldIndexes(e,t.collectionGroup)).next((function(a){return r.set(t.collectionGroup,a),$l.forEach(a,(function(r){return n.rn(e,t,r).next((function(t){var a=n.on(i,r);return t.isEqual(a)?$l.resolve():n.un(e,i,t,a)}))}))}))}))}},{key:"an",value:function(e,t,n){return Wf(e).put({indexId:n.indexId,uid:this.uid,arrayValue:n.arrayValue,directionalValue:n.directionalValue,documentKey:El(t.key.path)})}},{key:"cn",value:function(e,t,n){return Wf(e).delete([n.indexId,this.uid,n.arrayValue,n.directionalValue,El(t.key.path)])}},{key:"rn",value:function(e,t,n){var r=Wf(e),i=new Ec(Ff);return r.Wt({index:"documentKeyIndex",range:IDBKeyRange.only([n.indexId,this.uid,El(t.path)])},(function(e,r){i=i.add(new Uf(n.indexId,t,r.arrayValue,r.directionalValue))})).next((function(){return i}))}},{key:"on",value:function(e,t){var n=new Ec(Ff),r=this.Ze(t,e);if(null==r)return n;var i=Hs(t);if(null!=i){var a=e.data.field(i.fieldPath);if(Ps(a)){var o,s=ce(a.arrayValue.values||[]);try{for(s.s();!(o=s.n()).done;){var u=o.value;n=n.add(new Uf(t.indexId,e.key,this.He(u),r))}}catch(c){s.e(c)}finally{s.f()}}}else n=n.add(new Uf(t.indexId,e.key,Gf,r));return n}},{key:"un",value:function(e,t,n,r){var i=this;_o("IndexedDbIndexManager","Updating index entries for document '%s'",t.key);var a=[];return function(e,t,n,r,i){for(var a=e.getIterator(),o=t.getIterator(),s=Tc(a),u=Tc(o);s||u;){var c=!1,l=!1;if(s&&u){var f=n(s,u);f<0?l=!0:f>0&&(c=!0)}else null!=s?l=!0:c=!0;c?(r(u),u=Tc(o)):l?(i(s),s=Tc(a)):(s=Tc(a),u=Tc(o))}}(n,r,Ff,(function(n){a.push(i.an(e,t,n))}),(function(n){a.push(i.cn(e,t,n))})),$l.waitFor(a)}},{key:"sn",value:function(e){var t=1;return Yf(e).Wt({index:"sequenceNumberIndex",reverse:!0,range:IDBKeyRange.upperBound([this.uid,Number.MAX_SAFE_INTEGER])},(function(e,n,r){r.done(),t=n.sequenceNumber+1})).next((function(){return t}))}},{key:"createRange",value:function(e,t,n){n=n.sort((function(e,t){return Ff(e,t)})).filter((function(e,t,n){return!t||0!==Ff(e,n[t-1])}));var r=[];r.push(e);var i,a=ce(n);try{for(a.s();!(i=a.n()).done;){var o=i.value,s=Ff(o,e),u=Ff(o,t);if(0===s)r[0]=e.ke();else if(s>0&&u<0)r.push(o),r.push(o.ke());else if(u>0)break}}catch(f){a.e(f)}finally{a.f()}r.push(t);for(var c=[],l=0;l<r.length;l+=2)c.push(IDBKeyRange.bound([r[l].indexId,this.uid,r[l].arrayValue,r[l].directionalValue,""],[r[l+1].indexId,this.uid,r[l+1].arrayValue,r[l+1].directionalValue,""]));return c}}]),e}();function Kf(e){return ff(e,"collectionParents")}function Wf(e){return ff(e,"indexEntries")}function Jf(e){return ff(e,"indexConfiguration")}function Yf(e){return ff(e,"indexState")}var Xf={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0},Zf=function(){function e(t,n,r){oe(this,e),this.cacheSizeCollectionThreshold=t,this.percentileToCollect=n,this.maximumSequenceNumbersToCollect=r}return ue(e,null,[{key:"withCacheSize",value:function(t){return new e(t,e.DEFAULT_COLLECTION_PERCENTILE,e.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}]),e}();function $f(e,t,n){var r=e.store("mutations"),i=e.store("documentMutations"),a=[],o=IDBKeyRange.only(n.batchId),s=0,u=r.Wt({range:o},(function(e,t,n){return s++,n.delete()}));a.push(u.next((function(){Po(1===s)})));var c,l=[],f=ce(n.mutations);try{for(f.s();!(c=f.n()).done;){var h=c.value,d=Dl(t,h.key.path,n.batchId);a.push(i.delete(d)),l.push(h.key)}}catch(p){f.e(p)}finally{f.f()}return $l.waitFor(a).next((function(){return l}))}function eh(e){if(!e)return 0;var t;if(e.document)t=e.document;else if(e.unknownDocument)t=e.unknownDocument;else{if(!e.noDocument)throw Ro();t=e.noDocument}return JSON.stringify(t).length}Zf.DEFAULT_COLLECTION_PERCENTILE=10,Zf.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Zf.DEFAULT=new Zf(41943040,Zf.DEFAULT_COLLECTION_PERCENTILE,Zf.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Zf.DISABLED=new Zf(-1,0,0);var th=function(){function e(t,n,r,i){oe(this,e),this.userId=t,this.M=n,this.indexManager=r,this.referenceDelegate=i,this.hn={}}return ue(e,[{key:"checkEmpty",value:function(e){var t=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return rh(e).Wt({index:"userMutationsIndex",range:n},(function(e,n,r){t=!1,r.done()})).next((function(){return t}))}},{key:"addMutationBatch",value:function(e,t,n,r){var i=this,a=ih(e),o=rh(e);return o.add({}).next((function(s){Po("number"==typeof s);var u,c=new hf(s,t,n,r),l=function(e,t,n){var r=n.baseMutations.map((function(t){return fl(e.Jt,t)})),i=n.mutations.map((function(t){return fl(e.Jt,t)}));return{userId:t,batchId:n.batchId,localWriteTimeMs:n.localWriteTime.toMillis(),baseMutations:r,mutations:i}}(i.M,i.userId,c),f=[],h=new Ec((function(e,t){return Yo(e.canonicalString(),t.canonicalString())})),d=ce(r);try{for(d.s();!(u=d.n()).done;){var p=u.value,v=Dl(i.userId,p.key.path,s);h=h.add(p.key.path.popLast()),f.push(o.put(l)),f.push(a.put(v,Ol))}}catch(m){d.e(m)}finally{d.f()}return h.forEach((function(t){f.push(i.indexManager.addToCollectionParentIndex(e,t))})),e.addOnCommittedListener((function(){i.hn[s]=c.keys()})),$l.waitFor(f).next((function(){return c}))}))}},{key:"lookupMutationBatch",value:function(e,t){var n=this;return rh(e).get(t).next((function(e){return e?(Po(e.userId===n.userId),bf(n.M,e)):null}))}},{key:"ln",value:function(e,t){var n=this;return this.hn[t]?$l.resolve(this.hn[t]):this.lookupMutationBatch(e,t).next((function(e){if(e){var r=e.keys();return n.hn[t]=r,r}return null}))}},{key:"getNextMutationBatchAfterBatchId",value:function(e,t){var n=this,r=t+1,i=IDBKeyRange.lowerBound([this.userId,r]),a=null;return rh(e).Wt({index:"userMutationsIndex",range:i},(function(e,t,i){t.userId===n.userId&&(Po(t.batchId>=r),a=bf(n.M,t)),i.done()})).next((function(){return a}))}},{key:"getHighestUnacknowledgedBatchId",value:function(e){var t=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return rh(e).Wt({index:"userMutationsIndex",range:t,reverse:!0},(function(e,t,r){n=t.batchId,r.done()})).next((function(){return n}))}},{key:"getAllMutationBatches",value:function(e){var t=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return rh(e).qt("userMutationsIndex",n).next((function(e){return e.map((function(e){return bf(t.M,e)}))}))}},{key:"getAllMutationBatchesAffectingDocumentKey",value:function(e,t){var n=this,r=Nl(this.userId,t.path),i=IDBKeyRange.lowerBound(r),a=[];return ih(e).Wt({range:i},(function(r,i,o){var u=s(r,3),c=u[0],l=u[1],f=u[2],h=Cl(l);if(c===n.userId&&t.path.isEqual(h))return rh(e).get(f).next((function(e){if(!e)throw Ro();Po(e.userId===n.userId),a.push(bf(n.M,e))}));o.done()})).next((function(){return a}))}},{key:"getAllMutationBatchesAffectingDocumentKeys",value:function(e,t){var n=this,r=new Ec(Yo),i=[];return t.forEach((function(t){var a=Nl(n.userId,t.path),o=IDBKeyRange.lowerBound(a),u=ih(e).Wt({range:o},(function(e,i,a){var o=s(e,3),u=o[0],c=o[1],l=o[2],f=Cl(c);u===n.userId&&t.path.isEqual(f)?r=r.add(l):a.done()}));i.push(u)})),$l.waitFor(i).next((function(){return n.fn(e,r)}))}},{key:"getAllMutationBatchesAffectingQuery",value:function(e,t){var n=this,r=t.path,i=r.length+1,a=Nl(this.userId,r),o=IDBKeyRange.lowerBound(a),u=new Ec(Yo);return ih(e).Wt({range:o},(function(e,t,a){var o=s(e,3),c=o[0],l=o[1],f=o[2],h=Cl(l);c===n.userId&&r.isPrefixOf(h)?h.length===i&&(u=u.add(f)):a.done()})).next((function(){return n.fn(e,u)}))}},{key:"fn",value:function(e,t){var n=this,r=[],i=[];return t.forEach((function(t){i.push(rh(e).get(t).next((function(e){if(null===e)throw Ro();Po(e.userId===n.userId),r.push(bf(n.M,e))})))})),$l.waitFor(i).next((function(){return r}))}},{key:"removeMutationBatch",value:function(e,t){var n=this;return $f(e.Ht,this.userId,t).next((function(r){return e.addOnCommittedListener((function(){n.dn(t.batchId)})),$l.forEach(r,(function(t){return n.referenceDelegate.markPotentiallyOrphaned(e,t)}))}))}},{key:"dn",value:function(e){delete this.hn[e]}},{key:"performConsistencyCheck",value:function(e){var t=this;return this.checkEmpty(e).next((function(n){if(!n)return $l.resolve();var r=IDBKeyRange.lowerBound([t.userId]),i=[];return ih(e).Wt({range:r},(function(e,n,r){if(e[0]===t.userId){var a=Cl(e[1]);i.push(a)}else r.done()})).next((function(){Po(0===i.length)}))}))}},{key:"containsKey",value:function(e,t){return nh(e,this.userId,t)}},{key:"_n",value:function(e){var t=this;return ah(e).get(this.userId).next((function(e){return e||{userId:t.userId,lastAcknowledgedBatchId:-1,lastStreamToken:""}}))}}],[{key:"Yt",value:function(t,n,r,i){return Po(""!==t.uid),new e(t.isAuthenticated()?t.uid:"",n,r,i)}}]),e}();function nh(e,t,n){var r=Nl(t,n.path),i=r[1],a=IDBKeyRange.lowerBound(r),o=!1;return ih(e).Wt({range:a,jt:!0},(function(e,n,r){var a=s(e,3),u=a[0],c=a[1];a[2];u===t&&c===i&&(o=!0),r.done()})).next((function(){return o}))}function rh(e){return ff(e,"mutations")}function ih(e){return ff(e,"documentMutations")}function ah(e){return ff(e,"mutationQueues")}var oh=function(){function e(t){oe(this,e),this.wn=t}return ue(e,[{key:"next",value:function(){return this.wn+=2,this.wn}}],[{key:"mn",value:function(){return new e(0)}},{key:"gn",value:function(){return new e(-1)}}]),e}(),sh=function(){function e(t,n){oe(this,e),this.referenceDelegate=t,this.M=n}return ue(e,[{key:"allocateTargetId",value:function(e){var t=this;return this.yn(e).next((function(n){var r=new oh(n.highestTargetId);return n.highestTargetId=r.next(),t.pn(e,n).next((function(){return n.highestTargetId}))}))}},{key:"getLastRemoteSnapshotVersion",value:function(e){return this.yn(e).next((function(e){return es.fromTimestamp(new $o(e.lastRemoteSnapshotVersion.seconds,e.lastRemoteSnapshotVersion.nanoseconds))}))}},{key:"getHighestSequenceNumber",value:function(e){return this.yn(e).next((function(e){return e.highestListenSequenceNumber}))}},{key:"setTargetsMetadata",value:function(e,t,n){var r=this;return this.yn(e).next((function(i){return i.highestListenSequenceNumber=t,n&&(i.lastRemoteSnapshotVersion=n.toTimestamp()),t>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=t),r.pn(e,i)}))}},{key:"addTargetData",value:function(e,t){var n=this;return this.In(e,t).next((function(){return n.yn(e).next((function(r){return r.targetCount+=1,n.Tn(t,r),n.pn(e,r)}))}))}},{key:"updateTargetData",value:function(e,t){return this.In(e,t)}},{key:"removeTargetData",value:function(e,t){var n=this;return this.removeMatchingKeysForTargetId(e,t.targetId).next((function(){return uh(e).delete(t.targetId)})).next((function(){return n.yn(e)})).next((function(t){return Po(t.targetCount>0),t.targetCount-=1,n.pn(e,t)}))}},{key:"removeTargets",value:function(e,t,n){var r=this,i=0,a=[];return uh(e).Wt((function(o,s){var u=wf(s);u.sequenceNumber<=t&&null===n.get(u.targetId)&&(i++,a.push(r.removeTargetData(e,u)))})).next((function(){return $l.waitFor(a)})).next((function(){return i}))}},{key:"forEachTarget",value:function(e,t){return uh(e).Wt((function(e,n){var r=wf(n);t(r)}))}},{key:"yn",value:function(e){return ch(e).get("targetGlobalKey").next((function(e){return Po(null!==e),e}))}},{key:"pn",value:function(e,t){return ch(e).put("targetGlobalKey",t)}},{key:"In",value:function(e,t){return uh(e).put(xf(this.M,t))}},{key:"Tn",value:function(e,t){var n=!1;return e.targetId>t.highestTargetId&&(t.highestTargetId=e.targetId,n=!0),e.sequenceNumber>t.highestListenSequenceNumber&&(t.highestListenSequenceNumber=e.sequenceNumber,n=!0),n}},{key:"getTargetCount",value:function(e){return this.yn(e).next((function(e){return e.targetCount}))}},{key:"getTargetData",value:function(e,t){var n=nu(t),r=IDBKeyRange.bound([n,Number.NEGATIVE_INFINITY],[n,Number.POSITIVE_INFINITY]),i=null;return uh(e).Wt({range:r,index:"queryTargetsIndex"},(function(e,n,r){var a=wf(n);ru(t,a.target)&&(i=a,r.done())})).next((function(){return i}))}},{key:"addMatchingKeys",value:function(e,t,n){var r=this,i=[],a=lh(e);return t.forEach((function(t){var o=El(t.path);i.push(a.put({targetId:n,path:o})),i.push(r.referenceDelegate.addReference(e,n,t))})),$l.waitFor(i)}},{key:"removeMatchingKeys",value:function(e,t,n){var r=this,i=lh(e);return $l.forEach(t,(function(t){var a=El(t.path);return $l.waitFor([i.delete([n,a]),r.referenceDelegate.removeReference(e,n,t)])}))}},{key:"removeMatchingKeysForTargetId",value:function(e,t){var n=lh(e),r=IDBKeyRange.bound([t],[t+1],!1,!0);return n.delete(r)}},{key:"getMatchingKeysForTargetId",value:function(e,t){var n=IDBKeyRange.bound([t],[t+1],!1,!0),r=lh(e),i=Mc();return r.Wt({range:n,jt:!0},(function(e,t,n){var r=Cl(e[1]),a=new ws(r);i=i.add(a)})).next((function(){return i}))}},{key:"containsKey",value:function(e,t){var n=El(t.path),r=IDBKeyRange.bound([n],[Zo(n)],!1,!0),i=0;return lh(e).Wt({index:"documentTargetsIndex",jt:!0,range:r},(function(e,t,n){var r=s(e,2),a=r[0];r[1];0!==a&&(i++,n.done())})).next((function(){return i>0}))}},{key:"Et",value:function(e,t){return uh(e).get(t).next((function(e){return e?wf(e):null}))}}]),e}();function uh(e){return ff(e,"targets")}function ch(e){return ff(e,"targetGlobal")}function lh(e){return ff(e,"targetDocuments")}function fh(e){return hh.apply(this,arguments)}function hh(){return hh=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.code===Bo.FAILED_PRECONDITION&&t.message===Xl){e.next=2;break}throw t;case 2:_o("LocalStore","Unexpectedly lost primary lease");case 3:case"end":return e.stop()}}),e)}))),hh.apply(this,arguments)}function dh(e,t){var n=s(e,2),r=n[0],i=n[1],a=s(t,2),o=a[0],u=a[1],c=Yo(r,o);return 0===c?Yo(i,u):c}var ph=function(){function e(t){oe(this,e),this.En=t,this.buffer=new Ec(dh),this.An=0}return ue(e,[{key:"Rn",value:function(){return++this.An}},{key:"bn",value:function(e){var t=[e,this.Rn()];if(this.buffer.size<this.En)this.buffer=this.buffer.add(t);else{var n=this.buffer.last();dh(t,n)<0&&(this.buffer=this.buffer.delete(n).add(t))}}},{key:"maxValue",get:function(){return this.buffer.last()[0]}}]),e}(),vh=function(){function e(t,n){oe(this,e),this.garbageCollector=t,this.asyncQueue=n,this.Pn=!1,this.Vn=null}return ue(e,[{key:"start",value:function(e){-1!==this.garbageCollector.params.cacheSizeCollectionThreshold&&this.vn(e)}},{key:"stop",value:function(){this.Vn&&(this.Vn.cancel(),this.Vn=null)}},{key:"started",get:function(){return null!==this.Vn}},{key:"vn",value:function(e){var t=this,n=this.Pn?3e5:6e4;_o("LruGarbageCollector","Garbage collection scheduled in ".concat(n,"ms")),this.Vn=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",n,ee(ie().mark((function n(){return ie().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.Vn=null,t.Pn=!0,n.prev=1,n.next=4,e.collectGarbage(t.garbageCollector);case 4:n.next=14;break;case 6:if(n.prev=6,n.t0=n.catch(1),!af(n.t0)){n.next=12;break}_o("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",n.t0),n.next=14;break;case 12:return n.next=14,fh(n.t0);case 14:return n.next=16,t.vn(e);case 16:case"end":return n.stop()}}),n,null,[[1,6]])}))))}}]),e}(),mh=function(){function e(t,n){oe(this,e),this.Sn=t,this.params=n}return ue(e,[{key:"calculateTargetCount",value:function(e,t){return this.Sn.Dn(e).next((function(e){return Math.floor(t/100*e)}))}},{key:"nthSequenceNumber",value:function(e,t){var n=this;if(0===t)return $l.resolve(Ko.A);var r=new ph(t);return this.Sn.forEachTarget(e,(function(e){return r.bn(e.sequenceNumber)})).next((function(){return n.Sn.Cn(e,(function(e){return r.bn(e)}))})).next((function(){return r.maxValue}))}},{key:"removeTargets",value:function(e,t,n){return this.Sn.removeTargets(e,t,n)}},{key:"removeOrphanedDocuments",value:function(e,t){return this.Sn.removeOrphanedDocuments(e,t)}},{key:"collect",value:function(e,t){var n=this;return-1===this.params.cacheSizeCollectionThreshold?(_o("LruGarbageCollector","Garbage collection skipped; disabled"),$l.resolve(Xf)):this.getCacheSize(e).next((function(r){return r<n.params.cacheSizeCollectionThreshold?(_o("LruGarbageCollector","Garbage collection skipped; Cache size ".concat(r," is lower than threshold ").concat(n.params.cacheSizeCollectionThreshold)),Xf):n.xn(e,t)}))}},{key:"getCacheSize",value:function(e){return this.Sn.getCacheSize(e)}},{key:"xn",value:function(e,t){var n,r,i,a,o,s,u,c=this,l=Date.now();return this.calculateTargetCount(e,this.params.percentileToCollect).next((function(t){return t>c.params.maximumSequenceNumbersToCollect?(_o("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of ".concat(c.params.maximumSequenceNumbersToCollect," from ").concat(t)),r=c.params.maximumSequenceNumbersToCollect):r=t,a=Date.now(),c.nthSequenceNumber(e,r)})).next((function(r){return n=r,o=Date.now(),c.removeTargets(e,n,t)})).next((function(t){return i=t,s=Date.now(),c.removeOrphanedDocuments(e,n)})).next((function(e){return u=Date.now(),Co()<=rt.DEBUG&&_o("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in ".concat(a-l,"ms\n\tDetermined least recently used ").concat(r," in ")+(o-a)+"ms\n"+"\tRemoved ".concat(i," targets in ")+(s-o)+"ms\n"+"\tRemoved ".concat(e," documents in ")+(u-s)+"ms\n"+"Total Duration: ".concat(u-l,"ms")),$l.resolve({didRun:!0,sequenceNumbersCollected:r,targetsRemoved:i,documentsRemoved:e})}))}}]),e}(),gh=function(){function e(t,n){oe(this,e),this.db=t,this.garbageCollector=function(e,t){return new mh(e,t)}(this,n)}return ue(e,[{key:"Dn",value:function(e){var t=this.Nn(e);return this.db.getTargetCache().getTargetCount(e).next((function(e){return t.next((function(t){return e+t}))}))}},{key:"Nn",value:function(e){var t=0;return this.Cn(e,(function(e){t++})).next((function(){return t}))}},{key:"forEachTarget",value:function(e,t){return this.db.getTargetCache().forEachTarget(e,t)}},{key:"Cn",value:function(e,t){return this.kn(e,(function(e,n){return t(n)}))}},{key:"addReference",value:function(e,t,n){return yh(e,n)}},{key:"removeReference",value:function(e,t,n){return yh(e,n)}},{key:"removeTargets",value:function(e,t,n){return this.db.getTargetCache().removeTargets(e,t,n)}},{key:"markPotentiallyOrphaned",value:function(e,t){return yh(e,t)}},{key:"Mn",value:function(e,t){return function(e,t){var n=!1;return ah(e).zt((function(r){return nh(e,r,t).next((function(e){return e&&(n=!0),$l.resolve(!e)}))})).next((function(){return n}))}(e,t)}},{key:"removeOrphanedDocuments",value:function(e,t){var n=this,r=this.db.getRemoteDocumentCache().newChangeBuffer(),i=[],a=0;return this.kn(e,(function(o,s){if(s<=t){var u=n.Mn(e,o).next((function(t){if(!t)return a++,r.getEntry(e,o).next((function(){return r.removeEntry(o,es.min()),lh(e).delete([0,El(o.path)])}))}));i.push(u)}})).next((function(){return $l.waitFor(i)})).next((function(){return r.apply(e)})).next((function(){return a}))}},{key:"removeTarget",value:function(e,t){var n=t.withSequenceNumber(e.currentSequenceNumber);return this.db.getTargetCache().updateTargetData(e,n)}},{key:"updateLimboDocument",value:function(e,t){return yh(e,t)}},{key:"kn",value:function(e,t){var n,r=lh(e),i=Ko.A;return r.Wt({index:"documentTargetsIndex"},(function(e,r){var a=s(e,2),o=a[0],u=(a[1],r.path),c=r.sequenceNumber;0===o?(i!==Ko.A&&t(new ws(Cl(n)),i),i=c,n=u):i=Ko.A})).next((function(){i!==Ko.A&&t(new ws(Cl(n)),i)}))}},{key:"getCacheSize",value:function(e){return this.db.getRemoteDocumentCache().getSize(e)}}]),e}();function yh(e,t){return lh(e).put(function(e,t){return{targetId:0,path:El(e.path),sequenceNumber:t}}(t,e.currentSequenceNumber))}var Ah=function(){function e(){oe(this,e),this.changes=new bc((function(e){return e.toString()}),(function(e,t){return e.isEqual(t)})),this.changesApplied=!1}return ue(e,[{key:"addEntry",value:function(e){this.assertNotApplied(),this.changes.set(e.key,e)}},{key:"removeEntry",value:function(e,t){this.assertNotApplied(),this.changes.set(e,qs.newInvalidDocument(e).setReadTime(t))}},{key:"getEntry",value:function(e,t){this.assertNotApplied();var n=this.changes.get(t);return void 0!==n?$l.resolve(n):this.getFromCache(e,t)}},{key:"getEntries",value:function(e,t){return this.getAllFromCache(e,t)}},{key:"apply",value:function(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}},{key:"assertNotApplied",value:function(){}}]),e}(),kh=function(){function e(t){oe(this,e),this.M=t}return ue(e,[{key:"setIndexManager",value:function(e){this.indexManager=e}},{key:"addEntry",value:function(e,t,n){return xh(e).put(n)}},{key:"removeEntry",value:function(e,t,n){return xh(e).delete(function(e,t){var n=e.path.toArray();return[n.slice(0,n.length-2),n[n.length-2],yf(t),n[n.length-1]]}(t,n))}},{key:"updateMetadata",value:function(e,t){var n=this;return this.getMetadata(e).next((function(r){return r.byteSize+=t,n.On(e,r)}))}},{key:"getEntry",value:function(e,t){var n=this,r=qs.newInvalidDocument(t);return xh(e).Wt({index:"documentKeyIndex",range:IDBKeyRange.only(Ih(t))},(function(e,i){r=n.Fn(t,i)})).next((function(){return r}))}},{key:"$n",value:function(e,t){var n=this,r={size:0,document:qs.newInvalidDocument(t)};return xh(e).Wt({index:"documentKeyIndex",range:IDBKeyRange.only(Ih(t))},(function(e,i){r={document:n.Fn(t,i),size:eh(i)}})).next((function(){return r}))}},{key:"getEntries",value:function(e,t){var n=this,r=_c();return this.Bn(e,t,(function(e,t){var i=n.Fn(e,t);r=r.insert(e,i)})).next((function(){return r}))}},{key:"Ln",value:function(e,t){var n=this,r=_c(),i=new wc(ws.comparator);return this.Bn(e,t,(function(e,t){var a=n.Fn(e,t);r=r.insert(e,a),i=i.insert(e,eh(t))})).next((function(){return{documents:r,Un:i}}))}},{key:"Bn",value:function(e,t,n){if(t.isEmpty())return $l.resolve();var r=new Ec(Sh);t.forEach((function(e){return r=r.add(e)}));var i=IDBKeyRange.bound(Ih(r.first()),Ih(r.last())),a=r.getIterator(),o=a.getNext();return xh(e).Wt({index:"documentKeyIndex",range:i},(function(e,t,r){for(var i=ws.fromSegments([].concat(ne(t.prefixPath),[t.collectionGroup,t.documentId]));o&&Sh(o,i)<0;)n(o,null),o=a.getNext();o&&o.isEqual(i)&&(n(o,t),o=a.hasNext()?a.getNext():null),o?r.Ut(Ih(o)):r.done()})).next((function(){for(;o;)n(o,null),o=a.hasNext()?a.getNext():null}))}},{key:"getAllFromCollection",value:function(e,t,n){var r=this,i=[t.popLast().toArray(),t.lastSegment(),yf(n.readTime),n.documentKey.path.isEmpty()?"":n.documentKey.path.lastSegment()],a=[t.popLast().toArray(),t.lastSegment(),[Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],""];return xh(e).qt(IDBKeyRange.bound(i,a,!0)).next((function(e){var t,n=_c(),i=ce(e);try{for(i.s();!(t=i.n()).done;){var a=t.value,o=r.Fn(ws.fromSegments(a.prefixPath.concat(a.collectionGroup,a.documentId)),a);n=n.insert(o.key,o)}}catch(s){i.e(s)}finally{i.f()}return n}))}},{key:"getAllFromCollectionGroup",value:function(e,t,n,r){var i=this,a=_c(),o=Eh(t,n),s=Eh(t,Zs.max());return xh(e).Wt({index:"collectionGroupIndex",range:IDBKeyRange.bound(o,s,!0)},(function(e,t,n){var o=i.Fn(ws.fromSegments(t.prefixPath.concat(t.collectionGroup,t.documentId)),t);(a=a.insert(o.key,o)).size===r&&n.done()})).next((function(){return a}))}},{key:"newChangeBuffer",value:function(e){return new bh(this,!!e&&e.trackRemovals)}},{key:"getSize",value:function(e){return this.getMetadata(e).next((function(e){return e.byteSize}))}},{key:"getMetadata",value:function(e){return wh(e).get("remoteDocumentGlobalKey").next((function(e){return Po(!!e),e}))}},{key:"On",value:function(e,t){return wh(e).put("remoteDocumentGlobalKey",t)}},{key:"Fn",value:function(e,t){if(t){var n=function(e,t){var n;if(t.document)n=cl(e.Jt,t.document,!!t.hasCommittedMutations);else if(t.noDocument){var r=ws.fromSegments(t.noDocument.path),i=kf(t.noDocument.readTime);n=qs.newNoDocument(r,i),t.hasCommittedMutations&&n.setHasCommittedMutations()}else{if(!t.unknownDocument)return Ro();var a=ws.fromSegments(t.unknownDocument.path),o=kf(t.unknownDocument.version);n=qs.newUnknownDocument(a,o)}return t.readTime&&n.setReadTime(function(e){var t=new $o(e[0],e[1]);return es.fromTimestamp(t)}(t.readTime)),n}(this.M,t);if(!n.isNoDocument()||!n.version.isEqual(es.min()))return n}return qs.newInvalidDocument(e)}}]),e}(),bh=function(e){he(n,e);var t=ge(n);function n(e,r){var i;return oe(this,n),(i=t.call(this)).qn=e,i.trackRemovals=r,i.Gn=new bc((function(e){return e.toString()}),(function(e,t){return e.isEqual(t)})),i}return ue(n,[{key:"applyChanges",value:function(e){var t=this,n=[],r=0,i=new Ec((function(e,t){return Yo(e.canonicalString(),t.canonicalString())}));return this.changes.forEach((function(a,o){var s=t.Gn.get(a);if(n.push(t.qn.removeEntry(e,a,s.readTime)),o.isValidDocument()){var u=gf(t.qn.M,o);i=i.add(a.path.popLast());var c=eh(u);r+=c-s.size,n.push(t.qn.addEntry(e,a,u))}else if(r-=s.size,t.trackRemovals){var l=gf(t.qn.M,o.convertToNoDocument(es.min()));n.push(t.qn.addEntry(e,a,l))}})),i.forEach((function(r){n.push(t.qn.indexManager.addToCollectionParentIndex(e,r))})),n.push(this.qn.updateMetadata(e,r)),$l.waitFor(n)}},{key:"getFromCache",value:function(e,t){var n=this;return this.qn.$n(e,t).next((function(e){return n.Gn.set(t,{size:e.size,readTime:e.document.readTime}),e.document}))}},{key:"getAllFromCache",value:function(e,t){var n=this;return this.qn.Ln(e,t).next((function(e){var t=e.documents;return e.Un.forEach((function(e,r){n.Gn.set(e,{size:r,readTime:t.get(e).readTime})})),t}))}}]),n}(Ah);function wh(e){return ff(e,"remoteDocumentGlobal")}function xh(e){return ff(e,"remoteDocumentsV14")}function Ih(e){var t=e.path.toArray();return[t.slice(0,t.length-2),t[t.length-2],t[t.length-1]]}function Eh(e,t){var n=t.documentKey.path.toArray();return[e,yf(t.readTime),n.slice(0,n.length-2),n.length>0?n[n.length-1]:""]}function Sh(e,t){var n=e.path.length-t.path.length;return 0!==n?n:ws.comparator(e,t)}var Th=function(){function e(t){oe(this,e),this.M=t}return ue(e,[{key:"kt",value:function(e,t,n,r){var i=this,a=new ef("createOrUpgrade",t);n<1&&r>=1&&(function(e){e.createObjectStore("owner")}(e),function(e){e.createObjectStore("mutationQueues",{keyPath:"userId"}),e.createObjectStore("mutations",{keyPath:"batchId",autoIncrement:!0}).createIndex("userMutationsIndex",_l,{unique:!0}),e.createObjectStore("documentMutations")}(e),Ch(e),function(e){e.createObjectStore("remoteDocuments")}(e));var o=$l.resolve();return n<3&&r>=3&&(0!==n&&(function(e){e.deleteObjectStore("targetDocuments"),e.deleteObjectStore("targets"),e.deleteObjectStore("targetGlobal")}(e),Ch(e)),o=o.next((function(){return function(e){var t=e.store("targetGlobal"),n={highestTargetId:0,highestListenSequenceNumber:0,lastRemoteSnapshotVersion:es.min().toTimestamp(),targetCount:0};return t.put("targetGlobalKey",n)}(a)}))),n<4&&r>=4&&(0!==n&&(o=o.next((function(){return function(e,t){return t.store("mutations").qt().next((function(n){e.deleteObjectStore("mutations"),e.createObjectStore("mutations",{keyPath:"batchId",autoIncrement:!0}).createIndex("userMutationsIndex",_l,{unique:!0});var r=t.store("mutations"),i=n.map((function(e){return r.put(e)}));return $l.waitFor(i)}))}(e,a)}))),o=o.next((function(){!function(e){e.createObjectStore("clientMetadata",{keyPath:"clientId"})}(e)}))),n<5&&r>=5&&(o=o.next((function(){return i.Kn(a)}))),n<6&&r>=6&&(o=o.next((function(){return function(e){e.createObjectStore("remoteDocumentGlobal")}(e),i.Qn(a)}))),n<7&&r>=7&&(o=o.next((function(){return i.jn(a)}))),n<8&&r>=8&&(o=o.next((function(){return i.Wn(e,a)}))),n<9&&r>=9&&(o=o.next((function(){!function(e){e.objectStoreNames.contains("remoteDocumentChanges")&&e.deleteObjectStore("remoteDocumentChanges")}(e)}))),n<10&&r>=10&&(o=o.next((function(){return i.zn(a)}))),n<11&&r>=11&&(o=o.next((function(){!function(e){e.createObjectStore("bundles",{keyPath:"bundleId"})}(e),function(e){e.createObjectStore("namedQueries",{keyPath:"name"})}(e)}))),n<12&&r>=12&&(o=o.next((function(){!function(e){var t=e.createObjectStore("documentOverlays",{keyPath:ql});t.createIndex("collectionPathOverlayIndex",Gl,{unique:!1}),t.createIndex("collectionGroupOverlayIndex",Hl,{unique:!1})}(e)}))),n<13&&r>=13&&(o=o.next((function(){return function(e){var t=e.createObjectStore("remoteDocumentsV14",{keyPath:Rl});t.createIndex("documentKeyIndex",Pl),t.createIndex("collectionGroupIndex",Ml)}(e)})).next((function(){return i.Hn(e,a)})).next((function(){return e.deleteObjectStore("remoteDocuments")}))),n<14&&r>=14&&(o=o.next((function(){!function(e){e.createObjectStore("indexConfiguration",{keyPath:"indexId",autoIncrement:!0}).createIndex("collectionGroupIndex","collectionGroup",{unique:!1}),e.createObjectStore("indexState",{keyPath:Fl}).createIndex("sequenceNumberIndex",Ql,{unique:!1}),e.createObjectStore("indexEntries",{keyPath:Vl}).createIndex("documentKeyIndex",zl,{unique:!1})}(e)}))),o}},{key:"Qn",value:function(e){var t=0;return e.store("remoteDocuments").Wt((function(e,n){t+=eh(n)})).next((function(){var n={byteSize:t};return e.store("remoteDocumentGlobal").put("remoteDocumentGlobalKey",n)}))}},{key:"Kn",value:function(e){var t=this,n=e.store("mutationQueues"),r=e.store("mutations");return n.qt().next((function(n){return $l.forEach(n,(function(n){var i=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return r.qt("userMutationsIndex",i).next((function(r){return $l.forEach(r,(function(r){Po(r.userId===n.userId);var i=bf(t.M,r);return $f(e,n.userId,i).next((function(){}))}))}))}))}))}},{key:"jn",value:function(e){var t=e.store("targetDocuments"),n=e.store("remoteDocuments");return e.store("targetGlobal").get("targetGlobalKey").next((function(e){var r=[];return n.Wt((function(n,i){var a=new as(n),o=function(e){return[0,El(e)]}(a);r.push(t.get(o).next((function(n){return n?$l.resolve():function(n){return t.put({targetId:0,path:El(n),sequenceNumber:e.highestListenSequenceNumber})}(a)})))})).next((function(){return $l.waitFor(r)}))}))}},{key:"Wn",value:function(e,t){e.createObjectStore("collectionParents",{keyPath:Ul});var n=t.store("collectionParents"),r=new qf,i=function(e){if(r.add(e)){var t=e.lastSegment(),i=e.popLast();return n.put({collectionId:t,parent:El(i)})}};return t.store("remoteDocuments").Wt({jt:!0},(function(e,t){var n=new as(e);return i(n.popLast())})).next((function(){return t.store("documentMutations").Wt({jt:!0},(function(e,t){var n=s(e,3),r=(n[0],n[1]),a=(n[2],Cl(r));return i(a.popLast())}))}))}},{key:"zn",value:function(e){var t=this,n=e.store("targets");return n.Wt((function(e,r){var i=wf(r),a=xf(t.M,i);return n.put(a)}))}},{key:"Hn",value:function(e,t){var n=t.store("remoteDocuments"),r=[];return n.Wt((function(e,n){var i,a=t.store("remoteDocumentsV14"),o=(i=n,i.document?new ws(as.fromString(i.document.name).popFirst(5)):i.noDocument?ws.fromSegments(i.noDocument.path):i.unknownDocument?ws.fromSegments(i.unknownDocument.path):Ro()).path.toArray(),s={prefixPath:o.slice(0,o.length-2),collectionGroup:o[o.length-2],documentId:o[o.length-1],readTime:n.readTime||[0,0],unknownDocument:n.unknownDocument,noDocument:n.noDocument,document:n.document,hasCommittedMutations:!!n.hasCommittedMutations};r.push(a.put(s))})).next((function(){return $l.waitFor(r)}))}}]),e}();function Ch(e){e.createObjectStore("targetDocuments",{keyPath:Ll}).createIndex("documentTargetsIndex",jl,{unique:!0}),e.createObjectStore("targets",{keyPath:"targetId"}).createIndex("queryTargetsIndex",Bl,{unique:!0}),e.createObjectStore("targetGlobal")}var _h="Failed to obtain exclusive access to the persistence layer. To allow shared access, multi-tab synchronization has to be enabled in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.",Nh=function(){function e(t,n,r,i,a,o,s,u,c,l){var f=arguments.length>10&&void 0!==arguments[10]?arguments[10]:13;if(oe(this,e),this.allowTabSynchronization=t,this.persistenceKey=n,this.clientId=r,this.Jn=a,this.window=o,this.document=s,this.Yn=c,this.Xn=l,this.Zn=f,this.ts=null,this.es=!1,this.isPrimary=!1,this.networkEnabled=!0,this.ns=null,this.inForeground=!1,this.ss=null,this.rs=null,this.os=Number.NEGATIVE_INFINITY,this.us=function(e){return Promise.resolve()},!e.vt())throw new Lo(Bo.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.referenceDelegate=new gh(this,i),this.cs=n+"main",this.M=new mf(u),this.hs=new tf(this.cs,this.Zn,new Th(this.M)),this.ls=new sh(this.referenceDelegate,this.M),this.fs=function(e){return new kh(e)}(this.M),this.ds=new Tf,this.window&&this.window.localStorage?this._s=this.window.localStorage:(this._s=null,!1===l&&No("IndexedDbPersistence","LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}return ue(e,[{key:"start",value:function(){var e=this;return this.ws().then((function(){if(!e.isPrimary&&!e.allowTabSynchronization)throw new Lo(Bo.FAILED_PRECONDITION,_h);return e.gs(),e.ys(),e.ps(),e.runTransaction("getHighestListenSequenceNumber","readonly",(function(t){return e.ls.getHighestSequenceNumber(t)}))})).then((function(t){e.ts=new Ko(t,e.Yn)})).then((function(){e.es=!0})).catch((function(t){return e.hs&&e.hs.close(),Promise.reject(t)}))}},{key:"Is",value:function(e){var t=this;return this.us=function(){var n=ee(ie().mark((function n(r){return ie().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t.started){n.next=2;break}return n.abrupt("return",e(r));case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),e(this.isPrimary)}},{key:"setDatabaseDeletedListener",value:function(e){this.hs.Ot(function(){var t=ee(ie().mark((function t(n){return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=null===n.newVersion,!t.t0){t.next=4;break}return t.next=4,e();case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}},{key:"setNetworkEnabled",value:function(e){var t=this;this.networkEnabled!==e&&(this.networkEnabled=e,this.Jn.enqueueAndForget(ee(ie().mark((function e(){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=t.started,!e.t0){e.next=4;break}return e.next=4,t.ws();case 4:case"end":return e.stop()}}),e)})))))}},{key:"ws",value:function(){var e=this;return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",(function(t){return Oh(t).put({clientId:e.clientId,updateTimeMs:Date.now(),networkEnabled:e.networkEnabled,inForeground:e.inForeground}).next((function(){if(e.isPrimary)return e.Ts(t).next((function(t){t||(e.isPrimary=!1,e.Jn.enqueueRetryable((function(){return e.us(!1)})))}))})).next((function(){return e.Es(t)})).next((function(n){return e.isPrimary&&!n?e.As(t).next((function(){return!1})):!!n&&e.Rs(t).next((function(){return!0}))}))})).catch((function(t){if(af(t))return _o("IndexedDbPersistence","Failed to extend owner lease: ",t),e.isPrimary;if(!e.allowTabSynchronization)throw t;return _o("IndexedDbPersistence","Releasing owner lease after error during lease refresh",t),!1})).then((function(t){e.isPrimary!==t&&e.Jn.enqueueRetryable((function(){return e.us(t)})),e.isPrimary=t}))}},{key:"Ts",value:function(e){var t=this;return Dh(e).get("owner").next((function(e){return $l.resolve(t.bs(e))}))}},{key:"Ps",value:function(e){return Oh(e).delete(this.clientId)}},{key:"Vs",value:function(){var e=ee(ie().mark((function e(){var t,n,r,i,a=this;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isPrimary||this.vs(this.os,18e5)){e.next=6;break}return this.os=Date.now(),e.next=4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",(function(e){var t=ff(e,"clientMetadata");return t.qt().next((function(e){var n=a.Ss(e,18e5),r=e.filter((function(e){return-1===n.indexOf(e)}));return $l.forEach(r,(function(e){return t.delete(e.clientId)})).next((function(){return r}))}))})).catch((function(){return[]}));case 4:if(t=e.sent,this._s){n=ce(t);try{for(n.s();!(r=n.n()).done;)i=r.value,this._s.removeItem(this.Ds(i.clientId))}catch(o){n.e(o)}finally{n.f()}}case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"ps",value:function(){var e=this;this.rs=this.Jn.enqueueAfterDelay("client_metadata_refresh",4e3,(function(){return e.ws().then((function(){return e.Vs()})).then((function(){return e.ps()}))}))}},{key:"bs",value:function(e){return!!e&&e.ownerId===this.clientId}},{key:"Es",value:function(e){var t=this;return this.Xn?$l.resolve(!0):Dh(e).get("owner").next((function(n){if(null!==n&&t.vs(n.leaseTimestampMs,5e3)&&!t.Cs(n.ownerId)){if(t.bs(n)&&t.networkEnabled)return!0;if(!t.bs(n)){if(!n.allowTabSynchronization)throw new Lo(Bo.FAILED_PRECONDITION,_h);return!1}}return!(!t.networkEnabled||!t.inForeground)||Oh(e).qt().next((function(e){return void 0===t.Ss(e,5e3).find((function(e){if(t.clientId!==e.clientId){var n=!t.networkEnabled&&e.networkEnabled,r=!t.inForeground&&e.inForeground,i=t.networkEnabled===e.networkEnabled;if(n||r&&i)return!0}return!1}))}))})).next((function(e){return t.isPrimary!==e&&_o("IndexedDbPersistence","Client ".concat(e?"is":"is not"," eligible for a primary lease.")),e}))}},{key:"shutdown",value:function(){var e=ee(ie().mark((function e(){var t=this;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.es=!1,this.xs(),this.rs&&(this.rs.cancel(),this.rs=null),this.Ns(),this.ks(),e.next=7,this.hs.runTransaction("shutdown","readwrite",["owner","clientMetadata"],(function(e){var n=new lf(e,Ko.A);return t.As(n).next((function(){return t.Ps(n)}))}));case 7:this.hs.close(),this.Ms();case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"Ss",value:function(e,t){var n=this;return e.filter((function(e){return n.vs(e.updateTimeMs,t)&&!n.Cs(e.clientId)}))}},{key:"Os",value:function(){var e=this;return this.runTransaction("getActiveClients","readonly",(function(t){return Oh(t).qt().next((function(t){return e.Ss(t,18e5).map((function(e){return e.clientId}))}))}))}},{key:"started",get:function(){return this.es}},{key:"getMutationQueue",value:function(e,t){return th.Yt(e,this.M,t,this.referenceDelegate)}},{key:"getTargetCache",value:function(){return this.ls}},{key:"getRemoteDocumentCache",value:function(){return this.fs}},{key:"getIndexManager",value:function(e){return new Hf(e)}},{key:"getDocumentOverlayCache",value:function(e){return Nf.Yt(this.M,e)}},{key:"getBundleCache",value:function(){return this.ds}},{key:"runTransaction",value:function(e,t,n){var r=this;_o("IndexedDbPersistence","Starting transaction:",e);var i,a,o="readonly"===t?"readonly":"readwrite",s=14===(i=this.Zn)?Yl:13===i?Jl:12===i?Wl:11===i?Kl:void Ro();return this.hs.runTransaction(e,o,s,(function(i){return a=new lf(i,r.ts?r.ts.next():Ko.A),"readwrite-primary"===t?r.Ts(a).next((function(e){return!!e||r.Es(a)})).next((function(t){if(!t)throw No("Failed to obtain primary lease for action '".concat(e,"'.")),r.isPrimary=!1,r.Jn.enqueueRetryable((function(){return r.us(!1)})),new Lo(Bo.FAILED_PRECONDITION,Xl);return n(a)})).next((function(e){return r.Rs(a).next((function(){return e}))})):r.Fs(a).next((function(){return n(a)}))})).then((function(e){return a.raiseOnCommittedEvent(),e}))}},{key:"Fs",value:function(e){var t=this;return Dh(e).get("owner").next((function(e){if(null!==e&&t.vs(e.leaseTimestampMs,5e3)&&!t.Cs(e.ownerId)&&!t.bs(e)&&!(t.Xn||t.allowTabSynchronization&&e.allowTabSynchronization))throw new Lo(Bo.FAILED_PRECONDITION,_h)}))}},{key:"Rs",value:function(e){var t={ownerId:this.clientId,allowTabSynchronization:this.allowTabSynchronization,leaseTimestampMs:Date.now()};return Dh(e).put("owner",t)}},{key:"As",value:function(e){var t=this,n=Dh(e);return n.get("owner").next((function(e){return t.bs(e)?(_o("IndexedDbPersistence","Releasing primary lease."),n.delete("owner")):$l.resolve()}))}},{key:"vs",value:function(e,t){var n=Date.now();return!(e<n-t)&&(!(e>n)||(No("Detected an update time that is in the future: ".concat(e," > ").concat(n)),!1))}},{key:"gs",value:function(){var e=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.ss=function(){e.Jn.enqueueAndForget((function(){return e.inForeground="visible"===e.document.visibilityState,e.ws()}))},this.document.addEventListener("visibilitychange",this.ss),this.inForeground="visible"===this.document.visibilityState)}},{key:"Ns",value:function(){this.ss&&(this.document.removeEventListener("visibilitychange",this.ss),this.ss=null)}},{key:"ys",value:function(){var e,t=this;"function"==typeof(null===(e=this.window)||void 0===e?void 0:e.addEventListener)&&(this.ns=function(){t.xs(),!_e()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")&&navigator.appVersion.match(/Version\/1[45]/)&&t.Jn.enterRestrictedMode(!0),t.Jn.enqueueAndForget((function(){return t.shutdown()}))},this.window.addEventListener("pagehide",this.ns))}},{key:"ks",value:function(){this.ns&&(this.window.removeEventListener("pagehide",this.ns),this.ns=null)}},{key:"Cs",value:function(e){var t;try{var n=null!==(null===(t=this._s)||void 0===t?void 0:t.getItem(this.Ds(e)));return _o("IndexedDbPersistence","Client '".concat(e,"' ").concat(n?"is":"is not"," zombied in LocalStorage")),n}catch(e){return No("IndexedDbPersistence","Failed to get zombied client id.",e),!1}}},{key:"xs",value:function(){if(this._s)try{this._s.setItem(this.Ds(this.clientId),String(Date.now()))}catch(In){No("Failed to set zombie client id.",In)}}},{key:"Ms",value:function(){if(this._s)try{this._s.removeItem(this.Ds(this.clientId))}catch(In){}}},{key:"Ds",value:function(e){return"firestore_zombie_".concat(this.persistenceKey,"_").concat(e)}}],[{key:"vt",value:function(){return tf.vt()}}]),e}();function Dh(e){return ff(e,"owner")}function Oh(e){return ff(e,"clientMetadata")}function Rh(e,t){var n=e.projectId;return e.isDefaultDatabase||(n+="."+e.database),"firestore/"+t+"/"+n+"/"}var Ph=function(){function e(t,n,r){oe(this,e),this.fs=t,this.$s=n,this.indexManager=r}return ue(e,[{key:"Bs",value:function(e,t){var n=this;return this.$s.getAllMutationBatchesAffectingDocumentKey(e,t).next((function(r){return n.Ls(e,t,r)}))}},{key:"Ls",value:function(e,t,n){return this.fs.getEntry(e,t).next((function(e){var t,r=ce(n);try{for(r.s();!(t=r.n()).done;){t.value.applyToLocalView(e)}}catch(i){r.e(i)}finally{r.f()}return e}))}},{key:"Us",value:function(e,t){e.forEach((function(e,n){var r,i=ce(t);try{for(i.s();!(r=i.n()).done;){r.value.applyToLocalView(n)}}catch(a){i.e(a)}finally{i.f()}}))}},{key:"qs",value:function(e,t){var n=this;return this.fs.getEntries(e,t).next((function(t){return n.Gs(e,t).next((function(){return t}))}))}},{key:"Gs",value:function(e,t){var n=this;return this.$s.getAllMutationBatchesAffectingDocumentKeys(e,t).next((function(e){return n.Us(t,e)}))}},{key:"Ks",value:function(e,t,n){return function(e){return ws.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}(t)?this.Qs(e,t.path):Tu(t)?this.js(e,t,n):this.Ws(e,t,n)}},{key:"Qs",value:function(e,t){return this.Bs(e,new ws(t)).next((function(e){var t=Dc();return e.isFoundDocument()&&(t=t.insert(e.key,e)),t}))}},{key:"js",value:function(e,t,n){var r=this,i=t.collectionGroup,a=Dc();return this.indexManager.getCollectionParents(e,i).next((function(o){return $l.forEach(o,(function(o){var s=function(e,t){return new ku(t,null,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(t,o.child(i));return r.Ws(e,s,n).next((function(e){e.forEach((function(e,t){a=a.insert(e,t)}))}))})).next((function(){return a}))}))}},{key:"Ws",value:function(e,t,n){var r,i=this;return this.fs.getAllFromCollection(e,t.path,n).next((function(n){return r=n,i.$s.getAllMutationBatchesAffectingQuery(e,t)})).next((function(e){var t,n=ce(e);try{for(n.s();!(t=n.n()).done;){var i,a=t.value,o=ce(a.mutations);try{for(o.s();!(i=o.n()).done;){var s=i.value,u=s.key,c=r.get(u);null==c&&(c=qs.newInvalidDocument(u),r=r.insert(u,c)),ac(s,c,a.localWriteTime),c.isFoundDocument()||(r=r.remove(u))}}catch(l){o.e(l)}finally{o.f()}}}catch(l){n.e(l)}finally{n.f()}})).next((function(){return r.forEach((function(e,n){Pu(t,n)||(r=r.remove(e))})),r}))}}]),e}(),Mh=function(){function e(t,n,r,i){oe(this,e),this.targetId=t,this.fromCache=n,this.zs=r,this.Hs=i}return ue(e,null,[{key:"Js",value:function(t,n){var r,i=Mc(),a=Mc(),o=ce(n.docChanges);try{for(o.s();!(r=o.n()).done;){var s=r.value;switch(s.type){case 0:i=i.add(s.doc.key);break;case 1:a=a.add(s.doc.key)}}}catch(u){o.e(u)}finally{o.f()}return new e(t,n.fromCache,i,a)}}]),e}(),Bh=function(){function e(){oe(this,e)}return ue(e,[{key:"Ys",value:function(e){this.Xs=e}},{key:"Ks",value:function(e,t,n,r){var i=this;return function(e){return 0===e.filters.length&&null===e.limit&&null==e.startAt&&null==e.endAt&&(0===e.explicitOrderBy.length||1===e.explicitOrderBy.length&&e.explicitOrderBy[0].field.isKeyField())}(t)||n.isEqual(es.min())?this.Zs(e,t):this.Xs.qs(e,r).next((function(a){var o=i.ti(t,a);return(xu(t)||Iu(t))&&i.ei(t.limitType,o,r,n)?i.Zs(e,t):(Co()<=rt.DEBUG&&_o("QueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),Ru(t)),i.Xs.Ks(e,t,Ys(n,-1)).next((function(e){return o.forEach((function(t){e=e.insert(t.key,t)})),e})))}))}},{key:"ti",value:function(e,t){var n=new Ec(Bu(e));return t.forEach((function(t,r){Pu(e,r)&&(n=n.add(r))})),n}},{key:"ei",value:function(e,t,n,r){if(n.size!==t.size)return!0;var i="F"===e?t.last():t.first();return!!i&&(i.hasPendingWrites||i.version.compareTo(r)>0)}},{key:"Zs",value:function(e,t){return Co()<=rt.DEBUG&&_o("QueryEngine","Using full collection scan to execute query:",Ru(t)),this.Xs.Ks(e,t,Zs.min())}}]),e}(),Lh=function(){function e(t,n,r,i){oe(this,e),this.persistence=t,this.ni=n,this.M=i,this.si=new wc(Yo),this.ii=new bc((function(e){return nu(e)}),ru),this.ri=new Map,this.oi=t.getRemoteDocumentCache(),this.ls=t.getTargetCache(),this.ds=t.getBundleCache(),this.ui(r)}return ue(e,[{key:"ui",value:function(e){this.indexManager=this.persistence.getIndexManager(e),this.$s=this.persistence.getMutationQueue(e,this.indexManager),this.ai=new Ph(this.oi,this.$s,this.indexManager),this.oi.setIndexManager(this.indexManager),this.ni.Ys(this.ai)}},{key:"collectGarbage",value:function(e){var t=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",(function(n){return e.collect(n,t.si)}))}}]),e}();function jh(e,t,n,r){return new Lh(e,t,n,r)}function Uh(e,t){return Fh.apply(this,arguments)}function Fh(){return Fh=ee(ie().mark((function e(t,n){var r;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Mo(t),e.next=3,r.persistence.runTransaction("Handle user change","readonly",(function(e){var t;return r.$s.getAllMutationBatches(e).next((function(i){return t=i,r.ui(n),r.$s.getAllMutationBatches(e)})).next((function(n){var i,a=[],o=[],s=Mc(),u=ce(t);try{for(u.s();!(i=u.n()).done;){var c=i.value;a.push(c.batchId);var l,f=ce(c.mutations);try{for(f.s();!(l=f.n()).done;){var h=l.value;s=s.add(h.key)}}catch(A){f.e(A)}finally{f.f()}}}catch(A){u.e(A)}finally{u.f()}var d,p=ce(n);try{for(p.s();!(d=p.n()).done;){var v=d.value;o.push(v.batchId);var m,g=ce(v.mutations);try{for(g.s();!(m=g.n()).done;){var y=m.value;s=s.add(y.key)}}catch(A){g.e(A)}finally{g.f()}}}catch(A){p.e(A)}finally{p.f()}return r.ai.qs(e,s).next((function(e){return{ci:e,removedBatchIds:a,addedBatchIds:o}}))}))}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)}))),Fh.apply(this,arguments)}function Qh(e,t){var n=Mo(e);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",(function(e){var r=t.batch.keys(),i=n.oi.newChangeBuffer({trackRemovals:!0});return function(e,t,n,r){var i=n.batch,a=i.keys(),o=$l.resolve();return a.forEach((function(e){o=o.next((function(){return r.getEntry(t,e)})).next((function(t){var a=n.docVersions.get(e);Po(null!==a),t.version.compareTo(a)<0&&(i.applyToRemoteDocument(t,n),t.isValidDocument()&&(t.setReadTime(n.commitVersion),r.addEntry(t)))}))})),o.next((function(){return e.$s.removeMutationBatch(t,i)}))}(n,e,t,i).next((function(){return i.apply(e)})).next((function(){return n.$s.performConsistencyCheck(e)})).next((function(){return n.ai.qs(e,r)}))}))}function Vh(e){var t=Mo(e);return t.persistence.runTransaction("Get last remote snapshot version","readonly",(function(e){return t.ls.getLastRemoteSnapshotVersion(e)}))}function zh(e,t){var n=Mo(e),r=t.snapshotVersion,i=n.si;return n.persistence.runTransaction("Apply remote event","readwrite-primary",(function(e){var a=n.oi.newChangeBuffer({trackRemovals:!0});i=n.si;var o=[];t.targetChanges.forEach((function(a,s){var u=i.get(s);if(u){o.push(n.ls.removeMatchingKeys(e,a.removedDocuments,s).next((function(){return n.ls.addMatchingKeys(e,a.addedDocuments,s)})));var c=u.withSequenceNumber(e.currentSequenceNumber);t.targetMismatches.has(s)?c=c.withResumeToken(cs.EMPTY_BYTE_STRING,es.min()).withLastLimboFreeSnapshotVersion(es.min()):a.resumeToken.approximateByteSize()>0&&(c=c.withResumeToken(a.resumeToken,r)),i=i.insert(s,c),function(e,t,n){return 0===e.resumeToken.approximateByteSize()||(t.snapshotVersion.toMicroseconds()-e.snapshotVersion.toMicroseconds()>=3e8||n.addedDocuments.size+n.modifiedDocuments.size+n.removedDocuments.size>0)}(u,c,a)&&o.push(n.ls.updateTargetData(e,c))}}));var s=_c();if(t.documentUpdates.forEach((function(r){t.resolvedLimboDocuments.has(r)&&o.push(n.persistence.referenceDelegate.updateLimboDocument(e,r))})),o.push(qh(e,a,t.documentUpdates).next((function(e){s=e}))),!r.isEqual(es.min())){var u=n.ls.getLastRemoteSnapshotVersion(e).next((function(t){return n.ls.setTargetsMetadata(e,e.currentSequenceNumber,r)}));o.push(u)}return $l.waitFor(o).next((function(){return a.apply(e)})).next((function(){return n.ai.Gs(e,s)})).next((function(){return s}))})).then((function(e){return n.si=i,e}))}function qh(e,t,n){var r=Mc();return n.forEach((function(e){return r=r.add(e)})),t.getEntries(e,r).next((function(e){var r=_c();return n.forEach((function(n,i){var a=e.get(n);i.isNoDocument()&&i.version.isEqual(es.min())?(t.removeEntry(n,i.readTime),r=r.insert(n,i)):!a.isValidDocument()||i.version.compareTo(a.version)>0||0===i.version.compareTo(a.version)&&a.hasPendingWrites?(t.addEntry(i),r=r.insert(n,i)):_o("LocalStore","Ignoring outdated watch update for ",n,". Current version:",a.version," Watch version:",i.version)})),r}))}function Gh(e,t){var n=Mo(e);return n.persistence.runTransaction("Get next mutation batch","readonly",(function(e){return void 0===t&&(t=-1),n.$s.getNextMutationBatchAfterBatchId(e,t)}))}function Hh(e,t){var n=Mo(e);return n.persistence.runTransaction("Allocate target","readwrite",(function(e){var r;return n.ls.getTargetData(e,t).next((function(i){return i?(r=i,$l.resolve(r)):n.ls.allocateTargetId(e).next((function(i){return r=new vf(t,i,0,e.currentSequenceNumber),n.ls.addTargetData(e,r).next((function(){return r}))}))}))})).then((function(e){var r=n.si.get(e.targetId);return(null===r||e.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(n.si=n.si.insert(e.targetId,e),n.ii.set(t,e.targetId)),e}))}function Kh(e,t,n){return Wh.apply(this,arguments)}function Wh(){return Wh=ee(ie().mark((function e(t,n,r){var i,a,o;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=Mo(t),a=i.si.get(n),o=r?"readwrite":"readwrite-primary",e.prev=1,e.t0=r,e.t0){e.next=6;break}return e.next=6,i.persistence.runTransaction("Release target",o,(function(e){return i.persistence.referenceDelegate.removeTarget(e,a)}));case 6:e.next=13;break;case 8:if(e.prev=8,e.t1=e.catch(1),af(e.t1)){e.next=12;break}throw e.t1;case 12:_o("LocalStore","Failed to update sequence numbers for target ".concat(n,": ").concat(e.t1));case 13:i.si=i.si.remove(n),i.ii.delete(a.target);case 14:case"end":return e.stop()}}),e,null,[[1,8]])}))),Wh.apply(this,arguments)}function Jh(e,t,n){var r=Mo(e),i=es.min(),a=Mc();return r.persistence.runTransaction("Execute query","readonly",(function(e){return function(e,t,n){var r=Mo(e),i=r.ii.get(n);return void 0!==i?$l.resolve(r.si.get(i)):r.ls.getTargetData(t,n)}(r,e,_u(t)).next((function(t){if(t)return i=t.lastLimboFreeSnapshotVersion,r.ls.getMatchingKeysForTargetId(e,t.targetId).next((function(e){a=e}))})).next((function(){return r.ni.Ks(e,t,n?i:es.min(),n?a:Mc())})).next((function(e){return Zh(r,Mu(t),e),{documents:e,hi:a}}))}))}function Yh(e,t){var n=Mo(e),r=Mo(n.ls),i=n.si.get(t);return i?Promise.resolve(i.target):n.persistence.runTransaction("Get target data","readonly",(function(e){return r.Et(e,t).next((function(e){return e?e.target:null}))}))}function Xh(e,t){var n=Mo(e),r=n.ri.get(t)||es.min();return n.persistence.runTransaction("Get new document changes","readonly",(function(e){return n.oi.getAllFromCollectionGroup(e,t,Ys(r,-1),Number.MAX_SAFE_INTEGER)})).then((function(e){return Zh(n,t,e),e}))}function Zh(e,t,n){var r=es.min();n.forEach((function(e,t){t.readTime.compareTo(r)>0&&(r=t.readTime)})),e.ri.set(t,r)}function $h(e,t,n,r){return ed.apply(this,arguments)}function ed(){return ed=ee(ie().mark((function e(t,n,r,i){var a,o,s,u,c,l,f,h,d,p;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=Mo(t),o=Mc(),s=_c(),u=ce(r);try{for(u.s();!(c=u.n()).done;)l=c.value,f=n.li(l.metadata.name),l.document&&(o=o.add(f)),(h=n.fi(l)).setReadTime(n.di(l.metadata.readTime)),s=s.insert(f,h)}catch(v){u.e(v)}finally{u.f()}return d=a.oi.newChangeBuffer({trackRemovals:!0}),e.next=7,Hh(a,function(e){return _u(wu(as.fromString("__bundle__/docs/".concat(e))))}(i));case 7:return p=e.sent,e.abrupt("return",a.persistence.runTransaction("Apply bundle documents","readwrite",(function(e){return qh(e,d,s).next((function(t){return d.apply(e),t})).next((function(t){return a.ls.removeMatchingKeysForTargetId(e,p.targetId).next((function(){return a.ls.addMatchingKeys(e,o,p.targetId)})).next((function(){return a.ai.Gs(e,t)})).next((function(){return t}))}))})));case 9:case"end":return e.stop()}}),e)}))),ed.apply(this,arguments)}function td(e,t){return nd.apply(this,arguments)}function nd(){return nd=ee(ie().mark((function e(t,n){var r,i,a,o=arguments;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>2&&void 0!==o[2]?o[2]:Mc(),e.next=3,Hh(t,_u(If(n.bundledQuery)));case 3:return i=e.sent,a=Mo(t),e.abrupt("return",a.persistence.runTransaction("Save named query","readwrite",(function(e){var t=$c(n.readTime);if(i.snapshotVersion.compareTo(t)>=0)return a.ds.saveNamedQuery(e,n);var o=i.withResumeToken(cs.EMPTY_BYTE_STRING,t);return a.si=a.si.insert(o.targetId,o),a.ls.updateTargetData(e,o).next((function(){return a.ls.removeMatchingKeysForTargetId(e,i.targetId)})).next((function(){return a.ls.addMatchingKeys(e,r,i.targetId)})).next((function(){return a.ds.saveNamedQuery(e,n)}))})));case 6:case"end":return e.stop()}}),e)}))),nd.apply(this,arguments)}var rd=function(){function e(t){oe(this,e),this.M=t,this._i=new Map,this.wi=new Map}return ue(e,[{key:"getBundleMetadata",value:function(e,t){return $l.resolve(this._i.get(t))}},{key:"saveBundleMetadata",value:function(e,t){var n;return this._i.set(t.id,{id:(n=t).id,version:n.version,createTime:$c(n.createTime)}),$l.resolve()}},{key:"getNamedQuery",value:function(e,t){return $l.resolve(this.wi.get(t))}},{key:"saveNamedQuery",value:function(e,t){return this.wi.set(t.name,function(e){return{name:e.name,query:If(e.bundledQuery),readTime:$c(e.readTime)}}(t)),$l.resolve()}}]),e}(),id=function(){function e(){oe(this,e),this.overlays=new wc(ws.comparator),this.mi=new Map}return ue(e,[{key:"getOverlay",value:function(e,t){return $l.resolve(this.overlays.get(t))}},{key:"saveOverlays",value:function(e,t,n){var r=this;return n.forEach((function(n,i){r.Xt(e,t,i)})),$l.resolve()}},{key:"removeOverlaysForBatchId",value:function(e,t,n){var r=this,i=this.mi.get(n);return void 0!==i&&(i.forEach((function(e){return r.overlays=r.overlays.remove(e)})),this.mi.delete(n)),$l.resolve()}},{key:"getOverlaysForCollection",value:function(e,t,n){for(var r=Oc(),i=t.length+1,a=new ws(t.child("")),o=this.overlays.getIteratorFrom(a);o.hasNext();){var s=o.getNext().value,u=s.getKey();if(!t.isPrefixOf(u.path))break;u.path.length===i&&s.largestBatchId>n&&r.set(s.getKey(),s)}return $l.resolve(r)}},{key:"getOverlaysForCollectionGroup",value:function(e,t,n,r){for(var i=new wc((function(e,t){return e-t})),a=this.overlays.getIterator();a.hasNext();){var o=a.getNext().value;if(o.getKey().getCollectionGroup()===t&&o.largestBatchId>n){var s=i.get(o.largestBatchId);null===s&&(s=Oc(),i=i.insert(o.largestBatchId,s)),s.set(o.getKey(),o)}}for(var u=Oc(),c=i.getIterator();c.hasNext()&&(c.getNext().value.forEach((function(e,t){return u.set(e,t)})),!(u.size()>=r)););return $l.resolve(u)}},{key:"Xt",value:function(e,t,n){if(null!==n){var r=this.overlays.get(n.key);if(null!==r){var i=this.mi.get(r.largestBatchId).delete(n.key);this.mi.set(r.largestBatchId,i)}this.overlays=this.overlays.insert(n.key,new pf(t,n));var a=this.mi.get(t);void 0===a&&(a=Mc(),this.mi.set(t,a)),this.mi.set(t,a.add(n.key))}}}]),e}(),ad=function(){function e(){oe(this,e),this.gi=new Ec(od.yi),this.pi=new Ec(od.Ii)}return ue(e,[{key:"isEmpty",value:function(){return this.gi.isEmpty()}},{key:"addReference",value:function(e,t){var n=new od(e,t);this.gi=this.gi.add(n),this.pi=this.pi.add(n)}},{key:"Ti",value:function(e,t){var n=this;e.forEach((function(e){return n.addReference(e,t)}))}},{key:"removeReference",value:function(e,t){this.Ei(new od(e,t))}},{key:"Ai",value:function(e,t){var n=this;e.forEach((function(e){return n.removeReference(e,t)}))}},{key:"Ri",value:function(e){var t=this,n=new ws(new as([])),r=new od(n,e),i=new od(n,e+1),a=[];return this.pi.forEachInRange([r,i],(function(e){t.Ei(e),a.push(e.key)})),a}},{key:"bi",value:function(){var e=this;this.gi.forEach((function(t){return e.Ei(t)}))}},{key:"Ei",value:function(e){this.gi=this.gi.delete(e),this.pi=this.pi.delete(e)}},{key:"Pi",value:function(e){var t=new ws(new as([])),n=new od(t,e),r=new od(t,e+1),i=Mc();return this.pi.forEachInRange([n,r],(function(e){i=i.add(e.key)})),i}},{key:"containsKey",value:function(e){var t=new od(e,0),n=this.gi.firstAfterOrEqual(t);return null!==n&&e.isEqual(n.key)}}]),e}(),od=function(){function e(t,n){oe(this,e),this.key=t,this.Vi=n}return ue(e,null,[{key:"yi",value:function(e,t){return ws.comparator(e.key,t.key)||Yo(e.Vi,t.Vi)}},{key:"Ii",value:function(e,t){return Yo(e.Vi,t.Vi)||ws.comparator(e.key,t.key)}}]),e}(),sd=function(){function e(t,n){oe(this,e),this.indexManager=t,this.referenceDelegate=n,this.$s=[],this.vi=1,this.Si=new Ec(od.yi)}return ue(e,[{key:"checkEmpty",value:function(e){return $l.resolve(0===this.$s.length)}},{key:"addMutationBatch",value:function(e,t,n,r){var i=this.vi;this.vi++,this.$s.length>0&&this.$s[this.$s.length-1];var a=new hf(i,t,n,r);this.$s.push(a);var o,s=ce(r);try{for(s.s();!(o=s.n()).done;){var u=o.value;this.Si=this.Si.add(new od(u.key,i)),this.indexManager.addToCollectionParentIndex(e,u.key.path.popLast())}}catch(c){s.e(c)}finally{s.f()}return $l.resolve(a)}},{key:"lookupMutationBatch",value:function(e,t){return $l.resolve(this.Di(t))}},{key:"getNextMutationBatchAfterBatchId",value:function(e,t){var n=t+1,r=this.Ci(n),i=r<0?0:r;return $l.resolve(this.$s.length>i?this.$s[i]:null)}},{key:"getHighestUnacknowledgedBatchId",value:function(){return $l.resolve(0===this.$s.length?-1:this.vi-1)}},{key:"getAllMutationBatches",value:function(e){return $l.resolve(this.$s.slice())}},{key:"getAllMutationBatchesAffectingDocumentKey",value:function(e,t){var n=this,r=new od(t,0),i=new od(t,Number.POSITIVE_INFINITY),a=[];return this.Si.forEachInRange([r,i],(function(e){var t=n.Di(e.Vi);a.push(t)})),$l.resolve(a)}},{key:"getAllMutationBatchesAffectingDocumentKeys",value:function(e,t){var n=this,r=new Ec(Yo);return t.forEach((function(e){var t=new od(e,0),i=new od(e,Number.POSITIVE_INFINITY);n.Si.forEachInRange([t,i],(function(e){r=r.add(e.Vi)}))})),$l.resolve(this.xi(r))}},{key:"getAllMutationBatchesAffectingQuery",value:function(e,t){var n=t.path,r=n.length+1,i=n;ws.isDocumentKey(i)||(i=i.child(""));var a=new od(new ws(i),0),o=new Ec(Yo);return this.Si.forEachWhile((function(e){var t=e.key.path;return!!n.isPrefixOf(t)&&(t.length===r&&(o=o.add(e.Vi)),!0)}),a),$l.resolve(this.xi(o))}},{key:"xi",value:function(e){var t=this,n=[];return e.forEach((function(e){var r=t.Di(e);null!==r&&n.push(r)})),n}},{key:"removeMutationBatch",value:function(e,t){var n=this;Po(0===this.Ni(t.batchId,"removed")),this.$s.shift();var r=this.Si;return $l.forEach(t.mutations,(function(i){var a=new od(i.key,t.batchId);return r=r.delete(a),n.referenceDelegate.markPotentiallyOrphaned(e,i.key)})).next((function(){n.Si=r}))}},{key:"dn",value:function(e){}},{key:"containsKey",value:function(e,t){var n=new od(t,0),r=this.Si.firstAfterOrEqual(n);return $l.resolve(t.isEqual(r&&r.key))}},{key:"performConsistencyCheck",value:function(e){return this.$s.length,$l.resolve()}},{key:"Ni",value:function(e,t){return this.Ci(e)}},{key:"Ci",value:function(e){return 0===this.$s.length?0:e-this.$s[0].batchId}},{key:"Di",value:function(e){var t=this.Ci(e);return t<0||t>=this.$s.length?null:this.$s[t]}}]),e}(),ud=function(){function e(t){oe(this,e),this.ki=t,this.docs=new wc(ws.comparator),this.size=0}return ue(e,[{key:"setIndexManager",value:function(e){this.indexManager=e}},{key:"addEntry",value:function(e,t){var n=t.key,r=this.docs.get(n),i=r?r.size:0,a=this.ki(t);return this.docs=this.docs.insert(n,{document:t.mutableCopy(),size:a}),this.size+=a-i,this.indexManager.addToCollectionParentIndex(e,n.path.popLast())}},{key:"removeEntry",value:function(e){var t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)}},{key:"getEntry",value:function(e,t){var n=this.docs.get(t);return $l.resolve(n?n.document.mutableCopy():qs.newInvalidDocument(t))}},{key:"getEntries",value:function(e,t){var n=this,r=_c();return t.forEach((function(e){var t=n.docs.get(e);r=r.insert(e,t?t.document.mutableCopy():qs.newInvalidDocument(e))})),$l.resolve(r)}},{key:"getAllFromCollection",value:function(e,t,n){for(var r=_c(),i=new ws(t.child("")),a=this.docs.getIteratorFrom(i);a.hasNext();){var o=a.getNext(),s=o.key,u=o.value.document;if(!t.isPrefixOf(s.path))break;s.path.length>t.length+1||$s(Xs(u),n)<=0||(r=r.insert(u.key,u.mutableCopy()))}return $l.resolve(r)}},{key:"getAllFromCollectionGroup",value:function(e,t,n,r){Ro()}},{key:"Mi",value:function(e,t){return $l.forEach(this.docs,(function(e){return t(e)}))}},{key:"newChangeBuffer",value:function(e){return new cd(this)}},{key:"getSize",value:function(e){return $l.resolve(this.size)}}]),e}(),cd=function(e){he(n,e);var t=ge(n);function n(e){var r;return oe(this,n),(r=t.call(this)).qn=e,r}return ue(n,[{key:"applyChanges",value:function(e){var t=this,n=[];return this.changes.forEach((function(r,i){i.isValidDocument()?n.push(t.qn.addEntry(e,i)):t.qn.removeEntry(r)})),$l.waitFor(n)}},{key:"getFromCache",value:function(e,t){return this.qn.getEntry(e,t)}},{key:"getAllFromCache",value:function(e,t){return this.qn.getEntries(e,t)}}]),n}(Ah),ld=function(){function e(t){oe(this,e),this.persistence=t,this.Oi=new bc((function(e){return nu(e)}),ru),this.lastRemoteSnapshotVersion=es.min(),this.highestTargetId=0,this.Fi=0,this.$i=new ad,this.targetCount=0,this.Bi=oh.mn()}return ue(e,[{key:"forEachTarget",value:function(e,t){return this.Oi.forEach((function(e,n){return t(n)})),$l.resolve()}},{key:"getLastRemoteSnapshotVersion",value:function(e){return $l.resolve(this.lastRemoteSnapshotVersion)}},{key:"getHighestSequenceNumber",value:function(e){return $l.resolve(this.Fi)}},{key:"allocateTargetId",value:function(e){return this.highestTargetId=this.Bi.next(),$l.resolve(this.highestTargetId)}},{key:"setTargetsMetadata",value:function(e,t,n){return n&&(this.lastRemoteSnapshotVersion=n),t>this.Fi&&(this.Fi=t),$l.resolve()}},{key:"In",value:function(e){this.Oi.set(e.target,e);var t=e.targetId;t>this.highestTargetId&&(this.Bi=new oh(t),this.highestTargetId=t),e.sequenceNumber>this.Fi&&(this.Fi=e.sequenceNumber)}},{key:"addTargetData",value:function(e,t){return this.In(t),this.targetCount+=1,$l.resolve()}},{key:"updateTargetData",value:function(e,t){return this.In(t),$l.resolve()}},{key:"removeTargetData",value:function(e,t){return this.Oi.delete(t.target),this.$i.Ri(t.targetId),this.targetCount-=1,$l.resolve()}},{key:"removeTargets",value:function(e,t,n){var r=this,i=0,a=[];return this.Oi.forEach((function(o,s){s.sequenceNumber<=t&&null===n.get(s.targetId)&&(r.Oi.delete(o),a.push(r.removeMatchingKeysForTargetId(e,s.targetId)),i++)})),$l.waitFor(a).next((function(){return i}))}},{key:"getTargetCount",value:function(e){return $l.resolve(this.targetCount)}},{key:"getTargetData",value:function(e,t){var n=this.Oi.get(t)||null;return $l.resolve(n)}},{key:"addMatchingKeys",value:function(e,t,n){return this.$i.Ti(t,n),$l.resolve()}},{key:"removeMatchingKeys",value:function(e,t,n){this.$i.Ai(t,n);var r=this.persistence.referenceDelegate,i=[];return r&&t.forEach((function(t){i.push(r.markPotentiallyOrphaned(e,t))})),$l.waitFor(i)}},{key:"removeMatchingKeysForTargetId",value:function(e,t){return this.$i.Ri(t),$l.resolve()}},{key:"getMatchingKeysForTargetId",value:function(e,t){var n=this.$i.Pi(t);return $l.resolve(n)}},{key:"containsKey",value:function(e,t){return $l.resolve(this.$i.containsKey(t))}}]),e}(),fd=function(){function e(t,n){var r=this;oe(this,e),this.Li={},this.overlays={},this.ts=new Ko(0),this.es=!1,this.es=!0,this.referenceDelegate=t(this),this.ls=new ld(this),this.indexManager=new zf,this.fs=new ud((function(e){return r.referenceDelegate.Ui(e)})),this.M=new mf(n),this.ds=new rd(this.M)}return ue(e,[{key:"start",value:function(){return Promise.resolve()}},{key:"shutdown",value:function(){return this.es=!1,Promise.resolve()}},{key:"started",get:function(){return this.es}},{key:"setDatabaseDeletedListener",value:function(){}},{key:"setNetworkEnabled",value:function(){}},{key:"getIndexManager",value:function(e){return this.indexManager}},{key:"getDocumentOverlayCache",value:function(e){var t=this.overlays[e.toKey()];return t||(t=new id,this.overlays[e.toKey()]=t),t}},{key:"getMutationQueue",value:function(e,t){var n=this.Li[e.toKey()];return n||(n=new sd(t,this.referenceDelegate),this.Li[e.toKey()]=n),n}},{key:"getTargetCache",value:function(){return this.ls}},{key:"getRemoteDocumentCache",value:function(){return this.fs}},{key:"getBundleCache",value:function(){return this.ds}},{key:"runTransaction",value:function(e,t,n){var r=this;_o("MemoryPersistence","Starting transaction:",e);var i=new hd(this.ts.next());return this.referenceDelegate.qi(),n(i).next((function(e){return r.referenceDelegate.Gi(i).next((function(){return e}))})).toPromise().then((function(e){return i.raiseOnCommittedEvent(),e}))}},{key:"Ki",value:function(e,t){return $l.or(Object.values(this.Li).map((function(n){return function(){return n.containsKey(e,t)}})))}}]),e}(),hd=function(e){he(n,e);var t=ge(n);function n(e){var r;return oe(this,n),(r=t.call(this)).currentSequenceNumber=e,r}return ue(n)}(Zl),dd=function(){function e(t){oe(this,e),this.persistence=t,this.Qi=new ad,this.ji=null}return ue(e,[{key:"zi",get:function(){if(this.ji)return this.ji;throw Ro()}},{key:"addReference",value:function(e,t,n){return this.Qi.addReference(n,t),this.zi.delete(n.toString()),$l.resolve()}},{key:"removeReference",value:function(e,t,n){return this.Qi.removeReference(n,t),this.zi.add(n.toString()),$l.resolve()}},{key:"markPotentiallyOrphaned",value:function(e,t){return this.zi.add(t.toString()),$l.resolve()}},{key:"removeTarget",value:function(e,t){var n=this;this.Qi.Ri(t.targetId).forEach((function(e){return n.zi.add(e.toString())}));var r=this.persistence.getTargetCache();return r.getMatchingKeysForTargetId(e,t.targetId).next((function(e){e.forEach((function(e){return n.zi.add(e.toString())}))})).next((function(){return r.removeTargetData(e,t)}))}},{key:"qi",value:function(){this.ji=new Set}},{key:"Gi",value:function(e){var t=this,n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return $l.forEach(this.zi,(function(r){var i=ws.fromPath(r);return t.Hi(e,i).next((function(e){e||n.removeEntry(i,es.min())}))})).next((function(){return t.ji=null,n.apply(e)}))}},{key:"updateLimboDocument",value:function(e,t){var n=this;return this.Hi(e,t).next((function(e){e?n.zi.delete(t.toString()):n.zi.add(t.toString())}))}},{key:"Ui",value:function(e){return 0}},{key:"Hi",value:function(e,t){var n=this;return $l.or([function(){return $l.resolve(n.Qi.containsKey(t))},function(){return n.persistence.getTargetCache().containsKey(e,t)},function(){return n.persistence.Ki(e,t)}])}}],[{key:"Wi",value:function(t){return new e(t)}}]),e}();function pd(e,t){return"firestore_clients_".concat(e,"_").concat(t)}function vd(e,t,n){var r="firestore_mutations_".concat(e,"_").concat(n);return t.isAuthenticated()&&(r+="_".concat(t.uid)),r}function md(e,t){return"firestore_targets_".concat(e,"_").concat(t)}var gd=function(){function e(t,n,r,i){oe(this,e),this.user=t,this.batchId=n,this.state=r,this.error=i}return ue(e,[{key:"Yi",value:function(){var e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)}}],[{key:"Ji",value:function(t,n,r){var i,a=JSON.parse(r),o="object"==typeof a&&-1!==["pending","acknowledged","rejected"].indexOf(a.state)&&(void 0===a.error||"object"==typeof a.error);return o&&a.error&&((o="string"==typeof a.error.message&&"string"==typeof a.error.code)&&(i=new Lo(a.error.code,a.error.message))),o?new e(t,n,a.state,i):(No("SharedClientState","Failed to parse mutation state for ID '".concat(n,"': ").concat(r)),null)}}]),e}(),yd=function(){function e(t,n,r){oe(this,e),this.targetId=t,this.state=n,this.error=r}return ue(e,[{key:"Yi",value:function(){var e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)}}],[{key:"Ji",value:function(t,n){var r,i=JSON.parse(n),a="object"==typeof i&&-1!==["not-current","current","rejected"].indexOf(i.state)&&(void 0===i.error||"object"==typeof i.error);return a&&i.error&&((a="string"==typeof i.error.message&&"string"==typeof i.error.code)&&(r=new Lo(i.error.code,i.error.message))),a?new e(t,i.state,r):(No("SharedClientState","Failed to parse target state for ID '".concat(t,"': ").concat(n)),null)}}]),e}(),Ad=function(){function e(t,n){oe(this,e),this.clientId=t,this.activeTargetIds=n}return ue(e,null,[{key:"Ji",value:function(t,n){for(var r=JSON.parse(n),i="object"==typeof r&&r.activeTargetIds instanceof Array,a=Lc(),o=0;i&&o<r.activeTargetIds.length;++o)i=bs(r.activeTargetIds[o]),a=a.add(r.activeTargetIds[o]);return i?new e(t,a):(No("SharedClientState","Failed to parse client data for instance '".concat(t,"': ").concat(n)),null)}}]),e}(),kd=function(){function e(t,n){oe(this,e),this.clientId=t,this.onlineState=n}return ue(e,null,[{key:"Ji",value:function(t){var n=JSON.parse(t);return"object"==typeof n&&-1!==["Unknown","Online","Offline"].indexOf(n.onlineState)&&"string"==typeof n.clientId?new e(n.clientId,n.onlineState):(No("SharedClientState","Failed to parse online state: ".concat(t)),null)}}]),e}(),bd=function(){function e(){oe(this,e),this.activeTargetIds=Lc()}return ue(e,[{key:"Xi",value:function(e){this.activeTargetIds=this.activeTargetIds.add(e)}},{key:"Zi",value:function(e){this.activeTargetIds=this.activeTargetIds.delete(e)}},{key:"Yi",value:function(){var e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}]),e}(),wd=function(){function e(t,n,r,i,a){oe(this,e),this.window=t,this.Jn=n,this.persistenceKey=r,this.tr=i,this.syncEngine=null,this.onlineStateHandler=null,this.sequenceNumberHandler=null,this.er=this.nr.bind(this),this.sr=new wc(Yo),this.started=!1,this.ir=[];var o=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.window.localStorage,this.currentUser=a,this.rr=pd(this.persistenceKey,this.tr),this.ur=function(e){return"firestore_sequence_number_".concat(e)}(this.persistenceKey),this.sr=this.sr.insert(this.tr,new bd),this.ar=new RegExp("^firestore_clients_".concat(o,"_([^_]*)$")),this.cr=new RegExp("^firestore_mutations_".concat(o,"_(\\d+)(?:_(.*))?$")),this.hr=new RegExp("^firestore_targets_".concat(o,"_(\\d+)$")),this.lr=function(e){return"firestore_online_state_".concat(e)}(this.persistenceKey),this.dr=function(e){return"firestore_bundle_loaded_v2_".concat(e)}(this.persistenceKey),this.window.addEventListener("storage",this.er)}return ue(e,[{key:"start",value:function(){var e=ee(ie().mark((function e(){var t,n,r,i,a,o,s,u,c,l,f,h=this;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.syncEngine.Os();case 2:t=e.sent,n=ce(t),e.prev=4,n.s();case 6:if((r=n.n()).done){e.next=14;break}if((i=r.value)!==this.tr){e.next=10;break}return e.abrupt("continue",12);case 10:(a=this.getItem(pd(this.persistenceKey,i)))&&(o=Ad.Ji(i,a))&&(this.sr=this.sr.insert(o.clientId,o));case 12:e.next=6;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(4),n.e(e.t0);case 19:return e.prev=19,n.f(),e.finish(19);case 22:this._r(),(s=this.storage.getItem(this.lr))&&(u=this.wr(s))&&this.mr(u),c=ce(this.ir);try{for(c.s();!(l=c.n()).done;)f=l.value,this.nr(f)}catch(d){c.e(d)}finally{c.f()}this.ir=[],this.window.addEventListener("pagehide",(function(){return h.shutdown()})),this.started=!0;case 28:case"end":return e.stop()}}),e,this,[[4,16,19,22]])})));return function(){return e.apply(this,arguments)}}()},{key:"writeSequenceNumber",value:function(e){this.setItem(this.ur,JSON.stringify(e))}},{key:"getAllActiveQueryTargets",value:function(){return this.gr(this.sr)}},{key:"isActiveQueryTarget",value:function(e){var t=!1;return this.sr.forEach((function(n,r){r.activeTargetIds.has(e)&&(t=!0)})),t}},{key:"addPendingMutation",value:function(e){this.yr(e,"pending")}},{key:"updateMutationState",value:function(e,t,n){this.yr(e,t,n),this.pr(e)}},{key:"addLocalQueryTarget",value:function(e){var t="not-current";if(this.isActiveQueryTarget(e)){var n=this.storage.getItem(md(this.persistenceKey,e));if(n){var r=yd.Ji(e,n);r&&(t=r.state)}}return this.Ir.Xi(e),this._r(),t}},{key:"removeLocalQueryTarget",value:function(e){this.Ir.Zi(e),this._r()}},{key:"isLocalQueryTarget",value:function(e){return this.Ir.activeTargetIds.has(e)}},{key:"clearQueryState",value:function(e){this.removeItem(md(this.persistenceKey,e))}},{key:"updateQueryState",value:function(e,t,n){this.Tr(e,t,n)}},{key:"handleUserChange",value:function(e,t,n){var r=this;t.forEach((function(e){r.pr(e)})),this.currentUser=e,n.forEach((function(e){r.addPendingMutation(e)}))}},{key:"setOnlineState",value:function(e){this.Er(e)}},{key:"notifyBundleLoaded",value:function(e){this.Ar(e)}},{key:"shutdown",value:function(){this.started&&(this.window.removeEventListener("storage",this.er),this.removeItem(this.rr),this.started=!1)}},{key:"getItem",value:function(e){var t=this.storage.getItem(e);return _o("SharedClientState","READ",e,t),t}},{key:"setItem",value:function(e,t){_o("SharedClientState","SET",e,t),this.storage.setItem(e,t)}},{key:"removeItem",value:function(e){_o("SharedClientState","REMOVE",e),this.storage.removeItem(e)}},{key:"nr",value:function(e){var t=this,n=e;if(n.storageArea===this.storage){if(_o("SharedClientState","EVENT",n.key,n.newValue),n.key===this.rr)return void No("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.Jn.enqueueRetryable(ee(ie().mark((function e(){var r,i,a,o,s,u,c;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.started){e.next=43;break}if(null===n.key){e.next=41;break}if(!t.ar.test(n.key)){e.next=11;break}if(null!=n.newValue){e.next=6;break}return r=t.Rr(n.key),e.abrupt("return",t.br(r,null));case 6:if(!(i=t.Pr(n.key,n.newValue))){e.next=9;break}return e.abrupt("return",t.br(i.clientId,i));case 9:e.next=41;break;case 11:if(!t.cr.test(n.key)){e.next=18;break}if(null===n.newValue){e.next=16;break}if(!(a=t.Vr(n.key,n.newValue))){e.next=16;break}return e.abrupt("return",t.vr(a));case 16:e.next=41;break;case 18:if(!t.hr.test(n.key)){e.next=25;break}if(null===n.newValue){e.next=23;break}if(!(o=t.Sr(n.key,n.newValue))){e.next=23;break}return e.abrupt("return",t.Dr(o));case 23:e.next=41;break;case 25:if(n.key!==t.lr){e.next=32;break}if(null===n.newValue){e.next=30;break}if(!(s=t.wr(n.newValue))){e.next=30;break}return e.abrupt("return",t.mr(s));case 30:e.next=41;break;case 32:if(n.key!==t.ur){e.next=37;break}u=function(e){var t=Ko.A;if(null!=e)try{var n=JSON.parse(e);Po("number"==typeof n),t=n}catch(e){No("SharedClientState","Failed to read sequence number from WebStorage",e)}return t}(n.newValue),u!==Ko.A&&t.sequenceNumberHandler(u),e.next=41;break;case 37:if(n.key!==t.dr){e.next=41;break}return c=t.Cr(n.newValue),e.next=41,Promise.all(c.map((function(e){return t.syncEngine.Nr(e)})));case 41:e.next=44;break;case 43:t.ir.push(n);case 44:case"end":return e.stop()}}),e)}))))}}},{key:"Ir",get:function(){return this.sr.get(this.tr)}},{key:"_r",value:function(){this.setItem(this.rr,this.Ir.Yi())}},{key:"yr",value:function(e,t,n){var r=new gd(this.currentUser,e,t,n),i=vd(this.persistenceKey,this.currentUser,e);this.setItem(i,r.Yi())}},{key:"pr",value:function(e){var t=vd(this.persistenceKey,this.currentUser,e);this.removeItem(t)}},{key:"Er",value:function(e){var t={clientId:this.tr,onlineState:e};this.storage.setItem(this.lr,JSON.stringify(t))}},{key:"Tr",value:function(e,t,n){var r=md(this.persistenceKey,e),i=new yd(e,t,n);this.setItem(r,i.Yi())}},{key:"Ar",value:function(e){var t=JSON.stringify(Array.from(e));this.setItem(this.dr,t)}},{key:"Rr",value:function(e){var t=this.ar.exec(e);return t?t[1]:null}},{key:"Pr",value:function(e,t){var n=this.Rr(e);return Ad.Ji(n,t)}},{key:"Vr",value:function(e,t){var n=this.cr.exec(e),r=Number(n[1]),i=void 0!==n[2]?n[2]:null;return gd.Ji(new Eo(i),r,t)}},{key:"Sr",value:function(e,t){var n=this.hr.exec(e),r=Number(n[1]);return yd.Ji(r,t)}},{key:"wr",value:function(e){return kd.Ji(e)}},{key:"Cr",value:function(e){return JSON.parse(e)}},{key:"vr",value:function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.user.uid!==this.currentUser.uid){e.next=2;break}return e.abrupt("return",this.syncEngine.kr(t.batchId,t.state,t.error));case 2:_o("SharedClientState","Ignoring mutation for non-active user ".concat(t.user.uid));case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"Dr",value:function(e){return this.syncEngine.Mr(e.targetId,e.state,e.error)}},{key:"br",value:function(e,t){var n=this,r=t?this.sr.insert(e,t):this.sr.remove(e),i=this.gr(this.sr),a=this.gr(r),o=[],s=[];return a.forEach((function(e){i.has(e)||o.push(e)})),i.forEach((function(e){a.has(e)||s.push(e)})),this.syncEngine.Or(o,s).then((function(){n.sr=r}))}},{key:"mr",value:function(e){this.sr.get(e.clientId)&&this.onlineStateHandler(e.onlineState)}},{key:"gr",value:function(e){var t=Lc();return e.forEach((function(e,n){t=t.unionWith(n.activeTargetIds)})),t}}],[{key:"vt",value:function(e){return!(!e||!e.localStorage)}}]),e}(),xd=function(){function e(){oe(this,e),this.Fr=new bd,this.$r={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}return ue(e,[{key:"addPendingMutation",value:function(e){}},{key:"updateMutationState",value:function(e,t,n){}},{key:"addLocalQueryTarget",value:function(e){return this.Fr.Xi(e),this.$r[e]||"not-current"}},{key:"updateQueryState",value:function(e,t,n){this.$r[e]=t}},{key:"removeLocalQueryTarget",value:function(e){this.Fr.Zi(e)}},{key:"isLocalQueryTarget",value:function(e){return this.Fr.activeTargetIds.has(e)}},{key:"clearQueryState",value:function(e){delete this.$r[e]}},{key:"getAllActiveQueryTargets",value:function(){return this.Fr.activeTargetIds}},{key:"isActiveQueryTarget",value:function(e){return this.Fr.activeTargetIds.has(e)}},{key:"start",value:function(){return this.Fr=new bd,Promise.resolve()}},{key:"handleUserChange",value:function(e,t,n){}},{key:"setOnlineState",value:function(e){}},{key:"shutdown",value:function(){}},{key:"writeSequenceNumber",value:function(e){}},{key:"notifyBundleLoaded",value:function(e){}}]),e}(),Id=function(){function e(){oe(this,e)}return ue(e,[{key:"Br",value:function(e){}},{key:"shutdown",value:function(){}}]),e}(),Ed=function(){function e(){var t=this;oe(this,e),this.Lr=function(){return t.Ur()},this.qr=function(){return t.Gr()},this.Kr=[],this.Qr()}return ue(e,[{key:"Br",value:function(e){this.Kr.push(e)}},{key:"shutdown",value:function(){window.removeEventListener("online",this.Lr),window.removeEventListener("offline",this.qr)}},{key:"Qr",value:function(){window.addEventListener("online",this.Lr),window.addEventListener("offline",this.qr)}},{key:"Ur",value:function(){_o("ConnectivityMonitor","Network connectivity changed: AVAILABLE");var e,t=ce(this.Kr);try{for(t.s();!(e=t.n()).done;){(0,e.value)(0)}}catch(n){t.e(n)}finally{t.f()}}},{key:"Gr",value:function(){_o("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");var e,t=ce(this.Kr);try{for(t.s();!(e=t.n()).done;){(0,e.value)(1)}}catch(n){t.e(n)}finally{t.f()}}}],[{key:"vt",value:function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}]),e}(),Sd={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery"},Td=function(){function e(t){oe(this,e),this.jr=t.jr,this.Wr=t.Wr}return ue(e,[{key:"zr",value:function(e){this.Hr=e}},{key:"Jr",value:function(e){this.Yr=e}},{key:"onMessage",value:function(e){this.Xr=e}},{key:"close",value:function(){this.Wr()}},{key:"send",value:function(e){this.jr(e)}},{key:"Zr",value:function(){this.Hr()}},{key:"eo",value:function(e){this.Yr(e)}},{key:"no",value:function(e){this.Xr(e)}}]),e}(),Cd=function(e){he(n,e);var t=ge(n);function n(e){var r;return oe(this,n),(r=t.call(this,e)).forceLongPolling=e.forceLongPolling,r.autoDetectLongPolling=e.autoDetectLongPolling,r.useFetchStreams=e.useFetchStreams,r}return ue(n,[{key:"ao",value:function(e,t,n,r){return new Promise((function(i,a){var o=new xo;o.listenOnce(yo.COMPLETE,(function(){try{switch(o.getLastErrorCode()){case go.NO_ERROR:var t=o.getResponseJson();_o("Connection","XHR received:",JSON.stringify(t)),i(t);break;case go.TIMEOUT:_o("Connection",'RPC "'+e+'" timed out'),a(new Lo(Bo.DEADLINE_EXCEEDED,"Request time out"));break;case go.HTTP_ERROR:var n=o.getStatus();if(_o("Connection",'RPC "'+e+'" failed with status:',n,"response text:",o.getResponseText()),n>0){var r=o.getResponseJson().error;if(r&&r.status&&r.message){var s=function(e){var t=e.toLowerCase().replace(/_/g,"-");return Object.values(Bo).indexOf(t)>=0?t:Bo.UNKNOWN}(r.status);a(new Lo(s,r.message))}else a(new Lo(Bo.UNKNOWN,"Server responded with status "+o.getStatus()))}else a(new Lo(Bo.UNAVAILABLE,"Connection failed."));break;default:Ro()}}finally{_o("Connection",'RPC "'+e+'" completed.')}}));var s=JSON.stringify(r);o.send(t,"POST",s,n,15)}))}},{key:"ho",value:function(e,t,n){var r=[this.so,"/","google.firestore.v1.Firestore","/",e,"/channel"],i=vo(),a=mo(),o={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/".concat(this.databaseId.projectId,"/databases/").concat(this.databaseId.database)},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling};this.useFetchStreams&&(o.xmlHttpFactory=new bo({})),this.uo(o.initMessageHeaders,t,n),Ce()||De()||Te().indexOf("Electron/")>=0||Oe()||Te().indexOf("MSAppHost/")>=0||Ne()||(o.httpHeadersOverwriteParam="$httpHeaders");var s=r.join("");_o("Connection","Creating WebChannel: "+s,o);var u=i.createWebChannel(s,o),c=!1,l=!1,f=new Td({jr:function(e){l?_o("Connection","Not sending because WebChannel is closed:",e):(c||(_o("Connection","Opening WebChannel transport."),u.open(),c=!0),_o("Connection","WebChannel sending:",e),u.send(e))},Wr:function(){return u.close()}}),h=function(e,t,n){e.listen(t,(function(e){try{n(e)}catch(e){setTimeout((function(){throw e}),0)}}))};return h(u,wo.EventType.OPEN,(function(){l||_o("Connection","WebChannel transport opened.")})),h(u,wo.EventType.CLOSE,(function(){l||(l=!0,_o("Connection","WebChannel transport closed"),f.eo())})),h(u,wo.EventType.ERROR,(function(e){l||(l=!0,Do("Connection","WebChannel transport errored:",e),f.eo(new Lo(Bo.UNAVAILABLE,"The operation could not be completed")))})),h(u,wo.EventType.MESSAGE,(function(e){var t;if(!l){var n=e.data[0];Po(!!n);var r=n,i=r.error||(null===(t=r[0])||void 0===t?void 0:t.error);if(i){_o("Connection","WebChannel received error:",i);var a=i.status,o=function(e){var t=pc[e];if(void 0!==t)return kc(t)}(a),s=i.message;void 0===o&&(o=Bo.INTERNAL,s="Unknown error status: "+a+" with message "+i.message),l=!0,f.eo(new Lo(o,s)),u.close()}else _o("Connection","WebChannel received:",n),f.no(n)}})),h(a,Ao.STAT_EVENT,(function(e){e.stat===ko.PROXY?_o("Connection","Detected buffering proxy"):e.stat===ko.NOPROXY&&_o("Connection","Detected no buffering proxy")})),setTimeout((function(){f.Zr()}),0),f}}]),n}(function(){function e(t){oe(this,e),this.databaseInfo=t,this.databaseId=t.databaseId;var n=t.ssl?"https":"http";this.so=n+"://"+t.host,this.io="projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database+"/documents"}return ue(e,[{key:"ro",value:function(e,t,n,r,i){var a=this.oo(e,t);_o("RestConnection","Sending: ",a,n);var o={};return this.uo(o,r,i),this.ao(e,a,o,n).then((function(e){return _o("RestConnection","Received: ",e),e}),(function(t){throw Do("RestConnection","".concat(e," failed with error: "),t,"url: ",a,"request:",n),t}))}},{key:"co",value:function(e,t,n,r,i){return this.ro(e,t,n,r,i)}},{key:"uo",value:function(e,t,n){e["X-Goog-Api-Client"]="gl-js/ fire/"+So,e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),t&&t.headers.forEach((function(t,n){return e[n]=t})),n&&n.headers.forEach((function(t,n){return e[n]=t}))}},{key:"oo",value:function(e,t){var n=Sd[e];return"".concat(this.so,"/v1/").concat(t,":").concat(n)}}]),e}());function _d(){return"undefined"!=typeof window?window:null}function Nd(){return"undefined"!=typeof document?document:null}function Dd(e){return new Jc(e,!0)}var Od=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1.5,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:6e4;oe(this,e),this.Jn=t,this.timerId=n,this.lo=r,this.fo=i,this._o=a,this.wo=0,this.mo=null,this.yo=Date.now(),this.reset()}return ue(e,[{key:"reset",value:function(){this.wo=0}},{key:"po",value:function(){this.wo=this._o}},{key:"Io",value:function(e){var t=this;this.cancel();var n=Math.floor(this.wo+this.To()),r=Math.max(0,Date.now()-this.yo),i=Math.max(0,n-r);i>0&&_o("ExponentialBackoff","Backing off for ".concat(i," ms (base delay: ").concat(this.wo," ms, delay with jitter: ").concat(n," ms, last attempt: ").concat(r," ms ago)")),this.mo=this.Jn.enqueueAfterDelay(this.timerId,i,(function(){return t.yo=Date.now(),e()})),this.wo*=this.fo,this.wo<this.lo&&(this.wo=this.lo),this.wo>this._o&&(this.wo=this._o)}},{key:"Eo",value:function(){null!==this.mo&&(this.mo.skipDelay(),this.mo=null)}},{key:"cancel",value:function(){null!==this.mo&&(this.mo.cancel(),this.mo=null)}},{key:"To",value:function(){return(Math.random()-.5)*this.wo}}]),e}(),Rd=function(){function e(t,n,r,i,a,o,s,u){oe(this,e),this.Jn=t,this.Ao=r,this.Ro=i,this.bo=a,this.authCredentialsProvider=o,this.appCheckCredentialsProvider=s,this.listener=u,this.state=0,this.Po=0,this.Vo=null,this.vo=null,this.stream=null,this.So=new Od(t,n)}return ue(e,[{key:"Do",value:function(){return 1===this.state||5===this.state||this.Co()}},{key:"Co",value:function(){return 2===this.state||3===this.state}},{key:"start",value:function(){4!==this.state?this.auth():this.xo()}},{key:"stop",value:function(){var e=ee(ie().mark((function e(){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.Do(),!e.t0){e.next=4;break}return e.next=4,this.close(0);case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"No",value:function(){this.state=0,this.So.reset()}},{key:"ko",value:function(){var e=this;this.Co()&&null===this.Vo&&(this.Vo=this.Jn.enqueueAfterDelay(this.Ao,6e4,(function(){return e.Mo()})))}},{key:"Oo",value:function(e){this.Fo(),this.stream.send(e)}},{key:"Mo",value:function(){var e=ee(ie().mark((function e(){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.Co()){e.next=2;break}return e.abrupt("return",this.close(0));case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"Fo",value:function(){this.Vo&&(this.Vo.cancel(),this.Vo=null)}},{key:"$o",value:function(){this.vo&&(this.vo.cancel(),this.vo=null)}},{key:"close",value:function(){var e=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.Fo(),this.$o(),this.So.cancel(),this.Po++,4!==t?this.So.reset():n&&n.code===Bo.RESOURCE_EXHAUSTED?(No(n.toString()),No("Using maximum backoff delay to prevent overloading the backend."),this.So.po()):n&&n.code===Bo.UNAUTHENTICATED&&3!==this.state&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),null!==this.stream&&(this.Bo(),this.stream.close(),this.stream=null),this.state=t,e.next=9,this.listener.Jr(n);case 9:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"Bo",value:function(){}},{key:"auth",value:function(){var e=this;this.state=1;var t=this.Lo(this.Po),n=this.Po;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then((function(t){var r=s(t,2),i=r[0],a=r[1];e.Po===n&&e.Uo(i,a)}),(function(n){t((function(){var t=new Lo(Bo.UNKNOWN,"Fetching auth token failed: "+n.message);return e.qo(t)}))}))}},{key:"Uo",value:function(e,t){var n=this,r=this.Lo(this.Po);this.stream=this.Go(e,t),this.stream.zr((function(){r((function(){return n.state=2,n.vo=n.Jn.enqueueAfterDelay(n.Ro,1e4,(function(){return n.Co()&&(n.state=3),Promise.resolve()})),n.listener.zr()}))})),this.stream.Jr((function(e){r((function(){return n.qo(e)}))})),this.stream.onMessage((function(e){r((function(){return n.onMessage(e)}))}))}},{key:"xo",value:function(){var e=this;this.state=5,this.So.Io(ee(ie().mark((function t(){return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.state=0,e.start();case 1:case"end":return t.stop()}}),t)}))))}},{key:"qo",value:function(e){return _o("PersistentStream","close with error: ".concat(e)),this.stream=null,this.close(4,e)}},{key:"Lo",value:function(e){var t=this;return function(n){t.Jn.enqueueAndForget((function(){return t.Po===e?n():(_o("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())}))}}}]),e}(),Pd=function(e){he(n,e);var t=ge(n);function n(e,r,i,a,o,s){var u;return oe(this,n),(u=t.call(this,e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",r,i,a,s)).M=o,u}return ue(n,[{key:"Go",value:function(e,t){return this.bo.ho("Listen",e,t)}},{key:"onMessage",value:function(e){this.So.reset();var t=function(e,t){var n;if("targetChange"in t){t.targetChange;var r=function(e){return"NO_CHANGE"===e?0:"ADD"===e?1:"REMOVE"===e?2:"CURRENT"===e?3:"RESET"===e?4:Ro()}(t.targetChange.targetChangeType||"NO_CHANGE"),i=t.targetChange.targetIds||[],a=function(e,t){return e.N?(Po(void 0===t||"string"==typeof t),cs.fromBase64String(t||"")):(Po(void 0===t||t instanceof Uint8Array),cs.fromUint8Array(t||new Uint8Array))}(e,t.targetChange.resumeToken),o=t.targetChange.cause,s=o&&function(e){var t=void 0===e.code?Bo.UNKNOWN:kc(e.code);return new Lo(t,e.message||"")}(o);n=new Vc(r,i,a,s||null)}else if("documentChange"in t){t.documentChange;var u=t.documentChange;u.document,u.document.name,u.document.updateTime;var c=rl(e,u.document.name),l=$c(u.document.updateTime),f=new Vs({mapValue:{fields:u.document.fields}}),h=qs.newFoundDocument(c,l,f),d=u.targetIds||[],p=u.removedTargetIds||[];n=new Fc(d,p,h.key,h)}else if("documentDelete"in t){t.documentDelete;var v=t.documentDelete;v.document;var m=rl(e,v.document),g=v.readTime?$c(v.readTime):es.min(),y=qs.newNoDocument(m,g),A=v.removedTargetIds||[];n=new Fc([],A,y.key,y)}else if("documentRemove"in t){t.documentRemove;var k=t.documentRemove;k.document;var b=rl(e,k.document),w=k.removedTargetIds||[];n=new Fc([],w,b,null)}else{if(!("filter"in t))return Ro();t.filter;var x=t.filter;x.targetId;var I=x.count||0,E=new yc(I),S=x.targetId;n=new Qc(S,E)}return n}(this.M,e),n=function(e){if(!("targetChange"in e))return es.min();var t=e.targetChange;return t.targetIds&&t.targetIds.length?es.min():t.readTime?$c(t.readTime):es.min()}(e);return this.listener.Ko(t,n)}},{key:"Qo",value:function(e){var t={};t.database=ol(this.M),t.addTarget=function(e,t){var n,r=t.target;return(n=iu(r)?{documents:dl(e,r)}:{query:pl(e,r)}).targetId=t.targetId,t.resumeToken.approximateByteSize()>0?n.resumeToken=Xc(e,t.resumeToken):t.snapshotVersion.compareTo(es.min())>0&&(n.readTime=Yc(e,t.snapshotVersion.toTimestamp())),n}(this.M,e);var n=function(e,t){var n=function(e,t){switch(t){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return Ro()}}(0,t.purpose);return null==n?null:{"goog-listen-tags":n}}(this.M,e);n&&(t.labels=n),this.Oo(t)}},{key:"jo",value:function(e){var t={};t.database=ol(this.M),t.removeTarget=e,this.Oo(t)}}]),n}(Rd),Md=function(e){he(n,e);var t=ge(n);function n(e,r,i,a,o,s){var u;return oe(this,n),(u=t.call(this,e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",r,i,a,s)).M=o,u.Wo=!1,u}return ue(n,[{key:"zo",get:function(){return this.Wo}},{key:"start",value:function(){this.Wo=!1,this.lastStreamToken=void 0,cn(de(n.prototype),"start",this).call(this)}},{key:"Bo",value:function(){this.Wo&&this.Ho([])}},{key:"Go",value:function(e,t){return this.bo.ho("Write",e,t)}},{key:"onMessage",value:function(e){if(Po(!!e.streamToken),this.lastStreamToken=e.streamToken,this.Wo){this.So.reset();var t=function(e,t){return e&&e.length>0?(Po(void 0!==t),e.map((function(e){return function(e,t){var n=e.updateTime?$c(e.updateTime):$c(t);return n.isEqual(es.min())&&(n=$c(t)),new ec(n,e.transformResults||[])}(e,t)}))):[]}(e.writeResults,e.commitTime),n=$c(e.commitTime);return this.listener.Jo(n,t)}return Po(!e.writeResults||0===e.writeResults.length),this.Wo=!0,this.listener.Yo()}},{key:"Xo",value:function(){var e={};e.database=ol(this.M),this.Oo(e)}},{key:"Ho",value:function(e){var t=this,n={streamToken:this.lastStreamToken,writes:e.map((function(e){return fl(t.M,e)}))};this.Oo(n)}}]),n}(Rd),Bd=function(e){he(n,e);var t=ge(n);function n(e,r,i,a){var o;return oe(this,n),(o=t.call(this)).authCredentials=e,o.appCheckCredentials=r,o.bo=i,o.M=a,o.Zo=!1,o}return ue(n,[{key:"tu",value:function(){if(this.Zo)throw new Lo(Bo.FAILED_PRECONDITION,"The client has already been terminated.")}},{key:"ro",value:function(e,t,n){var r=this;return this.tu(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((function(i){var a=s(i,2),o=a[0],u=a[1];return r.bo.ro(e,t,n,o,u)})).catch((function(e){throw"FirebaseError"===e.name?(e.code===Bo.UNAUTHENTICATED&&(r.authCredentials.invalidateToken(),r.appCheckCredentials.invalidateToken()),e):new Lo(Bo.UNKNOWN,e.toString())}))}},{key:"co",value:function(e,t,n){var r=this;return this.tu(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((function(i){var a=s(i,2),o=a[0],u=a[1];return r.bo.co(e,t,n,o,u)})).catch((function(e){throw"FirebaseError"===e.name?(e.code===Bo.UNAUTHENTICATED&&(r.authCredentials.invalidateToken(),r.appCheckCredentials.invalidateToken()),e):new Lo(Bo.UNKNOWN,e.toString())}))}},{key:"terminate",value:function(){this.Zo=!0}}]),n}(function(){return ue((function e(){oe(this,e)}))}()),Ld=function(){function e(t,n){oe(this,e),this.asyncQueue=t,this.onlineStateHandler=n,this.state="Unknown",this.eu=0,this.nu=null,this.su=!0}return ue(e,[{key:"iu",value:function(){var e=this;0===this.eu&&(this.ru("Unknown"),this.nu=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,(function(){return e.nu=null,e.ou("Backend didn't respond within 10 seconds."),e.ru("Offline"),Promise.resolve()})))}},{key:"uu",value:function(e){"Online"===this.state?this.ru("Unknown"):(this.eu++,this.eu>=1&&(this.au(),this.ou("Connection failed 1 times. Most recent error: ".concat(e.toString())),this.ru("Offline")))}},{key:"set",value:function(e){this.au(),this.eu=0,"Online"===e&&(this.su=!1),this.ru(e)}},{key:"ru",value:function(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}},{key:"ou",value:function(e){var t="Could not reach Cloud Firestore backend. ".concat(e,"\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.");this.su?(No(t),this.su=!1):_o("OnlineStateTracker",t)}},{key:"au",value:function(){null!==this.nu&&(this.nu.cancel(),this.nu=null)}}]),e}(),jd=ue((function e(t,n,r,i,a){var o=this;oe(this,e),this.localStore=t,this.datastore=n,this.asyncQueue=r,this.remoteSyncer={},this.cu=[],this.hu=new Map,this.lu=new Set,this.fu=[],this.du=a,this.du.Br((function(e){r.enqueueAndForget(ee(ie().mark((function e(){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=Jd(o),!e.t0){e.next=5;break}return _o("RemoteStore","Restarting streams for network reachability change."),e.next=5,function(){var e=ee(ie().mark((function e(t){var n;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=Mo(t)).lu.add(4),e.next=4,Qd(n);case 4:return n._u.set("Unknown"),n.lu.delete(4),e.next=8,Ud(n);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()(o);case 5:case"end":return e.stop()}}),e)}))))})),this._u=new Ld(r,i)}));function Ud(e){return Fd.apply(this,arguments)}function Fd(){return Fd=ee(ie().mark((function e(t){var n,r,i;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Jd(t)){e.next=18;break}n=ce(t.fu),e.prev=2,n.s();case 4:if((r=n.n()).done){e.next=10;break}return i=r.value,e.next=8,i(!0);case 8:e.next=4;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),n.e(e.t0);case 15:return e.prev=15,n.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[2,12,15,18]])}))),Fd.apply(this,arguments)}function Qd(e){return Vd.apply(this,arguments)}function Vd(){return Vd=ee(ie().mark((function e(t){var n,r,i;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=ce(t.fu),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=9;break}return i=r.value,e.next=7,i(!1);case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),n.e(e.t0);case 14:return e.prev=14,n.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,11,14,17]])}))),Vd.apply(this,arguments)}function zd(e,t){var n=Mo(e);n.hu.has(t.targetId)||(n.hu.set(t.targetId,t),Wd(n)?Kd(n):Ip(n).Co()&&Gd(n,t))}function qd(e,t){var n=Mo(e),r=Ip(n);n.hu.delete(t),r.Co()&&Hd(n,t),0===n.hu.size&&(r.Co()?r.ko():Jd(n)&&n._u.set("Unknown"))}function Gd(e,t){e.wu.Z(t.targetId),Ip(e).Qo(t)}function Hd(e,t){e.wu.Z(t),Ip(e).jo(t)}function Kd(e){e.wu=new qc({getRemoteKeysForTarget:function(t){return e.remoteSyncer.getRemoteKeysForTarget(t)},Et:function(t){return e.hu.get(t)||null}}),Ip(e).start(),e._u.iu()}function Wd(e){return Jd(e)&&!Ip(e).Do()&&e.hu.size>0}function Jd(e){return 0===Mo(e).lu.size}function Yd(e){e.wu=void 0}function Xd(e){return Zd.apply(this,arguments)}function Zd(){return Zd=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.hu.forEach((function(e,n){Gd(t,e)}));case 1:case"end":return e.stop()}}),e)}))),Zd.apply(this,arguments)}function $d(e,t){return ep.apply(this,arguments)}function ep(){return ep=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Yd(t),Wd(t)?(t._u.uu(n),Kd(t)):t._u.set("Unknown");case 1:case"end":return e.stop()}}),e)}))),ep.apply(this,arguments)}function tp(e,t,n){return np.apply(this,arguments)}function np(){return np=ee(ie().mark((function e(t,n,r){var i;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t._u.set("Online"),!(n instanceof Vc&&2===n.state&&n.cause)){e.next=13;break}return e.prev=1,e.next=4,function(){var e=ee(ie().mark((function e(t,n){var r,i,a,o;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.cause,i=ce(n.targetIds),e.prev=2,i.s();case 4:if((a=i.n()).done){e.next=14;break}if(o=a.value,e.t0=t.hu.has(o),!e.t0){e.next=12;break}return e.next=10,t.remoteSyncer.rejectListen(o,r);case 10:t.hu.delete(o),t.wu.removeTarget(o);case 12:e.next=4;break;case 14:e.next=19;break;case 16:e.prev=16,e.t1=e.catch(2),i.e(e.t1);case 19:return e.prev=19,i.f(),e.finish(19);case 22:case"end":return e.stop()}}),e,null,[[2,16,19,22]])})));return function(t,n){return e.apply(this,arguments)}}()(t,n);case 4:e.next=11;break;case 6:return e.prev=6,e.t0=e.catch(1),_o("RemoteStore","Failed to remove targets %s: %s ",n.targetIds.join(","),e.t0),e.next=11,rp(t,e.t0);case 11:case 22:e.next=29;break;case 13:if(n instanceof Fc?t.wu.ut(n):n instanceof Qc?t.wu._t(n):t.wu.ht(n),r.isEqual(es.min())){e.next=29;break}return e.prev=14,e.next=17,Vh(t.localStore);case 17:if(i=e.sent,e.t1=r.compareTo(i)>=0,!e.t1){e.next=22;break}return e.next=22,function(e,t){var n=e.wu.yt(t);return n.targetChanges.forEach((function(n,r){if(n.resumeToken.approximateByteSize()>0){var i=e.hu.get(r);i&&e.hu.set(r,i.withResumeToken(n.resumeToken,t))}})),n.targetMismatches.forEach((function(t){var n=e.hu.get(t);if(n){e.hu.set(t,n.withResumeToken(cs.EMPTY_BYTE_STRING,n.snapshotVersion)),Hd(e,t);var r=new vf(n.target,t,1,n.sequenceNumber);Gd(e,r)}})),e.remoteSyncer.applyRemoteEvent(n)}(t,r);case 24:return e.prev=24,e.t2=e.catch(14),_o("RemoteStore","Failed to raise snapshot:",e.t2),e.next=29,rp(t,e.t2);case 29:case"end":return e.stop()}}),e,null,[[1,6],[14,24]])}))),np.apply(this,arguments)}function rp(e,t,n){return ip.apply(this,arguments)}function ip(){return ip=ee(ie().mark((function e(t,n,r){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(af(n)){e.next=2;break}throw n;case 2:return t.lu.add(1),e.next=5,Qd(t);case 5:t._u.set("Offline"),r||(r=function(){return Vh(t.localStore)}),t.asyncQueue.enqueueRetryable(ee(ie().mark((function e(){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _o("RemoteStore","Retrying IndexedDB access"),e.next=3,r();case 3:return t.lu.delete(1),e.next=6,Ud(t);case 6:case"end":return e.stop()}}),e)}))));case 8:case"end":return e.stop()}}),e)}))),ip.apply(this,arguments)}function ap(e,t){return t().catch((function(n){return rp(e,n,t)}))}function op(e){return sp.apply(this,arguments)}function sp(){return sp=ee(ie().mark((function e(t){var n,r,i,a;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=Mo(t),r=Ep(n),i=n.cu.length>0?n.cu[n.cu.length-1].batchId:-1;case 2:if(!up(n)){e.next=19;break}return e.prev=3,e.next=6,Gh(n.localStore,i);case 6:if(null!==(a=e.sent)){e.next=10;break}return 0===n.cu.length&&r.ko(),e.abrupt("break",19);case 10:i=a.batchId,cp(n,a),e.next=17;break;case 13:return e.prev=13,e.t0=e.catch(3),e.next=17,rp(n,e.t0);case 17:e.next=2;break;case 19:lp(n)&&fp(n);case 20:case"end":return e.stop()}}),e,null,[[3,13]])}))),sp.apply(this,arguments)}function up(e){return Jd(e)&&e.cu.length<10}function cp(e,t){e.cu.push(t);var n=Ep(e);n.Co()&&n.zo&&n.Ho(t.mutations)}function lp(e){return Jd(e)&&!Ep(e).Do()&&e.cu.length>0}function fp(e){Ep(e).start()}function hp(e){return dp.apply(this,arguments)}function dp(){return dp=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ep(t).Xo();case 1:case"end":return e.stop()}}),e)}))),dp.apply(this,arguments)}function pp(e){return vp.apply(this,arguments)}function vp(){return vp=ee(ie().mark((function e(t){var n,r,i,a;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=Ep(t),r=ce(t.cu);try{for(r.s();!(i=r.n()).done;)a=i.value,n.Ho(a.mutations)}catch(o){r.e(o)}finally{r.f()}case 3:case"end":return e.stop()}}),e)}))),vp.apply(this,arguments)}function mp(e,t,n){return gp.apply(this,arguments)}function gp(){return gp=ee(ie().mark((function e(t,n,r){var i,a;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.cu.shift(),a=df.from(i,n,r),e.next=3,ap(t,(function(){return t.remoteSyncer.applySuccessfulWrite(a)}));case 3:return e.next=5,op(t);case 5:case"end":return e.stop()}}),e)}))),gp.apply(this,arguments)}function yp(e,t){return Ap.apply(this,arguments)}function Ap(){return Ap=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=n&&Ep(t).zo,!e.t0){e.next=4;break}return e.next=4,function(){var e=ee(ie().mark((function e(t,n){var r,i;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Ac(i=n.code)||i===Bo.ABORTED){e.next=7;break}return r=t.cu.shift(),Ep(t).No(),e.next=5,ap(t,(function(){return t.remoteSyncer.rejectFailedWrite(r.batchId,n)}));case 5:return e.next=7,op(t);case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()(t,n);case 4:lp(t)&&fp(t);case 5:case"end":return e.stop()}}),e)}))),Ap.apply(this,arguments)}function kp(e,t){return bp.apply(this,arguments)}function bp(){return bp=ee(ie().mark((function e(t,n){var r,i;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=Mo(t)).asyncQueue.verifyOperationInProgress(),_o("RemoteStore","RemoteStore received new credentials"),i=Jd(r),r.lu.add(3),e.next=6,Qd(r);case 6:return i&&r._u.set("Unknown"),e.next=9,r.remoteSyncer.handleCredentialChange(n);case 9:return r.lu.delete(3),e.next=12,Ud(r);case 12:case"end":return e.stop()}}),e)}))),bp.apply(this,arguments)}function wp(e,t){return xp.apply(this,arguments)}function xp(){return xp=ee(ie().mark((function e(t,n){var r;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Mo(t),!n){e.next=7;break}return r.lu.delete(2),e.next=5,Ud(r);case 5:e.next=13;break;case 7:if(e.t0=n,e.t0){e.next=13;break}return r.lu.add(2),e.next=12,Qd(r);case 12:r._u.set("Unknown");case 13:case"end":return e.stop()}}),e)}))),xp.apply(this,arguments)}function Ip(e){return e.mu||(e.mu=function(e,t,n){var r=Mo(e);return r.tu(),new Pd(t,r.bo,r.authCredentials,r.appCheckCredentials,r.M,n)}(e.datastore,e.asyncQueue,{zr:Xd.bind(null,e),Jr:$d.bind(null,e),Ko:tp.bind(null,e)}),e.fu.push(function(){var t=ee(ie().mark((function t(n){return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=4;break}e.mu.No(),Wd(e)?Kd(e):e._u.set("Unknown"),t.next=7;break;case 4:return t.next=6,e.mu.stop();case 6:Yd(e);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())),e.mu}function Ep(e){return e.gu||(e.gu=function(e,t,n){var r=Mo(e);return r.tu(),new Md(t,r.bo,r.authCredentials,r.appCheckCredentials,r.M,n)}(e.datastore,e.asyncQueue,{zr:hp.bind(null,e),Jr:yp.bind(null,e),Yo:pp.bind(null,e),Jo:mp.bind(null,e)}),e.fu.push(function(){var t=ee(ie().mark((function t(n){return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=6;break}return e.gu.No(),t.next=4,op(e);case 4:t.next=9;break;case 6:return t.next=8,e.gu.stop();case 8:e.cu.length>0&&(_o("RemoteStore","Stopping write stream with ".concat(e.cu.length," pending writes")),e.cu=[]);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())),e.gu}var Sp=function(){function e(t,n,r,i,a){oe(this,e),this.asyncQueue=t,this.timerId=n,this.targetTimeMs=r,this.op=i,this.removalCallback=a,this.deferred=new jo,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch((function(e){}))}return ue(e,[{key:"start",value:function(e){var t=this;this.timerHandle=setTimeout((function(){return t.handleDelayElapsed()}),e)}},{key:"skipDelay",value:function(){return this.handleDelayElapsed()}},{key:"cancel",value:function(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new Lo(Bo.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}},{key:"handleDelayElapsed",value:function(){var e=this;this.asyncQueue.enqueueAndForget((function(){return null!==e.timerHandle?(e.clearTimeout(),e.op().then((function(t){return e.deferred.resolve(t)}))):Promise.resolve()}))}},{key:"clearTimeout",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}))}],[{key:"createAndSchedule",value:function(t,n,r,i,a){var o=new e(t,n,Date.now()+r,i,a);return o.start(r),o}}]),e}();function Tp(e,t){if(No("AsyncQueue","".concat(t,": ").concat(e)),af(e))return new Lo(Bo.UNAVAILABLE,"".concat(t,": ").concat(e));throw e}var Cp=function(){function e(t){oe(this,e),this.comparator=t?function(e,n){return t(e,n)||ws.comparator(e.key,n.key)}:function(e,t){return ws.comparator(e.key,t.key)},this.keyedMap=Dc(),this.sortedSet=new wc(this.comparator)}return ue(e,[{key:"has",value:function(e){return null!=this.keyedMap.get(e)}},{key:"get",value:function(e){return this.keyedMap.get(e)}},{key:"first",value:function(){return this.sortedSet.minKey()}},{key:"last",value:function(){return this.sortedSet.maxKey()}},{key:"isEmpty",value:function(){return this.sortedSet.isEmpty()}},{key:"indexOf",value:function(e){var t=this.keyedMap.get(e);return t?this.sortedSet.indexOf(t):-1}},{key:"size",get:function(){return this.sortedSet.size}},{key:"forEach",value:function(e){this.sortedSet.inorderTraversal((function(t,n){return e(t),!1}))}},{key:"add",value:function(e){var t=this.delete(e.key);return t.copy(t.keyedMap.insert(e.key,e),t.sortedSet.insert(e,null))}},{key:"delete",value:function(e){var t=this.get(e);return t?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(t)):this}},{key:"isEqual",value:function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.sortedSet.getIterator(),r=t.sortedSet.getIterator();n.hasNext();){var i=n.getNext().key,a=r.getNext().key;if(!i.isEqual(a))return!1}return!0}},{key:"toString",value:function(){var e=[];return this.forEach((function(t){e.push(t.toString())})),0===e.length?"DocumentSet ()":"DocumentSet (\n  "+e.join("  \n")+"\n)"}},{key:"copy",value:function(t,n){var r=new e;return r.comparator=this.comparator,r.keyedMap=t,r.sortedSet=n,r}}],[{key:"emptySet",value:function(t){return new e(t.comparator)}}]),e}(),_p=function(){function e(){oe(this,e),this.yu=new wc(ws.comparator)}return ue(e,[{key:"track",value:function(e){var t=e.doc.key,n=this.yu.get(t);n?0!==e.type&&3===n.type?this.yu=this.yu.insert(t,e):3===e.type&&1!==n.type?this.yu=this.yu.insert(t,{type:n.type,doc:e.doc}):2===e.type&&2===n.type?this.yu=this.yu.insert(t,{type:2,doc:e.doc}):2===e.type&&0===n.type?this.yu=this.yu.insert(t,{type:0,doc:e.doc}):1===e.type&&0===n.type?this.yu=this.yu.remove(t):1===e.type&&2===n.type?this.yu=this.yu.insert(t,{type:1,doc:n.doc}):0===e.type&&1===n.type?this.yu=this.yu.insert(t,{type:2,doc:e.doc}):Ro():this.yu=this.yu.insert(t,e)}},{key:"pu",value:function(){var e=[];return this.yu.inorderTraversal((function(t,n){e.push(n)})),e}}]),e}(),Np=function(){function e(t,n,r,i,a,o,s,u){oe(this,e),this.query=t,this.docs=n,this.oldDocs=r,this.docChanges=i,this.mutatedKeys=a,this.fromCache=o,this.syncStateChanged=s,this.excludesMetadataChanges=u}return ue(e,[{key:"hasPendingWrites",get:function(){return!this.mutatedKeys.isEmpty()}},{key:"isEqual",value:function(e){if(!(this.fromCache===e.fromCache&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&Du(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;var t=this.docChanges,n=e.docChanges;if(t.length!==n.length)return!1;for(var r=0;r<t.length;r++)if(t[r].type!==n[r].type||!t[r].doc.isEqual(n[r].doc))return!1;return!0}}],[{key:"fromInitialDocuments",value:function(t,n,r,i){var a=[];return n.forEach((function(e){a.push({type:0,doc:e})})),new e(t,n,Cp.emptySet(n),a,r,i,!0,!1)}}]),e}(),Dp=ue((function e(){oe(this,e),this.Iu=void 0,this.listeners=[]})),Op=ue((function e(){oe(this,e),this.queries=new bc((function(e){return Ou(e)}),Du),this.onlineState="Unknown",this.Tu=new Set}));function Rp(e,t){return Pp.apply(this,arguments)}function Pp(){return Pp=ee(ie().mark((function e(t,n){var r,i,a,o,s;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Mo(t),i=n.query,a=!1,(o=r.queries.get(i))||(a=!0,o=new Dp),!a){e.next=13;break}return e.prev=3,e.next=6,r.onListen(i);case 6:o.Iu=e.sent,e.next=13;break;case 9:return e.prev=9,e.t0=e.catch(3),s=Tp(e.t0,"Initialization of query '".concat(Ru(n.query),"' failed")),e.abrupt("return",void n.onError(s));case 13:r.queries.set(i,o),o.listeners.push(n),n.Eu(r.onlineState),o.Iu&&n.Au(o.Iu)&&Up(r);case 14:case"end":return e.stop()}}),e,null,[[3,9]])}))),Pp.apply(this,arguments)}function Mp(e,t){return Bp.apply(this,arguments)}function Bp(){return Bp=ee(ie().mark((function e(t,n){var r,i,a,o,s;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Mo(t),i=n.query,a=!1,(o=r.queries.get(i))&&(s=o.listeners.indexOf(n))>=0&&(o.listeners.splice(s,1),a=0===o.listeners.length),!a){e.next=6;break}return e.abrupt("return",(r.queries.delete(i),r.onUnlisten(i)));case 6:case"end":return e.stop()}}),e)}))),Bp.apply(this,arguments)}function Lp(e,t){var n,r=Mo(e),i=!1,a=ce(t);try{for(a.s();!(n=a.n()).done;){var o=n.value,s=o.query,u=r.queries.get(s);if(u){var c,l=ce(u.listeners);try{for(l.s();!(c=l.n()).done;){c.value.Au(o)&&(i=!0)}}catch(f){l.e(f)}finally{l.f()}u.Iu=o}}}catch(f){a.e(f)}finally{a.f()}i&&Up(r)}function jp(e,t,n){var r=Mo(e),i=r.queries.get(t);if(i){var a,o=ce(i.listeners);try{for(o.s();!(a=o.n()).done;){a.value.onError(n)}}catch(s){o.e(s)}finally{o.f()}}r.queries.delete(t)}function Up(e){e.Tu.forEach((function(e){e.next()}))}var Fp=function(){function e(t,n,r){oe(this,e),this.query=t,this.Ru=n,this.bu=!1,this.Pu=null,this.onlineState="Unknown",this.options=r||{}}return ue(e,[{key:"Au",value:function(e){if(!this.options.includeMetadataChanges){var t,n=[],r=ce(e.docChanges);try{for(r.s();!(t=r.n()).done;){var i=t.value;3!==i.type&&n.push(i)}}catch(o){r.e(o)}finally{r.f()}e=new Np(e.query,e.docs,e.oldDocs,n,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0)}var a=!1;return this.bu?this.Vu(e)&&(this.Ru.next(e),a=!0):this.vu(e,this.onlineState)&&(this.Su(e),a=!0),this.Pu=e,a}},{key:"onError",value:function(e){this.Ru.error(e)}},{key:"Eu",value:function(e){this.onlineState=e;var t=!1;return this.Pu&&!this.bu&&this.vu(this.Pu,e)&&(this.Su(this.Pu),t=!0),t}},{key:"vu",value:function(e,t){if(!e.fromCache)return!0;var n="Offline"!==t;return(!this.options.Du||!n)&&(!e.docs.isEmpty()||"Offline"===t)}},{key:"Vu",value:function(e){if(e.docChanges.length>0)return!0;var t=this.Pu&&this.Pu.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!t)&&!0===this.options.includeMetadataChanges}},{key:"Su",value:function(e){e=Np.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache),this.bu=!0,this.Ru.next(e)}}]),e}(),Qp=function(){function e(t,n){oe(this,e),this.payload=t,this.byteLength=n}return ue(e,[{key:"Cu",value:function(){return"metadata"in this.payload}}]),e}(),Vp=function(){function e(t){oe(this,e),this.M=t}return ue(e,[{key:"li",value:function(e){return rl(this.M,e)}},{key:"fi",value:function(e){return e.metadata.exists?cl(this.M,e.document,!1):qs.newNoDocument(this.li(e.metadata.name),this.di(e.metadata.readTime))}},{key:"di",value:function(e){return $c(e)}}]),e}(),zp=function(){function e(t,n,r){oe(this,e),this.xu=t,this.localStore=n,this.M=r,this.queries=[],this.documents=[],this.collectionGroups=new Set,this.progress=qp(t)}return ue(e,[{key:"Nu",value:function(e){this.progress.bytesLoaded+=e.byteLength;var t=this.progress.documentsLoaded;if(e.payload.namedQuery)this.queries.push(e.payload.namedQuery);else if(e.payload.documentMetadata){this.documents.push({metadata:e.payload.documentMetadata}),e.payload.documentMetadata.exists||++t;var n=as.fromString(e.payload.documentMetadata.name);this.collectionGroups.add(n.get(n.length-2))}else e.payload.document&&(this.documents[this.documents.length-1].document=e.payload.document,++t);return t!==this.progress.documentsLoaded?(this.progress.documentsLoaded=t,Object.assign({},this.progress)):null}},{key:"ku",value:function(e){var t,n=new Map,r=new Vp(this.M),i=ce(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(a.metadata.queries){var o,s=r.li(a.metadata.name),u=ce(a.metadata.queries);try{for(u.s();!(o=u.n()).done;){var c=o.value,l=(n.get(c)||Mc()).add(s);n.set(c,l)}}catch(f){u.e(f)}finally{u.f()}}}}catch(f){i.e(f)}finally{i.f()}return n}},{key:"complete",value:function(){var e=ee(ie().mark((function e(){var t,n,r,i,a;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$h(this.localStore,new Vp(this.M),this.documents,this.xu.id);case 2:t=e.sent,n=this.ku(this.documents),r=ce(this.queries),e.prev=5,r.s();case 7:if((i=r.n()).done){e.next=13;break}return a=i.value,e.next=11,td(this.localStore,a,n.get(a.name));case 11:e.next=7;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(5),r.e(e.t0);case 18:return e.prev=18,r.f(),e.finish(18);case 21:return e.abrupt("return",(this.progress.taskState="Success",{progress:this.progress,Mu:this.collectionGroups,Ou:t}));case 22:case"end":return e.stop()}}),e,this,[[5,15,18,21]])})));return function(){return e.apply(this,arguments)}}()}]),e}();function qp(e){return{taskState:"Running",documentsLoaded:0,bytesLoaded:0,totalDocuments:e.totalDocuments,totalBytes:e.totalBytes}}var Gp=ue((function e(t){oe(this,e),this.key=t})),Hp=ue((function e(t){oe(this,e),this.key=t})),Kp=function(){function e(t,n){oe(this,e),this.query=t,this.Fu=n,this.$u=null,this.current=!1,this.Bu=Mc(),this.mutatedKeys=Mc(),this.Lu=Bu(t),this.Uu=new Cp(this.Lu)}return ue(e,[{key:"qu",get:function(){return this.Fu}},{key:"Gu",value:function(e,t){var n=this,r=t?t.Ku:new _p,i=t?t.Uu:this.Uu,a=t?t.mutatedKeys:this.mutatedKeys,o=i,s=!1,u=xu(this.query)&&i.size===this.query.limit?i.last():null,c=Iu(this.query)&&i.size===this.query.limit?i.first():null;if(e.inorderTraversal((function(e,t){var l=i.get(e),f=Pu(n.query,t)?t:null,h=!!l&&n.mutatedKeys.has(l.key),d=!!f&&(f.hasLocalMutations||n.mutatedKeys.has(f.key)&&f.hasCommittedMutations),p=!1;l&&f?l.data.isEqual(f.data)?h!==d&&(r.track({type:3,doc:f}),p=!0):n.Qu(l,f)||(r.track({type:2,doc:f}),p=!0,(u&&n.Lu(f,u)>0||c&&n.Lu(f,c)<0)&&(s=!0)):!l&&f?(r.track({type:0,doc:f}),p=!0):l&&!f&&(r.track({type:1,doc:l}),p=!0,(u||c)&&(s=!0)),p&&(f?(o=o.add(f),a=d?a.add(e):a.delete(e)):(o=o.delete(e),a=a.delete(e)))})),xu(this.query)||Iu(this.query))for(;o.size>this.query.limit;){var l=xu(this.query)?o.last():o.first();o=o.delete(l.key),a=a.delete(l.key),r.track({type:1,doc:l})}return{Uu:o,Ku:r,ei:s,mutatedKeys:a}}},{key:"Qu",value:function(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations}},{key:"applyChanges",value:function(e,t,n){var r=this,i=this.Uu;this.Uu=e.Uu,this.mutatedKeys=e.mutatedKeys;var a=e.Ku.pu();a.sort((function(e,t){return function(e,t){var n=function(e){switch(e){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return Ro()}};return n(e)-n(t)}(e.type,t.type)||r.Lu(e.doc,t.doc)})),this.ju(n);var o=t?this.Wu():[],s=0===this.Bu.size&&this.current?1:0,u=s!==this.$u;return this.$u=s,0!==a.length||u?{snapshot:new Np(this.query,e.Uu,i,a,e.mutatedKeys,0===s,u,!1),zu:o}:{zu:o}}},{key:"Eu",value:function(e){return this.current&&"Offline"===e?(this.current=!1,this.applyChanges({Uu:this.Uu,Ku:new _p,mutatedKeys:this.mutatedKeys,ei:!1},!1)):{zu:[]}}},{key:"Hu",value:function(e){return!this.Fu.has(e)&&!!this.Uu.has(e)&&!this.Uu.get(e).hasLocalMutations}},{key:"ju",value:function(e){var t=this;e&&(e.addedDocuments.forEach((function(e){return t.Fu=t.Fu.add(e)})),e.modifiedDocuments.forEach((function(e){})),e.removedDocuments.forEach((function(e){return t.Fu=t.Fu.delete(e)})),this.current=e.current)}},{key:"Wu",value:function(){var e=this;if(!this.current)return[];var t=this.Bu;this.Bu=Mc(),this.Uu.forEach((function(t){e.Hu(t.key)&&(e.Bu=e.Bu.add(t.key))}));var n=[];return t.forEach((function(t){e.Bu.has(t)||n.push(new Hp(t))})),this.Bu.forEach((function(e){t.has(e)||n.push(new Gp(e))})),n}},{key:"Ju",value:function(e){this.Fu=e.hi,this.Bu=Mc();var t=this.Gu(e.documents);return this.applyChanges(t,!0)}},{key:"Yu",value:function(){return Np.fromInitialDocuments(this.query,this.Uu,this.mutatedKeys,0===this.$u)}}]),e}(),Wp=ue((function e(t,n,r){oe(this,e),this.query=t,this.targetId=n,this.view=r})),Jp=ue((function e(t){oe(this,e),this.key=t,this.Xu=!1})),Yp=function(){function e(t,n,r,i,a,o){oe(this,e),this.localStore=t,this.remoteStore=n,this.eventManager=r,this.sharedClientState=i,this.currentUser=a,this.maxConcurrentLimboResolutions=o,this.Zu={},this.ta=new bc((function(e){return Ou(e)}),Du),this.ea=new Map,this.na=new Set,this.sa=new wc(ws.comparator),this.ia=new Map,this.ra=new ad,this.oa={},this.ua=new Map,this.aa=oh.gn(),this.onlineState="Unknown",this.ca=void 0}return ue(e,[{key:"isPrimaryClient",get:function(){return!0===this.ca}}]),e}();function Xp(e,t){return Zp.apply(this,arguments)}function Zp(){return Zp=ee(ie().mark((function e(t,n){var r,i,a,o,s,u;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=qv(t),!(o=r.ta.get(n))){e.next=6;break}i=o.targetId,r.sharedClientState.addLocalQueryTarget(i),a=o.view.Yu(),e.next=15;break;case 6:return e.next=8,Hh(r.localStore,_u(n));case 8:return s=e.sent,r.isPrimaryClient&&zd(r.remoteStore,s),u=r.sharedClientState.addLocalQueryTarget(s.targetId),i=s.targetId,e.next=14,$p(r,n,i,"current"===u);case 14:a=e.sent;case 15:return e.abrupt("return",a);case 16:case"end":return e.stop()}}),e)}))),Zp.apply(this,arguments)}function $p(e,t,n,r){return ev.apply(this,arguments)}function ev(){return ev=ee(ie().mark((function e(t,n,r,i){var a,o,s,u,c,l;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.ha=function(e,n,r){return function(){var e=ee(ie().mark((function e(t,n,r,i){var a,o,s;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=n.view.Gu(r),e.t0=a.ei,!e.t0){e.next=6;break}return e.next=5,Jh(t.localStore,n.query,!1).then((function(e){var t=e.documents;return n.view.Gu(t,a)}));case 5:a=e.sent;case 6:return o=i&&i.targetChanges.get(n.targetId),s=n.view.applyChanges(a,t.isPrimaryClient,o),e.abrupt("return",(kv(t,n.targetId,s.zu),s.snapshot));case 8:case"end":return e.stop()}}),e)})));return function(t,n,r,i){return e.apply(this,arguments)}}()(t,e,n,r)},e.next=3,Jh(t.localStore,n,!0);case 3:return a=e.sent,o=new Kp(n,a.hi),s=o.Gu(a.documents),u=Uc.createSynthesizedTargetChangeForCurrentChange(r,i&&"Offline"!==t.onlineState),c=o.applyChanges(s,t.isPrimaryClient,u),kv(t,r,c.zu),l=new Wp(n,r,o),e.abrupt("return",(t.ta.set(n,l),t.ea.has(r)?t.ea.get(r).push(n):t.ea.set(r,[n]),c.snapshot));case 11:case"end":return e.stop()}}),e)}))),ev.apply(this,arguments)}function tv(e,t){return nv.apply(this,arguments)}function nv(){return nv=ee(ie().mark((function e(t,n){var r,i,a;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Mo(t),i=r.ta.get(n),!((a=r.ea.get(i.targetId)).length>1)){e.next=3;break}return e.abrupt("return",(r.ea.set(i.targetId,a.filter((function(e){return!Du(e,n)}))),void r.ta.delete(n)));case 3:if(!r.isPrimaryClient){e.next=11;break}if(r.sharedClientState.removeLocalQueryTarget(i.targetId),e.t0=r.sharedClientState.isActiveQueryTarget(i.targetId),e.t0){e.next=9;break}return e.next=9,Kh(r.localStore,i.targetId,!1).then((function(){r.sharedClientState.clearQueryState(i.targetId),qd(r.remoteStore,i.targetId),yv(r,i.targetId)})).catch(fh);case 9:e.next=14;break;case 11:return yv(r,i.targetId),e.next=14,Kh(r.localStore,i.targetId,!0);case 14:case"end":return e.stop()}}),e)}))),nv.apply(this,arguments)}function rv(e,t,n){return iv.apply(this,arguments)}function iv(){return iv=ee(ie().mark((function e(t,n,r){var i,a,o;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=Gv(t),e.prev=1,e.next=4,function(e,t){var n,r=Mo(e),i=$o.now(),a=t.reduce((function(e,t){return e.add(t.key)}),Mc());return r.persistence.runTransaction("Locally write mutations","readwrite",(function(e){return r.ai.qs(e,a).next((function(a){n=a;var o,s=[],u=ce(t);try{for(u.s();!(o=u.n()).done;){var c=o.value,l=oc(c,n.get(c.key));null!=l&&s.push(new lc(c.key,l,zs(l.value.mapValue),tc.exists(!0)))}}catch(f){u.e(f)}finally{u.f()}return r.$s.addMutationBatch(e,i,s,t)}))})).then((function(e){return e.applyToLocalDocumentSet(n),{batchId:e.batchId,changes:n}}))}(i.localStore,n);case 4:return a=e.sent,i.sharedClientState.addPendingMutation(a.batchId),function(e,t,n){var r=e.oa[e.currentUser.toKey()];r||(r=new wc(Yo)),r=r.insert(t,n),e.oa[e.currentUser.toKey()]=r}(i,a.batchId,r),e.next=9,xv(i,a.changes);case 9:return e.next=11,op(i.remoteStore);case 11:e.next=17;break;case 13:e.prev=13,e.t0=e.catch(1),o=Tp(e.t0,"Failed to persist write"),r.reject(o);case 17:case"end":return e.stop()}}),e,null,[[1,13]])}))),iv.apply(this,arguments)}function av(e,t){return ov.apply(this,arguments)}function ov(){return ov=ee(ie().mark((function e(t,n){var r,i;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Mo(t),e.prev=1,e.next=4,zh(r.localStore,n);case 4:return i=e.sent,n.targetChanges.forEach((function(e,t){var n=r.ia.get(t);n&&(Po(e.addedDocuments.size+e.modifiedDocuments.size+e.removedDocuments.size<=1),e.addedDocuments.size>0?n.Xu=!0:e.modifiedDocuments.size>0?Po(n.Xu):e.removedDocuments.size>0&&(Po(n.Xu),n.Xu=!1))})),e.next=8,xv(r,i,n);case 8:e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(1),e.next=14,fh(e.t0);case 14:case"end":return e.stop()}}),e,null,[[1,10]])}))),ov.apply(this,arguments)}function sv(e,t,n){var r=Mo(e);if(r.isPrimaryClient&&0===n||!r.isPrimaryClient&&1===n){var i=[];r.ta.forEach((function(e,n){var r=n.view.Eu(t);r.snapshot&&i.push(r.snapshot)})),function(e,t){var n=Mo(e);n.onlineState=t;var r=!1;n.queries.forEach((function(e,n){var i,a=ce(n.listeners);try{for(a.s();!(i=a.n()).done;){i.value.Eu(t)&&(r=!0)}}catch(o){a.e(o)}finally{a.f()}})),r&&Up(n)}(r.eventManager,t),i.length&&r.Zu.Ko(i),r.onlineState=t,r.isPrimaryClient&&r.sharedClientState.setOnlineState(t)}}function uv(e,t,n){return cv.apply(this,arguments)}function cv(){return cv=ee(ie().mark((function e(t,n,r){var i,a,o,s,u,c;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((i=Mo(t)).sharedClientState.updateQueryState(n,"rejected",r),a=i.ia.get(n),!(o=a&&a.key)){e.next=14;break}return s=(s=new wc(ws.comparator)).insert(o,qs.newNoDocument(o,es.min())),u=Mc().add(o),c=new jc(es.min(),new Map,new Ec(Yo),s,u),e.next=9,av(i,c);case 9:i.sa=i.sa.remove(o),i.ia.delete(n),wv(i),e.next=16;break;case 14:return e.next=16,Kh(i.localStore,n,!1).then((function(){return yv(i,n,r)})).catch(fh);case 16:case"end":return e.stop()}}),e)}))),cv.apply(this,arguments)}function lv(e,t){return fv.apply(this,arguments)}function fv(){return fv=ee(ie().mark((function e(t,n){var r,i,a;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Mo(t),i=n.batch.batchId,e.prev=1,e.next=4,Qh(r.localStore,n);case 4:return a=e.sent,gv(r,i,null),mv(r,i),r.sharedClientState.updateMutationState(i,"acknowledged"),e.next=10,xv(r,a);case 10:e.next=16;break;case 12:return e.prev=12,e.t0=e.catch(1),e.next=16,fh(e.t0);case 16:case"end":return e.stop()}}),e,null,[[1,12]])}))),fv.apply(this,arguments)}function hv(e,t,n){return dv.apply(this,arguments)}function dv(){return dv=ee(ie().mark((function e(t,n,r){var i,a;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=Mo(t),e.prev=1,e.next=4,function(e,t){var n=Mo(e);return n.persistence.runTransaction("Reject batch","readwrite-primary",(function(e){var r;return n.$s.lookupMutationBatch(e,t).next((function(t){return Po(null!==t),r=t.keys(),n.$s.removeMutationBatch(e,t)})).next((function(){return n.$s.performConsistencyCheck(e)})).next((function(){return n.ai.qs(e,r)}))}))}(i.localStore,n);case 4:return a=e.sent,gv(i,n,r),mv(i,n),i.sharedClientState.updateMutationState(n,"rejected",r),e.next=10,xv(i,a);case 10:e.next=16;break;case 12:return e.prev=12,e.t0=e.catch(1),e.next=16,fh(e.t0);case 16:case"end":return e.stop()}}),e,null,[[1,12]])}))),dv.apply(this,arguments)}function pv(e,t){return vv.apply(this,arguments)}function vv(){return vv=ee(ie().mark((function e(t,n){var r,i,a,o;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Jd((r=Mo(t)).remoteStore)||_o("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),e.prev=2,e.next=5,function(e){var t=Mo(e);return t.persistence.runTransaction("Get highest unacknowledged batch id","readonly",(function(e){return t.$s.getHighestUnacknowledgedBatchId(e)}))}(r.localStore);case 5:if(-1!==(i=e.sent)){e.next=8;break}return e.abrupt("return",void n.resolve());case 8:(a=r.ua.get(i)||[]).push(n),r.ua.set(i,a),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(2),o=Tp(e.t0,"Initialization of waitForPendingWrites() operation failed"),n.reject(o);case 16:case"end":return e.stop()}}),e,null,[[2,12]])}))),vv.apply(this,arguments)}function mv(e,t){(e.ua.get(t)||[]).forEach((function(e){e.resolve()})),e.ua.delete(t)}function gv(e,t,n){var r=Mo(e),i=r.oa[r.currentUser.toKey()];if(i){var a=i.get(t);a&&(n?a.reject(n):a.resolve(),i=i.remove(t)),r.oa[r.currentUser.toKey()]=i}}function yv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e.sharedClientState.removeLocalQueryTarget(t);var r,i=ce(e.ea.get(t));try{for(i.s();!(r=i.n()).done;){var a=r.value;e.ta.delete(a),n&&e.Zu.la(a,n)}}catch(o){i.e(o)}finally{i.f()}e.ea.delete(t),e.isPrimaryClient&&e.ra.Ri(t).forEach((function(t){e.ra.containsKey(t)||Av(e,t)}))}function Av(e,t){e.na.delete(t.path.canonicalString());var n=e.sa.get(t);null!==n&&(qd(e.remoteStore,n),e.sa=e.sa.remove(t),e.ia.delete(n),wv(e))}function kv(e,t,n){var r,i=ce(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;a instanceof Gp?(e.ra.addReference(a.key,t),bv(e,a)):a instanceof Hp?(_o("SyncEngine","Document no longer in limbo: "+a.key),e.ra.removeReference(a.key,t),e.ra.containsKey(a.key)||Av(e,a.key)):Ro()}}catch(o){i.e(o)}finally{i.f()}}function bv(e,t){var n=t.key,r=n.path.canonicalString();e.sa.get(n)||e.na.has(r)||(_o("SyncEngine","New document in limbo: "+n),e.na.add(r),wv(e))}function wv(e){for(;e.na.size>0&&e.sa.size<e.maxConcurrentLimboResolutions;){var t=e.na.values().next().value;e.na.delete(t);var n=new ws(as.fromString(t)),r=e.aa.next();e.ia.set(r,new Jp(n)),e.sa=e.sa.insert(n,r),zd(e.remoteStore,new vf(_u(wu(n.path)),r,2,Ko.A))}}function xv(e,t,n){return Iv.apply(this,arguments)}function Iv(){return Iv=ee(ie().mark((function e(t,n,r){var i,a,o,s;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=Mo(t),a=[],o=[],s=[],e.t0=i.ta.isEmpty(),e.t0){e.next=9;break}return i.ta.forEach((function(e,t){s.push(i.ha(t,n,r).then((function(e){if(e){i.isPrimaryClient&&i.sharedClientState.updateQueryState(t.targetId,e.fromCache?"not-current":"current"),a.push(e);var n=Mh.Js(t.targetId,e);o.push(n)}})))})),e.next=6,Promise.all(s);case 6:return i.Zu.Ko(a),e.next=9,function(){var e=ee(ie().mark((function e(t,n){var r,i,a,o,s,u,c,l;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Mo(t),e.prev=1,e.next=4,r.persistence.runTransaction("notifyLocalViewChanges","readwrite",(function(e){return $l.forEach(n,(function(t){return $l.forEach(t.zs,(function(n){return r.persistence.referenceDelegate.addReference(e,t.targetId,n)})).next((function(){return $l.forEach(t.Hs,(function(n){return r.persistence.referenceDelegate.removeReference(e,t.targetId,n)}))}))}))}));case 4:e.next=11;break;case 6:if(e.prev=6,e.t0=e.catch(1),af(e.t0)){e.next=10;break}throw e.t0;case 10:_o("LocalStore","Failed to update sequence numbers: "+e.t0);case 11:i=ce(n);try{for(i.s();!(a=i.n()).done;)o=a.value,s=o.targetId,o.fromCache||(u=r.si.get(s),c=u.snapshotVersion,l=u.withLastLimboFreeSnapshotVersion(c),r.si=r.si.insert(s,l))}catch(f){i.e(f)}finally{i.f()}case 13:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t,n){return e.apply(this,arguments)}}()(i.localStore,o);case 9:case"end":return e.stop()}}),e)}))),Iv.apply(this,arguments)}function Ev(e,t){return Sv.apply(this,arguments)}function Sv(){return Sv=ee(ie().mark((function e(t,n){var r,i;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=Mo(t)).currentUser.isEqual(n)){e.next=11;break}return _o("SyncEngine","User change. New user:",n.toKey()),e.next=5,Uh(r.localStore,n);case 5:return i=e.sent,r.currentUser=n,function(e,t){e.ua.forEach((function(e){e.forEach((function(e){e.reject(new Lo(Bo.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))}))})),e.ua.clear()}(r),r.sharedClientState.handleUserChange(n,i.removedBatchIds,i.addedBatchIds),e.next=11,xv(r,i.ci);case 11:case"end":return e.stop()}}),e)}))),Sv.apply(this,arguments)}function Tv(e,t){var n=Mo(e),r=n.ia.get(t);if(r&&r.Xu)return Mc().add(r.key);var i=Mc(),a=n.ea.get(t);if(!a)return i;var o,s=ce(a);try{for(s.s();!(o=s.n()).done;){var u=o.value,c=n.ta.get(u);i=i.unionWith(c.view.qu)}}catch(l){s.e(l)}finally{s.f()}return i}function Cv(e,t){return _v.apply(this,arguments)}function _v(){return _v=ee(ie().mark((function e(t,n){var r,i,a;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Mo(t),e.next=3,Jh(r.localStore,n.query,!0);case 3:return i=e.sent,a=n.view.Ju(i),e.abrupt("return",(r.isPrimaryClient&&kv(r,n.targetId,a.zu),a));case 6:case"end":return e.stop()}}),e)}))),_v.apply(this,arguments)}function Nv(e,t){return Dv.apply(this,arguments)}function Dv(){return Dv=ee(ie().mark((function e(t,n){var r;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Mo(t),e.abrupt("return",Xh(r.localStore,n).then((function(e){return xv(r,e)})));case 2:case"end":return e.stop()}}),e)}))),Dv.apply(this,arguments)}function Ov(e,t,n,r){return Rv.apply(this,arguments)}function Rv(){return Rv=ee(ie().mark((function e(t,n,r,i){var a,o;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=Mo(t),e.next=3,function(e,t){var n=Mo(e),r=Mo(n.$s);return n.persistence.runTransaction("Lookup mutation documents","readonly",(function(e){return r.ln(e,t).next((function(t){return t?n.ai.qs(e,t):$l.resolve(null)}))}))}(a.localStore,n);case 3:if(null===(o=e.sent)){e.next=15;break}if("pending"!==r){e.next=10;break}return e.next=8,op(a.remoteStore);case 8:e.next=11;break;case 10:"acknowledged"===r||"rejected"===r?(gv(a,n,i||null),mv(a,n),function(e,t){Mo(Mo(e).$s).dn(t)}(a.localStore,n)):Ro();case 11:return e.next=13,xv(a,o);case 13:e.next=16;break;case 15:_o("SyncEngine","Cannot apply mutation batch with id: "+n);case 16:case"end":return e.stop()}}),e)}))),Rv.apply(this,arguments)}function Pv(e,t){return Mv.apply(this,arguments)}function Mv(){return Mv=ee(ie().mark((function e(t,n){var r,i,a,o,s,u,c,l;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(qv(r=Mo(t)),Gv(r),!0!==n||!0===r.ca){e.next=13;break}return i=r.sharedClientState.getAllActiveQueryTargets(),e.next=5,Bv(r,i.toArray());case 5:return a=e.sent,r.ca=!0,e.next=9,wp(r.remoteStore,!0);case 9:o=ce(a);try{for(o.s();!(s=o.n()).done;)u=s.value,zd(r.remoteStore,u)}catch(f){o.e(f)}finally{o.f()}e.next=25;break;case 13:if(!1!==n||!1===r.ca){e.next=25;break}return c=[],l=Promise.resolve(),r.ea.forEach((function(e,t){r.sharedClientState.isLocalQueryTarget(t)?c.push(t):l=l.then((function(){return yv(r,t),Kh(r.localStore,t,!0)})),qd(r.remoteStore,t)})),e.next=19,l;case 19:return e.next=21,Bv(r,c);case 21:return function(e){var t=Mo(e);t.ia.forEach((function(e,n){qd(t.remoteStore,n)})),t.ra.bi(),t.ia=new Map,t.sa=new wc(ws.comparator)}(r),r.ca=!1,e.next=25,wp(r.remoteStore,!1);case 25:case"end":return e.stop()}}),e)}))),Mv.apply(this,arguments)}function Bv(e,t,n){return Lv.apply(this,arguments)}function Lv(){return Lv=ee(ie().mark((function e(t,n,r){var i,a,o,s,u,c,l,f,h,d,p,v,m,g;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=Mo(t),a=[],o=[],s=ce(n),e.prev=2,s.s();case 4:if((u=s.n()).done){e.next=45;break}if(c=u.value,l=void 0,!(f=i.ea.get(c))||0===f.length){e.next=34;break}return e.next=11,Hh(i.localStore,_u(f[0]));case 11:l=e.sent,h=ce(f),e.prev=13,h.s();case 15:if((d=h.n()).done){e.next=24;break}return p=d.value,v=i.ta.get(p),e.next=20,Cv(i,v);case 20:(m=e.sent).snapshot&&o.push(m.snapshot);case 22:e.next=15;break;case 24:e.next=29;break;case 26:e.prev=26,e.t0=e.catch(13),h.e(e.t0);case 29:return e.prev=29,h.f(),e.finish(29);case 32:e.next=42;break;case 34:return e.next=36,Yh(i.localStore,c);case 36:return g=e.sent,e.next=39,Hh(i.localStore,g);case 39:return l=e.sent,e.next=42,$p(i,jv(g),c,!1);case 42:a.push(l);case 43:e.next=4;break;case 45:e.next=50;break;case 47:e.prev=47,e.t1=e.catch(2),s.e(e.t1);case 50:return e.prev=50,s.f(),e.finish(50);case 53:return e.abrupt("return",(i.Zu.Ko(o),a));case 54:case"end":return e.stop()}}),e,null,[[2,47,50,53],[13,26,29,32]])}))),Lv.apply(this,arguments)}function jv(e){return bu(e.path,e.collectionGroup,e.orderBy,e.filters,e.limit,"F",e.startAt,e.endAt)}function Uv(e){var t=Mo(e);return Mo(Mo(t.localStore).persistence).Os()}function Fv(e,t,n,r){return Qv.apply(this,arguments)}function Qv(){return Qv=ee(ie().mark((function e(t,n,r,i){var a,o,s,u;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(a=Mo(t)).ca){e.next=3;break}return e.abrupt("return",void _o("SyncEngine","Ignoring unexpected query state notification."));case 3:if(!((o=a.ea.get(n))&&o.length>0)){e.next=20;break}e.t0=r,e.next="current"===e.t0||"not-current"===e.t0?8:"rejected"===e.t0?15:19;break;case 8:return e.next=10,Xh(a.localStore,Mu(o[0]));case 10:return s=e.sent,u=jc.createSynthesizedRemoteEventForCurrentChange(n,"current"===r),e.next=14,xv(a,s,u);case 14:return e.abrupt("break",20);case 15:return e.next=17,Kh(a.localStore,n,!0);case 17:return yv(a,n,i),e.abrupt("break",20);case 19:Ro();case 20:case"end":return e.stop()}}),e)}))),Qv.apply(this,arguments)}function Vv(e,t,n){return zv.apply(this,arguments)}function zv(){return zv=ee(ie().mark((function e(t,n,r){var i,a,o,s,u,c,l,f,h;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(i=qv(t)).ca){e.next=45;break}a=ce(n),e.prev=3,a.s();case 5:if((o=a.n()).done){e.next=21;break}if(s=o.value,!i.ea.has(s)){e.next=10;break}return _o("SyncEngine","Adding an already active target "+s),e.abrupt("continue",19);case 10:return e.next=12,Yh(i.localStore,s);case 12:return u=e.sent,e.next=15,Hh(i.localStore,u);case 15:return c=e.sent,e.next=18,$p(i,jv(u),c.targetId,!1);case 18:zd(i.remoteStore,c);case 19:e.next=5;break;case 21:e.next=26;break;case 23:e.prev=23,e.t0=e.catch(3),a.e(e.t0);case 26:return e.prev=26,a.f(),e.finish(26);case 29:l=ce(r),e.prev=30,h=ie().mark((function e(){var t;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=f.value,e.t0=i.ea.has(t),!e.t0){e.next=5;break}return e.next=5,Kh(i.localStore,t,!1).then((function(){qd(i.remoteStore,t),yv(i,t)})).catch(fh);case 5:case"end":return e.stop()}}),e)})),l.s();case 33:if((f=l.n()).done){e.next=37;break}return e.delegateYield(h(),"t1",35);case 35:e.next=33;break;case 37:e.next=42;break;case 39:e.prev=39,e.t2=e.catch(30),l.e(e.t2);case 42:return e.prev=42,l.f(),e.finish(42);case 45:case"end":return e.stop()}}),e,null,[[3,23,26,29],[30,39,42,45]])}))),zv.apply(this,arguments)}function qv(e){var t=Mo(e);return t.remoteStore.remoteSyncer.applyRemoteEvent=av.bind(null,t),t.remoteStore.remoteSyncer.getRemoteKeysForTarget=Tv.bind(null,t),t.remoteStore.remoteSyncer.rejectListen=uv.bind(null,t),t.Zu.Ko=Lp.bind(null,t.eventManager),t.Zu.la=jp.bind(null,t.eventManager),t}function Gv(e){var t=Mo(e);return t.remoteStore.remoteSyncer.applySuccessfulWrite=lv.bind(null,t),t.remoteStore.remoteSyncer.rejectFailedWrite=hv.bind(null,t),t}function Hv(e,t,n){var r=Mo(e);(function(){var e=ee(ie().mark((function e(t,n,r){var i,a,o,s,u;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.getMetadata();case 3:return i=e.sent,e.next=6,function(e,t){var n=Mo(e),r=$c(t.createTime);return n.persistence.runTransaction("hasNewerBundle","readonly",(function(e){return n.ds.getBundleMetadata(e,t.id)})).then((function(e){return!!e&&e.createTime.compareTo(r)>=0}))}(t.localStore,i);case 6:if(!e.sent){e.next=11;break}return e.next=9,n.close();case 9:return r._completeWith(function(e){return{taskState:"Success",documentsLoaded:e.totalDocuments,bytesLoaded:e.totalBytes,totalDocuments:e.totalDocuments,totalBytes:e.totalBytes}}(i)),e.abrupt("return",Promise.resolve(new Set));case 11:return r._updateProgress(qp(i)),a=new zp(i,t.localStore,n.M),e.next=15,n.fa();case 15:o=e.sent;case 16:if(!o){e.next=26;break}return e.next=19,a.Nu(o);case 19:return(s=e.sent)&&r._updateProgress(s),e.next=23,n.fa();case 23:o=e.sent;case 24:e.next=16;break;case 26:return e.next=28,a.complete();case 28:return u=e.sent,e.next=31,xv(t,u.Ou,void 0);case 31:return e.next=33,function(e,t){var n=Mo(e);return n.persistence.runTransaction("Save bundle","readwrite",(function(e){return n.ds.saveBundleMetadata(e,t)}))}(t.localStore,i);case 33:return r._completeWith(u.progress),e.abrupt("return",Promise.resolve(u.Mu));case 37:return e.prev=37,e.t0=e.catch(0),e.abrupt("return",(Do("SyncEngine","Loading bundle failed with ".concat(e.t0)),r._failWith(e.t0),Promise.resolve(new Set)));case 40:case"end":return e.stop()}}),e,null,[[0,37]])})));return function(t,n,r){return e.apply(this,arguments)}})()(r,t,n).then((function(e){r.sharedClientState.notifyBundleLoaded(e)}))}var Kv=function(){function e(){oe(this,e),this.synchronizeTabs=!1}return ue(e,[{key:"initialize",value:function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.M=Dd(t.databaseInfo.databaseId),this.sharedClientState=this.da(t),this.persistence=this._a(t),e.next=5,this.persistence.start();case 5:this.gcScheduler=this.wa(t),this.localStore=this.ma(t);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"wa",value:function(e){return null}},{key:"ma",value:function(e){return jh(this.persistence,new Bh,e.initialUser,this.M)}},{key:"_a",value:function(e){return new fd(dd.Wi,this.M)}},{key:"da",value:function(e){return new xd}},{key:"terminate",value:function(){var e=ee(ie().mark((function e(){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.gcScheduler&&this.gcScheduler.stop(),e.next=3,this.sharedClientState.shutdown();case 3:return e.next=5,this.persistence.shutdown();case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),Wv=function(e){he(n,e);var t=ge(n);function n(e,r,i){var a;return oe(this,n),(a=t.call(this)).ga=e,a.cacheSizeBytes=r,a.forceOwnership=i,a.synchronizeTabs=!1,a}return ue(n,[{key:"initialize",value:function(){var e=ee(ie().mark((function e(t){var r=this;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,cn(de(n.prototype),"initialize",this).call(this,t);case 2:return e.next=4,this.ga.initialize(this,t);case 4:return e.next=6,Gv(this.ga.syncEngine);case 6:return e.next=8,op(this.ga.remoteStore);case 8:return e.next=10,this.persistence.Is((function(){return r.gcScheduler&&!r.gcScheduler.started&&r.gcScheduler.start(r.localStore),Promise.resolve()}));case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"ma",value:function(e){return jh(this.persistence,new Bh,e.initialUser,this.M)}},{key:"wa",value:function(e){var t=this.persistence.referenceDelegate.garbageCollector;return new vh(t,e.asyncQueue)}},{key:"_a",value:function(e){var t=Rh(e.databaseInfo.databaseId,e.databaseInfo.persistenceKey),n=void 0!==this.cacheSizeBytes?Zf.withCacheSize(this.cacheSizeBytes):Zf.DEFAULT;return new Nh(this.synchronizeTabs,t,e.clientId,n,e.asyncQueue,_d(),Nd(),this.M,this.sharedClientState,!!this.forceOwnership)}},{key:"da",value:function(e){return new xd}}]),n}(Kv),Jv=function(e){he(n,e);var t=ge(n);function n(e,r){var i;return oe(this,n),(i=t.call(this,e,r,!1)).ga=e,i.cacheSizeBytes=r,i.synchronizeTabs=!0,i}return ue(n,[{key:"initialize",value:function(){var e=ee(ie().mark((function e(t){var r,i=this;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,cn(de(n.prototype),"initialize",this).call(this,t);case 2:if(r=this.ga.syncEngine,e.t0=this.sharedClientState instanceof wd,!e.t0){e.next=8;break}return this.sharedClientState.syncEngine={kr:Ov.bind(null,r),Mr:Fv.bind(null,r),Or:Vv.bind(null,r),Os:Uv.bind(null,r),Nr:Nv.bind(null,r)},e.next=8,this.sharedClientState.start();case 8:return e.next=10,this.persistence.Is(function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Pv(i.ga.syncEngine,t);case 2:i.gcScheduler&&(t&&!i.gcScheduler.started?i.gcScheduler.start(i.localStore):t||i.gcScheduler.stop());case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"da",value:function(e){var t=_d();if(!wd.vt(t))throw new Lo(Bo.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");var n=Rh(e.databaseInfo.databaseId,e.databaseInfo.persistenceKey);return new wd(t,e.asyncQueue,n,e.clientId,e.initialUser)}}]),n}(Wv),Yv=function(){function e(){oe(this,e)}return ue(e,[{key:"initialize",value:function(){var e=ee(ie().mark((function e(t,n){var r=this;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.localStore,e.t0){e.next=12;break}return this.localStore=t.localStore,this.sharedClientState=t.sharedClientState,this.datastore=this.createDatastore(n),this.remoteStore=this.createRemoteStore(n),this.eventManager=this.createEventManager(n),this.syncEngine=this.createSyncEngine(n,!t.synchronizeTabs),this.sharedClientState.onlineStateHandler=function(e){return sv(r.syncEngine,e,1)},this.remoteStore.remoteSyncer.handleCredentialChange=Ev.bind(null,this.syncEngine),e.next=12,wp(this.remoteStore,this.syncEngine.isPrimaryClient);case 12:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"createEventManager",value:function(e){return new Op}},{key:"createDatastore",value:function(e){var t,n=Dd(e.databaseInfo.databaseId),r=(t=e.databaseInfo,new Cd(t));return function(e,t,n,r){return new Bd(e,t,n,r)}(e.authCredentials,e.appCheckCredentials,r,n)}},{key:"createRemoteStore",value:function(e){var t,n,r,i,a,o=this;return t=this.localStore,n=this.datastore,r=e.asyncQueue,i=function(e){return sv(o.syncEngine,e,0)},a=Ed.vt()?new Ed:new Id,new jd(t,n,r,i,a)}},{key:"createSyncEngine",value:function(e,t){return function(e,t,n,r,i,a,o){var s=new Yp(e,t,n,r,i,a);return o&&(s.ca=!0),s}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,t)}},{key:"terminate",value:function(){return function(){var e=ee(ie().mark((function e(t){var n;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Mo(t),_o("RemoteStore","RemoteStore shutting down."),n.lu.add(5),e.next=5,Qd(n);case 5:n.du.shutdown(),n._u.set("Unknown");case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()(this.remoteStore)}}]),e}();function Xv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10240,n=0;return{read:function(){return ee(ie().mark((function r(){var i;return ie().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(n<e.byteLength)){r.next=3;break}return i={value:e.slice(n,n+t),done:!1},r.abrupt("return",(n+=t,i));case 3:return r.abrupt("return",{done:!0});case 4:case"end":return r.stop()}}),r)})))()},cancel:function(){return ee(ie().mark((function e(){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()},releaseLock:function(){},closed:Promise.reject("unimplemented")}}var Zv=function(){function e(t){oe(this,e),this.observer=t,this.muted=!1}return ue(e,[{key:"next",value:function(e){this.observer.next&&this.ya(this.observer.next,e)}},{key:"error",value:function(e){this.observer.error?this.ya(this.observer.error,e):console.error("Uncaught Error in snapshot listener:",e)}},{key:"pa",value:function(){this.muted=!0}},{key:"ya",value:function(e,t){var n=this;this.muted||setTimeout((function(){n.muted||e(t)}),0)}}]),e}(),$v=function(){function e(t,n){var r=this;oe(this,e),this.Ia=t,this.M=n,this.metadata=new jo,this.buffer=new Uint8Array,this.Ta=new TextDecoder("utf-8"),this.Ea().then((function(e){e&&e.Cu()?r.metadata.resolve(e.payload.metadata):r.metadata.reject(new Error("The first element of the bundle is not a metadata, it is\n             ".concat(JSON.stringify(null==e?void 0:e.payload))))}),(function(e){return r.metadata.reject(e)}))}return ue(e,[{key:"close",value:function(){return this.Ia.cancel()}},{key:"getMetadata",value:function(){var e=ee(ie().mark((function e(){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.metadata.promise);case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"fa",value:function(){var e=ee(ie().mark((function e(){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getMetadata();case 2:return e.abrupt("return",this.Ea());case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"Ea",value:function(){var e=ee(ie().mark((function e(){var t,n,r,i;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.Aa();case 2:if(null!==(t=e.sent)){e.next=5;break}return e.abrupt("return",null);case 5:return n=this.Ta.decode(t),r=Number(n),isNaN(r)&&this.Ra("length string (".concat(n,") is not valid number")),e.next=9,this.ba(r);case 9:return i=e.sent,e.abrupt("return",new Qp(JSON.parse(i),t.length+r));case 11:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"Pa",value:function(){return this.buffer.findIndex((function(e){return e==="{".charCodeAt(0)}))}},{key:"Aa",value:function(){var e=ee(ie().mark((function e(){var t,n;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(this.Pa()<0)){e.next=7;break}return e.next=3,this.Va();case 3:if(!e.sent){e.next=5;break}return e.abrupt("break",7);case 5:e.next=0;break;case 7:if(0!==this.buffer.length){e.next=9;break}return e.abrupt("return",null);case 9:return(t=this.Pa())<0&&this.Ra("Reached the end of bundle when a length string is expected."),n=this.buffer.slice(0,t),e.abrupt("return",(this.buffer=this.buffer.slice(t),n));case 13:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"ba",value:function(){var e=ee(ie().mark((function e(t){var n;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(this.buffer.length<t)){e.next=8;break}return e.next=3,this.Va();case 3:if(e.t0=e.sent,!e.t0){e.next=6;break}this.Ra("Reached the end of bundle when more is expected.");case 6:e.next=0;break;case 8:return n=this.Ta.decode(this.buffer.slice(0,t)),e.abrupt("return",(this.buffer=this.buffer.slice(t),n));case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"Ra",value:function(e){throw this.Ia.cancel(),new Error("Invalid bundle format: ".concat(e))}},{key:"Va",value:function(){var e=ee(ie().mark((function e(){var t,n;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.Ia.read();case 2:return(t=e.sent).done||((n=new Uint8Array(this.buffer.length+t.value.length)).set(this.buffer),n.set(t.value,this.buffer.length),this.buffer=n),e.abrupt("return",t.done);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),em=function(){function e(t){oe(this,e),this.datastore=t,this.readVersions=new Map,this.mutations=[],this.committed=!1,this.lastWriteError=null,this.writtenDocs=new Set}return ue(e,[{key:"lookup",value:function(){var e=ee(ie().mark((function e(t){var n,r=this;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.ensureCommitNotCalled(),!(this.mutations.length>0)){e.next=2;break}throw new Lo(Bo.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");case 2:return e.next=4,function(){var e=ee(ie().mark((function e(t,n){var r,i,a,o,s,u;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Mo(t),i=ol(r.M)+"/documents",a={documents:n.map((function(e){return nl(r.M,e)}))},e.next=5,r.co("BatchGetDocuments",i,a);case 5:return o=e.sent,s=new Map,o.forEach((function(e){var t=ll(r.M,e);s.set(t.key.toString(),t)})),u=[],e.abrupt("return",(n.forEach((function(e){var t=s.get(e.toString());Po(!!t),u.push(t)})),u));case 10:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()(this.datastore,t);case 4:return n=e.sent,e.abrupt("return",(n.forEach((function(e){return r.recordVersion(e)})),n));case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"set",value:function(e,t){this.write(t.toMutation(e,this.precondition(e))),this.writtenDocs.add(e.toString())}},{key:"update",value:function(e,t){try{this.write(t.toMutation(e,this.preconditionForUpdate(e)))}catch(e){this.lastWriteError=e}this.writtenDocs.add(e.toString())}},{key:"delete",value:function(e){this.write(new mc(e,this.precondition(e))),this.writtenDocs.add(e.toString())}},{key:"commit",value:function(){var e=ee(ie().mark((function e(){var t,n=this;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.ensureCommitNotCalled(),!this.lastWriteError){e.next=2;break}throw this.lastWriteError;case 2:return t=this.readVersions,this.mutations.forEach((function(e){t.delete(e.key.toString())})),t.forEach((function(e,t){var r=ws.fromPath(t);n.mutations.push(new gc(r,n.precondition(r)))})),e.next=7,function(){var e=ee(ie().mark((function e(t,n){var r,i,a;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Mo(t),i=ol(r.M)+"/documents",a={writes:n.map((function(e){return fl(r.M,e)}))},e.next=3,r.ro("Commit",i,a);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()(this.datastore,this.mutations);case 7:this.committed=!0;case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"recordVersion",value:function(e){var t;if(e.isFoundDocument())t=e.version;else{if(!e.isNoDocument())throw Ro();t=es.min()}var n=this.readVersions.get(e.key.toString());if(n){if(!t.isEqual(n))throw new Lo(Bo.ABORTED,"Document version changed between two reads.")}else this.readVersions.set(e.key.toString(),t)}},{key:"precondition",value:function(e){var t=this.readVersions.get(e.toString());return!this.writtenDocs.has(e.toString())&&t?tc.updateTime(t):tc.none()}},{key:"preconditionForUpdate",value:function(e){var t=this.readVersions.get(e.toString());if(!this.writtenDocs.has(e.toString())&&t){if(t.isEqual(es.min()))throw new Lo(Bo.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return tc.updateTime(t)}return tc.exists(!0)}},{key:"write",value:function(e){this.ensureCommitNotCalled(),this.mutations.push(e)}},{key:"ensureCommitNotCalled",value:function(){}}]),e}(),tm=function(){function e(t,n,r,i){oe(this,e),this.asyncQueue=t,this.datastore=n,this.updateFunction=r,this.deferred=i,this.va=5,this.So=new Od(this.asyncQueue,"transaction_retry")}return ue(e,[{key:"run",value:function(){this.va-=1,this.Sa()}},{key:"Sa",value:function(){var e=this;this.So.Io(ee(ie().mark((function t(){var n,r;return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=new em(e.datastore),(r=e.Da(n))&&r.then((function(t){e.asyncQueue.enqueueAndForget((function(){return n.commit().then((function(){e.deferred.resolve(t)})).catch((function(t){e.Ca(t)}))}))})).catch((function(t){e.Ca(t)}));case 2:case"end":return t.stop()}}),t)}))))}},{key:"Da",value:function(e){try{var t=this.updateFunction(e);return!As(t)&&t.catch&&t.then?t:(this.deferred.reject(Error("Transaction callback must return a Promise")),null)}catch(e){return this.deferred.reject(e),null}}},{key:"Ca",value:function(e){var t=this;this.va>0&&this.xa(e)?(this.va-=1,this.asyncQueue.enqueueAndForget((function(){return t.Sa(),Promise.resolve()}))):this.deferred.reject(e)}},{key:"xa",value:function(e){if("FirebaseError"===e.name){var t=e.code;return"aborted"===t||"failed-precondition"===t||!Ac(t)}return!1}}]),e}(),nm=function(){function e(t,n,r,i){var a=this;oe(this,e),this.authCredentials=t,this.appCheckCredentials=n,this.asyncQueue=r,this.databaseInfo=i,this.user=Eo.UNAUTHENTICATED,this.clientId=Jo.R(),this.authCredentialListener=function(){return Promise.resolve()},this.appCheckCredentialListener=function(){return Promise.resolve()},this.authCredentials.start(r,function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _o("FirestoreClient","Received user=",t.uid),e.next=3,a.authCredentialListener(t);case 3:a.user=t;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),this.appCheckCredentials.start(r,(function(e){return _o("FirestoreClient","Received new app check token=",e),a.appCheckCredentialListener(e,a.user)}))}return ue(e,[{key:"getConfiguration",value:function(){var e=ee(ie().mark((function e(){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100});case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setCredentialChangeListener",value:function(e){this.authCredentialListener=e}},{key:"setAppCheckTokenChangeListener",value:function(e){this.appCheckCredentialListener=e}},{key:"verifyNotTerminated",value:function(){if(this.asyncQueue.isShuttingDown)throw new Lo(Bo.FAILED_PRECONDITION,"The client has already been terminated.")}},{key:"terminate",value:function(){var e=this;this.asyncQueue.enterRestrictedMode();var t=new jo;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(ee(ie().mark((function n(){var r;return ie().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,n.t0=e.onlineComponents,!n.t0){n.next=5;break}return n.next=5,e.onlineComponents.terminate();case 5:if(n.t1=e.offlineComponents,!n.t1){n.next=9;break}return n.next=9,e.offlineComponents.terminate();case 9:e.authCredentials.shutdown(),e.appCheckCredentials.shutdown(),t.resolve(),n.next=18;break;case 14:n.prev=14,n.t2=n.catch(0),r=Tp(n.t2,"Failed to shutdown persistence"),t.reject(r);case 18:case"end":return n.stop()}}),n,null,[[0,14]])})))),t.promise}}]),e}();function rm(e,t){return im.apply(this,arguments)}function im(){return im=ee(ie().mark((function e(t,n){var r,i;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.asyncQueue.verifyOperationInProgress(),_o("FirestoreClient","Initializing OfflineComponentProvider"),e.next=3,t.getConfiguration();case 3:return r=e.sent,e.next=6,n.initialize(r);case 6:i=r.initialUser,t.setCredentialChangeListener(function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=i.isEqual(t),e.t0){e.next=5;break}return e.next=4,Uh(n.localStore,t);case 4:i=t;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),n.persistence.setDatabaseDeletedListener((function(){return t.terminate()})),t.offlineComponents=n;case 8:case"end":return e.stop()}}),e)}))),im.apply(this,arguments)}function am(e,t){return om.apply(this,arguments)}function om(){return om=ee(ie().mark((function e(t,n){var r,i;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.asyncQueue.verifyOperationInProgress(),e.next=3,sm(t);case 3:return r=e.sent,_o("FirestoreClient","Initializing OnlineComponentProvider"),e.next=7,t.getConfiguration();case 7:return i=e.sent,e.next=10,n.initialize(r,i);case 10:t.setCredentialChangeListener((function(e){return kp(n.remoteStore,e)})),t.setAppCheckTokenChangeListener((function(e,t){return kp(n.remoteStore,t)})),t.onlineComponents=n;case 13:case"end":return e.stop()}}),e)}))),om.apply(this,arguments)}function sm(e){return um.apply(this,arguments)}function um(){return um=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=t.offlineComponents,e.t0){e.next=5;break}return _o("FirestoreClient","Using default OfflineComponentProvider"),e.next=5,rm(t,new Kv);case 5:return e.abrupt("return",t.offlineComponents);case 6:case"end":return e.stop()}}),e)}))),um.apply(this,arguments)}function cm(e){return lm.apply(this,arguments)}function lm(){return lm=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=t.onlineComponents,e.t0){e.next=5;break}return _o("FirestoreClient","Using default OnlineComponentProvider"),e.next=5,am(t,new Yv);case 5:return e.abrupt("return",t.onlineComponents);case 6:case"end":return e.stop()}}),e)}))),lm.apply(this,arguments)}function fm(e){return sm(e).then((function(e){return e.persistence}))}function hm(e){return sm(e).then((function(e){return e.localStore}))}function dm(e){return cm(e).then((function(e){return e.remoteStore}))}function pm(e){return cm(e).then((function(e){return e.syncEngine}))}function vm(e){return mm.apply(this,arguments)}function mm(){return mm=ee(ie().mark((function e(t){var n,r;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,cm(t);case 2:return n=e.sent,r=n.eventManager,e.abrupt("return",(r.onListen=Xp.bind(null,n.syncEngine),r.onUnlisten=tv.bind(null,n.syncEngine),r));case 5:case"end":return e.stop()}}),e)}))),mm.apply(this,arguments)}function gm(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new jo;return e.asyncQueue.enqueueAndForget(ee(ie().mark((function i(){return ie().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.t0=function(e,t,n,r,i){var a=new Zv({next:function(a){t.enqueueAndForget((function(){return Mp(e,o)}));var s=a.docs.has(n);!s&&a.fromCache?i.reject(new Lo(Bo.UNAVAILABLE,"Failed to get document because the client is offline.")):s&&a.fromCache&&r&&"server"===r.source?i.reject(new Lo(Bo.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):i.resolve(a)},error:function(e){return i.reject(e)}}),o=new Fp(wu(n.path),a,{includeMetadataChanges:!0,Du:!0});return Rp(e,o)},i.next=3,vm(e);case 3:return i.t1=i.sent,i.t2=e.asyncQueue,i.t3=t,i.t4=n,i.t5=r,i.abrupt("return",(0,i.t0)(i.t1,i.t2,i.t3,i.t4,i.t5));case 9:case"end":return i.stop()}}),i)})))),r.promise}function ym(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new jo;return e.asyncQueue.enqueueAndForget(ee(ie().mark((function i(){return ie().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.t0=function(e,t,n,r,i){var a=new Zv({next:function(n){t.enqueueAndForget((function(){return Mp(e,o)})),n.fromCache&&"server"===r.source?i.reject(new Lo(Bo.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):i.resolve(n)},error:function(e){return i.reject(e)}}),o=new Fp(n,a,{includeMetadataChanges:!0,Du:!0});return Rp(e,o)},i.next=3,vm(e);case 3:return i.t1=i.sent,i.t2=e.asyncQueue,i.t3=t,i.t4=n,i.t5=r,i.abrupt("return",(0,i.t0)(i.t1,i.t2,i.t3,i.t4,i.t5));case 9:case"end":return i.stop()}}),i)})))),r.promise}var Am=new Map;function km(e,t,n){if(!n)throw new Lo(Bo.INVALID_ARGUMENT,"Function ".concat(e,"() cannot be called with an empty ").concat(t,"."))}function bm(e,t,n,r){if(!0===t&&!0===r)throw new Lo(Bo.INVALID_ARGUMENT,"".concat(e," and ").concat(n," cannot be used together."))}function wm(e){if(!ws.isDocumentKey(e))throw new Lo(Bo.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but ".concat(e," has ").concat(e.length,"."))}function xm(e){if(ws.isDocumentKey(e))throw new Lo(Bo.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but ".concat(e," has ").concat(e.length,"."))}function Im(e){if(void 0===e)return"undefined";if(null===e)return"null";if("string"==typeof e)return e.length>20&&(e="".concat(e.substring(0,20),"...")),JSON.stringify(e);if("number"==typeof e||"boolean"==typeof e)return""+e;if("object"==typeof e){if(e instanceof Array)return"an array";var t=function(e){return e.constructor?e.constructor.name:null}(e);return t?"a custom ".concat(t," object"):"an object"}return"function"==typeof e?"a function":Ro()}function Em(e,t){if("_delegate"in e&&(e=e._delegate),!(e instanceof t)){if(t.name===e.constructor.name)throw new Lo(Bo.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");var n=Im(e);throw new Lo(Bo.INVALID_ARGUMENT,"Expected type '".concat(t.name,"', but it was: ").concat(n))}return e}function Sm(e,t){if(t<=0)throw new Lo(Bo.INVALID_ARGUMENT,"Function ".concat(e,"() requires a positive number, but it was: ").concat(t,"."))}var Tm=function(){function e(t){var n;if(oe(this,e),void 0===t.host){if(void 0!==t.ssl)throw new Lo(Bo.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=t.host,this.ssl=null===(n=t.ssl)||void 0===n||n;if(this.credentials=t.credentials,this.ignoreUndefinedProperties=!!t.ignoreUndefinedProperties,void 0===t.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==t.cacheSizeBytes&&t.cacheSizeBytes<1048576)throw new Lo(Bo.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=t.cacheSizeBytes}this.experimentalForceLongPolling=!!t.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!!t.experimentalAutoDetectLongPolling,this.useFetchStreams=!!t.useFetchStreams,bm("experimentalForceLongPolling",t.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",t.experimentalAutoDetectLongPolling)}return ue(e,[{key:"isEqual",value:function(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}]),e}(),Cm=function(){function e(t,n,r){oe(this,e),this._authCredentials=n,this._appCheckCredentials=r,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Tm({}),this._settingsFrozen=!1,t instanceof ys?this._databaseId=t:(this._app=t,this._databaseId=function(e){if(!Object.prototype.hasOwnProperty.apply(e.options,["projectId"]))throw new Lo(Bo.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new ys(e.options.projectId)}(t))}return ue(e,[{key:"app",get:function(){if(!this._app)throw new Lo(Bo.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}},{key:"_initialized",get:function(){return this._settingsFrozen}},{key:"_terminated",get:function(){return void 0!==this._terminateTask}},{key:"_setSettings",value:function(e){if(this._settingsFrozen)throw new Lo(Bo.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new Tm(e),void 0!==e.credentials&&(this._authCredentials=function(e){if(!e)return new Fo;switch(e.type){case"gapi":var t=e.client;return Po(!("object"!=typeof t||null===t||!t.auth||!t.auth.getAuthHeaderValueForFirstParty)),new qo(t,e.sessionIndex||"0",e.iamToken||null);case"provider":return e.client;default:throw new Lo(Bo.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(e.credentials))}},{key:"_getSettings",value:function(){return this._settings}},{key:"_freezeSettings",value:function(){return this._settingsFrozen=!0,this._settings}},{key:"_delete",value:function(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}},{key:"toJSON",value:function(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}},{key:"_terminate",value:function(){return function(e){var t=Am.get(e);t&&(_o("ComponentProvider","Removing Datastore"),Am.delete(e),t.terminate())}(this),Promise.resolve()}}]),e}();function _m(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=(e=Em(e,Cm))._getSettings();if("firestore.googleapis.com"!==a.host&&a.host!==t&&Do("Host has been set in both settings() and useEmulator(), emulator host will be used"),e._setSettings(Object.assign(Object.assign({},a),{host:"".concat(t,":").concat(n),ssl:!1})),i.mockUserToken){var o,s;if("string"==typeof i.mockUserToken)o=i.mockUserToken,s=Eo.MOCK_USER;else{o=Se(i.mockUserToken,null===(r=e._app)||void 0===r?void 0:r.options.projectId);var u=i.mockUserToken.sub||i.mockUserToken.user_id;if(!u)throw new Lo(Bo.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");s=new Eo(u)}e._authCredentials=new Qo(new Uo(o,s))}}var Nm=function(){function e(t,n,r){oe(this,e),this.converter=n,this._key=r,this.type="document",this.firestore=t}return ue(e,[{key:"_path",get:function(){return this._key.path}},{key:"id",get:function(){return this._key.path.lastSegment()}},{key:"path",get:function(){return this._key.path.canonicalString()}},{key:"parent",get:function(){return new Om(this.firestore,this.converter,this._key.path.popLast())}},{key:"withConverter",value:function(t){return new e(this.firestore,t,this._key)}}]),e}(),Dm=function(){function e(t,n,r){oe(this,e),this.converter=n,this._query=r,this.type="query",this.firestore=t}return ue(e,[{key:"withConverter",value:function(t){return new e(this.firestore,t,this._query)}}]),e}(),Om=function(e){he(n,e);var t=ge(n);function n(e,r,i){var a;return oe(this,n),(a=t.call(this,e,r,wu(i)))._path=i,a.type="collection",a}return ue(n,[{key:"id",get:function(){return this._query.path.lastSegment()}},{key:"path",get:function(){return this._query.path.canonicalString()}},{key:"parent",get:function(){var e=this._path.popLast();return e.isEmpty()?null:new Nm(this.firestore,null,new ws(e))}},{key:"withConverter",value:function(e){return new n(this.firestore,e,this._path)}}]),n}(Dm);function Rm(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(e=Ke(e),km("collection","path",t),e instanceof Cm){var a=as.fromString.apply(as,[t].concat(r));return xm(a),new Om(e,null,a)}if(!(e instanceof Nm||e instanceof Om))throw new Lo(Bo.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");var o=e._path.child(as.fromString.apply(as,[t].concat(r)));return xm(o),new Om(e.firestore,null,o)}function Pm(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(e=Ke(e),1===arguments.length&&(t=Jo.R()),km("doc","path",t),e instanceof Cm){var a=as.fromString.apply(as,[t].concat(r));return wm(a),new Nm(e,null,new ws(a))}if(!(e instanceof Nm||e instanceof Om))throw new Lo(Bo.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");var o=e._path.child(as.fromString.apply(as,[t].concat(r)));return wm(o),new Nm(e.firestore,e instanceof Om?e.converter:null,new ws(o))}function Mm(e,t){return e=Ke(e),t=Ke(t),(e instanceof Nm||e instanceof Om)&&(t instanceof Nm||t instanceof Om)&&e.firestore===t.firestore&&e.path===t.path&&e.converter===t.converter}function Bm(e,t){return e=Ke(e),t=Ke(t),e instanceof Dm&&t instanceof Dm&&e.firestore===t.firestore&&Du(e._query,t._query)&&e.converter===t.converter}var Lm=function(){function e(){var t=this;oe(this,e),this.Na=Promise.resolve(),this.ka=[],this.Ma=!1,this.Oa=[],this.Fa=null,this.$a=!1,this.Ba=!1,this.La=[],this.So=new Od(this,"async_queue_retry"),this.Ua=function(){var e=Nd();e&&_o("AsyncQueue","Visibility state changed to "+e.visibilityState),t.So.Eo()};var n=Nd();n&&"function"==typeof n.addEventListener&&n.addEventListener("visibilitychange",this.Ua)}return ue(e,[{key:"isShuttingDown",get:function(){return this.Ma}},{key:"enqueueAndForget",value:function(e){this.enqueue(e)}},{key:"enqueueAndForgetEvenWhileRestricted",value:function(e){this.qa(),this.Ga(e)}},{key:"enterRestrictedMode",value:function(e){if(!this.Ma){this.Ma=!0,this.Ba=e||!1;var t=Nd();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.Ua)}}},{key:"enqueue",value:function(e){var t=this;if(this.qa(),this.Ma)return new Promise((function(){}));var n=new jo;return this.Ga((function(){return t.Ma&&t.Ba?Promise.resolve():(e().then(n.resolve,n.reject),n.promise)})).then((function(){return n.promise}))}},{key:"enqueueRetryable",value:function(e){var t=this;this.enqueueAndForget((function(){return t.ka.push(e),t.Ka()}))}},{key:"Ka",value:function(){var e=ee(ie().mark((function e(){var t=this;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0===this.ka.length){e.next=14;break}return e.prev=1,e.next=4,this.ka[0]();case 4:this.ka.shift(),this.So.reset(),e.next=13;break;case 8:if(e.prev=8,e.t0=e.catch(1),af(e.t0)){e.next=12;break}throw e.t0;case 12:_o("AsyncQueue","Operation failed with retryable error: "+e.t0);case 13:this.ka.length>0&&this.So.Io((function(){return t.Ka()}));case 14:case"end":return e.stop()}}),e,this,[[1,8]])})));return function(){return e.apply(this,arguments)}}()},{key:"Ga",value:function(e){var t=this,n=this.Na.then((function(){return t.$a=!0,e().catch((function(e){t.Fa=e,t.$a=!1;var n=function(e){var t=e.message||"";return e.stack&&(t=e.stack.includes(e.message)?e.stack:e.message+"\n"+e.stack),t}(e);throw No("INTERNAL UNHANDLED ERROR: ",n),e})).then((function(e){return t.$a=!1,e}))}));return this.Na=n,n}},{key:"enqueueAfterDelay",value:function(e,t,n){var r=this;this.qa(),this.La.indexOf(e)>-1&&(t=0);var i=Sp.createAndSchedule(this,e,t,n,(function(e){return r.Qa(e)}));return this.Oa.push(i),i}},{key:"qa",value:function(){this.Fa&&Ro()}},{key:"verifyOperationInProgress",value:function(){}},{key:"ja",value:function(){var e=ee(ie().mark((function e(){var t;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.Na,e.next=3,t;case 3:if(t!==this.Na){e.next=0;break}case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"Wa",value:function(e){var t,n=ce(this.Oa);try{for(n.s();!(t=n.n()).done;){if(t.value.timerId===e)return!0}}catch(r){n.e(r)}finally{n.f()}return!1}},{key:"za",value:function(e){var t=this;return this.ja().then((function(){t.Oa.sort((function(e,t){return e.targetTimeMs-t.targetTimeMs}));var n,r=ce(t.Oa);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.skipDelay(),"all"!==e&&i.timerId===e)break}}catch(a){r.e(a)}finally{r.f()}return t.ja()}))}},{key:"Ha",value:function(e){this.La.push(e)}},{key:"Qa",value:function(e){var t=this.Oa.indexOf(e);this.Oa.splice(t,1)}}]),e}();function jm(e){return function(e,t){if("object"!=typeof e||null===e)return!1;var n,r=e,i=ce(["next","error","complete"]);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a in r&&"function"==typeof r[a])return!0}}catch(o){i.e(o)}finally{i.f()}return!1}(e)}var Um=function(){function e(){oe(this,e),this._progressObserver={},this._taskCompletionResolver=new jo,this._lastProgress={taskState:"Running",totalBytes:0,totalDocuments:0,bytesLoaded:0,documentsLoaded:0}}return ue(e,[{key:"onProgress",value:function(e,t,n){this._progressObserver={next:e,error:t,complete:n}}},{key:"catch",value:function(e){return this._taskCompletionResolver.promise.catch(e)}},{key:"then",value:function(e,t){return this._taskCompletionResolver.promise.then(e,t)}},{key:"_completeWith",value:function(e){this._updateProgress(e),this._progressObserver.complete&&this._progressObserver.complete(),this._taskCompletionResolver.resolve(e)}},{key:"_failWith",value:function(e){this._lastProgress.taskState="Error",this._progressObserver.next&&this._progressObserver.next(this._lastProgress),this._progressObserver.error&&this._progressObserver.error(e),this._taskCompletionResolver.reject(e)}},{key:"_updateProgress",value:function(e){this._lastProgress=e,this._progressObserver.next&&this._progressObserver.next(e)}}]),e}(),Fm=function(e){he(n,e);var t=ge(n);function n(e,r,i){var a;return oe(this,n),(a=t.call(this,e,r,i)).type="firestore",a._queue=new Lm,a._persistenceKey="name"in e?e.name:"[DEFAULT]",a}return ue(n,[{key:"_terminate",value:function(){return this._firestoreClient||Vm(this),this._firestoreClient.terminate()}}]),n}(Cm);function Qm(e){return e._firestoreClient||Vm(e),e._firestoreClient.verifyNotTerminated(),e._firestoreClient}function Vm(e){var t,n=e._freezeSettings(),r=function(e,t,n,r){return new gs(e,t,n,r.host,r.ssl,r.experimentalForceLongPolling,r.experimentalAutoDetectLongPolling,r.useFetchStreams)}(e._databaseId,(null===(t=e._app)||void 0===t?void 0:t.options.appId)||"",e._persistenceKey,n);e._firestoreClient=new nm(e._authCredentials,e._appCheckCredentials,e._queue,r)}function zm(e,t,n){var r=new jo;return e.asyncQueue.enqueue(ee(ie().mark((function i(){return ie().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,rm(e,n);case 3:return i.next=5,am(e,t);case 5:r.resolve(),i.next=13;break;case 8:if(i.prev=8,i.t0=i.catch(0),function(e){return"FirebaseError"===e.name?e.code===Bo.FAILED_PRECONDITION||e.code===Bo.UNIMPLEMENTED:!("undefined"!=typeof DOMException&&e instanceof DOMException)||(22===e.code||20===e.code||11===e.code)}(i.t0)){i.next=12;break}throw i.t0;case 12:console.warn("Error enabling offline persistence. Falling back to persistence disabled: "+i.t0),r.reject(i.t0);case 13:case"end":return i.stop()}}),i,null,[[0,8]])})))).then((function(){return r.promise}))}function qm(e){return function(e){return e.asyncQueue.enqueue(ee(ie().mark((function t(){var n,r;return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fm(e);case 2:return n=t.sent,t.next=5,dm(e);case 5:return r=t.sent,t.abrupt("return",(n.setNetworkEnabled(!0),function(e){var t=Mo(e);return t.lu.delete(0),Ud(t)}(r)));case 7:case"end":return t.stop()}}),t)}))))}(Qm(e=Em(e,Fm)))}function Gm(e){return function(e){return e.asyncQueue.enqueue(ee(ie().mark((function t(){var n,r;return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fm(e);case 2:return n=t.sent,t.next=5,dm(e);case 5:return r=t.sent,t.abrupt("return",(n.setNetworkEnabled(!1),function(){var e=ee(ie().mark((function e(t){var n;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=Mo(t)).lu.add(0),e.next=4,Qd(n);case 4:n._u.set("Offline");case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()(r)));case 7:case"end":return t.stop()}}),t)}))))}(Qm(e=Em(e,Fm)))}function Hm(e,t){var n=Qm(e=Em(e,Fm)),r=new Um;return function(e,t,n,r){var i=function(e,t){return function(e,t){return new $v(e,t)}(function(e,t){if(e instanceof Uint8Array)return Xv(e,t);if(e instanceof ArrayBuffer)return Xv(new Uint8Array(e),t);if(e instanceof ReadableStream)return e.getReader();throw new Error("Source of `toByteStreamReader` has to be a ArrayBuffer or ReadableStream")}("string"==typeof e?(new TextEncoder).encode(e):e),t)}(n,Dd(t));e.asyncQueue.enqueueAndForget(ee(ie().mark((function t(){return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=Hv,t.next=3,pm(e);case 3:t.t1=t.sent,t.t2=i,t.t3=r,(0,t.t0)(t.t1,t.t2,t.t3);case 7:case"end":return t.stop()}}),t)}))))}(n,e._databaseId,t,r),r}function Km(e,t){return function(e,t){return e.asyncQueue.enqueue(ee(ie().mark((function n(){return ie().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=function(e,t){var n=Mo(e);return n.persistence.runTransaction("Get named query","readonly",(function(e){return n.ds.getNamedQuery(e,t)}))},n.next=3,hm(e);case 3:return n.t1=n.sent,n.t2=t,n.abrupt("return",(0,n.t0)(n.t1,n.t2));case 6:case"end":return n.stop()}}),n)}))))}(Qm(e=Em(e,Fm)),t).then((function(t){return t?new Dm(e,null,t.query):null}))}function Wm(e){if(e._initialized||e._terminated)throw new Lo(Bo.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only enable persistence before calling any other methods on a Firestore object.")}var Jm=function(){function e(){oe(this,e);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=0;i<n.length;++i)if(0===n[i].length)throw new Lo(Bo.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new ss(n)}return ue(e,[{key:"isEqual",value:function(e){return this._internalPath.isEqual(e._internalPath)}}]),e}();var Ym=function(){function e(t){oe(this,e),this._byteString=t}return ue(e,[{key:"toBase64",value:function(){return this._byteString.toBase64()}},{key:"toUint8Array",value:function(){return this._byteString.toUint8Array()}},{key:"toString",value:function(){return"Bytes(base64: "+this.toBase64()+")"}},{key:"isEqual",value:function(e){return this._byteString.isEqual(e._byteString)}}],[{key:"fromBase64String",value:function(t){try{return new e(cs.fromBase64String(t))}catch(t){throw new Lo(Bo.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+t)}}},{key:"fromUint8Array",value:function(t){return new e(cs.fromUint8Array(t))}}]),e}(),Xm=ue((function e(t){oe(this,e),this._methodName=t})),Zm=function(){function e(t,n){if(oe(this,e),!isFinite(t)||t<-90||t>90)throw new Lo(Bo.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+t);if(!isFinite(n)||n<-180||n>180)throw new Lo(Bo.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+n);this._lat=t,this._long=n}return ue(e,[{key:"latitude",get:function(){return this._lat}},{key:"longitude",get:function(){return this._long}},{key:"isEqual",value:function(e){return this._lat===e._lat&&this._long===e._long}},{key:"toJSON",value:function(){return{latitude:this._lat,longitude:this._long}}},{key:"_compareTo",value:function(e){return Yo(this._lat,e._lat)||Yo(this._long,e._long)}}]),e}(),$m=/^__.*__$/,eg=function(){function e(t,n,r){oe(this,e),this.data=t,this.fieldMask=n,this.fieldTransforms=r}return ue(e,[{key:"toMutation",value:function(e,t){return null!==this.fieldMask?new lc(e,this.data,this.fieldMask,t,this.fieldTransforms):new cc(e,this.data,t,this.fieldTransforms)}}]),e}(),tg=function(){function e(t,n,r){oe(this,e),this.data=t,this.fieldMask=n,this.fieldTransforms=r}return ue(e,[{key:"toMutation",value:function(e,t){return new lc(e,this.data,this.fieldMask,t,this.fieldTransforms)}}]),e}();function ng(e){switch(e){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw Ro()}}var rg=function(){function e(t,n,r,i,a,o){oe(this,e),this.settings=t,this.databaseId=n,this.M=r,this.ignoreUndefinedProperties=i,void 0===a&&this.Ja(),this.fieldTransforms=a||[],this.fieldMask=o||[]}return ue(e,[{key:"path",get:function(){return this.settings.path}},{key:"Ya",get:function(){return this.settings.Ya}},{key:"Xa",value:function(t){return new e(Object.assign(Object.assign({},this.settings),t),this.databaseId,this.M,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}},{key:"Za",value:function(e){var t,n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.Xa({path:n,tc:!1});return r.ec(e),r}},{key:"nc",value:function(e){var t,n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.Xa({path:n,tc:!1});return r.Ja(),r}},{key:"sc",value:function(e){return this.Xa({path:void 0,tc:!0})}},{key:"ic",value:function(e){return xg(e,this.settings.methodName,this.settings.rc||!1,this.path,this.settings.oc)}},{key:"contains",value:function(e){return void 0!==this.fieldMask.find((function(t){return e.isPrefixOf(t)}))||void 0!==this.fieldTransforms.find((function(t){return e.isPrefixOf(t.field)}))}},{key:"Ja",value:function(){if(this.path)for(var e=0;e<this.path.length;e++)this.ec(this.path.get(e))}},{key:"ec",value:function(e){if(0===e.length)throw this.ic("Document fields must not be empty");if(ng(this.Ya)&&$m.test(e))throw this.ic('Document fields cannot begin and end with "__"')}}]),e}(),ig=function(){function e(t,n,r){oe(this,e),this.databaseId=t,this.ignoreUndefinedProperties=n,this.M=r||Dd(t)}return ue(e,[{key:"uc",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return new rg({Ya:e,methodName:t,oc:n,path:ss.emptyPath(),tc:!1,rc:r},this.databaseId,this.M,this.ignoreUndefinedProperties)}}]),e}();function ag(e){var t=e._freezeSettings(),n=Dd(e._databaseId);return new ig(e._databaseId,!!t.ignoreUndefinedProperties,n)}function og(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=e.uc(a.merge||a.mergeFields?2:0,t,n,i);Ag("Data must be an object, but it was:",o,r);var s,u,c=gg(r,o);if(a.merge)s=new us(o.fieldMask),u=o.fieldTransforms;else if(a.mergeFields){var l,f=[],h=ce(a.mergeFields);try{for(h.s();!(l=h.n()).done;){var d=l.value,p=kg(t,d,n);if(!o.contains(p))throw new Lo(Bo.INVALID_ARGUMENT,"Field '".concat(p,"' is specified in your field mask but missing from your input data."));Ig(f,p)||f.push(p)}}catch(v){h.e(v)}finally{h.f()}s=new us(f),u=o.fieldTransforms.filter((function(e){return s.covers(e.field)}))}else s=null,u=o.fieldTransforms;return new eg(new Vs(c),s,u)}var sg=function(e){he(n,e);var t=ge(n);function n(){return oe(this,n),t.apply(this,arguments)}return ue(n,[{key:"_toFieldTransform",value:function(e){if(2!==e.Ya)throw 1===e.Ya?e.ic("".concat(this._methodName,"() can only appear at the top level of your update data")):e.ic("".concat(this._methodName,"() cannot be used with set() unless you pass {merge:true}"));return e.fieldMask.push(e.path),null}},{key:"isEqual",value:function(e){return e instanceof n}}]),n}(Xm);function ug(e,t,n){return new rg({Ya:3,oc:t.settings.oc,methodName:e._methodName,tc:n},t.databaseId,t.M,t.ignoreUndefinedProperties)}var cg=function(e){he(n,e);var t=ge(n);function n(){return oe(this,n),t.apply(this,arguments)}return ue(n,[{key:"_toFieldTransform",value:function(e){return new $u(e.path,new Gu)}},{key:"isEqual",value:function(e){return e instanceof n}}]),n}(Xm),lg=function(e){he(n,e);var t=ge(n);function n(e,r){var i;return oe(this,n),(i=t.call(this,e)).ac=r,i}return ue(n,[{key:"_toFieldTransform",value:function(e){var t=ug(this,e,!0),n=this.ac.map((function(e){return mg(e,t)})),r=new Hu(n);return new $u(e.path,r)}},{key:"isEqual",value:function(e){return this===e}}]),n}(Xm),fg=function(e){he(n,e);var t=ge(n);function n(e,r){var i;return oe(this,n),(i=t.call(this,e)).ac=r,i}return ue(n,[{key:"_toFieldTransform",value:function(e){var t=ug(this,e,!0),n=this.ac.map((function(e){return mg(e,t)})),r=new Wu(n);return new $u(e.path,r)}},{key:"isEqual",value:function(e){return this===e}}]),n}(Xm),hg=function(e){he(n,e);var t=ge(n);function n(e,r){var i;return oe(this,n),(i=t.call(this,e)).cc=r,i}return ue(n,[{key:"_toFieldTransform",value:function(e){var t=new Yu(e.M,Fu(e.M,this.cc));return new $u(e.path,t)}},{key:"isEqual",value:function(e){return this===e}}]),n}(Xm);function dg(e,t,n,r){var i=e.uc(1,t,n);Ag("Data must be an object, but it was:",i,r);var a=[],o=Vs.empty();ns(r,(function(e,r){var s=wg(t,e,n);r=Ke(r);var u=i.nc(s);if(r instanceof sg)a.push(s);else{var c=mg(r,u);null!=c&&(a.push(s),o.set(s,c))}}));var s=new us(a);return new tg(o,s,i.fieldTransforms)}function pg(e,t,n,r,i,a){var o=e.uc(1,t,n),s=[kg(t,r,n)],u=[i];if(a.length%2!=0)throw new Lo(Bo.INVALID_ARGUMENT,"Function ".concat(t,"() needs to be called with an even number of arguments that alternate between field names and values."));for(var c=0;c<a.length;c+=2)s.push(kg(t,a[c])),u.push(a[c+1]);for(var l=[],f=Vs.empty(),h=s.length-1;h>=0;--h)if(!Ig(l,s[h])){var d=s[h],p=u[h];p=Ke(p);var v=o.nc(d);if(p instanceof sg)l.push(d);else{var m=mg(p,v);null!=m&&(l.push(d),f.set(d,m))}}var g=new us(l);return new tg(f,g,o.fieldTransforms)}function vg(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return mg(n,e.uc(r?4:3,t))}function mg(e,t){if(yg(e=Ke(e)))return Ag("Unsupported field value:",t,e),gg(e,t);if(e instanceof Xm)return function(e,t){if(!ng(t.Ya))throw t.ic("".concat(e._methodName,"() can only be used with update() and set()"));if(!t.path)throw t.ic("".concat(e._methodName,"() is not currently supported inside arrays"));var n=e._toFieldTransform(t);n&&t.fieldTransforms.push(n)}(e,t),null;if(void 0===e&&t.ignoreUndefinedProperties)return null;if(t.path&&t.fieldMask.push(t.path),e instanceof Array){if(t.settings.tc&&4!==t.Ya)throw t.ic("Nested arrays are not supported");return function(e,t){var n,r=[],i=0,a=ce(e);try{for(a.s();!(n=a.n()).done;){var o=mg(n.value,t.sc(i));null==o&&(o={nullValue:"NULL_VALUE"}),r.push(o),i++}}catch(s){a.e(s)}finally{a.f()}return{arrayValue:{values:r}}}(e,t)}return function(e,t){if(null===(e=Ke(e)))return{nullValue:"NULL_VALUE"};if("number"==typeof e)return Fu(t.M,e);if("boolean"==typeof e)return{booleanValue:e};if("string"==typeof e)return{stringValue:e};if(e instanceof Date){var n=$o.fromDate(e);return{timestampValue:Yc(t.M,n)}}if(e instanceof $o){var r=new $o(e.seconds,1e3*Math.floor(e.nanoseconds/1e3));return{timestampValue:Yc(t.M,r)}}if(e instanceof Zm)return{geoPointValue:{latitude:e.latitude,longitude:e.longitude}};if(e instanceof Ym)return{bytesValue:Xc(t.M,e._byteString)};if(e instanceof Nm){var i=t.databaseId,a=e.firestore._databaseId;if(!a.isEqual(i))throw t.ic("Document reference is for database ".concat(a.projectId,"/").concat(a.database," but should be for database ").concat(i.projectId,"/").concat(i.database));return{referenceValue:el(e.firestore._databaseId||t.databaseId,e._key.path)}}throw t.ic("Unsupported field value: ".concat(Im(e)))}(e,t)}function gg(e,t){var n={};return rs(e)?t.path&&t.path.length>0&&t.fieldMask.push(t.path):ns(e,(function(e,r){var i=mg(r,t.Za(e));null!=i&&(n[e]=i)})),{mapValue:{fields:n}}}function yg(e){return!("object"!=typeof e||null===e||e instanceof Array||e instanceof Date||e instanceof $o||e instanceof Zm||e instanceof Ym||e instanceof Nm||e instanceof Xm)}function Ag(e,t,n){if(!yg(n)||!function(e){return"object"==typeof e&&null!==e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}(n)){var r=Im(n);throw"an object"===r?t.ic(e+" a custom object"):t.ic(e+" "+r)}}function kg(e,t,n){if((t=Ke(t))instanceof Jm)return t._internalPath;if("string"==typeof t)return wg(e,t);throw xg("Field path arguments must be of type string or ",e,!1,void 0,n)}var bg=new RegExp("[~\\*/\\[\\]]");function wg(e,t,n){if(t.search(bg)>=0)throw xg("Invalid field path (".concat(t,"). Paths must not contain '~', '*', '/', '[', or ']'"),e,!1,void 0,n);try{return ye(Jm,ne(t.split(".")))._internalPath}catch(r){throw xg("Invalid field path (".concat(t,"). Paths must not be empty, begin with '.', end with '.', or contain '..'"),e,!1,void 0,n)}}function xg(e,t,n,r,i){var a=r&&!r.isEmpty(),o=void 0!==i,s="Function ".concat(t,"() called with invalid data");n&&(s+=" (via `toFirestore()`)"),s+=". ";var u="";return(a||o)&&(u+=" (found",a&&(u+=" in field ".concat(r)),o&&(u+=" in document ".concat(i)),u+=")"),new Lo(Bo.INVALID_ARGUMENT,s+e+u)}function Ig(e,t){return e.some((function(e){return e.isEqual(t)}))}var Eg=function(){function e(t,n,r,i,a){oe(this,e),this._firestore=t,this._userDataWriter=n,this._key=r,this._document=i,this._converter=a}return ue(e,[{key:"id",get:function(){return this._key.path.lastSegment()}},{key:"ref",get:function(){return new Nm(this._firestore,this._converter,this._key)}},{key:"exists",value:function(){return null!==this._document}},{key:"data",value:function(){if(this._document){if(this._converter){var e=new Sg(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}},{key:"get",value:function(e){if(this._document){var t=this._document.data.field(Tg("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}}}]),e}(),Sg=function(e){he(n,e);var t=ge(n);function n(){return oe(this,n),t.apply(this,arguments)}return ue(n,[{key:"data",value:function(){return cn(de(n.prototype),"data",this).call(this)}}]),n}(Eg);function Tg(e,t){return"string"==typeof t?wg(e,t):t instanceof Jm?t._internalPath:t._delegate._internalPath}var Cg=function(){function e(t,n){oe(this,e),this.hasPendingWrites=t,this.fromCache=n}return ue(e,[{key:"isEqual",value:function(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}]),e}(),_g=function(e){he(n,e);var t=ge(n);function n(e,r,i,a,o,s){var u;return oe(this,n),(u=t.call(this,e,r,i,a,s))._firestore=e,u._firestoreImpl=e,u.metadata=o,u}return ue(n,[{key:"exists",value:function(){return cn(de(n.prototype),"exists",this).call(this)}},{key:"data",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._document){if(this._converter){var t=new Ng(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(t,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._document){var n=this._document.data.field(Tg("DocumentSnapshot.get",e));if(null!==n)return this._userDataWriter.convertValue(n,t.serverTimestamps)}}}]),n}(Eg),Ng=function(e){he(n,e);var t=ge(n);function n(){return oe(this,n),t.apply(this,arguments)}return ue(n,[{key:"data",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return cn(de(n.prototype),"data",this).call(this,e)}}]),n}(_g),Dg=function(){function e(t,n,r,i){oe(this,e),this._firestore=t,this._userDataWriter=n,this._snapshot=i,this.metadata=new Cg(i.hasPendingWrites,i.fromCache),this.query=r}return ue(e,[{key:"docs",get:function(){var e=[];return this.forEach((function(t){return e.push(t)})),e}},{key:"size",get:function(){return this._snapshot.docs.size}},{key:"empty",get:function(){return 0===this.size}},{key:"forEach",value:function(e,t){var n=this;this._snapshot.docs.forEach((function(r){e.call(t,new Ng(n._firestore,n._userDataWriter,r.key,r,new Cg(n._snapshot.mutatedKeys.has(r.key),n._snapshot.fromCache),n.query.converter))}))}},{key:"docChanges",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!!e.includeMetadataChanges;if(t&&this._snapshot.excludesMetadataChanges)throw new Lo(Bo.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===t||(this._cachedChanges=function(e,t){if(e._snapshot.oldDocs.isEmpty()){var n=0;return e._snapshot.docChanges.map((function(t){return{type:"added",doc:new Ng(e._firestore,e._userDataWriter,t.doc.key,t.doc,new Cg(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter),oldIndex:-1,newIndex:n++}}))}var r=e._snapshot.oldDocs;return e._snapshot.docChanges.filter((function(e){return t||3!==e.type})).map((function(t){var n=new Ng(e._firestore,e._userDataWriter,t.doc.key,t.doc,new Cg(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter),i=-1,a=-1;return 0!==t.type&&(i=r.indexOf(t.doc.key),r=r.delete(t.doc.key)),1!==t.type&&(a=(r=r.add(t.doc)).indexOf(t.doc.key)),{type:Og(t.type),doc:n,oldIndex:i,newIndex:a}}))}(this,t),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges}}]),e}();function Og(e){switch(e){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return Ro()}}function Rg(e,t){return e instanceof _g&&t instanceof _g?e._firestore===t._firestore&&e._key.isEqual(t._key)&&(null===e._document?null===t._document:e._document.isEqual(t._document))&&e._converter===t._converter:e instanceof Dg&&t instanceof Dg&&e._firestore===t._firestore&&Bm(e.query,t.query)&&e.metadata.isEqual(t.metadata)&&e._snapshot.isEqual(t._snapshot)}function Pg(e){if(Iu(e)&&0===e.explicitOrderBy.length)throw new Lo(Bo.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}var Mg=ue((function e(){oe(this,e)}));function Bg(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,a=n;i<a.length;i++){var o=a[i];e=o._apply(e)}return e}var Lg=function(e){he(n,e);var t=ge(n);function n(e,r,i){var a;return oe(this,n),(a=t.call(this)).hc=e,a.lc=r,a.fc=i,a.type="where",a}return ue(n,[{key:"_apply",value:function(e){var t=ag(e.firestore),n=function(e,t,n,r,i,a,o){var s;if(i.isKeyField()){if("array-contains"===a||"array-contains-any"===a)throw new Lo(Bo.INVALID_ARGUMENT,"Invalid Query. You can't perform '".concat(a,"' queries on documentId()."));if("in"===a||"not-in"===a){Wg(o,a);var u,c=[],l=ce(o);try{for(l.s();!(u=l.n()).done;){var f=u.value;c.push(Kg(r,e,f))}}catch(d){l.e(d)}finally{l.f()}s={arrayValue:{values:c}}}else s=Kg(r,e,o)}else"in"!==a&&"not-in"!==a&&"array-contains-any"!==a||Wg(o,a),s=vg(n,"where",o,"in"===a||"not-in"===a);var h=ou.create(i,a,s);return function(e,t){if(t.S()){var n=Su(e);if(null!==n&&!n.isEqual(t.field))throw new Lo(Bo.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, !=, not-in, >, or >=) must be on the same field. But you have inequality filters on '".concat(n.toString(),"' and '").concat(t.field.toString(),"'"));var r=Eu(e);null!==r&&Jg(e,t.field,r)}var i=function(e,t){var n,r=ce(e.filters);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(t.indexOf(i.op)>=0)return i.op}}catch(d){r.e(d)}finally{r.f()}return null}(e,function(e){switch(e){case"!=":return["!=","not-in"];case"array-contains":return["array-contains","array-contains-any","not-in"];case"in":return["array-contains-any","in","not-in"];case"array-contains-any":return["array-contains","array-contains-any","in","not-in"];case"not-in":return["array-contains","array-contains-any","in","not-in","!="];default:return[]}}(t.op));if(null!==i)throw i===t.op?new Lo(Bo.INVALID_ARGUMENT,"Invalid query. You cannot use more than one '".concat(t.op.toString(),"' filter.")):new Lo(Bo.INVALID_ARGUMENT,"Invalid query. You cannot use '".concat(t.op.toString(),"' filters with '").concat(i.toString(),"' filters."))}(e,h),h}(e._query,0,t,e.firestore._databaseId,this.hc,this.lc,this.fc);return new Dm(e.firestore,e.converter,function(e,t){var n=e.filters.concat([t]);return new ku(e.path,e.collectionGroup,e.explicitOrderBy.slice(),n,e.limit,e.limitType,e.startAt,e.endAt)}(e._query,n))}}]),n}(Mg);var jg=function(e){he(n,e);var t=ge(n);function n(e,r){var i;return oe(this,n),(i=t.call(this)).hc=e,i.dc=r,i.type="orderBy",i}return ue(n,[{key:"_apply",value:function(e){var t=function(e,t,n){if(null!==e.startAt)throw new Lo(Bo.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==e.endAt)throw new Lo(Bo.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");var r=new mu(t,n);return function(e,t){if(null===Eu(e)){var n=Su(e);null!==n&&Jg(e,n,t.field)}}(e,r),r}(e._query,this.hc,this.dc);return new Dm(e.firestore,e.converter,function(e,t){var n=e.explicitOrderBy.concat([t]);return new ku(e.path,e.collectionGroup,n,e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(e._query,t))}}]),n}(Mg);var Ug=function(e){he(n,e);var t=ge(n);function n(e,r,i){var a;return oe(this,n),(a=t.call(this)).type=e,a._c=r,a.wc=i,a}return ue(n,[{key:"_apply",value:function(e){return new Dm(e.firestore,e.converter,Nu(e._query,this._c,this.wc))}}]),n}(Mg);var Fg=function(e){he(n,e);var t=ge(n);function n(e,r,i){var a;return oe(this,n),(a=t.call(this)).type=e,a.mc=r,a.gc=i,a}return ue(n,[{key:"_apply",value:function(e){var t=Hg(e,this.type,this.mc,this.gc);return new Dm(e.firestore,e.converter,function(e,t){return new ku(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,t,e.endAt)}(e._query,t))}}]),n}(Mg);function Qg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Fg("startAt",t,!0)}function Vg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Fg("startAfter",t,!1)}var zg=function(e){he(n,e);var t=ge(n);function n(e,r,i){var a;return oe(this,n),(a=t.call(this)).type=e,a.mc=r,a.gc=i,a}return ue(n,[{key:"_apply",value:function(e){var t=Hg(e,this.type,this.mc,this.gc);return new Dm(e.firestore,e.converter,function(e,t){return new ku(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,t)}(e._query,t))}}]),n}(Mg);function qg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new zg("endBefore",t,!1)}function Gg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new zg("endAt",t,!0)}function Hg(e,t,n,r){if(n[0]=Ke(n[0]),n[0]instanceof Eg)return function(e,t,n,r,i){if(!r)throw new Lo(Bo.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for ".concat(n,"()."));var a,o=[],s=ce(Cu(e));try{for(s.s();!(a=s.n()).done;){var u=a.value;if(u.field.isKeyField())o.push(Os(t,r.key));else{var c=r.data.field(u.field);if(ps(c))throw new Lo(Bo.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+u.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===c){var l=u.field.canonicalString();throw new Lo(Bo.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '".concat(l,"' (used as the orderBy) does not exist."))}o.push(c)}}}catch(f){s.e(f)}finally{s.f()}return new vu(o,i)}(e._query,e.firestore._databaseId,t,n[0]._document,r);var i=ag(e.firestore);return function(e,t,n,r,i,a){var o=e.explicitOrderBy;if(i.length>o.length)throw new Lo(Bo.INVALID_ARGUMENT,"Too many arguments provided to ".concat(r,"(). The number of arguments must be less than or equal to the number of orderBy() clauses"));for(var s=[],u=0;u<i.length;u++){var c=i[u];if(o[u].field.isKeyField()){if("string"!=typeof c)throw new Lo(Bo.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in ".concat(r,"(), but got a ").concat(typeof c));if(!Tu(e)&&-1!==c.indexOf("/"))throw new Lo(Bo.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by documentId(), the value passed to ".concat(r,"() must be a plain document ID, but '").concat(c,"' contains a slash."));var l=e.path.child(as.fromString(c));if(!ws.isDocumentKey(l))throw new Lo(Bo.INVALID_ARGUMENT,"Invalid query. When querying a collection group and ordering by documentId(), the value passed to ".concat(r,"() must result in a valid document path, but '").concat(l,"' is not because it contains an odd number of segments."));var f=new ws(l);s.push(Os(t,f))}else{var h=vg(n,r,c);s.push(h)}}return new vu(s,a)}(e._query,e.firestore._databaseId,i,t,n,r)}function Kg(e,t,n){if("string"==typeof(n=Ke(n))){if(""===n)throw new Lo(Bo.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!Tu(t)&&-1!==n.indexOf("/"))throw new Lo(Bo.INVALID_ARGUMENT,"Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '".concat(n,"' contains a '/' character."));var r=t.path.child(as.fromString(n));if(!ws.isDocumentKey(r))throw new Lo(Bo.INVALID_ARGUMENT,"Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '".concat(r,"' is not because it has an odd number of segments (").concat(r.length,")."));return Os(e,new ws(r))}if(n instanceof Nm)return Os(e,n._key);throw new Lo(Bo.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ".concat(Im(n),"."))}function Wg(e,t){if(!Array.isArray(e)||0===e.length)throw new Lo(Bo.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '".concat(t.toString(),"' filters."));if(e.length>10)throw new Lo(Bo.INVALID_ARGUMENT,"Invalid Query. '".concat(t.toString(),"' filters support a maximum of 10 elements in the value array."))}function Jg(e,t,n){if(!n.isEqual(t))throw new Lo(Bo.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, !=, not-in, >, or >=) on field '".concat(t.toString(),"' and so you must also use '").concat(t.toString(),"' as your first argument to orderBy(), but your first orderBy() is on field '").concat(n.toString(),"' instead."))}var Yg=function(){function e(){oe(this,e)}return ue(e,[{key:"convertValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";switch(Es(e)){case 0:return null;case 1:return e.booleanValue;case 2:return hs(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,t);case 5:return e.stringValue;case 6:return this.convertBytes(ds(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,t);case 10:return this.convertObject(e.mapValue,t);default:throw Ro()}}},{key:"convertObject",value:function(e,t){var n=this,r={};return ns(e.fields,(function(e,i){r[e]=n.convertValue(i,t)})),r}},{key:"convertGeoPoint",value:function(e){return new Zm(hs(e.latitude),hs(e.longitude))}},{key:"convertArray",value:function(e,t){var n=this;return(e.values||[]).map((function(e){return n.convertValue(e,t)}))}},{key:"convertServerTimestamp",value:function(e,t){switch(t){case"previous":var n=vs(e);return null==n?null:this.convertValue(n,t);case"estimate":return this.convertTimestamp(ms(e));default:return null}}},{key:"convertTimestamp",value:function(e){var t=fs(e);return new $o(t.seconds,t.nanos)}},{key:"convertDocumentKey",value:function(e,t){var n=as.fromString(e);Po(Il(n));var r=new ys(n.get(1),n.get(3)),i=new ws(n.popFirst(5));return r.isEqual(t)||No("Document ".concat(i," contains a document reference within a different database (").concat(r.projectId,"/").concat(r.database,") which is not supported. It will be treated as a reference in the current database (").concat(t.projectId,"/").concat(t.database,") instead.")),i}}]),e}();function Xg(e,t,n){return e?n&&(n.merge||n.mergeFields)?e.toFirestore(t,n):e.toFirestore(t):t}var Zg=function(e){he(n,e);var t=ge(n);function n(e){var r;return oe(this,n),(r=t.call(this)).firestore=e,r}return ue(n,[{key:"convertBytes",value:function(e){return new Ym(e)}},{key:"convertReference",value:function(e){var t=this.convertDocumentKey(e,this.firestore._databaseId);return new Nm(this.firestore,null,t)}}]),n}(Yg),$g=function(){function e(t,n){oe(this,e),this._firestore=t,this._commitHandler=n,this._mutations=[],this._committed=!1,this._dataReader=ag(t)}return ue(e,[{key:"set",value:function(e,t,n){this._verifyNotCommitted();var r=ey(e,this._firestore),i=Xg(r.converter,t,n),a=og(this._dataReader,"WriteBatch.set",r._key,i,null!==r.converter,n);return this._mutations.push(a.toMutation(r._key,tc.none())),this}},{key:"update",value:function(e,t,n){this._verifyNotCommitted();for(var r,i=ey(e,this._firestore),a=arguments.length,o=new Array(a>3?a-3:0),s=3;s<a;s++)o[s-3]=arguments[s];return r="string"==typeof(t=Ke(t))||t instanceof Jm?pg(this._dataReader,"WriteBatch.update",i._key,t,n,o):dg(this._dataReader,"WriteBatch.update",i._key,t),this._mutations.push(r.toMutation(i._key,tc.exists(!0))),this}},{key:"delete",value:function(e){this._verifyNotCommitted();var t=ey(e,this._firestore);return this._mutations=this._mutations.concat(new mc(t._key,tc.none())),this}},{key:"commit",value:function(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()}},{key:"_verifyNotCommitted",value:function(){if(this._committed)throw new Lo(Bo.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")}}]),e}();function ey(e,t){if((e=Ke(e)).firestore!==t)throw new Lo(Bo.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return e}var ty=function(e){he(n,e);var t=ge(n);function n(e){var r;return oe(this,n),(r=t.call(this)).firestore=e,r}return ue(n,[{key:"convertBytes",value:function(e){return new Ym(e)}},{key:"convertReference",value:function(e){var t=this.convertDocumentKey(e,this.firestore._databaseId);return new Nm(this.firestore,null,t)}}]),n}(Yg);function ny(e){e=Em(e,Nm);var t=Em(e.firestore,Fm),n=Qm(t),r=new ty(t);return function(e,t){var n=new jo;return e.asyncQueue.enqueueAndForget(ee(ie().mark((function r(){return ie().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=function(){var e=ee(ie().mark((function e(t,n,r){var i,a;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,function(e,t){var n=Mo(e);return n.persistence.runTransaction("read document","readonly",(function(e){return n.ai.Bs(e,t)}))}(t,n);case 3:(i=e.sent).isFoundDocument()?r.resolve(i):i.isNoDocument()?r.resolve(null):r.reject(new Lo(Bo.UNAVAILABLE,"Failed to get document from cache. (However, this document may exist on the server. Run again without setting 'source' in the GetOptions to attempt to retrieve the document from the server.)")),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),a=Tp(e.t0,"Failed to get document '".concat(n," from cache")),r.reject(a);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t,n,r){return e.apply(this,arguments)}}(),r.next=3,hm(e);case 3:return r.t1=r.sent,r.t2=t,r.t3=n,r.abrupt("return",(0,r.t0)(r.t1,r.t2,r.t3));case 7:case"end":return r.stop()}}),r)})))),n.promise}(n,e._key).then((function(n){return new _g(t,r,e._key,n,new Cg(null!==n&&n.hasLocalMutations,!0),e.converter)}))}function ry(e){e=Em(e,Dm);var t=Em(e.firestore,Fm),n=Qm(t),r=new ty(t);return function(e,t){var n=new jo;return e.asyncQueue.enqueueAndForget(ee(ie().mark((function r(){return ie().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=function(){var e=ee(ie().mark((function e(t,n,r){var i,a,o,s,u;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Jh(t,n,!0);case 3:i=e.sent,a=new Kp(n,i.hi),o=a.Gu(i.documents),s=a.applyChanges(o,!1),r.resolve(s.snapshot),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(0),u=Tp(e.t0,"Failed to execute query '".concat(n," against cache")),r.reject(u);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t,n,r){return e.apply(this,arguments)}}(),r.next=3,hm(e);case 3:return r.t1=r.sent,r.t2=t,r.t3=n,r.abrupt("return",(0,r.t0)(r.t1,r.t2,r.t3));case 7:case"end":return r.stop()}}),r)})))),n.promise}(n,e._query).then((function(n){return new Dg(t,r,e,n)}))}function iy(e,t,n){e=Em(e,Nm);var r=Em(e.firestore,Fm),i=Xg(e.converter,t,n);return uy(r,[og(ag(r),"setDoc",e._key,i,null!==e.converter,n).toMutation(e._key,tc.none())])}function ay(e,t,n){e=Em(e,Nm);for(var r=Em(e.firestore,Fm),i=ag(r),a=arguments.length,o=new Array(a>3?a-3:0),s=3;s<a;s++)o[s-3]=arguments[s];return uy(r,[("string"==typeof(t=Ke(t))||t instanceof Jm?pg(i,"updateDoc",e._key,t,n,o):dg(i,"updateDoc",e._key,t)).toMutation(e._key,tc.exists(!0))])}function oy(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i,a,o;e=Ke(e);var s={includeMetadataChanges:!1},u=0;"object"!=typeof n[u]||jm(n[u])||(s=n[u],u++);var c,l,f,h={includeMetadataChanges:s.includeMetadataChanges};if(jm(n[u])){var d=n[u];n[u]=null===(i=d.next)||void 0===i?void 0:i.bind(d),n[u+1]=null===(a=d.error)||void 0===a?void 0:a.bind(d),n[u+2]=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}if(e instanceof Nm)l=Em(e.firestore,Fm),f=wu(e._key.path),c={next:function(t){n[u]&&n[u](cy(l,e,t))},error:n[u+1],complete:n[u+2]};else{var p=Em(e,Dm);l=Em(p.firestore,Fm),f=p._query;var v=new ty(l);c={next:function(e){n[u]&&n[u](new Dg(l,v,p,e))},error:n[u+1],complete:n[u+2]},Pg(e._query)}return function(e,t,n,r){var i=new Zv(r),a=new Fp(t,i,n);return e.asyncQueue.enqueueAndForget(ee(ie().mark((function t(){return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=Rp,t.next=3,vm(e);case 3:return t.t1=t.sent,t.t2=a,t.abrupt("return",(0,t.t0)(t.t1,t.t2));case 6:case"end":return t.stop()}}),t)})))),function(){i.pa(),e.asyncQueue.enqueueAndForget(ee(ie().mark((function t(){return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=Mp,t.next=3,vm(e);case 3:return t.t1=t.sent,t.t2=a,t.abrupt("return",(0,t.t0)(t.t1,t.t2));case 6:case"end":return t.stop()}}),t)}))))}}(Qm(l),f,h,c)}function sy(e,t){return function(e,t){var n=new Zv(t);return e.asyncQueue.enqueueAndForget(ee(ie().mark((function t(){return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=function(e,t){Mo(e).Tu.add(t),t.next()},t.next=3,vm(e);case 3:return t.t1=t.sent,t.t2=n,t.abrupt("return",(0,t.t0)(t.t1,t.t2));case 6:case"end":return t.stop()}}),t)})))),function(){n.pa(),e.asyncQueue.enqueueAndForget(ee(ie().mark((function t(){return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=function(e,t){Mo(e).Tu.delete(t)},t.next=3,vm(e);case 3:return t.t1=t.sent,t.t2=n,t.abrupt("return",(0,t.t0)(t.t1,t.t2));case 6:case"end":return t.stop()}}),t)}))))}}(Qm(e=Em(e,Fm)),jm(t)?t:{next:t})}function uy(e,t){return function(e,t){var n=new jo;return e.asyncQueue.enqueueAndForget(ee(ie().mark((function r(){return ie().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=rv,r.next=3,pm(e);case 3:return r.t1=r.sent,r.t2=t,r.t3=n,r.abrupt("return",(0,r.t0)(r.t1,r.t2,r.t3));case 7:case"end":return r.stop()}}),r)})))),n.promise}(Qm(e),t)}function cy(e,t,n){var r=n.docs.get(t._key),i=new ty(e);return new _g(e,i,t._key,r,new Cg(n.hasPendingWrites,n.fromCache),t.converter)}var ly=function(e){he(n,e);var t=ge(n);function n(e,r){var i;return oe(this,n),(i=t.call(this,e,r))._firestore=e,i}return ue(n,[{key:"get",value:function(e){var t=this,r=ey(e,this._firestore),i=new ty(this._firestore);return cn(de(n.prototype),"get",this).call(this,e).then((function(e){return new _g(t._firestore,i,r._key,e._document,new Cg(!1,!1),r.converter)}))}}]),n}(function(){function e(t,n){oe(this,e),this._firestore=t,this._transaction=n,this._dataReader=ag(t)}return ue(e,[{key:"get",value:function(e){var t=this,n=ey(e,this._firestore),r=new Zg(this._firestore);return this._transaction.lookup([n._key]).then((function(e){if(!e||1!==e.length)return Ro();var i=e[0];if(i.isFoundDocument())return new Eg(t._firestore,r,i.key,i,n.converter);if(i.isNoDocument())return new Eg(t._firestore,r,n._key,null,n.converter);throw Ro()}))}},{key:"set",value:function(e,t,n){var r=ey(e,this._firestore),i=Xg(r.converter,t,n),a=og(this._dataReader,"Transaction.set",r._key,i,null!==r.converter,n);return this._transaction.set(r._key,a),this}},{key:"update",value:function(e,t,n){for(var r,i=ey(e,this._firestore),a=arguments.length,o=new Array(a>3?a-3:0),s=3;s<a;s++)o[s-3]=arguments[s];return r="string"==typeof(t=Ke(t))||t instanceof Jm?pg(this._dataReader,"Transaction.update",i._key,t,n,o):dg(this._dataReader,"Transaction.update",i._key,t),this._transaction.update(i._key,r),this}},{key:"delete",value:function(e){var t=ey(e,this._firestore);return this._transaction.delete(t._key),this}}]),e}());function fy(e,t){return function(e,t){var n=new jo;return e.asyncQueue.enqueueAndForget(ee(ie().mark((function r(){var i;return ie().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,function(e){return cm(e).then((function(e){return e.datastore}))}(e);case 2:i=r.sent,new tm(e.asyncQueue,i,t,n).run();case 4:case"end":return r.stop()}}),r)})))),n.promise}(Qm(e=Em(e,Fm)),(function(n){return t(new ly(e,n))}))}function hy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new lg("arrayUnion",t)}function dy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new fg("arrayRemove",t)}!function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];!function(e){So=e}(Nt),xt(new $e("firestore",(function(e,n){var r=n.options,i=e.getProvider("app").getImmediate(),a=new Fm(i,new Vo(e.getProvider("auth-internal")),new Ho(e.getProvider("app-check-internal")));return r=Object.assign({useFetchStreams:t},r),a._setSettings(r),a}),"PUBLIC")),Bt(Io,"3.4.7",e),Bt(Io,"3.4.7","esm2017")}();function py(e,t){if(void 0===t)return{merge:!1};if(void 0!==t.mergeFields&&void 0!==t.merge)throw new Lo("invalid-argument","Invalid options passed to function ".concat(e,"(): You cannot ")+'specify both "merge" and "mergeFields".');return t}function vy(){if("undefined"===typeof Uint8Array)throw new Lo("unimplemented","Uint8Arrays are not available in this environment.")}function my(){if("undefined"==typeof atob)throw new Lo("unimplemented","Blobs are unavailable in Firestore in this environment.")}var gy=function(){function e(t){oe(this,e),this._delegate=t}return ue(e,[{key:"toBase64",value:function(){return my(),this._delegate.toBase64()}},{key:"toUint8Array",value:function(){return vy(),this._delegate.toUint8Array()}},{key:"isEqual",value:function(e){return this._delegate.isEqual(e._delegate)}},{key:"toString",value:function(){return"Blob(base64: "+this.toBase64()+")"}}],[{key:"fromBase64String",value:function(t){return my(),new e(Ym.fromBase64String(t))}},{key:"fromUint8Array",value:function(t){return vy(),new e(Ym.fromUint8Array(t))}}]),e}();function yy(e){return function(e,t){if("object"!==typeof e||null===e)return!1;var n,r=e,i=ce(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a in r&&"function"===typeof r[a])return!0}}catch(o){i.e(o)}finally{i.f()}return!1}(e,["next","error","complete"])}var Ay=function(){function e(){oe(this,e)}return ue(e,[{key:"enableIndexedDbPersistence",value:function(e,t){return function(e,t){Wm(e=Em(e,Fm));var n=Qm(e),r=e._freezeSettings(),i=new Yv;return zm(n,i,new Wv(i,r.cacheSizeBytes,null==t?void 0:t.forceOwnership))}(e._delegate,{forceOwnership:t})}},{key:"enableMultiTabIndexedDbPersistence",value:function(e){return function(e){Wm(e=Em(e,Fm));var t=Qm(e),n=e._freezeSettings(),r=new Yv;return zm(t,r,new Jv(r,n.cacheSizeBytes))}(e._delegate)}},{key:"clearIndexedDbPersistence",value:function(e){return function(e){if(e._initialized&&!e._terminated)throw new Lo(Bo.FAILED_PRECONDITION,"Persistence can only be cleared before a Firestore instance is initialized or after it is terminated.");var t=new jo;return e._queue.enqueueAndForgetEvenWhileRestricted(ee(ie().mark((function n(){return ie().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,function(){var e=ee(ie().mark((function e(t){var n;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(tf.vt()){e.next=2;break}return e.abrupt("return",Promise.resolve());case 2:return n=t+"main",e.next=5,tf.delete(n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()(Rh(e._databaseId,e._persistenceKey));case 3:t.resolve(),n.next=9;break;case 6:n.prev=6,n.t0=n.catch(0),t.reject(n.t0);case 9:case"end":return n.stop()}}),n,null,[[0,6]])})))),t.promise}(e._delegate)}}]),e}(),ky=function(){function e(t,n,r){var i=this;oe(this,e),this._delegate=n,this._persistenceProvider=r,this.INTERNAL={delete:function(){return i.terminate()}},t instanceof ys||(this._appCompat=t)}return ue(e,[{key:"_databaseId",get:function(){return this._delegate._databaseId}},{key:"settings",value:function(e){var t=this._delegate._getSettings();e.merge||t.host===e.host||Do("You are overriding the original host. If you did not intend to override your settings, use {merge: true}."),e.merge&&delete(e=Object.assign(Object.assign({},t),e)).merge,this._delegate._setSettings(e)}},{key:"useEmulator",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_m(this._delegate,e,t,n)}},{key:"enableNetwork",value:function(){return qm(this._delegate)}},{key:"disableNetwork",value:function(){return Gm(this._delegate)}},{key:"enablePersistence",value:function(e){var t=!1,n=!1;return e&&bm("synchronizeTabs",t=!!e.synchronizeTabs,"experimentalForceOwningTab",n=!!e.experimentalForceOwningTab),t?this._persistenceProvider.enableMultiTabIndexedDbPersistence(this):this._persistenceProvider.enableIndexedDbPersistence(this,n)}},{key:"clearPersistence",value:function(){return this._persistenceProvider.clearIndexedDbPersistence(this)}},{key:"terminate",value:function(){return this._appCompat&&(this._appCompat._removeServiceInstance("firestore-compat"),this._appCompat._removeServiceInstance("firestore")),this._delegate._delete()}},{key:"waitForPendingWrites",value:function(){return function(e){return function(e){var t=new jo;return e.asyncQueue.enqueueAndForget(ee(ie().mark((function n(){return ie().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=pv,n.next=3,pm(e);case 3:return n.t1=n.sent,n.t2=t,n.abrupt("return",(0,n.t0)(n.t1,n.t2));case 6:case"end":return n.stop()}}),n)})))),t.promise}(Qm(e=Em(e,Fm)))}(this._delegate)}},{key:"onSnapshotsInSync",value:function(e){return sy(this._delegate,e)}},{key:"app",get:function(){if(!this._appCompat)throw new Lo("failed-precondition","Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._appCompat}},{key:"collection",value:function(e){try{return new Py(this,Rm(this._delegate,e))}catch(t){throw Sy(t,"collection()","Firestore.collection()")}}},{key:"doc",value:function(e){try{return new Ey(this,Pm(this._delegate,e))}catch(t){throw Sy(t,"doc()","Firestore.doc()")}}},{key:"collectionGroup",value:function(e){try{return new Dy(this,function(e,t){if(e=Em(e,Cm),km("collectionGroup","collection id",t),t.indexOf("/")>=0)throw new Lo(Bo.INVALID_ARGUMENT,"Invalid collection ID '".concat(t,"' passed to function collectionGroup(). Collection IDs must not contain '/'."));return new Dm(e,null,function(e){return new ku(as.emptyPath(),e)}(t))}(this._delegate,e))}catch(t){throw Sy(t,"collectionGroup()","Firestore.collectionGroup()")}}},{key:"runTransaction",value:function(e){var t=this;return fy(this._delegate,(function(n){return e(new wy(t,n))}))}},{key:"batch",value:function(){var e=this;return Qm(this._delegate),new xy(new $g(this._delegate,(function(t){return uy(e._delegate,t)})))}},{key:"loadBundle",value:function(e){return Hm(this._delegate,e)}},{key:"namedQuery",value:function(e){var t=this;return Km(this._delegate,e).then((function(e){return e?new Dy(t,e):null}))}}]),e}(),by=function(e){he(n,e);var t=ge(n);function n(e){var r;return oe(this,n),(r=t.call(this)).firestore=e,r}return ue(n,[{key:"convertBytes",value:function(e){return new gy(new Ym(e))}},{key:"convertReference",value:function(e){var t=this.convertDocumentKey(e,this.firestore._databaseId);return Ey.forKey(t,this.firestore,null)}}]),n}(Yg);var wy=function(){function e(t,n){oe(this,e),this._firestore=t,this._delegate=n,this._userDataWriter=new by(t)}return ue(e,[{key:"get",value:function(e){var t=this,n=My(e);return this._delegate.get(n).then((function(e){return new _y(t._firestore,new _g(t._firestore._delegate,t._userDataWriter,e._key,e._document,e.metadata,n.converter))}))}},{key:"set",value:function(e,t,n){var r=My(e);return n?(py("Transaction.set",n),this._delegate.set(r,t,n)):this._delegate.set(r,t),this}},{key:"update",value:function(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];var o,s=My(e);2===arguments.length?this._delegate.update(s,t):(o=this._delegate).update.apply(o,[s,t,n].concat(i));return this}},{key:"delete",value:function(e){var t=My(e);return this._delegate.delete(t),this}}]),e}(),xy=function(){function e(t){oe(this,e),this._delegate=t}return ue(e,[{key:"set",value:function(e,t,n){var r=My(e);return n?(py("WriteBatch.set",n),this._delegate.set(r,t,n)):this._delegate.set(r,t),this}},{key:"update",value:function(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];var o,s=My(e);2===arguments.length?this._delegate.update(s,t):(o=this._delegate).update.apply(o,[s,t,n].concat(i));return this}},{key:"delete",value:function(e){var t=My(e);return this._delegate.delete(t),this}},{key:"commit",value:function(){return this._delegate.commit()}}]),e}(),Iy=function(){function e(t,n,r){oe(this,e),this._firestore=t,this._userDataWriter=n,this._delegate=r}return ue(e,[{key:"fromFirestore",value:function(e,t){var n=new Ng(this._firestore._delegate,this._userDataWriter,e._key,e._document,e.metadata,null);return this._delegate.fromFirestore(new Ny(this._firestore,n),null!==t&&void 0!==t?t:{})}},{key:"toFirestore",value:function(e,t){return t?this._delegate.toFirestore(e,t):this._delegate.toFirestore(e)}}],[{key:"getInstance",value:function(t,n){var r=e.INSTANCES,i=r.get(t);i||(i=new WeakMap,r.set(t,i));var a=i.get(n);return a||(a=new e(t,new by(t),n),i.set(n,a)),a}}]),e}();Iy.INSTANCES=new WeakMap;var Ey=function(){function e(t,n){oe(this,e),this.firestore=t,this._delegate=n,this._userDataWriter=new by(t)}return ue(e,[{key:"id",get:function(){return this._delegate.id}},{key:"parent",get:function(){return new Py(this.firestore,this._delegate.parent)}},{key:"path",get:function(){return this._delegate.path}},{key:"collection",value:function(e){try{return new Py(this.firestore,Rm(this._delegate,e))}catch(t){throw Sy(t,"collection()","DocumentReference.collection()")}}},{key:"isEqual",value:function(e){return(e=Ke(e))instanceof Nm&&Mm(this._delegate,e)}},{key:"set",value:function(e,t){t=py("DocumentReference.set",t);try{return t?iy(this._delegate,e,t):iy(this._delegate,e)}catch(n){throw Sy(n,"setDoc()","DocumentReference.set()")}}},{key:"update",value:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];try{return 1===arguments.length?ay(this._delegate,e):ay.apply(void 0,[this._delegate,e,t].concat(r))}catch(a){throw Sy(a,"updateDoc()","DocumentReference.update()")}}},{key:"delete",value:function(){return function(e){return uy(Em(e.firestore,Fm),[new mc(e._key,tc.none())])}(this._delegate)}},{key:"onSnapshot",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=Ty(n),a=Cy(n,(function(t){return new _y(e.firestore,new _g(e.firestore._delegate,e._userDataWriter,t._key,t._document,t.metadata,e._delegate.converter))}));return oy(this._delegate,i,a)}},{key:"get",value:function(e){var t,n=this;return t="cache"===(null===e||void 0===e?void 0:e.source)?ny(this._delegate):"server"===(null===e||void 0===e?void 0:e.source)?function(e){e=Em(e,Nm);var t=Em(e.firestore,Fm);return gm(Qm(t),e._key,{source:"server"}).then((function(n){return cy(t,e,n)}))}(this._delegate):function(e){e=Em(e,Nm);var t=Em(e.firestore,Fm);return gm(Qm(t),e._key).then((function(n){return cy(t,e,n)}))}(this._delegate),t.then((function(e){return new _y(n.firestore,new _g(n.firestore._delegate,n._userDataWriter,e._key,e._document,e.metadata,n._delegate.converter))}))}},{key:"withConverter",value:function(t){return new e(this.firestore,t?this._delegate.withConverter(Iy.getInstance(this.firestore,t)):this._delegate.withConverter(null))}}],[{key:"forPath",value:function(t,n,r){if(t.length%2!==0)throw new Lo("invalid-argument","Invalid document reference. Document references must have an even number of segments, but "+"".concat(t.canonicalString()," has ").concat(t.length));return new e(n,new Nm(n._delegate,r,new ws(t)))}},{key:"forKey",value:function(t,n,r){return new e(n,new Nm(n._delegate,r,t))}}]),e}();function Sy(e,t,n){return e.message=e.message.replace(t,n),e}function Ty(e){var t,n=ce(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if("object"===typeof r&&!yy(r))return r}}catch(i){n.e(i)}finally{n.f()}return{}}function Cy(e,t){var n,r,i;return{next:function(e){i.next&&i.next(t(e))},error:null===(n=(i=yy(e[0])?e[0]:yy(e[1])?e[1]:"function"===typeof e[0]?{next:e[0],error:e[1],complete:e[2]}:{next:e[1],error:e[2],complete:e[3]}).error)||void 0===n?void 0:n.bind(i),complete:null===(r=i.complete)||void 0===r?void 0:r.bind(i)}}var _y=function(){function e(t,n){oe(this,e),this._firestore=t,this._delegate=n}return ue(e,[{key:"ref",get:function(){return new Ey(this._firestore,this._delegate.ref)}},{key:"id",get:function(){return this._delegate.id}},{key:"metadata",get:function(){return this._delegate.metadata}},{key:"exists",get:function(){return this._delegate.exists()}},{key:"data",value:function(e){return this._delegate.data(e)}},{key:"get",value:function(e,t){return this._delegate.get(e,t)}},{key:"isEqual",value:function(e){return Rg(this._delegate,e._delegate)}}]),e}(),Ny=function(e){he(n,e);var t=ge(n);function n(){return oe(this,n),t.apply(this,arguments)}return ue(n,[{key:"data",value:function(e){var t=this._delegate.data(e);return function(e,t){e||Ro()}(void 0!==t),t}}]),n}(_y),Dy=function(){function e(t,n){oe(this,e),this.firestore=t,this._delegate=n,this._userDataWriter=new by(t)}return ue(e,[{key:"where",value:function(t,n,r){try{return new e(this.firestore,Bg(this._delegate,function(e,t,n){var r=t,i=Tg("where",e);return new Lg(i,r,n)}(t,n,r)))}catch(i){throw Sy(i,/(orderBy|where)\(\)/,"Query.$1()")}}},{key:"orderBy",value:function(t,n){try{return new e(this.firestore,Bg(this._delegate,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc",n=Tg("orderBy",e);return new jg(n,t)}(t,n)))}catch(r){throw Sy(r,/(orderBy|where)\(\)/,"Query.$1()")}}},{key:"limit",value:function(t){try{return new e(this.firestore,Bg(this._delegate,function(e){return Sm("limit",e),new Ug("limit",e,"F")}(t)))}catch(n){throw Sy(n,"limit()","Query.limit()")}}},{key:"limitToLast",value:function(t){try{return new e(this.firestore,Bg(this._delegate,function(e){return Sm("limitToLast",e),new Ug("limitToLast",e,"L")}(t)))}catch(n){throw Sy(n,"limitToLast()","Query.limitToLast()")}}},{key:"startAt",value:function(){try{return new e(this.firestore,Bg(this._delegate,Qg.apply(void 0,arguments)))}catch(t){throw Sy(t,"startAt()","Query.startAt()")}}},{key:"startAfter",value:function(){try{return new e(this.firestore,Bg(this._delegate,Vg.apply(void 0,arguments)))}catch(t){throw Sy(t,"startAfter()","Query.startAfter()")}}},{key:"endBefore",value:function(){try{return new e(this.firestore,Bg(this._delegate,qg.apply(void 0,arguments)))}catch(t){throw Sy(t,"endBefore()","Query.endBefore()")}}},{key:"endAt",value:function(){try{return new e(this.firestore,Bg(this._delegate,Gg.apply(void 0,arguments)))}catch(t){throw Sy(t,"endAt()","Query.endAt()")}}},{key:"isEqual",value:function(e){return Bm(this._delegate,e._delegate)}},{key:"get",value:function(e){var t,n=this;return t="cache"===(null===e||void 0===e?void 0:e.source)?ry(this._delegate):"server"===(null===e||void 0===e?void 0:e.source)?function(e){e=Em(e,Dm);var t=Em(e.firestore,Fm),n=Qm(t),r=new ty(t);return ym(n,e._query,{source:"server"}).then((function(n){return new Dg(t,r,e,n)}))}(this._delegate):function(e){e=Em(e,Dm);var t=Em(e.firestore,Fm),n=Qm(t),r=new ty(t);return Pg(e._query),ym(n,e._query).then((function(n){return new Dg(t,r,e,n)}))}(this._delegate),t.then((function(e){return new Ry(n.firestore,new Dg(n.firestore._delegate,n._userDataWriter,n._delegate,e._snapshot))}))}},{key:"onSnapshot",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=Ty(n),a=Cy(n,(function(t){return new Ry(e.firestore,new Dg(e.firestore._delegate,e._userDataWriter,e._delegate,t._snapshot))}));return oy(this._delegate,i,a)}},{key:"withConverter",value:function(t){return new e(this.firestore,t?this._delegate.withConverter(Iy.getInstance(this.firestore,t)):this._delegate.withConverter(null))}}]),e}(),Oy=function(){function e(t,n){oe(this,e),this._firestore=t,this._delegate=n}return ue(e,[{key:"type",get:function(){return this._delegate.type}},{key:"doc",get:function(){return new Ny(this._firestore,this._delegate.doc)}},{key:"oldIndex",get:function(){return this._delegate.oldIndex}},{key:"newIndex",get:function(){return this._delegate.newIndex}}]),e}(),Ry=function(){function e(t,n){oe(this,e),this._firestore=t,this._delegate=n}return ue(e,[{key:"query",get:function(){return new Dy(this._firestore,this._delegate.query)}},{key:"metadata",get:function(){return this._delegate.metadata}},{key:"size",get:function(){return this._delegate.size}},{key:"empty",get:function(){return this._delegate.empty}},{key:"docs",get:function(){var e=this;return this._delegate.docs.map((function(t){return new Ny(e._firestore,t)}))}},{key:"docChanges",value:function(e){var t=this;return this._delegate.docChanges(e).map((function(e){return new Oy(t._firestore,e)}))}},{key:"forEach",value:function(e,t){var n=this;this._delegate.forEach((function(r){e.call(t,new Ny(n._firestore,r))}))}},{key:"isEqual",value:function(e){return Rg(this._delegate,e._delegate)}}]),e}(),Py=function(e){he(n,e);var t=ge(n);function n(e,r){var i;return oe(this,n),(i=t.call(this,e,r)).firestore=e,i._delegate=r,i}return ue(n,[{key:"id",get:function(){return this._delegate.id}},{key:"path",get:function(){return this._delegate.path}},{key:"parent",get:function(){var e=this._delegate.parent;return e?new Ey(this.firestore,e):null}},{key:"doc",value:function(e){try{return new Ey(this.firestore,void 0===e?Pm(this._delegate):Pm(this._delegate,e))}catch(t){throw Sy(t,"doc()","CollectionReference.doc()")}}},{key:"add",value:function(e){var t=this;return function(e,t){var n=Em(e.firestore,Fm),r=Pm(e),i=Xg(e.converter,t);return uy(n,[og(ag(e.firestore),"addDoc",r._key,i,null!==e.converter,{}).toMutation(r._key,tc.exists(!1))]).then((function(){return r}))}(this._delegate,e).then((function(e){return new Ey(t.firestore,e)}))}},{key:"isEqual",value:function(e){return Mm(this._delegate,e._delegate)}},{key:"withConverter",value:function(e){return new n(this.firestore,e?this._delegate.withConverter(Iy.getInstance(this.firestore,e)):this._delegate.withConverter(null))}}]),n}(Dy);function My(e){return Em(e,Nm)}var By,Ly=function(){function e(){oe(this,e);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this._delegate=ye(Jm,n)}return ue(e,[{key:"isEqual",value:function(e){return(e=Ke(e))instanceof Jm&&this._delegate._internalPath.isEqual(e._internalPath)}}],[{key:"documentId",value:function(){return new e(ss.keyField().canonicalString())}}]),e}(),jy=function(){function e(t){oe(this,e),this._delegate=t}return ue(e,[{key:"isEqual",value:function(e){return this._delegate.isEqual(e._delegate)}}],[{key:"serverTimestamp",value:function(){var t=new cg("serverTimestamp");return t._methodName="FieldValue.serverTimestamp",new e(t)}},{key:"delete",value:function(){var t=new sg("deleteField");return t._methodName="FieldValue.delete",new e(t)}},{key:"arrayUnion",value:function(){var t=hy.apply(void 0,arguments);return t._methodName="FieldValue.arrayUnion",new e(t)}},{key:"arrayRemove",value:function(){var t=dy.apply(void 0,arguments);return t._methodName="FieldValue.arrayRemove",new e(t)}},{key:"increment",value:function(t){var n=function(e){return new hg("increment",e)}(t);return n._methodName="FieldValue.increment",new e(n)}}]),e}(),Uy={Firestore:ky,GeoPoint:Zm,Timestamp:$o,Blob:gy,Transaction:wy,WriteBatch:xy,DocumentReference:Ey,DocumentSnapshot:_y,Query:Dy,QueryDocumentSnapshot:Ny,QuerySnapshot:Ry,CollectionReference:Py,FieldPath:Ly,FieldValue:jy,setLogLevel:function(e){!function(e){To.setLogLevel(e)}(e)},CACHE_SIZE_UNLIMITED:-1};(function(e,t){e.INTERNAL.registerComponent(new $e("firestore-compat",(function(e){var n=e.getProvider("app-compat").getImmediate(),r=e.getProvider("firestore").getImmediate();return t(n,r)}),"PUBLIC").setServiceProps(Object.assign({},Uy)))})(By=sn,(function(e,t){return new ky(e,t,new Ay)})),By.registerVersion("@firebase/firestore-compat","0.1.16");var Fy="firebasestorage.googleapis.com",Qy=function(e){he(n,e);var t=ge(n);function n(e,r){var i;return oe(this,n),(i=t.call(this,Vy(e),"Firebase Storage: ".concat(r," (").concat(Vy(e),")"))).customData={serverResponse:null},i._baseMessage=i.message,Object.setPrototypeOf(le(i),n.prototype),i}return ue(n,[{key:"_codeEquals",value:function(e){return Vy(e)===this.code}},{key:"serverResponse",get:function(){return this.customData.serverResponse},set:function(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message="".concat(this._baseMessage,"\n").concat(this.customData.serverResponse):this.message=this._baseMessage}}]),n}(Pe);function Vy(e){return"storage/"+e}function zy(){return new Qy("unknown","An unknown error occurred, please check the error payload for server response.")}function qy(){return new Qy("canceled","User canceled the upload/download.")}function Gy(){return new Qy("cannot-slice-blob","Cannot slice blob for upload. Please retry the upload.")}function Hy(e){return new Qy("invalid-argument",e)}function Ky(){return new Qy("app-deleted","The Firebase app was deleted.")}function Wy(e){return new Qy("invalid-root-operation","The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}function Jy(e,t){return new Qy("invalid-format","String does not match format '"+e+"': "+t)}function Yy(e){throw new Qy("internal-error","Internal error: "+e)}var Xy,Zy=function(){function e(t,n){oe(this,e),this.bucket=t,this.path_=n}return ue(e,[{key:"path",get:function(){return this.path_}},{key:"isRoot",get:function(){return 0===this.path.length}},{key:"fullServerUrl",value:function(){var e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)}},{key:"bucketOnlyServerUrl",value:function(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}}],[{key:"makeFromBucketSpec",value:function(t,n){var r;try{r=e.makeFromUrl(t,n)}catch(i){return new e(t,"")}if(""===r.path)return r;throw new Qy("invalid-default-bucket","Invalid default bucket '"+t+"'.")}},{key:"makeFromUrl",value:function(t,n){var r=null,i="([A-Za-z0-9.\\-_]+)";var a=new RegExp("^gs://"+i+"(/(.*))?$","i");function o(e){e.path_=decodeURIComponent(e.path)}for(var s=n.replace(/[.]/g,"\\."),u=[{regex:a,indices:{bucket:1,path:3},postModify:function(e){"/"===e.path.charAt(e.path.length-1)&&(e.path_=e.path_.slice(0,-1))}},{regex:new RegExp("^https?://".concat(s,"/").concat("v[A-Za-z0-9_]+","/b/").concat(i,"/o").concat("(/([^?#]*).*)?$"),"i"),indices:{bucket:1,path:3},postModify:o},{regex:new RegExp("^https?://".concat(n===Fy?"(?:storage.googleapis.com|storage.cloud.google.com)":n,"/").concat(i,"/").concat("([^?#]*)"),"i"),indices:{bucket:1,path:2},postModify:o}],c=0;c<u.length;c++){var l=u[c],f=l.regex.exec(t);if(f){var h=f[l.indices.bucket],d=f[l.indices.path];d||(d=""),r=new e(h,d),l.postModify(r);break}}if(null==r)throw function(e){return new Qy("invalid-url","Invalid URL '"+e+"'.")}(t);return r}}]),e}(),$y=function(){function e(t){oe(this,e),this.promise_=Promise.reject(t)}return ue(e,[{key:"getPromise",value:function(){return this.promise_}},{key:"cancel",value:function(){}}]),e}();function eA(e){return"string"===typeof e||e instanceof String}function tA(e){return nA()&&e instanceof Blob}function nA(){return"undefined"!==typeof Blob}function rA(e,t,n,r){if(r<t)throw Hy("Invalid value for '".concat(e,"'. Expected ").concat(t," or greater."));if(r>n)throw Hy("Invalid value for '".concat(e,"'. Expected ").concat(n," or less."))}function iA(e,t,n){var r=t;return null==n&&(r="https://".concat(t)),"".concat(n,"://").concat(r,"/v0").concat(e)}function aA(e){var t=encodeURIComponent,n="?";for(var r in e){if(e.hasOwnProperty(r))n=n+(t(r)+"="+t(e[r]))+"&"}return n=n.slice(0,-1)}!function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT"}(Xy||(Xy={}));var oA=function(){function e(t,n,r,i,a,o,s,u,c,l,f){var h=this;oe(this,e),this.url_=t,this.method_=n,this.headers_=r,this.body_=i,this.successCodes_=a,this.additionalRetryCodes_=o,this.callback_=s,this.errorCallback_=u,this.timeout_=c,this.progressCallback_=l,this.connectionFactory_=f,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((function(e,t){h.resolve_=e,h.reject_=t,h.start_()}))}return ue(e,[{key:"start_",value:function(){var e=this,t=function(t,n){var r=e.resolve_,i=e.reject_,a=n.connection;if(n.wasSuccessCode)try{var o=e.callback_(a,a.getResponse());!function(e){return void 0!==e}(o)?r():r(o)}catch(u){i(u)}else if(null!==a){var s=zy();s.serverResponse=a.getErrorText(),e.errorCallback_?i(e.errorCallback_(a,s)):i(s)}else{if(n.canceled)i(e.appDelete_?Ky():qy());else i(new Qy("retry-limit-exceeded","Max retry time for operation exceeded, please try again."))}};this.canceled_?t(0,new sA(!1,null,!0)):this.backoffId_=function(e,t,n){var r=1,i=null,a=null,o=!1,s=0;function u(){return 2===s}var c=!1;function l(){if(!c){c=!0;for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.apply(null,n)}}function f(t){i=setTimeout((function(){i=null,e(d,u())}),t)}function h(){a&&clearTimeout(a)}function d(e){if(c)h();else{for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(e)return h(),void l.call.apply(l,[null,e].concat(n));var a;if(u()||o)return h(),void l.call.apply(l,[null,e].concat(n));r<64&&(r*=2),1===s?(s=2,a=0):a=1e3*(r+Math.random()),f(a)}}var p=!1;function v(e){p||(p=!0,h(),c||(null!==i?(e||(s=2),clearTimeout(i),f(0)):e||(s=1)))}return f(0),a=setTimeout((function(){o=!0,v(!0)}),n),v}((function(t,n){if(n)t(!1,new sA(!1,null,!0));else{var r=e.connectionFactory_();e.pendingConnection_=r;var i=function(t){var n=t.loaded,r=t.lengthComputable?t.total:-1;null!==e.progressCallback_&&e.progressCallback_(n,r)};null!==e.progressCallback_&&r.addUploadProgressListener(i),r.send(e.url_,e.method_,e.body_,e.headers_).then((function(){null!==e.progressCallback_&&r.removeUploadProgressListener(i),e.pendingConnection_=null;var n=r.getErrorCode()===Xy.NO_ERROR,a=r.getStatus();if(n&&!e.isRetryStatusCode_(a)){var o=-1!==e.successCodes_.indexOf(a);t(!0,new sA(o,r))}else{var s=r.getErrorCode()===Xy.ABORT;t(!1,new sA(!1,null,s))}}))}}),t,this.timeout_)}},{key:"getPromise",value:function(){return this.promise_}},{key:"cancel",value:function(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&function(e){e(!1)}(this.backoffId_),null!==this.pendingConnection_&&this.pendingConnection_.abort()}},{key:"isRetryStatusCode_",value:function(e){var t=e>=500&&e<600,n=-1!==[408,429].indexOf(e),r=-1!==this.additionalRetryCodes_.indexOf(e);return t||n||r}}]),e}(),sA=ue((function e(t,n,r){oe(this,e),this.wasSuccessCode=t,this.connection=n,this.canceled=!!r}));function uA(){return"undefined"!==typeof BlobBuilder?BlobBuilder:"undefined"!==typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}function cA(){for(var e=uA(),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0!==e){for(var i=new e,a=0;a<n.length;a++)i.append(n[a]);return i.getBlob()}if(nA())return new Blob(n);throw new Qy("unsupported-environment","This browser doesn't seem to support creating Blobs")}var lA={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"},fA=ue((function e(t,n){oe(this,e),this.data=t,this.contentType=n||null}));function hA(e,t){switch(e){case lA.RAW:return new fA(dA(t));case lA.BASE64:case lA.BASE64URL:return new fA(pA(e,t));case lA.DATA_URL:return new fA(function(e){var t=new vA(e);return t.base64?pA(lA.BASE64,t.rest):function(e){var t;try{t=decodeURIComponent(e)}catch(n){throw Jy(lA.DATA_URL,"Malformed data URL.")}return dA(t)}(t.rest)}(t),new vA(t).contentType)}throw zy()}function dA(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(r);else if(r<=2047)t.push(192|r>>6,128|63&r);else if(55296===(64512&r))if(n<e.length-1&&56320===(64512&e.charCodeAt(n+1)))r=65536|(1023&r)<<10|1023&e.charCodeAt(++n),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r);else t.push(239,191,189);else 56320===(64512&r)?t.push(239,191,189):t.push(224|r>>12,128|r>>6&63,128|63&r)}return new Uint8Array(t)}function pA(e,t){switch(e){case lA.BASE64:var n=-1!==t.indexOf("-"),r=-1!==t.indexOf("_");if(n||r)throw Jy(e,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break;case lA.BASE64URL:var i=-1!==t.indexOf("+"),a=-1!==t.indexOf("/");if(i||a)throw Jy(e,"Invalid character '"+(i?"+":"/")+"' found: is it base64 encoded?");t=t.replace(/-/g,"+").replace(/_/g,"/")}var o;try{o=atob(t)}catch(c){throw Jy(e,"Invalid character found")}for(var s=new Uint8Array(o.length),u=0;u<o.length;u++)s[u]=o.charCodeAt(u);return s}var vA=ue((function e(t){oe(this,e),this.base64=!1,this.contentType=null;var n=t.match(/^data:([^,]+)?,/);if(null===n)throw Jy(lA.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");var r=n[1]||null;null!=r&&(this.base64=function(e,t){if(!(e.length>=t.length))return!1;return e.substring(e.length-t.length)===t}(r,";base64"),this.contentType=this.base64?r.substring(0,r.length-";base64".length):r),this.rest=t.substring(t.indexOf(",")+1)}));var mA=function(){function e(t,n){oe(this,e);var r=0,i="";tA(t)?(this.data_=t,r=t.size,i=t.type):t instanceof ArrayBuffer?(n?this.data_=new Uint8Array(t):(this.data_=new Uint8Array(t.byteLength),this.data_.set(new Uint8Array(t))),r=this.data_.length):t instanceof Uint8Array&&(n?this.data_=t:(this.data_=new Uint8Array(t.length),this.data_.set(t)),r=t.length),this.size_=r,this.type_=i}return ue(e,[{key:"size",value:function(){return this.size_}},{key:"type",value:function(){return this.type_}},{key:"slice",value:function(t,n){if(tA(this.data_)){var r=function(e,t,n){return e.webkitSlice?e.webkitSlice(t,n):e.mozSlice?e.mozSlice(t,n):e.slice?e.slice(t,n):null}(this.data_,t,n);return null===r?null:new e(r)}var i=new Uint8Array(this.data_.buffer,t,n-t);return new e(i,!0)}},{key:"uploadData",value:function(){return this.data_}}],[{key:"getBlob",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(nA()){var i=n.map((function(t){return t instanceof e?t.data_:t}));return new e(cA.apply(null,i))}var a=n.map((function(e){return eA(e)?hA(lA.RAW,e).data:e.data_})),o=0;a.forEach((function(e){o+=e.byteLength}));var s=new Uint8Array(o),u=0;return a.forEach((function(e){for(var t=0;t<e.length;t++)s[u++]=e[t]})),new e(s,!0)}}]),e}();function gA(e){var t;try{t=JSON.parse(e)}catch(n){return null}return function(e){return"object"===typeof e&&!Array.isArray(e)}(t)?t:null}function yA(e){var t=e.lastIndexOf("/",e.length-2);return-1===t?e:e.slice(t+1)}function AA(e,t){return t}var kA=ue((function e(t,n,r,i){oe(this,e),this.server=t,this.local=n||t,this.writable=!!r,this.xform=i||AA})),bA=null;function wA(){if(bA)return bA;var e=[];e.push(new kA("bucket")),e.push(new kA("generation")),e.push(new kA("metageneration")),e.push(new kA("name","fullPath",!0));var t=new kA("name");t.xform=function(e,t){return function(e){return!eA(e)||e.length<2?e:yA(e)}(t)},e.push(t);var n=new kA("size");return n.xform=function(e,t){return void 0!==t?Number(t):t},e.push(n),e.push(new kA("timeCreated")),e.push(new kA("updated")),e.push(new kA("md5Hash",null,!0)),e.push(new kA("cacheControl",null,!0)),e.push(new kA("contentDisposition",null,!0)),e.push(new kA("contentEncoding",null,!0)),e.push(new kA("contentLanguage",null,!0)),e.push(new kA("contentType",null,!0)),e.push(new kA("metadata","customMetadata",!0)),bA=e}function xA(e,t,n){for(var r={type:"file"},i=n.length,a=0;a<i;a++){var o=n[a];r[o.local]=o.xform(r,t[o.server])}return function(e,t){Object.defineProperty(e,"ref",{get:function(){var n=e.bucket,r=e.fullPath,i=new Zy(n,r);return t._makeStorageReference(i)}})}(r,e),r}function IA(e,t,n){var r=gA(t);return null===r?null:xA(e,r,n)}function EA(e,t){for(var n={},r=t.length,i=0;i<r;i++){var a=t[i];a.writable&&(n[a.server]=e[a.local])}return JSON.stringify(n)}function SA(e,t,n){var r=gA(n);return null===r?null:function(e,t,n){var r={prefixes:[],items:[],nextPageToken:n.nextPageToken};if(n.prefixes){var i,a=ce(n.prefixes);try{for(a.s();!(i=a.n()).done;){var o=i.value.replace(/\/$/,""),s=e._makeStorageReference(new Zy(t,o));r.prefixes.push(s)}}catch(h){a.e(h)}finally{a.f()}}if(n.items){var u,c=ce(n.items);try{for(c.s();!(u=c.n()).done;){var l=u.value,f=e._makeStorageReference(new Zy(t,l.name));r.items.push(f)}}catch(h){c.e(h)}finally{c.f()}}return r}(e,t,r)}var TA=ue((function e(t,n,r,i){oe(this,e),this.url=t,this.method=n,this.handler=r,this.timeout=i,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}));function CA(e){if(!e)throw zy()}function _A(e,t){return function(n,r){var i=IA(e,r,t);return CA(null!==i),i}}function NA(e,t){return function(n,r){var i=IA(e,r,t);return CA(null!==i),function(e,t,n,r){var i=gA(t);if(null===i)return null;if(!eA(i.downloadTokens))return null;var a=i.downloadTokens;if(0===a.length)return null;var o=encodeURIComponent;return a.split(",").map((function(t){var i=e.bucket,a=e.fullPath;return iA("/b/"+o(i)+"/o/"+o(a),n,r)+aA({alt:"media",token:t})}))[0]}(i,r,e.host,e._protocol)}}function DA(e){return function(t,n){var r,i,a;return 401===t.getStatus()?r=t.getErrorText().includes("Firebase App Check token is invalid")?new Qy("unauthorized-app","This app does not have permission to access Firebase Storage on this project."):new Qy("unauthenticated","User is not authenticated, please authenticate using Firebase Authentication and try again."):402===t.getStatus()?(a=e.bucket,r=new Qy("quota-exceeded","Quota for bucket '"+a+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===t.getStatus()?(i=e.path,r=new Qy("unauthorized","User does not have permission to access '"+i+"'.")):r=n,r.serverResponse=n.serverResponse,r}}function OA(e){var t=DA(e);return function(n,r){var i,a=t(n,r);return 404===n.getStatus()&&(i=e.path,a=new Qy("object-not-found","Object '"+i+"' does not exist.")),a.serverResponse=r.serverResponse,a}}function RA(e,t,n){var r=iA(t.fullServerUrl(),e.host,e._protocol),i=e.maxOperationRetryTime,a=new TA(r,"GET",_A(e,n),i);return a.errorHandler=OA(t),a}function PA(e,t,n,r,i){var a={};t.isRoot?a.prefix="":a.prefix=t.path+"/",n&&n.length>0&&(a.delimiter=n),r&&(a.pageToken=r),i&&(a.maxResults=i);var o=iA(t.bucketOnlyServerUrl(),e.host,e._protocol),s=e.maxOperationRetryTime,u=new TA(o,"GET",function(e,t){return function(n,r){var i=SA(e,t,r);return CA(null!==i),i}}(e,t.bucket),s);return u.urlParams=a,u.errorHandler=DA(t),u}function MA(e,t,n){var r=Object.assign({},n);return r.fullPath=e.path,r.size=t.size(),r.contentType||(r.contentType=function(e,t){return e&&e.contentType||t&&t.type()||"application/octet-stream"}(null,t)),r}function BA(e,t,n,r,i){var a=t.bucketOnlyServerUrl(),o={"X-Goog-Upload-Protocol":"multipart"};var s=function(){for(var e="",t=0;t<2;t++)e+=Math.random().toString().slice(2);return e}();o["Content-Type"]="multipart/related; boundary="+s;var u=MA(t,r,i),c="--"+s+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+EA(u,n)+"\r\n--"+s+"\r\nContent-Type: "+u.contentType+"\r\n\r\n",l="\r\n--"+s+"--",f=mA.getBlob(c,r,l);if(null===f)throw Gy();var h={name:u.fullPath},d=iA(a,e.host,e._protocol),p=e.maxUploadRetryTime,v=new TA(d,"POST",_A(e,n),p);return v.urlParams=h,v.headers=o,v.body=f.uploadData(),v.errorHandler=DA(t),v}var LA=ue((function e(t,n,r,i){oe(this,e),this.current=t,this.total=n,this.finalized=!!r,this.metadata=i||null}));function jA(e,t){var n=null;try{n=e.getResponseHeader("X-Goog-Upload-Status")}catch(r){CA(!1)}return CA(!!n&&-1!==(t||["active"]).indexOf(n)),n}var UA=262144;function FA(e,t,n,r,i,a,o,s){var u=new LA(0,0);if(o?(u.current=o.current,u.total=o.total):(u.current=0,u.total=r.size()),r.size()!==u.total)throw new Qy("server-file-wrong-size","Server recorded incorrect upload file size, please retry the upload.");var c=u.total-u.current,l=c;i>0&&(l=Math.min(l,i));var f=u.current,h=f+l,d={"X-Goog-Upload-Command":l===c?"upload, finalize":"upload","X-Goog-Upload-Offset":"".concat(u.current)},p=r.slice(f,h);if(null===p)throw Gy();var v=t.maxUploadRetryTime,m=new TA(n,"POST",(function(e,n){var i,o=jA(e,["active","final"]),s=u.current+l,c=r.size();return i="final"===o?_A(t,a)(e,n):null,new LA(s,c,"final"===o,i)}),v);return m.headers=d,m.body=p.uploadData(),m.progressCallback=s||null,m.errorHandler=DA(e),m}var QA={STATE_CHANGED:"state_changed"},VA={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function zA(e){switch(e){case"running":case"pausing":case"canceling":return VA.RUNNING;case"paused":return VA.PAUSED;case"success":return VA.SUCCESS;case"canceled":return VA.CANCELED;default:return VA.ERROR}}var qA=ue((function e(t,n,r){oe(this,e);var i=function(e){return"function"===typeof e}(t)||null!=n||null!=r;if(i)this.next=t,this.error=null!==n&&void 0!==n?n:void 0,this.complete=null!==r&&void 0!==r?r:void 0;else{var a=t;this.next=a.next,this.error=a.error,this.complete=a.complete}}));function GA(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];Promise.resolve().then((function(){return e.apply(void 0,n)}))}}var HA=function(){function e(){var t=this;oe(this,e),this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=Xy.NO_ERROR,this.sendPromise_=new Promise((function(e){t.xhr_.addEventListener("abort",(function(){t.errorCode_=Xy.ABORT,e()})),t.xhr_.addEventListener("error",(function(){t.errorCode_=Xy.NETWORK_ERROR,e()})),t.xhr_.addEventListener("load",(function(){e()}))}))}return ue(e,[{key:"send",value:function(e,t,n,r){if(this.sent_)throw Yy("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(t,e,!0),void 0!==r)for(var i in r)r.hasOwnProperty(i)&&this.xhr_.setRequestHeader(i,r[i].toString());return void 0!==n?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_}},{key:"getErrorCode",value:function(){if(!this.sent_)throw Yy("cannot .getErrorCode() before sending");return this.errorCode_}},{key:"getStatus",value:function(){if(!this.sent_)throw Yy("cannot .getStatus() before sending");try{return this.xhr_.status}catch(e){return-1}}},{key:"getResponse",value:function(){if(!this.sent_)throw Yy("cannot .getResponse() before sending");return this.xhr_.response}},{key:"getErrorText",value:function(){if(!this.sent_)throw Yy("cannot .getErrorText() before sending");return this.xhr_.statusText}},{key:"abort",value:function(){this.xhr_.abort()}},{key:"getResponseHeader",value:function(e){return this.xhr_.getResponseHeader(e)}},{key:"addUploadProgressListener",value:function(e){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",e)}},{key:"removeUploadProgressListener",value:function(e){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",e)}}]),e}(),KA=function(e){he(n,e);var t=ge(n);function n(){return oe(this,n),t.apply(this,arguments)}return ue(n,[{key:"initXhr",value:function(){this.xhr_.responseType="text"}}]),n}(HA);function WA(){return new KA}var JA=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;oe(this,e),this._transferred=0,this._needToFetchStatus=!1,this._needToFetchMetadata=!1,this._observers=[],this._error=void 0,this._uploadUrl=void 0,this._request=void 0,this._chunkMultiplier=1,this._resolve=void 0,this._reject=void 0,this._ref=t,this._blob=n,this._metadata=i,this._mappings=wA(),this._resumable=this._shouldDoResumable(this._blob),this._state="running",this._errorHandler=function(e){r._request=void 0,r._chunkMultiplier=1,e._codeEquals("canceled")?(r._needToFetchStatus=!0,r.completeTransitions_()):(r._error=e,r._transition("error"))},this._metadataErrorHandler=function(e){r._request=void 0,e._codeEquals("canceled")?r.completeTransitions_():(r._error=e,r._transition("error"))},this._promise=new Promise((function(e,t){r._resolve=e,r._reject=t,r._start()})),this._promise.then(null,(function(){}))}return ue(e,[{key:"_makeProgressCallback",value:function(){var e=this,t=this._transferred;return function(n){return e._updateProgress(t+n)}}},{key:"_shouldDoResumable",value:function(e){return e.size()>262144}},{key:"_start",value:function(){"running"===this._state&&void 0===this._request&&(this._resumable?void 0===this._uploadUrl?this._createResumable():this._needToFetchStatus?this._fetchStatus():this._needToFetchMetadata?this._fetchMetadata():this._continueUpload():this._oneShotUpload())}},{key:"_resolveToken",value:function(e){var t=this;Promise.all([this._ref.storage._getAuthToken(),this._ref.storage._getAppCheckToken()]).then((function(n){var r=s(n,2),i=r[0],a=r[1];switch(t._state){case"running":e(i,a);break;case"canceling":t._transition("canceled");break;case"pausing":t._transition("paused")}}))}},{key:"_createResumable",value:function(){var e=this;this._resolveToken((function(t,n){var r=function(e,t,n,r,i){var a=t.bucketOnlyServerUrl(),o=MA(t,r,i),s={name:o.fullPath},u=iA(a,e.host,e._protocol),c={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":"".concat(r.size()),"X-Goog-Upload-Header-Content-Type":o.contentType,"Content-Type":"application/json; charset=utf-8"},l=EA(o,n),f=e.maxUploadRetryTime,h=new TA(u,"POST",(function(e){var t;jA(e);try{t=e.getResponseHeader("X-Goog-Upload-URL")}catch(n){CA(!1)}return CA(eA(t)),t}),f);return h.urlParams=s,h.headers=c,h.body=l,h.errorHandler=DA(t),h}(e._ref.storage,e._ref._location,e._mappings,e._blob,e._metadata),i=e._ref.storage._makeRequest(r,WA,t,n);e._request=i,i.getPromise().then((function(t){e._request=void 0,e._uploadUrl=t,e._needToFetchStatus=!1,e.completeTransitions_()}),e._errorHandler)}))}},{key:"_fetchStatus",value:function(){var e=this,t=this._uploadUrl;this._resolveToken((function(n,r){var i=function(e,t,n,r){var i=e.maxUploadRetryTime,a=new TA(n,"POST",(function(e){var t=jA(e,["active","final"]),n=null;try{n=e.getResponseHeader("X-Goog-Upload-Size-Received")}catch(a){CA(!1)}n||CA(!1);var i=Number(n);return CA(!isNaN(i)),new LA(i,r.size(),"final"===t)}),i);return a.headers={"X-Goog-Upload-Command":"query"},a.errorHandler=DA(t),a}(e._ref.storage,e._ref._location,t,e._blob),a=e._ref.storage._makeRequest(i,WA,n,r);e._request=a,a.getPromise().then((function(t){t=t,e._request=void 0,e._updateProgress(t.current),e._needToFetchStatus=!1,t.finalized&&(e._needToFetchMetadata=!0),e.completeTransitions_()}),e._errorHandler)}))}},{key:"_continueUpload",value:function(){var e=this,t=UA*this._chunkMultiplier,n=new LA(this._transferred,this._blob.size()),r=this._uploadUrl;this._resolveToken((function(i,a){var o;try{o=FA(e._ref._location,e._ref.storage,r,e._blob,t,e._mappings,n,e._makeProgressCallback())}catch(u){return e._error=u,void e._transition("error")}var s=e._ref.storage._makeRequest(o,WA,i,a);e._request=s,s.getPromise().then((function(t){e._increaseMultiplier(),e._request=void 0,e._updateProgress(t.current),t.finalized?(e._metadata=t.metadata,e._transition("success")):e.completeTransitions_()}),e._errorHandler)}))}},{key:"_increaseMultiplier",value:function(){UA*this._chunkMultiplier<33554432&&(this._chunkMultiplier*=2)}},{key:"_fetchMetadata",value:function(){var e=this;this._resolveToken((function(t,n){var r=RA(e._ref.storage,e._ref._location,e._mappings),i=e._ref.storage._makeRequest(r,WA,t,n);e._request=i,i.getPromise().then((function(t){e._request=void 0,e._metadata=t,e._transition("success")}),e._metadataErrorHandler)}))}},{key:"_oneShotUpload",value:function(){var e=this;this._resolveToken((function(t,n){var r=BA(e._ref.storage,e._ref._location,e._mappings,e._blob,e._metadata),i=e._ref.storage._makeRequest(r,WA,t,n);e._request=i,i.getPromise().then((function(t){e._request=void 0,e._metadata=t,e._updateProgress(e._blob.size()),e._transition("success")}),e._errorHandler)}))}},{key:"_updateProgress",value:function(e){var t=this._transferred;this._transferred=e,this._transferred!==t&&this._notifyObservers()}},{key:"_transition",value:function(e){if(this._state!==e)switch(e){case"canceling":case"pausing":this._state=e,void 0!==this._request&&this._request.cancel();break;case"running":var t="paused"===this._state;this._state=e,t&&(this._notifyObservers(),this._start());break;case"paused":case"error":case"success":this._state=e,this._notifyObservers();break;case"canceled":this._error=qy(),this._state=e,this._notifyObservers()}}},{key:"completeTransitions_",value:function(){switch(this._state){case"pausing":this._transition("paused");break;case"canceling":this._transition("canceled");break;case"running":this._start()}}},{key:"snapshot",get:function(){var e=zA(this._state);return{bytesTransferred:this._transferred,totalBytes:this._blob.size(),state:e,metadata:this._metadata,task:this,ref:this._ref}}},{key:"on",value:function(e,t,n,r){var i=this,a=new qA(t||void 0,n||void 0,r||void 0);return this._addObserver(a),function(){i._removeObserver(a)}}},{key:"then",value:function(e,t){return this._promise.then(e,t)}},{key:"catch",value:function(e){return this.then(null,e)}},{key:"_addObserver",value:function(e){this._observers.push(e),this._notifyObserver(e)}},{key:"_removeObserver",value:function(e){var t=this._observers.indexOf(e);-1!==t&&this._observers.splice(t,1)}},{key:"_notifyObservers",value:function(){var e=this;this._finishPromise(),this._observers.slice().forEach((function(t){e._notifyObserver(t)}))}},{key:"_finishPromise",value:function(){if(void 0!==this._resolve){var e=!0;switch(zA(this._state)){case VA.SUCCESS:GA(this._resolve.bind(null,this.snapshot))();break;case VA.CANCELED:case VA.ERROR:GA(this._reject.bind(null,this._error))();break;default:e=!1}e&&(this._resolve=void 0,this._reject=void 0)}}},{key:"_notifyObserver",value:function(e){switch(zA(this._state)){case VA.RUNNING:case VA.PAUSED:e.next&&GA(e.next.bind(e,this.snapshot))();break;case VA.SUCCESS:e.complete&&GA(e.complete.bind(e))();break;default:e.error&&GA(e.error.bind(e,this._error))()}}},{key:"resume",value:function(){var e="paused"===this._state||"pausing"===this._state;return e&&this._transition("running"),e}},{key:"pause",value:function(){var e="running"===this._state;return e&&this._transition("pausing"),e}},{key:"cancel",value:function(){var e="running"===this._state||"pausing"===this._state;return e&&this._transition("canceling"),e}}]),e}(),YA=function(){function e(t,n){oe(this,e),this._service=t,this._location=n instanceof Zy?n:Zy.makeFromUrl(n,t.host)}return ue(e,[{key:"toString",value:function(){return"gs://"+this._location.bucket+"/"+this._location.path}},{key:"_newRef",value:function(t,n){return new e(t,n)}},{key:"root",get:function(){var e=new Zy(this._location.bucket,"");return this._newRef(this._service,e)}},{key:"bucket",get:function(){return this._location.bucket}},{key:"fullPath",get:function(){return this._location.path}},{key:"name",get:function(){return yA(this._location.path)}},{key:"storage",get:function(){return this._service}},{key:"parent",get:function(){var t=function(e){if(0===e.length)return null;var t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}(this._location.path);if(null===t)return null;var n=new Zy(this._location.bucket,t);return new e(this._service,n)}},{key:"_throwIfRoot",value:function(e){if(""===this._location.path)throw Wy(e)}}]),e}();function XA(e,t,n){return ZA.apply(this,arguments)}function ZA(){return(ZA=ee(ie().mark((function e(t,n,r){var i,a,o,s;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={pageToken:r},e.next=3,$A(t,o);case 3:if(s=e.sent,(i=n.prefixes).push.apply(i,ne(s.prefixes)),(a=n.items).push.apply(a,ne(s.items)),null==s.nextPageToken){e.next=9;break}return e.next=9,XA(t,n,s.nextPageToken);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $A(e,t){null!=t&&"number"===typeof t.maxResults&&rA("options.maxResults",1,1e3,t.maxResults);var n=t||{},r=PA(e.storage,e._location,"/",n.pageToken,n.maxResults);return e.storage.makeRequestWithTokens(r,WA)}function ek(e,t){e._throwIfRoot("updateMetadata");var n=function(e,t,n,r){var i=iA(t.fullServerUrl(),e.host,e._protocol),a=EA(n,r),o=e.maxOperationRetryTime,s=new TA(i,"PATCH",_A(e,r),o);return s.headers={"Content-Type":"application/json; charset=utf-8"},s.body=a,s.errorHandler=OA(t),s}(e.storage,e._location,t,wA());return e.storage.makeRequestWithTokens(n,WA)}function tk(e){e._throwIfRoot("getDownloadURL");var t=function(e,t,n){var r=iA(t.fullServerUrl(),e.host,e._protocol),i=e.maxOperationRetryTime,a=new TA(r,"GET",NA(e,n),i);return a.errorHandler=OA(t),a}(e.storage,e._location,wA());return e.storage.makeRequestWithTokens(t,WA).then((function(e){if(null===e)throw new Qy("no-download-url","The given file does not have any download URLs.");return e}))}function nk(e){e._throwIfRoot("deleteObject");var t=function(e,t){var n=iA(t.fullServerUrl(),e.host,e._protocol),r=e.maxOperationRetryTime,i=new TA(n,"DELETE",(function(e,t){}),r);return i.successCodes=[200,204],i.errorHandler=OA(t),i}(e.storage,e._location);return e.storage.makeRequestWithTokens(t,WA)}function rk(e,t){var n=function(e,t){var n=t.split("/").filter((function(e){return e.length>0})).join("/");return 0===e.length?n:e+"/"+n}(e._location.path,t),r=new Zy(e._location.bucket,n);return new YA(e.storage,r)}function ik(e,t){if(e instanceof uk){var n=e;if(null==n._bucket)throw new Qy("no-default-bucket","No default bucket found. Did you set the 'storageBucket' property when initializing the app?");var r=new YA(n,n._bucket);return null!=t?ik(r,t):r}return void 0!==t?rk(e,t):e}function ak(e,t){if(t&&/^[A-Za-z]+:\/\//.test(t)){if(e instanceof uk)return new YA(e,t);throw Hy("To use ref(service, url), the first argument must be a Storage instance.")}return ik(e,t)}function ok(e,t){var n=null===t||void 0===t?void 0:t.storageBucket;return null==n?null:Zy.makeFromBucketSpec(n,e)}function sk(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e.host="".concat(t,":").concat(n),e._protocol="http";var i=r.mockUserToken;i&&(e._overrideAuthToken="string"===typeof i?i:Se(i,e.app.options.projectId))}var uk=function(){function e(t,n,r,i,a){oe(this,e),this.app=t,this._authProvider=n,this._appCheckProvider=r,this._url=i,this._firebaseVersion=a,this._bucket=null,this._host=Fy,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=i?Zy.makeFromBucketSpec(i,this._host):ok(this._host,this.app.options)}return ue(e,[{key:"host",get:function(){return this._host},set:function(e){this._host=e,null!=this._url?this._bucket=Zy.makeFromBucketSpec(this._url,e):this._bucket=ok(e,this.app.options)}},{key:"maxUploadRetryTime",get:function(){return this._maxUploadRetryTime},set:function(e){rA("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e}},{key:"maxOperationRetryTime",get:function(){return this._maxOperationRetryTime},set:function(e){rA("time",0,Number.POSITIVE_INFINITY,e),this._maxOperationRetryTime=e}},{key:"_getAuthToken",value:function(){var e=ee(ie().mark((function e(){var t,n;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._overrideAuthToken){e.next=2;break}return e.abrupt("return",this._overrideAuthToken);case 2:if(!(t=this._authProvider.getImmediate({optional:!0}))){e.next=9;break}return e.next=6,t.getToken();case 6:if(null===(n=e.sent)){e.next=9;break}return e.abrupt("return",n.accessToken);case 9:return e.abrupt("return",null);case 10:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_getAppCheckToken",value:function(){var e=ee(ie().mark((function e(){var t,n;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=this._appCheckProvider.getImmediate({optional:!0}))){e.next=6;break}return e.next=4,t.getToken();case 4:return n=e.sent,e.abrupt("return",n.token);case 6:return e.abrupt("return",null);case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_delete",value:function(){return this._deleted||(this._deleted=!0,this._requests.forEach((function(e){return e.cancel()})),this._requests.clear()),Promise.resolve()}},{key:"_makeStorageReference",value:function(e){return new YA(this,e)}},{key:"_makeRequest",value:function(e,t,n,r){var i=this;if(this._deleted)return new $y(Ky());var a=function(e,t,n,r,i,a){var o=aA(e.urlParams),s=e.url+o,u=Object.assign({},e.headers);return function(e,t){t&&(e["X-Firebase-GMPID"]=t)}(u,t),function(e,t){null!==t&&t.length>0&&(e.Authorization="Firebase "+t)}(u,n),function(e,t){e["X-Firebase-Storage-Version"]="webjs/"+(null!==t&&void 0!==t?t:"AppManager")}(u,a),function(e,t){null!==t&&(e["X-Firebase-AppCheck"]=t)}(u,r),new oA(s,e.method,u,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,i)}(e,this._appId,n,r,t,this._firebaseVersion);return this._requests.add(a),a.getPromise().then((function(){return i._requests.delete(a)}),(function(){return i._requests.delete(a)})),a}},{key:"makeRequestWithTokens",value:function(){var e=ee(ie().mark((function e(t,n){var r,i,a,o;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([this._getAuthToken(),this._getAppCheckToken()]);case 2:return r=e.sent,i=s(r,2),a=i[0],o=i[1],e.abrupt("return",this._makeRequest(t,n,a,o).getPromise());case 7:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),e}(),ck="@firebase/storage",lk="0.9.4",fk="storage";function hk(e,t,n){return function(e,t,n){return e._throwIfRoot("uploadBytesResumable"),new JA(e,new mA(t),n)}(e=Ke(e),t,n)}function dk(e){return function(e){e._throwIfRoot("getMetadata");var t=RA(e.storage,e._location,wA());return e.storage.makeRequestWithTokens(t,WA)}(e=Ke(e))}function pk(e){return function(e){var t={prefixes:[],items:[]};return XA(e,t).then((function(){return t}))}(e=Ke(e))}function vk(e,t){return ak(e=Ke(e),t)}function mk(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};sk(e,t,n,r)}function gk(e,t){var n=t.instanceIdentifier,r=e.getProvider("app").getImmediate(),i=e.getProvider("auth-internal"),a=e.getProvider("app-check-internal");return new uk(r,i,a,n,Nt)}xt(new $e(fk,gk,"PUBLIC").setMultipleInstances(!0)),Bt(ck,lk,""),Bt(ck,lk,"esm2017");var yk=function(){function e(t,n,r){oe(this,e),this._delegate=t,this.task=n,this.ref=r}return ue(e,[{key:"bytesTransferred",get:function(){return this._delegate.bytesTransferred}},{key:"metadata",get:function(){return this._delegate.metadata}},{key:"state",get:function(){return this._delegate.state}},{key:"totalBytes",get:function(){return this._delegate.totalBytes}}]),e}(),Ak=function(){function e(t,n){oe(this,e),this._delegate=t,this._ref=n,this.cancel=this._delegate.cancel.bind(this._delegate),this.catch=this._delegate.catch.bind(this._delegate),this.pause=this._delegate.pause.bind(this._delegate),this.resume=this._delegate.resume.bind(this._delegate)}return ue(e,[{key:"snapshot",get:function(){return new yk(this._delegate.snapshot,this,this._ref)}},{key:"then",value:function(e,t){var n=this;return this._delegate.then((function(t){if(e)return e(new yk(t,n,n._ref))}),t)}},{key:"on",value:function(e,t,n,r){var i=this,a=void 0;return t&&(a="function"===typeof t?function(e){return t(new yk(e,i,i._ref))}:{next:t.next?function(e){return t.next(new yk(e,i,i._ref))}:void 0,complete:t.complete||void 0,error:t.error||void 0}),this._delegate.on(e,a,n||void 0,r||void 0)}}]),e}(),kk=function(){function e(t,n){oe(this,e),this._delegate=t,this._service=n}return ue(e,[{key:"prefixes",get:function(){var e=this;return this._delegate.prefixes.map((function(t){return new bk(t,e._service)}))}},{key:"items",get:function(){var e=this;return this._delegate.items.map((function(t){return new bk(t,e._service)}))}},{key:"nextPageToken",get:function(){return this._delegate.nextPageToken||null}}]),e}(),bk=function(){function e(t,n){oe(this,e),this._delegate=t,this.storage=n}return ue(e,[{key:"name",get:function(){return this._delegate.name}},{key:"bucket",get:function(){return this._delegate.bucket}},{key:"fullPath",get:function(){return this._delegate.fullPath}},{key:"toString",value:function(){return this._delegate.toString()}},{key:"child",value:function(t){var n=function(e,t){return rk(e,t)}(this._delegate,t);return new e(n,this.storage)}},{key:"root",get:function(){return new e(this._delegate.root,this.storage)}},{key:"parent",get:function(){var t=this._delegate.parent;return null==t?null:new e(t,this.storage)}},{key:"put",value:function(e,t){return this._throwIfRoot("put"),new Ak(hk(this._delegate,e,t),this)}},{key:"putString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:lA.RAW,n=arguments.length>2?arguments[2]:void 0;this._throwIfRoot("putString");var r=hA(t,e),i=Object.assign({},n);return null==i.contentType&&null!=r.contentType&&(i.contentType=r.contentType),new Ak(new JA(this._delegate,new mA(r.data,!0),i),this)}},{key:"listAll",value:function(){var e=this;return pk(this._delegate).then((function(t){return new kk(t,e.storage)}))}},{key:"list",value:function(e){var t=this;return function(e,t){return $A(e=Ke(e),t)}(this._delegate,e||void 0).then((function(e){return new kk(e,t.storage)}))}},{key:"getMetadata",value:function(){return dk(this._delegate)}},{key:"updateMetadata",value:function(e){return function(e,t){return ek(e=Ke(e),t)}(this._delegate,e)}},{key:"getDownloadURL",value:function(){return tk(Ke(this._delegate))}},{key:"delete",value:function(){return this._throwIfRoot("delete"),nk(Ke(this._delegate))}},{key:"_throwIfRoot",value:function(e){if(""===this._delegate._location.path)throw Wy(e)}}]),e}(),wk=function(){function e(t,n){oe(this,e),this.app=t,this._delegate=n}return ue(e,[{key:"maxOperationRetryTime",get:function(){return this._delegate.maxOperationRetryTime}},{key:"maxUploadRetryTime",get:function(){return this._delegate.maxUploadRetryTime}},{key:"ref",value:function(e){if(xk(e))throw Hy("ref() expected a child path but got a URL, use refFromURL instead.");return new bk(vk(this._delegate,e),this)}},{key:"refFromURL",value:function(e){if(!xk(e))throw Hy("refFromURL() expected a full URL but got a child path, use ref() instead.");try{Zy.makeFromUrl(e,this._delegate.host)}catch(t){throw Hy("refFromUrl() expected a valid full URL but got an invalid one.")}return new bk(vk(this._delegate,e),this)}},{key:"setMaxUploadRetryTime",value:function(e){this._delegate.maxUploadRetryTime=e}},{key:"setMaxOperationRetryTime",value:function(e){this._delegate.maxOperationRetryTime=e}},{key:"useEmulator",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};mk(this._delegate,e,t,n)}}]),e}();function xk(e){return/^[A-Za-z]+:\/\//.test(e)}function Ik(e,t){var n=t.instanceIdentifier,r=e.getProvider("app-compat").getImmediate(),i=e.getProvider("storage").getImmediate({identifier:n});return new wk(r,i)}!function(e){var t={TaskState:VA,TaskEvent:QA,StringFormat:lA,Storage:wk,Reference:bk};e.INTERNAL.registerComponent(new $e("storage-compat",Ik,"PUBLIC").setServiceProps(t).setMultipleInstances(!0)),e.registerVersion("@firebase/storage-compat","0.1.12")}(sn);function Ek(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}Object.create;var Sk;Object.create;var Tk="facebook.com",Ck="github.com",_k="google.com",Nk="password",Dk="twitter.com",Ok="EMAIL_SIGNIN",Rk="PASSWORD_RESET",Pk="RECOVER_EMAIL",Mk="REVERT_SECOND_FACTOR_ADDITION",Bk="VERIFY_AND_CHANGE_EMAIL",Lk="VERIFY_EMAIL";function jk(){return ae({},"dependent-sdk-initialized-before-auth","Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK.")}var Uk=function(){var e;return ae(e={},"admin-restricted-operation","This operation is restricted to administrators only."),ae(e,"argument-error",""),ae(e,"app-not-authorized","This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console."),ae(e,"app-not-installed","The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device."),ae(e,"captcha-check-failed","The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains."),ae(e,"code-expired","The SMS code has expired. Please re-send the verification code to try again."),ae(e,"cordova-not-ready","Cordova framework is not ready."),ae(e,"cors-unsupported","This browser is not supported."),ae(e,"credential-already-in-use","This credential is already associated with a different user account."),ae(e,"custom-token-mismatch","The custom token corresponds to a different audience."),ae(e,"requires-recent-login","This operation is sensitive and requires recent authentication. Log in again before retrying this request."),ae(e,"dependent-sdk-initialized-before-auth","Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."),ae(e,"dynamic-link-not-activated","Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions."),ae(e,"email-change-needs-verification","Multi-factor users must always have a verified email."),ae(e,"email-already-in-use","The email address is already in use by another account."),ae(e,"emulator-config-failed",'Auth instance has already been used to make a network call. Auth can no longer be configured to use the emulator. Try calling "connectAuthEmulator()" sooner.'),ae(e,"expired-action-code","The action code has expired."),ae(e,"cancelled-popup-request","This operation has been cancelled due to another conflicting popup being opened."),ae(e,"internal-error","An internal AuthError has occurred."),ae(e,"invalid-app-credential","The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired."),ae(e,"invalid-app-id","The mobile app identifier is not registed for the current project."),ae(e,"invalid-user-token","This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key."),ae(e,"invalid-auth-event","An internal AuthError has occurred."),ae(e,"invalid-verification-code","The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure to use the verification code provided by the user."),ae(e,"invalid-continue-uri","The continue URL provided in the request is invalid."),ae(e,"invalid-cordova-configuration","The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme."),ae(e,"invalid-custom-token","The custom token format is incorrect. Please check the documentation."),ae(e,"invalid-dynamic-link-domain","The provided dynamic link domain is not configured or authorized for the current project."),ae(e,"invalid-email","The email address is badly formatted."),ae(e,"invalid-emulator-scheme","Emulator URL must start with a valid scheme (http:// or https://)."),ae(e,"invalid-api-key","Your API key is invalid, please check you have copied it correctly."),ae(e,"invalid-cert-hash","The SHA-1 certificate hash provided is invalid."),ae(e,"invalid-credential","The supplied auth credential is malformed or has expired."),ae(e,"invalid-message-payload","The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console."),ae(e,"invalid-multi-factor-session","The request does not contain a valid proof of first factor successful sign-in."),ae(e,"invalid-oauth-provider","EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers."),ae(e,"invalid-oauth-client-id","The OAuth client ID provided is either invalid or does not match the specified API key."),ae(e,"unauthorized-domain","This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console."),ae(e,"invalid-action-code","The action code is invalid. This can happen if the code is malformed, expired, or has already been used."),ae(e,"wrong-password","The password is invalid or the user does not have a password."),ae(e,"invalid-persistence-type","The specified persistence type is invalid. It can only be local, session or none."),ae(e,"invalid-phone-number","The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code]."),ae(e,"invalid-provider-id","The specified provider ID is invalid."),ae(e,"invalid-recipient-email","The email corresponding to this action failed to send as the provided recipient email address is invalid."),ae(e,"invalid-sender","The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console."),ae(e,"invalid-verification-id","The verification ID used to create the phone auth credential is invalid."),ae(e,"invalid-tenant-id","The Auth instance's tenant ID is invalid."),ae(e,"missing-android-pkg-name","An Android Package Name must be provided if the Android App is required to be installed."),ae(e,"auth-domain-config-required","Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console."),ae(e,"missing-app-credential","The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided."),ae(e,"missing-verification-code","The phone auth credential was created with an empty SMS verification code."),ae(e,"missing-continue-uri","A continue URL must be provided in the request."),ae(e,"missing-iframe-start","An internal AuthError has occurred."),ae(e,"missing-ios-bundle-id","An iOS Bundle ID must be provided if an App Store ID is provided."),ae(e,"missing-or-invalid-nonce","The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload."),ae(e,"missing-multi-factor-info","No second factor identifier is provided."),ae(e,"missing-multi-factor-session","The request is missing proof of first factor successful sign-in."),ae(e,"missing-phone-number","To send verification codes, provide a phone number for the recipient."),ae(e,"missing-verification-id","The phone auth credential was created with an empty verification ID."),ae(e,"app-deleted","This instance of FirebaseApp has been deleted."),ae(e,"multi-factor-info-not-found","The user does not have a second factor matching the identifier provided."),ae(e,"multi-factor-auth-required","Proof of ownership of a second factor is required to complete sign-in."),ae(e,"account-exists-with-different-credential","An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address."),ae(e,"network-request-failed","A network AuthError (such as timeout, interrupted connection or unreachable host) has occurred."),ae(e,"no-auth-event","An internal AuthError has occurred."),ae(e,"no-such-provider","User was not linked to an account with the given provider."),ae(e,"null-user","A null user object was provided as the argument for an operation which requires a non-null user object."),ae(e,"operation-not-allowed","The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section."),ae(e,"operation-not-supported-in-this-environment",'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.'),ae(e,"popup-blocked","Unable to establish a connection with the popup. It may have been blocked by the browser."),ae(e,"popup-closed-by-user","The popup has been closed by the user before finalizing the operation."),ae(e,"provider-already-linked","User can only be linked to one identity for the given provider."),ae(e,"quota-exceeded","The project's quota for this operation has been exceeded."),ae(e,"redirect-cancelled-by-user","The redirect operation has been cancelled by the user before finalizing."),ae(e,"redirect-operation-pending","A redirect sign-in operation is already pending."),ae(e,"rejected-credential","The request contains malformed or mismatching credentials."),ae(e,"second-factor-already-in-use","The second factor is already enrolled on this account."),ae(e,"maximum-second-factor-count-exceeded","The maximum allowed number of second factors on a user has been exceeded."),ae(e,"tenant-id-mismatch","The provided tenant ID does not match the Auth instance's tenant ID"),ae(e,"timeout","The operation has timed out."),ae(e,"user-token-expired","The user's credential is no longer valid. The user must sign in again."),ae(e,"too-many-requests","We have blocked all requests from this device due to unusual activity. Try again later."),ae(e,"unauthorized-continue-uri","The domain of the continue URL is not whitelisted.  Please whitelist the domain in the Firebase console."),ae(e,"unsupported-first-factor","Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor."),ae(e,"unsupported-persistence-type","The current environment does not support the specified persistence type."),ae(e,"unsupported-tenant-operation","This operation is not supported in a multi-tenant context."),ae(e,"unverified-email","The operation requires a verified email."),ae(e,"user-cancelled","The user did not grant your application the permissions it requested."),ae(e,"user-not-found","There is no user record corresponding to this identifier. The user may have been deleted."),ae(e,"user-disabled","The user account has been disabled by an administrator."),ae(e,"user-mismatch","The supplied credentials do not correspond to the previously signed in user."),ae(e,"user-signed-out",""),ae(e,"weak-password","The password must be 6 characters long or more."),ae(e,"web-storage-unsupported","This browser is not supported or 3rd party cookies and data may be disabled."),ae(e,"already-initialized","initializeAuth() has already been called with different options. To avoid this error, call initializeAuth() with the same options as when it was originally called, or call getAuth() to return the already initialized instance."),e},Fk=jk,Qk=new Me("auth","Firebase",jk()),Vk=new ht("@firebase/auth");function zk(e){if(Vk.logLevel<=rt.ERROR){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Vk.error.apply(Vk,["Auth (".concat(Nt,"): ").concat(e)].concat(n))}}function qk(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Wk.apply(void 0,[e].concat(n))}function Gk(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Wk.apply(void 0,[e].concat(n))}function Hk(e,t,n){var r=Object.assign(Object.assign({},Fk()),ae({},t,n));return new Me("auth","Firebase",r).create(t,{appName:e.name})}function Kk(e,t,n){if(!(t instanceof n))throw n.name!==t.constructor.name&&qk(e,"argument-error"),Hk(e,"argument-error","Type of ".concat(t.constructor.name," does not match expected instance.")+"Did you pass a reference from a different Auth SDK?")}function Wk(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if("string"!==typeof e){var i,a=n[0],o=ne(n.slice(1));return o[0]&&(o[0].appName=e.name),(i=e._errorFactory).create.apply(i,[a].concat(ne(o)))}return Qk.create.apply(Qk,[e].concat(n))}function Jk(e,t){if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];throw Wk.apply(void 0,[t].concat(r))}}function Yk(e){var t="INTERNAL ASSERTION FAILED: "+e;throw zk(t),new Error(t)}function Xk(e,t){e||Yk(t)}var Zk=new Map;function $k(e){Xk(e instanceof Function,"Expected a class definition");var t=Zk.get(e);return t?(Xk(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,Zk.set(e,t),t)}function eb(){var e;return"undefined"!==typeof self&&(null===(e=self.location)||void 0===e?void 0:e.href)||""}function tb(){return"http:"===nb()||"https:"===nb()}function nb(){var e;return"undefined"!==typeof self&&(null===(e=self.location)||void 0===e?void 0:e.protocol)||null}var rb=function(){function e(t,n){oe(this,e),this.shortDelay=t,this.longDelay=n,Xk(n>t,"Short delay should be less than long delay!"),this.isMobile=Ce()||De()}return ue(e,[{key:"get",value:function(){return"undefined"!==typeof navigator&&navigator&&"onLine"in navigator&&"boolean"===typeof navigator.onLine&&(tb()||Ne()||"connection"in navigator)&&!navigator.onLine?Math.min(5e3,this.shortDelay):this.isMobile?this.longDelay:this.shortDelay}}]),e}();function ib(e,t){Xk(e.emulator,"Emulator should always be set here");var n=e.emulator.url;return t?"".concat(n).concat(t.startsWith("/")?t.slice(1):t):n}var ab=function(){function e(){oe(this,e)}return ue(e,null,[{key:"initialize",value:function(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}},{key:"fetch",value:function(){return this.fetchImpl?this.fetchImpl:"undefined"!==typeof self&&"fetch"in self?self.fetch:void Yk("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}},{key:"headers",value:function(){return this.headersImpl?this.headersImpl:"undefined"!==typeof self&&"Headers"in self?self.Headers:void Yk("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}},{key:"response",value:function(){return this.responseImpl?this.responseImpl:"undefined"!==typeof self&&"Response"in self?self.Response:void Yk("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}]),e}(),ob=(ae(Sk={},"CREDENTIAL_MISMATCH","custom-token-mismatch"),ae(Sk,"MISSING_CUSTOM_TOKEN","internal-error"),ae(Sk,"INVALID_IDENTIFIER","invalid-email"),ae(Sk,"MISSING_CONTINUE_URI","internal-error"),ae(Sk,"INVALID_PASSWORD","wrong-password"),ae(Sk,"MISSING_PASSWORD","internal-error"),ae(Sk,"EMAIL_EXISTS","email-already-in-use"),ae(Sk,"PASSWORD_LOGIN_DISABLED","operation-not-allowed"),ae(Sk,"INVALID_IDP_RESPONSE","invalid-credential"),ae(Sk,"INVALID_PENDING_TOKEN","invalid-credential"),ae(Sk,"FEDERATED_USER_ID_ALREADY_LINKED","credential-already-in-use"),ae(Sk,"MISSING_REQ_TYPE","internal-error"),ae(Sk,"EMAIL_NOT_FOUND","user-not-found"),ae(Sk,"RESET_PASSWORD_EXCEED_LIMIT","too-many-requests"),ae(Sk,"EXPIRED_OOB_CODE","expired-action-code"),ae(Sk,"INVALID_OOB_CODE","invalid-action-code"),ae(Sk,"MISSING_OOB_CODE","internal-error"),ae(Sk,"CREDENTIAL_TOO_OLD_LOGIN_AGAIN","requires-recent-login"),ae(Sk,"INVALID_ID_TOKEN","invalid-user-token"),ae(Sk,"TOKEN_EXPIRED","user-token-expired"),ae(Sk,"USER_NOT_FOUND","user-token-expired"),ae(Sk,"TOO_MANY_ATTEMPTS_TRY_LATER","too-many-requests"),ae(Sk,"INVALID_CODE","invalid-verification-code"),ae(Sk,"INVALID_SESSION_INFO","invalid-verification-id"),ae(Sk,"INVALID_TEMPORARY_PROOF","invalid-credential"),ae(Sk,"MISSING_SESSION_INFO","missing-verification-id"),ae(Sk,"SESSION_EXPIRED","code-expired"),ae(Sk,"MISSING_ANDROID_PACKAGE_NAME","missing-android-pkg-name"),ae(Sk,"UNAUTHORIZED_DOMAIN","unauthorized-continue-uri"),ae(Sk,"INVALID_OAUTH_CLIENT_ID","invalid-oauth-client-id"),ae(Sk,"ADMIN_ONLY_OPERATION","admin-restricted-operation"),ae(Sk,"INVALID_MFA_PENDING_CREDENTIAL","invalid-multi-factor-session"),ae(Sk,"MFA_ENROLLMENT_NOT_FOUND","multi-factor-info-not-found"),ae(Sk,"MISSING_MFA_ENROLLMENT_ID","missing-multi-factor-info"),ae(Sk,"MISSING_MFA_PENDING_CREDENTIAL","missing-multi-factor-session"),ae(Sk,"SECOND_FACTOR_EXISTS","second-factor-already-in-use"),ae(Sk,"SECOND_FACTOR_LIMIT_EXCEEDED","maximum-second-factor-count-exceeded"),ae(Sk,"BLOCKING_FUNCTION_ERROR_RESPONSE","internal-error"),Sk),sb=new rb(3e4,6e4);function ub(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}function cb(e,t,n,r){return lb.apply(this,arguments)}function lb(){return lb=ee(ie().mark((function e(t,n,r,i){var a,o=arguments;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=o.length>4&&void 0!==o[4]?o[4]:{},e.abrupt("return",fb(t,a,ee(ie().mark((function e(){var a,o,s,u;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={},o={},i&&("GET"===n?o=i:a={body:JSON.stringify(i)}),s=Qe(Object.assign({key:t.config.apiKey},o)).slice(1),e.next=6,t._getAdditionalHeaders();case 6:return(u=e.sent)["Content-Type"]="application/json",t.languageCode&&(u["X-Firebase-Locale"]=t.languageCode),e.abrupt("return",ab.fetch()(vb(t,t.config.apiHost,r,s),Object.assign({method:n,headers:u,referrerPolicy:"no-referrer"},a)));case 10:case"end":return e.stop()}}),e)})))));case 2:case"end":return e.stop()}}),e)}))),lb.apply(this,arguments)}function fb(e,t,n){return hb.apply(this,arguments)}function hb(){return hb=ee(ie().mark((function e(t,n,r){var i,a,o,u,c,l,f,h,d,p;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t._canInitEmulator=!1,i=Object.assign(Object.assign({},ob),n),e.prev=2,a=new mb(t),e.next=6,Promise.race([r(),a.promise]);case 6:return o=e.sent,a.clearNetworkTimeout(),e.next=10,o.json();case 10:if(!("needConfirmation"in(u=e.sent))){e.next=13;break}throw gb(t,"account-exists-with-different-credential",u);case 13:if(!o.ok||"errorMessage"in u){e.next=17;break}return e.abrupt("return",u);case 17:if(c=o.ok?u.errorMessage:u.error.message,l=c.split(" : "),f=s(l,2),h=f[0],d=f[1],"FEDERATED_USER_ID_ALREADY_LINKED"!==h){e.next=23;break}throw gb(t,"credential-already-in-use",u);case 23:if("EMAIL_EXISTS"!==h){e.next=25;break}throw gb(t,"email-already-in-use",u);case 25:if(p=i[h]||h.toLowerCase().replace(/[_\s]+/g,"-"),!d){e.next=30;break}throw Hk(t,p,d);case 30:qk(t,p);case 31:e.next=38;break;case 33:if(e.prev=33,e.t0=e.catch(2),!(e.t0 instanceof Pe)){e.next=37;break}throw e.t0;case 37:qk(t,"network-request-failed");case 38:case"end":return e.stop()}}),e,null,[[2,33]])}))),hb.apply(this,arguments)}function db(e,t,n,r){return pb.apply(this,arguments)}function pb(){return pb=ee(ie().mark((function e(t,n,r,i){var a,o,s=arguments;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=s.length>4&&void 0!==s[4]?s[4]:{},e.next=3,cb(t,n,r,i,a);case 3:return"mfaPendingCredential"in(o=e.sent)&&qk(t,"multi-factor-auth-required",{_serverResponse:o}),e.abrupt("return",o);case 6:case"end":return e.stop()}}),e)}))),pb.apply(this,arguments)}function vb(e,t,n,r){var i="".concat(t).concat(n,"?").concat(r);return e.config.emulator?ib(e.config,i):"".concat(e.config.apiScheme,"://").concat(i)}var mb=function(){function e(t){var n=this;oe(this,e),this.auth=t,this.timer=null,this.promise=new Promise((function(e,t){n.timer=setTimeout((function(){return t(Gk(n.auth,"network-request-failed"))}),sb.get())}))}return ue(e,[{key:"clearNetworkTimeout",value:function(){clearTimeout(this.timer)}}]),e}();function gb(e,t,n){var r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);var i=Gk(e,t,r);return i.customData._tokenResponse=n,i}function yb(e,t){return Ab.apply(this,arguments)}function Ab(){return Ab=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",cb(t,"POST","/v1/accounts:delete",n));case 1:case"end":return e.stop()}}),e)}))),Ab.apply(this,arguments)}function kb(e,t){return bb.apply(this,arguments)}function bb(){return bb=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",cb(t,"POST","/v1/accounts:update",n));case 1:case"end":return e.stop()}}),e)}))),bb.apply(this,arguments)}function wb(e,t){return xb.apply(this,arguments)}function xb(){return xb=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",cb(t,"POST","/v1/accounts:lookup",n));case 1:case"end":return e.stop()}}),e)}))),xb.apply(this,arguments)}function Ib(e){if(e)try{var t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(n){}}function Eb(){return Eb=ee(ie().mark((function e(t){var n,r,i,a,o,s,u=arguments;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=u.length>1&&void 0!==u[1]&&u[1],r=Ke(t),e.next=4,r.getIdToken(n);case 4:return i=e.sent,Jk((a=Tb(i))&&a.exp&&a.auth_time&&a.iat,r.auth,"internal-error"),o="object"===typeof a.firebase?a.firebase:void 0,s=null===o||void 0===o?void 0:o.sign_in_provider,e.abrupt("return",{claims:a,token:i,authTime:Ib(Sb(a.auth_time)),issuedAtTime:Ib(Sb(a.iat)),expirationTime:Ib(Sb(a.exp)),signInProvider:s||null,signInSecondFactor:(null===o||void 0===o?void 0:o.sign_in_second_factor)||null});case 10:case"end":return e.stop()}}),e)}))),Eb.apply(this,arguments)}function Sb(e){return 1e3*Number(e)}function Tb(e){var t=s(e.split("."),3),n=t[0],r=t[1],i=t[2];if(void 0===n||void 0===r||void 0===i)return zk("JWT malformed, contained fewer than 3 sections"),null;try{var a=xe(r);return a?JSON.parse(a):(zk("Failed to decode base64 JWT payload"),null)}catch(o){return zk("Caught error parsing JWT payload as JSON",o),null}}function Cb(e,t){return _b.apply(this,arguments)}function _b(){return _b=ee(ie().mark((function e(t,n){var r=arguments;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r.length>2&&void 0!==r[2]&&r[2])){e.next=3;break}return e.abrupt("return",n);case 3:return e.prev=3,e.next=6,n;case 6:return e.abrupt("return",e.sent);case 9:if(e.prev=9,e.t0=e.catch(3),!(e.t0 instanceof Pe&&Nb(e.t0))){e.next=15;break}if(t.auth.currentUser!==t){e.next=15;break}return e.next=15,t.auth.signOut();case 15:throw e.t0;case 16:case"end":return e.stop()}}),e,null,[[3,9]])}))),_b.apply(this,arguments)}function Nb(e){var t=e.code;return t==="auth/".concat("user-disabled")||t==="auth/".concat("user-token-expired")}var Db=function(){function e(t){oe(this,e),this.user=t,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}return ue(e,[{key:"_start",value:function(){this.isRunning||(this.isRunning=!0,this.schedule())}},{key:"_stop",value:function(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}},{key:"getInterval",value:function(e){var t;if(e){var n=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),n}this.errorBackoff=3e4;var r=(null!==(t=this.user.stsTokenManager.expirationTime)&&void 0!==t?t:0)-Date.now()-3e5;return Math.max(0,r)}},{key:"schedule",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isRunning){var n=this.getInterval(t);this.timerId=setTimeout(ee(ie().mark((function t(){return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.iteration();case 2:case"end":return t.stop()}}),t)}))),n)}}},{key:"iteration",value:function(){var e=ee(ie().mark((function e(){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.user.getIdToken(!0);case 3:e.next=9;break;case 5:return e.prev=5,e.t0=e.catch(0),e.t0.code==="auth/".concat("network-request-failed")&&this.schedule(!0),e.abrupt("return");case 9:this.schedule();case 10:case"end":return e.stop()}}),e,this,[[0,5]])})));return function(){return e.apply(this,arguments)}}()}]),e}(),Ob=function(){function e(t,n){oe(this,e),this.createdAt=t,this.lastLoginAt=n,this._initializeTime()}return ue(e,[{key:"_initializeTime",value:function(){this.lastSignInTime=Ib(this.lastLoginAt),this.creationTime=Ib(this.createdAt)}},{key:"_copy",value:function(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}},{key:"toJSON",value:function(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}]),e}();function Rb(e){return Pb.apply(this,arguments)}function Pb(){return Pb=ee(ie().mark((function e(t){var n,r,i,a,o,s,u,c,l,f,h;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.auth,e.next=3,t.getIdToken();case 3:return i=e.sent,e.next=6,Cb(t,wb(r,{idToken:i}));case 6:Jk(null===(a=e.sent)||void 0===a?void 0:a.users.length,r,"internal-error"),o=a.users[0],t._notifyReloadListener(o),s=(null===(n=o.providerUserInfo)||void 0===n?void 0:n.length)?Lb(o.providerUserInfo):[],u=Bb(t.providerData,s),c=t.isAnonymous,l=!(t.email&&o.passwordHash)&&!(null===u||void 0===u?void 0:u.length),f=!!c&&l,h={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:u,metadata:new Ob(o.createdAt,o.lastLoginAt),isAnonymous:f},Object.assign(t,h);case 17:case"end":return e.stop()}}),e)}))),Pb.apply(this,arguments)}function Mb(){return(Mb=ee(ie().mark((function e(t){var n;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Ke(t),e.next=3,Rb(n);case 3:return e.next=5,n.auth._persistUserIfCurrent(n);case 5:n.auth._notifyListenersIfCurrent(n);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Bb(e,t){var n=e.filter((function(e){return!t.some((function(t){return t.providerId===e.providerId}))}));return[].concat(ne(n),ne(t))}function Lb(e){return e.map((function(e){var t=e.providerId,n=Ek(e,["providerId"]);return{providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}}))}function jb(e,t){return Ub.apply(this,arguments)}function Ub(){return Ub=ee(ie().mark((function e(t,n){var r;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fb(t,{},ee(ie().mark((function e(){var r,i,a,o,s,u;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Qe({grant_type:"refresh_token",refresh_token:n}).slice(1),i=t.config,a=i.tokenApiHost,o=i.apiKey,s=vb(t,a,"/v1/token","key=".concat(o)),e.next=5,t._getAdditionalHeaders();case 5:return(u=e.sent)["Content-Type"]="application/x-www-form-urlencoded",e.abrupt("return",ab.fetch()(s,{method:"POST",headers:u,body:r}));case 8:case"end":return e.stop()}}),e)}))));case 2:return r=e.sent,e.abrupt("return",{accessToken:r.access_token,expiresIn:r.expires_in,refreshToken:r.refresh_token});case 4:case"end":return e.stop()}}),e)}))),Ub.apply(this,arguments)}var Fb=function(){function e(){oe(this,e),this.refreshToken=null,this.accessToken=null,this.expirationTime=null}return ue(e,[{key:"isExpired",get:function(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}},{key:"updateFromServerResponse",value:function(e){Jk(e.idToken,"internal-error"),Jk("undefined"!==typeof e.idToken,"internal-error"),Jk("undefined"!==typeof e.refreshToken,"internal-error");var t="expiresIn"in e&&"undefined"!==typeof e.expiresIn?Number(e.expiresIn):function(e){var t=Tb(e);return Jk(t,"internal-error"),Jk("undefined"!==typeof t.exp,"internal-error"),Jk("undefined"!==typeof t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}},{key:"getToken",value:function(){var e=ee(ie().mark((function e(t){var n,r=arguments;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.length>1&&void 0!==r[1]&&r[1],Jk(!this.accessToken||this.refreshToken,t,"user-token-expired"),n||!this.accessToken||this.isExpired){e.next=4;break}return e.abrupt("return",this.accessToken);case 4:if(!this.refreshToken){e.next=8;break}return e.next=7,this.refresh(t,this.refreshToken);case 7:return e.abrupt("return",this.accessToken);case 8:return e.abrupt("return",null);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"clearRefreshToken",value:function(){this.refreshToken=null}},{key:"refresh",value:function(){var e=ee(ie().mark((function e(t,n){var r,i,a,o;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jb(t,n);case 2:r=e.sent,i=r.accessToken,a=r.refreshToken,o=r.expiresIn,this.updateTokensAndExpiration(i,a,Number(o));case 7:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"updateTokensAndExpiration",value:function(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*n}},{key:"toJSON",value:function(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}},{key:"_assign",value:function(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}},{key:"_clone",value:function(){return Object.assign(new e,this.toJSON())}},{key:"_performRefresh",value:function(){return Yk("not implemented")}}],[{key:"fromJSON",value:function(t,n){var r=n.refreshToken,i=n.accessToken,a=n.expirationTime,o=new e;return r&&(Jk("string"===typeof r,"internal-error",{appName:t}),o.refreshToken=r),i&&(Jk("string"===typeof i,"internal-error",{appName:t}),o.accessToken=i),a&&(Jk("number"===typeof a,"internal-error",{appName:t}),o.expirationTime=a),o}}]),e}();function Qb(e,t){Jk("string"===typeof e||"undefined"===typeof e,"internal-error",{appName:t})}var Vb=function(){function e(t){oe(this,e);var n=t.uid,r=t.auth,i=t.stsTokenManager,a=Ek(t,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Db(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=i,this.accessToken=i.accessToken,this.displayName=a.displayName||null,this.email=a.email||null,this.emailVerified=a.emailVerified||!1,this.phoneNumber=a.phoneNumber||null,this.photoURL=a.photoURL||null,this.isAnonymous=a.isAnonymous||!1,this.tenantId=a.tenantId||null,this.providerData=a.providerData?ne(a.providerData):[],this.metadata=new Ob(a.createdAt||void 0,a.lastLoginAt||void 0)}return ue(e,[{key:"getIdToken",value:function(){var e=ee(ie().mark((function e(t){var n;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Cb(this,this.stsTokenManager.getToken(this.auth,t));case 2:if(Jk(n=e.sent,this.auth,"internal-error"),this.accessToken===n){e.next=9;break}return this.accessToken=n,e.next=8,this.auth._persistUserIfCurrent(this);case 8:this.auth._notifyListenersIfCurrent(this);case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getIdTokenResult",value:function(e){return function(e){return Eb.apply(this,arguments)}(this,e)}},{key:"reload",value:function(){return function(e){return Mb.apply(this,arguments)}(this)}},{key:"_assign",value:function(e){this!==e&&(Jk(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map((function(e){return Object.assign({},e)})),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}},{key:"_clone",value:function(t){return new e(Object.assign(Object.assign({},this),{auth:t,stsTokenManager:this.stsTokenManager._clone()}))}},{key:"_onReload",value:function(e){Jk(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}},{key:"_notifyReloadListener",value:function(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}},{key:"_startProactiveRefresh",value:function(){this.proactiveRefresh._start()}},{key:"_stopProactiveRefresh",value:function(){this.proactiveRefresh._stop()}},{key:"_updateTokensIfNecessary",value:function(){var e=ee(ie().mark((function e(t){var n,r,i=arguments;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.length>1&&void 0!==i[1]&&i[1],r=!1,t.idToken&&t.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(t),r=!0),!n){e.next=6;break}return e.next=6,Rb(this);case 6:return e.next=8,this.auth._persistUserIfCurrent(this);case 8:r&&this.auth._notifyListenersIfCurrent(this);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"delete",value:function(){var e=ee(ie().mark((function e(){var t;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getIdToken();case 2:return t=e.sent,e.next=5,Cb(this,yb(this.auth,{idToken:t}));case 5:return this.stsTokenManager.clearRefreshToken(),e.abrupt("return",this.auth.signOut());case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"toJSON",value:function(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map((function(e){return Object.assign({},e)})),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}},{key:"refreshToken",get:function(){return this.stsTokenManager.refreshToken||""}}],[{key:"_fromJSON",value:function(t,n){var r,i,a,o,s,u,c,l,f=null!==(r=n.displayName)&&void 0!==r?r:void 0,h=null!==(i=n.email)&&void 0!==i?i:void 0,d=null!==(a=n.phoneNumber)&&void 0!==a?a:void 0,p=null!==(o=n.photoURL)&&void 0!==o?o:void 0,v=null!==(s=n.tenantId)&&void 0!==s?s:void 0,m=null!==(u=n._redirectEventId)&&void 0!==u?u:void 0,g=null!==(c=n.createdAt)&&void 0!==c?c:void 0,y=null!==(l=n.lastLoginAt)&&void 0!==l?l:void 0,A=n.uid,k=n.emailVerified,b=n.isAnonymous,w=n.providerData,x=n.stsTokenManager;Jk(A&&x,t,"internal-error");var I=Fb.fromJSON(this.name,x);Jk("string"===typeof A,t,"internal-error"),Qb(f,t.name),Qb(h,t.name),Jk("boolean"===typeof k,t,"internal-error"),Jk("boolean"===typeof b,t,"internal-error"),Qb(d,t.name),Qb(p,t.name),Qb(v,t.name),Qb(m,t.name),Qb(g,t.name),Qb(y,t.name);var E=new e({uid:A,auth:t,email:h,emailVerified:k,displayName:f,isAnonymous:b,photoURL:p,phoneNumber:d,tenantId:v,stsTokenManager:I,createdAt:g,lastLoginAt:y});return w&&Array.isArray(w)&&(E.providerData=w.map((function(e){return Object.assign({},e)}))),m&&(E._redirectEventId=m),E}},{key:"_fromIdTokenResponse",value:function(){var t=ee(ie().mark((function t(n,r){var i,a,o,s=arguments;return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=s.length>2&&void 0!==s[2]&&s[2],(a=new Fb).updateFromServerResponse(r),o=new e({uid:r.localId,auth:n,stsTokenManager:a,isAnonymous:i}),t.next=6,Rb(o);case 6:return t.abrupt("return",o);case 7:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}]),e}(),zb=function(){function e(){oe(this,e),this.type="NONE",this.storage={}}return ue(e,[{key:"_isAvailable",value:function(){var e=ee(ie().mark((function e(){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"_set",value:function(){var e=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.storage[t]=n;case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_get",value:function(){var e=ee(ie().mark((function e(t){var n;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.storage[t],e.abrupt("return",void 0===n?null:n);case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_remove",value:function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:delete this.storage[t];case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_addListener",value:function(e,t){}},{key:"_removeListener",value:function(e,t){}}]),e}();zb.type="NONE";var qb=zb;function Gb(e,t,n){return"firebase".concat(":",e,":").concat(t,":").concat(n)}var Hb=function(){function e(t,n,r){oe(this,e),this.persistence=t,this.auth=n,this.userKey=r;var i=this.auth,a=i.config,o=i.name;this.fullUserKey=Gb(this.userKey,a.apiKey,o),this.fullPersistenceKey=Gb("persistence",a.apiKey,o),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}return ue(e,[{key:"setCurrentUser",value:function(e){return this.persistence._set(this.fullUserKey,e.toJSON())}},{key:"getCurrentUser",value:function(){var e=ee(ie().mark((function e(){var t;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.persistence._get(this.fullUserKey);case 2:return t=e.sent,e.abrupt("return",t?Vb._fromJSON(this.auth,t):null);case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"removeCurrentUser",value:function(){return this.persistence._remove(this.fullUserKey)}},{key:"savePersistenceForRedirect",value:function(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}},{key:"setPersistence",value:function(){var e=ee(ie().mark((function e(t){var n;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.persistence!==t){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.getCurrentUser();case 4:return n=e.sent,e.next=7,this.removeCurrentUser();case 7:if(this.persistence=t,!n){e.next=10;break}return e.abrupt("return",this.setCurrentUser(n));case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"delete",value:function(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}}],[{key:"create",value:function(){var t=ee(ie().mark((function t(n,r){var i,a,o,s,u,c,l,f,h,d,p,v=arguments;return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=v.length>2&&void 0!==v[2]?v[2]:"authUser",r.length){t.next=3;break}return t.abrupt("return",new e($k(qb),n,i));case 3:return t.next=5,Promise.all(r.map(function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._isAvailable();case 2:if(!e.sent){e.next=4;break}return e.abrupt("return",t);case 4:return e.abrupt("return",void 0);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 5:a=t.sent.filter((function(e){return e})),o=a[0]||$k(qb),s=Gb(i,n.config.apiKey,n.name),u=null,c=ce(r),t.prev=10,c.s();case 12:if((l=c.n()).done){t.next=29;break}return f=l.value,t.prev=14,t.next=17,f._get(s);case 17:if(!(h=t.sent)){t.next=23;break}return d=Vb._fromJSON(n,h),f!==o&&(u=d),o=f,t.abrupt("break",29);case 23:t.next=27;break;case 25:t.prev=25,t.t0=t.catch(14);case 27:t.next=12;break;case 29:t.next=34;break;case 31:t.prev=31,t.t1=t.catch(10),c.e(t.t1);case 34:return t.prev=34,c.f(),t.finish(34);case 37:if(p=a.filter((function(e){return e._shouldAllowMigration})),o._shouldAllowMigration&&p.length){t.next=40;break}return t.abrupt("return",new e(o,n,i));case 40:if(o=p[0],!u){t.next=44;break}return t.next=44,o._set(s,u.toJSON());case 44:return t.next=46,Promise.all(r.map(function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t===o){e.next=8;break}return e.prev=1,e.next=4,t._remove(s);case 4:e.next=8;break;case 6:e.prev=6,e.t0=e.catch(1);case 8:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t){return e.apply(this,arguments)}}()));case 46:return t.abrupt("return",new e(o,n,i));case 47:case"end":return t.stop()}}),t,null,[[10,31,34,37],[14,25]])})));return function(e,n){return t.apply(this,arguments)}}()}]),e}();function Kb(e){var t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(Xb(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(Wb(t))return"Firefox";if(t.includes("silk/"))return"Silk";if($b(t))return"Blackberry";if(ew(t))return"Webos";if(Jb(t))return"Safari";if((t.includes("chrome/")||Yb(t))&&!t.includes("edge/"))return"Chrome";if(Zb(t))return"Android";var n=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);return 2===(null===n||void 0===n?void 0:n.length)?n[1]:"Other"}function Wb(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Te();return/firefox\//i.test(e)}function Jb(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Te(),t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function Yb(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Te();return/crios\//i.test(e)}function Xb(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Te();return/iemobile/i.test(e)}function Zb(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Te();return/android/i.test(e)}function $b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Te();return/blackberry/i.test(e)}function ew(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Te();return/webos/i.test(e)}function tw(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Te();return/iphone|ipad|ipod/i.test(e)}function nw(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Te();return tw(t)&&!!(null===(e=window.navigator)||void 0===e?void 0:e.standalone)}function rw(){return Oe()&&10===document.documentMode}function iw(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Te();return tw(e)||Zb(e)||ew(e)||$b(e)||/windows phone/i.test(e)||Xb(e)}function aw(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];switch(e){case"Browser":t=Kb(Te());break;case"Worker":t="".concat(Kb(Te()),"-").concat(e);break;default:t=e}var r=n.length?n.join(","):"FirebaseCore-web";return"".concat(t,"/","JsCore","/").concat(Nt,"/").concat(r)}var ow=function(){function e(t,n,r){oe(this,e),this.app=t,this.heartbeatServiceProvider=n,this.config=r,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new uw(this),this.idTokenSubscription=new uw(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=Qk,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=t.name,this.clientVersion=r.sdkClientVersion}return ue(e,[{key:"_initializeWithPersistence",value:function(e,t){var n=this;return t&&(this._popupRedirectResolver=$k(t)),this._initializationPromise=this.queue(ee(ie().mark((function r(){var i,a;return ie().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!n._deleted){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,Hb.create(n,e);case 4:if(n.persistenceManager=r.sent,!n._deleted){r.next=7;break}return r.abrupt("return");case 7:if(!(null===(i=n._popupRedirectResolver)||void 0===i?void 0:i._shouldInitProactively)){r.next=15;break}return r.prev=8,r.next=11,n._popupRedirectResolver._initialize(n);case 11:r.next=15;break;case 13:r.prev=13,r.t0=r.catch(8);case 15:return r.next=17,n.initializeCurrentUser(t);case 17:if(n.lastNotifiedUid=(null===(a=n.currentUser)||void 0===a?void 0:a.uid)||null,!n._deleted){r.next=20;break}return r.abrupt("return");case 20:n._isInitialized=!0;case 21:case"end":return r.stop()}}),r,null,[[8,13]])})))),this._initializationPromise}},{key:"_onStorageEvent",value:function(){var e=ee(ie().mark((function e(){var t;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._deleted){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.assertedPersistence.getCurrentUser();case 4:if(t=e.sent,this.currentUser||t){e.next=7;break}return e.abrupt("return");case 7:if(!this.currentUser||!t||this.currentUser.uid!==t.uid){e.next=12;break}return this._currentUser._assign(t),e.next=11,this.currentUser.getIdToken();case 11:return e.abrupt("return");case 12:return e.next=14,this._updateCurrentUser(t);case 14:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"initializeCurrentUser",value:function(){var e=ee(ie().mark((function e(t){var n,r,i,a,o;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.assertedPersistence.getCurrentUser();case 2:if(r=e.sent,!t||!this.config.authDomain){e.next=12;break}return e.next=6,this.getOrInitRedirectPersistenceManager();case 6:return i=null===(n=this.redirectUser)||void 0===n?void 0:n._redirectEventId,a=null===r||void 0===r?void 0:r._redirectEventId,e.next=10,this.tryRedirectSignIn(t);case 10:o=e.sent,i&&i!==a||!(null===o||void 0===o?void 0:o.user)||(r=o.user);case 12:if(r){e.next=14;break}return e.abrupt("return",this.directlySetCurrentUser(null));case 14:if(r._redirectEventId){e.next=16;break}return e.abrupt("return",this.reloadAndSetCurrentUserOrClear(r));case 16:return Jk(this._popupRedirectResolver,this,"argument-error"),e.next=19,this.getOrInitRedirectPersistenceManager();case 19:if(!this.redirectUser||this.redirectUser._redirectEventId!==r._redirectEventId){e.next=21;break}return e.abrupt("return",this.directlySetCurrentUser(r));case 21:return e.abrupt("return",this.reloadAndSetCurrentUserOrClear(r));case 22:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"tryRedirectSignIn",value:function(){var e=ee(ie().mark((function e(t){var n;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=null,e.prev=1,e.next=4,this._popupRedirectResolver._completeRedirectFn(this,t,!0);case 4:n=e.sent,e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(1),e.next=11,this._setRedirectUser(null);case 11:return e.abrupt("return",n);case 12:case"end":return e.stop()}}),e,this,[[1,7]])})));return function(t){return e.apply(this,arguments)}}()},{key:"reloadAndSetCurrentUserOrClear",value:function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Rb(t);case 3:e.next=9;break;case 5:if(e.prev=5,e.t0=e.catch(0),e.t0.code==="auth/".concat("network-request-failed")){e.next=9;break}return e.abrupt("return",this.directlySetCurrentUser(null));case 9:return e.abrupt("return",this.directlySetCurrentUser(t));case 10:case"end":return e.stop()}}),e,this,[[0,5]])})));return function(t){return e.apply(this,arguments)}}()},{key:"useDeviceLanguage",value:function(){this.languageCode=function(){if("undefined"===typeof navigator)return null;var e=navigator;return e.languages&&e.languages[0]||e.language||null}()}},{key:"_delete",value:function(){var e=ee(ie().mark((function e(){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._deleted=!0;case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"updateCurrentUser",value:function(){var e=ee(ie().mark((function e(t){var n;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=t?Ke(t):null)&&Jk(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),e.abrupt("return",this._updateCurrentUser(n&&n._clone(this)));case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_updateCurrentUser",value:function(){var e=ee(ie().mark((function e(t){var n=this;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._deleted){e.next=2;break}return e.abrupt("return");case 2:return t&&Jk(this.tenantId===t.tenantId,this,"tenant-id-mismatch"),e.abrupt("return",this.queue(ee(ie().mark((function e(){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.directlySetCurrentUser(t);case 2:n.notifyAuthListeners();case 3:case"end":return e.stop()}}),e)})))));case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"signOut",value:function(){var e=ee(ie().mark((function e(){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.redirectPersistenceManager&&!this._popupRedirectResolver){e.next=3;break}return e.next=3,this._setRedirectUser(null);case 3:return e.abrupt("return",this._updateCurrentUser(null));case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setPersistence",value:function(e){var t=this;return this.queue(ee(ie().mark((function n(){return ie().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.assertedPersistence.setPersistence($k(e));case 2:case"end":return n.stop()}}),n)}))))}},{key:"_getPersistence",value:function(){return this.assertedPersistence.persistence.type}},{key:"_updateErrorMap",value:function(e){this._errorFactory=new Me("auth","Firebase",e())}},{key:"onAuthStateChanged",value:function(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}},{key:"onIdTokenChanged",value:function(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}},{key:"toJSON",value:function(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(e=this._currentUser)||void 0===e?void 0:e.toJSON()}}},{key:"_setRedirectUser",value:function(){var e=ee(ie().mark((function e(t,n){var r;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getOrInitRedirectPersistenceManager(n);case 2:return r=e.sent,e.abrupt("return",null===t?r.removeCurrentUser():r.setCurrentUser(t));case 4:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"getOrInitRedirectPersistenceManager",value:function(){var e=ee(ie().mark((function e(t){var n;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.redirectPersistenceManager){e.next=9;break}return Jk(n=t&&$k(t)||this._popupRedirectResolver,this,"argument-error"),e.next=5,Hb.create(this,[$k(n._redirectPersistence)],"redirectUser");case 5:return this.redirectPersistenceManager=e.sent,e.next=8,this.redirectPersistenceManager.getCurrentUser();case 8:this.redirectUser=e.sent;case 9:return e.abrupt("return",this.redirectPersistenceManager);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_redirectUserForId",value:function(){var e=ee(ie().mark((function e(t){var n,r;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._isInitialized){e.next=3;break}return e.next=3,this.queue(ee(ie().mark((function e(){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))));case 3:if((null===(n=this._currentUser)||void 0===n?void 0:n._redirectEventId)!==t){e.next=5;break}return e.abrupt("return",this._currentUser);case 5:if((null===(r=this.redirectUser)||void 0===r?void 0:r._redirectEventId)!==t){e.next=7;break}return e.abrupt("return",this.redirectUser);case 7:return e.abrupt("return",null);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_persistUserIfCurrent",value:function(){var e=ee(ie().mark((function e(t){var n=this;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t!==this.currentUser){e.next=2;break}return e.abrupt("return",this.queue(ee(ie().mark((function e(){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.directlySetCurrentUser(t));case 1:case"end":return e.stop()}}),e)})))));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_notifyListenersIfCurrent",value:function(e){e===this.currentUser&&this.notifyAuthListeners()}},{key:"_key",value:function(){return"".concat(this.config.authDomain,":").concat(this.config.apiKey,":").concat(this.name)}},{key:"_startProactiveRefresh",value:function(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}},{key:"_stopProactiveRefresh",value:function(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}},{key:"_currentUser",get:function(){return this.currentUser}},{key:"notifyAuthListeners",value:function(){var e,t;if(this._isInitialized){this.idTokenSubscription.next(this.currentUser);var n=null!==(t=null===(e=this.currentUser)||void 0===e?void 0:e.uid)&&void 0!==t?t:null;this.lastNotifiedUid!==n&&(this.lastNotifiedUid=n,this.authStateSubscription.next(this.currentUser))}}},{key:"registerStateListener",value:function(e,t,n,r){var i=this;if(this._deleted)return function(){};var a="function"===typeof t?t:t.next.bind(t),o=this._isInitialized?Promise.resolve():this._initializationPromise;return Jk(o,this,"internal-error"),o.then((function(){return a(i.currentUser)})),"function"===typeof t?e.addObserver(t,n,r):e.addObserver(t)}},{key:"directlySetCurrentUser",value:function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.currentUser&&this.currentUser!==t&&(this._currentUser._stopProactiveRefresh(),t&&this.isProactiveRefreshEnabled&&t._startProactiveRefresh()),this.currentUser=t,!t){e.next=7;break}return e.next=5,this.assertedPersistence.setCurrentUser(t);case 5:e.next=9;break;case 7:return e.next=9,this.assertedPersistence.removeCurrentUser();case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"queue",value:function(e){return this.operations=this.operations.then(e,e),this.operations}},{key:"assertedPersistence",get:function(){return Jk(this.persistenceManager,this,"internal-error"),this.persistenceManager}},{key:"_logFramework",value:function(e){e&&!this.frameworks.includes(e)&&(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=aw(this.config.clientPlatform,this._getFrameworks()))}},{key:"_getFrameworks",value:function(){return this.frameworks}},{key:"_getAdditionalHeaders",value:function(){var e=ee(ie().mark((function e(){var t,n,r;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=ae({},"X-Client-Version",this.clientVersion),this.app.options.appId&&(n["X-Firebase-gmpid"]=this.app.options.appId),e.next=4,null===(t=this.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===t?void 0:t.getHeartbeatsHeader();case 4:return(r=e.sent)&&(n["X-Firebase-Client"]=r),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}();function sw(e){return Ke(e)}var uw=function(){function e(t){var n=this;oe(this,e),this.auth=t,this.observer=null,this.addObserver=qe((function(e){return n.observer=e}))}return ue(e,[{key:"next",get:function(){return Jk(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}]),e}();function cw(e,t,n){var r=sw(e);Jk(r._canInitEmulator,r,"emulator-config-failed"),Jk(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");var i=!!(null===n||void 0===n?void 0:n.disableWarnings),a=lw(t),o=function(e){var t=lw(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};var r=n[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){var a=i[1];return{host:a,port:fw(r.substr(a.length+1))}}var o=s(r.split(":"),2);return{host:o[0],port:fw(o[1])}}(t),u=o.host,c=o.port,l=null===c?"":":".concat(c);r.config.emulator={url:"".concat(a,"//").concat(u).concat(l,"/")},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:u,port:c,protocol:a.replace(":",""),options:Object.freeze({disableWarnings:i})}),i||function(){function e(){var e=document.createElement("p"),t=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",t.position="fixed",t.width="100%",t.backgroundColor="#ffffff",t.border=".1em solid #000000",t.color="#b50000",t.bottom="0px",t.left="0px",t.margin="0px",t.zIndex="10000",t.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}"undefined"!==typeof console&&"function"===typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials.");"undefined"!==typeof window&&"undefined"!==typeof document&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e())}()}function lw(e){var t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function fw(e){if(!e)return null;var t=Number(e);return isNaN(t)?null:t}var hw=function(){function e(t,n){oe(this,e),this.providerId=t,this.signInMethod=n}return ue(e,[{key:"toJSON",value:function(){return Yk("not implemented")}},{key:"_getIdTokenResponse",value:function(e){return Yk("not implemented")}},{key:"_linkToIdToken",value:function(e,t){return Yk("not implemented")}},{key:"_getReauthenticationResolver",value:function(e){return Yk("not implemented")}}]),e}();function dw(e,t){return pw.apply(this,arguments)}function pw(){return pw=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",cb(t,"POST","/v1/accounts:resetPassword",ub(t,n)));case 1:case"end":return e.stop()}}),e)}))),pw.apply(this,arguments)}function vw(e,t){return mw.apply(this,arguments)}function mw(){return mw=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",cb(t,"POST","/v1/accounts:update",n));case 1:case"end":return e.stop()}}),e)}))),mw.apply(this,arguments)}function gw(e,t){return yw.apply(this,arguments)}function yw(){return yw=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",cb(t,"POST","/v1/accounts:update",ub(t,n)));case 1:case"end":return e.stop()}}),e)}))),yw.apply(this,arguments)}function Aw(e,t){return kw.apply(this,arguments)}function kw(){return kw=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",db(t,"POST","/v1/accounts:signInWithPassword",ub(t,n)));case 1:case"end":return e.stop()}}),e)}))),kw.apply(this,arguments)}function bw(e,t){return ww.apply(this,arguments)}function ww(){return ww=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",cb(t,"POST","/v1/accounts:sendOobCode",ub(t,n)));case 1:case"end":return e.stop()}}),e)}))),ww.apply(this,arguments)}function xw(e,t){return Iw.apply(this,arguments)}function Iw(){return Iw=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",bw(t,n));case 1:case"end":return e.stop()}}),e)}))),Iw.apply(this,arguments)}function Ew(e,t){return Sw.apply(this,arguments)}function Sw(){return Sw=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",bw(t,n));case 1:case"end":return e.stop()}}),e)}))),Sw.apply(this,arguments)}function Tw(e,t){return Cw.apply(this,arguments)}function Cw(){return Cw=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",bw(t,n));case 1:case"end":return e.stop()}}),e)}))),Cw.apply(this,arguments)}function _w(e,t){return Nw.apply(this,arguments)}function Nw(){return Nw=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",bw(t,n));case 1:case"end":return e.stop()}}),e)}))),Nw.apply(this,arguments)}function Dw(e,t){return Ow.apply(this,arguments)}function Ow(){return Ow=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",db(t,"POST","/v1/accounts:signInWithEmailLink",ub(t,n)));case 1:case"end":return e.stop()}}),e)}))),Ow.apply(this,arguments)}function Rw(e,t){return Pw.apply(this,arguments)}function Pw(){return Pw=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",db(t,"POST","/v1/accounts:signInWithEmailLink",ub(t,n)));case 1:case"end":return e.stop()}}),e)}))),Pw.apply(this,arguments)}var Mw=function(e){he(n,e);var t=ge(n);function n(e,r,i){var a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return oe(this,n),(a=t.call(this,"password",i))._email=e,a._password=r,a._tenantId=o,a}return ue(n,[{key:"toJSON",value:function(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}},{key:"_getIdTokenResponse",value:function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=this.signInMethod,e.next="password"===e.t0?3:"emailLink"===e.t0?4:5;break;case 3:return e.abrupt("return",Aw(t,{returnSecureToken:!0,email:this._email,password:this._password}));case 4:return e.abrupt("return",Dw(t,{email:this._email,oobCode:this._password}));case 5:qk(t,"internal-error");case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_linkToIdToken",value:function(){var e=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=this.signInMethod,e.next="password"===e.t0?3:"emailLink"===e.t0?4:5;break;case 3:return e.abrupt("return",vw(t,{idToken:n,returnSecureToken:!0,email:this._email,password:this._password}));case 4:return e.abrupt("return",Rw(t,{idToken:n,email:this._email,oobCode:this._password}));case 5:qk(t,"internal-error");case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_getReauthenticationResolver",value:function(e){return this._getIdTokenResponse(e)}}],[{key:"_fromEmailAndPassword",value:function(e,t){return new n(e,t,"password")}},{key:"_fromEmailAndCode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new n(e,t,"emailLink",r)}},{key:"fromJSON",value:function(e){var t="string"===typeof e?JSON.parse(e):e;if((null===t||void 0===t?void 0:t.email)&&(null===t||void 0===t?void 0:t.password)){if("password"===t.signInMethod)return this._fromEmailAndPassword(t.email,t.password);if("emailLink"===t.signInMethod)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}}]),n}(hw);function Bw(e,t){return Lw.apply(this,arguments)}function Lw(){return Lw=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",db(t,"POST","/v1/accounts:signInWithIdp",ub(t,n)));case 1:case"end":return e.stop()}}),e)}))),Lw.apply(this,arguments)}var jw=function(e){he(n,e);var t=ge(n);function n(){var e;return oe(this,n),(e=t.apply(this,arguments)).pendingToken=null,e}return ue(n,[{key:"toJSON",value:function(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}},{key:"_getIdTokenResponse",value:function(e){return Bw(e,this.buildRequest())}},{key:"_linkToIdToken",value:function(e,t){var n=this.buildRequest();return n.idToken=t,Bw(e,n)}},{key:"_getReauthenticationResolver",value:function(e){var t=this.buildRequest();return t.autoCreate=!1,Bw(e,t)}},{key:"buildRequest",value:function(){var e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{var t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=Qe(t)}return e}}],[{key:"_fromParams",value:function(e){var t=new n(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):qk("argument-error"),t}},{key:"fromJSON",value:function(e){var t="string"===typeof e?JSON.parse(e):e,r=t.providerId,i=t.signInMethod,a=Ek(t,["providerId","signInMethod"]);if(!r||!i)return null;var o=new n(r,i);return o.idToken=a.idToken||void 0,o.accessToken=a.accessToken||void 0,o.secret=a.secret,o.nonce=a.nonce,o.pendingToken=a.pendingToken||null,o}}]),n}(hw);function Uw(e,t){return Fw.apply(this,arguments)}function Fw(){return Fw=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",cb(t,"POST","/v1/accounts:sendVerificationCode",ub(t,n)));case 1:case"end":return e.stop()}}),e)}))),Fw.apply(this,arguments)}function Qw(){return Qw=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",db(t,"POST","/v1/accounts:signInWithPhoneNumber",ub(t,n)));case 1:case"end":return e.stop()}}),e)}))),Qw.apply(this,arguments)}function Vw(){return Vw=ee(ie().mark((function e(t,n){var r;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,db(t,"POST","/v1/accounts:signInWithPhoneNumber",ub(t,n));case 2:if(!(r=e.sent).temporaryProof){e.next=5;break}throw gb(t,"account-exists-with-different-credential",r);case 5:return e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)}))),Vw.apply(this,arguments)}var zw=ae({},"USER_NOT_FOUND","user-not-found");function qw(){return qw=ee(ie().mark((function e(t,n){var r;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object.assign(Object.assign({},n),{operation:"REAUTH"}),e.abrupt("return",db(t,"POST","/v1/accounts:signInWithPhoneNumber",ub(t,r),zw));case 2:case"end":return e.stop()}}),e)}))),qw.apply(this,arguments)}var Gw=function(e){he(n,e);var t=ge(n);function n(e){var r;return oe(this,n),(r=t.call(this,"phone","phone")).params=e,r}return ue(n,[{key:"_getIdTokenResponse",value:function(e){return function(e,t){return Qw.apply(this,arguments)}(e,this._makeVerificationRequest())}},{key:"_linkToIdToken",value:function(e,t){return function(e,t){return Vw.apply(this,arguments)}(e,Object.assign({idToken:t},this._makeVerificationRequest()))}},{key:"_getReauthenticationResolver",value:function(e){return function(e,t){return qw.apply(this,arguments)}(e,this._makeVerificationRequest())}},{key:"_makeVerificationRequest",value:function(){var e=this.params,t=e.temporaryProof,n=e.phoneNumber,r=e.verificationId,i=e.verificationCode;return t&&n?{temporaryProof:t,phoneNumber:n}:{sessionInfo:r,code:i}}},{key:"toJSON",value:function(){var e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}}],[{key:"_fromVerification",value:function(e,t){return new n({verificationId:e,verificationCode:t})}},{key:"_fromTokenResponse",value:function(e,t){return new n({phoneNumber:e,temporaryProof:t})}},{key:"fromJSON",value:function(e){"string"===typeof e&&(e=JSON.parse(e));var t=e,r=t.verificationId,i=t.verificationCode,a=t.phoneNumber,o=t.temporaryProof;return i||r||a||o?new n({verificationId:r,verificationCode:i,phoneNumber:a,temporaryProof:o}):null}}]),n}(hw);var Hw=function(){function e(t){var n,r,i,a,o,s;oe(this,e);var u=Ve(ze(t)),c=null!==(n=u.apiKey)&&void 0!==n?n:null,l=null!==(r=u.oobCode)&&void 0!==r?r:null,f=function(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(i=u.mode)&&void 0!==i?i:null);Jk(c&&l&&f,"argument-error"),this.apiKey=c,this.operation=f,this.code=l,this.continueUrl=null!==(a=u.continueUrl)&&void 0!==a?a:null,this.languageCode=null!==(o=u.languageCode)&&void 0!==o?o:null,this.tenantId=null!==(s=u.tenantId)&&void 0!==s?s:null}return ue(e,null,[{key:"parseLink",value:function(t){var n=function(e){var t=Ve(ze(e)).link,n=t?Ve(ze(t)).deep_link_id:null,r=Ve(ze(e)).deep_link_id;return(r?Ve(ze(r)).link:null)||r||n||t||e}(t);try{return new e(n)}catch(Cv){return null}}}]),e}();var Kw=function(){function e(){oe(this,e),this.providerId=e.PROVIDER_ID}return ue(e,null,[{key:"credential",value:function(e,t){return Mw._fromEmailAndPassword(e,t)}},{key:"credentialWithLink",value:function(e,t){var n=Hw.parseLink(t);return Jk(n,"argument-error"),Mw._fromEmailAndCode(e,n.code,n.tenantId)}}]),e}();Kw.PROVIDER_ID="password",Kw.EMAIL_PASSWORD_SIGN_IN_METHOD="password",Kw.EMAIL_LINK_SIGN_IN_METHOD="emailLink";var Ww=function(){function e(t){oe(this,e),this.providerId=t,this.defaultLanguageCode=null,this.customParameters={}}return ue(e,[{key:"setDefaultLanguage",value:function(e){this.defaultLanguageCode=e}},{key:"setCustomParameters",value:function(e){return this.customParameters=e,this}},{key:"getCustomParameters",value:function(){return this.customParameters}}]),e}(),Jw=function(e){he(n,e);var t=ge(n);function n(){var e;return oe(this,n),(e=t.apply(this,arguments)).scopes=[],e}return ue(n,[{key:"addScope",value:function(e){return this.scopes.includes(e)||this.scopes.push(e),this}},{key:"getScopes",value:function(){return ne(this.scopes)}}]),n}(Ww),Yw=function(e){he(n,e);var t=ge(n);function n(){return oe(this,n),t.apply(this,arguments)}return ue(n,[{key:"credential",value:function(e){return this._credential(Object.assign(Object.assign({},e),{nonce:e.rawNonce}))}},{key:"_credential",value:function(e){return Jk(e.idToken||e.accessToken,"argument-error"),jw._fromParams(Object.assign(Object.assign({},e),{providerId:this.providerId,signInMethod:this.providerId}))}}],[{key:"credentialFromJSON",value:function(e){var t="string"===typeof e?JSON.parse(e):e;return Jk("providerId"in t&&"signInMethod"in t,"argument-error"),jw._fromParams(t)}},{key:"credentialFromResult",value:function(e){return n.oauthCredentialFromTaggedObject(e)}},{key:"credentialFromError",value:function(e){return n.oauthCredentialFromTaggedObject(e.customData||{})}},{key:"oauthCredentialFromTaggedObject",value:function(e){var t=e._tokenResponse;if(!t)return null;var r=t.oauthIdToken,i=t.oauthAccessToken,a=t.oauthTokenSecret,o=t.pendingToken,s=t.nonce,u=t.providerId;if(!i&&!a&&!r&&!o)return null;if(!u)return null;try{return new n(u)._credential({idToken:r,accessToken:i,nonce:s,pendingToken:o})}catch(c){return null}}}]),n}(Jw),Xw=function(e){he(n,e);var t=ge(n);function n(){return oe(this,n),t.call(this,"facebook.com")}return ue(n,null,[{key:"credential",value:function(e){return jw._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}},{key:"credentialFromResult",value:function(e){return n.credentialFromTaggedObject(e)}},{key:"credentialFromError",value:function(e){return n.credentialFromTaggedObject(e.customData||{})}},{key:"credentialFromTaggedObject",value:function(e){var t=e._tokenResponse;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return n.credential(t.oauthAccessToken)}catch(Cv){return null}}}]),n}(Jw);Xw.FACEBOOK_SIGN_IN_METHOD="facebook.com",Xw.PROVIDER_ID="facebook.com";var Zw=function(e){he(n,e);var t=ge(n);function n(){var e;return oe(this,n),(e=t.call(this,"google.com")).addScope("profile"),e}return ue(n,null,[{key:"credential",value:function(e,t){return jw._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}},{key:"credentialFromResult",value:function(e){return n.credentialFromTaggedObject(e)}},{key:"credentialFromError",value:function(e){return n.credentialFromTaggedObject(e.customData||{})}},{key:"credentialFromTaggedObject",value:function(e){var t=e._tokenResponse;if(!t)return null;var r=t.oauthIdToken,i=t.oauthAccessToken;if(!r&&!i)return null;try{return n.credential(r,i)}catch(Cv){return null}}}]),n}(Jw);Zw.GOOGLE_SIGN_IN_METHOD="google.com",Zw.PROVIDER_ID="google.com";var $w=function(e){he(n,e);var t=ge(n);function n(){return oe(this,n),t.call(this,"github.com")}return ue(n,null,[{key:"credential",value:function(e){return jw._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.GITHUB_SIGN_IN_METHOD,accessToken:e})}},{key:"credentialFromResult",value:function(e){return n.credentialFromTaggedObject(e)}},{key:"credentialFromError",value:function(e){return n.credentialFromTaggedObject(e.customData||{})}},{key:"credentialFromTaggedObject",value:function(e){var t=e._tokenResponse;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return n.credential(t.oauthAccessToken)}catch(Cv){return null}}}]),n}(Jw);$w.GITHUB_SIGN_IN_METHOD="github.com",$w.PROVIDER_ID="github.com";var ex=function(e){he(n,e);var t=ge(n);function n(e,r){var i;return oe(this,n),(i=t.call(this,e,e)).pendingToken=r,i}return ue(n,[{key:"_getIdTokenResponse",value:function(e){return Bw(e,this.buildRequest())}},{key:"_linkToIdToken",value:function(e,t){var n=this.buildRequest();return n.idToken=t,Bw(e,n)}},{key:"_getReauthenticationResolver",value:function(e){var t=this.buildRequest();return t.autoCreate=!1,Bw(e,t)}},{key:"toJSON",value:function(){return{signInMethod:this.signInMethod,providerId:this.providerId,pendingToken:this.pendingToken}}},{key:"buildRequest",value:function(){return{requestUri:"http://localhost",returnSecureToken:!0,pendingToken:this.pendingToken}}}],[{key:"fromJSON",value:function(e){var t="string"===typeof e?JSON.parse(e):e,r=t.providerId,i=t.signInMethod,a=t.pendingToken;return r&&i&&a&&r===i?new n(r,a):null}},{key:"_create",value:function(e,t){return new n(e,t)}}]),n}(hw),tx=function(e){he(n,e);var t=ge(n);function n(e){return oe(this,n),Jk(e.startsWith("saml."),"argument-error"),t.call(this,e)}return ue(n,null,[{key:"credentialFromResult",value:function(e){return n.samlCredentialFromTaggedObject(e)}},{key:"credentialFromError",value:function(e){return n.samlCredentialFromTaggedObject(e.customData||{})}},{key:"credentialFromJSON",value:function(e){var t=ex.fromJSON(e);return Jk(t,"argument-error"),t}},{key:"samlCredentialFromTaggedObject",value:function(e){var t=e._tokenResponse;if(!t)return null;var n=t.pendingToken,r=t.providerId;if(!n||!r)return null;try{return ex._create(r,n)}catch(i){return null}}}]),n}(Ww),nx=function(e){he(n,e);var t=ge(n);function n(){return oe(this,n),t.call(this,"twitter.com")}return ue(n,null,[{key:"credential",value:function(e,t){return jw._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}},{key:"credentialFromResult",value:function(e){return n.credentialFromTaggedObject(e)}},{key:"credentialFromError",value:function(e){return n.credentialFromTaggedObject(e.customData||{})}},{key:"credentialFromTaggedObject",value:function(e){var t=e._tokenResponse;if(!t)return null;var r=t.oauthAccessToken,i=t.oauthTokenSecret;if(!r||!i)return null;try{return n.credential(r,i)}catch(Cv){return null}}}]),n}(Jw);function rx(e,t){return ix.apply(this,arguments)}function ix(){return ix=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",db(t,"POST","/v1/accounts:signUp",ub(t,n)));case 1:case"end":return e.stop()}}),e)}))),ix.apply(this,arguments)}nx.TWITTER_SIGN_IN_METHOD="twitter.com",nx.PROVIDER_ID="twitter.com";var ax=function(){function e(t){oe(this,e),this.user=t.user,this.providerId=t.providerId,this._tokenResponse=t._tokenResponse,this.operationType=t.operationType}return ue(e,null,[{key:"_fromIdTokenResponse",value:function(){var t=ee(ie().mark((function t(n,r,i){var a,o,s,u,c=arguments;return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=c.length>3&&void 0!==c[3]&&c[3],t.next=3,Vb._fromIdTokenResponse(n,i,a);case 3:return o=t.sent,s=ox(i),u=new e({user:o,providerId:s,_tokenResponse:i,operationType:r}),t.abrupt("return",u);case 7:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}()},{key:"_forOperation",value:function(){var t=ee(ie().mark((function t(n,r,i){var a;return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n._updateTokensIfNecessary(i,!0);case 2:return a=ox(i),t.abrupt("return",new e({user:n,providerId:a,_tokenResponse:i,operationType:r}));case 4:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}()}]),e}();function ox(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}function sx(){return sx=ee(ie().mark((function e(t){var n,r,i,a;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=sw(t),e.next=3,r._initializationPromise;case 3:if(!(null===(n=r.currentUser)||void 0===n?void 0:n.isAnonymous)){e.next=5;break}return e.abrupt("return",new ax({user:r.currentUser,providerId:null,operationType:"signIn"}));case 5:return e.next=7,rx(r,{returnSecureToken:!0});case 7:return i=e.sent,e.next=10,ax._fromIdTokenResponse(r,"signIn",i,!0);case 10:return a=e.sent,e.next=13,r._updateCurrentUser(a.user);case 13:return e.abrupt("return",a);case 14:case"end":return e.stop()}}),e)}))),sx.apply(this,arguments)}var ux=function(e){he(n,e);var t=ge(n);function n(e,r,i,a){var o,s;return oe(this,n),(o=t.call(this,r.code,r.message)).operationType=i,o.user=a,Object.setPrototypeOf(le(o),n.prototype),o.customData={appName:e.name,tenantId:null!==(s=e.tenantId)&&void 0!==s?s:void 0,_serverResponse:r.customData._serverResponse,operationType:i},o}return ue(n,null,[{key:"_fromErrorAndOperation",value:function(e,t,r,i){return new n(e,t,r,i)}}]),n}(Pe);function cx(e,t,n,r){return("reauthenticate"===t?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch((function(n){if(n.code==="auth/".concat("multi-factor-auth-required"))throw ux._fromErrorAndOperation(e,n,t,r);throw n}))}function lx(e){return new Set(e.map((function(e){return e.providerId})).filter((function(e){return!!e})))}function fx(e,t){return hx.apply(this,arguments)}function hx(){return hx=ee(ie().mark((function e(t,n){var r,i,a,o;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Ke(t),e.next=3,vx(!0,r,n);case 3:return e.t0=kb,e.t1=r.auth,e.next=7,r.getIdToken();case 7:return e.t2=e.sent,e.t3=[n],e.t4={idToken:e.t2,deleteProvider:e.t3},e.next=12,(0,e.t0)(e.t1,e.t4);case 12:return i=e.sent,a=i.providerUserInfo,o=lx(a||[]),r.providerData=r.providerData.filter((function(e){return o.has(e.providerId)})),o.has("phone")||(r.phoneNumber=null),e.next=19,r.auth._persistUserIfCurrent(r);case 19:return e.abrupt("return",r);case 20:case"end":return e.stop()}}),e)}))),hx.apply(this,arguments)}function dx(e,t){return px.apply(this,arguments)}function px(){return px=ee(ie().mark((function e(t,n){var r,i,a=arguments;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>2&&void 0!==a[2]&&a[2],e.t0=Cb,e.t1=t,e.t2=n,e.t3=t.auth,e.next=7,t.getIdToken();case 7:return e.t4=e.sent,e.t5=e.t2._linkToIdToken.call(e.t2,e.t3,e.t4),e.t6=r,e.next=12,(0,e.t0)(e.t1,e.t5,e.t6);case 12:return i=e.sent,e.abrupt("return",ax._forOperation(t,"link",i));case 14:case"end":return e.stop()}}),e)}))),px.apply(this,arguments)}function vx(e,t,n){return mx.apply(this,arguments)}function mx(){return(mx=ee(ie().mark((function e(t,n,r){var i,a;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Rb(n);case 2:i=lx(n.providerData),a=!1===t?"provider-already-linked":"no-such-provider",Jk(i.has(r)===t,n.auth,a);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function gx(e,t){return yx.apply(this,arguments)}function yx(){return yx=ee(ie().mark((function e(t,n){var r,i,a,o,s,u,c=arguments;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=c.length>2&&void 0!==c[2]&&c[2],i=t.auth,a="reauthenticate",e.prev=3,e.next=6,Cb(t,cx(i,a,n,t),r);case 6:return Jk((o=e.sent).idToken,i,"internal-error"),Jk(s=Tb(o.idToken),i,"internal-error"),u=s.sub,Jk(t.uid===u,i,"user-mismatch"),e.abrupt("return",ax._forOperation(t,a,o));case 15:throw e.prev=15,e.t0=e.catch(3),(null===e.t0||void 0===e.t0?void 0:e.t0.code)==="auth/".concat("user-not-found")&&qk(i,"user-mismatch"),e.t0;case 19:case"end":return e.stop()}}),e,null,[[3,15]])}))),yx.apply(this,arguments)}function Ax(e,t){return kx.apply(this,arguments)}function kx(){return kx=ee(ie().mark((function e(t,n){var r,i,a,o,s=arguments;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=s.length>2&&void 0!==s[2]&&s[2],i="signIn",e.next=4,cx(t,i,n);case 4:return a=e.sent,e.next=7,ax._fromIdTokenResponse(t,i,a);case 7:if(o=e.sent,r){e.next=11;break}return e.next=11,t._updateCurrentUser(o.user);case 11:return e.abrupt("return",o);case 12:case"end":return e.stop()}}),e)}))),kx.apply(this,arguments)}function bx(e,t){return wx.apply(this,arguments)}function wx(){return wx=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Ax(sw(t),n));case 1:case"end":return e.stop()}}),e)}))),wx.apply(this,arguments)}function xx(e,t){return Ix.apply(this,arguments)}function Ix(){return(Ix=ee(ie().mark((function e(t,n){var r;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Ke(t),e.next=3,vx(!1,r,n.providerId);case 3:return e.abrupt("return",dx(r,n));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ex(e,t){return Sx.apply(this,arguments)}function Sx(){return(Sx=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",gx(Ke(t),n));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Tx(e,t){return Cx.apply(this,arguments)}function Cx(){return Cx=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",db(t,"POST","/v1/accounts:signInWithCustomToken",ub(t,n)));case 1:case"end":return e.stop()}}),e)}))),Cx.apply(this,arguments)}function _x(){return _x=ee(ie().mark((function e(t,n){var r,i,a;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=sw(t),e.next=3,Tx(r,{token:n,returnSecureToken:!0});case 3:return i=e.sent,e.next=6,ax._fromIdTokenResponse(r,"signIn",i);case 6:return a=e.sent,e.next=9,r._updateCurrentUser(a.user);case 9:return e.abrupt("return",a);case 10:case"end":return e.stop()}}),e)}))),_x.apply(this,arguments)}var Nx=function(){function e(t,n){oe(this,e),this.factorId=t,this.uid=n.mfaEnrollmentId,this.enrollmentTime=new Date(n.enrolledAt).toUTCString(),this.displayName=n.displayName}return ue(e,null,[{key:"_fromServerResponse",value:function(e,t){return"phoneInfo"in t?Dx._fromServerResponse(e,t):qk(e,"internal-error")}}]),e}(),Dx=function(e){he(n,e);var t=ge(n);function n(e){var r;return oe(this,n),(r=t.call(this,"phone",e)).phoneNumber=e.phoneInfo,r}return ue(n,null,[{key:"_fromServerResponse",value:function(e,t){return new n(t)}}]),n}(Nx);function Ox(e,t,n){var r;Jk((null===(r=n.url)||void 0===r?void 0:r.length)>0,e,"invalid-continue-uri"),Jk("undefined"===typeof n.dynamicLinkDomain||n.dynamicLinkDomain.length>0,e,"invalid-dynamic-link-domain"),t.continueUrl=n.url,t.dynamicLinkDomain=n.dynamicLinkDomain,t.canHandleCodeInApp=n.handleCodeInApp,n.iOS&&(Jk(n.iOS.bundleId.length>0,e,"missing-ios-bundle-id"),t.iOSBundleId=n.iOS.bundleId),n.android&&(Jk(n.android.packageName.length>0,e,"missing-android-pkg-name"),t.androidInstallApp=n.android.installApp,t.androidMinimumVersionCode=n.android.minimumVersion,t.androidPackageName=n.android.packageName)}function Rx(){return Rx=ee(ie().mark((function e(t,n,r){var i,a;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=Ke(t),a={requestType:"PASSWORD_RESET",email:n},r&&Ox(i,a,r),e.next=5,Ew(i,a);case 5:case"end":return e.stop()}}),e)}))),Rx.apply(this,arguments)}function Px(){return Px=ee(ie().mark((function e(t,n,r){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,dw(Ke(t),{oobCode:n,newPassword:r});case 2:case"end":return e.stop()}}),e)}))),Px.apply(this,arguments)}function Mx(){return Mx=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,gw(Ke(t),{oobCode:n});case 2:case"end":return e.stop()}}),e)}))),Mx.apply(this,arguments)}function Bx(e,t){return Lx.apply(this,arguments)}function Lx(){return Lx=ee(ie().mark((function e(t,n){var r,i,a,o;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Ke(t),e.next=3,dw(r,{oobCode:n});case 3:i=e.sent,Jk(a=i.requestType,r,"internal-error"),e.t0=a,e.next="EMAIL_SIGNIN"===e.t0?9:"VERIFY_AND_CHANGE_EMAIL"===e.t0?10:"REVERT_SECOND_FACTOR_ADDITION"===e.t0?12:13;break;case 9:return e.abrupt("break",14);case 10:return Jk(i.newEmail,r,"internal-error"),e.abrupt("break",14);case 12:Jk(i.mfaInfo,r,"internal-error");case 13:Jk(i.email,r,"internal-error");case 14:return o=null,i.mfaInfo&&(o=Nx._fromServerResponse(sw(r),i.mfaInfo)),e.abrupt("return",{data:{email:("VERIFY_AND_CHANGE_EMAIL"===i.requestType?i.newEmail:i.email)||null,previousEmail:("VERIFY_AND_CHANGE_EMAIL"===i.requestType?i.email:i.newEmail)||null,multiFactorInfo:o},operation:a});case 17:case"end":return e.stop()}}),e)}))),Lx.apply(this,arguments)}function jx(){return jx=ee(ie().mark((function e(t,n){var r,i;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Bx(Ke(t),n);case 2:return r=e.sent,i=r.data,e.abrupt("return",i.email);case 5:case"end":return e.stop()}}),e)}))),jx.apply(this,arguments)}function Ux(e,t,n){return Fx.apply(this,arguments)}function Fx(){return Fx=ee(ie().mark((function e(t,n,r){var i,a,o;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=sw(t),e.next=3,rx(i,{returnSecureToken:!0,email:n,password:r});case 3:return a=e.sent,e.next=6,ax._fromIdTokenResponse(i,"signIn",a);case 6:return o=e.sent,e.next=9,i._updateCurrentUser(o.user);case 9:return e.abrupt("return",o);case 10:case"end":return e.stop()}}),e)}))),Fx.apply(this,arguments)}function Qx(){return Qx=ee(ie().mark((function e(t,n,r){var i,a;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=Ke(t),a={requestType:"EMAIL_SIGNIN",email:n},Jk(r.handleCodeInApp,i,"argument-error"),r&&Ox(i,a,r),e.next=6,Tw(i,a);case 6:case"end":return e.stop()}}),e)}))),Qx.apply(this,arguments)}function Vx(){return Vx=ee(ie().mark((function e(t,n,r){var i,a;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=Ke(t),Jk((a=Kw.credentialWithLink(n,r||eb()))._tenantId===(i.tenantId||null),i,"tenant-id-mismatch"),e.abrupt("return",bx(i,a));case 4:case"end":return e.stop()}}),e)}))),Vx.apply(this,arguments)}function zx(e,t){return qx.apply(this,arguments)}function qx(){return qx=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",cb(t,"POST","/v1/accounts:createAuthUri",ub(t,n)));case 1:case"end":return e.stop()}}),e)}))),qx.apply(this,arguments)}function Gx(){return Gx=ee(ie().mark((function e(t,n){var r,i,a,o;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=tb()?eb():"http://localhost",i={identifier:n,continueUri:r},e.next=4,zx(Ke(t),i);case 4:return a=e.sent,o=a.signinMethods,e.abrupt("return",o||[]);case 7:case"end":return e.stop()}}),e)}))),Gx.apply(this,arguments)}function Hx(){return(Hx=ee(ie().mark((function e(t,n){var r,i,a,o;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Ke(t),e.next=3,t.getIdToken();case 3:return i=e.sent,a={requestType:"VERIFY_EMAIL",idToken:i},n&&Ox(r.auth,a,n),e.next=8,xw(r.auth,a);case 8:if(o=e.sent,o.email===t.email){e.next=13;break}return e.next=13,t.reload();case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Kx(){return(Kx=ee(ie().mark((function e(t,n,r){var i,a,o,s;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=Ke(t),e.next=3,t.getIdToken();case 3:return a=e.sent,o={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:a,newEmail:n},r&&Ox(i.auth,o,r),e.next=8,_w(i.auth,o);case 8:if(s=e.sent,s.email===t.email){e.next=13;break}return e.next=13,t.reload();case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Wx(e,t){return Jx.apply(this,arguments)}function Jx(){return Jx=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",cb(t,"POST","/v1/accounts:update",n));case 1:case"end":return e.stop()}}),e)}))),Jx.apply(this,arguments)}function Yx(){return(Yx=ee(ie().mark((function e(t,n){var r,i,a,o,s,u,c;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.displayName,i=n.photoURL,void 0!==r||void 0!==i){e.next=3;break}return e.abrupt("return");case 3:return a=Ke(t),e.next=6,a.getIdToken();case 6:return o=e.sent,s={idToken:o,displayName:r,photoUrl:i,returnSecureToken:!0},e.next=10,Cb(a,Wx(a.auth,s));case 10:return u=e.sent,a.displayName=u.displayName||null,a.photoURL=u.photoUrl||null,(c=a.providerData.find((function(e){return"password"===e.providerId})))&&(c.displayName=a.displayName,c.photoURL=a.photoURL),e.next=17,a._updateTokensIfNecessary(u);case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Xx(e,t,n){return Zx.apply(this,arguments)}function Zx(){return Zx=ee(ie().mark((function e(t,n,r){var i,a,o,s;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.auth,e.next=3,t.getIdToken();case 3:return a=e.sent,o={idToken:a,returnSecureToken:!0},n&&(o.email=n),r&&(o.password=r),e.next=9,Cb(t,vw(i,o));case 9:return s=e.sent,e.next=12,t._updateTokensIfNecessary(s,!0);case 12:case"end":return e.stop()}}),e)}))),Zx.apply(this,arguments)}var $x=ue((function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};oe(this,e),this.isNewUser=t,this.providerId=n,this.profile=r})),eI=function(e){he(n,e);var t=ge(n);function n(e,r,i,a){var o;return oe(this,n),(o=t.call(this,e,r,i)).username=a,o}return ue(n)}($x),tI=function(e){he(n,e);var t=ge(n);function n(e,r){return oe(this,n),t.call(this,e,"facebook.com",r)}return ue(n)}($x),nI=function(e){he(n,e);var t=ge(n);function n(e,r){return oe(this,n),t.call(this,e,"github.com",r,"string"===typeof(null===r||void 0===r?void 0:r.login)?null===r||void 0===r?void 0:r.login:null)}return ue(n)}(eI),rI=function(e){he(n,e);var t=ge(n);function n(e,r){return oe(this,n),t.call(this,e,"google.com",r)}return ue(n)}($x),iI=function(e){he(n,e);var t=ge(n);function n(e,r,i){return oe(this,n),t.call(this,e,"twitter.com",r,i)}return ue(n)}(eI);function aI(e){var t=e.user,n=e._tokenResponse;return t.isAnonymous&&!n?{providerId:null,isNewUser:!1,profile:null}:function(e){var t,n;if(!e)return null;var r=e.providerId,i=e.rawUserInfo?JSON.parse(e.rawUserInfo):{},a=e.isNewUser||"identitytoolkit#SignupNewUserResponse"===e.kind;if(!r&&(null===e||void 0===e?void 0:e.idToken)){var o=null===(n=null===(t=Tb(e.idToken))||void 0===t?void 0:t.firebase)||void 0===n?void 0:n.sign_in_provider;if(o)return new $x(a,"anonymous"!==o&&"custom"!==o?o:null)}if(!r)return null;switch(r){case"facebook.com":return new tI(a,i);case"github.com":return new nI(a,i);case"google.com":return new rI(a,i);case"twitter.com":return new iI(a,i,e.screenName||null);case"custom":case"anonymous":return new $x(a,null);default:return new $x(a,r,i)}}(n)}var oI=function(){function e(t,n){oe(this,e),this.type=t,this.credential=n}return ue(e,[{key:"toJSON",value:function(){return{multiFactorSession:ae({},"enroll"===this.type?"idToken":"pendingCredential",this.credential)}}}],[{key:"_fromIdtoken",value:function(t){return new e("enroll",t)}},{key:"_fromMfaPendingCredential",value:function(t){return new e("signin",t)}},{key:"fromJSON",value:function(t){var n,r;if(null===t||void 0===t?void 0:t.multiFactorSession){if(null===(n=t.multiFactorSession)||void 0===n?void 0:n.pendingCredential)return e._fromMfaPendingCredential(t.multiFactorSession.pendingCredential);if(null===(r=t.multiFactorSession)||void 0===r?void 0:r.idToken)return e._fromIdtoken(t.multiFactorSession.idToken)}return null}}]),e}(),sI=function(){function e(t,n,r){oe(this,e),this.session=t,this.hints=n,this.signInResolver=r}return ue(e,[{key:"resolveSignIn",value:function(){var e=ee(ie().mark((function e(t){var n;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t,e.abrupt("return",this.signInResolver(n));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}],[{key:"_fromError",value:function(t,n){var r=sw(t),i=n.customData._serverResponse,a=(i.mfaInfo||[]).map((function(e){return Nx._fromServerResponse(r,e)}));Jk(i.mfaPendingCredential,r,"internal-error");var o=oI._fromMfaPendingCredential(i.mfaPendingCredential);return new e(o,a,function(){var e=ee(ie().mark((function e(t){var a,s,u;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._process(r,o);case 2:a=e.sent,delete i.mfaInfo,delete i.mfaPendingCredential,s=Object.assign(Object.assign({},i),{idToken:a.idToken,refreshToken:a.refreshToken}),e.t0=n.operationType,e.next="signIn"===e.t0?9:"reauthenticate"===e.t0?15:17;break;case 9:return e.next=11,ax._fromIdTokenResponse(r,n.operationType,s);case 11:return u=e.sent,e.next=14,r._updateCurrentUser(u.user);case 14:return e.abrupt("return",u);case 15:return Jk(n.user,r,"internal-error"),e.abrupt("return",ax._forOperation(n.user,n.operationType,s));case 17:qk(r,"internal-error");case 18:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}}]),e}();function uI(e,t){return cb(e,"POST","/v2/accounts/mfaEnrollment:start",ub(e,t))}function cI(e,t){return cb(e,"POST","/v2/accounts/mfaEnrollment:withdraw",ub(e,t))}var lI=function(){function e(t){var n=this;oe(this,e),this.user=t,this.enrolledFactors=[],t._onReload((function(e){e.mfaInfo&&(n.enrolledFactors=e.mfaInfo.map((function(e){return Nx._fromServerResponse(t.auth,e)})))}))}return ue(e,[{key:"getSession",value:function(){var e=ee(ie().mark((function e(){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=oI,e.next=3,this.user.getIdToken();case 3:return e.t1=e.sent,e.abrupt("return",e.t0._fromIdtoken.call(e.t0,e.t1));case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"enroll",value:function(){var e=ee(ie().mark((function e(t,n){var r,i,a;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t,e.next=3,this.getSession();case 3:return i=e.sent,e.next=6,Cb(this.user,r._process(this.user.auth,i,n));case 6:return a=e.sent,e.next=9,this.user._updateTokensIfNecessary(a);case 9:return e.abrupt("return",this.user.reload());case 10:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"unenroll",value:function(){var e=ee(ie().mark((function e(t){var n,r,i;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="string"===typeof t?t:t.uid,e.next=3,this.user.getIdToken();case 3:return r=e.sent,e.next=6,Cb(this.user,cI(this.user.auth,{idToken:r,mfaEnrollmentId:n}));case 6:return i=e.sent,this.enrolledFactors=this.enrolledFactors.filter((function(e){return e.uid!==n})),e.next=10,this.user._updateTokensIfNecessary(i);case 10:return e.prev=10,e.next=13,this.user.reload();case 13:e.next=19;break;case 15:if(e.prev=15,e.t0=e.catch(10),e.t0.code==="auth/".concat("user-token-expired")){e.next=19;break}throw e.t0;case 19:case"end":return e.stop()}}),e,this,[[10,15]])})));return function(t){return e.apply(this,arguments)}}()}],[{key:"_fromUser",value:function(t){return new e(t)}}]),e}(),fI=new WeakMap;var hI="__sak",dI=function(){function e(t,n){oe(this,e),this.storageRetriever=t,this.type=n}return ue(e,[{key:"_isAvailable",value:function(){try{return this.storage?(this.storage.setItem(hI,"1"),this.storage.removeItem(hI),Promise.resolve(!0)):Promise.resolve(!1)}catch(Cv){return Promise.resolve(!1)}}},{key:"_set",value:function(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}},{key:"_get",value:function(e){var t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}},{key:"_remove",value:function(e){return this.storage.removeItem(e),Promise.resolve()}},{key:"storage",get:function(){return this.storageRetriever()}}]),e}();var pI=function(e){he(n,e);var t=ge(n);function n(){var e;return oe(this,n),(e=t.call(this,(function(){return window.localStorage}),"LOCAL")).boundEventHandler=function(t,n){return e.onStorageEvent(t,n)},e.listeners={},e.localCache={},e.pollTimer=null,e.safariLocalStorageNotSynced=function(){var e=Te();return Jb(e)||tw(e)}()&&function(){try{return!(!window||window===window.top)}catch(e){return!1}}(),e.fallbackToPolling=iw(),e._shouldAllowMigration=!0,e}return ue(n,[{key:"forAllChangedKeys",value:function(e){for(var t=0,n=Object.keys(this.listeners);t<n.length;t++){var r=n[t],i=this.storage.getItem(r),a=this.localCache[r];i!==a&&e(r,a,i)}}},{key:"onStorageEvent",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.key){var r=e.key;if(n?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){var i=this.storage.getItem(r);if(e.newValue!==i)null!==e.newValue?this.storage.setItem(r,e.newValue):this.storage.removeItem(r);else if(this.localCache[r]===e.newValue&&!n)return}var a=function(){var e=t.storage.getItem(r);(n||t.localCache[r]!==e)&&t.notifyListeners(r,e)},o=this.storage.getItem(r);rw()&&o!==e.newValue&&e.newValue!==e.oldValue?setTimeout(a,10):a()}else this.forAllChangedKeys((function(e,n,r){t.notifyListeners(e,r)}))}},{key:"notifyListeners",value:function(e,t){this.localCache[e]=t;var n=this.listeners[e];if(n)for(var r=0,i=Array.from(n);r<i.length;r++){(0,i[r])(t?JSON.parse(t):t)}}},{key:"startPolling",value:function(){var e=this;this.stopPolling(),this.pollTimer=setInterval((function(){e.forAllChangedKeys((function(t,n,r){e.onStorageEvent(new StorageEvent("storage",{key:t,oldValue:n,newValue:r}),!0)}))}),1e3)}},{key:"stopPolling",value:function(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}},{key:"attachListener",value:function(){window.addEventListener("storage",this.boundEventHandler)}},{key:"detachListener",value:function(){window.removeEventListener("storage",this.boundEventHandler)}},{key:"_addListener",value:function(e,t){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(t)}},{key:"_removeListener",value:function(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}},{key:"_set",value:function(){var e=ee(ie().mark((function e(t,r){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,cn(de(n.prototype),"_set",this).call(this,t,r);case 2:this.localCache[t]=JSON.stringify(r);case 3:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_get",value:function(){var e=ee(ie().mark((function e(t){var r;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,cn(de(n.prototype),"_get",this).call(this,t);case 2:return r=e.sent,this.localCache[t]=JSON.stringify(r),e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_remove",value:function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,cn(de(n.prototype),"_remove",this).call(this,t);case 2:delete this.localCache[t];case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),n}(dI);pI.type="LOCAL";var vI=pI,mI=function(e){he(n,e);var t=ge(n);function n(){return oe(this,n),t.call(this,(function(){return window.sessionStorage}),"SESSION")}return ue(n,[{key:"_addListener",value:function(e,t){}},{key:"_removeListener",value:function(e,t){}}]),n}(dI);mI.type="SESSION";var gI=mI;function yI(e){return Promise.all(e.map(function(){var e=ee(ie().mark((function e(t){var n;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t;case 3:return n=e.sent,e.abrupt("return",{fulfilled:!0,value:n});case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",{fulfilled:!1,reason:e.t0});case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}()))}var AI=function(){function e(t){oe(this,e),this.eventTarget=t,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}return ue(e,[{key:"isListeningto",value:function(e){return this.eventTarget===e}},{key:"handleEvent",value:function(){var e=ee(ie().mark((function e(t){var n,r,i,a,o,s,u,c;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(n=t).data,i=r.eventId,a=r.eventType,o=r.data,null===(s=this.handlersMap[a])||void 0===s?void 0:s.size){e.next=5;break}return e.abrupt("return");case 5:return n.ports[0].postMessage({status:"ack",eventId:i,eventType:a}),u=Array.from(s).map(function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t(n.origin,o));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=9,yI(u);case 9:c=e.sent,n.ports[0].postMessage({status:"done",eventId:i,eventType:a,response:c});case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_subscribe",value:function(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}},{key:"_unsubscribe",value:function(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),t&&0!==this.handlersMap[e].size||delete this.handlersMap[e],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}],[{key:"_getInstance",value:function(t){var n=this.receivers.find((function(e){return e.isListeningto(t)}));if(n)return n;var r=new e(t);return this.receivers.push(r),r}}]),e}();function kI(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n="",r=0;r<t;r++)n+=Math.floor(10*Math.random());return e+n}AI.receivers=[];var bI=function(){function e(t){oe(this,e),this.target=t,this.handlers=new Set}return ue(e,[{key:"removeMessageHandler",value:function(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}},{key:"_send",value:function(){var e=ee(ie().mark((function e(t,n){var r,i,a,o,s=this,u=arguments;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=u.length>2&&void 0!==u[2]?u[2]:50,i="undefined"!==typeof MessageChannel?new MessageChannel:null){e.next=4;break}throw new Error("connection_unavailable");case 4:return e.abrupt("return",new Promise((function(e,u){var c=kI("",20);i.port1.start();var l=setTimeout((function(){u(new Error("unsupported_event"))}),r);o={messageChannel:i,onMessage:function(t){var n=t;if(n.data.eventId===c)switch(n.data.status){case"ack":clearTimeout(l),a=setTimeout((function(){u(new Error("timeout"))}),3e3);break;case"done":clearTimeout(a),e(n.data.response);break;default:clearTimeout(l),clearTimeout(a),u(new Error("invalid_response"))}}},s.handlers.add(o),i.port1.addEventListener("message",o.onMessage),s.target.postMessage({eventType:t,eventId:c,data:n},[i.port2])})).finally((function(){o&&s.removeMessageHandler(o)})));case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}]),e}();function wI(){return window}function xI(){return"undefined"!==typeof wI().WorkerGlobalScope&&"function"===typeof wI().importScripts}function II(){return EI.apply(this,arguments)}function EI(){return(EI=ee(ie().mark((function e(){var t;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===navigator||void 0===navigator?void 0:navigator.serviceWorker){e.next=2;break}return e.abrupt("return",null);case 2:return e.prev=2,e.next=5,navigator.serviceWorker.ready;case 5:return t=e.sent,e.abrupt("return",t.active);case 9:return e.prev=9,e.t0=e.catch(2),e.abrupt("return",null);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})))).apply(this,arguments)}function SI(){var e;return(null===(e=null===navigator||void 0===navigator?void 0:navigator.serviceWorker)||void 0===e?void 0:e.controller)||null}var TI="firebaseLocalStorageDb",CI="firebaseLocalStorage",_I="fbase_key",NI=function(){function e(t){oe(this,e),this.request=t}return ue(e,[{key:"toPromise",value:function(){var e=this;return new Promise((function(t,n){e.request.addEventListener("success",(function(){t(e.request.result)})),e.request.addEventListener("error",(function(){n(e.request.error)}))}))}}]),e}();function DI(e,t){return e.transaction([CI],t?"readwrite":"readonly").objectStore(CI)}function OI(){var e=indexedDB.deleteDatabase(TI);return new NI(e).toPromise()}function RI(){var e=indexedDB.open(TI,1);return new Promise((function(t,n){e.addEventListener("error",(function(){n(e.error)})),e.addEventListener("upgradeneeded",(function(){var t=e.result;try{t.createObjectStore(CI,{keyPath:_I})}catch(r){n(r)}})),e.addEventListener("success",ee(ie().mark((function n(){var r;return ie().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if((r=e.result).objectStoreNames.contains(CI)){n.next=12;break}return r.close(),n.next=5,OI();case 5:return n.t0=t,n.next=8,RI();case 8:n.t1=n.sent,(0,n.t0)(n.t1),n.next=13;break;case 12:t(r);case 13:case"end":return n.stop()}}),n)}))))}))}function PI(e,t,n){return MI.apply(this,arguments)}function MI(){return MI=ee(ie().mark((function e(t,n,r){var i,a;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=DI(t,!0).put((ae(i={},_I,n),ae(i,"value",r),i)),e.abrupt("return",new NI(a).toPromise());case 2:case"end":return e.stop()}}),e)}))),MI.apply(this,arguments)}function BI(e,t){return LI.apply(this,arguments)}function LI(){return LI=ee(ie().mark((function e(t,n){var r,i;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=DI(t,!1).get(n),e.next=3,new NI(r).toPromise();case 3:return i=e.sent,e.abrupt("return",void 0===i?null:i.value);case 5:case"end":return e.stop()}}),e)}))),LI.apply(this,arguments)}function jI(e,t){var n=DI(e,!0).delete(t);return new NI(n).toPromise()}var UI=function(){function e(){oe(this,e),this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then((function(){}),(function(){}))}return ue(e,[{key:"_openDb",value:function(){var e=ee(ie().mark((function e(){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.db){e.next=2;break}return e.abrupt("return",this.db);case 2:return e.next=4,RI();case 4:return this.db=e.sent,e.abrupt("return",this.db);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_withRetries",value:function(){var e=ee(ie().mark((function e(t){var n,r;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=0;case 1:return e.prev=2,e.next=5,this._openDb();case 5:return r=e.sent,e.next=8,t(r);case 8:return e.abrupt("return",e.sent);case 11:if(e.prev=11,e.t0=e.catch(2),!(n++>3)){e.next=15;break}throw e.t0;case 15:this.db&&(this.db.close(),this.db=void 0);case 16:e.next=1;break;case 18:case"end":return e.stop()}}),e,this,[[2,11]])})));return function(t){return e.apply(this,arguments)}}()},{key:"initializeServiceWorkerMessaging",value:function(){var e=ee(ie().mark((function e(){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",xI()?this.initializeReceiver():this.initializeSender());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"initializeReceiver",value:function(){var e=ee(ie().mark((function e(){var t=this;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.receiver=AI._getInstance(xI()?self:null),this.receiver._subscribe("keyChanged",function(){var e=ee(ie().mark((function e(n,r){var i;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._poll();case 2:return i=e.sent,e.abrupt("return",{keyProcessed:i.includes(r.key)});case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),this.receiver._subscribe("ping",function(){var e=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",["keyChanged"]);case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"initializeSender",value:function(){var e=ee(ie().mark((function e(){var t,n,r;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,II();case 2:if(this.activeServiceWorker=e.sent,this.activeServiceWorker){e.next=5;break}return e.abrupt("return");case 5:return this.sender=new bI(this.activeServiceWorker),e.next=8,this.sender._send("ping",{},800);case 8:if(r=e.sent){e.next=11;break}return e.abrupt("return");case 11:(null===(t=r[0])||void 0===t?void 0:t.fulfilled)&&(null===(n=r[0])||void 0===n?void 0:n.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0);case 12:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"notifyServiceWorker",value:function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.sender&&this.activeServiceWorker&&SI()===this.activeServiceWorker){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,this.sender._send("keyChanged",{key:t},this.serviceWorkerReceiverAvailable?800:50);case 5:e.next=9;break;case 7:e.prev=7,e.t0=e.catch(2);case 9:case"end":return e.stop()}}),e,this,[[2,7]])})));return function(t){return e.apply(this,arguments)}}()},{key:"_isAvailable",value:function(){var e=ee(ie().mark((function e(){var t;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,indexedDB){e.next=3;break}return e.abrupt("return",!1);case 3:return e.next=5,RI();case 5:return t=e.sent,e.next=8,PI(t,hI,"1");case 8:return e.next=10,jI(t,hI);case 10:return e.abrupt("return",!0);case 13:e.prev=13,e.t0=e.catch(0);case 15:return e.abrupt("return",!1);case 16:case"end":return e.stop()}}),e,null,[[0,13]])})));return function(){return e.apply(this,arguments)}}()},{key:"_withPendingWrite",value:function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.pendingWrites++,e.prev=1,e.next=4,t();case 4:return e.prev=4,this.pendingWrites--,e.finish(4);case 7:case"end":return e.stop()}}),e,this,[[1,,4,7]])})));return function(t){return e.apply(this,arguments)}}()},{key:"_set",value:function(){var e=ee(ie().mark((function e(t,n){var r=this;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._withPendingWrite(ee(ie().mark((function e(){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r._withRetries((function(e){return PI(e,t,n)}));case 2:return r.localCache[t]=n,e.abrupt("return",r.notifyServiceWorker(t));case 4:case"end":return e.stop()}}),e)})))));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_get",value:function(){var e=ee(ie().mark((function e(t){var n;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._withRetries((function(e){return BI(e,t)}));case 2:return n=e.sent,this.localCache[t]=n,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_remove",value:function(){var e=ee(ie().mark((function e(t){var n=this;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._withPendingWrite(ee(ie().mark((function e(){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n._withRetries((function(e){return jI(e,t)}));case 2:return delete n.localCache[t],e.abrupt("return",n.notifyServiceWorker(t));case 4:case"end":return e.stop()}}),e)})))));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_poll",value:function(){var e=ee(ie().mark((function e(){var t,n,r,i,a,o,s,u,c,l,f;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._withRetries((function(e){var t=DI(e,!1).getAll();return new NI(t).toPromise()}));case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return",[]);case 5:if(0===this.pendingWrites){e.next=7;break}return e.abrupt("return",[]);case 7:n=[],r=new Set,i=ce(t);try{for(i.s();!(a=i.n()).done;)o=a.value,s=o.fbase_key,u=o.value,r.add(s),JSON.stringify(this.localCache[s])!==JSON.stringify(u)&&(this.notifyListeners(s,u),n.push(s))}catch(h){i.e(h)}finally{i.f()}for(c=0,l=Object.keys(this.localCache);c<l.length;c++)f=l[c],this.localCache[f]&&!r.has(f)&&(this.notifyListeners(f,null),n.push(f));return e.abrupt("return",n);case 13:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"notifyListeners",value:function(e,t){this.localCache[e]=t;var n=this.listeners[e];if(n)for(var r=0,i=Array.from(n);r<i.length;r++){(0,i[r])(t)}}},{key:"startPolling",value:function(){var e=this;this.stopPolling(),this.pollTimer=setInterval(ee(ie().mark((function t(){return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._poll());case 1:case"end":return t.stop()}}),t)}))),800)}},{key:"stopPolling",value:function(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}},{key:"_addListener",value:function(e,t){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}},{key:"_removeListener",value:function(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&this.stopPolling()}}]),e}();UI.type="LOCAL";var FI=UI;function QI(e,t){return cb(e,"POST","/v2/accounts/mfaSignIn:start",ub(e,t))}function VI(e){return zI.apply(this,arguments)}function zI(){return zI=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,cb(t,"GET","/v1/recaptchaParams");case 2:if(e.t0=e.sent.recaptchaSiteKey,e.t0){e.next=5;break}e.t0="";case 5:return e.abrupt("return",e.t0);case 6:case"end":return e.stop()}}),e)}))),zI.apply(this,arguments)}function qI(e){return new Promise((function(t,n){var r=document.createElement("script");r.setAttribute("src",e),r.onload=t,r.onerror=function(e){var t=Gk("internal-error");t.customData=e,n(t)},r.type="text/javascript",r.charset="UTF-8",function(){var e,t;return null!==(t=null===(e=document.getElementsByTagName("head"))||void 0===e?void 0:e[0])&&void 0!==t?t:document}().appendChild(r)}))}function GI(e){return"__".concat(e).concat(Math.floor(1e6*Math.random()))}var HI=1e12,KI=function(){function e(t){oe(this,e),this.auth=t,this.counter=HI,this._widgets=new Map}return ue(e,[{key:"render",value:function(e,t){var n=this.counter;return this._widgets.set(n,new WI(e,this.auth.name,t||{})),this.counter++,n}},{key:"reset",value:function(e){var t,n=e||HI;null===(t=this._widgets.get(n))||void 0===t||t.delete(),this._widgets.delete(n)}},{key:"getResponse",value:function(e){var t,n=e||HI;return(null===(t=this._widgets.get(n))||void 0===t?void 0:t.getResponse())||""}},{key:"execute",value:function(){var e=ee(ie().mark((function e(t){var n,r;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t||HI,null===(n=this._widgets.get(r))||void 0===n||n.execute(),e.abrupt("return","");case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),WI=function(){function e(t,n,r){var i=this;oe(this,e),this.params=r,this.timerId=null,this.deleted=!1,this.responseToken=null,this.clickHandler=function(){i.execute()};var a="string"===typeof t?document.getElementById(t):t;Jk(a,"argument-error",{appName:n}),this.container=a,this.isVisible="invisible"!==this.params.size,this.isVisible?this.execute():this.container.addEventListener("click",this.clickHandler)}return ue(e,[{key:"getResponse",value:function(){return this.checkIfDeleted(),this.responseToken}},{key:"delete",value:function(){this.checkIfDeleted(),this.deleted=!0,this.timerId&&(clearTimeout(this.timerId),this.timerId=null),this.container.removeEventListener("click",this.clickHandler)}},{key:"execute",value:function(){var e=this;this.checkIfDeleted(),this.timerId||(this.timerId=window.setTimeout((function(){e.responseToken=function(e){for(var t=[],n="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",r=0;r<e;r++)t.push(n.charAt(Math.floor(Math.random()*n.length)));return t.join("")}(50);var t=e.params,n=t.callback,r=t["expired-callback"];if(n)try{n(e.responseToken)}catch(i){}e.timerId=window.setTimeout((function(){if(e.timerId=null,e.responseToken=null,r)try{r()}catch(i){}e.isVisible&&e.execute()}),6e4)}),500))}},{key:"checkIfDeleted",value:function(){if(this.deleted)throw new Error("reCAPTCHA mock was already deleted!")}}]),e}();var JI=GI("rcb"),YI=new rb(3e4,6e4),XI="https://www.google.com/recaptcha/api.js?",ZI=function(){function e(){oe(this,e),this.hostLanguage="",this.counter=0,this.librarySeparatelyLoaded=!!wI().grecaptcha}return ue(e,[{key:"load",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Jk($I(n),e,"argument-error"),this.shouldResolveImmediately(n)?Promise.resolve(wI().grecaptcha):new Promise((function(r,i){var a=wI().setTimeout((function(){i(Gk(e,"network-request-failed"))}),YI.get());wI()[JI]=function(){wI().clearTimeout(a),delete wI()[JI];var o=wI().grecaptcha;if(o){var s=o.render;o.render=function(e,n){var r=s(e,n);return t.counter++,r},t.hostLanguage=n,r(o)}else i(Gk(e,"internal-error"))},qI("".concat(XI,"?").concat(Qe({onload:JI,render:"explicit",hl:n}))).catch((function(){clearTimeout(a),i(Gk(e,"internal-error"))}))}))}},{key:"clearedOneInstance",value:function(){this.counter--}},{key:"shouldResolveImmediately",value:function(e){return!!wI().grecaptcha&&(e===this.hostLanguage||this.counter>0||this.librarySeparatelyLoaded)}}]),e}();function $I(e){return e.length<=6&&/^\s*[a-zA-Z0-9\-]*\s*$/.test(e)}var eE=function(){function e(){oe(this,e)}return ue(e,[{key:"load",value:function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new KI(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"clearedOneInstance",value:function(){}}]),e}(),tE="recaptcha",nE={theme:"light",type:"image"},rE=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.assign({},nE),r=arguments.length>2?arguments[2]:void 0;oe(this,e),this.parameters=n,this.type=tE,this.destroyed=!1,this.widgetId=null,this.tokenChangeListeners=new Set,this.renderPromise=null,this.recaptcha=null,this.auth=sw(r),this.isInvisible="invisible"===this.parameters.size,Jk("undefined"!==typeof document,this.auth,"operation-not-supported-in-this-environment");var i="string"===typeof t?document.getElementById(t):t;Jk(i,this.auth,"argument-error"),this.container=i,this.parameters.callback=this.makeTokenCallback(this.parameters.callback),this._recaptchaLoader=this.auth.settings.appVerificationDisabledForTesting?new eE:new ZI,this.validateStartingState()}return ue(e,[{key:"verify",value:function(){var e=ee(ie().mark((function e(){var t,n,r,i=this;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.assertNotDestroyed(),e.next=3,this.render();case 3:if(t=e.sent,n=this.getAssertedRecaptcha(),!(r=n.getResponse(t))){e.next=8;break}return e.abrupt("return",r);case 8:return e.abrupt("return",new Promise((function(e){i.tokenChangeListeners.add((function t(n){n&&(i.tokenChangeListeners.delete(t),e(n))})),i.isInvisible&&n.execute(t)})));case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this;try{this.assertNotDestroyed()}catch(t){return Promise.reject(t)}return this.renderPromise||(this.renderPromise=this.makeRenderPromise().catch((function(t){throw e.renderPromise=null,t}))),this.renderPromise}},{key:"_reset",value:function(){this.assertNotDestroyed(),null!==this.widgetId&&this.getAssertedRecaptcha().reset(this.widgetId)}},{key:"clear",value:function(){var e=this;this.assertNotDestroyed(),this.destroyed=!0,this._recaptchaLoader.clearedOneInstance(),this.isInvisible||this.container.childNodes.forEach((function(t){e.container.removeChild(t)}))}},{key:"validateStartingState",value:function(){Jk(!this.parameters.sitekey,this.auth,"argument-error"),Jk(this.isInvisible||!this.container.hasChildNodes(),this.auth,"argument-error"),Jk("undefined"!==typeof document,this.auth,"operation-not-supported-in-this-environment")}},{key:"makeTokenCallback",value:function(e){var t=this;return function(n){if(t.tokenChangeListeners.forEach((function(e){return e(n)})),"function"===typeof e)e(n);else if("string"===typeof e){var r=wI()[e];"function"===typeof r&&r(n)}}}},{key:"assertNotDestroyed",value:function(){Jk(!this.destroyed,this.auth,"internal-error")}},{key:"makeRenderPromise",value:function(){var e=ee(ie().mark((function e(){var t,n;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.init();case 2:return this.widgetId||(t=this.container,this.isInvisible||(n=document.createElement("div"),t.appendChild(n),t=n),this.widgetId=this.getAssertedRecaptcha().render(t,this.parameters)),e.abrupt("return",this.widgetId);case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"init",value:function(){var e=ee(ie().mark((function e(){var t;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Jk(tb()&&!xI(),this.auth,"internal-error"),e.next=3,iE();case 3:return e.next=5,this._recaptchaLoader.load(this.auth,this.auth.languageCode||void 0);case 5:return this.recaptcha=e.sent,e.next=8,VI(this.auth);case 8:Jk(t=e.sent,this.auth,"internal-error"),this.parameters.sitekey=t;case 11:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getAssertedRecaptcha",value:function(){return Jk(this.recaptcha,this.auth,"internal-error"),this.recaptcha}}]),e}();function iE(){var e=null;return new Promise((function(t){"complete"!==document.readyState?(e=function(){return t()},window.addEventListener("load",e)):t()})).catch((function(t){throw e&&window.removeEventListener("load",e),t}))}var aE=function(){function e(t,n){oe(this,e),this.verificationId=t,this.onConfirmation=n}return ue(e,[{key:"confirm",value:function(e){var t=Gw._fromVerification(this.verificationId,e);return this.onConfirmation(t)}}]),e}();function oE(){return oE=ee(ie().mark((function e(t,n,r){var i,a;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=sw(t),e.next=3,lE(i,n,Ke(r));case 3:return a=e.sent,e.abrupt("return",new aE(a,(function(e){return bx(i,e)})));case 5:case"end":return e.stop()}}),e)}))),oE.apply(this,arguments)}function sE(e,t,n){return uE.apply(this,arguments)}function uE(){return(uE=ee(ie().mark((function e(t,n,r){var i,a;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=Ke(t),e.next=3,vx(!1,i,"phone");case 3:return e.next=5,lE(i.auth,n,Ke(r));case 5:return a=e.sent,e.abrupt("return",new aE(a,(function(e){return xx(i,e)})));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function cE(){return(cE=ee(ie().mark((function e(t,n,r){var i,a;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=Ke(t),e.next=3,lE(i.auth,n,Ke(r));case 3:return a=e.sent,e.abrupt("return",new aE(a,(function(e){return Ex(i,e)})));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function lE(e,t,n){return fE.apply(this,arguments)}function fE(){return fE=ee(ie().mark((function e(t,n,r){var i,a,o,s,u,c,l,f,h;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.verify();case 2:if(a=e.sent,e.prev=3,Jk("string"===typeof a,t,"argument-error"),Jk(r.type===tE,t,"argument-error"),!("session"in(o="string"===typeof n?{phoneNumber:n}:n))){e.next=26;break}if(s=o.session,!("phoneNumber"in o)){e.next=17;break}return Jk("enroll"===s.type,t,"internal-error"),e.next=13,uI(t,{idToken:s.credential,phoneEnrollmentInfo:{phoneNumber:o.phoneNumber,recaptchaToken:a}});case 13:return u=e.sent,e.abrupt("return",u.phoneSessionInfo.sessionInfo);case 17:return Jk("signin"===s.type,t,"internal-error"),Jk(c=(null===(i=o.multiFactorHint)||void 0===i?void 0:i.uid)||o.multiFactorUid,t,"missing-multi-factor-info"),e.next=22,QI(t,{mfaPendingCredential:s.credential,mfaEnrollmentId:c,phoneSignInInfo:{recaptchaToken:a}});case 22:return l=e.sent,e.abrupt("return",l.phoneResponseInfo.sessionInfo);case 24:e.next=31;break;case 26:return e.next=28,Uw(t,{phoneNumber:o.phoneNumber,recaptchaToken:a});case 28:return f=e.sent,h=f.sessionInfo,e.abrupt("return",h);case 31:return e.prev=31,r._reset(),e.finish(31);case 34:case"end":return e.stop()}}),e,null,[[3,,31,34]])}))),fE.apply(this,arguments)}function hE(){return(hE=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,dx(Ke(t),n);case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var dE=function(){function e(t){oe(this,e),this.providerId=e.PROVIDER_ID,this.auth=sw(t)}return ue(e,[{key:"verifyPhoneNumber",value:function(e,t){return lE(this.auth,e,Ke(t))}}],[{key:"credential",value:function(e,t){return Gw._fromVerification(e,t)}},{key:"credentialFromResult",value:function(t){var n=t;return e.credentialFromTaggedObject(n)}},{key:"credentialFromError",value:function(t){return e.credentialFromTaggedObject(t.customData||{})}},{key:"credentialFromTaggedObject",value:function(e){var t=e._tokenResponse;if(!t)return null;var n=t.phoneNumber,r=t.temporaryProof;return n&&r?Gw._fromTokenResponse(n,r):null}}]),e}();function pE(e,t){return t?$k(t):(Jk(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}dE.PROVIDER_ID="phone",dE.PHONE_SIGN_IN_METHOD="phone";var vE=function(e){he(n,e);var t=ge(n);function n(e){var r;return oe(this,n),(r=t.call(this,"custom","custom")).params=e,r}return ue(n,[{key:"_getIdTokenResponse",value:function(e){return Bw(e,this._buildIdpRequest())}},{key:"_linkToIdToken",value:function(e,t){return Bw(e,this._buildIdpRequest(t))}},{key:"_getReauthenticationResolver",value:function(e){return Bw(e,this._buildIdpRequest())}},{key:"_buildIdpRequest",value:function(e){var t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}}]),n}(hw);function mE(e){return Ax(e.auth,new vE(e),e.bypassAuthState)}function gE(e){var t=e.auth,n=e.user;return Jk(n,t,"internal-error"),gx(n,new vE(e),e.bypassAuthState)}function yE(e){return AE.apply(this,arguments)}function AE(){return AE=ee(ie().mark((function e(t){var n,r;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.auth,Jk(r=t.user,n,"internal-error"),e.abrupt("return",dx(r,new vE(t),t.bypassAuthState));case 3:case"end":return e.stop()}}),e)}))),AE.apply(this,arguments)}var kE=function(){function e(t,n,r,i){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];oe(this,e),this.auth=t,this.resolver=r,this.user=i,this.bypassAuthState=a,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}return ue(e,[{key:"execute",value:function(){var e=this;return new Promise(function(){var t=ee(ie().mark((function t(n,r){return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.pendingPromise={resolve:n,reject:r},t.prev=1,t.next=4,e.resolver._initialize(e.auth);case 4:return e.eventManager=t.sent,t.next=7,e.onExecution();case 7:e.eventManager.registerConsumer(e),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),e.reject(t.t0);case 13:case"end":return t.stop()}}),t,null,[[1,10]])})));return function(e,n){return t.apply(this,arguments)}}())}},{key:"onAuthEvent",value:function(){var e=ee(ie().mark((function e(t){var n,r,i,a,o,s,u;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.urlResponse,r=t.sessionId,i=t.postBody,a=t.tenantId,o=t.error,s=t.type,!o){e.next=4;break}return this.reject(o),e.abrupt("return");case 4:return u={auth:this.auth,requestUri:n,sessionId:r,tenantId:a||void 0,postBody:i||void 0,user:this.user,bypassAuthState:this.bypassAuthState},e.prev=5,e.t0=this,e.next=9,this.getIdpTask(s)(u);case 9:e.t1=e.sent,e.t0.resolve.call(e.t0,e.t1),e.next=16;break;case 13:e.prev=13,e.t2=e.catch(5),this.reject(e.t2);case 16:case"end":return e.stop()}}),e,this,[[5,13]])})));return function(t){return e.apply(this,arguments)}}()},{key:"onError",value:function(e){this.reject(e)}},{key:"getIdpTask",value:function(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return mE;case"linkViaPopup":case"linkViaRedirect":return yE;case"reauthViaPopup":case"reauthViaRedirect":return gE;default:qk(this.auth,"internal-error")}}},{key:"resolve",value:function(e){Xk(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}},{key:"reject",value:function(e){Xk(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}},{key:"unregisterAndCleanUp",value:function(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}]),e}(),bE=new rb(2e3,1e4);function wE(e,t,n){return xE.apply(this,arguments)}function xE(){return xE=ee(ie().mark((function e(t,n,r){var i,a,o;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=sw(t),Kk(t,n,Ww),a=pE(i,r),o=new TE(i,"signInViaPopup",n,a),e.abrupt("return",o.executeNotNull());case 5:case"end":return e.stop()}}),e)}))),xE.apply(this,arguments)}function IE(){return(IE=ee(ie().mark((function e(t,n,r){var i,a,o;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Kk((i=Ke(t)).auth,n,Ww),a=pE(i.auth,r),o=new TE(i.auth,"reauthViaPopup",n,a,i),e.abrupt("return",o.executeNotNull());case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function EE(e,t,n){return SE.apply(this,arguments)}function SE(){return(SE=ee(ie().mark((function e(t,n,r){var i,a,o;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Kk((i=Ke(t)).auth,n,Ww),a=pE(i.auth,r),o=new TE(i.auth,"linkViaPopup",n,a,i),e.abrupt("return",o.executeNotNull());case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var TE=function(e){he(n,e);var t=ge(n);function n(e,r,i,a,o){var s;return oe(this,n),(s=t.call(this,e,r,a,o)).provider=i,s.authWindow=null,s.pollId=null,n.currentPopupAction&&n.currentPopupAction.cancel(),n.currentPopupAction=le(s),s}return ue(n,[{key:"executeNotNull",value:function(){var e=ee(ie().mark((function e(){var t;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.execute();case 2:return Jk(t=e.sent,this.auth,"internal-error"),e.abrupt("return",t);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"onExecution",value:function(){var e=ee(ie().mark((function e(){var t,n=this;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Xk(1===this.filter.length,"Popup operations only handle one event"),t=kI(),e.next=4,this.resolver._openPopup(this.auth,this.provider,this.filter[0],t);case 4:this.authWindow=e.sent,this.authWindow.associatedEvent=t,this.resolver._originValidation(this.auth).catch((function(e){n.reject(e)})),this.resolver._isIframeWebStorageSupported(this.auth,(function(e){e||n.reject(Gk(n.auth,"web-storage-unsupported"))})),this.pollUserCancellation();case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"eventId",get:function(){var e;return(null===(e=this.authWindow)||void 0===e?void 0:e.associatedEvent)||null}},{key:"cancel",value:function(){this.reject(Gk(this.auth,"cancelled-popup-request"))}},{key:"cleanUp",value:function(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,n.currentPopupAction=null}},{key:"pollUserCancellation",value:function(){var e=this;!function t(){var n,r;(null===(r=null===(n=e.authWindow)||void 0===n?void 0:n.window)||void 0===r?void 0:r.closed)?e.pollId=window.setTimeout((function(){e.pollId=null,e.reject(Gk(e.auth,"popup-closed-by-user"))}),2e3):e.pollId=window.setTimeout(t,bE.get())}()}}]),n}(kE);TE.currentPopupAction=null;var CE=new Map,_E=function(e){he(n,e);var t=ge(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return oe(this,n),(i=t.call(this,e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],r,void 0,a)).eventId=null,i}return ue(n,[{key:"execute",value:function(){var e=ee(ie().mark((function e(){var t,r;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=CE.get(this.auth._key())){e.next=21;break}return e.prev=2,e.next=5,NE(this.resolver,this.auth);case 5:if(!e.sent){e.next=12;break}return e.next=9,cn(de(n.prototype),"execute",this).call(this);case 9:e.t0=e.sent,e.next=13;break;case 12:e.t0=null;case 13:r=e.t0,t=function(){return Promise.resolve(r)},e.next=20;break;case 17:e.prev=17,e.t1=e.catch(2),t=function(){return Promise.reject(e.t1)};case 20:CE.set(this.auth._key(),t);case 21:return this.bypassAuthState||CE.set(this.auth._key(),(function(){return Promise.resolve(null)})),e.abrupt("return",t());case 23:case"end":return e.stop()}}),e,this,[[2,17]])})));return function(){return e.apply(this,arguments)}}()},{key:"onAuthEvent",value:function(){var e=ee(ie().mark((function e(t){var r;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("signInViaRedirect"!==t.type){e.next=4;break}return e.abrupt("return",cn(de(n.prototype),"onAuthEvent",this).call(this,t));case 4:if("unknown"!==t.type){e.next=7;break}return this.resolve(null),e.abrupt("return");case 7:if(!t.eventId){e.next=17;break}return e.next=10,this.auth._redirectUserForId(t.eventId);case 10:if(!(r=e.sent)){e.next=16;break}return this.user=r,e.abrupt("return",cn(de(n.prototype),"onAuthEvent",this).call(this,t));case 16:this.resolve(null);case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"onExecution",value:function(){var e=ee(ie().mark((function e(){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"cleanUp",value:function(){}}]),n}(kE);function NE(e,t){return DE.apply(this,arguments)}function DE(){return DE=ee(ie().mark((function e(t,n){var r,i,a;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=ME(n),i=PE(t),e.next=4,i._isAvailable();case 4:if(e.sent){e.next=6;break}return e.abrupt("return",!1);case 6:return e.next=8,i._get(r);case 8:return e.t0=e.sent,a="true"===e.t0,e.next=12,i._remove(r);case 12:return e.abrupt("return",a);case 13:case"end":return e.stop()}}),e)}))),DE.apply(this,arguments)}function OE(e,t){return RE.apply(this,arguments)}function RE(){return RE=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",PE(t)._set(ME(n),"true"));case 1:case"end":return e.stop()}}),e)}))),RE.apply(this,arguments)}function PE(e){return $k(e._redirectPersistence)}function ME(e){return Gb("pendingRedirect",e.config.apiKey,e.name)}function BE(e,t,n){return function(e,t,n){return LE.apply(this,arguments)}(e,t,n)}function LE(){return LE=ee(ie().mark((function e(t,n,r){var i,a;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=sw(t),Kk(t,n,Ww),a=pE(i,r),e.next=5,OE(a,i);case 5:return e.abrupt("return",a._openRedirect(i,n,"signInViaRedirect"));case 6:case"end":return e.stop()}}),e)}))),LE.apply(this,arguments)}function jE(e,t,n){return function(e,t,n){return UE.apply(this,arguments)}(e,t,n)}function UE(){return(UE=ee(ie().mark((function e(t,n,r){var i,a,o;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Kk((i=Ke(t)).auth,n,Ww),a=pE(i.auth,r),e.next=5,OE(a,i.auth);case 5:return e.next=7,HE(i);case 7:return o=e.sent,e.abrupt("return",a._openRedirect(i.auth,n,"reauthViaRedirect",o));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function FE(e,t,n){return function(e,t,n){return QE.apply(this,arguments)}(e,t,n)}function QE(){return(QE=ee(ie().mark((function e(t,n,r){var i,a,o;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Kk((i=Ke(t)).auth,n,Ww),a=pE(i.auth,r),e.next=5,vx(!1,i,n.providerId);case 5:return e.next=7,OE(a,i.auth);case 7:return e.next=9,HE(i);case 9:return o=e.sent,e.abrupt("return",a._openRedirect(i.auth,n,"linkViaRedirect",o));case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function VE(e,t){return zE.apply(this,arguments)}function zE(){return zE=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,sw(t)._initializationPromise;case 2:return e.abrupt("return",qE(t,n,!1));case 3:case"end":return e.stop()}}),e)}))),zE.apply(this,arguments)}function qE(e,t){return GE.apply(this,arguments)}function GE(){return GE=ee(ie().mark((function e(t,n){var r,i,a,o,s,u=arguments;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=u.length>2&&void 0!==u[2]&&u[2],i=sw(t),a=pE(i,n),o=new _E(i,a,r),e.next=6,o.execute();case 6:if(!(s=e.sent)||r){e.next=13;break}return delete s.user._redirectEventId,e.next=11,i._persistUserIfCurrent(s.user);case 11:return e.next=13,i._setRedirectUser(null,n);case 13:return e.abrupt("return",s);case 14:case"end":return e.stop()}}),e)}))),GE.apply(this,arguments)}function HE(e){return KE.apply(this,arguments)}function KE(){return(KE=ee(ie().mark((function e(t){var n;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=kI("".concat(t.uid,":::")),t._redirectEventId=n,e.next=4,t.auth._setRedirectUser(t);case 4:return e.next=6,t.auth._persistUserIfCurrent(t);case 6:return e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var WE=function(){function e(t){oe(this,e),this.auth=t,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}return ue(e,[{key:"registerConsumer",value:function(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}},{key:"unregisterConsumer",value:function(e){this.consumers.delete(e)}},{key:"onEvent",value:function(e){var t=this;if(this.hasEventBeenHandled(e))return!1;var n=!1;return this.consumers.forEach((function(r){t.isEventForConsumer(e,r)&&(n=!0,t.sendToConsumer(e,r),t.saveEventToCache(e))})),this.hasHandledPotentialRedirect||!function(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return YE(e);default:return!1}}(e)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=e,n=!0)),n}},{key:"sendToConsumer",value:function(e,t){var n;if(e.error&&!YE(e)){var r=(null===(n=e.error.code)||void 0===n?void 0:n.split("auth/")[1])||"internal-error";t.onError(Gk(this.auth,r))}else t.onAuthEvent(e)}},{key:"isEventForConsumer",value:function(e,t){var n=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&n}},{key:"hasEventBeenHandled",value:function(e){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(JE(e))}},{key:"saveEventToCache",value:function(e){this.cachedEventUids.add(JE(e)),this.lastProcessedEventTime=Date.now()}}]),e}();function JE(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter((function(e){return e})).join("-")}function YE(e){var t=e.type,n=e.error;return"unknown"===t&&(null===n||void 0===n?void 0:n.code)==="auth/".concat("no-auth-event")}function XE(e){return ZE.apply(this,arguments)}function ZE(){return ZE=ee(ie().mark((function e(t){var n,r=arguments;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:{},e.abrupt("return",cb(t,"GET","/v1/projects",n));case 2:case"end":return e.stop()}}),e)}))),ZE.apply(this,arguments)}var $E=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,eS=/^https?/;function tS(){return tS=ee(ie().mark((function e(t){var n,r,i,a,o;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.config.emulator){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,XE(t);case 4:n=e.sent,r=n.authorizedDomains,i=ce(r),e.prev=7,i.s();case 9:if((a=i.n()).done){e.next=20;break}if(o=a.value,e.prev=11,!nS(o)){e.next=14;break}return e.abrupt("return");case 14:e.next=18;break;case 16:e.prev=16,e.t0=e.catch(11);case 18:e.next=9;break;case 20:e.next=25;break;case 22:e.prev=22,e.t1=e.catch(7),i.e(e.t1);case 25:return e.prev=25,i.f(),e.finish(25);case 28:qk(t,"unauthorized-domain");case 29:case"end":return e.stop()}}),e,null,[[7,22,25,28],[11,16]])}))),tS.apply(this,arguments)}function nS(e){var t=eb(),n=new URL(t),r=n.protocol,i=n.hostname;if(e.startsWith("chrome-extension://")){var a=new URL(e);return""===a.hostname&&""===i?"chrome-extension:"===r&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):"chrome-extension:"===r&&a.hostname===i}if(!eS.test(r))return!1;if($E.test(e))return i===e;var o=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+o+"|"+o+")$","i").test(i)}var rS=new rb(3e4,6e4);function iS(){var e=wI().___jsl;if(null===e||void 0===e?void 0:e.H)for(var t=0,n=Object.keys(e.H);t<n.length;t++){var r=n[t];if(e.H[r].r=e.H[r].r||[],e.H[r].L=e.H[r].L||[],e.H[r].r=ne(e.H[r].L),e.CP)for(var i=0;i<e.CP.length;i++)e.CP[i]=null}}var aS=null;function oS(e){return aS=aS||function(e){return new Promise((function(t,n){var r,i,a;function o(){iS(),gapi.load("gapi.iframes",{callback:function(){t(gapi.iframes.getContext())},ontimeout:function(){iS(),n(Gk(e,"network-request-failed"))},timeout:rS.get()})}if(null===(i=null===(r=wI().gapi)||void 0===r?void 0:r.iframes)||void 0===i?void 0:i.Iframe)t(gapi.iframes.getContext());else{if(!(null===(a=wI().gapi)||void 0===a?void 0:a.load)){var s=GI("iframefcb");return wI()[s]=function(){gapi.load?o():n(Gk(e,"network-request-failed"))},qI("https://apis.google.com/js/api.js?onload=".concat(s)).catch((function(e){return n(e)}))}o()}})).catch((function(e){throw aS=null,e}))}(e),aS}var sS=new rb(5e3,15e3),uS={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},cS=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function lS(e){var t=e.config;Jk(t.authDomain,e,"auth-domain-config-required");var n=t.emulator?ib(t,"emulator/auth/iframe"):"https://".concat(e.config.authDomain,"/").concat("__/auth/iframe"),r={apiKey:t.apiKey,appName:e.name,v:Nt},i=cS.get(e.config.apiHost);i&&(r.eid=i);var a=e._getFrameworks();return a.length&&(r.fw=a.join(",")),"".concat(n,"?").concat(Qe(r).slice(1))}function fS(e){return hS.apply(this,arguments)}function hS(){return hS=ee(ie().mark((function e(t){var n,r;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oS(t);case 2:return n=e.sent,Jk(r=wI().gapi,t,"internal-error"),e.abrupt("return",n.open({where:document.body,url:lS(t),messageHandlersFilter:r.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:uS,dontclear:!0},(function(e){return new Promise(function(){var n=ee(ie().mark((function n(r,i){var a,o,s;return ie().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s=function(){wI().clearTimeout(o),r(e)},n.next=3,e.restyle({setHideOnLeave:!1});case 3:a=Gk(t,"network-request-failed"),o=wI().setTimeout((function(){i(a)}),sS.get()),e.ping(s).then(s,(function(){i(a)}));case 6:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}())})));case 6:case"end":return e.stop()}}),e)}))),hS.apply(this,arguments)}var dS={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},pS="_blank",vS="http://localhost",mS=function(){function e(t){oe(this,e),this.window=t,this.associatedEvent=null}return ue(e,[{key:"close",value:function(){if(this.window)try{this.window.close()}catch(e){}}}]),e}();function gS(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:600,a=Math.max((window.screen.availHeight-i)/2,0).toString(),o=Math.max((window.screen.availWidth-r)/2,0).toString(),u="",c=Object.assign(Object.assign({},dS),{width:r.toString(),height:i.toString(),top:a,left:o}),l=Te().toLowerCase();n&&(u=Yb(l)?pS:n),Wb(l)&&(t=t||vS,c.scrollbars="yes");var f=Object.entries(c).reduce((function(e,t){var n=s(t,2),r=n[0],i=n[1];return"".concat(e).concat(r,"=").concat(i,",")}),"");if(nw(l)&&"_self"!==u)return yS(t||"",u),new mS(null);var h=window.open(t||"",u,f);Jk(h,e,"popup-blocked");try{h.focus()}catch(d){}return new mS(h)}function yS(e,t){var n=document.createElement("a");n.href=e,n.target=t;var r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}var AS="__/auth/handler",kS="emulator/auth/handler";function bS(e,t,n,r,i,a){Jk(e.config.authDomain,e,"auth-domain-config-required"),Jk(e.config.apiKey,e,"invalid-api-key");var o={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:Nt,eventId:i};if(t instanceof Ww){t.setDefaultLanguage(e.languageCode),o.providerId=t.providerId||"",function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}(t.getCustomParameters())||(o.customParameters=JSON.stringify(t.getCustomParameters()));for(var u=0,c=Object.entries(a||{});u<c.length;u++){var l=s(c[u],2),f=l[0],h=l[1];o[f]=h}}if(t instanceof Jw){var d=t.getScopes().filter((function(e){return""!==e}));d.length>0&&(o.scopes=d.join(","))}e.tenantId&&(o.tid=e.tenantId);for(var p=o,v=0,m=Object.keys(p);v<m.length;v++){var g=m[v];void 0===p[g]&&delete p[g]}return"".concat(function(e){var t=e.config;if(!t.emulator)return"https://".concat(t.authDomain,"/").concat(AS);return ib(t,kS)}(e),"?").concat(Qe(p).slice(1))}var wS="webStorageSupport",xS=function(){function e(){oe(this,e),this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=gI,this._completeRedirectFn=qE}return ue(e,[{key:"_openPopup",value:function(){var e=ee(ie().mark((function e(t,n,r,i){var a,o;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Xk(null===(a=this.eventManagers[t._key()])||void 0===a?void 0:a.manager,"_initialize() not called before _openPopup()"),o=bS(t,n,r,eb(),i),e.abrupt("return",gS(t,o,kI()));case 3:case"end":return e.stop()}}),e,this)})));return function(t,n,r,i){return e.apply(this,arguments)}}()},{key:"_openRedirect",value:function(){var e=ee(ie().mark((function e(t,n,r,i){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._originValidation(t);case 2:return a=bS(t,n,r,eb(),i),wI().location.href=a,e.abrupt("return",new Promise((function(){})));case 4:case"end":return e.stop()}var a}),e,this)})));return function(t,n,r,i){return e.apply(this,arguments)}}()},{key:"_initialize",value:function(e){var t=this,n=e._key();if(this.eventManagers[n]){var r=this.eventManagers[n],i=r.manager,a=r.promise;return i?Promise.resolve(i):(Xk(a,"If manager is not set, promise should be"),a)}var o=this.initAndGetManager(e);return this.eventManagers[n]={promise:o},o.catch((function(){delete t.eventManagers[n]})),o}},{key:"initAndGetManager",value:function(){var e=ee(ie().mark((function e(t){var n,r;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fS(t);case 2:return n=e.sent,r=new WE(t),n.register("authEvent",(function(e){return Jk(null===e||void 0===e?void 0:e.authEvent,t,"invalid-auth-event"),{status:r.onEvent(e.authEvent)?"ACK":"ERROR"}}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[t._key()]={manager:r},this.iframes[t._key()]=n,e.abrupt("return",r);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_isIframeWebStorageSupported",value:function(e,t){this.iframes[e._key()].send(wS,{type:wS},(function(n){var r,i=null===(r=null===n||void 0===n?void 0:n[0])||void 0===r?void 0:r.webStorageSupport;void 0!==i&&t(!!i),qk(e,"internal-error")}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}},{key:"_originValidation",value:function(e){var t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=function(e){return tS.apply(this,arguments)}(e)),this.originValidationPromises[t]}},{key:"_shouldInitProactively",get:function(){return iw()||Jb()||tw()}}]),e}(),IS=xS,ES=function(){function e(t){oe(this,e),this.factorId=t}return ue(e,[{key:"_process",value:function(e,t,n){switch(t.type){case"enroll":return this._finalizeEnroll(e,t.credential,n);case"signin":return this._finalizeSignIn(e,t.credential);default:return Yk("unexpected MultiFactorSessionType")}}}]),e}(),SS=function(e){he(n,e);var t=ge(n);function n(e){var r;return oe(this,n),(r=t.call(this,"phone")).credential=e,r}return ue(n,[{key:"_finalizeEnroll",value:function(e,t,n){return function(e,t){return cb(e,"POST","/v2/accounts/mfaEnrollment:finalize",ub(e,t))}(e,{idToken:t,displayName:n,phoneVerificationInfo:this.credential._makeVerificationRequest()})}},{key:"_finalizeSignIn",value:function(e,t){return function(e,t){return cb(e,"POST","/v2/accounts/mfaSignIn:finalize",ub(e,t))}(e,{mfaPendingCredential:t,phoneVerificationInfo:this.credential._makeVerificationRequest()})}}],[{key:"_fromCredential",value:function(e){return new n(e)}}]),n}(ES),TS=function(){function e(){oe(this,e)}return ue(e,null,[{key:"assertion",value:function(e){return SS._fromCredential(e)}}]),e}();TS.FACTOR_ID="phone";var CS,_S="@firebase/auth",NS="0.19.11",DS=function(){function e(t){oe(this,e),this.auth=t,this.internalListeners=new Map}return ue(e,[{key:"getUid",value:function(){var e;return this.assertAuthConfigured(),(null===(e=this.auth.currentUser)||void 0===e?void 0:e.uid)||null}},{key:"getToken",value:function(){var e=ee(ie().mark((function e(t){var n;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.assertAuthConfigured(),e.next=3,this.auth._initializationPromise;case 3:if(this.auth.currentUser){e.next=5;break}return e.abrupt("return",null);case 5:return e.next=7,this.auth.currentUser.getIdToken(t);case 7:return n=e.sent,e.abrupt("return",{accessToken:n});case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"addAuthTokenListener",value:function(e){if(this.assertAuthConfigured(),!this.internalListeners.has(e)){var t=this.auth.onIdTokenChanged((function(t){var n;e((null===(n=t)||void 0===n?void 0:n.stsTokenManager.accessToken)||null)}));this.internalListeners.set(e,t),this.updateProactiveRefresh()}}},{key:"removeAuthTokenListener",value:function(e){this.assertAuthConfigured();var t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}},{key:"assertAuthConfigured",value:function(){Jk(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}},{key:"updateProactiveRefresh",value:function(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}]),e}();function OS(){return window}CS="Browser",xt(new $e("auth",(function(e,t){var n=t.options,r=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),a=r.options,o=a.apiKey,s=a.authDomain;return function(e,t){Jk(o&&!o.includes(":"),"invalid-api-key",{appName:e.name}),Jk(!(null===s||void 0===s?void 0:s.includes(":")),"argument-error",{appName:e.name});var r={apiKey:o,authDomain:s,clientPlatform:CS,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:aw(CS)},i=new ow(e,t,r);return function(e,t){var n=(null===t||void 0===t?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map($k);(null===t||void 0===t?void 0:t.errorMap)&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,null===t||void 0===t?void 0:t.popupRedirectResolver)}(i,n),i}(r,i)}),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((function(e,t,n){e.getProvider("auth-internal").initialize()}))),xt(new $e("auth-internal",(function(e){return function(e){return new DS(e)}(sw(e.getProvider("auth").getImmediate()))}),"PRIVATE").setInstantiationMode("EXPLICIT")),Bt(_S,NS,function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}(CS)),Bt(_S,NS,"esm2017");function RS(e,t,n){return PS.apply(this,arguments)}function PS(){return PS=ee(ie().mark((function e(t,n,r){var i,a,o,s,u;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=OS(),o=a.BuildInfo,Xk(n.sessionId,"AuthEvent did not contain a session ID"),e.next=4,FS(n.sessionId);case 4:return s=e.sent,u={},tw()?u.ibi=o.packageName:Zb()?u.apn=o.packageName:qk(t,"operation-not-supported-in-this-environment"),o.displayName&&(u.appDisplayName=o.displayName),u.sessionId=s,e.abrupt("return",bS(t,r,n.type,void 0,null!==(i=n.eventId)&&void 0!==i?i:void 0,u));case 10:case"end":return e.stop()}}),e)}))),PS.apply(this,arguments)}function MS(){return MS=ee(ie().mark((function e(t){var n,r,i;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=OS(),r=n.BuildInfo,i={},tw()?i.iosBundleId=r.packageName:Zb()?i.androidPackageName=r.packageName:qk(t,"operation-not-supported-in-this-environment"),e.next=5,XE(t,i);case 5:case"end":return e.stop()}}),e)}))),MS.apply(this,arguments)}function BS(e){var t=OS().cordova;return new Promise((function(n){t.plugins.browsertab.isAvailable((function(r){var i=null;r?t.plugins.browsertab.openUrl(e):i=t.InAppBrowser.open(e,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Te();return/(iPad|iPhone|iPod).*OS 7_\d/i.test(e)||/(iPad|iPhone|iPod).*OS 8_\d/i.test(e)}()?"_blank":"_system","location=yes"),n(i)}))}))}function LS(e,t,n){return jS.apply(this,arguments)}function jS(){return jS=ee(ie().mark((function e(t,n,r){var i,a,o;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=OS(),a=i.cordova,o=function(){},e.prev=2,e.next=5,new Promise((function(e,i){var s=null;function u(){var t;e();var n=null===(t=a.plugins.browsertab)||void 0===t?void 0:t.close;"function"===typeof n&&n(),"function"===typeof(null===r||void 0===r?void 0:r.close)&&r.close()}function c(){s||(s=window.setTimeout((function(){i(Gk(t,"redirect-cancelled-by-user"))}),2e3))}function l(){"visible"===(null===document||void 0===document?void 0:document.visibilityState)&&c()}n.addPassiveListener(u),document.addEventListener("resume",c,!1),Zb()&&document.addEventListener("visibilitychange",l,!1),o=function(){n.removePassiveListener(u),document.removeEventListener("resume",c,!1),document.removeEventListener("visibilitychange",l,!1),s&&window.clearTimeout(s)}}));case 5:return e.prev=5,o(),e.finish(5);case 8:case"end":return e.stop()}}),e,null,[[2,,5,8]])}))),jS.apply(this,arguments)}function US(e){var t,n,r,i,a,o,s,u,c,l,f=OS();Jk("function"===typeof(null===(t=null===f||void 0===f?void 0:f.universalLinks)||void 0===t?void 0:t.subscribe),e,"invalid-cordova-configuration",{missingPlugin:"cordova-universal-links-plugin-fix"}),Jk("undefined"!==typeof(null===(n=null===f||void 0===f?void 0:f.BuildInfo)||void 0===n?void 0:n.packageName),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-buildInfo"}),Jk("function"===typeof(null===(a=null===(i=null===(r=null===f||void 0===f?void 0:f.cordova)||void 0===r?void 0:r.plugins)||void 0===i?void 0:i.browsertab)||void 0===a?void 0:a.openUrl),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),Jk("function"===typeof(null===(u=null===(s=null===(o=null===f||void 0===f?void 0:f.cordova)||void 0===o?void 0:o.plugins)||void 0===s?void 0:s.browsertab)||void 0===u?void 0:u.isAvailable),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),Jk("function"===typeof(null===(l=null===(c=null===f||void 0===f?void 0:f.cordova)||void 0===c?void 0:c.InAppBrowser)||void 0===l?void 0:l.open),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-inappbrowser"})}function FS(e){return QS.apply(this,arguments)}function QS(){return(QS=ee(ie().mark((function e(t){var n,r,i;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=VS(t),e.next=3,crypto.subtle.digest("SHA-256",n);case 3:return r=e.sent,i=Array.from(new Uint8Array(r)),e.abrupt("return",i.map((function(e){return e.toString(16).padStart(2,"0")})).join(""));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function VS(e){if(Xk(/[0-9a-zA-Z]+/.test(e),"Can only convert alpha-numeric strings"),"undefined"!==typeof TextEncoder)return(new TextEncoder).encode(e);for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n}var zS=function(e){he(n,e);var t=ge(n);function n(){var e;return oe(this,n),(e=t.apply(this,arguments)).passiveListeners=new Set,e.initPromise=new Promise((function(t){e.resolveInialized=t})),e}return ue(n,[{key:"addPassiveListener",value:function(e){this.passiveListeners.add(e)}},{key:"removePassiveListener",value:function(e){this.passiveListeners.delete(e)}},{key:"resetRedirect",value:function(){this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1}},{key:"onEvent",value:function(e){return this.resolveInialized(),this.passiveListeners.forEach((function(t){return t(e)})),cn(de(n.prototype),"onEvent",this).call(this,e)}},{key:"initialized",value:function(){var e=ee(ie().mark((function e(){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initPromise;case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),n}(WE);function qS(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:t,eventId:n,urlResponse:null,sessionId:JS(),postBody:null,tenantId:e.tenantId,error:Gk(e,"no-auth-event")}}function GS(e,t){return YS()._set(XS(e),t)}function HS(e){return KS.apply(this,arguments)}function KS(){return KS=ee(ie().mark((function e(t){var n;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,YS()._get(XS(t));case 2:if(!(n=e.sent)){e.next=6;break}return e.next=6,YS()._remove(XS(t));case 6:return e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)}))),KS.apply(this,arguments)}function WS(e,t){var n,r,i=function(e){var t=ZS(e),n=t.link?decodeURIComponent(t.link):void 0,r=ZS(n).link,i=t.deep_link_id?decodeURIComponent(t.deep_link_id):void 0;return ZS(i).link||i||r||n||e}(t);if(i.includes("/__/auth/callback")){var a=ZS(i),o=a.firebaseError?function(e){try{return JSON.parse(e)}catch(t){return null}}(decodeURIComponent(a.firebaseError)):null,s=null===(r=null===(n=null===o||void 0===o?void 0:o.code)||void 0===n?void 0:n.split("auth/"))||void 0===r?void 0:r[1],u=s?Gk(s):null;return u?{type:e.type,eventId:e.eventId,tenantId:e.tenantId,error:u,urlResponse:null,sessionId:null,postBody:null}:{type:e.type,eventId:e.eventId,tenantId:e.tenantId,sessionId:e.sessionId,urlResponse:i,postBody:null}}return null}function JS(){for(var e=[],t="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n=0;n<20;n++){var r=Math.floor(Math.random()*t.length);e.push(t.charAt(r))}return e.join("")}function YS(){return $k(vI)}function XS(e){return Gb("authEvent",e.config.apiKey,e.name)}function ZS(e){if(!(null===e||void 0===e?void 0:e.includes("?")))return{};var t,n=e.split("?"),i=r(t=n)||te(t)||a(t)||o();i[0];return Ve(i.slice(1).join("?"))}var $S=function(){function e(){oe(this,e),this._redirectPersistence=gI,this._shouldInitProactively=!0,this.eventManagers=new Map,this.originValidationPromises={},this._completeRedirectFn=qE}return ue(e,[{key:"_initialize",value:function(){var e=ee(ie().mark((function e(t){var n,r;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t._key(),(r=this.eventManagers.get(n))||(r=new zS(t),this.eventManagers.set(n,r),this.attachCallbackListeners(t,r)),e.abrupt("return",r);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_openPopup",value:function(e){qk(e,"operation-not-supported-in-this-environment")}},{key:"_openRedirect",value:function(){var e=ee(ie().mark((function e(t,n,r,i){var a,o,s,u;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return US(t),e.next=3,this._initialize(t);case 3:return a=e.sent,e.next=6,a.initialized();case 6:return a.resetRedirect(),CE.clear(),e.next=10,this._originValidation(t);case 10:return o=qS(t,r,i),e.next=13,GS(t,o);case 13:return e.next=15,RS(t,o,n);case 15:return s=e.sent,e.next=18,BS(s);case 18:return u=e.sent,e.abrupt("return",LS(t,a,u));case 20:case"end":return e.stop()}}),e,this)})));return function(t,n,r,i){return e.apply(this,arguments)}}()},{key:"_isIframeWebStorageSupported",value:function(e,t){throw new Error("Method not implemented.")}},{key:"_originValidation",value:function(e){var t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=function(e){return MS.apply(this,arguments)}(e)),this.originValidationPromises[t]}},{key:"attachCallbackListeners",value:function(e,t){var n=OS(),r=n.universalLinks,i=n.handleOpenURL,a=n.BuildInfo,o=setTimeout(ee(ie().mark((function n(){return ie().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,HS(e);case 2:t.onEvent(tT());case 3:case"end":return n.stop()}}),n)}))),500),s=function(){var n=ee(ie().mark((function n(r){var i,a;return ie().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return clearTimeout(o),n.next=3,HS(e);case 3:i=n.sent,a=null,i&&(null===r||void 0===r?void 0:r.url)&&(a=WS(i,r.url)),t.onEvent(a||tT());case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();"undefined"!==typeof r&&"function"===typeof r.subscribe&&r.subscribe(null,s);var u=i,c="".concat(a.packageName.toLowerCase(),"://");OS().handleOpenURL=function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.toLowerCase().startsWith(c)&&s({url:t}),"function"===typeof u)try{u(t)}catch(n){console.error(n)}case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}}]),e}(),eT=$S;function tT(){return{type:"unknown",eventId:null,sessionId:null,urlResponse:null,postBody:null,tenantId:null,error:Gk("no-auth-event")}}function nT(){var e;return(null===(e=null===self||void 0===self?void 0:self.location)||void 0===e?void 0:e.protocol)||null}function rT(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Te();return!("file:"!==nT()&&"ionic:"!==nT()||!e.toLowerCase().match(/iphone|ipad|ipod|android/))}function iT(){return Oe()&&11===(null===document||void 0===document?void 0:document.documentMode)}function aT(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Te();return/Edge\/\d+/.test(e)}function oT(){try{var e=self.localStorage,t=kI();if(e)return e.setItem(t,"1"),e.removeItem(t),!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Te();return iT()||aT(e)}()||Re()}catch(n){return sT()&&Re()}return!1}function sT(){return"undefined"!==typeof n.g&&"WorkerGlobalScope"in n.g&&"importScripts"in n.g}function uT(){return("http:"===nT()||"https:"===nT()||Ne()||rT())&&!(De()||_e())&&oT()&&!sT()}function cT(){return rT()&&"undefined"!==typeof document}function lT(){return fT.apply(this,arguments)}function fT(){return(fT=ee(ie().mark((function e(){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(cT()){e.next=2;break}return e.abrupt("return",!1);case 2:return e.abrupt("return",new Promise((function(e){var t=setTimeout((function(){e(!1)}),1e3);document.addEventListener("deviceready",(function(){clearTimeout(t),e(!0)}))})));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var hT={LOCAL:"local",NONE:"none",SESSION:"session"},dT=Jk,pT="persistence";function vT(e,t){dT(Object.values(hT).includes(t),e,"invalid-persistence-type"),De()?dT(t!==hT.SESSION,e,"unsupported-persistence-type"):_e()?dT(t===hT.NONE,e,"unsupported-persistence-type"):sT()?dT(t===hT.NONE||t===hT.LOCAL&&Re(),e,"unsupported-persistence-type"):dT(t===hT.NONE||oT(),e,"unsupported-persistence-type")}function mT(e){return gT.apply(this,arguments)}function gT(){return gT=ee(ie().mark((function e(t){var n,r;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._initializationPromise;case 2:n=yT(),r=Gb(pT,t.config.apiKey,t.name),n&&n.setItem(r,t._getPersistence());case 5:case"end":return e.stop()}}),e)}))),gT.apply(this,arguments)}function yT(){var e;try{return(null===(e="undefined"!==typeof window?window:null)||void 0===e?void 0:e.sessionStorage)||null}catch(t){return null}}var AT=Jk,kT=function(){function e(){oe(this,e),this.browserResolver=$k(IS),this.cordovaResolver=$k(eT),this.underlyingResolver=null,this._redirectPersistence=gI,this._completeRedirectFn=qE}return ue(e,[{key:"_initialize",value:function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.selectUnderlyingResolver();case 2:return e.abrupt("return",this.assertedUnderlyingResolver._initialize(t));case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_openPopup",value:function(){var e=ee(ie().mark((function e(t,n,r,i){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.selectUnderlyingResolver();case 2:return e.abrupt("return",this.assertedUnderlyingResolver._openPopup(t,n,r,i));case 3:case"end":return e.stop()}}),e,this)})));return function(t,n,r,i){return e.apply(this,arguments)}}()},{key:"_openRedirect",value:function(){var e=ee(ie().mark((function e(t,n,r,i){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.selectUnderlyingResolver();case 2:return e.abrupt("return",this.assertedUnderlyingResolver._openRedirect(t,n,r,i));case 3:case"end":return e.stop()}}),e,this)})));return function(t,n,r,i){return e.apply(this,arguments)}}()},{key:"_isIframeWebStorageSupported",value:function(e,t){this.assertedUnderlyingResolver._isIframeWebStorageSupported(e,t)}},{key:"_originValidation",value:function(e){return this.assertedUnderlyingResolver._originValidation(e)}},{key:"_shouldInitProactively",get:function(){return cT()||this.browserResolver._shouldInitProactively}},{key:"assertedUnderlyingResolver",get:function(){return AT(this.underlyingResolver,"internal-error"),this.underlyingResolver}},{key:"selectUnderlyingResolver",value:function(){var e=ee(ie().mark((function e(){var t;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.underlyingResolver){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,lT();case 4:t=e.sent,this.underlyingResolver=t?this.cordovaResolver:this.browserResolver;case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}();function bT(e){return e.unwrap()}function wT(e,t){var n,r=null===(n=t.customData)||void 0===n?void 0:n._tokenResponse;if("auth/multi-factor-auth-required"===t.code)t.resolver=new TT(e,function(e,t){var n,r=Ke(e),i=t;return Jk(t.customData.operationType,r,"argument-error"),Jk(null===(n=i.customData._serverResponse)||void 0===n?void 0:n.mfaPendingCredential,r,"argument-error"),sI._fromError(r,i)}(e,t));else if(r){var i=xT(t),a=t;i&&(a.credential=i,a.tenantId=r.tenantId||void 0,a.email=r.email||void 0,a.phoneNumber=r.phoneNumber||void 0)}}function xT(e){var t=(e instanceof Pe?e.customData:e)._tokenResponse;if(!t)return null;if(!(e instanceof Pe)&&"temporaryProof"in t&&"phoneNumber"in t)return dE.credentialFromResult(e);var n,r=t.providerId;if(!r||r===Nk)return null;switch(r){case _k:n=Zw;break;case Tk:n=Xw;break;case Ck:n=$w;break;case Dk:n=nx;break;default:var i=t.oauthIdToken,a=t.oauthAccessToken,o=t.oauthTokenSecret,s=t.pendingToken,u=t.nonce;return a||o||i||s?s?r.startsWith("saml.")?ex._create(r,s):jw._fromParams({providerId:r,signInMethod:r,pendingToken:s,idToken:i,accessToken:a}):new Yw(r).credential({idToken:i,accessToken:a,rawNonce:u}):null}return e instanceof Pe?n.credentialFromError(e):n.credentialFromResult(e)}function IT(e,t){return t.catch((function(t){throw t instanceof Pe&&wT(e,t),t})).then((function(e){var t,n=e.operationType,r=e.user;return{operationType:n,credential:(t=e,xT(t)),additionalUserInfo:aI(e),user:CT.getOrCreate(r)}}))}function ET(e,t){return ST.apply(this,arguments)}function ST(){return ST=ee(ie().mark((function e(t,n){var r;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n;case 2:return r=e.sent,e.abrupt("return",{verificationId:r.verificationId,confirm:function(e){return IT(t,r.confirm(e))}});case 4:case"end":return e.stop()}}),e)}))),ST.apply(this,arguments)}var TT=function(){function e(t,n){oe(this,e),this.resolver=n,this.auth=t.wrapped()}return ue(e,[{key:"session",get:function(){return this.resolver.session}},{key:"hints",get:function(){return this.resolver.hints}},{key:"resolveSignIn",value:function(e){return IT(bT(this.auth),this.resolver.resolveSignIn(e))}}]),e}(),CT=function(){function e(t){oe(this,e),this._delegate=t,this.multiFactor=function(e){var t=Ke(e);return fI.has(t)||fI.set(t,lI._fromUser(t)),fI.get(t)}(t)}return ue(e,[{key:"delete",value:function(){return this._delegate.delete()}},{key:"reload",value:function(){return this._delegate.reload()}},{key:"toJSON",value:function(){return this._delegate.toJSON()}},{key:"getIdTokenResult",value:function(e){return this._delegate.getIdTokenResult(e)}},{key:"getIdToken",value:function(e){return this._delegate.getIdToken(e)}},{key:"linkAndRetrieveDataWithCredential",value:function(e){return this.linkWithCredential(e)}},{key:"linkWithCredential",value:function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",IT(this.auth,xx(this._delegate,t)));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"linkWithPhoneNumber",value:function(){var e=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",ET(this.auth,sE(this._delegate,t,n)));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"linkWithPopup",value:function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",IT(this.auth,EE(this._delegate,t,kT)));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"linkWithRedirect",value:function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,mT(sw(this.auth));case 2:return e.abrupt("return",FE(this._delegate,t,kT));case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"reauthenticateAndRetrieveDataWithCredential",value:function(e){return this.reauthenticateWithCredential(e)}},{key:"reauthenticateWithCredential",value:function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",IT(this.auth,Ex(this._delegate,t)));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"reauthenticateWithPhoneNumber",value:function(e,t){return ET(this.auth,function(e,t,n){return cE.apply(this,arguments)}(this._delegate,e,t))}},{key:"reauthenticateWithPopup",value:function(e){return IT(this.auth,function(e,t,n){return IE.apply(this,arguments)}(this._delegate,e,kT))}},{key:"reauthenticateWithRedirect",value:function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,mT(sw(this.auth));case 2:return e.abrupt("return",jE(this._delegate,t,kT));case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"sendEmailVerification",value:function(e){return function(e,t){return Hx.apply(this,arguments)}(this._delegate,e)}},{key:"unlink",value:function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fx(this._delegate,t);case 2:return e.abrupt("return",this);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"updateEmail",value:function(e){return function(e,t){return Xx(Ke(e),t,null)}(this._delegate,e)}},{key:"updatePassword",value:function(e){return function(e,t){return Xx(Ke(e),null,t)}(this._delegate,e)}},{key:"updatePhoneNumber",value:function(e){return function(e,t){return hE.apply(this,arguments)}(this._delegate,e)}},{key:"updateProfile",value:function(e){return function(e,t){return Yx.apply(this,arguments)}(this._delegate,e)}},{key:"verifyBeforeUpdateEmail",value:function(e,t){return function(e,t,n){return Kx.apply(this,arguments)}(this._delegate,e,t)}},{key:"emailVerified",get:function(){return this._delegate.emailVerified}},{key:"isAnonymous",get:function(){return this._delegate.isAnonymous}},{key:"metadata",get:function(){return this._delegate.metadata}},{key:"phoneNumber",get:function(){return this._delegate.phoneNumber}},{key:"providerData",get:function(){return this._delegate.providerData}},{key:"refreshToken",get:function(){return this._delegate.refreshToken}},{key:"tenantId",get:function(){return this._delegate.tenantId}},{key:"displayName",get:function(){return this._delegate.displayName}},{key:"email",get:function(){return this._delegate.email}},{key:"photoURL",get:function(){return this._delegate.photoURL}},{key:"providerId",get:function(){return this._delegate.providerId}},{key:"uid",get:function(){return this._delegate.uid}},{key:"auth",get:function(){return this._delegate.auth}}],[{key:"getOrCreate",value:function(t){return e.USER_MAP.has(t)||e.USER_MAP.set(t,new e(t)),e.USER_MAP.get(t)}}]),e}();CT.USER_MAP=new WeakMap;var _T=Jk,NT=function(){function e(t,n){if(oe(this,e),this.app=t,n.isInitialized())return this._delegate=n.getImmediate(),void this.linkUnderlyingAuth();var r=t.options.apiKey;_T(r,"invalid-api-key",{appName:t.name}),_T(r,"invalid-api-key",{appName:t.name});var i="undefined"!==typeof window?kT:void 0;this._delegate=n.initialize({options:{persistence:OT(r,t.name),popupRedirectResolver:i}}),this._delegate._updateErrorMap(Uk),this.linkUnderlyingAuth()}return ue(e,[{key:"emulatorConfig",get:function(){return this._delegate.emulatorConfig}},{key:"currentUser",get:function(){return this._delegate.currentUser?CT.getOrCreate(this._delegate.currentUser):null}},{key:"languageCode",get:function(){return this._delegate.languageCode},set:function(e){this._delegate.languageCode=e}},{key:"settings",get:function(){return this._delegate.settings}},{key:"tenantId",get:function(){return this._delegate.tenantId},set:function(e){this._delegate.tenantId=e}},{key:"useDeviceLanguage",value:function(){this._delegate.useDeviceLanguage()}},{key:"signOut",value:function(){return this._delegate.signOut()}},{key:"useEmulator",value:function(e,t){cw(this._delegate,e,t)}},{key:"applyActionCode",value:function(e){return function(e,t){return Mx.apply(this,arguments)}(this._delegate,e)}},{key:"checkActionCode",value:function(e){return Bx(this._delegate,e)}},{key:"confirmPasswordReset",value:function(e,t){return function(e,t,n){return Px.apply(this,arguments)}(this._delegate,e,t)}},{key:"createUserWithEmailAndPassword",value:function(){var e=ee(ie().mark((function e(t,n){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",IT(this._delegate,Ux(this._delegate,t,n)));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"fetchProvidersForEmail",value:function(e){return this.fetchSignInMethodsForEmail(e)}},{key:"fetchSignInMethodsForEmail",value:function(e){return function(e,t){return Gx.apply(this,arguments)}(this._delegate,e)}},{key:"isSignInWithEmailLink",value:function(e){return function(e,t){var n=Hw.parseLink(t);return"EMAIL_SIGNIN"===(null===n||void 0===n?void 0:n.operation)}(this._delegate,e)}},{key:"getRedirectResult",value:function(){var e=ee(ie().mark((function e(){var t;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _T(uT(),this._delegate,"operation-not-supported-in-this-environment"),e.next=3,VE(this._delegate,kT);case 3:if(t=e.sent){e.next=6;break}return e.abrupt("return",{credential:null,user:null});case 6:return e.abrupt("return",IT(this._delegate,Promise.resolve(t)));case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"addFrameworkForLogging",value:function(e){!function(e,t){sw(e)._logFramework(t)}(this._delegate,e)}},{key:"onAuthStateChanged",value:function(e,t,n){var r=DT(e,t,n),i=r.next,a=r.error,o=r.complete;return this._delegate.onAuthStateChanged(i,a,o)}},{key:"onIdTokenChanged",value:function(e,t,n){var r=DT(e,t,n),i=r.next,a=r.error,o=r.complete;return this._delegate.onIdTokenChanged(i,a,o)}},{key:"sendSignInLinkToEmail",value:function(e,t){return function(e,t,n){return Qx.apply(this,arguments)}(this._delegate,e,t)}},{key:"sendPasswordResetEmail",value:function(e,t){return function(e,t,n){return Rx.apply(this,arguments)}(this._delegate,e,t||void 0)}},{key:"setPersistence",value:function(){var e=ee(ie().mark((function e(t){var n,r;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:vT(this._delegate,t),e.t0=t,e.next=e.t0===hT.SESSION?4:e.t0===hT.LOCAL?6:e.t0===hT.NONE?11:13;break;case 4:return n=gI,e.abrupt("break",14);case 6:return e.next=8,$k(FI)._isAvailable();case 8:return r=e.sent,n=r?FI:vI,e.abrupt("break",14);case 11:return n=qb,e.abrupt("break",14);case 13:return e.abrupt("return",qk("argument-error",{appName:this._delegate.name}));case 14:return e.abrupt("return",this._delegate.setPersistence(n));case 15:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"signInAndRetrieveDataWithCredential",value:function(e){return this.signInWithCredential(e)}},{key:"signInAnonymously",value:function(){return IT(this._delegate,function(e){return sx.apply(this,arguments)}(this._delegate))}},{key:"signInWithCredential",value:function(e){return IT(this._delegate,bx(this._delegate,e))}},{key:"signInWithCustomToken",value:function(e){return IT(this._delegate,function(e,t){return _x.apply(this,arguments)}(this._delegate,e))}},{key:"signInWithEmailAndPassword",value:function(e,t){return IT(this._delegate,function(e,t,n){return bx(Ke(e),Kw.credential(t,n))}(this._delegate,e,t))}},{key:"signInWithEmailLink",value:function(e,t){return IT(this._delegate,function(e,t,n){return Vx.apply(this,arguments)}(this._delegate,e,t))}},{key:"signInWithPhoneNumber",value:function(e,t){return ET(this._delegate,function(e,t,n){return oE.apply(this,arguments)}(this._delegate,e,t))}},{key:"signInWithPopup",value:function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _T(uT(),this._delegate,"operation-not-supported-in-this-environment"),e.abrupt("return",IT(this._delegate,wE(this._delegate,t,kT)));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"signInWithRedirect",value:function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _T(uT(),this._delegate,"operation-not-supported-in-this-environment"),e.next=3,mT(this._delegate);case 3:return e.abrupt("return",BE(this._delegate,t,kT));case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"updateCurrentUser",value:function(e){return this._delegate.updateCurrentUser(e)}},{key:"verifyPasswordResetCode",value:function(e){return function(e,t){return jx.apply(this,arguments)}(this._delegate,e)}},{key:"unwrap",value:function(){return this._delegate}},{key:"_delete",value:function(){return this._delegate._delete()}},{key:"linkUnderlyingAuth",value:function(){var e=this;this._delegate.wrapped=function(){return e}}}]),e}();function DT(e,t,n){var r=e;"function"!==typeof e&&(r=e.next,t=e.error,n=e.complete);var i=r;return{next:function(e){return i(e&&CT.getOrCreate(e))},error:t,complete:n}}function OT(e,t){var n=function(e,t){var n=yT();if(!n)return[];var r=Gb(pT,e,t);switch(n.getItem(r)){case hT.NONE:return[qb];case hT.LOCAL:return[FI,gI];case hT.SESSION:return[gI];default:return[]}}(e,t);if("undefined"===typeof self||n.includes(FI)||n.push(FI),"undefined"!==typeof window)for(var r=0,i=[vI,gI];r<i.length;r++){var a=i[r];n.includes(a)||n.push(a)}return n.includes(qb)||n.push(qb),n}NT.Persistence=hT;var RT=function(){function e(){oe(this,e),this.providerId="phone",this._delegate=new dE(bT(sn.auth()))}return ue(e,[{key:"verifyPhoneNumber",value:function(e,t){return this._delegate.verifyPhoneNumber(e,t)}},{key:"unwrap",value:function(){return this._delegate}}],[{key:"credential",value:function(e,t){return dE.credential(e,t)}}]),e}();RT.PHONE_SIGN_IN_METHOD=dE.PHONE_SIGN_IN_METHOD,RT.PROVIDER_ID=dE.PROVIDER_ID;var PT=Jk,MT=function(){function e(t,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:sn.app();oe(this,e),PT(null===(r=i.options)||void 0===r?void 0:r.apiKey,"invalid-api-key",{appName:i.name}),this._delegate=new rE(t,n,i.auth()),this.type=this._delegate.type}return ue(e,[{key:"clear",value:function(){this._delegate.clear()}},{key:"render",value:function(){return this._delegate.render()}},{key:"verify",value:function(){return this._delegate.verify()}}]),e}();!function(e){e.INTERNAL.registerComponent(new $e("auth-compat",(function(e){var t=e.getProvider("app-compat").getImmediate(),n=e.getProvider("auth");return new NT(t,n)}),"PUBLIC").setServiceProps({ActionCodeInfo:{Operation:{EMAIL_SIGNIN:Ok,PASSWORD_RESET:Rk,RECOVER_EMAIL:Pk,REVERT_SECOND_FACTOR_ADDITION:Mk,VERIFY_AND_CHANGE_EMAIL:Bk,VERIFY_EMAIL:Lk}},EmailAuthProvider:Kw,FacebookAuthProvider:Xw,GithubAuthProvider:$w,GoogleAuthProvider:Zw,OAuthProvider:Yw,SAMLAuthProvider:tx,PhoneAuthProvider:RT,PhoneMultiFactorGenerator:TS,RecaptchaVerifier:MT,TwitterAuthProvider:nx,Auth:NT,AuthCredential:hw,Error:Pe}).setInstantiationMode("LAZY").setMultipleInstances(!1)),e.registerVersion("@firebase/auth-compat","0.2.11")}(sn);var BT=sn.initializeApp({apiKey:"AIzaSyAxleZLwn-nxQ64-92YIWt4D9t_17Cgh2M",authDomain:"kateplk.firebaseapp.com",projectId:"kateplk",storageBucket:"kateplk.appspot.com",messagingSenderId:"198774215688",appId:"1:198774215688:web:da5a55cefa5d63fcb9edbd",measurementId:"G-PL4P48VYFM"}),LT=BT.firestore(),jT=(BT.auth(),BT.storage(),"search_search__dzRn8");function UT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function FT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UT(Object(n),!0).forEach((function(t){zT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function QT(e){return QT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QT(e)}function VT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(u){s=!0,i=u}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}(e,t)||HT(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function GT(e){return function(e){if(Array.isArray(e))return KT(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||HT(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function HT(e,t){if(e){if("string"===typeof e)return KT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?KT(e,t):void 0}}function KT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var WT=function(){},JT={},YT={},XT=null,ZT={mark:WT,measure:WT};try{"undefined"!==typeof window&&(JT=window),"undefined"!==typeof document&&(YT=document),"undefined"!==typeof MutationObserver&&(XT=MutationObserver),"undefined"!==typeof performance&&(ZT=performance)}catch(CO){}var $T=(JT.navigator||{}).userAgent,eC=void 0===$T?"":$T,tC=JT,nC=YT,rC=XT,iC=ZT,aC=(tC.document,!!nC.documentElement&&!!nC.head&&"function"===typeof nC.addEventListener&&"function"===typeof nC.createElement),oC=~eC.indexOf("MSIE")||~eC.indexOf("Trident/"),sC="svg-inline--fa",uC="data-fa-i2svg",cC="data-fa-pseudo-element",lC="data-prefix",fC="data-icon",hC="fontawesome-i2svg",dC=["HTML","HEAD","STYLE","SCRIPT"],pC=function(){try{return!0}catch(CO){return!1}}(),vC={fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit",fa:"solid"},mC={solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"},gC={fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},yC={"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},AC=/fa[srltdbk\-\ ]/,kC="fa-layers-text",bC=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Kit)?.*/i,wC={900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},xC=[1,2,3,4,5,6,7,8,9,10],IC=xC.concat([11,12,13,14,15,16,17,18,19,20]),EC=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],SC="duotone-group",TC="swap-opacity",CC="primary",_C="secondary",NC=[].concat(GT(Object.keys(mC)),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",SC,TC,CC,_C]).concat(xC.map((function(e){return"".concat(e,"x")}))).concat(IC.map((function(e){return"w-".concat(e)}))),DC=tC.FontAwesomeConfig||{};if(nC&&"function"===typeof nC.querySelector){[["data-family-prefix","familyPrefix"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=qT(e,2),n=t[0],r=t[1],i=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=nC.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));void 0!==i&&null!==i&&(DC[r]=i)}))}var OC=FT(FT({},{familyPrefix:"fa",styleDefault:"solid",replacementClass:sC,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0}),DC);OC.autoReplaceSvg||(OC.observeMutations=!1);var RC={};Object.keys(OC).forEach((function(e){Object.defineProperty(RC,e,{enumerable:!0,set:function(t){OC[e]=t,PC.forEach((function(e){return e(RC)}))},get:function(){return OC[e]}})})),tC.FontAwesomeConfig=RC;var PC=[];var MC=16,BC={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function LC(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function jC(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function UC(e){return e.classList?jC(e.classList):(e.getAttribute("class")||"").split(" ").filter((function(e){return e}))}function FC(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function QC(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")}),"")}function VC(e){return e.size!==BC.size||e.x!==BC.x||e.y!==BC.y||e.rotate!==BC.rotate||e.flipX||e.flipY}function zC(){var e="fa",t=sC,n=RC.familyPrefix,r=RC.replacementClass,i=':root, :host {\n  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n  --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n  --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n  --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n  overflow: visible;\n  box-sizing: content-box;\n}\n\n.svg-inline--fa {\n  display: var(--fa-display, inline-block);\n  height: 1em;\n  overflow: visible;\n  vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n  vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n  vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n  vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n  vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n  vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n  vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n  margin-right: var(--fa-pull-margin, 0.3em);\n  width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n  margin-left: var(--fa-pull-margin, 0.3em);\n  width: auto;\n}\n.svg-inline--fa.fa-li {\n  width: var(--fa-li-width, 2em);\n  top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n  width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n  display: inline-block;\n  position: absolute;\n  text-align: center;\n}\n\n.fa-layers {\n  display: inline-block;\n  height: 1em;\n  position: relative;\n  text-align: center;\n  vertical-align: -0.125em;\n  width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-text {\n  left: 50%;\n  top: 50%;\n  -webkit-transform: translate(-50%, -50%);\n          transform: translate(-50%, -50%);\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter {\n  background-color: var(--fa-counter-background-color, #ff253a);\n  border-radius: var(--fa-counter-border-radius, 1em);\n  box-sizing: border-box;\n  color: var(--fa-inverse, #fff);\n  line-height: var(--fa-counter-line-height, 1);\n  max-width: var(--fa-counter-max-width, 5em);\n  min-width: var(--fa-counter-min-width, 1.5em);\n  overflow: hidden;\n  padding: var(--fa-counter-padding, 0.25em 0.5em);\n  right: var(--fa-right, 0);\n  text-overflow: ellipsis;\n  top: var(--fa-top, 0);\n  -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n          transform: scale(var(--fa-counter-scale, 0.25));\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n  bottom: var(--fa-bottom, 0);\n  right: var(--fa-right, 0);\n  top: auto;\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: bottom right;\n          transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n  bottom: var(--fa-bottom, 0);\n  left: var(--fa-left, 0);\n  right: auto;\n  top: auto;\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: bottom left;\n          transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n  top: var(--fa-top, 0);\n  right: var(--fa-right, 0);\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-top-left {\n  left: var(--fa-left, 0);\n  right: auto;\n  top: var(--fa-top, 0);\n  -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n          transform: scale(var(--fa-layers-scale, 0.25));\n  -webkit-transform-origin: top left;\n          transform-origin: top left;\n}\n\n.fa-1x {\n  font-size: 1em;\n}\n\n.fa-2x {\n  font-size: 2em;\n}\n\n.fa-3x {\n  font-size: 3em;\n}\n\n.fa-4x {\n  font-size: 4em;\n}\n\n.fa-5x {\n  font-size: 5em;\n}\n\n.fa-6x {\n  font-size: 6em;\n}\n\n.fa-7x {\n  font-size: 7em;\n}\n\n.fa-8x {\n  font-size: 8em;\n}\n\n.fa-9x {\n  font-size: 9em;\n}\n\n.fa-10x {\n  font-size: 10em;\n}\n\n.fa-2xs {\n  font-size: 0.625em;\n  line-height: 0.1em;\n  vertical-align: 0.225em;\n}\n\n.fa-xs {\n  font-size: 0.75em;\n  line-height: 0.0833333337em;\n  vertical-align: 0.125em;\n}\n\n.fa-sm {\n  font-size: 0.875em;\n  line-height: 0.0714285718em;\n  vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n  font-size: 1.25em;\n  line-height: 0.05em;\n  vertical-align: -0.075em;\n}\n\n.fa-xl {\n  font-size: 1.5em;\n  line-height: 0.0416666682em;\n  vertical-align: -0.125em;\n}\n\n.fa-2xl {\n  font-size: 2em;\n  line-height: 0.03125em;\n  vertical-align: -0.1875em;\n}\n\n.fa-fw {\n  text-align: center;\n  width: 1.25em;\n}\n\n.fa-ul {\n  list-style-type: none;\n  margin-left: var(--fa-li-margin, 2.5em);\n  padding-left: 0;\n}\n.fa-ul > li {\n  position: relative;\n}\n\n.fa-li {\n  left: calc(var(--fa-li-width, 2em) * -1);\n  position: absolute;\n  text-align: center;\n  width: var(--fa-li-width, 2em);\n  line-height: inherit;\n}\n\n.fa-border {\n  border-color: var(--fa-border-color, #eee);\n  border-radius: var(--fa-border-radius, 0.1em);\n  border-style: var(--fa-border-style, solid);\n  border-width: var(--fa-border-width, 0.08em);\n  padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n  float: left;\n  margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n  float: right;\n  margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n  -webkit-animation-name: fa-beat;\n          animation-name: fa-beat;\n  -webkit-animation-delay: var(--fa-animation-delay, 0);\n          animation-delay: var(--fa-animation-delay, 0);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n          animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n  -webkit-animation-name: fa-bounce;\n          animation-name: fa-bounce;\n  -webkit-animation-delay: var(--fa-animation-delay, 0);\n          animation-delay: var(--fa-animation-delay, 0);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n  -webkit-animation-name: fa-fade;\n          animation-name: fa-fade;\n  -webkit-animation-delay: var(--fa-animation-delay, 0);\n          animation-delay: var(--fa-animation-delay, 0);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n  -webkit-animation-name: fa-beat-fade;\n          animation-name: fa-beat-fade;\n  -webkit-animation-delay: var(--fa-animation-delay, 0);\n          animation-delay: var(--fa-animation-delay, 0);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n          animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n  -webkit-animation-name: fa-flip;\n          animation-name: fa-flip;\n  -webkit-animation-delay: var(--fa-animation-delay, 0);\n          animation-delay: var(--fa-animation-delay, 0);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n          animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n  -webkit-animation-name: fa-shake;\n          animation-name: fa-shake;\n  -webkit-animation-delay: var(--fa-animation-delay, 0);\n          animation-delay: var(--fa-animation-delay, 0);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n          animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n  -webkit-animation-name: fa-spin;\n          animation-name: fa-spin;\n  -webkit-animation-delay: var(--fa-animation-delay, 0);\n          animation-delay: var(--fa-animation-delay, 0);\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 2s);\n          animation-duration: var(--fa-animation-duration, 2s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n          animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n  --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n  -webkit-animation-name: fa-spin;\n          animation-name: fa-spin;\n  -webkit-animation-direction: var(--fa-animation-direction, normal);\n          animation-direction: var(--fa-animation-direction, normal);\n  -webkit-animation-duration: var(--fa-animation-duration, 1s);\n          animation-duration: var(--fa-animation-duration, 1s);\n  -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n          animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n          animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n    -webkit-animation-delay: -1ms;\n            animation-delay: -1ms;\n    -webkit-animation-duration: 1ms;\n            animation-duration: 1ms;\n    -webkit-animation-iteration-count: 1;\n            animation-iteration-count: 1;\n    transition-delay: 0s;\n    transition-duration: 0s;\n  }\n}\n@-webkit-keyframes fa-beat {\n  0%, 90% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  45% {\n    -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n            transform: scale(var(--fa-beat-scale, 1.25));\n  }\n}\n@keyframes fa-beat {\n  0%, 90% {\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  45% {\n    -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n            transform: scale(var(--fa-beat-scale, 1.25));\n  }\n}\n@-webkit-keyframes fa-bounce {\n  0% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  10% {\n    -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n            transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n  }\n  30% {\n    -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n            transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n  }\n  50% {\n    -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n            transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n  }\n  57% {\n    -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n            transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n  }\n  64% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  100% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n}\n@keyframes fa-bounce {\n  0% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  10% {\n    -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n            transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n  }\n  30% {\n    -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n            transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n  }\n  50% {\n    -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n            transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n  }\n  57% {\n    -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n            transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n  }\n  64% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n  100% {\n    -webkit-transform: scale(1, 1) translateY(0);\n            transform: scale(1, 1) translateY(0);\n  }\n}\n@-webkit-keyframes fa-fade {\n  50% {\n    opacity: var(--fa-fade-opacity, 0.4);\n  }\n}\n@keyframes fa-fade {\n  50% {\n    opacity: var(--fa-fade-opacity, 0.4);\n  }\n}\n@-webkit-keyframes fa-beat-fade {\n  0%, 100% {\n    opacity: var(--fa-beat-fade-opacity, 0.4);\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  50% {\n    opacity: 1;\n    -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n            transform: scale(var(--fa-beat-fade-scale, 1.125));\n  }\n}\n@keyframes fa-beat-fade {\n  0%, 100% {\n    opacity: var(--fa-beat-fade-opacity, 0.4);\n    -webkit-transform: scale(1);\n            transform: scale(1);\n  }\n  50% {\n    opacity: 1;\n    -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n            transform: scale(var(--fa-beat-fade-scale, 1.125));\n  }\n}\n@-webkit-keyframes fa-flip {\n  50% {\n    -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n            transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n  }\n}\n@keyframes fa-flip {\n  50% {\n    -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n            transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n  }\n}\n@-webkit-keyframes fa-shake {\n  0% {\n    -webkit-transform: rotate(-15deg);\n            transform: rotate(-15deg);\n  }\n  4% {\n    -webkit-transform: rotate(15deg);\n            transform: rotate(15deg);\n  }\n  8%, 24% {\n    -webkit-transform: rotate(-18deg);\n            transform: rotate(-18deg);\n  }\n  12%, 28% {\n    -webkit-transform: rotate(18deg);\n            transform: rotate(18deg);\n  }\n  16% {\n    -webkit-transform: rotate(-22deg);\n            transform: rotate(-22deg);\n  }\n  20% {\n    -webkit-transform: rotate(22deg);\n            transform: rotate(22deg);\n  }\n  32% {\n    -webkit-transform: rotate(-12deg);\n            transform: rotate(-12deg);\n  }\n  36% {\n    -webkit-transform: rotate(12deg);\n            transform: rotate(12deg);\n  }\n  40%, 100% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n}\n@keyframes fa-shake {\n  0% {\n    -webkit-transform: rotate(-15deg);\n            transform: rotate(-15deg);\n  }\n  4% {\n    -webkit-transform: rotate(15deg);\n            transform: rotate(15deg);\n  }\n  8%, 24% {\n    -webkit-transform: rotate(-18deg);\n            transform: rotate(-18deg);\n  }\n  12%, 28% {\n    -webkit-transform: rotate(18deg);\n            transform: rotate(18deg);\n  }\n  16% {\n    -webkit-transform: rotate(-22deg);\n            transform: rotate(-22deg);\n  }\n  20% {\n    -webkit-transform: rotate(22deg);\n            transform: rotate(22deg);\n  }\n  32% {\n    -webkit-transform: rotate(-12deg);\n            transform: rotate(-12deg);\n  }\n  36% {\n    -webkit-transform: rotate(12deg);\n            transform: rotate(12deg);\n  }\n  40%, 100% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n}\n@-webkit-keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n@keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n.fa-rotate-90 {\n  -webkit-transform: rotate(90deg);\n          transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n  -webkit-transform: rotate(180deg);\n          transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n  -webkit-transform: rotate(270deg);\n          transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n  -webkit-transform: scale(-1, 1);\n          transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n  -webkit-transform: scale(1, -1);\n          transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n  -webkit-transform: scale(-1, -1);\n          transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n  -webkit-transform: rotate(var(--fa-rotate-angle, none));\n          transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n  display: inline-block;\n  vertical-align: middle;\n  height: 2em;\n  position: relative;\n  width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n  z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n  height: 1em;\n  width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n  height: 2em;\n  width: 2.5em;\n}\n\n.fa-inverse {\n  color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n  fill: var(--fa-primary-color, currentColor);\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n  fill: var(--fa-secondary-color, currentColor);\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n  fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n  color: var(--fa-inverse, #fff);\n}';if(n!==e||r!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(r))}return i}var qC=!1;function GC(){RC.autoAddCss&&!qC&&(!function(e){if(e&&aC){var t=nC.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=nC.head.childNodes,r=null,i=n.length-1;i>-1;i--){var a=n[i],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=a)}nC.head.insertBefore(t,r)}}(zC()),qC=!0)}var HC={mixout:function(){return{dom:{css:zC,insertCss:GC}}},hooks:function(){return{beforeDOMElementCreation:function(){GC()},beforeI2svg:function(){GC()}}}},KC=tC||{};KC.___FONT_AWESOME___||(KC.___FONT_AWESOME___={}),KC.___FONT_AWESOME___.styles||(KC.___FONT_AWESOME___.styles={}),KC.___FONT_AWESOME___.hooks||(KC.___FONT_AWESOME___.hooks={}),KC.___FONT_AWESOME___.shims||(KC.___FONT_AWESOME___.shims=[]);var WC=KC.___FONT_AWESOME___,JC=[],YC=!1;function XC(e){aC&&(YC?setTimeout(e,0):JC.push(e))}function ZC(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,i=e.children,a=void 0===i?[]:i;return"string"===typeof e?FC(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(FC(e[n]),'" ')}),"").trim()}(r),">").concat(a.map(ZC).join(""),"</").concat(t,">")}function $C(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}aC&&((YC=(nC.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(nC.readyState))||nC.addEventListener("DOMContentLoaded",(function e(){nC.removeEventListener("DOMContentLoaded",e),YC=1,JC.map((function(e){return e()}))})));var e_=function(e,t,n,r){var i,a,o,s=Object.keys(e),u=s.length,c=void 0!==r?function(e,t){return function(n,r,i,a){return e.call(t,n,r,i,a)}}(t,r):t;for(void 0===n?(i=1,o=e[s[0]]):(i=0,o=n);i<u;i++)o=c(o,e[a=s[i]],a,e);return o};function t_(e){var t=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var a=e.charCodeAt(n++);56320==(64512&a)?t.push(((1023&i)<<10)+(1023&a)+65536):(t.push(i),n--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function n_(e){return Object.keys(e).reduce((function(t,n){var r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{})}function r_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,i=void 0!==r&&r,a=n_(t);"function"!==typeof WC.hooks.addPack||i?WC.styles[e]=FT(FT({},WC.styles[e]||{}),a):WC.hooks.addPack(e,n_(t)),"fas"===e&&r_("fa",t)}var i_=WC.styles,a_=WC.shims,o_=Object.values(gC),s_=null,u_={},c_={},l_={},f_={},h_={},d_=Object.keys(vC);function p_(e,t){var n,r=t.split("-"),i=r[0],a=r.slice(1).join("-");return i!==e||""===a||(n=a,~NC.indexOf(n))?null:a}var v_=function(){var e=function(e){return e_(i_,(function(t,n,r){return t[r]=e_(n,e,{}),t}),{})};u_=e((function(e,t,n){if(t[3]&&(e[t[3]]=n),t[2]){var r=t[2].filter((function(e){return"number"===typeof e}));r.forEach((function(t){e[t.toString(16)]=n}))}return e})),c_=e((function(e,t,n){if(e[n]=n,t[2]){var r=t[2].filter((function(e){return"string"===typeof e}));r.forEach((function(t){e[t]=n}))}return e})),h_=e((function(e,t,n){var r=t[2];return e[n]=n,r.forEach((function(t){e[t]=n})),e}));var t="far"in i_||RC.autoFetchSvg,n=e_(a_,(function(e,n){var r=n[0],i=n[1],a=n[2];return"far"!==i||t||(i="fas"),"string"===typeof r&&(e.names[r]={prefix:i,iconName:a}),"number"===typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:a}),e}),{names:{},unicodes:{}});l_=n.names,f_=n.unicodes,s_=k_(RC.styleDefault)};function m_(e,t){return(u_[e]||{})[t]}function g_(e,t){return(h_[e]||{})[t]}function y_(e){return l_[e]||{prefix:null,iconName:null}}function A_(){return s_}!function(e){PC.push(e)}((function(e){s_=k_(e.styleDefault)})),v_();function k_(e){var t=mC[e]||mC[vC[e]],n=e in WC.styles?e:null;return t||n||null}function b_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.skipLookups,r=void 0!==n&&n,i=null,a=e.reduce((function(e,t){var n=p_(RC.familyPrefix,t);if(i_[t]?(t=o_.includes(t)?yC[t]:t,i=t,e.prefix=t):d_.indexOf(t)>-1?(i=t,e.prefix=k_(t)):n?e.iconName=n:t!==RC.replacementClass&&e.rest.push(t),!r&&e.prefix&&e.iconName){var a="fa"===i?y_(e.iconName):{},o=g_(e.prefix,e.iconName);a.prefix&&(i=null),e.iconName=a.iconName||o||e.iconName,e.prefix=a.prefix||e.prefix,"far"!==e.prefix||i_.far||!i_.fas||RC.autoFetchSvg||(e.prefix="fas")}return e}),{prefix:null,iconName:null,rest:[]});return"fa"!==a.prefix&&"fa"!==i||(a.prefix=A_()||"fas"),a}var w_=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n,r;return t=e,n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach((function(t){e.definitions[t]=FT(FT({},e.definitions[t]||{}),i[t]),r_(t,i[t]);var n=gC[t];n&&r_(n,i[t]),v_()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((function(t){var r=n[t],i=r.prefix,a=r.iconName,o=r.icon,s=o[2];e[i]||(e[i]={}),s.length>0&&s.forEach((function(t){"string"===typeof t&&(e[i][t]=o)})),e[i][a]=o})),e}}],n&&VT(t.prototype,n),r&&VT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),x_=[],I_={},E_={},S_=Object.keys(E_);function T_(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var a=I_[e]||[];return a.forEach((function(e){t=e.apply(null,[t].concat(r))})),t}function C_(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=I_[e]||[];i.forEach((function(e){e.apply(null,n)}))}function __(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return E_[e]?E_[e].apply(null,t):void 0}function N_(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||A_();if(t)return t=g_(n,t)||t,$C(D_.definitions,n,t)||$C(WC.styles,n,t)}var D_=new w_,O_={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return aC?(C_("beforeI2svg",e),__("pseudoElements2svg",e),__("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot;!1===RC.autoReplaceSvg&&(RC.autoReplaceSvg=!0),RC.observeMutations=!0,XC((function(){M_({autoReplaceSvgRoot:t}),C_("watch",e)}))}},R_={icon:function(e){if(null===e)return null;if("object"===QT(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:g_(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=k_(e[0]);return{prefix:n,iconName:g_(n,t)||t}}if("string"===typeof e&&(e.indexOf("".concat(RC.familyPrefix,"-"))>-1||e.match(AC))){var r=b_(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||A_(),iconName:g_(r.prefix,r.iconName)||r.iconName}}if("string"===typeof e){var i=A_();return{prefix:i,iconName:g_(i,e)||e}}}},P_={noAuto:function(){RC.autoReplaceSvg=!1,RC.observeMutations=!1,C_("noAuto")},config:RC,dom:O_,parse:R_,library:D_,findIconDefinition:N_,toHtml:ZC},M_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot,n=void 0===t?nC:t;(Object.keys(WC.styles).length>0||RC.autoFetchSvg)&&aC&&RC.autoReplaceSvg&&P_.dom.i2svg({node:n})};function B_(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return ZC(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(aC){var t=nC.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function L_(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,a=e.iconName,o=e.transform,s=e.symbol,u=e.title,c=e.maskId,l=e.titleId,f=e.extra,h=e.watchable,d=void 0!==h&&h,p=r.found?r:n,v=p.width,m=p.height,g="fak"===i,y=[RC.replacementClass,a?"".concat(RC.familyPrefix,"-").concat(a):""].filter((function(e){return-1===f.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(f.classes).join(" "),A={children:[],attributes:FT(FT({},f.attributes),{},{"data-prefix":i,"data-icon":a,class:y,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(v," ").concat(m)})},k=g&&!~f.classes.indexOf("fa-fw")?{width:"".concat(v/m*16*.0625,"em")}:{};d&&(A.attributes[uC]=""),u&&(A.children.push({tag:"title",attributes:{id:A.attributes["aria-labelledby"]||"title-".concat(l||LC())},children:[u]}),delete A.attributes.title);var b=FT(FT({},A),{},{prefix:i,iconName:a,main:n,mask:r,maskId:c,transform:o,symbol:s,styles:FT(FT({},k),f.styles)}),w=r.found&&n.found?__("generateAbstractMask",b)||{children:[],attributes:{}}:__("generateAbstractIcon",b)||{children:[],attributes:{}},x=w.children,I=w.attributes;return b.children=x,b.attributes=I,s?function(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,a=e.symbol,o=!0===a?"".concat(t,"-").concat(RC.familyPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:FT(FT({},i),{},{id:o}),children:r}]}]}(b):function(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(VC(o)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};i.style=QC(FT(FT({},a),{},{"transform-origin":"".concat(s.x+o.x/16,"em ").concat(s.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(b)}function j_(e){var t=e.content,n=e.width,r=e.height,i=e.transform,a=e.title,o=e.extra,s=e.watchable,u=void 0!==s&&s,c=FT(FT(FT({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});u&&(c[uC]="");var l=FT({},o.styles);VC(i)&&(l.transform=function(e){var t=e.transform,n=e.width,r=void 0===n?16:n,i=e.height,a=void 0===i?16:i,o=e.startCentered,s=void 0!==o&&o,u="";return u+=s&&oC?"translate(".concat(t.x/MC-r/2,"em, ").concat(t.y/MC-a/2,"em) "):s?"translate(calc(-50% + ".concat(t.x/MC,"em), calc(-50% + ").concat(t.y/MC,"em)) "):"translate(".concat(t.x/MC,"em, ").concat(t.y/MC,"em) "),u+="scale(".concat(t.size/MC*(t.flipX?-1:1),", ").concat(t.size/MC*(t.flipY?-1:1),") "),u+"rotate(".concat(t.rotate,"deg) ")}({transform:i,startCentered:!0,width:n,height:r}),l["-webkit-transform"]=l.transform);var f=QC(l);f.length>0&&(c.style=f);var h=[];return h.push({tag:"span",attributes:c,children:[t]}),a&&h.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),h}function U_(e){var t=e.content,n=e.title,r=e.extra,i=FT(FT(FT({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),a=QC(r.styles);a.length>0&&(i.style=a);var o=[];return o.push({tag:"span",attributes:i,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var F_=WC.styles;function Q_(e){var t=e[0],n=e[1],r=qT(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(RC.familyPrefix,"-").concat(SC)},children:[{tag:"path",attributes:{class:"".concat(RC.familyPrefix,"-").concat(_C),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(RC.familyPrefix,"-").concat(CC),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}var V_={found:!1,width:512,height:512};function z_(e,t){var n=t;return"fa"===t&&null!==RC.styleDefault&&(t=A_()),new Promise((function(r,i){__("missingIconAbstract");if("fa"===n){var a=y_(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&F_[t]&&F_[t][e])return r(Q_(F_[t][e]));!function(e,t){pC||RC.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(FT(FT({},V_),{},{icon:RC.showMissingIcons&&e&&__("missingIconAbstract")||{}}))}))}var q_=function(){},G_=RC.measurePerformance&&iC&&iC.mark&&iC.measure?iC:{mark:q_,measure:q_},H_='FA "6.0.0"',K_=function(e){G_.mark("".concat(H_," ").concat(e," ends")),G_.measure("".concat(H_," ").concat(e),"".concat(H_," ").concat(e," begins"),"".concat(H_," ").concat(e," ends"))},W_=function(e){return G_.mark("".concat(H_," ").concat(e," begins")),function(){return K_(e)}},J_=function(){};function Y_(e){return"string"===typeof(e.getAttribute?e.getAttribute(uC):null)}function X_(e){return nC.createElementNS("http://www.w3.org/2000/svg",e)}function Z_(e){return nC.createElement(e)}function $_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.ceFn,r=void 0===n?"svg"===e.tag?X_:Z_:n;if("string"===typeof e)return nC.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach((function(t){i.setAttribute(t,e.attributes[t])}));var a=e.children||[];return a.forEach((function(e){i.appendChild($_(e,{ceFn:r}))})),i}var eN={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach((function(e){t.parentNode.insertBefore($_(e),t)})),null===t.getAttribute(uC)&&RC.keepOriginalSource){var n=nC.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~UC(t).indexOf(RC.replacementClass))return eN.replace(e);var r=new RegExp("".concat(RC.familyPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(" ").reduce((function(e,t){return t===RC.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e}),{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),0===i.toNode.length?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}var a=n.map((function(e){return ZC(e)})).join("\n");t.setAttribute(uC,""),t.innerHTML=a}};function tN(e){e()}function nN(e,t){var n="function"===typeof t?t:J_;if(0===e.length)n();else{var r=tN;"async"===RC.mutateApproach&&(r=tC.requestAnimationFrame||tN),r((function(){var t=!0===RC.autoReplaceSvg?eN.replace:eN[RC.autoReplaceSvg]||eN.replace,r=W_("mutate");e.map(t),r(),n()}))}}var rN=!1;function iN(){rN=!0}function aN(){rN=!1}var oN=null;function sN(e){if(rC&&RC.observeMutations){var t=e.treeCallback,n=void 0===t?J_:t,r=e.nodeCallback,i=void 0===r?J_:r,a=e.pseudoElementsCallback,o=void 0===a?J_:a,s=e.observeMutationsRoot,u=void 0===s?nC:s;oN=new rC((function(e){if(!rN){var t=A_();jC(e).forEach((function(e){if("childList"===e.type&&e.addedNodes.length>0&&!Y_(e.addedNodes[0])&&(RC.searchPseudoElements&&o(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&RC.searchPseudoElements&&o(e.target.parentNode),"attributes"===e.type&&Y_(e.target)&&~EC.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(lC):null,n=e.getAttribute?e.getAttribute(fC):null;return t&&n}(e.target)){var r=b_(UC(e.target)),a=r.prefix,s=r.iconName;e.target.setAttribute(lC,a||t),s&&e.target.setAttribute(fC,s)}else(u=e.target)&&u.classList&&u.classList.contains&&u.classList.contains(RC.replacementClass)&&i(e.target);var u}))}})),aC&&oN.observe(u,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function uN(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce((function(e,t){var n=t.split(":"),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(":").trim()),e}),{})),n}function cN(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"",i=b_(UC(e));return i.prefix||(i.prefix=A_()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||i.prefix&&r.length>0&&(i.iconName=function(e,t){return(c_[e]||{})[t]}(i.prefix,e.innerText)||m_(i.prefix,t_(e.innerText))),i}function lN(e){var t=jC(e.attributes).reduce((function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e}),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return RC.autoA11y&&(n?t["aria-labelledby"]="".concat(RC.replacementClass,"-title-").concat(r||LC()):(t["aria-hidden"]="true",t.focusable="false")),t}function fN(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=cN(e),r=n.iconName,i=n.prefix,a=n.rest,o=lN(e),s=T_("parseNodeAttributes",{},e),u=t.styleParser?uN(e):[];return FT({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:BC,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:u,attributes:o}},s)}var hN=WC.styles;function dN(e){var t="nest"===RC.autoReplaceSvg?fN(e,{styleParser:!1}):fN(e);return~t.extra.classes.indexOf(kC)?__("generateLayersText",e,t):__("generateSvgReplacementMutation",e,t)}function pN(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!aC)return Promise.resolve();var n=nC.documentElement.classList,r=function(e){return n.add("".concat(hC,"-").concat(e))},i=function(e){return n.remove("".concat(hC,"-").concat(e))},a=RC.autoFetchSvg?Object.keys(vC):Object.keys(hN),o=[".".concat(kC,":not([").concat(uC,"])")].concat(a.map((function(e){return".".concat(e,":not([").concat(uC,"])")}))).join(", ");if(0===o.length)return Promise.resolve();var s=[];try{s=jC(e.querySelectorAll(o))}catch(CO){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");var u=W_("onTree"),c=s.reduce((function(e,t){try{var n=dN(t);n&&e.push(n)}catch(CO){pC||"MissingIcon"===CO.name&&console.error(CO)}return e}),[]);return new Promise((function(e,n){Promise.all(c).then((function(n){nN(n,(function(){r("active"),r("complete"),i("pending"),"function"===typeof t&&t(),u(),e()}))})).catch((function(e){u(),n(e)}))}))}function vN(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;dN(e).then((function(e){e&&nN([e],t)}))}var mN=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?BC:n,i=t.symbol,a=void 0!==i&&i,o=t.mask,s=void 0===o?null:o,u=t.maskId,c=void 0===u?null:u,l=t.title,f=void 0===l?null:l,h=t.titleId,d=void 0===h?null:h,p=t.classes,v=void 0===p?[]:p,m=t.attributes,g=void 0===m?{}:m,y=t.styles,A=void 0===y?{}:y;if(e){var k=e.prefix,b=e.iconName,w=e.icon;return B_(FT({type:"icon"},e),(function(){return C_("beforeDOMElementCreation",{iconDefinition:e,params:t}),RC.autoA11y&&(f?g["aria-labelledby"]="".concat(RC.replacementClass,"-title-").concat(d||LC()):(g["aria-hidden"]="true",g.focusable="false")),L_({icons:{main:Q_(w),mask:s?Q_(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:k,iconName:b,transform:FT(FT({},BC),r),symbol:a,title:f,maskId:c,titleId:d,extra:{attributes:g,styles:A,classes:v}})}))}},gN={mixout:function(){return{icon:(e=mN,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t||{}).icon?t:N_(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:N_(i||{})),e(r,FT(FT({},n),{},{mask:i}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=pN,e.nodeCallback=vN,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?nC:t,r=e.callback;return pN(n,void 0===r?function(){}:r)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.title,i=t.titleId,a=t.prefix,o=t.transform,s=t.symbol,u=t.mask,c=t.maskId,l=t.extra;return new Promise((function(t,f){Promise.all([z_(n,a),u.iconName?z_(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(u){var f=qT(u,2),h=f[0],d=f[1];t([e,L_({icons:{main:h,mask:d},prefix:a,iconName:n,transform:o,symbol:s,maskId:c,title:r,titleId:i,extra:l,watchable:!0})])})).catch(f)}))},e.generateAbstractIcon=function(e){var t,n=e.children,r=e.attributes,i=e.main,a=e.transform,o=QC(e.styles);return o.length>0&&(r.style=o),VC(a)&&(t=__("generateAbstractTransformGrouping",{main:i,transform:a,containerWidth:i.width,iconWidth:i.width})),n.push(t||i.icon),{children:n,attributes:r}}}},yN={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,r=void 0===n?[]:n;return B_({type:"layer"},(function(){C_("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e((function(e){Array.isArray(e)?e.map((function(e){n=n.concat(e.abstract)})):n=n.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(RC.familyPrefix,"-layers")].concat(GT(r)).join(" ")},children:n}]}))}}}},AN={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.title,r=void 0===n?null:n,i=t.classes,a=void 0===i?[]:i,o=t.attributes,s=void 0===o?{}:o,u=t.styles,c=void 0===u?{}:u;return B_({type:"counter",content:e},(function(){return C_("beforeDOMElementCreation",{content:e,params:t}),U_({content:e.toString(),title:r,extra:{attributes:s,styles:c,classes:["".concat(RC.familyPrefix,"-layers-counter")].concat(GT(a))}})}))}}}},kN={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?BC:n,i=t.title,a=void 0===i?null:i,o=t.classes,s=void 0===o?[]:o,u=t.attributes,c=void 0===u?{}:u,l=t.styles,f=void 0===l?{}:l;return B_({type:"text",content:e},(function(){return C_("beforeDOMElementCreation",{content:e,params:t}),j_({content:e,transform:FT(FT({},BC),r),title:a,extra:{attributes:c,styles:f,classes:["".concat(RC.familyPrefix,"-layers-text")].concat(GT(s))}})}))}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,r=t.transform,i=t.extra,a=null,o=null;if(oC){var s=parseInt(getComputedStyle(e).fontSize,10),u=e.getBoundingClientRect();a=u.width/s,o=u.height/s}return RC.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,j_({content:e.innerHTML,width:a,height:o,transform:r,title:n,extra:i,watchable:!0})])}}},bN=new RegExp('"',"ug"),wN=[1105920,1112319];function xN(e,t){var n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise((function(r,i){if(null!==e.getAttribute(n))return r();var a=jC(e.children).filter((function(e){return e.getAttribute(cC)===t}))[0],o=tC.getComputedStyle(e,t),s=o.getPropertyValue("font-family").match(bC),u=o.getPropertyValue("font-weight"),c=o.getPropertyValue("content");if(a&&!s)return e.removeChild(a),r();if(s&&"none"!==c&&""!==c){var l=o.getPropertyValue("content"),f=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?mC[s[2].toLowerCase()]:wC[u],h=function(e){var t=e.replace(bN,""),n=function(e,t){var n,r=e.length,i=e.charCodeAt(t);return i>=55296&&i<=56319&&r>t+1&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?1024*(i-55296)+n-56320+65536:i}(t,0),r=n>=wN[0]&&n<=wN[1],i=2===t.length&&t[0]===t[1];return{value:t_(i?t[0]:t),isSecondary:r||i}}(l),d=h.value,p=h.isSecondary,v=s[0].startsWith("FontAwesome"),m=m_(f,d),g=m;if(v){var y=function(e){var t=f_[e],n=m_("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(d);y.iconName&&y.prefix&&(m=y.iconName,f=y.prefix)}if(!m||p||a&&a.getAttribute(lC)===f&&a.getAttribute(fC)===g)r();else{e.setAttribute(n,g),a&&e.removeChild(a);var A={iconName:null,title:null,titleId:null,prefix:null,transform:BC,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},k=A.extra;k.attributes[cC]=t,z_(m,f).then((function(i){var a=L_(FT(FT({},A),{},{icons:{main:i,mask:{prefix:null,iconName:null,rest:[]}},prefix:f,iconName:g,extra:k,watchable:!0})),o=nC.createElement("svg");"::before"===t?e.insertBefore(o,e.firstChild):e.appendChild(o),o.outerHTML=a.map((function(e){return ZC(e)})).join("\n"),e.removeAttribute(n),r()})).catch(i)}}else r()}))}function IN(e){return Promise.all([xN(e,"::before"),xN(e,"::after")])}function EN(e){return e.parentNode!==document.head&&!~dC.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(cC)&&(!e.parentNode||"svg"!==e.parentNode.tagName)}function SN(e){if(aC)return new Promise((function(t,n){var r=jC(e.querySelectorAll("*")).filter(EN).map(IN),i=W_("searchPseudoElements");iN(),Promise.all(r).then((function(){i(),aN(),t()})).catch((function(){i(),aN(),n()}))}))}var TN=!1,CN=function(e){return e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),r=n[0],i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},_N={mixout:function(){return{parse:{transform:function(e){return CN(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=CN(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,i=e.iconWidth,a={transform:"translate(".concat(r/2," 256)")},o="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),u="rotate(".concat(n.rotate," 0 0)"),c={outer:a,inner:{transform:"".concat(o," ").concat(s," ").concat(u)},path:{transform:"translate(".concat(i/2*-1," -256)")}};return{tag:"g",attributes:FT({},c.outer),children:[{tag:"g",attributes:FT({},c.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:FT(FT({},t.icon.attributes),c.path)}]}]}}}},NN={x:0,y:0,width:"100%",height:"100%"};function DN(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var ON={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?b_(n.split(" ").map((function(e){return e.trim()}))):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=A_()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n=e.children,r=e.attributes,i=e.main,a=e.mask,o=e.maskId,s=e.transform,u=i.width,c=i.icon,l=a.width,f=a.icon,h=function(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},a="translate(".concat(32*t.x,", ").concat(32*t.y,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(a," ").concat(o," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}({transform:s,containerWidth:l,iconWidth:u}),d={tag:"rect",attributes:FT(FT({},NN),{},{fill:"white"})},p=c.children?{children:c.children.map(DN)}:{},v={tag:"g",attributes:FT({},h.inner),children:[DN(FT({tag:c.tag,attributes:FT(FT({},c.attributes),h.path)},p))]},m={tag:"g",attributes:FT({},h.outer),children:[v]},g="mask-".concat(o||LC()),y="clip-".concat(o||LC()),A={tag:"mask",attributes:FT(FT({},NN),{},{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[d,m]},k={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(t=f,"g"===t.tag?t.children:[t])},A]};return n.push(k,{tag:"rect",attributes:FT({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(g,")")},NN)}),{children:n,attributes:r}}}},RN={provides:function(e){var t=!1;tC.matchMedia&&(t=tC.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:FT(FT({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var i=FT(FT({},r),{},{attributeName:"opacity"}),a={tag:"circle",attributes:FT(FT({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:FT(FT({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:FT(FT({},i),{},{values:"1;0;1;1;0;1;"})}),e.push(a),e.push({tag:"path",attributes:FT(FT({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:FT(FT({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:FT(FT({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:FT(FT({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){var n=t.mixoutsTo;x_=e,I_={},Object.keys(E_).forEach((function(e){-1===S_.indexOf(e)&&delete E_[e]})),x_.forEach((function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((function(e){"function"===typeof t[e]&&(n[e]=t[e]),"object"===QT(t[e])&&Object.keys(t[e]).forEach((function(r){n[e]||(n[e]={}),n[e][r]=t[e][r]}))})),e.hooks){var r=e.hooks();Object.keys(r).forEach((function(e){I_[e]||(I_[e]=[]),I_[e].push(r[e])}))}e.provides&&e.provides(E_)}))}([HC,gN,yN,AN,kN,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=SN,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?nC:t;RC.searchPseudoElements&&SN(n)}}},{mixout:function(){return{dom:{unwatch:function(){iN(),TN=!0}}}},hooks:function(){return{bootstrap:function(){sN(T_("mutationObserverCallbacks",{}))},noAuto:function(){oN&&oN.disconnect()},watch:function(e){var t=e.observeMutationsRoot;TN?aN():sN(T_("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},_N,ON,RN,{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}}}}],{mixoutsTo:P_});var PN=P_.parse,MN=P_.icon,BN=n(7),LN=n.n(BN);function jN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function UN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jN(Object(n),!0).forEach((function(t){QN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FN(e){return FN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},FN(e)}function QN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VN(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function zN(e){return function(e){if(Array.isArray(e))return qN(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return qN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qN(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function GN(e){return t=e,(t-=0)===t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var HN=["style"];function KN(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),i=GN(t.slice(0,r)),a=t.slice(r+1).trim();return i.startsWith("webkit")?e[(n=i,n.charAt(0).toUpperCase()+n.slice(1))]=a:e[i]=a,e}),{})}var WN=!1;try{WN=!0}catch(CO){}function JN(e){return e&&"object"===FN(e)&&e.prefix&&e.iconName&&e.icon?e:PN.icon?PN.icon(e):null===e?null:e&&"object"===FN(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"===typeof e?{prefix:"fas",iconName:e}:void 0}function YN(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?QN({},e,t):{}}var XN=["forwardedRef"];function ZN(e){var t=e.forwardedRef,n=VN(e,XN),r=n.icon,i=n.mask,a=n.symbol,o=n.className,s=n.title,u=n.titleId,c=JN(r),l=YN("classes",[].concat(zN(function(e){var t,n=e.beat,r=e.fade,i=e.flash,a=e.spin,o=e.spinPulse,s=e.spinReverse,u=e.pulse,c=e.fixedWidth,l=e.inverse,f=e.border,h=e.listItem,d=e.flip,p=e.size,v=e.rotation,m=e.pull,g=(QN(t={"fa-beat":n,"fa-fade":r,"fa-flash":i,"fa-spin":a,"fa-spin-reverse":s,"fa-spin-pulse":o,"fa-pulse":u,"fa-fw":c,"fa-inverse":l,"fa-border":f,"fa-li":h,"fa-flip-horizontal":"horizontal"===d||"both"===d,"fa-flip-vertical":"vertical"===d||"both"===d},"fa-".concat(p),"undefined"!==typeof p&&null!==p),QN(t,"fa-rotate-".concat(v),"undefined"!==typeof v&&null!==v&&0!==v),QN(t,"fa-pull-".concat(m),"undefined"!==typeof m&&null!==m),QN(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(g).map((function(e){return g[e]?e:null})).filter((function(e){return e}))}(n)),zN(o.split(" ")))),f=YN("transform","string"===typeof n.transform?PN.transform(n.transform):n.transform),h=YN("mask",JN(i)),d=MN(c,UN(UN(UN(UN({},l),f),h),{},{symbol:a,title:s,titleId:u}));if(!d)return function(){var e;!WN&&console&&"function"===typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",c),null;var p=d.abstract,v={ref:t};return Object.keys(n).forEach((function(e){ZN.defaultProps.hasOwnProperty(e)||(v[e]=n[e])})),$N(p[0],v)}ZN.displayName="FontAwesomeIcon",ZN.propTypes={beat:LN().bool,border:LN().bool,className:LN().string,fade:LN().bool,flash:LN().bool,mask:LN().oneOfType([LN().object,LN().array,LN().string]),fixedWidth:LN().bool,inverse:LN().bool,flip:LN().oneOf(["horizontal","vertical","both"]),icon:LN().oneOfType([LN().object,LN().array,LN().string]),listItem:LN().bool,pull:LN().oneOf(["right","left"]),pulse:LN().bool,rotation:LN().oneOf([0,90,180,270]),size:LN().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:LN().bool,spinPulse:LN().bool,spinReverse:LN().bool,symbol:LN().oneOfType([LN().bool,LN().string]),title:LN().string,transform:LN().oneOfType([LN().string,LN().object]),swapOpacity:LN().bool},ZN.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var $N=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"===typeof n)return n;var i=(n.children||[]).map((function(n){return e(t,n)})),a=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=KN(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[GN(t)]=r}return e}),{attrs:{}}),o=r.style,s=void 0===o?{}:o,u=VN(r,HN);return a.attrs.style=UN(UN({},a.attrs.style),s),t.apply(void 0,[n.tag,UN(UN({},a.attrs),u)].concat(zN(i)))}.bind(null,u.createElement),eD={prefix:"fas",iconName:"address-book",icon:[512,512,[62138,"contact-book"],"f2b9","M384 0H96C60.65 0 32 28.65 32 64v384c0 35.35 28.65 64 64 64h288c35.35 0 64-28.65 64-64V64C448 28.65 419.3 0 384 0zM240 128c35.35 0 64 28.65 64 64s-28.65 64-64 64c-35.34 0-64-28.65-64-64S204.7 128 240 128zM336 384h-192C135.2 384 128 376.8 128 368C128 323.8 163.8 288 208 288h64c44.18 0 80 35.82 80 80C352 376.8 344.8 384 336 384zM496 64H480v96h16C504.8 160 512 152.8 512 144v-64C512 71.16 504.8 64 496 64zM496 192H480v96h16C504.8 288 512 280.8 512 272v-64C512 199.2 504.8 192 496 192zM496 320H480v96h16c8.836 0 16-7.164 16-16v-64C512 327.2 504.8 320 496 320z"]},tD={prefix:"fas",iconName:"angle-down",icon:[384,512,[8964],"f107","M192 384c-8.188 0-16.38-3.125-22.62-9.375l-160-160c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L192 306.8l137.4-137.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-160 160C208.4 380.9 200.2 384 192 384z"]},nD={prefix:"fas",iconName:"angles-down",icon:[384,512,["angle-double-down"],"f103","M169.4 278.6C175.6 284.9 183.8 288 192 288s16.38-3.125 22.62-9.375l160-160c12.5-12.5 12.5-32.75 0-45.25s-32.75-12.5-45.25 0L192 210.8L54.63 73.38c-12.5-12.5-32.75-12.5-45.25 0s-12.5 32.75 0 45.25L169.4 278.6zM329.4 265.4L192 402.8L54.63 265.4c-12.5-12.5-32.75-12.5-45.25 0s-12.5 32.75 0 45.25l160 160C175.6 476.9 183.8 480 192 480s16.38-3.125 22.62-9.375l160-160c12.5-12.5 12.5-32.75 0-45.25S341.9 252.9 329.4 265.4z"]},rD={prefix:"fas",iconName:"angles-up",icon:[384,512,["angle-double-up"],"f102","M54.63 246.6L192 109.3l137.4 137.4C335.6 252.9 343.8 256 352 256s16.38-3.125 22.62-9.375c12.5-12.5 12.5-32.75 0-45.25l-160-160c-12.5-12.5-32.75-12.5-45.25 0l-160 160c-12.5 12.5-12.5 32.75 0 45.25S42.13 259.1 54.63 246.6zM214.6 233.4c-12.5-12.5-32.75-12.5-45.25 0l-160 160c-12.5 12.5-12.5 32.75 0 45.25s32.75 12.5 45.25 0L192 301.3l137.4 137.4C335.6 444.9 343.8 448 352 448s16.38-3.125 22.62-9.375c12.5-12.5 12.5-32.75 0-45.25L214.6 233.4z"]},iD={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.33 14.33 64 32 64H416C433.7 64 448 78.33 448 96C448 113.7 433.7 128 416 128H32C14.33 128 0 113.7 0 96zM0 256C0 238.3 14.33 224 32 224H416C433.7 224 448 238.3 448 256C448 273.7 433.7 288 416 288H32C14.33 288 0 273.7 0 256zM416 448H32C14.33 448 0 433.7 0 416C0 398.3 14.33 384 32 384H416C433.7 384 448 398.3 448 416C448 433.7 433.7 448 416 448z"]},aD={prefix:"fas",iconName:"house",icon:[576,512,[63498,63500,127968,"home","home-alt","home-lg-alt"],"f015","M575.8 255.5C575.8 273.5 560.8 287.6 543.8 287.6H511.8L512.5 447.7C512.5 450.5 512.3 453.1 512 455.8V472C512 494.1 494.1 512 472 512H456C454.9 512 453.8 511.1 452.7 511.9C451.3 511.1 449.9 512 448.5 512H392C369.9 512 352 494.1 352 472V384C352 366.3 337.7 352 320 352H256C238.3 352 224 366.3 224 384V472C224 494.1 206.1 512 184 512H128.1C126.6 512 125.1 511.9 123.6 511.8C122.4 511.9 121.2 512 120 512H104C81.91 512 64 494.1 64 472V360C64 359.1 64.03 358.1 64.09 357.2V287.6H32.05C14.02 287.6 0 273.5 0 255.5C0 246.5 3.004 238.5 10.01 231.5L266.4 8.016C273.4 1.002 281.4 0 288.4 0C295.4 0 303.4 2.004 309.5 7.014L564.8 231.5C572.8 238.5 576.9 246.5 575.8 255.5L575.8 255.5z"]},oD=aD,sD={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M500.3 443.7l-119.7-119.7c27.22-40.41 40.65-90.9 33.46-144.7C401.8 87.79 326.8 13.32 235.2 1.723C99.01-15.51-15.51 99.01 1.724 235.2c11.6 91.64 86.08 166.7 177.6 178.9c53.8 7.189 104.3-6.236 144.7-33.46l119.7 119.7c15.62 15.62 40.95 15.62 56.57 0C515.9 484.7 515.9 459.3 500.3 443.7zM79.1 208c0-70.58 57.42-128 128-128s128 57.42 128 128c0 70.58-57.42 128-128 128S79.1 278.6 79.1 208z"]},uD=sD,cD={prefix:"fas",iconName:"microchip",icon:[512,512,[],"f2db","M160 352h192V160H160V352zM448 176h48C504.8 176 512 168.8 512 160s-7.162-16-16-16H448V128c0-35.35-28.65-64-64-64h-16V16C368 7.164 360.8 0 352 0c-8.836 0-16 7.164-16 16V64h-64V16C272 7.164 264.8 0 256 0C247.2 0 240 7.164 240 16V64h-64V16C176 7.164 168.8 0 160 0C151.2 0 144 7.164 144 16V64H128C92.65 64 64 92.65 64 128v16H16C7.164 144 0 151.2 0 160s7.164 16 16 16H64v64H16C7.164 240 0 247.2 0 256s7.164 16 16 16H64v64H16C7.164 336 0 343.2 0 352s7.164 16 16 16H64V384c0 35.35 28.65 64 64 64h16v48C144 504.8 151.2 512 160 512c8.838 0 16-7.164 16-16V448h64v48c0 8.836 7.164 16 16 16c8.838 0 16-7.164 16-16V448h64v48c0 8.836 7.164 16 16 16c8.838 0 16-7.164 16-16V448H384c35.35 0 64-28.65 64-64v-16h48c8.838 0 16-7.164 16-16s-7.162-16-16-16H448v-64h48C504.8 272 512 264.8 512 256s-7.162-16-16-16H448V176zM384 368c0 8.836-7.162 16-16 16h-224C135.2 384 128 376.8 128 368v-224C128 135.2 135.2 128 144 128h224C376.8 128 384 135.2 384 144V368z"]},lD={prefix:"fas",iconName:"phone",icon:[512,512,[128379,128222],"f095","M511.2 387l-23.25 100.8c-3.266 14.25-15.79 24.22-30.46 24.22C205.2 512 0 306.8 0 54.5c0-14.66 9.969-27.2 24.22-30.45l100.8-23.25C139.7-2.602 154.7 5.018 160.8 18.92l46.52 108.5c5.438 12.78 1.77 27.67-8.98 36.45L144.5 207.1c33.98 69.22 90.26 125.5 159.5 159.5l44.08-53.8c8.688-10.78 23.69-14.51 36.47-8.975l108.5 46.51C506.1 357.2 514.6 372.4 511.2 387z"]},fD={prefix:"fas",iconName:"user",icon:[448,512,[62144,128100],"f007","M224 256c70.7 0 128-57.31 128-128s-57.3-128-128-128C153.3 0 96 57.31 96 128S153.3 256 224 256zM274.7 304H173.3C77.61 304 0 381.6 0 477.3c0 19.14 15.52 34.67 34.66 34.67h378.7C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304z"]},hD=n(184);function dD(){var e=s((0,u.useState)(""),2),t=e[0],n=e[1],r=s((0,u.useState)([]),2),i=r[0],a=r[1],o=s((0,u.useState)([]),2),c=o[0],l=o[1];return(0,u.useEffect)((function(){var e=LT.collection("industrial"),t=LT.collection("process");e.get().then(function(){var e=ee(ie().mark((function e(n){var r;return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=[],e.next=3,n.forEach((function(e){r=[].concat(ne(r),[e.data()])}));case 3:t.get().then(function(){var e=ee(ie().mark((function e(t){return ie().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.forEach((function(e){r=[].concat(ne(r),[e.data()])}));case 2:a(r);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}),[]),(0,hD.jsx)(hD.Fragment,{children:(0,hD.jsxs)("div",{className:jT,children:[(0,hD.jsx)(ZN,{icon:uD}),(0,hD.jsx)("input",{value:t,id:"",type:"search",placeholder:"Find Product",onChange:function(e){!function(e){n(e);var t=[];e?(i.map((function(n,r){(n.name.toLowerCase().search(e)>-1||n.description.toLowerCase().search(e)>-1)&&(t=[].concat(ne(t),[n.name]))})),console.log(t),l(t)):l([])}(e.target.value)}}),c.map((function(e,t){return(0,hD.jsx)("div",{children:e},t)}))]})})}function pD(){var e=s((0,u.useState)(window.location.pathname),2),t=e[0],n=e[1],r=s((0,u.useState)(!1),2),i=r[0],a=r[1],o=function(){a(!i)};return(0,u.useEffect)((function(){n(window.location.pathname)}),[]),(0,hD.jsxs)(hD.Fragment,{children:[(0,hD.jsxs)("div",{className:X.container,children:[(0,hD.jsxs)("div",{className:X.logoContainner,children:[(0,hD.jsx)(Y,{to:"/",onClick:function(){return n("/")},children:(0,hD.jsx)("img",{src:Z})}),(0,hD.jsx)(Y,{to:"/",onClick:function(){return n("/")},children:(0,hD.jsxs)("span",{children:[(0,hD.jsx)("div",{className:X.nameCompany1,children:"KATE PLK "}),(0,hD.jsx)("div",{className:X.nameCompany2,children:"\u0e1a\u0e23\u0e34\u0e29\u0e31\u0e17 \u0e40\u0e04\u0e17 \u0e1e\u0e35\u0e41\u0e2d\u0e25\u0e40\u0e04 \u0e08\u0e33\u0e01\u0e31\u0e14"})]})}),(0,hD.jsx)(dD,{})]}),(0,hD.jsxs)("div",{className:X.menuContainer,children:[(0,hD.jsx)("div",{className:"/"==t?X.menuActive:X.menu,children:(0,hD.jsxs)(Y,{to:"/",onClick:function(){return n("/")},children:[(0,hD.jsx)("div",{className:X.menuIcon,children:(0,hD.jsx)(ZN,{icon:oD})}),(0,hD.jsx)("div",{className:X.menuText,children:"HOME"})]})}),(0,hD.jsx)("div",{className:"/product"==t||"/industrial"==t||"/process"==t?X.menuActive:X.menu,children:(0,hD.jsxs)(Y,{to:"/product",onClick:function(){return n("/product")},children:[(0,hD.jsx)("div",{className:X.menuIcon,children:(0,hD.jsx)(ZN,{icon:cD})}),(0,hD.jsx)("div",{className:X.menuText,children:"PRODUCT"})]})}),(0,hD.jsx)("div",{className:"/about"==t?X.menuActive:X.menu,children:(0,hD.jsxs)(Y,{to:"/about",onClick:function(){return n("/about")},children:[(0,hD.jsx)("div",{className:X.menuIcon,children:(0,hD.jsx)(ZN,{icon:fD})}),(0,hD.jsx)("div",{className:X.menuText,children:"ABOUT US"})]})}),(0,hD.jsx)("div",{className:"/contact"==t?X.menuActive:X.menu,children:(0,hD.jsxs)(Y,{to:"/contact",onClick:function(){return n("/contact")},children:[(0,hD.jsx)("div",{className:X.menuIcon,children:(0,hD.jsx)(ZN,{icon:lD})}),(0,hD.jsx)("div",{className:X.menuText,children:"CONTACT"})]})})]}),(0,hD.jsx)("div",{className:X.hamburger,onClick:o,children:(0,hD.jsx)(ZN,{icon:iD})})]}),i&&(0,hD.jsxs)("div",{className:X.conMobile,children:[(0,hD.jsx)("div",{className:X.menuMobile,children:(0,hD.jsxs)(Y,{to:"/",onClick:o,children:[(0,hD.jsx)("div",{className:X.menuMobileIcon,children:(0,hD.jsx)(ZN,{icon:oD})}),(0,hD.jsx)("div",{className:X.menuMobileText,children:"HOME"})]})}),(0,hD.jsx)("div",{className:X.menuMobile,children:(0,hD.jsxs)(Y,{to:"/product",onClick:o,children:[(0,hD.jsx)("div",{className:X.menuMobileIcon,children:(0,hD.jsx)(ZN,{icon:cD})}),(0,hD.jsx)("div",{className:X.menuMobileText,children:"PRODUCT"})]})}),(0,hD.jsx)("div",{className:X.menuMobile,children:(0,hD.jsxs)(Y,{to:"/about",onClick:o,children:[(0,hD.jsx)("div",{className:X.menuMobileIcon,children:(0,hD.jsx)(ZN,{icon:fD})}),(0,hD.jsx)("div",{className:X.menuMobileText,children:"ABOUT US"})]})}),(0,hD.jsx)("div",{className:X.menuMobile,children:(0,hD.jsxs)(Y,{to:"/contact",onClick:o,children:[(0,hD.jsx)("div",{className:X.menuMobileIcon,children:(0,hD.jsx)(ZN,{icon:lD})}),(0,hD.jsx)("div",{className:X.menuMobileText,children:"CONTACT"})]})}),(0,hD.jsxs)("div",{className:X.searchMobile,children:[(0,hD.jsx)(ZN,{icon:uD}),(0,hD.jsx)("input",{id:"",type:"search",placeholder:"Find Product"})]})]})]})}var vD="home_container__D-yyI",mD="home_conRow1__kk1Tz",gD="home_clipShow__O7saI",yD="home_conContent__sBDSS",AD="home_logo__srZ2V",kD="home_content__mNkXc",bD="home_conRow2__mKajt",wD="home_stickerFesto__O4U6u",xD="home_buttonProduct__WXzDH",ID=n(806),ED=n(689);function SD(){return(0,hD.jsxs)("div",{className:vD,children:[(0,hD.jsxs)("div",{className:mD,children:[(0,hD.jsx)("div",{className:gD,children:(0,hD.jsx)("iframe",{width:"560",height:"315",src:"https://www.youtube.com/embed/cbamdfLuCpA?loop=1&controls=1&playlist=cbamdfLuCpA&disablekb=1&autoplay=1&mute=1&enablejsapi=1",title:"YouTube video player",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:!0})}),(0,hD.jsxs)("div",{className:yD,children:[(0,hD.jsx)("div",{className:AD,children:(0,hD.jsx)("img",{src:"https://www.allied-automation.com/wp-content/uploads/2018/06/festo.png"})}),(0,hD.jsxs)("div",{className:kD,children:["\u0e1a\u0e23\u0e34\u0e29\u0e31\u0e17 \u0e40\u0e04\u0e17 \u0e1e\u0e35\u0e41\u0e2d\u0e25\u0e40\u0e04 \u0e40\u0e1b\u0e47\u0e19",(0,hD.jsx)("strong",{children:"\u0e15\u0e31\u0e27\u0e41\u0e17\u0e19\u0e08\u0e33\u0e2b\u0e19\u0e48\u0e32\u0e22 Festo"})," \u0e2d\u0e22\u0e48\u0e32\u0e07\u0e40\u0e1b\u0e47\u0e19\u0e17\u0e32\u0e07\u0e01\u0e32\u0e23 (Festo Thailand, \u0e40\u0e1f\u0e2a\u0e42\u0e15\u0e49 \u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22) \u0e22\u0e34\u0e19\u0e14\u0e35\u0e43\u0e2b\u0e49\u0e04\u0e33\u0e1b\u0e23\u0e36\u0e01\u0e29\u0e32\u0e41\u0e25\u0e30\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23 \u0e2a\u0e2d\u0e1a\u0e16\u0e32\u0e21\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 \u0e42\u0e17\u0e23 0816157464 katesaraporn@kateplk.co.th"]})]})]}),(0,hD.jsxs)("div",{className:bD,children:[(0,hD.jsxs)("div",{children:[(0,hD.jsx)("h1",{children:"\u0e01\u0e32\u0e23\u0e14\u0e39\u0e23\u0e2b\u0e31\u0e2a\u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c\u0e40\u0e1f\u0e2a\u0e42\u0e15\u0e49"}),(0,hD.jsx)("p",{children:"\u0e01\u0e32\u0e23\u0e14\u0e39\u0e23\u0e2b\u0e31\u0e2a \u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c\u0e19\u0e34\u0e27\u0e40\u0e21\u0e15\u0e34\u0e01 Festo \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e14\u0e39\u0e44\u0e14\u0e49\u0e08\u0e32\u0e01\u0e2a\u0e15\u0e34\u0e4a\u0e01\u0e40\u0e01\u0e2d\u0e23\u0e4c\u0e17\u0e35\u0e48\u0e15\u0e34\u0e14\u0e2d\u0e22\u0e39\u0e48\u0e01\u0e31\u0e1a\u0e2d\u0e38\u0e1b\u0e01\u0e23\u0e13\u0e4c\u0e2b\u0e23\u0e37\u0e2d\u0e41\u0e1c\u0e48\u0e19\u0e1b\u0e49\u0e32\u0e22\u0e01\u0e33\u0e01\u0e31\u0e1a (Name plate)"})]}),(0,hD.jsxs)("div",{className:wD,children:[(0,hD.jsx)("img",{src:ED}),(0,hD.jsxs)("div",{children:[(0,hD.jsxs)("li",{children:[(0,hD.jsx)("b",{children:"\u0e41\u0e16\u0e27\u0e1a\u0e19"})," \u0e04\u0e37\u0e2d Order Code"]}),(0,hD.jsxs)("li",{children:[(0,hD.jsx)("b",{children:"\u0e40\u0e25\u0e02\u0e0a\u0e38\u0e14\u0e41\u0e23\u0e01"})," \u0e04\u0e37\u0e2d Part Number"]}),(0,hD.jsxs)("li",{children:[(0,hD.jsx)("b",{children:"\u0e40\u0e25\u0e02\u0e0a\u0e38\u0e14\u0e2b\u0e25\u0e31\u0e07"})," \u0e04\u0e37\u0e2d Series \u0e2b\u0e23\u0e37\u0e2d\u0e23\u0e38\u0e48\u0e19\u0e02\u0e2d\u0e07\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\u0e14\u0e31\u0e07\u0e01\u0e25\u0e48\u0e32\u0e27"]})]})]}),(0,hD.jsx)("div",{children:"\u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e2b\u0e23\u0e37\u0e2d\u0e1c\u0e39\u0e49\u0e2d\u0e2d\u0e01\u0e41\u0e1a\u0e1a\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e19\u0e33\u0e42\u0e04\u0e4a\u0e14 (Code) \u0e14\u0e31\u0e07\u0e01\u0e25\u0e48\u0e32\u0e27\u0e41\u0e08\u0e49\u0e07\u0e01\u0e31\u0e1a\u0e1d\u0e48\u0e32\u0e22\u0e02\u0e32\u0e22 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e2a\u0e2d\u0e1a\u0e16\u0e32\u0e21\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21 \u0e2b\u0e23\u0e37\u0e2d\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e01\u0e32\u0e23\u0e2a\u0e31\u0e48\u0e07\u0e0b\u0e37\u0e49\u0e2d\u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\u0e44\u0e14\u0e49 \u0e0b\u0e36\u0e48\u0e07\u0e42\u0e04\u0e4a\u0e15\u0e17\u0e35\u0e48\u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07 \u0e08\u0e30\u0e0a\u0e48\u0e27\u0e22\u0e25\u0e14\u0e04\u0e27\u0e32\u0e21\u0e1c\u0e34\u0e14\u0e1e\u0e25\u0e32\u0e14\u0e43\u0e19\u0e01\u0e32\u0e23\u0e2a\u0e31\u0e48\u0e07\u0e0b\u0e37\u0e49\u0e2d \u0e41\u0e25\u0e30\u0e01\u0e32\u0e23\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a"}),(0,hD.jsx)("div",{id:"button",className:xD,children:"PRODUCT --\x3e"})]})]})}var TD="about_container__os5uj",CD="about_conRow1__2xgyt",_D="about_conContent__S20Rl",ND="about_content__N-XKm",DD="about_headText__mmIQo",OD="about_Slideshow__QgPTV";function RD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function PD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RD(Object(n),!0).forEach((function(t){ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var MD=n(46),BD=(n(895),n(403),function(){return(0,hD.jsx)("div",{children:(0,hD.jsx)(MD.Zoom,PD(PD({},{indicators:!0,scale:1.4}),{},{children:["https://www.protecautomacao.com.br/system/upload/website/7/image_editor/1575005433_5de0acf94da98.jpg","https://www.festo.com/media/cms/central/media/editorial/img/cc/business-sectors-automation-didactic-16977-festo_fix1920x880.jpg","https://www.festo.com/media/cms/central/media/editorial/img/men-optimization-maintenance-machine-d0440_13c_fix1920x880.jpg"].map((function(e,t){return(0,hD.jsx)("div",{style:{width:"100%"},children:(0,hD.jsx)("img",{style:{objectFit:"cover",width:"360px",height:"240px"},src:e})},t)}))}))})});function LD(){return(0,hD.jsx)("div",{className:TD,children:(0,hD.jsxs)("div",{className:CD,children:[(0,hD.jsxs)("div",{className:_D,children:[(0,hD.jsx)("div",{className:DD,children:"Festo Industrial-automation"}),(0,hD.jsx)("div",{className:ND,children:"\u0e1a\u0e23\u0e34\u0e29\u0e31\u0e17 \u0e40\u0e04\u0e17 \u0e1e\u0e35\u0e41\u0e2d\u0e25\u0e40\u0e04 \u0e08\u0e33\u0e01\u0e31\u0e14 \u0e44\u0e14\u0e49\u0e23\u0e31\u0e1a\u0e2a\u0e34\u0e17\u0e18\u0e34\u0e4c\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e31\u0e27\u0e41\u0e17\u0e19\u0e08\u0e33\u0e2b\u0e19\u0e48\u0e32\u0e22 Festo \u0e2d\u0e22\u0e48\u0e32\u0e07\u0e40\u0e1b\u0e47\u0e19\u0e17\u0e32\u0e07\u0e01\u0e32\u0e23 (Festo Thailand, \u0e40\u0e1f\u0e2a\u0e42\u0e15\u0e49 \u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22) \u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\u0e25\u0e34\u0e02\u0e2a\u0e34\u0e17\u0e18\u0e34\u0e4c\u0e41\u0e17\u0e49 \u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07\u0e15\u0e32\u0e21\u0e01\u0e0f\u0e2b\u0e21\u0e32\u0e22\u0e02\u0e2d\u0e07 Festo, \u0e2a\u0e34\u0e19\u0e04\u0e49\u0e32\u0e17\u0e38\u0e01\u0e0a\u0e34\u0e49\u0e19\u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e2a\u0e48\u0e07\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e23\u0e27\u0e14\u0e40\u0e23\u0e47\u0e27 \u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e43\u0e2b\u0e49\u0e04\u0e33\u0e1b\u0e23\u0e36\u0e01\u0e29\u0e32 \u0e41\u0e19\u0e30\u0e19\u0e33\u0e42\u0e14\u0e22\u0e17\u0e35\u0e21\u0e07\u0e32\u0e19\u0e1c\u0e39\u0e49\u0e40\u0e0a\u0e35\u0e48\u0e22\u0e27\u0e0a\u0e32\u0e0d\u0e14\u0e49\u0e32\u0e19\u0e19\u0e34\u0e27\u0e40\u0e21\u0e15\u0e34\u0e01\u0e2a\u0e4c Festo \u0e2d\u0e31\u0e19\u0e14\u0e31\u0e1a\u0e15\u0e49\u0e19\u0e46\u0e02\u0e2d\u0e07\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28 \u0e40\u0e23\u0e32\u0e22\u0e34\u0e19\u0e14\u0e35\u0e43\u0e2b\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e17\u0e38\u0e01\u0e17\u0e48\u0e32\u0e19 \u0e14\u0e49\u0e27\u0e22\u0e04\u0e27\u0e32\u0e21\u0e40\u0e15\u0e47\u0e21\u0e43\u0e08 \u0e2a\u0e2d\u0e1a\u0e16\u0e32\u0e21\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 \u0e42\u0e17\u0e23 081 615 7464 \u0e2b\u0e23\u0e37\u0e2d\u0e17\u0e35\u0e48 katesaraporn@kateplk.co.th"})]}),(0,hD.jsx)("div",{className:OD,children:(0,hD.jsx)(BD,{})})]})})}var jD="contact_container__tfGUj";function UD(){return(0,hD.jsx)("div",{className:jD})}var FD="product_container__YYpiz",QD="product_conMenu__eLrMM",VD="product_catalogMenu__oN8PE",zD="product_catalogMenuActive__Wj62M",qD="product_menuTypeContainer__Z4ix8",GD="product_menu__LImFp",HD="product_menuActive__stB1x",KD="product_subTypeProduct__QttY3";function WD(){var e=s((0,u.useState)(!0),2),t=e[0],n=e[1],r=s((0,u.useState)(!0),2),i=r[0],a=r[1],o=s((0,u.useState)(window.location.pathname),2),c=o[0],l=o[1],f=s((0,u.useState)([]),2),h=f[0],d=f[1],p=s((0,u.useState)([]),2),v=p[0],m=p[1];return(0,u.useEffect)((function(){l(window.location.pathname),LT.collection("industrial").onSnapshot((function(e){var t=[];e.forEach((function(e){t=[].concat(ne(t),[e.data()])})),d(t)})),LT.collection("process").onSnapshot((function(e){var t=[];e.forEach((function(e){t=[].concat(ne(t),[e.data()])})),m(t)}))}),[]),(0,hD.jsx)(hD.Fragment,{children:(0,hD.jsx)("div",{className:FD,children:(0,hD.jsxs)("div",{className:QD,children:[(0,hD.jsx)("div",{children:(0,hD.jsx)(Y,{to:"/product",onClick:function(){return l("/product")},children:(0,hD.jsx)("div",{className:"/product"==c?zD:VD,children:(0,hD.jsx)("span",{children:" Festo Catalog"})})})}),(0,hD.jsx)("p",{children:"CATERGORIES PRODUCT"}),(0,hD.jsxs)("div",{className:qD,children:[(0,hD.jsxs)("div",{className:"/industrial"==c?HD:GD,children:[(0,hD.jsx)(Y,{to:"/industrial",onClick:function(){return l("/industrial")},children:(0,hD.jsx)("span",{children:"Festo Industrial-automation"})}),(0,hD.jsx)(ZN,{icon:tD,onClick:function(){return n(!t)}}),t&&(0,hD.jsx)("div",{className:KD,children:h.map((function(e,t){return(0,hD.jsx)("a",{href:"/industrial#".concat(t-1>-1?h[t-1].name:""),children:e.name})}))})]}),(0,hD.jsxs)("div",{className:"/process"==c?HD:GD,children:[(0,hD.jsx)(Y,{to:"/process",onClick:function(){return l("/process")},children:(0,hD.jsx)("span",{children:"Festo Process-automation"})}),(0,hD.jsx)(ZN,{icon:tD,onClick:function(){return a(!i)}}),i&&(0,hD.jsx)("div",{className:KD,children:v.map((function(e,t){return(0,hD.jsx)("a",{href:"/process#".concat(t-1>-1?v[t-1].name:""),children:e.name})}))})]})]})]})})})}var JD="indexProduct_container__DrU0A",YD="indexProduct_contentContainer__M+5b8",XD="indexProduct_message__iH7+P",ZD="indexProduct_icon__WH4FY",$D="indexProduct_book__dNkX0",eO=n(970);function tO(){return(0,hD.jsxs)("div",{className:JD,children:[(0,hD.jsx)(WD,{}),(0,hD.jsxs)("div",{className:YD,children:[(0,hD.jsx)("div",{className:XD,children:"Click the book thumbnail below to open this book in a LightBox"}),(0,hD.jsx)("div",{className:ZD,children:(0,hD.jsx)(ZN,{icon:nD})}),(0,hD.jsx)("div",{className:$D,children:(0,hD.jsx)("a",{href:"https://online.pubhtml5.com/evgg/gaqw/",target:"_blank",children:(0,hD.jsx)("img",{src:eO})})})]})]})}var nO="industrialProduct_container__694m7",rO="industrialProduct_contentContainer__ZTihk",iO="industrialProduct_poster__bUbTr",aO="industrialProduct_productContainer__g6S4E",oO="industrialProduct_product__0Teti",sO="industrialProduct_icon__-Up9c",uO=n(701);n(647),n(261),n(872),n(889),n(353),n(292),n(279),n(979),n(410),n(529),n(395),n(552);function cO(){var e=s((0,u.useState)([]),2),t=e[0],n=e[1];return(0,u.useEffect)((function(){LT.collection("industrial").onSnapshot((function(e){var t=[];e.forEach((function(e){t=[].concat(ne(t),[e.data()])})),n(t)}))}),[]),(0,hD.jsxs)("div",{className:nO,children:[(0,hD.jsx)(WD,{}),(0,hD.jsxs)("div",{className:rO,children:[(0,hD.jsx)("h1",{children:"Festo Industrial-automation"}),(0,hD.jsx)("div",{className:aO,children:t.map((function(e,t){return(0,hD.jsxs)("div",{className:oO,id:e.name,children:[(0,hD.jsx)("img",{src:e.imgUrl}),(0,hD.jsxs)("div",{children:[e.name,(0,hD.jsx)("p",{children:e.description})]})]},t)}))}),(0,hD.jsx)("div",{className:iO,children:(0,hD.jsx)("img",{src:uO})}),(0,hD.jsx)("div",{className:sO,children:(0,hD.jsx)("a",{href:"#",rel:"nofollow",children:(0,hD.jsx)(ZN,{icon:rD})})})]})]})}var lO="footer_container__zyW38",fO="footer_logo__qGHi3",hO="footer_location__CLIKj",dO="footer_map__pC-f1",pO="footer_conContact__pnm35",vO="footer_contact__4yyzt",mO=n(53),gO=n(959),yO=n(614),AO=n(385);function kO(){return(0,hD.jsxs)("div",{className:lO,children:[(0,hD.jsxs)("div",{className:fO,children:[(0,hD.jsx)("img",{src:ID}),(0,hD.jsx)("img",{src:mO})]}),(0,hD.jsxs)("div",{className:hO,children:[(0,hD.jsx)("h2",{children:"KATE PLK Co., Ltd."}),(0,hD.jsx)("div",{children:"135/48 MOO 8. HUA-RO SUB_DISTRICT MUENG DISTRICT. PHITSANULOK THAILAND 65000 "}),(0,hD.jsx)("div",{children:"135/48 \u0e21.8 \u0e15.\u0e2b\u0e31\u0e27\u0e23\u0e2d \u0e2d.\u0e40\u0e21\u0e37\u0e2d\u0e07 \u0e08.\u0e1e\u0e34\u0e29\u0e13\u0e38\u0e42\u0e25\u0e01 65000"}),(0,hD.jsx)("div",{children:"+66 81 615 7464"}),(0,hD.jsx)("div",{children:"katesaraporn@kateplk.co.th"}),(0,hD.jsxs)("div",{className:pO,children:[(0,hD.jsx)("div",{className:vO,children:(0,hD.jsx)("a",{href:"mailto:katesaraporn@kateplk.co.th",target:"_blank",children:(0,hD.jsx)("img",{src:gO})})}),(0,hD.jsx)("div",{className:vO,children:(0,hD.jsx)("a",{href:"https://line.me/ti/p/vxMsaMNMLE",target:"_blank",children:(0,hD.jsx)("img",{src:yO})})}),(0,hD.jsx)("div",{className:vO,children:(0,hD.jsx)("a",{href:"https://www.facebook.com/KATEPLK/",target:"_blank",children:(0,hD.jsx)("img",{src:AO})})})]}),(0,hD.jsx)("div",{className:dO,children:(0,hD.jsx)("a",{href:"https://www.google.co.th/maps/@16.8478577,100.2744715,3a,75y,355.14h,101.02t/data=!3m9!1e1!3m7!1sQlYI0IUhpAvGowJyjL0oMw!2e0!7i13312!8i6656!9m2!1b1!2i46",target:"_blank",children:"Open the map"})})]})]})}var bO={container:"popup_container__IxTZO",profileContainer:"popup_profileContainer__HDKdW",profile:"popup_profile__-7WFL",name:"popup_name__NAOuC",position:"popup_position__JZ7TN",contactContainer:"popup_contactContainer__d5hNU",conPhone:"popup_conPhone__87T9D",conLine:"popup_conLine__ZppeX",conMail:"popup_conMail__Rw-AV",conCircle:"popup_conCircle__YSDWn"},wO=n(841);function xO(){var e=s((0,u.useState)(!0),2),t=e[0],n=e[1];return(0,hD.jsxs)(hD.Fragment,{children:[t&&(0,hD.jsxs)("div",{className:bO.container,children:[(0,hD.jsxs)("div",{className:bO.profileContainer,children:[(0,hD.jsx)("div",{className:bO.profile,children:(0,hD.jsx)("img",{src:wO})}),(0,hD.jsxs)("div",{className:bO.personalInfo,children:[(0,hD.jsx)("div",{className:bO.name,children:"Katesaraporn Supharattanaangkul"}),(0,hD.jsx)("div",{className:bO.position,children:"SALE MANAGER"})]})]}),(0,hD.jsxs)("div",{className:bO.contactContainer,children:[(0,hD.jsx)("a",{href:"tel:0816157464",target:"_blank",children:(0,hD.jsx)("div",{className:bO.conPhone,children:"PHONE"})}),(0,hD.jsx)("a",{href:"https://line.me/ti/p/vxMsaMNMLE",target:"_blank",children:(0,hD.jsx)("div",{className:bO.conLine,children:"LINE"})}),(0,hD.jsx)("a",{href:"mailto:katesaraporn@kateplk.co.th",target:"_blank",children:(0,hD.jsx)("div",{className:bO.conMail,children:"MAIL"})})]})]}),(0,hD.jsx)("div",{className:bO.conCircle,onClick:function(){return n(!t)},children:(0,hD.jsx)(ZN,{icon:eD})})]})}var IO={container:"processProduct_container__rb-SP",contentContainer:"processProduct_contentContainer__aoQZf",productContainer:"processProduct_productContainer__2gecO",product:"processProduct_product__LEMWK",poster:"processProduct_poster__Q4t17",icon:"processProduct_icon__r0dkk"},EO=n(163);n(826),n(930),n(519),n(505),n(186),n(497),n(532),n(679),n(190);function SO(){var e=s((0,u.useState)([]),2),t=e[0],n=e[1];return(0,u.useEffect)((function(){LT.collection("process").onSnapshot((function(e){var t=[];e.forEach((function(e){t=[].concat(ne(t),[e.data()])})),n(t)}))}),[]),(0,hD.jsxs)("div",{className:IO.container,children:[(0,hD.jsx)(WD,{}),(0,hD.jsxs)("div",{className:IO.contentContainer,children:[(0,hD.jsx)("h1",{children:"Festo Process-automation"}),(0,hD.jsx)("div",{className:IO.productContainer,children:t.map((function(e,t){return(0,hD.jsxs)("div",{className:IO.product,id:e.name,children:[(0,hD.jsx)("div",{className:IO.imgProduct,children:(0,hD.jsx)("img",{src:e.imgUrl})}),(0,hD.jsxs)("div",{children:[e.name,(0,hD.jsx)("p",{children:e.description})]})]},t)}))}),(0,hD.jsx)("div",{className:IO.poster,children:(0,hD.jsx)("img",{src:EO})}),(0,hD.jsx)("div",{className:IO.icon,children:(0,hD.jsx)("a",{href:"#",rel:"nofollow",children:(0,hD.jsx)(ZN,{icon:rD})})})]})]})}function TO(){var e=s((0,u.useState)(""),2),t=e[0],n=e[1],r=s((0,u.useState)(""),2),i=r[0],a=r[1],o=s((0,u.useState)(""),2),c=o[0],l=o[1];return(0,hD.jsxs)("div",{style:{marginTop:125,color:"#fff"},children:[(0,hD.jsx)("input",{value:t,onChange:function(e){return n(e.target.value)},placeholder:"name"}),(0,hD.jsx)("input",{value:i,onChange:function(e){return a(e.target.value)},placeholder:"des"}),(0,hD.jsx)("input",{value:c,onChange:function(e){return l(e.target.value)},placeholder:"url"}),(0,hD.jsx)("div",{onClick:function(){t&&i&&c&&LT.collection("industrial").add({name:t,description:i,imgUrl:c}).then((function(e){n(""),a(""),l("")}))},children:"industrial"}),(0,hD.jsx)("div",{onClick:function(){t&&i&&c&&LT.collection("process").add({name:t,description:i,imgUrl:c}).then((function(e){n(""),a(""),l("")}))},children:"process"})]})}(0,t.render)((0,hD.jsxs)(J,{children:[(0,hD.jsx)(pD,{}),(0,hD.jsxs)(E,{children:[(0,hD.jsx)(x,{path:"/",index:!0,element:(0,hD.jsx)(SD,{})}),(0,hD.jsx)(x,{path:"/product",element:(0,hD.jsx)(tO,{})}),(0,hD.jsx)(x,{path:"/indexProduct",element:(0,hD.jsx)(tO,{})}),(0,hD.jsx)(x,{path:"/industrial",element:(0,hD.jsx)(cO,{})}),(0,hD.jsx)(x,{path:"/process",element:(0,hD.jsx)(SO,{})}),(0,hD.jsx)(x,{path:"/about",element:(0,hD.jsx)(LD,{})}),(0,hD.jsx)(x,{path:"/contact",element:(0,hD.jsx)(UD,{})}),(0,hD.jsx)(x,{path:"/admin",element:(0,hD.jsx)(TO,{})})]}),(0,hD.jsx)(xO,{}),(0,hD.jsx)(kO,{})]}),document.getElementById("root"))}()}();
  //# sourceMappingURL=main.6bcf38b1.js.map