PageSourceSearch

https://earthquake-detection-program.netlify.app/static/js/main.06f65c1b.js

js earthquake-detection-program.netlify.app collected 2026-10-03 10:40:30 UTC 628,085 bytes, 3 lines download raw bytes

vendor: 1,808 bytes, lines 1-2
1/*! For license information please see main.06f65c1b.js.LICENSE.txt */
2!function(){var e={4569:function(e,t,n){e.exports=n(8036)},3381:function(e,t,n){"use strict";var i=n(3589),r=n(7297),o=n(9301),a=n(9774),s=n(1804),l=n(9145),u=n(5411),c=n(6789),h=n(4531),f=n(6569),d=n(6261);e.exports=function(e){return new Promise((function(t,n){var p,m=e.data,v=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}i.isFormData(m)&&i.isStandardBrowserEnv()&&delete v["Content-Type"];var _=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+w)}var k=s(e.baseURL,e.url);function A(){if(_){var i="getAllResponseHeaders"in _?l(_.getAllResponseHeaders()):null,o={data:g&&"text"!==g&&"json"!==g?_.response:_.responseText,status:_.status,statusText:_.statusText,headers:i,config:e,request:_};r((function(e){t(e),y()}),(function(e){n(e),y()}),o),_=null}}if(_.open(e.method.toUpperCase(),a(k,e.params,e.paramsSerializer),!0),_.timeout=e.timeout,"onloadend"in _?_.onloadend=A:_.onreadystatechange=function(){_&&4===_.readyState&&(0!==_.status||_.responseURL&&0===_.responseURL.indexOf("file:"))&&setTimeout(A)},_.onabort=function(){_&&(n(new h("Request aborted",h.ECONNABORTED,e,_)),_=null)},_.onerror=function(){n(new h("Network Error",h.ERR_NETWORK,e,_,_)),_=null},_.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new h(t,i.clarifyTimeoutError?h.ETIMEDOUT:h.ECONNABORTED,e,_)),_=null},i.isStandardBrowserEnv()){var x=(e.withCredentials||u(k))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;x&&(v[e.xsrfHeaderName]=x)}
2"setRequestHeader"in _&&i.forEach(v,(function(e,t){"undefined"===typeof m&&"content-type"===t.toLowerCase()?delete v[t]:_.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(_.withCredentials=!!e.withCredentials),g&&"json"!==g&&(_.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&_.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&_.upload&&_.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){_&&(n(!e||e&&e.type?new f:e),_.abort(),_=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),m||(m=null);var C=d(k);C&&-1===["http","https","file"].indexOf(C)?n(new h("Unsupported protocol "+C+":",h.ERR_BAD_REQUEST,e)):_.send(m)}))}},8036:function(e,t,n){"use strict";var i=n(3589),r=n(4049),o=n(3773),a=n(777);var s=function e(t){var n=new o(t),s=r(o.prototype.request,n);return i.extend(s,o.prototype,n),i.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(1709));s.Axios=o,s.CanceledError=n(6569),s.CancelToken=n(6857),s.isCancel=n(5517),s.VERSION=n(7600).version,s.toFormData=n(1397),s.AxiosError=n(4531),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(8089),s.isAxiosError=n(9580),e.exports=s,e.exports.default=s},6857:function(e,t,n){"use strict";var i=n(6569);function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,i=n._listeners.length;for(t=0;t<i;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,i=new Promise((function(e){n.subscribe(e),t=e})).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e){n.reason||(n.reason=new i(e),t(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},r.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},r.source=function(){var e;return{token:new r((function(t){e=t})),cancel:e}},e.exports=r},6569:function(e,t,n){"use strict";var i=n(4531);function r(e){i.call(this,null==e?"canceled":e,i.ERR_CANCELED),this.name="CanceledError"}n(3589).inherits(r,i,{__CANCEL__:!0}),e.exports=r},5517:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},3773:function(e,t,n){"use strict";var i=n(3589),r=n(9774),o=n(7470),a=n(2733),s=n(777),l=n(1804),u=n(7835),c=u.validators;function h(e){this.defaults=e,this.interceptors={request:new o,response:new o}}h.prototype.request=function(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var i=[],r=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));var o,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!r){var h=[a,void 0];for(Array.prototype.unshift.apply(h,i),h=h.concat(l),o=Promise.resolve(t);h.length;)o=o.then(h.shift(),h.shift());return o}for(var f=t;i.length;){var d=i.shift(),p=i.shift();try{f=d(f)}catch(m){p(m);break}}try{o=a(f)}catch(m){return Promise.reject(m)}for(;l.length;)o=o.then(l.shift(),l.shift());return o},h.prototype.getUri=function(e){e=s(this.defaults,e);var t=l(e.baseURL,e.url);return r(t,e.params,e.paramsSerializer)}
vendor: 4,197 bytes, line 2
2,i.forEach(["delete","get","head","options"],(function(e){h.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,r){return this.request(s(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}h.prototype[e]=t(),h.prototype[e+"Form"]=t(!0)})),e.exports=h},4531:function(e,t,n){"use strict";var i=n(3589);function r(e,t,n,i,r){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}i.inherits(r,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=r.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(r,a),Object.defineProperty(o,"isAxiosError",{value:!0}),r.from=function(e,t,n,a,s,l){var u=Object.create(o);return i.toFlatObject(e,u,(function(e){return e!==Error.prototype})),r.call(u,e.message,t,n,a,s),u.name=e.name,l&&Object.assign(u,l),u},e.exports=r},7470:function(e,t,n){"use strict";var i=n(3589);function r(){this.handlers=[]}r.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},1804:function(e,t,n){"use strict";var i=n(4044),r=n(9549);e.exports=function(e,t){return e&&!i(t)?r(e,t):t}},2733:function(e,t,n){"use strict";var i=n(3589),r=n(2693),o=n(5517),a=n(1709),s=n(6569);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},777:function(e,t,n){"use strict";var i=n(3589);e.exports=function(e,t){t=t||{};var n={};function r(e,t){return i.isPlainObject(e)&&i.isPlainObject(t)?i.merge(e,t):i.isPlainObject(t)?i.merge({},t):i.isArray(t)?t.slice():t}function o(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function a(e){if(!i.isUndefined(t[e]))return r(void 0,t[e])}function s(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function l(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return i.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||o,r=t(e);i.isUndefined(r)&&t!==l||(n[e]=r)})),n}},7297:function(e,t,n){"use strict";var i=n(4531);e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new i("Request failed with status code "+n.status,[i.ERR_BAD_REQUEST,i.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},2693:function(e,t,n){"use strict";var i=n(3589),r=n(1709);e.exports=function(e,t,n){var o=this||r;
2return i.forEach(n,(function(n){e=n.call(o,e,t)})),e}},1709:function(e,t,n){"use strict";var i=n(3589),r=n(4341),o=n(4531),a=n(6789),s=n(1397),l={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c={transitional:a,adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(3381)),e}(),transformRequest:[function(e,t){if(r(t,"Accept"),r(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e))return e;if(i.isArrayBufferView(e))return e.buffer;if(i.isURLSearchParams(e))return u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,o=i.isObject(e),a=t&&t["Content-Type"];if((n=i.isFileList(e))||o&&"multipart/form-data"===a){var l=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,l&&new l)}return o||"application/json"===a?(u(t,"application/json"),function(e,t,n){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||r&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(a){if("SyntaxError"===s.name)throw o.from(s,o.ERR_BAD_RESPONSE,this,null,this.response);throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(3035)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){c.headers[e]=i.merge
2(l)})),e.exports=c},6789:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7600:function(e){e.exports={version:"0.27.2"}},4049:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return e.apply(t,n)}}},9774:function(e,t,n){"use strict";var i=n(3589);function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(i.isURLSearchParams(t))o=t.toString();else{var a=[];i.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,(function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},9549:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},9301:function(e,t,n){"use strict";var i=n(3589);e.exports=i.isStandardBrowserEnv()?{write:function(e,t,n,r,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(r)&&s.push("path="+r),i.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},4044:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},9580:function(e,t,n){"use strict";var i=n(3589);e.exports=function(e){return i.isObject(e)&&!0===e.isAxiosError}},5411:function(e,t,n){"use strict";var i=n(3589);e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},4341:function(e,t,n){"use strict";var i=n(3589);e.exports=function(e,t){i.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))}},3035:function(e){e.exports=null},9145:function(e,t,n){"use strict";var i=n(3589),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(i.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=i.trim(e.substr(0,o)).toLowerCase(),n=i.trim(e.substr(o+1)),t){if(a[t]&&r.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},6261:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8089:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},1397:function(e,t,n){"use strict";var i=n(3589);e.exports=function(e,t){t=t||new FormData;var n=[];function r(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(o,a){if(i.isPlainObject(o)||i.isArray(o)){if(-1!==n.indexOf(o))throw Error("Circular reference detected in "+a);
2n.push(o),i.forEach(o,(function(n,o){if(!i.isUndefined(n)){var s,l=a?a+"."+o:o;if(n&&!a&&"object"===typeof n)if(i.endsWith(o,"{}"))n=JSON.stringify(n);else if(i.endsWith(o,"[]")&&(s=i.toArray(n)))return void s.forEach((function(e){!i.isUndefined(e)&&t.append(l,r(e))}));e(n,l)}})),n.pop()}else t.append(a,r(o))}(e),t}},7835:function(e,t,n){"use strict";var i=n(7600).version,r=n(4531),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+i+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,s){if(!1===e)throw new r(o(i," has been removed"+(t?" in "+t:"")),r.ERR_DEPRECATED);return t&&!a[i]&&(a[i]=!0,console.warn(o(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,s)}},e.exports={assertOptions:function(e,t,n){if("object"!==typeof e)throw new r("options must be an object",r.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(e),o=i.length;o-- >0;){var a=i[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new r("option "+a+" must be "+u,r.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new r("Unknown option "+a,r.ERR_BAD_OPTION)}},validators:o}},3589:function(e,t,n){"use strict";var i,r=n(4049),o=Object.prototype.toString,a=(i=Object.create(null),function(e){var t=o.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function l(e){return Array.isArray(e)}function u(e){return"undefined"===typeof e}var c=s("ArrayBuffer");function h(e){return null!==e&&"object"===typeof e}function f(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var d=s("Date"),p=s("File"),m=s("Blob"),v=s("FileList");function g(e){return"[object Function]"===o.call(e)}var y=s("URLSearchParams");function _(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),l(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}var b,w=(b="undefined"!==typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return b&&e instanceof b});e.exports={isArray:l,isArrayBuffer:c,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"===typeof FormData&&e instanceof FormData||o.call(e)===t||g(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer)},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:h,isPlainObject:f,isUndefined:u,isDate:d,isFile:p,isBlob:m,isFunction:g,isStream:function(e){return h(e)&&g(e.pipe)},isURLSearchParams:y,isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:_,merge:function e(){var t={};function n(n,i){f(t[i])&&f(n)?t[i]=e(t[i],n):f(n)?t[i]=e({},n):l(n)?t[i]=n.slice():t[i]=n}for(var i=0,r=arguments.length;i<r;i++)_(arguments[i],n);return t},extend:function(e,t,n){return _(t,(function(t,i){e[i]=n&&"function"===typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,i){e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var i,r,o,a={};t=t||{};do{for(r=(i=Object.getOwnPropertyNames(e)).length;r-- >0;)a[o=i[r]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var i=e.indexOf(t,n);return-1!==i&&i===n},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:v}},8559:function(e,t){!function(e){"use strict";var t="1.8.0";function n(e){var t,n,i,r;for(n=1,i=arguments.length;n<i;n++)for(t in r=arguments[n])e[t]=r[t];return e}var i=Object.create||function(){function e(){}return function(t){return e.prototype=t,new e}}();function r(e,t){var n=Array.prototype.slice;
vendor: 2,299 bytes, line 2
2if(e.bind)return e.bind.apply(e,n.call(arguments,1));var i=n.call(arguments,2);return function(){return e.apply(t,i.length?i.concat(n.call(arguments)):arguments)}}var o=0;function a(e){return"_leaflet_id"in e||(e._leaflet_id=++o),e._leaflet_id}function s(e,t,n){var i,r,o,a;return a=function(){i=!1,r&&(o.apply(n,r),r=!1)},o=function(){i?r=arguments:(e.apply(n,arguments),setTimeout(a,t),i=!0)},o}function l(e,t,n){var i=t[1],r=t[0],o=i-r;return e===i&&n?e:((e-r)%o+o)%o+r}function u(){return!1}function c(e,t){if(!1===t)return e;var n=Math.pow(10,void 0===t?6:t);return Math.round(e*n)/n}function h(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function f(e){return h(e).split(/\s+/)}function d(e,t){for(var n in Object.prototype.hasOwnProperty.call(e,"options")||(e.options=e.options?i(e.options):{}),t)e.options[n]=t[n];return e.options}function p(e,t,n){var i=[];for(var r in e)i.push(encodeURIComponent(n?r.toUpperCase():r)+"="+encodeURIComponent(e[r]));return(t&&-1!==t.indexOf("?")?"&":"?")+i.join("&")}var m=/\{ *([\w_ -]+) *\}/g;function v(e,t){return e.replace(m,(function(e,n){var i=t[n];if(void 0===i)throw new Error("No value provided for variable "+e);return"function"===typeof i&&(i=i(t)),i}))}var g=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function y(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}var _="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function b(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}var w=0;function k(e){var t=+new Date,n=Math.max(0,16-(t-w));return w=t+n,window.setTimeout(e,n)}var A=window.requestAnimationFrame||b("RequestAnimationFrame")||k,x=window.cancelAnimationFrame||b("CancelAnimationFrame")||b("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)};function C(e,t,n){if(!n||A!==k)return A.call(window,r(e,t));e.call(t)}function E(e){e&&x.call(window,e)}var S={__proto__:null,extend:n,create:i,bind:r,get lastId(){return o},stamp:a,throttle:s,wrapNum:l,falseFn:u,formatNum:c,trim:h,splitWords:f,setOptions:d,getParamString:p,template:v,isArray:g,indexOf:y,emptyImageUrl:_,requestFn:A,cancelFn:x,requestAnimFrame:C,cancelAnimFrame:E};function P(){}function T(e){if("undefined"!==typeof L&&L&&L.Mixin){e=g(e)?e:[e];for(var t=0;t<e.length;
vendor: 8,584 bytes, line 2
2t++)e[t]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}P.extend=function(e){var t=function(){d(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},r=t.__super__=this.prototype,o=i(r);for(var a in o.constructor=t,t.prototype=o,this)Object.prototype.hasOwnProperty.call(this,a)&&"prototype"!==a&&"__super__"!==a&&(t[a]=this[a]);return e.statics&&n(t,e.statics),e.includes&&(T(e.includes),n.apply(null,[o].concat(e.includes))),n(o,e),delete o.statics,delete o.includes,o.options&&(o.options=r.options?i(r.options):{},n(o.options,e.options)),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){r.callInitHooks&&r.callInitHooks.call(this),this._initHooksCalled=!0;for(var e=0,t=o._initHooks.length;e<t;e++)o._initHooks[e].call(this)}},t},P.include=function(e){var t=this.prototype.options;return n(this.prototype,e),e.options&&(this.prototype.options=t,this.mergeOptions(e.options)),this},P.mergeOptions=function(e){return n(this.prototype.options,e),this},P.addInitHook=function(e){var t=Array.prototype.slice.call(arguments,1),n="function"===typeof e?e:function(){this[e].apply(this,t)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var I={on:function(e,t,n){if("object"===typeof e)for(var i in e)this._on(i,e[i],t);else for(var r=0,o=(e=f(e)).length;r<o;r++)this._on(e[r],t,n);return this},off:function(e,t,n){if(arguments.length)if("object"===typeof e)for(var i in e)this._off(i,e[i],t);else{e=f(e);for(var r=1===arguments.length,o=0,a=e.length;o<a;o++)r?this._off(e[o]):this._off(e[o],t,n)}else delete this._events;return this},_on:function(e,t,n){if("function"===typeof t){this._events=this._events||{};var i=this._events[e];i||(i=[],this._events[e]=i),n===this&&(n=void 0);for(var r={fn:t,ctx:n},o=i,a=0,s=o.length;a<s;a++)if(o[a].fn===t&&o[a].ctx===n)return;o.push(r)}else console.warn("wrong listener type: "+typeof t)},_off:function(e,t,n){var i,r,o;if(this._events&&(i=this._events[e]))if(1!==arguments.length)if(n===this&&(n=void 0),"function"===typeof t){for(r=0,o=i.length;r<o;r++){var a=i[r];if(a.ctx===n&&a.fn===t)return this._firingCount&&(a.fn=u,this._events[e]=i=i.slice()),void i.splice(r,1)}console.warn("listener not found")}else console.warn("wrong listener type: "+typeof t);else{if(this._firingCount)for(r=0,o=i.length;r<o;r++)i[r].fn=u;delete this._events[e]}},fire:function(e,t,i){if(!this.listens(e,i))return this;var r=n({},t,{type:e,target:this,sourceTarget:t&&t.sourceTarget||this});if(this._events){var o=this._events[e];if(o){this._firingCount=this._firingCount+1||1;for(var a=0,s=o.length;a<s;a++){var l=o[a];l.fn.call(l.ctx||this,r)}this._firingCount--}}return i&&this._propagateEvent(r),this},listens:function(e,t){"string"!==typeof e&&console.warn('"string" type argument expected');var n=this._events&&this._events[e];if(n&&n.length)return!0;if(t)for(var i in this._eventParents)if(this._eventParents[i].listens(e,t))return!0;return!1},once:function(e,t,n){if("object"===typeof e){for(var i in e)this.once(i,e[i],t);return this}var o=r((function(){this.off(e,t,n).off(e,o,n)}),this);return this.on(e,t,n).on(e,o,n)},addEventParent:function(e){return this._eventParents=this._eventParents||{},this._eventParents[a(e)]=e,this},removeEventParent:function(e){return this._eventParents&&delete this._eventParents[a(e)],this},_propagateEvent:function(e){for(var t in this._eventParents)this._eventParents[t].fire(e.type,n({layer:e.target,propagatedFrom:e.target},e),!0)}};I.addEventListener=I.on,I.removeEventListener=I.clearAllEventListeners=I.off,I.addOneTimeEventListener=I.once,I.fireEvent=I.fire,I.hasEventListeners=I.listens;var O=P.extend(I);function M(e,t,n){this.x=n?Math.round(e):e,this.y=n?Math.round(t):t}var N=Math.trunc||function(e){return e>0?Math.floor(e):Math.ceil(e)};function R(e,t,n){return e instanceof M?e:g(e)?new M(e[0],e[1]):void 0===e||null===e?e:"object"===typeof e&&"x"in e&&"y"in e?new M(e.x,e.y):new M(e,t,n)}function B(e,t){if(e)for(var n=t?[e,t]:e,i=0,r=n.length;i<r;i++)this.extend(n[i])}function D(e,t){return!e||e instanceof B?e:new B(e,t)}function z(e,t){if(e)for(var n=t?[e,t]:e,i=0,r=n.length;i<r;i++)this.extend(n[i])}function j(e,t){return e instanceof z?e:new z(e,t)}function F(e,t,n){if(isNaN(e)||isNaN(t))throw new Error("Invalid LatLng object: ("+e+", "+t+")");this.lat=+e,this.lng=+t,void 0!==n&&(this.alt=+n)}function Z(e,t,n){return e instanceof F?e:g(e)&&"object"!==typeof e[0]?3===e.length?new F(e[0],e[1],e[2]):2===e.length?new F(e[0],e[1]):null:void 0===e||null===e?e:"object"===typeof e&&"lat"in e?new F(e.lat,"lng"in e?e.lng:e.lon,e.alt):void 0===t?null:new F(e,t,n)}M.prototype={clone:function(){return new M(this.x,this.y)},add:function(e){return this.clone()._add(R(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(R(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new M(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new M(this.x/e.x,this.y/e.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=N(this.x),this.y=N(this.y),this},distanceTo:function(e){var t=(e=R(e)).x-this.x,n=e.y-this.y;return Math.sqrt(t*t+n*n)},equals:function(e){return(e=R(e)).x===this.x&&e.y===this.y},contains:function(e){return e=R(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+c(this.x)+", "+c(this.y)+")"}},B.prototype={extend:function(e){return e=R(e),this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(e.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(e.y,this.max.y)):(this.min=e.clone(),this.max=e.clone()),this},getCenter:function(e){return new M((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},getBottomLeft:function(){return new M(this.min.x,this.max.y)},getTopRight:function(){return new M(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(e){var t,n;return(e="number"===typeof e[0]||e instanceof M?R(e):D(e))instanceof B?(t=e.min,n=e.max):t=n=e,t.x>=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=D(e);var t=this.min,n=this.max,i=e.min,r=e.max,o=r.x>=t.x&&i.x<=n.x,a=r.y>=t.y&&i.y<=n.y;return o&&a},overlaps:function(e){e=D(e);var t=this.min,n=this.max,i=e.min,r=e.max,o=r.x>t.x&&i.x<n.x,a=r.y>t.y&&i.y<n.y;return o&&a},isValid:function(){return!(!this.min||!this.max)}},z.prototype={extend:function(e){var t,n,i=this._southWest,r=this._northEast;if(e instanceof F)t=e,n=e;else{if(!(e instanceof z))return e?this.extend(Z(e)||j(e)):this;if(t=e._southWest,n=e._northEast,!t||!n)return this}return i||r?(i.lat=Math.min(t.lat,i.lat),i.lng=Math.min(t.lng,i.lng),r.lat=Math.max(n.lat,r.lat),r.lng=Math.max(n.lng,r.lng)):(this._southWest=new F(t.lat,t.lng),this._northEast=new F(n.lat,n.lng)),this},pad:function(e){var t=this._southWest,n=this._northEast,i=Math.abs(t.lat-n.lat)*e,r=Math.abs(t.lng-n.lng)*e;return new z(new F(t.lat-i,t.lng-r),new F(n.lat+i,n.lng+r))},getCenter:function(){return new F((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new F(this.getNorth(),this.getWest())},getSouthEast:function(){return new F(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(e){e="number"===typeof e[0]||e instanceof F||"lat"in e?Z(e):j(e);var t,n,i=this._southWest,r=this._northEast;
vendor: 19,058 bytes, line 2
2return e instanceof z?(t=e.getSouthWest(),n=e.getNorthEast()):t=n=e,t.lat>=i.lat&&n.lat<=r.lat&&t.lng>=i.lng&&n.lng<=r.lng},intersects:function(e){e=j(e);var t=this._southWest,n=this._northEast,i=e.getSouthWest(),r=e.getNorthEast(),o=r.lat>=t.lat&&i.lat<=n.lat,a=r.lng>=t.lng&&i.lng<=n.lng;return o&&a},overlaps:function(e){e=j(e);var t=this._southWest,n=this._northEast,i=e.getSouthWest(),r=e.getNorthEast(),o=r.lat>t.lat&&i.lat<n.lat,a=r.lng>t.lng&&i.lng<n.lng;return o&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(e,t){return!!e&&(e=j(e),this._southWest.equals(e.getSouthWest(),t)&&this._northEast.equals(e.getNorthEast(),t))},isValid:function(){return!(!this._southWest||!this._northEast)}},F.prototype={equals:function(e,t){return!!e&&(e=Z(e),Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng))<=(void 0===t?1e-9:t))},toString:function(e){return"LatLng("+c(this.lat,e)+", "+c(this.lng,e)+")"},distanceTo:function(e){return U.distance(this,Z(e))},wrap:function(){return U.wrapLatLng(this)},toBounds:function(e){var t=180*e/40075017,n=t/Math.cos(Math.PI/180*this.lat);return j([this.lat-t,this.lng-n],[this.lat+t,this.lng+n])},clone:function(){return new F(this.lat,this.lng,this.alt)}};var W={latLngToPoint:function(e,t){var n=this.projection.project(e),i=this.scale(t);return this.transformation._transform(n,i)},pointToLatLng:function(e,t){var n=this.scale(t),i=this.transformation.untransform(e,n);return this.projection.unproject(i)},project:function(e){return this.projection.project(e)},unproject:function(e){return this.projection.unproject(e)},scale:function(e){return 256*Math.pow(2,e)},zoom:function(e){return Math.log(e/256)/Math.LN2},getProjectedBounds:function(e){if(this.infinite)return null;var t=this.projection.bounds,n=this.scale(e);return new B(this.transformation.transform(t.min,n),this.transformation.transform(t.max,n))},infinite:!1,wrapLatLng:function(e){var t=this.wrapLng?l(e.lng,this.wrapLng,!0):e.lng;return new F(this.wrapLat?l(e.lat,this.wrapLat,!0):e.lat,t,e.alt)},wrapLatLngBounds:function(e){var t=e.getCenter(),n=this.wrapLatLng(t),i=t.lat-n.lat,r=t.lng-n.lng;if(0===i&&0===r)return e;var o=e.getSouthWest(),a=e.getNorthEast();return new z(new F(o.lat-i,o.lng-r),new F(a.lat-i,a.lng-r))}},U=n({},W,{wrapLng:[-180,180],R:6371e3,distance:function(e,t){var n=Math.PI/180,i=e.lat*n,r=t.lat*n,o=Math.sin((t.lat-e.lat)*n/2),a=Math.sin((t.lng-e.lng)*n/2),s=o*o+Math.cos(i)*Math.cos(r)*a*a,l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*l}}),H=6378137,G={R:H,MAX_LATITUDE:85.0511287798,project:function(e){var t=Math.PI/180,n=this.MAX_LATITUDE,i=Math.max(Math.min(n,e.lat),-n),r=Math.sin(i*t);return new M(this.R*e.lng*t,this.R*Math.log((1+r)/(1-r))/2)},unproject:function(e){var t=180/Math.PI;return new F((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*t,e.x*t/this.R)},bounds:function(){var e=H*Math.PI;return new B([-e,-e],[e,e])}()};function Y(e,t,n,i){if(g(e))return this._a=e[0],this._b=e[1],this._c=e[2],void(this._d=e[3]);this._a=e,this._b=t,this._c=n,this._d=i}function V(e,t,n,i){return new Y(e,t,n,i)}Y.prototype={transform:function(e,t){return this._transform(e.clone(),t)},_transform:function(e,t){return t=t||1,e.x=t*(this._a*e.x+this._b),e.y=t*(this._c*e.y+this._d),e},untransform:function(e,t){return t=t||1,new M((e.x/t-this._b)/this._a,(e.y/t-this._d)/this._c)}};var Q=n({},U,{code:"EPSG:3857",projection:G,transformation:function(){var e=.5/(Math.PI*G.R);return V(e,.5,-e,.5)}()}),q=n({},Q,{code:"EPSG:900913"});function J(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function K(e,t){var n,i,r,o,a,s,l="";for(n=0,r=e.length;n<r;n++){for(i=0,o=(a=e[n]).length;i<o;i++)l+=(i?"L":"M")+(s=a[i]).x+" "+s.y;l+=t?Ne.svg?"z":"x":""}return l||"M0 0"}var X=document.documentElement.style,$="ActiveXObject"in window,ee=$&&!document.addEventListener,te="msLaunchUri"in navigator&&!("documentMode"in document),ne=Me("webkit"),ie=Me("android"),re=Me("android 2")||Me("android 3"),oe=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ae=ie&&Me("Google")&&oe<537&&!("AudioNode"in window),se=!!window.opera,le=!te&&Me("chrome"),ue=Me("gecko")&&!ne&&!se&&!$,ce=!le&&Me("safari"),he=Me("phantom"),fe="OTransition"in X,de=0===navigator.platform.indexOf("Win"),pe=$&&"transition"in X,me="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!re,ve="MozPerspective"in X,ge=!window.L_DISABLE_3D&&(pe||me||ve)&&!fe&&!he,ye="undefined"!==typeof orientation||Me("mobile"),_e=ye&&ne,be=ye&&me,we=!window.PointerEvent&&window.MSPointerEvent,ke=!(!window.PointerEvent&&!we),Ae="ontouchstart"in window||!!window.TouchEvent,xe=!window.L_NO_TOUCH&&(Ae||ke),Ce=ye&&se,Ee=ye&&ue,Se=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Pe=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",u,t),window.removeEventListener("testPassiveEventSupport",u,t)}catch(n){}return e}(),Te=!!document.createElement("canvas").getContext,Ie=!(!document.createElementNS||!J("svg").createSVGRect),Le=!!Ie&&function(){var e=document.createElement("div");return e.innerHTML="<svg/>","http://www.w3.org/2000/svg"===(e.firstChild&&e.firstChild.namespaceURI)}(),Oe=!Ie&&function(){try{var e=document.createElement("div");e.innerHTML='<v:shape adj="1"/>';var t=e.firstChild;return t.style.behavior="url(#default#VML)",t&&"object"===typeof t.adj}catch(n){return!1}}();function Me(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var Ne={ie:$,ielt9:ee,edge:te,webkit:ne,android:ie,android23:re,androidStock:ae,opera:se,chrome:le,gecko:ue,safari:ce,phantom:he,opera12:fe,win:de,ie3d:pe,webkit3d:me,gecko3d:ve,any3d:ge,mobile:ye,mobileWebkit:_e,mobileWebkit3d:be,msPointer:we,pointer:ke,touch:xe,touchNative:Ae,mobileOpera:Ce,mobileGecko:Ee,retina:Se,passiveEvents:Pe,canvas:Te,svg:Ie,vml:Oe,inlineSvg:Le},Re=Ne.msPointer?"MSPointerDown":"pointerdown",Be=Ne.msPointer?"MSPointerMove":"pointermove",De=Ne.msPointer?"MSPointerUp":"pointerup",ze=Ne.msPointer?"MSPointerCancel":"pointercancel",je={touchstart:Re,touchmove:Be,touchend:De,touchcancel:ze},Fe={touchstart:Je,touchmove:qe,touchend:qe,touchcancel:qe},Ze={},We=!1;function Ue(e,t,n){return"touchstart"===t&&Qe(),Fe[t]?(n=Fe[t].bind(this,n),e.addEventListener(je[t],n,!1),n):(console.warn("wrong event specified:",t),L.Util.falseFn)}function He(e,t,n){je[t]?e.removeEventListener(je[t],n,!1):console.warn("wrong event specified:",t)}function Ge(e){Ze[e.pointerId]=e}function Ye(e){Ze[e.pointerId]&&(Ze[e.pointerId]=e)}function Ve(e){delete Ze[e.pointerId]}function Qe(){We||(document.addEventListener(Re,Ge,!0),document.addEventListener(Be,Ye,!0),document.addEventListener(De,Ve,!0),document.addEventListener(ze,Ve,!0),We=!0)}function qe(e,t){if(t.pointerType!==(t.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in t.touches=[],Ze)t.touches.push(Ze[n]);t.changedTouches=[t],e(t)}}function Je(e,t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&Gt(t),qe(e,t)}function Ke(e){var t,n,i={};for(n in e)t=e[n],i[n]=t&&t.bind?t.bind(e):t;return e=i,i.type="dblclick",i.detail=2,i.isTrusted=!1,i._simulated=!0,i}var Xe=200;function $e(e,t){e.addEventListener("dblclick",t);var n,i=0;function r(e){if(1===e.detail){if("mouse"!==e.pointerType&&(!e.sourceCapabilities||e.sourceCapabilities.firesTouchEvents)){var r=Date.now();r-i<=Xe?2===++n&&t(Ke(e)):n=1,i=r}}else n=e.detail}return e.addEventListener("click",r),{dblclick:t,simDblclick:r}}function et(e,t){e.removeEventListener("dblclick",t.dblclick),e.removeEventListener("click",t.simDblclick)}var tt,nt,it,rt,ot,at=At(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),st=At(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),lt="webkitTransition"===st||"OTransition"===st?st+"End":"transitionend";function ut(e){return"string"===typeof e?document.getElementById(e):e}function ct(e,t){var n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||"auto"===n)&&document.defaultView){var i=document.defaultView.getComputedStyle(e,null);n=i?i[t]:null}return"auto"===n?null:n}function ht(e,t,n){var i=document.createElement(e);return i.className=t||"",n&&n.appendChild(i),i}function ft(e){var t=e.parentNode;t&&t.removeChild(e)}function dt(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function pt(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}function mt(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function vt(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=bt(e);return n.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}function gt(e,t){if(void 0!==e.classList)for(var n=f(t),i=0,r=n.length;i<r;i++)e.classList.add(n[i]);else if(!vt(e,t)){var o=bt(e);_t(e,(o?o+" ":"")+t)}}function yt(e,t){void 0!==e.classList?e.classList.remove(t):_t(e,h((" "+bt(e)+" ").replace(" "+t+" "," ")))}function _t(e,t){void 0===e.className.baseVal?e.className=t:e.className.baseVal=t}function bt(e){return e.correspondingElement&&(e=e.correspondingElement),void 0===e.className.baseVal?e.className:e.className.baseVal}function wt(e,t){"opacity"in e.style?e.style.opacity=t:"filter"in e.style&&kt(e,t)}function kt(e,t){var n=!1,i="DXImageTransform.Microsoft.Alpha";try{n=e.filters.item(i)}catch(r){if(1===t)return}t=Math.round(100*t),n?(n.Enabled=100!==t,n.Opacity=t):e.style.filter+=" progid:"+i+"(opacity="+t+")"}function At(e){for(var t=document.documentElement.style,n=0;n<e.length;n++)if(e[n]in t)return e[n];return!1}function xt(e,t,n){var i=t||new M(0,0);e.style[at]=(Ne.ie3d?"translate("+i.x+"px,"+i.y+"px)":"translate3d("+i.x+"px,"+i.y+"px,0)")+(n?" scale("+n+")":"")}function Ct(e,t){e._leaflet_pos=t,Ne.any3d?xt(e,t):(e.style.left=t.x+"px",e.style.top=t.y+"px")}function Et(e){return e._leaflet_pos||new M(0,0)}if("onselectstart"in document)tt=function(){Rt(window,"selectstart",Gt)},nt=function(){Dt(window,"selectstart",Gt)};else{var St=At(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);tt=function(){if(St){var e=document.documentElement.style;it=e[St],e[St]="none"}},nt=function(){St&&(document.documentElement.style[St]=it,it=void 0)}}function Pt(){Rt(window,"dragstart",Gt)}function Tt(){Dt(window,"dragstart",Gt)}function It(e){for(;-1===e.tabIndex;)e=e.parentNode;e.style&&(Lt(),rt=e,ot=e.style.outline,e.style.outline="none",Rt(window,"keydown",Lt))}function Lt(){rt&&(rt.style.outline=ot,rt=void 0,ot=void 0,Dt(window,"keydown",Lt))}function Ot(e){do{e=e.parentNode}while((!e.offsetWidth||!e.offsetHeight)&&e!==document.body);return e}function Mt(e){var t=e.getBoundingClientRect();return{x:t.width/e.offsetWidth||1,y:t.height/e.offsetHeight||1,boundingClientRect:t}}var Nt={__proto__:null,TRANSFORM:at,TRANSITION:st,TRANSITION_END:lt,get:ut,getStyle:ct,create:ht,remove:ft,empty:dt,toFront:pt,toBack:mt,hasClass:vt,addClass:gt,removeClass:yt,setClass:_t,getClass:bt,setOpacity:wt,testProp:At,setTransform:xt,setPosition:Ct,getPosition:Et,get disableTextSelection(){return tt},get enableTextSelection(){return nt},disableImageDrag:Pt,enableImageDrag:Tt,preventOutline:It,restoreOutline:Lt,getSizedParentNode:Ot,getScale:Mt};function Rt(e,t,n,i){if(t&&"object"===typeof t)for(var r in t)Ft(e,r,t[r],n);else for(var o=0,a=(t=f(t)).length;o<a;o++)Ft(e,t[o],n,i);return this}var Bt="_leaflet_events";function Dt(e,t,n,i){if(1===arguments.length)zt(e),delete e[Bt];else if(t&&"object"===typeof t)for(var r in t)Zt(e,r,t[r],n);else if(t=f(t),2===arguments.length)zt(e,(function(e){return-1!==y(t,e)}));else for(var o=0,a=t.length;o<a;o++)Zt(e,t[o],n,i);return this}function zt(e,t){for(var n in e[Bt]){var i=n.split(/\d/)[0];t&&!t(i)||Zt(e,i,null,null,n)}}var jt={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Ft(e,t,n,i){var r=t+a(n)+(i?"_"+a(i):"");if(e[Bt]&&e[Bt][r])return this;var o=function(t){return n.call(i||e,t||window.event)},s=o;!Ne.touchNative&&Ne.pointer&&0===t.indexOf("touch")?o=Ue(e,t,o):Ne.touch&&"dblclick"===t?o=$e(e,o):"addEventListener"in e?"touchstart"===t||"touchmove"===t||"wheel"===t||"mousewheel"===t?e.addEventListener(jt[t]||t,o,!!Ne.passiveEvents&&{passive:!1}):"mouseenter"===t||"mouseleave"===t?(o=function(t){t=t||window.event,Jt(e,t)&&s(t)},e.addEventListener(jt[t],o,!1)):e.addEventListener(t,s,!1):e.attachEvent("on"+t,o),e[Bt]=e[Bt]||{},e[Bt][r]=o}function Zt(e,t,n,i,r){r=r||t+a(n)+(i?"_"+a(i):"");var o=e[Bt]&&e[Bt][r];if(!o)return this;!Ne.touchNative&&Ne.pointer&&0===t.indexOf("touch")?He(e,t,o):Ne.touch&&"dblclick"===t?et(e,o):"removeEventListener"in e?e.removeEventListener(jt[t]||t,o,!1):e.detachEvent("on"+t,o),e[Bt][r]=null}function Wt(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?e.originalEvent._stopped=!0:e.cancelBubble=!0,this}function Ut(e){return Ft(e,"wheel",Wt),this}function Ht(e){return Rt(e,"mousedown touchstart dblclick contextmenu",Wt),e._leaflet_disable_click=!0,this}function Gt(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}function Yt(e){return Gt(e),Wt(e),this}function Vt(e,t){if(!t)return new M(e.clientX,e.clientY);var n=Mt(t),i=n.boundingClientRect;return new M((e.clientX-i.left)/n.x-t.clientLeft,(e.clientY-i.top)/n.y-t.clientTop)}var Qt=Ne.win&&Ne.chrome?2*window.devicePixelRatio:Ne.gecko?window.devicePixelRatio:1;function qt(e){return Ne.edge?e.wheelDeltaY/2:e.deltaY&&0===e.deltaMode?-e.deltaY/Qt:e.deltaY&&1===e.deltaMode?20*-e.deltaY:e.deltaY&&2===e.deltaMode?60*-e.deltaY:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?20*-e.detail:e.detail?e.detail/-32765*60:0}function Jt(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch(i){return!1}return n!==e}var Kt={__proto__:null,on:Rt,off:Dt,stopPropagation:Wt,disableScrollPropagation:Ut,disableClickPropagation:Ht,preventDefault:Gt,stop:Yt,getMousePosition:Vt,getWheelDelta:qt,isExternalTarget:Jt,addListener:Rt,removeListener:Dt},Xt=O.extend({run:function(e,t,n,i){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(i||.5,.2),this._startPos=Et(e),this._offset=t.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=C(this._animate,this),this._step()},_step:function(e){var t=+new Date-this._startTime,n=1e3*this._duration;t<n?this._runFrame(this._easeOut(t/n),e):(this._runFrame(1),this._complete())},_runFrame:function(e,t){var n=this._startPos.add(this._offset.multiplyBy(e));t&&n._round(),Ct(this._el,n),this.fire("step")},_complete:function(){E(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),$t=O.extend({options:{crs:Q,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(e,t){t=d(this,t),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(e),this._initLayout(),this._onResize=r(this._onResize,this),this._initEvents(),t.maxBounds&&this.setMaxBounds(t.maxBounds),void 0!==t.zoom&&(this._zoom=this._limitZoom(t.zoom)),t.center&&void 0!==t.zoom&&this.setView(Z(t.center),t.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=st&&Ne.any3d&&!Ne.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Rt(this._proxy,lt,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(e,t,i){return t=void 0===t?this._zoom:this._limitZoom(t),e=this._limitCenter(Z(e),t,this.options.maxBounds),i=i||{},this._stop(),this._loaded&&!i.reset&&!0!==i&&(void 0!==i.animate&&(i.zoom=n({animate:i.animate},i.zoom),i.pan=n({animate:i.animate,duration:i.duration},i.pan)),this._zoom!==t?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,t,i.zoom):this._tryAnimatedPan(e,i.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(e,t),this)},setZoom:function(e,t){return this._loaded?this.setView(this.getCenter(),e,{zoom:t}):(this._zoom=e,this)},zoomIn:function(e,t){return e=e||(Ne.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+e,t)},zoomOut:function(e,t){return e=e||(Ne.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-e,t)},setZoomAround:function(e,t,n){var i=this.getZoomScale(t),r=this.getSize().divideBy(2),o=(e instanceof M?e:this.latLngToContainerPoint(e)).subtract(r).multiplyBy(1-1/i),a=this.containerPointToLatLng(r.add(o));return this.setView(a,t,{zoom:n})},_getBoundsCenterZoom:function(e,t){t=t||{},e=e.getBounds?e.getBounds():j(e);var n=R(t.paddingTopLeft||t.padding||[0,0]),i=R(t.paddingBottomRight||t.padding||[0,0]),r=this.getBoundsZoom(e,!1,n.add(i));if((r="number"===typeof t.maxZoom?Math.min(t.maxZoom,r):r)===1/0)return{center:e.getCenter(),zoom:r};var o=i.subtract(n).divideBy(2),a=this.project(e.getSouthWest(),r),s=this.project(e.getNorthEast(),r);return{center:this.unproject(a.add(s).divideBy(2).add(o),r),zoom:r}},fitBounds:function(e,t){if(!(e=j(e)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(e,t);return this.setView(n.center,n.zoom,t)},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,t){return this.setView(e,this._zoom,{pan:t})},panBy:function(e,t){if(t=t||{},!(e=R(e).round()).x&&!e.y)return this.fire("moveend");if(!0!==t.animate&&!this.getSize().contains(e))return this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Xt,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),t.noMoveStart||this.fire("movestart"),!1!==t.animate){gt(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(e).round();this._panAnim.run(this._mapPane,n,t.duration||.25,t.easeLinearity)}else this._rawPanBy(e),this.fire("move").fire("moveend");return this},flyTo:function(e,t,n){if(!1===(n=n||{}).animate||!Ne.any3d)return this.setView(e,t,n);this._stop();var i=this.project(this.getCenter()),r=this.project(e),o=this.getSize(),a=this._zoom;e=Z(e),t=void 0===t?a:t;var s=Math.max(o.x,o.y),l=s*this.getZoomScale(a,t),u=r.distanceTo(i)||1,c=1.42,h=c*c;function f(e){var t=(l*l-s*s+(e?-1:1)*h*h*u*u)/(2*(e?l:s)*h*u),n=Math.sqrt(t*t+1)-t;return n<1e-9?-18:Math.log(n)}function d(e){return(Math.exp(e)-Math.exp(-e))/2}function p(e){return(Math.exp(e)+Math.exp(-e))/2}function m(e){return d(e)/p(e)}var v=f(0);function g(e){return s*(p(v)/p(v+c*e))}function y(e){return s*(p(v)*m(v+c*e)-d(v))/h}function _(e){return 1-Math.pow(1-e,1.5)}var b=Date.now(),w=(f(1)-v)/c,k=n.duration?1e3*n.duration:1e3*w*.8;function A(){var n=(Date.now()-b)/k,o=_(n)*w;n<=1?(this._flyToFrame=C(A,this),this._move(this.unproject(i.add(r.subtract(i).multiplyBy(y(o)/u)),a),this.get
vendor: 23,158 bytes, line 2
2ScaleZoom(s/g(o),a),{flyTo:!0})):this._move(e,t)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),A.call(this),this},flyToBounds:function(e,t){var n=this._getBoundsCenterZoom(e,t);return this.flyTo(n.center,n.zoom,t)},setMaxBounds:function(e){return(e=j(e)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=e,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(e){var t=this.options.minZoom;return this.options.minZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(e):this},setMaxZoom:function(e){var t=this.options.maxZoom;return this.options.maxZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var n=this.getCenter(),i=this._limitCenter(n,this._zoom,j(e));return n.equals(i)||this.panTo(i,t),this._enforcingBounds=!1,this},panInside:function(e,t){var n=R((t=t||{}).paddingTopLeft||t.padding||[0,0]),i=R(t.paddingBottomRight||t.padding||[0,0]),r=this.project(this.getCenter()),o=this.project(e),a=this.getPixelBounds(),s=D([a.min.add(n),a.max.subtract(i)]),l=s.getSize();if(!s.contains(o)){this._enforcingBounds=!0;var u=o.subtract(s.getCenter()),c=s.extend(o).getSize().subtract(l);r.x+=u.x<0?-c.x:c.x,r.y+=u.y<0?-c.y:c.y,this.panTo(this.unproject(r),t),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=n({animate:!1,pan:!0},!0===e?{animate:!0}:e);var t=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var i=this.getSize(),o=t.divideBy(2).round(),a=i.divideBy(2).round(),s=o.subtract(a);return s.x||s.y?(e.animate&&e.pan?this.panBy(s):(e.pan&&this._rawPanBy(s),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(r(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:t,newSize:i})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=n({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var t=r(this._handleGeolocationResponse,this),i=r(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(t,i,e):navigator.geolocation.getCurrentPosition(t,i,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){if(this._container._leaflet_id){var t=e.code,n=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:t,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var t=new F(e.coords.latitude,e.coords.longitude),n=t.toBounds(2*e.coords.accuracy),i=this._locateOptions;if(i.setView){var r=this.getBoundsZoom(n);this.setView(t,i.maxZoom?Math.min(r,i.maxZoom):r)}var o={latlng:t,bounds:n,timestamp:e.timestamp};for(var a in e.coords)"number"===typeof e.coords[a]&&(o[a]=e.coords[a]);this.fire("locationfound",o)}},addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var e;for(e in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ft(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(E(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[e].remove();for(e in this._panes)ft(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){var n=ht("div","leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),t||this._mapPane);return e&&(this._panes[e]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds();return new z(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,n){e=j(e),n=R(n||[0,0]);var i=this.getZoom()||0,r=this.getMinZoom(),o=this.getMaxZoom(),a=e.getNorthWest(),s=e.getSouthEast(),l=this.getSize().subtract(n),u=D(this.project(s,i),this.project(a,i)).getSize(),c=Ne.any3d?this.options.zoomSnap:1,h=l.x/u.x,f=l.y/u.y,d=t?Math.max(h,f):Math.min(h,f);return i=this.getScaleZoom(d,i),c&&(i=Math.round(i/(c/100))*(c/100),i=t?Math.ceil(i/c)*c:Math.floor(i/c)*c),Math.max(r,Math.min(o,i))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new M(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,t){var n=this._getTopLeftPoint(e,t);return new B(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(void 0===e?this.getZoom():e)},getPane:function(e){return"string"===typeof e?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var n=this.options.crs;return t=void 0===t?this._zoom:t,n.scale(e)/n.scale(t)},getScaleZoom:function(e,t){var n=this.options.crs;t=void 0===t?this._zoom:t;var i=n.zoom(e*n.scale(t));return isNaN(i)?1/0:i},project:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.latLngToPoint(Z(e),t)},unproject:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.pointToLatLng(R(e),t)},layerPointToLatLng:function(e){var t=R(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){return this.project(Z(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(Z(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(j(e))},distance:function(e,t){return this.options.crs.distance(Z(e),Z(t))},containerPointToLayerPoint:function(e){return R(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return R(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(R(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Z(e)))},mouseEventToContainerPoint:function(e){return Vt(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=ut(e);if(!t)throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");Rt(t,"scroll",this._onScroll,this),this._containerId=a(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ne.any3d,gt(e,"leaflet-container"+(Ne.touch?" leaflet-touch":"")+(Ne.retina?" leaflet-retina":"")+(Ne.ielt9?" leaflet-oldie":"")+(Ne.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var t=ct(e,"position");"absolute"!==t&&"relative"!==t&&"fixed"!==t&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Ct(this._mapPane,new M(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(gt(e.markerPane,"leaflet-zoom-hide"),gt(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,t){Ct(this._mapPane,new M(0,0));var n=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire("viewprereset");var i=this._zoom!==t;this._moveStart(i,!1)._move(e,t)._moveEnd(i),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(e,t){return e&&this.fire("zoomstart"),t||this.fire("movestart"),this},_move:function(e,t,n,i){void 0===t&&(t=this._zoom);var r=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),i?n&&n.pinch&&this.fire("zoom",n):((r||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return E(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){Ct(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(e){this._targets={},this._targets[a(this._container)]=this;var t=e?Dt:Rt;t(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&t(window,"resize",this._onResize,this),Ne.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){E(this._resizeRequest),this._resizeRequest=C((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var n,i=[],r="mouseout"===t||"mouseover"===t,o=e.target||e.srcElement,s=!1;o;){if((n=this._targets[a(o)])&&("click"===t||"preclick"===t)&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(t,!0)){if(r&&!Jt(o,e))break;if(i.push(n),r)break}if(o===this._container)break;o=o.parentNode}return i.length||s||r||!this.listens(t,!0)||(i=[this]),i},_isClickDisabled:function(e){for(;e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var t=e.target||e.srcElement;if(!(!this._loaded||t._leaflet_disable_events||"click"===e.type&&this._isClickDisabled(t))){var n=e.type;"mousedown"===n&&It(t),this._fireDOMEvent(e,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,t,i){if("click"===e.type){var r=n({},e);r.type="preclick",this._fireDOMEvent(r,r.type,i)}var o=this._findEventTargets(e,t);if(i){for(var a=[],s=0;s<i.length;s++)i[s].listens(t,!0)&&a.push(i[s]);o=a.concat(o)}if(o.length){"contextmenu"===t&&Gt(e);var l=o[0],u={originalEvent:e};if("keypress"!==e.type&&"keydown"!==e.type&&"keyup"!==e.type){var c=l.getLatLng&&(!l._radius||l._radius<=10);u.containerPoint=c?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(e),u.layerPoint=this.containerPointToLayerPoint(u.containerPoint),u.latlng=c?l.getLatLng():this.layerPointToLatLng(u.layerPoint)}for(s=0;s<o.length;s++)if(o[s].fire(t,u,!0),u.originalEvent._stopped||!1===o[s].options.bubblingMouseEvents&&-1!==y(this._mouseEvents,t))return}},_draggableMoved:function(e){return(e=e.dragging&&e.dragging.enabled()?e:this).dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,t=this._handlers.length;e<t;e++)this._handlers[e].disable()},whenReady:function(e,t){return this._loaded?e.call(t||this,{target:this}):this.on("load",e,t),this},_getMapPanePos:function(){return Et(this._mapPane)||new M(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,t){return(e&&void 0!==t?this._getNewPixelOrigin(e,t):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,t){var n=this.getSize()._divideBy(2);return this.project(e,t)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,t,n){var i=this._getNewPixelOrigin(n,t);return this.project(e,t)._subtract(i)},_latLngBoundsToNewLayerBounds:function(e,t,n){var i=this._getNewPixelOrigin(n,t);return D([this.project(e.getSouthWest(),t)._subtract(i),this.project(e.getNorthWest(),t)._subtract(i),this.project(e.getSouthEast(),t)._subtract(i),this.project(e.getNorthEast(),t)._subtract(i)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,t,n){if(!n)return e;var i=this.project(e,t),r=this.getSize().divideBy(2),o=new B(i.subtract(r),i.add(r)),a=this._getBoundsOffset(o,n,t);return a.round().equals([0,0])?e:this.unproject(i.add(a),t)},_limitOffset:function(e,t){if(!t)return e;var n=this.getPixelBounds(),i=new B(n.min.add(e),n.max.add(e));return e.add(this._getBoundsOffset(i,t))},_getBoundsOffset:function(e,t,n){var i=D(this.project(t.getNorthEast(),n),this.project(t.getSouthWest(),n)),r=i.min.subtract(e.min),o=i.max.subtract(e.max);return new M(this._rebound(r.x,-o.x),this._rebound(r.y,-o.y))},_rebound:function(e,t){return e+t>0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom(),i=Ne.any3d?this.options.zoomSnap:1;return i&&(e=Math.round(e/i)*i),Math.max(t,Math.min(n,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){yt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){var n=this._getCenterOffset(e)._trunc();return!(!0!==(t&&t.animate)&&!this.getSize().contains(n))&&(this.panBy(n,t),!0)},_createAnimProxy:function(){var e=this._proxy=ht("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",(function(e){var t=at,n=this._proxy.style[t];xt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[t]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ft(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();xt(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var i=this.getZoomScale(t),r=this._getCenterOffset(e)._divideBy(1-1/i);return!(!0!==n.animate&&!this.getSize().contains(r))&&(C((function(){this._moveStart(!0,!1)._animateZoom(e,t,!0)}),this),!0)},_animateZoom:function(e,t,n,i){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,gt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:t,noUpdate:i}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(r(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&yt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function en(e,t){return new $t(e,t)}var tn=P.extend({options:{position:"topright"},initialize:function(e){d(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),i=e._controlCorners[n];return gt(t,"leaflet-control"),-1!==n.indexOf("bottom")?i.insertBefore(t,i.firstChild):i.appendChild(t),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ft(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),nn=function(e){return new tn(e)};$t.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},t="leaflet-",n=this._controlContainer=ht("div",t+"control-container",this._container);function i(i,r){var o=t+i+" "+t+r;e[i+r]=ht("div",o,n)}i("top","left"),i("top","right"),i("bottom","left"),i("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)ft(this._controlCorners[e]);ft(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var rn=tn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,n,i){return n<i?-1:i<n?1:0}},initialize:function(e,t,n){for(var i in d(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,e)this._addLayer(e[i],i);for(i in t)this._addLayer(t[i],i,!0)},onAdd:function(e){this._initLayout(),this._update(),this._map=e,e.on("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(e){return tn.prototype.addTo.call(this,e),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(e,t){return this._addLayer(e,t),this._map?this._update():this},addOverlay:function(e,t){return this._addLayer(e,t,!0),this._map?this._update():this},removeLayer:function(e){e.off("add remove",this._onLayerChange,this);var t=this._getLayer(a(e));return t&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand:function(){gt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var e=this._map.getSize().y-(this._container.offsetTop+50);return e<this._section.clientHeight?(gt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=e+"px"):yt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return yt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var e="leaflet-control-layers",t=this._container=ht("div",e),n=this.options.collapsed;t.setAttribute("aria-haspopup",!0),Ht(t),Ut(t);var i=this._section=ht("section",e+"-list");n&&(this._map.on("click",this.collapse,this),Rt(t,{mouseenter:function(){Rt(i,"click",Gt),this.expand(),setTimeout((function(){Dt(i,"click",Gt)}))},mouseleave:this.collapse},this));var r=this._layersLink=ht("a",e+"-toggle",t);r.href="#",r.title="Layers",r.setAttribute("role","button"),Rt(r,"click",Gt),Rt(r,"focus",this.expand,this),n||this.expand(),this._baseLayersList=ht("div",e+"-base",i),this._separator=ht("div",e+"-separator",i),this._overlaysList=ht("div",e+"-overlays",i),t.appendChild(i)},_getLayer:function(e){for(var t=0;t<this._layers.length;t++)if(this._layers[t]&&a(this._layers[t].layer)===e)return this._layers[t]},_addLayer:function(e,t,n){this._map&&e.on("add remove",this._onLayerChange,this),this._layers.push({layer:e,name:t,overlay:n}),this.options.sortLayers&&this._layers.sort(r((function(e,t){return this.options.sortFunction(e.layer,t.layer,e.name,t.name)}),this)),this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;dt(this._baseLayersList),dt(this._overlaysList),this._layerControlInputs=[];var e,t,n,i,r=0;for(n=0;n<this._layers.length;n++)i=this._layers[n],this._addItem(i),t=t||i.overlay,e=e||!i.overlay,r+=i.overlay?0:1;return this.options.hideSingleBase&&(e=e&&r>1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=t&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(a(e.target)),n=t.overlay?"add"===e.type?"overlayadd":"overlayremove":"add"===e.type?"baselayerchange":null;n&&this._map.fire(n,t)},_createRadioElement:function(e,t){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"'+(t?' checked="checked"':"")+"/>",i=document.createElement("div");return i.innerHTML=n,i.firstChild},_addItem:function(e){var t,n=document.createElement("label"),i=this._map.hasLayer(e.layer);e.overlay?((t=document.createElement("input")).type="checkbox",t.className="leaflet-control-layers-selector",t.defaultChecked=i):t=this._createRadioElement("leaflet-base-layers_"+a(this),i),this._layerControlInputs.push(t),t.layerId=a(e.layer),Rt(t,"click",this._onInputClick,this);var r=document.createElement("span");r.innerHTML=" "+e.name;var o=document.createElement("span");return n.appendChild(o),o.appendChild(t),o.appendChild(r),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var e,t,n=this._layerControlInputs,i=[],r=[];this._handlingClick=!0;for(var o=n.length-1;o>=0;o--)e=n[o],t=this._getLayer(e.layerId).layer,e.checked?i.push(t):e.checked||r.push(t);for(o=0;o<r.length;o++)this._map.hasLayer(r[o])&&this._map.removeLayer(r[o]);for(o=0;o<i.length;o++)this._map.hasLayer(i[o])||this._map.addLayer(i[o]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var e,t,n=this._layerControlInputs,i=this._map.getZoom(),r
vendor: 4,108 bytes, line 2
2=n.length-1;r>=0;r--)e=n[r],t=this._getLayer(e.layerId).layer,e.disabled=void 0!==t.options.minZoom&&i<t.options.minZoom||void 0!==t.options.maxZoom&&i>t.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this}}),on=function(e,t,n){return new rn(e,t,n)},an=tn.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",n=ht("div",t+" leaflet-bar"),i=this.options;return this._zoomInButton=this._createButton(i.zoomInText,i.zoomInTitle,t+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(i.zoomOutText,i.zoomOutTitle,t+"-out",n,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(e){e.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(e){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(e.shiftKey?3:1))},_zoomOut:function(e){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,n,i,r){var o=ht("a",n,i);return o.innerHTML=e,o.href="#",o.title=t,o.setAttribute("role","button"),o.setAttribute("aria-label",t),Ht(o),Rt(o,"click",Yt),Rt(o,"click",r,this),Rt(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";yt(this._zoomInButton,t),yt(this._zoomOutButton,t),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||e._zoom===e.getMinZoom())&&(gt(this._zoomOutButton,t),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||e._zoom===e.getMaxZoom())&&(gt(this._zoomInButton,t),this._zoomInButton.setAttribute("aria-disabled","true"))}});$t.mergeOptions({zoomControl:!0}),$t.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new an,this.addControl(this.zoomControl))}));var sn=function(e){return new an(e)},ln=tn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t="leaflet-control-scale",n=ht("div",t),i=this.options;return this._addScales(i,t+"-line",n),e.on(i.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),n},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=ht("div",t,n)),e.imperial&&(this._iScale=ht("div",t,n))},_update:function(){var e=this._map,t=e.getSize().y/2,n=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(n)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e),n=t<1e3?t+" m":t/1e3+" km";this._updateScale(this._mScale,n,t/e)},_updateImperial:function(e){var t,n,i,r=3.2808399*e;r>5280?(t=r/5280,n=this._getRoundNum(t),this._updateScale(this._iScale,n+" mi",n/t)):(i=this._getRoundNum(r),this._updateScale(this._iScale,i+" ft",i/r))},_updateScale:function(e,t,n){e.style.width=Math.round(this.options.maxWidth*n)+"px",e.innerHTML=t},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1),n=e/t;return t*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),un=function(e){return new ln(e)},cn='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',hn=tn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Ne.inlineSvg?cn+" ":"")+"Leaflet</a>"},initialize:function(e){d(this,e),this._attributions={}}
vendor: 4,304 bytes, line 2
2,onAdd:function(e){for(var t in e.attributionControl=this,this._container=ht("div","leaflet-control-attribution"),Ht(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),e.on("layeradd",this._addAttribution,this),this._container},onRemove:function(e){e.off("layeradd",this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once("remove",(function(){this.removeAttribution(e.layer.getAttribution())}),this))},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):this},removeAttribution:function(e){return e?(this._attributions[e]&&(this._attributions[e]--,this._update()),this):this},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});$t.mergeOptions({attributionControl:!0}),$t.addInitHook((function(){this.options.attributionControl&&(new hn).addTo(this)}));var fn=function(e){return new hn(e)};tn.Layers=rn,tn.Zoom=an,tn.Scale=ln,tn.Attribution=hn,nn.layers=on,nn.zoom=sn,nn.scale=un,nn.attribution=fn;var dn=P.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});dn.addTo=function(e,t){return e.addHandler(t,this),this};var pn,mn={Events:I},vn=Ne.touch?"touchstart mousedown":"mousedown",gn=O.extend({options:{clickTolerance:3},initialize:function(e,t,n,i){d(this,i),this._element=e,this._dragStartTarget=t||e,this._preventOutline=n},enable:function(){this._enabled||(Rt(this._dragStartTarget,vn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(gn._dragging===this&&this.finishDrag(!0),Dt(this._dragStartTarget,vn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(this._enabled&&(this._moved=!1,!vt(this._element,"leaflet-zoom-anim")))if(e.touches&&1!==e.touches.length)gn._dragging===this&&this.finishDrag();else if(!(gn._dragging||e.shiftKey||1!==e.which&&1!==e.button&&!e.touches)&&(gn._dragging=this,this._preventOutline&&It(this._element),Pt(),tt(),!this._moving)){this.fire("down");var t=e.touches?e.touches[0]:e,n=Ot(this._element);this._startPoint=new M(t.clientX,t.clientY),this._startPos=Et(this._element),this._parentScale=Mt(n);var i="mousedown"===e.type;Rt(document,i?"mousemove":"touchmove",this._onMove,this),Rt(document,i?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(e){if(this._enabled)if(e.touches&&e.touches.length>1)this._moved=!0;else{var t=e.touches&&1===e.touches.length?e.touches[0]:e,n=new M(t.clientX,t.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,Gt(e),this._moved||(this.fire("dragstart"),this._moved=!0,gt(document.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),gt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=e,this._updatePosition()))}},_updatePosition:function(){var e={originalEvent:this._lastEvent};this.fire("predrag",e),Ct(this._element,this._newPos),this.fire("drag",e)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(e){yt(document.body,"leaflet-dragging"),this._lastTarget&&(yt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Dt(document,"mousemove touchmove",this._onMove,this),Dt(document,"mouseup touchend touchcancel",this._onUp,this),Tt(),nt(),this._moved&&this._moving&&this.fire("dragend",{noInertia:e,distance:this._newPos.distanceTo(this._startPos)}),this._moving=!1,gn._dragging=!1}});function yn(e,t){if(!t||!e.length)return e.slice();var n=t*t;return e=wn(e=An(e,n),n)}
vendor: 18,899 bytes, line 2
2function _n(e,t,n){return Math.sqrt(Pn(e,t,n,!0))}function bn(e,t,n){return Pn(e,t,n)}function wn(e,t){var n=e.length,i=new(typeof Uint8Array!==void 0+""?Uint8Array:Array)(n);i[0]=i[n-1]=1,kn(e,i,t,0,n-1);var r,o=[];for(r=0;r<n;r++)i[r]&&o.push(e[r]);return o}function kn(e,t,n,i,r){var o,a,s,l=0;for(a=i+1;a<=r-1;a++)(s=Pn(e[a],e[i],e[r],!0))>l&&(o=a,l=s);l>n&&(t[o]=1,kn(e,t,n,i,o),kn(e,t,n,o,r))}function An(e,t){for(var n=[e[0]],i=1,r=0,o=e.length;i<o;i++)Sn(e[i],e[r])>t&&(n.push(e[i]),r=i);return r<o-1&&n.push(e[o-1]),n}function xn(e,t,n,i,r){var o,a,s,l=i?pn:En(e,n),u=En(t,n);for(pn=u;;){if(!(l|u))return[e,t];if(l&u)return!1;s=En(a=Cn(e,t,o=l||u,n,r),n),o===l?(e=a,l=s):(t=a,u=s)}}function Cn(e,t,n,i,r){var o,a,s=t.x-e.x,l=t.y-e.y,u=i.min,c=i.max;return 8&n?(o=e.x+s*(c.y-e.y)/l,a=c.y):4&n?(o=e.x+s*(u.y-e.y)/l,a=u.y):2&n?(o=c.x,a=e.y+l*(c.x-e.x)/s):1&n&&(o=u.x,a=e.y+l*(u.x-e.x)/s),new M(o,a,r)}function En(e,t){var n=0;return e.x<t.min.x?n|=1:e.x>t.max.x&&(n|=2),e.y<t.min.y?n|=4:e.y>t.max.y&&(n|=8),n}function Sn(e,t){var n=t.x-e.x,i=t.y-e.y;return n*n+i*i}function Pn(e,t,n,i){var r,o=t.x,a=t.y,s=n.x-o,l=n.y-a,u=s*s+l*l;return u>0&&((r=((e.x-o)*s+(e.y-a)*l)/u)>1?(o=n.x,a=n.y):r>0&&(o+=s*r,a+=l*r)),s=e.x-o,l=e.y-a,i?s*s+l*l:new M(o,a)}function Tn(e){return!g(e[0])||"object"!==typeof e[0][0]&&"undefined"!==typeof e[0][0]}function In(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Tn(e)}var Ln={__proto__:null,simplify:yn,pointToSegmentDistance:_n,closestPointOnSegment:bn,clipSegment:xn,_getEdgeIntersection:Cn,_getBitCode:En,_sqClosestPointOnSegment:Pn,isFlat:Tn,_flat:In};function On(e,t,n){var i,r,o,a,s,l,u,c,h,f=[1,4,2,8];for(r=0,u=e.length;r<u;r++)e[r]._code=En(e[r],t);for(a=0;a<4;a++){for(c=f[a],i=[],r=0,o=(u=e.length)-1;r<u;o=r++)s=e[r],l=e[o],s._code&c?l._code&c||((h=Cn(l,s,c,t,n))._code=En(h,t),i.push(h)):(l._code&c&&((h=Cn(l,s,c,t,n))._code=En(h,t),i.push(h)),i.push(s));e=i}return e}var Mn={__proto__:null,clipPolygon:On},Nn={project:function(e){return new M(e.lng,e.lat)},unproject:function(e){return new F(e.y,e.x)},bounds:new B([-180,-90],[180,90])},Rn={R:6378137,R_MINOR:6356752.314245179,bounds:new B([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,n=this.R,i=e.lat*t,r=this.R_MINOR/n,o=Math.sqrt(1-r*r),a=o*Math.sin(i),s=Math.tan(Math.PI/4-i/2)/Math.pow((1-a)/(1+a),o/2);return i=-n*Math.log(Math.max(s,1e-10)),new M(e.lng*t*n,i)},unproject:function(e){for(var t,n=180/Math.PI,i=this.R,r=this.R_MINOR/i,o=Math.sqrt(1-r*r),a=Math.exp(-e.y/i),s=Math.PI/2-2*Math.atan(a),l=0,u=.1;l<15&&Math.abs(u)>1e-7;l++)t=o*Math.sin(s),t=Math.pow((1-t)/(1+t),o/2),s+=u=Math.PI/2-2*Math.atan(a*t)-s;return new F(s*n,e.x*n/i)}},Bn={__proto__:null,LonLat:Nn,Mercator:Rn,SphericalMercator:G},Dn=n({},U,{code:"EPSG:3395",projection:Rn,transformation:function(){var e=.5/(Math.PI*Rn.R);return V(e,.5,-e,.5)}()}),zn=n({},U,{code:"EPSG:4326",projection:Nn,transformation:V(1/180,1,-1/180,.5)}),jn=n({},W,{projection:Nn,transformation:V(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var n=t.lng-e.lng,i=t.lat-e.lat;return Math.sqrt(n*n+i*i)},infinite:!0});W.Earth=U,W.EPSG3395=Dn,W.EPSG3857=Q,W.EPSG900913=q,W.EPSG4326=zn,W.Simple=jn;var Fn=O.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[a(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[a(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){var n=this.getEvents();t.on(n,this),this.once("remove",(function(){t.off(n,this)}),this)}this.onAdd(t),this.fire("add"),t.fire("layeradd",{layer:this})}}});$t.include({addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var t=a(e);return this._layers[t]||(this._layers[t]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e)),this},removeLayer:function(e){var t=a(e);return this._layers[t]?(this._loaded&&e.onRemove(this),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null,this):this},hasLayer:function(e){return a(e)in this._layers},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},_addLayers:function(e){for(var t=0,n=(e=e?g(e)?e:[e]:[]).length;t<n;t++)this.addLayer(e[t])},_addZoomLimit:function(e){isNaN(e.options.maxZoom)&&isNaN(e.options.minZoom)||(this._zoomBoundLayers[a(e)]=e,this._updateZoomLevels())},_removeZoomLimit:function(e){var t=a(e);this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var e=1/0,t=-1/0,n=this._getZoomSpan();for(var i in this._zoomBoundLayers){var r=this._zoomBoundLayers[i].options;e=void 0===r.minZoom?e:Math.min(e,r.minZoom),t=void 0===r.maxZoom?t:Math.max(t,r.maxZoom)}this._layersMaxZoom=t===-1/0?void 0:t,this._layersMinZoom=e===1/0?void 0:e,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Zn=Fn.extend({initialize:function(e,t){var n,i;if(d(this,t),this._layers={},e)for(n=0,i=e.length;n<i;n++)this.addLayer(e[n])},addLayer:function(e){var t=this.getLayerId(e);return this._layers[t]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){var t=e in this._layers?e:this.getLayerId(e);return this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(e){return("number"===typeof e?e:this.getLayerId(e))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(e){var t,n,i=Array.prototype.slice.call(arguments,1);for(t in this._layers)(n=this._layers[t])[e]&&n[e].apply(n,i);return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];return this.eachLayer(e.push,e),e},setZIndex:function(e){return this.invoke("setZIndex",e)},getLayerId:function(e){return a(e)}}),Wn=function(e,t){return new Zn(e,t)},Un=Zn.extend({addLayer:function(e){return this.hasLayer(e)?this:(e.addEventParent(this),Zn.prototype.addLayer.call(this,e),this.fire("layeradd",{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?(e in this._layers&&(e=this._layers[e]),e.removeEventParent(this),Zn.prototype.removeLayer.call(this,e),this.fire("layerremove",{layer:e})):this},setStyle:function(e){return this.invoke("setStyle",e)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e=new z;for(var t in this._layers){var n=this._layers[t];e.extend(n.getBounds?n.getBounds():n.getLatLng())}return e}}),Hn=function(e,t){return new Un(e,t)},Gn=P.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(e){d(this,e)},createIcon:function(e){return this._createIcon("icon",e)},createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,t){var n=this._getIconUrl(e);if(!n){if("icon"===e)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var i=this._createImg(n,t&&"IMG"===t.tagName?t:null);return this._setIconStyles(i,e),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),i},_setIconStyles:function(e,t){var n=this.options,i=n[t+"Size"];"number"===typeof i&&(i=[i,i]);var r=R(i),o=R("shadow"===t&&n.shadowAnchor||n.iconAnchor||r&&r.divideBy(2,!0));e.className="leaflet-marker-"+t+" "+(n.className||""),o&&(e.style.marginLeft=-o.x+"px",e.style.marginTop=-o.y+"px"),r&&(e.style.width=r.x+"px",e.style.height=r.y+"px")},_createImg:function(e,t){return(t=t||document.createElement("img")).src=e,t},_getIconUrl:function(e){return Ne.retina&&this.options[e+"RetinaUrl"]||this.options[e+"Url"]}});function Yn(e){return new Gn(e)}var Vn=Gn.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(e){return"string"!==typeof Vn.imagePath&&(Vn.imagePath=this._detectIconPath()),(this.options.imagePath||Vn.imagePath)+Gn.prototype._getIconUrl.call(this,e)},_stripUrl:function(e){var t=function(e,t,n){var i=t.exec(e);return i&&i[n]};return(e=t(e,/^url\((['"])?(.+)\1\)$/,2))&&t(e,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var e=ht("div","leaflet-default-icon-path",document.body),t=ct(e,"background-image")||ct(e,"backgroundImage");if(document.body.removeChild(e),t=this._stripUrl(t))return t;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-"leaflet.css".length-1):""}}),Qn=dn.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new gn(e,e,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),gt(e,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&yt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(e){var t=this._marker,n=t._map,i=this._marker.options.autoPanSpeed,r=this._marker.options.autoPanPadding,o=Et(t._icon),a=n.getPixelBounds(),s=n.getPixelOrigin(),l=D(a.min._subtract(s).add(r),a.max._subtract(s).subtract(r));if(!l.contains(o)){var u=R((Math.max(l.max.x,o.x)-l.max.x)/(a.max.x-l.max.x)-(Math.min(l.min.x,o.x)-l.min.x)/(a.min.x-l.min.x),(Math.max(l.max.y,o.y)-l.max.y)/(a.max.y-l.max.y)-(Math.min(l.min.y,o.y)-l.min.y)/(a.min.y-l.min.y)).multiplyBy(i);n.panBy(u,{animate:!1}),this._draggable._newPos._add(u),this._draggable._startPos._add(u),Ct(t._icon,this._draggable._newPos),this._onDrag(e),this._panRequest=C(this._adjustPan.bind(this,e))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(e){this._marker.options.autoPan&&(E(this._panRequest),this._panRequest=C(this._adjustPan.bind(this,e)))},_onDrag:function(e){var t=this._marker,n=t._shadow,i=Et(t._icon),r=t._map.layerPointToLatLng(i);n&&Ct(n,i),t._latlng=r,e.latlng=r,e.oldLatLng=this._oldLatLng,t.fire("move",e).fire("drag",e)},_onDragEnd:function(e){E(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",e)}}),qn=Fn.extend({options:{icon:new Vn,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(e,t){d(this,t),this._latlng=Z(e)},onAdd:function(e){this._zoomAnimated=this._zoomAnimated&&e.options.markerZoomAnimation,this._zoomAnimated&&e.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(e){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&e.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(e){var t=this._latlng;return this._latlng=Z(e),this.update(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update()},getIcon:function(){return this.options.icon},setIcon:function(e){return this.options.icon=e,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var e=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(e)}return this},_initIcon:function(){var e=this.options,t="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=e.icon.createIcon(this._icon),i=!1;n!==this._icon&&(this._icon&&this._removeIcon(),i=!0,e.title&&(n.title=e.title),"IMG"===n.tagName&&(n.alt=e.alt||"")),gt(n,t),e.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Rt(n,"focus",this._panOnFocus,this);var r=e.icon.createShadow(this._shadow),o=!1;r!==this._shadow&&(this._removeShadow(),o=!0),r&&(gt(r,t),r.alt=""),this._shadow=r,e.opacity<1&&this._updateOpacity(),i&&this.getPane().appendChild(this._icon),this._initInteraction(),r&&o&&this.getPane(e.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Dt(this._icon,"focus",this._panOnFocus,this),ft(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ft(this._shadow),this._shadow=null},_setPos:function(e){this._icon&&Ct(this._icon,e),this._shadow&&Ct(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon&&(this._icon.style.zIndex=this._zIndex+e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(t)},_initInteraction:function(){if(this.options.interactive&&(gt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Qn)){var e=this.options.draggable;this.dragging&&(e=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Qn(this),e&&this.dragging.enable()}},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var e=this.options.opacity;this._icon&&wt(this._icon,e),this._shadow&&wt(this._shadow,e)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var e=this._map;if(e){var t=this.options.icon.options,n=t.iconSize?R(t.iconSize):R(0,0),i=t.iconAnchor?R(t.iconAnchor):R(0,0);e.panInside(this._latlng,{paddingTopLeft:i,paddingBottomRight:n.subtract(i)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Jn(e,t){return new qn(e,t)}var Kn=Fn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(e){this._renderer=e.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(e){return d(this,e),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&e&&Object.prototype.hasOwnProperty.call(e,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Xn=Kn.extend({options:{fill:!0,radius:10},initialize:function(e,t){d(this,t),this._latlng=Z(e),this._radius=this.options.radius},setLatLng:function(e){var t=this._latlng;return this._latlng=Z(e),this.redraw(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},getRadius:function(){return this._radius},setStyle:function(e){var t=e&&e.radius||this._radius;return Kn.prototype.setStyle.call(this,e),this.setRadius(t),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._radius,t=this._radiusY||e,n=this._clickTolerance(),i=[e+n,t+n];this._pxBounds=new B(this._point.subtract(i),this._point.add(i))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(e){return e.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function $n(e,t){return new Xn(e,t)}var ei=Xn.extend({initialize:function(e,t,i){if("number"===typeof t&&(t=n({},i,{radius:t})),d(this,t),this._latlng=Z(e),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(e){return this._mRadius=e,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var e=[this._radius,this._radiusY||this._radius];return new z(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:Kn.prototype.setStyle,_project:function(){var e=this._latlng.lng,t=this._latlng.lat,n=this._map,i=n.options.crs;if(i.distance===U.distance){var r=Math.PI/180,o=this._mRadius/U.R/r,a=n.project([t+o,e]),s=n.project([t-o,e]),l=a.add(s).divideBy(2),u=n.unproject(l).lat,c=Math.acos((Math.cos(o*r)-Math.sin(t*r)*Math.sin(u*r))/(Math.cos(t*r)*Math.cos(u*r)))/r;(isNaN(c)||0===c)&&(c=o/Math.cos(Math.PI/180*t)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(c)?0:l.x-n.project([u,e-c]).x,this._radiusY=l.y-a.y}else{var h=i.unproject(i.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(h).x}this._updateBounds()}});
vendor: 10,062 bytes, line 2
2function ti(e,t,n){return new ei(e,t,n)}var ni=Kn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(e,t){d(this,t),this._setLatLngs(e)},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){return this._setLatLngs(e),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(e){for(var t,n,i=1/0,r=null,o=Pn,a=0,s=this._parts.length;a<s;a++)for(var l=this._parts[a],u=1,c=l.length;u<c;u++){var h=o(e,t=l[u-1],n=l[u],!0);h<i&&(i=h,r=o(e,t,n))}return r&&(r.distance=Math.sqrt(i)),r},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var e,t,n,i,r,o,a,s=this._rings[0],l=s.length;if(!l)return null;for(e=0,t=0;e<l-1;e++)t+=s[e].distanceTo(s[e+1])/2;if(0===t)return this._map.layerPointToLatLng(s[0]);for(e=0,i=0;e<l-1;e++)if(r=s[e],o=s[e+1],(i+=n=r.distanceTo(o))>t)return a=(i-t)/n,this._map.layerPointToLatLng([o.x-a*(o.x-r.x),o.y-a*(o.y-r.y)])},getBounds:function(){return this._bounds},addLatLng:function(e,t){return t=t||this._defaultShape(),e=Z(e),t.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new z,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return Tn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var t=[],n=Tn(e),i=0,r=e.length;i<r;i++)n?(t[i]=Z(e[i]),this._bounds.extend(t[i])):t[i]=this._convertLatLngs(e[i]);return t},_project:function(){var e=new B;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,e),this._bounds.isValid()&&e.isValid()&&(this._rawPxBounds=e,this._updateBounds())},_updateBounds:function(){var e=this._clickTolerance(),t=new M(e,e);this._rawPxBounds&&(this._pxBounds=new B([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)]))},_projectLatlngs:function(e,t,n){var i,r,o=e[0]instanceof F,a=e.length;if(o){for(r=[],i=0;i<a;i++)r[i]=this._map.latLngToLayerPoint(e[i]),n.extend(r[i]);t.push(r)}else for(i=0;i<a;i++)this._projectLatlngs(e[i],t,n)},_clipPoints:function(){var e=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else{var t,n,i,r,o,a,s,l=this._parts;for(t=0,i=0,r=this._rings.length;t<r;t++)for(n=0,o=(s=this._rings[t]).length;n<o-1;n++)(a=xn(s[n],s[n+1],e,n,!0))&&(l[i]=l[i]||[],l[i].push(a[0]),a[1]===s[n+1]&&n!==o-2||(l[i].push(a[1]),i++))}},_simplifyPoints:function(){for(var e=this._parts,t=this.options.smoothFactor,n=0,i=e.length;n<i;n++)e[n]=yn(e[n],t)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(e,t){var n,i,r,o,a,s,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(n=0,o=this._parts.length;n<o;n++)for(i=0,r=(a=(s=this._parts[n]).length)-1;i<a;r=i++)if((t||0!==i)&&_n(e,s[r],s[i])<=l)return!0;return!1}});function ii(e,t){return new ni(e,t)}ni._flat=In;var ri=ni.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var e,t,n,i,r,o,a,s,l,u=this._rings[0],c=u.length;if(!c)return null;for(o=a=s=0,e=0,t=c-1;e<c;t=e++)n=u[e],i=u[t],r=n.y*i.x-i.y*n.x,a+=(n.x+i.x)*r,s+=(n.y+i.y)*r,o+=3*r;return l=0===o?u[0]:[a/o,s/o],this._map.layerPointToLatLng(l)},_convertLatLngs:function(e){var t=ni.prototype._convertLatLngs.call(this,e),n=t.length;return n>=2&&t[0]instanceof F&&t[0].equals(t[n-1])&&t.pop(),t},_setLatLngs:function(e){ni.prototype._setLatLngs.call(this,e),Tn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Tn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,t=this.options.weight,n=new M(t,t);if(e=new B(e.min.subtract(n),e.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else for(var i,r=0,o=this._rings.length;r<o;r++)(i=On(this._rings[r],e,!0)).length&&this._parts.push(i)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(e){var t,n,i,r,o,a,s,l,u=!1;if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(r=0,s=this._parts.length;r<s;r++)for(o=0,a=(l=(t=this._parts[r]).length)-1;o<l;a=o++)n=t[o],i=t[a],n.y>e.y!==i.y>e.y&&e.x<(i.x-n.x)*(e.y-n.y)/(i.y-n.y)+n.x&&(u=!u);return u||ni.prototype._containsPoint.call(this,e,!0)}});function oi(e,t){return new ri(e,t)}var ai=Un.extend({initialize:function(e,t){d(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t,n,i,r=g(e)?e:e.features;if(r){for(t=0,n=r.length;t<n;t++)((i=r[t]).geometries||i.geometry||i.features||i.coordinates)&&this.addData(i);return this}var o=this.options;if(o.filter&&!o.filter(e))return this;var a=si(e,o);return a?(a.feature=pi(e),a.defaultOptions=a.options,this.resetStyle(a),o.onEachFeature&&o.onEachFeature(e,a),this.addLayer(a)):this},resetStyle:function(e){return void 0===e?this.eachLayer(this.resetStyle,this):(e.options=n({},e.defaultOptions),this._setLayerStyle(e,this.options.style),this)},setStyle:function(e){return this.eachLayer((function(t){this._setLayerStyle(t,e)}),this)},_setLayerStyle:function(e,t){e.setStyle&&("function"===typeof t&&(t=t(e.feature)),e.setStyle(t))}});function si(e,t){var n,i,r,o,a="Feature"===e.type?e.geometry:e,s=a?a.coordinates:null,l=[],u=t&&t.pointToLayer,c=t&&t.coordsToLatLng||ui;if(!s&&!a)return null;switch(a.type){case"Point":return li(u,e,n=c(s),t);case"MultiPoint":for(r=0,o=s.length;r<o;r++)n=c(s[r]),l.push(li(u,e,n,t));return new Un(l);case"LineString":case"MultiLineString":return i=ci(s,"LineString"===a.type?0:1,c),new ni(i,t);case"Polygon":case"MultiPolygon":return i=ci(s,"Polygon"===a.type?1:2,c),new ri(i,t);case"GeometryCollection":for(r=0,o=a.geometries.length;r<o;r++){var h=si({geometry:a.geometries[r],type:"Feature",properties:e.properties},t);h&&l.push(h)}return new Un(l);default:throw new Error("Invalid GeoJSON object.")}}function li(e,t,n,i){return e?e(t,n):new qn(n,i&&i.markersInheritOptions&&i)}function ui(e){return new F(e[1],e[0],e[2])}function ci(e,t,n){for(var i,r=[],o=0,a=e.length;o<a;o++)i=t?ci(e[o],t-1,n):(n||ui)(e[o]),r.push(i);return r}function hi(e,t){return void 0!==(e=Z(e)).alt?[c(e.lng,t),c(e.lat,t),c(e.alt,t)]:[c(e.lng,t),c(e.lat,t)]}function fi(e,t,n,i){for(var r=[],o=0,a=e.length;o<a;o++)r.push(t?fi(e[o],t-1,n,i):hi(e[o],i));return!t&&n&&r.push(r[0]),r}function di(e,t){return e.feature?n({},e.feature,{geometry:t}):pi(t)}function pi(e){return"Feature"===e.type||"FeatureCollection"===e.type?e:{type:"Feature",properties:{},geometry:e}}var mi={toGeoJSON:function(e){return di(this,{type:"Point",coordinates:hi(this.getLatLng(),e)})}};function vi(e,t){return new ai(e,t)}qn.include(mi),ei.include(mi),Xn.include(mi),ni.include({toGeoJSON:function(e){var t=!Tn(this._latlngs);return di(this,{type:(t?"Multi":"")+"LineString",coordinates:fi(this._latlngs,t?1:0,!1,e)})}}),ri.include({toGeoJSON:function(e){var t=!Tn(this._latlngs),n=t&&!Tn(this._latlngs[0]),i=fi(this._latlngs,n?2:t?1:0,!0,e);return t||(i=[i]),di(this,{type:(n?"Multi":"")+"Polygon",coordinates:i})}}),Zn.include({toMultiPoint:function(e){var t=[];return this.eachLayer((function(n){t.push(n.toGeoJSON(e).geometry.coordinates)})),di(this,{type:"MultiPoint",coordinates:t})},toGeoJSON:function(e){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===t)return this.toMultiPoint(e);var n="GeometryCollection"===t,i=[];return this.eachLayer((function(t){if(t.toGeoJSON){var r=t.toGeoJSON(e);if(n)i.push(r.geometry);else{var o=pi(r);"FeatureCollection"===o.type?i.push.apply(i,o.features):i.push(o)}}})),n?di(this,{geometries:i,type:"GeometryCollection"}):{type:"FeatureCollection",features:i}}});var gi=vi,yi=Fn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,t,n){this._url=e,this._bounds=j(t),d(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(gt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ft(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&pt(this._image),this},bringToBack:function(){return this._map&&mt(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=j(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e="IMG"===this._url.tagName,t=this._image=e?this._url:ht("img");gt(t,"leaflet-image-layer"),this._zoomAnimated&&gt(t,"leaflet-zoom-animated"),this.options.className&&gt(t,this.options.className),t.onselectstart=u,t.onmousemove=u,t.onload=r(this.fire,this,"load"),t.onerror=r(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(t.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e?this._url=t.src:(t.src=this._url,t.alt=this.options.alt)},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;xt(this._image,n,t)},_reset:function(){var e=this._image,t=new B(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=t.getSize();
vendor: 6,134 bytes, line 2
2Ct(e,t.min),e.style.width=n.x+"px",e.style.height=n.y+"px"},_updateOpacity:function(){wt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},getCenter:function(){return this._bounds.getCenter()}}),_i=function(e,t,n){return new yi(e,t,n)},bi=yi.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var e="VIDEO"===this._url.tagName,t=this._image=e?this._url:ht("video");if(gt(t,"leaflet-image-layer"),this._zoomAnimated&&gt(t,"leaflet-zoom-animated"),this.options.className&&gt(t,this.options.className),t.onselectstart=u,t.onmousemove=u,t.onloadeddata=r(this.fire,this,"load"),e){for(var n=t.getElementsByTagName("source"),i=[],o=0;o<n.length;o++)i.push(n[o].src);this._url=n.length>0?i:[t.src]}else{g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,"objectFit")&&(t.style.objectFit="fill"),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop,t.muted=!!this.options.muted,t.playsInline=!!this.options.playsInline;for(var a=0;a<this._url.length;a++){var s=ht("source");s.src=this._url[a],t.appendChild(s)}}}});function wi(e,t,n){return new bi(e,t,n)}var ki=yi.extend({_initImage:function(){var e=this._image=this._url;gt(e,"leaflet-image-layer"),this._zoomAnimated&&gt(e,"leaflet-zoom-animated"),this.options.className&&gt(e,this.options.className),e.onselectstart=u,e.onmousemove=u}});function Ai(e,t,n){return new ki(e,t,n)}var xi=Fn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0},initialize:function(e,t){d(this,e),this._source=t},openOn:function(e){return(e=arguments.length?e:this._source._map).hasLayer(this)||e.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(e){return this._map?this.close():(arguments.length?this._source=e:e=this._source,this._prepareOpen(),this.openOn(e._map)),this},onAdd:function(e){this._zoomAnimated=e._zoomAnimated,this._container||this._initLayout(),e._fadeAnimated&&wt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),e._fadeAnimated&&wt(this._container,1),this.bringToFront(),this.options.interactive&&(gt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(e){e._fadeAnimated?(wt(this._container,0),this._removeTimeout=setTimeout(r(ft,void 0,this._container),200)):ft(this._container),this.options.interactive&&(yt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=Z(e),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(e){return this._content=e,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var e={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&pt(this._container),this},bringToBack:function(){return this._map&&mt(this._container),this},_prepareOpen:function(e){var t=this._source;if(!t._map)return!1;if(t instanceof Un){t=null;var n=this._source._layers;for(var i in n)if(n[i]._map){t=n[i];break}if(!t)return!1;this._source=t}if(!e)if(t.getCenter)e=t.getCenter();else if(t.getLatLng)e=t.getLatLng();else{if(!t.getBounds)throw new Error("Unable to get source layer LatLng.");e=t.getBounds().getCenter()}return this.setLatLng(e),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var e=this._contentNode,t="function"===typeof this._content?this._content(this._source||this):this._content;if("string"===typeof t)e.innerHTML=t;else{for(;e.hasChildNodes();)e.removeChild(e.firstChild);e.appendChild(t)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var e=this._map.latLngToLayerPoint(this._latlng),t=R(this.options.offset),n=this._getAnchor();this._zoomAnimated?Ct(this._container,e.add(n)):t=t.add(e).add(n);var i=this._containerBottom=-t.y,r=this._containerLeft=-Math.round(this._containerWidth/2)+t.x;this._container.style.bottom=i+"px",this._container.style.left=r+"px"}},_getAnchor:function(){return[0,0]}});$t.include({_initOverlay:function(e,t,n,i){var r=t;return r instanceof e||(r=new e(i).setContent(t)),n&&r.setLatLng(n),r}}),Fn.include({_initOverlay:function(e,t,n,i){var r=n;return r instanceof e?(d(r,i),r._source=this):(r=t&&!i?t:new e(i,this)).setContent(n),r}});var Ci=xi.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(e){return!(e=arguments.length?e:this._source._map).hasLayer(this)&&e._popup&&e._popup.options.autoClose&&e.removeLayer(e._popup),e._popup=this,xi.prototype.openOn.call(this,e)},onAdd:function(e){xi.prototype.onAdd.call(this,e),e.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Kn||this._source.on("preclick",Wt))},onRemove:function(e){xi.prototype.onRemove.call(this,e),e.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Kn||this._source.off("preclick",Wt))},getEvents:function(){var e=xi.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(e.preclick=this.close),this.options.keepInView&&
vendor: 10,905 bytes, line 2
2(e.moveend=this._adjustPan),e},_initLayout:function(){var e="leaflet-popup",t=this._container=ht("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=ht("div",e+"-content-wrapper",t);if(this._contentNode=ht("div",e+"-content",n),Ht(t),Ut(this._contentNode),Rt(t,"contextmenu",Wt),this._tipContainer=ht("div",e+"-tip-container",t),this._tip=ht("div",e+"-tip",this._tipContainer),this.options.closeButton){var i=this._closeButton=ht("a",e+"-close-button",t);i.setAttribute("role","button"),i.setAttribute("aria-label","Close popup"),i.href="#close",i.innerHTML='<span aria-hidden="true">&#215;</span>',Rt(i,"click",this.close,this)}},_updateLayout:function(){var e=this._contentNode,t=e.style;t.width="",t.whiteSpace="nowrap";var n=e.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),t.width=n+1+"px",t.whiteSpace="",t.height="";var i=e.offsetHeight,r=this.options.maxHeight,o="leaflet-popup-scrolled";r&&i>r?(t.height=r+"px",gt(e,o)):yt(e,o),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),n=this._getAnchor();Ct(this._container,t.add(n))},_adjustPan:function(e){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var t=this._map,n=parseInt(ct(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+n,r=this._containerWidth,o=new M(this._containerLeft,-i-this._containerBottom);o._add(Et(this._container));var a=t.layerPointToContainerPoint(o),s=R(this.options.autoPanPadding),l=R(this.options.autoPanPaddingTopLeft||s),u=R(this.options.autoPanPaddingBottomRight||s),c=t.getSize(),h=0,f=0;a.x+r+u.x>c.x&&(h=a.x+r-c.x+u.x),a.x-h-l.x<0&&(h=a.x-l.x),a.y+i+u.y>c.y&&(f=a.y+i-c.y+u.y),a.y-f-l.y<0&&(f=a.y-l.y),(h||f)&&t.fire("autopanstart").panBy([h,f],{animate:e&&"moveend"===e.type})}},_getAnchor:function(){return R(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Ei=function(e,t){return new Ci(e,t)};$t.mergeOptions({closePopupOnClick:!0}),$t.include({openPopup:function(e,t,n){return this._initOverlay(Ci,e,t,n).openOn(this),this},closePopup:function(e){return(e=arguments.length?e:this._popup)&&e.close(),this}}),Fn.include({bindPopup:function(e,t){return this._popup=this._initOverlay(Ci,this._popup,e,t),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(e){return this._popup&&this._popup._prepareOpen(e)&&this._popup.openOn(this._map),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){if(this._popup&&this._map){Yt(e);var t=e.layer||e.target;this._popup._source!==t||t instanceof Kn?(this._popup._source=t,this.openPopup(e.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng)}},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){13===e.originalEvent.keyCode&&this._openPopup(e)}});var Si=xi.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(e){xi.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(e){xi.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var e=xi.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){var e="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ht("div",e)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t,n,i=this._map,r=this._container,o=i.latLngToContainerPoint(i.getCenter()),a=i.layerPointToContainerPoint(e),s=this.options.direction,l=r.offsetWidth,u=r.offsetHeight,c=R(this.options.offset),h=this._getAnchor();"top"===s?(t=l/2,n=u):"bottom"===s?(t=l/2,n=0):"center"===s?(t=l/2,n=u/2):"right"===s?(t=0,n=u/2):"left"===s?(t=l,n=u/2):a.x<o.x?(s="right",t=0,n=u/2):(s="left",t=l+2*(c.x+h.x),n=u/2),e=e.subtract(R(t,n,!0)).add(c).add(h),yt(r,"leaflet-tooltip-right"),yt(r,"leaflet-tooltip-left"),yt(r,"leaflet-tooltip-top"),yt(r,"leaflet-tooltip-bottom"),gt(r,"leaflet-tooltip-"+s),Ct(r,e)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},setOpacity:function(e){this.options.opacity=e,this._container&&wt(this._container,e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);this._setPosition(t)},_getAnchor:function(){return R(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Pi=function(e,t){return new Si(e,t)};$t.include({openTooltip:function(e,t,n){return this._initOverlay(Si,e,t,n).openOn(this),this},closeTooltip:function(e){return e.close(),this}}),Fn.include({bindTooltip:function(e,t){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Si,this._tooltip,e,t),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(e){if(e||!this._tooltipHandlersAdded){var t=e?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[t](n),this._tooltipHandlersAdded=!e}},openTooltip:function(e){return this._tooltip&&this._tooltip._prepareOpen(e)&&this._tooltip.openOn(this._map),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(e){return this._tooltip&&this._tooltip.setContent(e),this},getTooltip:function(){return this._tooltip},_openTooltip:function(e){!this._tooltip||!this._map||this._map.dragging&&this._map.dragging.moving()||(this._tooltip._source=e.layer||e.target,this.openTooltip(this._tooltip.options.sticky?e.latlng:void 0))},_moveTooltip:function(e){var t,n,i=e.latlng;this._tooltip.options.sticky&&e.originalEvent&&(t=this._map.mouseEventToContainerPoint(e.originalEvent),n=this._map.containerPointToLayerPoint(t),i=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(i)}});var Ti=Gn.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(e){var t=e&&"DIV"===e.tagName?e:document.createElement("div"),n=this.options;if(n.html instanceof Element?(dt(t),t.appendChild(n.html)):t.innerHTML=!1!==n.html?n.html:"",n.bgPos){var i=R(n.bgPos);t.style.backgroundPosition=-i.x+"px "+-i.y+"px"}return this._setIconStyles(t,"icon"),t},createShadow:function(){return null}});function Ii(e){return new Ti(e)}Gn.Default=Vn;var Li=Fn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Ne.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(e){d(this,e)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles(),ft(this._container),e._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(pt(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(mt(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var e=this._clampZoom(this._map.getZoom());e!==this._tileZoom&&(this._tileZoom=e,this._updateLevels()),this._update()}return this},getEvents:function(){var e={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=s(this._onMoveEnd,this.options.updateInterval,this)),e.move=this._onMove),this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},createTile:function(){return document.createElement("div")},getTileSize:function(){var e=this.options.tileSize;return e instanceof M?e:new M(e,e)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e){for(var t,n=this.getPane().children,i=-e(-1/0,1/0),r=0,o=n.length;r<o;r++)t=n[r].style.zIndex,n[r]!==this._container&&t&&(i=e(i,+t));isFinite(i)&&(this.options.zIndex=i+e(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Ne.ielt9){wt(this._container,this.options.opacity);var e=+new Date,t=!1,n=!1;for(var i in this._tiles){var r=this._tiles[i];if(r.current&&r.loaded){var o=Math.min(1,(e-r.loaded)/200);wt(r.el,o),o<1?t=!0:(r.active?n=!0:this._onOpaqueTile(r),r.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),t&&(E(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this))}},_onOpaqueTile:u,_initContainer:function(){this._container||(this._container=ht("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var e=this._tileZoom,t=this.options.maxZoom;if(void 0!==e){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===e?(this._levels[n].el.style.zIndex=t-Math.abs(e-n),this._onUpdateLevel(n)):(ft(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var i=this._levels[e],r=this._map;
vendor: 14,185 bytes, line 2
2return i||((i=this._levels[e]={}).el=ht("div","leaflet-tile-container leaflet-zoom-animated",this._container),i.el.style.zIndex=t,i.origin=r.project(r.unproject(r.getPixelOrigin()),e).round(),i.zoom=e,this._setZoomTransform(i,r.getCenter(),r.getZoom()),u(i.el.offsetWidth),this._onCreateLevel(i)),this._level=i,i}},_onUpdateLevel:u,_onRemoveLevel:u,_onCreateLevel:u,_pruneTiles:function(){if(this._map){var e,t,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(e in this._tiles)(t=this._tiles[e]).retain=t.current;for(e in this._tiles)if((t=this._tiles[e]).current&&!t.active){var i=t.coords;this._retainParent(i.x,i.y,i.z,i.z-5)||this._retainChildren(i.x,i.y,i.z,i.z+2)}for(e in this._tiles)this._tiles[e].retain||this._removeTile(e)}}},_removeTilesAtZoom:function(e){for(var t in this._tiles)this._tiles[t].coords.z===e&&this._removeTile(t)},_removeAllTiles:function(){for(var e in this._tiles)this._removeTile(e)},_invalidateAll:function(){for(var e in this._levels)ft(this._levels[e].el),this._onRemoveLevel(Number(e)),delete this._levels[e];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(e,t,n,i){var r=Math.floor(e/2),o=Math.floor(t/2),a=n-1,s=new M(+r,+o);s.z=+a;var l=this._tileCoordsToKey(s),u=this._tiles[l];return u&&u.active?(u.retain=!0,!0):(u&&u.loaded&&(u.retain=!0),a>i&&this._retainParent(r,o,a,i))},_retainChildren:function(e,t,n,i){for(var r=2*e;r<2*e+2;r++)for(var o=2*t;o<2*t+2;o++){var a=new M(r,o);a.z=n+1;var s=this._tileCoordsToKey(a),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1<i&&this._retainChildren(r,o,n+1,i))}},_resetView:function(e){var t=e&&(e.pinch||e.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(e){this._setView(e.center,e.zoom,!0,e.noUpdate)},_clampZoom:function(e){var t=this.options;return void 0!==t.minNativeZoom&&e<t.minNativeZoom?t.minNativeZoom:void 0!==t.maxNativeZoom&&t.maxNativeZoom<e?t.maxNativeZoom:e},_setView:function(e,t,n,i){var r=Math.round(t);r=void 0!==this.options.maxZoom&&r>this.options.maxZoom||void 0!==this.options.minZoom&&r<this.options.minZoom?void 0:this._clampZoom(r);var o=this.options.updateWhenZooming&&r!==this._tileZoom;i&&!o||(this._tileZoom=r,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==r&&this._update(e),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(e,t)},_setZoomTransforms:function(e,t){for(var n in this._levels)this._setZoomTransform(this._levels[n],e,t)},_setZoomTransform:function(e,t,n){var i=this._map.getZoomScale(n,e.zoom),r=e.origin.multiplyBy(i).subtract(this._map._getNewPixelOrigin(t,n)).round();Ne.any3d?xt(e.el,r,i):Ct(e.el,r)},_resetGrid:function(){var e=this._map,t=e.options.crs,n=this._tileSize=this.getTileSize(),i=this._tileZoom,r=this._map.getPixelWorldBounds(this._tileZoom);r&&(this._globalTileRange=this._pxBoundsToTileRange(r)),this._wrapX=t.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,t.wrapLng[0]],i).x/n.x),Math.ceil(e.project([0,t.wrapLng[1]],i).x/n.y)],this._wrapY=t.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([t.wrapLat[0],0],i).y/n.x),Math.ceil(e.project([t.wrapLat[1],0],i).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(e){var t=this._map,n=t._animatingZoom?Math.max(t._animateToZoom,t.getZoom()):t.getZoom(),i=t.getZoomScale(n,this._tileZoom),r=t.project(e,this._tileZoom).floor(),o=t.getSize().divideBy(2*i);return new B(r.subtract(o),r.add(o))},_update:function(e){var t=this._map;if(t){var n=this._clampZoom(t.getZoom());if(void 0===e&&(e=t.getCenter()),void 0!==this._tileZoom){var i=this._getTiledPixelBounds(e),r=this._pxBoundsToTileRange(i),o=r.getCenter(),a=[],s=this.options.keepBuffer,l=new B(r.getBottomLeft().subtract([s,-s]),r.getTopRight().add([s,-s]));if(!(isFinite(r.min.x)&&isFinite(r.min.y)&&isFinite(r.max.x)&&isFinite(r.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var u in this._tiles){var c=this._tiles[u].coords;c.z===this._tileZoom&&l.contains(new M(c.x,c.y))||(this._tiles[u].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(e,n);else{for(var h=r.min.y;h<=r.max.y;h++)for(var f=r.min.x;f<=r.max.x;f++){var d=new M(f,h);if(d.z=this._tileZoom,this._isValidTile(d)){var p=this._tiles[this._tileCoordsToKey(d)];p?p.current=!0:a.push(d)}}if(a.sort((function(e,t){return e.distanceTo(o)-t.distanceTo(o)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(f=0;f<a.length;f++)this._addTile(a[f],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(e){var t=this._map.options.crs;if(!t.infinite){var n=this._globalTileRange;if(!t.wrapLng&&(e.x<n.min.x||e.x>n.max.x)||!t.wrapLat&&(e.y<n.min.y||e.y>n.max.y))return!1}if(!this.options.bounds)return!0;var i=this._tileCoordsToBounds(e);return j(this.options.bounds).overlaps(i)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,n=this.getTileSize(),i=e.scaleBy(n),r=i.add(n);return[t.unproject(i,e.z),t.unproject(r,e.z)]},_tileCoordsToBounds:function(e){var t=this._tileCoordsToNwSe(e),n=new z(t[0],t[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var t=e.split(":"),n=new M(+t[0],+t[1]);return n.z=+t[2],n},_removeTile:function(e){var t=this._tiles[e];t&&(ft(t.el),delete this._tiles[e],this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){gt(e,"leaflet-tile");var t=this.getTileSize();e.style.width=t.x+"px",e.style.height=t.y+"px",e.onselectstart=u,e.onmousemove=u,Ne.ielt9&&this.options.opacity<1&&wt(e,this.options.opacity)},_addTile:function(e,t){var n=this._getTilePos(e),i=this._tileCoordsToKey(e),o=this.createTile(this._wrapCoords(e),r(this._tileReady,this,e));this._initTile(o),this.createTile.length<2&&C(r(this._tileReady,this,e,null,o)),Ct(o,n),this._tiles[i]={el:o,coords:e,current:!0},t.appendChild(o),this.fire("tileloadstart",{tile:o,coords:e})},_tileReady:function(e,t,n){t&&this.fire("tileerror",{error:t,tile:n,coords:e});var i=this._tileCoordsToKey(e);(n=this._tiles[i])&&(n.loaded=+new Date,this._map._fadeAnimated?(wt(n.el,0),E(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),t||(gt(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ne.ielt9||!this._map._fadeAnimated?C(this._pruneTiles,this):setTimeout(r(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new M(this._wrapX?l(e.x,this._wrapX):e.x,this._wrapY?l(e.y,this._wrapY):e.y);return t.z=e.z,t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new B(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}});function Oi(e){return new Li(e)}var Mi=Li.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(e,t){this._url=e,(t=d(this,t)).detectRetina&&Ne.retina&&t.maxZoom>0&&(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom++):(t.zoomOffset++,t.maxZoom--),t.minZoom=Math.max(0,t.minZoom)),"string"===typeof t.subdomains&&(t.subdomains=t.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(e,t){return this._url===e&&void 0===t&&(t=!0),this._url=e,t||this.redraw(),this},createTile:function(e,t){var n=document.createElement("img");return Rt(n,"load",r(this._tileOnLoad,this,t,n)),Rt(n,"error",r(this._tileOnError,this,t,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"===typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(e),n},getTileUrl:function(e){var t={r:Ne.retina?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-e.y;this.options.tms&&(t.y=i),t["-y"]=i}return v(this._url,n(t,this.options))},_tileOnLoad:function(e,t){Ne.ielt9?setTimeout(r(e,this,null,t),0):e(null,t)},_tileOnError:function(e,t,n){var i=this.options.errorTileUrl;i&&t.getAttribute("src")!==i&&(t.src=i),e(n,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom;return this.options.zoomReverse&&(e=t-e),e+this.options.zoomOffset},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},_abortLoading:function(){var e,t;for(e in this._tiles)if(this._tiles[e].coords.z!==this._tileZoom&&((t=this._tiles[e].el).onload=u,t.onerror=u,!t.complete)){t.src=_;var n=this._tiles[e].coords;ft(t),delete this._tiles[e],this.fire("tileabort",{tile:t,coords:n})}},_removeTile:function(e){var t=this._tiles[e];if(t)return t.el.setAttribute("src",_),Li.prototype._removeTile.call(this,e)},_tileReady:function(e,t,n){if(this._map&&(!n||n.getAttribute("src")!==_))return Li.prototype._tileReady.call(this,e,t,n)}});function Ni(e,t){return new Mi(e,t)}var Ri=Mi.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,t){this._url=e;var i=n({},this.defaultWmsParams);for(var r in t)r in this.options||(i[r]=t[r]);var o=(t=d(this,t)).detectRetina&&Ne.retina?2:1,a=this.getTileSize();i.width=a.x*o,i.height=a.y*o,this.wmsParams=i},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code,Mi.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),n=this._crs,i=D(n.project(t[0]),n.project(t[1])),r=i.min,o=i.max,a=(this._wmsVersion>=1.3&&this._crs===zn?[r.y,r.x,o.y,o.x]:[r.x,r.y,o.x,o.y]).join(","),s=Mi.prototype.getTileUrl.call(this,e);return s+p(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(e,t){return n(this.wmsParams,e),t||this.redraw(),this}});function Bi(e,t){return new Ri(e,t)}Mi.WMS=Ri,Ni.wms=Bi;var Di=Fn.extend({options:{padding:.1},initialize:function(e){d(this,e),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&gt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,t){var n=this._map.getZoomScale(t,this._zoom),i=this._map.getSize().multiplyBy(.5+this.options.padding),r=this._map.project(this._center,t),o=i.multiplyBy(-n).add(r).subtract(this._map._getNewPixelOrigin(e,t));Ne.any3d?xt(this._container,o,n):Ct(this._container,o)},_reset:function(){for(var e in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,t=this._map.getSize(),n=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();this._bounds=new B(n,n.add(t.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),zi=Di.extend({options:{tolerance:0},getEvents:function(){var e=Di.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Di.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");Rt(e,"mousemove",this._onMouseMove,this),Rt(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Rt(e,"mouseout",this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext("2d")},_destroyContainer:function(){E(this._redrawRequest),delete this._ctx,ft(this._container),Dt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var e in this._redrawBounds=null,this._layers)this._layers[e]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Di.prototype._update.call(this);var e=this._bounds,t=this._container,n=e.getSize(),i=Ne.retina?2:1;Ct(t,e.min),t.width=i*n.x,t.height=i*n.y,t.style.width=n.x+"px",t.style.height=n.y+"px",Ne.retina&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update")}},_reset:function(){Di.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[a(e)]=e;var t=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=e._order,n=t.next,i=t.prev;n?n.prev=i:this._drawLast=i,i?i.next=n:this._drawFirst=n,delete e._order,delete this._layers[a(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)}
vendor: 1,712 bytes, line 2
2,_updateDashArray:function(e){if("string"===typeof e.options.dashArray){var t,n,i=e.options.dashArray.split(/[, ]+/),r=[];for(n=0;n<i.length;n++){if(t=Number(i[n]),isNaN(t))return;r.push(t)}e.options._dashArray=r}else e.options._dashArray=e.options.dashArray},_requestRedraw:function(e){this._map&&(this._extendRedrawBounds(e),this._redrawRequest=this._redrawRequest||C(this._redraw,this))},_extendRedrawBounds:function(e){if(e._pxBounds){var t=(e.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new B,this._redrawBounds.extend(e._pxBounds.min.subtract([t,t])),this._redrawBounds.extend(e._pxBounds.max.add([t,t]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var e=this._redrawBounds;if(e){var t=e.getSize();this._ctx.clearRect(e.min.x,e.min.y,t.x,t.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var e,t=this._redrawBounds;if(this._ctx.save(),t){var n=t.getSize();this._ctx.beginPath(),this._ctx.rect(t.min.x,t.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var i=this._drawFirst;i;i=i.next)e=i.layer,(!t||e._pxBounds&&e._pxBounds.intersects(t))&&e._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(e,t){if(this._drawing){var n,i,r,o,a=e._parts,s=a.length,l=this._ctx;if(s){for(l.beginPath(),n=0;n<s;n++){for(i=0,r=a[n].length;i<r;i++)o=a[n][i],l[i?"lineTo":"moveTo"](o.x,o.y);t&&l.closePath()}this._fillStroke(l,e)}}},_updateCircle:function(e){if(this._drawing&&!e._empty()){var t=e._point,
vendor: 21,924 bytes, line 2
2n=this._ctx,i=Math.max(Math.round(e._radius),1),r=(Math.max(Math.round(e._radiusY),1)||i)/i;1!==r&&(n.save(),n.scale(1,r)),n.beginPath(),n.arc(t.x,t.y/r,i,0,2*Math.PI,!1),1!==r&&n.restore(),this._fillStroke(n,e)}},_fillStroke:function(e,t){var n=t.options;n.fill&&(e.globalAlpha=n.fillOpacity,e.fillStyle=n.fillColor||n.color,e.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(e.setLineDash&&e.setLineDash(t.options&&t.options._dashArray||[]),e.globalAlpha=n.opacity,e.lineWidth=n.weight,e.strokeStyle=n.color,e.lineCap=n.lineCap,e.lineJoin=n.lineJoin,e.stroke())},_onClick:function(e){for(var t,n,i=this._map.mouseEventToLayerPoint(e),r=this._drawFirst;r;r=r.next)(t=r.layer).options.interactive&&t._containsPoint(i)&&("click"!==e.type&&"preclick"!==e.type||!this._map._draggableMoved(t))&&(n=t);this._fireEvent(!!n&&[n],e)},_onMouseMove:function(e){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var t=this._map.mouseEventToLayerPoint(e);this._handleMouseHover(e,t)}},_handleMouseOut:function(e){var t=this._hoveredLayer;t&&(yt(this._container,"leaflet-interactive"),this._fireEvent([t],e,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(e,t){if(!this._mouseHoverThrottled){for(var n,i,o=this._drawFirst;o;o=o.next)(n=o.layer).options.interactive&&n._containsPoint(t)&&(i=n);i!==this._hoveredLayer&&(this._handleMouseOut(e),i&&(gt(this._container,"leaflet-interactive"),this._fireEvent([i],e,"mouseover"),this._hoveredLayer=i)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],e),this._mouseHoverThrottled=!0,setTimeout(r((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(e,t,n){this._map._fireDOMEvent(t,n||t.type,e)},_bringToFront:function(e){var t=e._order;if(t){var n=t.next,i=t.prev;n&&(n.prev=i,i?i.next=n:n&&(this._drawFirst=n),t.prev=this._drawLast,this._drawLast.next=t,t.next=null,this._drawLast=t,this._requestRedraw(e))}},_bringToBack:function(e){var t=e._order;if(t){var n=t.next,i=t.prev;i&&(i.next=n,n?n.prev=i:i&&(this._drawLast=i),t.prev=null,t.next=this._drawFirst,this._drawFirst.prev=t,this._drawFirst=t,this._requestRedraw(e))}}});function ji(e){return Ne.canvas?new zi(e):null}var Fi=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return document.createElement("<lvml:"+e+' class="lvml">')}}catch(e){}return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Zi={_initContainer:function(){this._container=ht("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Di.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var t=e._container=Fi("shape");gt(t,"leaflet-vml-shape "+(this.options.className||"")),t.coordsize="1 1",e._path=Fi("path"),t.appendChild(e._path),this._updateStyle(e),this._layers[a(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t),e.options.interactive&&e.addInteractiveTarget(t)},_removePath:function(e){var t=e._container;ft(t),e.removeInteractiveTarget(t),delete this._layers[a(e)]},_updateStyle:function(e){var t=e._stroke,n=e._fill,i=e.options,r=e._container;r.stroked=!!i.stroke,r.filled=!!i.fill,i.stroke?(t||(t=e._stroke=Fi("stroke")),r.appendChild(t),t.weight=i.weight+"px",t.color=i.color,t.opacity=i.opacity,i.dashArray?t.dashStyle=g(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):t.dashStyle="",t.endcap=i.lineCap.replace("butt","flat"),t.joinstyle=i.lineJoin):t&&(r.removeChild(t),e._stroke=null),i.fill?(n||(n=e._fill=Fi("fill")),r.appendChild(n),n.color=i.fillColor||i.color,n.opacity=i.fillOpacity):n&&(r.removeChild(n),e._fill=null)},_updateCircle:function(e){var t=e._point.round(),n=Math.round(e._radius),i=Math.round(e._radiusY||n);this._setPath(e,e._empty()?"M0 0":"AL "+t.x+","+t.y+" "+n+","+i+" 0,23592600")},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){pt(e._container)},_bringToBack:function(e){mt(e._container)}},Wi=Ne.vml?Fi:J,Ui=Di.extend({_initContainer:function(){this._container=Wi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Wi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ft(this._container),Dt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Di.prototype._update.call(this);var e=this._bounds,t=e.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,n.setAttribute("width",t.x),n.setAttribute("height",t.y)),Ct(n,e.min),n.setAttribute("viewBox",[e.min.x,e.min.y,t.x,t.y].join(" ")),this.fire("update")}},_initPath:function(e){var t=e._path=Wi("path");e.options.className&&gt(t,e.options.className),e.options.interactive&&gt(t,"leaflet-interactive"),this._updateStyle(e),this._layers[a(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){ft(e._path),e.removeInteractiveTarget(e._path),delete this._layers[a(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var t=e._path,n=e.options;t&&(n.stroke?(t.setAttribute("stroke",n.color),t.setAttribute("stroke-opacity",n.opacity),t.setAttribute("stroke-width",n.weight),t.setAttribute("stroke-linecap",n.lineCap),t.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?t.setAttribute("stroke-dasharray",n.dashArray):t.removeAttribute("stroke-dasharray"),n.dashOffset?t.setAttribute("stroke-dashoffset",n.dashOffset):t.removeAttribute("stroke-dashoffset")):t.setAttribute("stroke","none"),n.fill?(t.setAttribute("fill",n.fillColor||n.color),t.setAttribute("fill-opacity",n.fillOpacity),t.setAttribute("fill-rule",n.fillRule||"evenodd")):t.setAttribute("fill","none"))},_updatePoly:function(e,t){this._setPath(e,K(e._parts,t))},_updateCircle:function(e){var t=e._point,n=Math.max(Math.round(e._radius),1),i="a"+n+","+(Math.max(Math.round(e._radiusY),1)||n)+" 0 1,0 ",r=e._empty()?"M0 0":"M"+(t.x-n)+","+t.y+i+2*n+",0 "+i+2*-n+",0 ";this._setPath(e,r)},_setPath:function(e,t){e._path.setAttribute("d",t)},_bringToFront:function(e){pt(e._path)},_bringToBack:function(e){mt(e._path)}});function Hi(e){return Ne.svg||Ne.vml?new Ui(e):null}Ne.vml&&Ui.include(Zi),$t.include({getRenderer:function(e){var t=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return t||(t=this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(e){if("overlayPane"===e||void 0===e)return!1;var t=this._paneRenderers[e];return void 0===t&&(t=this._createRenderer({pane:e}),this._paneRenderers[e]=t),t},_createRenderer:function(e){return this.options.preferCanvas&&ji(e)||Hi(e)}});var Gi=ri.extend({initialize:function(e,t){ri.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return[(e=j(e)).getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});function Yi(e,t){return new Gi(e,t)}Ui.create=Wi,Ui.pointsToPath=K,ai.geometryToLayer=si,ai.coordsToLatLng=ui,ai.coordsToLatLngs=ci,ai.latLngToCoords=hi,ai.latLngsToCoords=fi,ai.getFeature=di,ai.asFeature=pi,$t.mergeOptions({boxZoom:!0});var Vi=dn.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){Rt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Dt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ft(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||1!==e.which&&1!==e.button)return!1;this._clearDeferredResetState(),this._resetState(),tt(),Pt(),this._startPoint=this._map.mouseEventToContainerPoint(e),Rt(document,{contextmenu:Yt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=ht("div","leaflet-zoom-box",this._container),gt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var t=new B(this._point,this._startPoint),n=t.getSize();Ct(this._box,t.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(ft(this._box),yt(this._container,"leaflet-crosshair")),nt(),Tt(),Dt(document,{contextmenu:Yt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if((1===e.which||1===e.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(r(this._resetState,this),0);var t=new z(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})}},_onKeyDown:function(e){27===e.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});$t.addInitHook("addHandler","boxZoom",Vi),$t.mergeOptions({doubleClickZoom:!0});var Qi=dn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,n=t.getZoom(),i=t.options.zoomDelta,r=e.originalEvent.shiftKey?n-i:n+i;"center"===t.options.doubleClickZoom?t.setZoom(r):t.setZoomAround(e.containerPoint,r)}});$t.addInitHook("addHandler","doubleClickZoom",Qi),$t.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var qi=dn.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new gn(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}gt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){yt(this._map._container,"leaflet-grab"),yt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var t=j(this._map.options.maxBounds);this._offsetLimit=D(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var t=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(t),this._prunePositions(t)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var e=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit;e.x<t.min.x&&(e.x=this._viscousLimit(e.x,t.min.x)),e.y<t.min.y&&(e.y=this._viscousLimit(e.y,t.min.y)),e.x>t.max.x&&(e.x=this._viscousLimit(e.x,t.max.x)),e.y>t.max.y&&(e.y=this._viscousLimit(e.y,t.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,t=Math.round(e/2),n=this._initialWorldOffset,i=this._draggable._newPos.x,r=(i-t+n)%e+t-n,o=(i+t+n)%e-t-n,a=Math.abs(r+n)<Math.abs(o+n)?r:o;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=a},_onDragEnd:function(e){var t=this._map,n=t.options,i=!n.inertia||e.noInertia||this._times.length<2;if(t.fire("dragend",e),i)t.fire("moveend");else{this._prunePositions(+new Date);var r=this._lastPos.subtract(this._positions[0]),o=(this._lastTime-this._times[0])/1e3,a=n.easeLinearity,s=r.multiplyBy(a/o),l=s.distanceTo([0,0]),u=Math.min(n.inertiaMaxSpeed,l),c=s.multiplyBy(u/l),h=u/(n.inertiaDeceleration*a),f=c.multiplyBy(-h/2).round();f.x||f.y?(f=t._limitOffset(f,t.options.maxBounds),C((function(){t.panBy(f,{duration:h,easeLinearity:a,noMoveStart:!0,animate:!0})}))):t.fire("moveend")}}});$t.addInitHook("addHandler","dragging",qi),$t.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Ji=dn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(e){this._map=e,this._setPanDelta(e.options.keyboardPanDelta),this._setZoomDelta(e.options.zoomDelta)},addHooks:function(){var e=this._map._container;e.tabIndex<=0&&(e.tabIndex="0"),Rt(e,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Dt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var e=document.body,t=document.documentElement,n=e.scrollTop||t.scrollTop,i=e.scrollLeft||t.scrollLeft;this._map._container.focus(),window.scrollTo(i,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(e){var t,n,i=this._panKeys={},r=this.keyCodes;for(t=0,n=r.left.length;t<n;t++)i[r.left[t]]=[-1*e,0];for(t=0,n=r.right.length;t<n;t++)i[r.right[t]]=[e,0];for(t=0,n=r.down.length;t<n;t++)i[r.down[t]]=[0,e];for(t=0,n=r.up.length;t<n;t++)i[r.up[t]]=[0,-1*e]},_setZoomDelta:function(e){var t,n,i=this._zoomKeys={},r=this.keyCodes;for(t=0,n=r.zoomIn.length;t<n;t++)i[r.zoomIn[t]]=e;for(t=0,n=r.zoomOut.length;t<n;t++)i[r.zoomOut[t]]=-e},_addHooks:function(){Rt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Dt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){if(!(e.altKey||e.ctrlKey||e.metaKey)){var t,n=e.keyCode,i=this._map;if(n in this._panKeys)i._panAnim&&i._panAnim._inProgress||(t=this._panKeys[n],e.shiftKey&&(t=R(t).multiplyBy(3)),i.panBy(t),i.options.maxBounds&&i.panInsideBounds(i.options.maxBounds));else if(n in this._zoomKeys)i.setZoom(i.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!i._popup||!i._popup.options.closeOnEscapeKey)return;i.closePopup()}Yt(e)}}});$t.addInitHook("addHandler","keyboard",Ji),$t.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Ki=dn.extend({addHooks:function(){Rt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Dt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(e){var t=qt(e),n=this._map.options.wheelDebounceTime;this._delta+=t,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+new Date);var i=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(r(this._performZoom,this),i),Yt(e)},_performZoom:function(){var e=this._map,t=e.getZoom(),n=this._map.options.zoomSnap||0;e._stop();var i=this._delta/(4*this._map.options.wheelPxPerZoomLevel),r=4*Math.log(2/(1+Math.exp(-Math.abs(i))))/Math.LN2,o=n?Math.ceil(r/n)*n:r,a=e._limitZoom(t+(this._delta>0?o:-o))-t;this._delta=0,this._startTime=null,a&&("center"===e.options.scrollWheelZoom?e.setZoom(t+a):e.setZoomAround(this._lastMousePos,t+a))}});$t.addInitHook("addHandler","scrollWheelZoom",Ki);var Xi=600;$t.mergeOptions({tapHold:Ne.touchNative&&Ne.safari&&Ne.mobile,tapTolerance:15});var $i=dn.extend({addHooks:function(){Rt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Dt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(clearTimeout(this._holdTimeout),1===e.touches.length){var t=e.touches[0];this._startPos=this._newPos=new M(t.clientX,t.clientY),this._holdTimeout=setTimeout(r((function(){this._cancel(),this._isTapValid()&&(Rt(document,"touchend",Gt),Rt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",t))}),this),Xi),Rt(document,"touchend touchcancel contextmenu",this._cancel,this),Rt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function e(){Dt(document,"touchend",Gt),Dt(document,"touchend touchcancel",e)},_cancel:function(){clearTimeout(this._holdTimeout),Dt(document,"touchend touchcancel contextmenu",this._cancel,this),Dt(document,"touchmove",this._onMove,this)},_onMove:function(e){var t=e.touches[0];this._newPos=new M(t.clientX,t.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,t){var n=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY});n._simulated=!0,t.target.dispatchEvent(n)}});$t.addInitHook("addHandler","tapHold",$i),$t.mergeOptions({touchZoom:Ne.touch,bounceAtZoomLimits:!0});var er=dn.extend({addHooks:function(){gt(this._map._container,"leaflet-touch-zoom"),Rt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){yt(this._map._container,"leaflet-touch-zoom"),Dt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(e.touches&&2===e.touches.length&&!t._animatingZoom&&!this._zooming){var n=t.mouseEventToContainerPoint(e.touches[0]),i=t.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=t.getSize()._divideBy(2),this._startLatLng=t.containerPointToLatLng(this._centerPoint),"center"!==t.options.touchZoom&&(this._pinchStartLatLng=t.containerPointToLatLng(n.add(i)._divideBy(2))),this._startDist=n.distanceTo(i),this._startZoom=t.getZoom(),this._moved=!1,this._zooming=!0,t._stop(),Rt(document,"touchmove",this._onTouchMove,this),Rt(document,"touchend touchcancel",this._onTouchEnd,this),Gt(e)}},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&this._zooming){var t=this._map,n=t.mouseEventToContainerPoint(e.touches[0]),i=t.mouseEventToContainerPoint(e.touches[1]),o=n.distanceTo(i)/this._startDist;if(this._zoom=t.getScaleZoom(o,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoom<t.getMinZoom()&&o<1||this._zoom>t.getMaxZoom()&&o>1)&&(this._zoom=t._limitZoom(this._zoom)),"center"===t.options.touchZoom){if(this._center=this._startLatLng,1===o)return}else{var a=n._add(i)._divideBy(2)._subtract(this._centerPoint);if(1===o&&0===a.x&&0===a.y)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(t._moveStart(!0,!1),this._moved=!0),E(this._animRequest);var s=r(t._move,t,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=C(s,this,!0),Gt(e)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,E(this._animRequest),Dt(document,"touchmove",this._onTouchMove,this),Dt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});$t.addInitHook("addHandler","touchZoom",er),$t.BoxZoom=Vi,$t.DoubleClickZoom=Qi,$t.Drag=qi,$t.Keyboard=Ji,$t.ScrollWheelZoom=Ki,$t.TapHold=$i,$t.TouchZoom=er,e.Bounds=B,e.Browser=Ne,e.CRS=W,e.Canvas=zi,e.Circle=ei,e.CircleMarker=Xn,e.Class=P,e.Control=tn,e.DivIcon=Ti,e.DivOverlay=xi,e.DomEvent=Kt,e.DomUtil=Nt,e.Draggable=gn,e.Evented=O,e.FeatureGroup=Un,e.GeoJSON=ai,e.GridLayer=Li,e.Handler=dn,e.Icon=Gn,e.ImageOverlay=yi,e.LatLng=F,e.LatLngBounds=z,e.Layer=Fn,e.LayerGroup=Zn,e.LineUtil=Ln,e.Map=$t,e.Marker=qn,e.Mixin=mn,e.Path=Kn,e.Point=M,e.PolyUtil=Mn,e.Polygon=ri,e.Polyline=ni,e.Popup=Ci,e.PosAnimation=Xt,e.Projection=Bn,e.Rectangle=Gi,e.Renderer=Di,e.SVG=Ui,e.SVGOverlay=ki,e.TileLayer=Mi,e.Tooltip=Si,e.Transformation=Y,e.Util=S,e.VideoOverlay=bi,e.bind=r,e.bounds=D,e.canvas=ji,e.circle=ti,e.circleMarker=$n,e.control=nn,e.divIcon=Ii,e.extend=n,e.featureGroup=Hn,e.geoJSON=vi,e.geoJson=gi,e.gridLayer=Oi,e.icon=Yn,e.imageOverlay=_i,e.latLng=Z,e.latLngBounds=j,e.layerGroup=Wn,e.map=en,e.marker=Jn,e.point=R,e.polygon=oi,e.polyline=ii,e.popup=Ei,e.rectangle=Yi,e.setOptions=d,e.stamp=a,e.svg=Hi,e.svgOverlay=Ai,e.tileLayer=Ni,e.tooltip=Pi,e.transformation=V,e.version=t,e.videoOverlay=wi;var tr=window.L;e.noConflict=function(){return window.L=tr,this},window.L=e}(t)},888:function(e,t,n){"use strict";var i=n(9047);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,a){if(a!==i){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
vendor: 4,778 bytes, line 2
2:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},2007:function(e,t,n){e.exports=n(888)()},9047:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4463:function(e,t,n){"use strict";var i=n(2791),r=n(5296);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."}var a=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),h=Object.prototype.hasOwnProperty,f=/^[: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={},p={};function m(e,t,n,i,r,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[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];v[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[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){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function _(e,t,n,i){var r=v.hasOwnProperty(t)?v[t]:null;(null!==r?0!==r.type:i||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,i){if(null===t||"undefined"===typeof t||function(e,t,n,i){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!i&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,i))return!0;if(i)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,r,i)&&(n=null),i||null===r?function(e){return!!h.call(p,e)||!h.call(d,e)&&(f.test(e)?p[e]=!0:(d[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,i=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,i?e.setAttributeNS(i,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
2-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(g,y);v[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(g,y);v[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(g,y);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var b=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),S=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),O=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var N=Symbol.iterator;function R(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=N&&e[N]||e["@@iterator"])?e:null}var B,D=Object.assign;function z(e){if(void 0===B)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||""}return"\n"+B+e}var j=!1;function F(e,t){if(!e||j)return"";j=!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 i=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){i=u}e.call(t.prototype)}else{try{throw Error()}catch(u){i=u}e()}}catch(u){if(u&&i&&"string"===typeof u.stack){for(var r=u.stack.split("\n"),o=i.stack.split("\n"),a=r.length-1,s=o.length-1;1<=a&&0<=s&&r[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(r[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||r[a]!==o[s]){var l="\n"+r[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{j=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function Z(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=F(e.type,!1);case 11:return e=F(e.type.render,!1);case 1:return e=F(e.type,!0);default:return""}}function W(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 A:return"Fragment";case k:return"Portal";case C:return"Profiler";case x:return"StrictMode";case T:return"Suspense";case I:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case S:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case L:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return W(e(t))}catch(n){}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===x?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function G(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=G(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){i=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(e){i=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function V(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=G(e)?e.checked?"true":"false":e.value),(e=i)!==n&&(t.setValue(e),!0)}function Q(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 q(e,t){var n=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function J(e,t){var n=null==t.defaultValue?"":t.defaultValue,i=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&_(e,"checked",t,!1)}function X(e,t){K(e,t);var n=H(t.value),i=t.type;if(null!=n)"number"===i?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===i||"reset"===i)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function $(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!("submit"!==i&&"reset"!==i||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 ee(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&i&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(i&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function ie(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function re(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));
vendor: 130,683 bytes, line 2
2if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function oe(e,t){var n=H(t.value),i=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=i&&(e.defaultValue=""+i)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(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 le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,he=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,i){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function fe(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 de={animationIterationCount:!0,aspectRatio:!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},pe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||de.hasOwnProperty(e)&&de[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var i=0===n.indexOf("--"),r=me(n,t[n],i);"float"===n&&(n="cssFloat"),i?e.setProperty(n,r):e[n]=r}}Object.keys(de).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),de[t]=de[e]}))}));var ge=D({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 ye(e,t){if(t){if(ge[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 _e(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}}var be=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Ae=null,xe=null;function Ce(e){if(e=_r(e)){if("function"!==typeof ke)throw Error(o(280));var t=e.stateNode;t&&(t=wr(t),ke(e.stateNode,e.type,t))}}function Ee(e){Ae?xe?xe.push(e):xe=[e]:Ae=e}function Se(){if(Ae){var e=Ae,t=xe;if(xe=Ae=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Pe(e,t){return e(t)}function Te(){}var Ie=!1;function Le(e,t,n){if(Ie)return e(t,n);Ie=!0;try{return Pe(e,t,n)}finally{Ie=!1,(null!==Ae||null!==xe)&&(Te(),Se())}}function Oe(e,t){var n=e.stateNode;if(null===n)return null;var i=wr(n);if(null===i)return null;n=i[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":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Me=!1;if(c)try{var Ne={};Object.defineProperty(Ne,"passive",{get:function(){Me=!0}}),window.addEventListener("test",Ne,Ne),window.removeEventListener("test",Ne,Ne)}catch(ce){Me=!1}function Re(e,t,n,i,r,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Be=!1,De=null,ze=!1,je=null,Fe={onError:function(e){Be=!0,De=e}};function Ze(e,t,n,i,r,o,a,s,l){Be=!1,De=null,Re.apply(Fe,arguments)}function We(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ue(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 He(e){if(We(e)!==e)throw Error(o(188))}function Ge(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=We(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(null===r)break;var a=r.alternate;if(null===a){if(null!==(i=r.return)){n=i;continue}break}if(r.child===a.child){for(a=r.child;a;){if(a===n)return He(r),e;if(a===i)return He(r),t;a=a.sibling}throw Error(o(188))}if(n.return!==i.return)n=r,i=a;else{for(var s=!1,l=r.child;l;){if(l===n){s=!0,n=r,i=a;break}if(l===i){s=!0,i=r,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,i=r;break}if(l===i){s=!0,i=a,n=r;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==i)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ye(e):null}function Ye(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ye(e);if(null!==t)return t;e=e.sibling}return null}var Ve=r.unstable_scheduleCallback,Qe=r.unstable_cancelCallback,qe=r.unstable_shouldYield,Je=r.unstable_requestPaint,Ke=r.unstable_now,Xe=r.unstable_getCurrentPriorityLevel,$e=r.unstable_ImmediatePriority,et=r.unstable_UserBlockingPriority,tt=r.unstable_NormalPriority,nt=r.unstable_LowPriority,it=r.unstable_IdlePriority,rt=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ut=64,ct=4194304;function ht(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var i=0,r=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~r;0!==s?i=ht(s):0!==(o&=a)&&(i=ht(o))}else 0!==(a=n&~r)?i=ht(a):0!==o&&(i=ht(o));if(0===i)return 0;if(0!==t&&t!==i&&0===(t&r)&&((r=i&-i)>=(o=t&-t)||16===r&&0!==(4194240&o)))return t;if(0!==(4&i)&&(i|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=i;0<t;)r=1<<(n=31-at(t)),i|=e[n],t&=~r;return i}function dt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return 0===(4194240&(ut<<=1))&&(ut=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-at(n),r=1<<i;r&t|e[i]&t&&(e[i]|=t),n&=~r}}var _t=0;function bt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var wt,kt,At,xt,Ct,Et=!1,St=[],Pt=null,Tt=null,It=null,Lt=new Map,Ot=new Map,Mt=[],Nt="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 Rt(e,t){switch(e){case"focusin":case"focusout":Pt=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":Lt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ot.delete(t.pointerId)}}function Bt(e,t,n,i,r,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:o,targetContainers:[r]},null!==t&&(null!==(t=_r(t))&&kt(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,null!==r&&-1===t.indexOf(r)&&t.push(r),e)}function Dt(e){var t=yr(e.target);if(null!==t){var n=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ue(n)))return e.blockedOn=t,void Ct(e.priority,(function(){At(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=_r(n))&&kt(t),e.blockedOn=n,!1;var i=new(n=e.nativeEvent).constructor(n.type,n);be=i,n.target.dispatchEvent(i),be=null,t.shift()}return!0}function jt(e,t,n){zt(e)&&n.delete(t)}function Ft(){Et=!1,null!==Pt&&zt(Pt)&&(Pt=null),null!==Tt&&zt(Tt)&&(Tt=null),null!==It&&zt(It)&&(It=null),Lt.forEach(jt),Ot.forEach(jt)}function Zt(e,t){e.blockedOn===t&&(e.blockedOn=null,Et||(Et=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Ft)))}function Wt(e){function t(t){return Zt(t,e)}if(0<St.length){Zt(St[0],e);for(var n=1;n<St.length;n++){var i=St[n];i.blockedOn===e&&(i.blockedOn=null)}}for(null!==Pt&&Zt(Pt,e),null!==Tt&&Zt(Tt,e),null!==It&&Zt(It,e),Lt.forEach(t),Ot.forEach(t),n=0;n<Mt.length;n++)(i=Mt[n]).blockedOn===e&&(i.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)Dt(n),null===n.blockedOn&&Mt.shift()}var Ut=b.ReactCurrentBatchConfig,Ht=!0;function Gt(e,t,n,i){var r=_t,o=Ut.transition;Ut.transition=null;try{_t=1,Vt(e,t,n,i)}finally{_t=r,Ut.transition=o}}function Yt(e,t,n,i){var r=_t,o=Ut.transition;Ut.transition=null;try{_t=4,Vt(e,t,n,i)}finally{_t=r,Ut.transition=o}}function Vt(e,t,n,i){if(Ht){var r=qt(e,t,n,i);if(null===r)Hi(e,t,i,Qt,n),Rt(e,i);else if(function(e,t,n,i,r){switch(t){case"focusin":return Pt=Bt(Pt,e,t,n,i,r),!0;case"dragenter":return Tt=Bt(Tt,e,t,n,i,r),!0;case"mouseover":return It=Bt(It,e,t,n,i,r),!0;case"pointerover":var o=r.pointerId;return Lt.set(o,Bt(Lt.get(o)||null,e,t,n,i,r)),!0;case"gotpointercapture":return o=r.pointerId,Ot.set(o,Bt(Ot.get(o)||null,e,t,n,i,r)),!0}return!1}(r,e,t,n,i))i.stopPropagation();else if(Rt(e,i),4&t&&-1<Nt.indexOf(e)){for(;null!==r;){var o=_r(r);if(null!==o&&wt(o),null===(o=qt(e,t,n,i))&&Hi(e,t,i,Qt,n),o===r)break;r=o}null!==r&&i.stopPropagation()}else Hi(e,t,i,null,n)}}var Qt=null;function qt(e,t,n,i){if(Qt=null,null!==(e=yr(e=we(i))))if(null===(t=We(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ue(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qt=e,null}function Jt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case $e:return 1;case et:return 4;case tt:case nt:return 16;case it:return 536870912;default:return 16}default:return 16}}var Kt=null,Xt=null,$t=null;function en(){if($t)return $t;var e,t,n=Xt,i=n.length,r="value"in Kt?Kt.value:Kt.textContent,o=r.length;for(e=0;e<i&&n[e]===r[e];e++);var a=i-e;for(t=1;t<=a&&n[i-t]===r[o-t];t++);return $t=r.slice(e,1<t?1-t:void 0)}function tn(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 nn(){return!0}function rn(){return!1}function on(e){function t(t,n,i,r,o){for(var a in this._reactName=t,this._targetInst=i,this.type=n,this.nativeEvent=r,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(r):r[a]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return D(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=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),hn=D({},un,{view:0,detail:0}),fn=on(hn),dn=D({},hn,{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!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=on(dn),mn=on(D({},dn,{dataTransfer:0})),vn=on(D({},hn,{relatedTarget:0})),gn=on(D({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=D({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_n=on(yn),bn=on(D({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={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"},An={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=An[e])&&!!t[e]}function Cn(){return xn}var En=D({},hn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[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?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Sn=on(En),Pn=on(D({},dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=on(D({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),In=on(D({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ln=D({},dn,{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}),On=on(Ln),Mn=[9,13,27,32],Nn=c&&"CompositionEvent"in window,Rn=null;c&&"documentMode"in document&&(Rn=document.documentMode);var Bn=c&&"TextEvent"in window&&!Rn,Dn=c&&(!Nn||Rn&&8<Rn&&11>=Rn),zn=String.fromCharCode(32),jn=!1;function Fn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1;var Un={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 Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Gn(e,t,n,i){Ee(i),0<(t=Yi(t,"onChange")).length&&(n=new cn("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Yn=null,Vn=null;function Qn(e){zi(e,0)}function qn(e){if(V(br(e)))return e}function Jn(e,t){if("change"===e)return t}var Kn=!1;if(c){var Xn;if(c){var $n="oninput"in document;if(!$n){var ei=document.createElement("div");ei.setAttribute("oninput","return;"),$n="function"===typeof ei.oninput}Xn=$n}else Xn=!1;Kn=Xn&&(!document.documentMode||9<document.documentMode)}function ti(){Yn&&(Yn.detachEvent("onpropertychange",ni),Vn=Yn=null)}function ni(e){if("value"===e.propertyName&&qn(Vn)){var t=[];Gn(t,Vn,e,we(e)),Le(Qn,t)}}function ii(e,t,n){"focusin"===e?(ti(),Vn=n,(Yn=t).attachEvent("onpropertychange",ni)):"focusout"===e&&ti()}function ri(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(Vn)}function oi(e,t){if("click"===e)return qn(t)}function ai(e,t){if("input"===e||"change"===e)return qn(t)}var si="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function li(e,t){if(si(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!h.call(t,r)||!si(e[r],t[r]))return!1}return!0}function ui(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ci(e,t){var n,i=ui(e);for(e=0;i;){if(3===i.nodeType){if(n=e+i.textContent.length,e<=t&&n>=t)return{node:i,offset:t-e};e=n}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=ui(i)}}function hi(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hi(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fi(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(i){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function di(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)}function pi(e){var t=fi(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&hi(n.ownerDocument.documentElement,n)){if(null!==i&&di(n))if(t=i.start,void 0===(e=i.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var r=n.textContent.length,o=Math.min(i.start,r);i=void 0===i.end?o:Math.min(i.end,r),!e.extend&&o>i&&(r=i,i=o,o=r),r=ci(n,o);var a=ci(n,i);r&&a&&(1!==e.rangeCount||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(r.node,r.offset),e.removeAllRanges(),o>i?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mi=c&&"documentMode"in document&&11>=document.documentMode,vi=null,gi=null,yi=null,_i=!1;function bi(e,t,n){var i=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;_i||null==vi||vi!==Q(i)||("selectionStart"in(i=vi)&&di(i)?i={start:i.selectionStart,end:i.selectionEnd}:i={anchorNode:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset},yi&&li(yi,i)||(yi=i,0<(i=Yi(gi,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=vi)))}function wi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ki={animationend:wi("Animation","AnimationEnd"),animationiteration:wi("Animation","AnimationIteration"),animationstart:wi("Animation","AnimationStart"),transitionend:wi("Transition","TransitionEnd")},Ai={},xi={};function Ci(e){if(Ai[e])return Ai[e];if(!ki[e])return e;var t,n=ki[e];for(t in n)if(n.hasOwnProperty(t)&&t in xi)return Ai[e]=n[t];return e}c&&(xi=document.createElement("div").style,"AnimationEvent"in window||(delete ki.animationend.animation,delete ki.animationiteration.animation,delete ki.animationstart.animation),"TransitionEvent"in window||delete ki.transitionend.transition);var Ei=Ci("animationend"),Si=Ci("animationiteration"),Pi=Ci("animationstart"),Ti=Ci("transitionend"),Ii=new Map,Li="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Oi(e,t){Ii.set(e,t),l(t,[e])}for(var Mi=0;Mi<Li.length;Mi++){var Ni=Li[Mi];Oi(Ni.toLowerCase(),"on"+(Ni[0].toUpperCase()+Ni.slice(1)))}Oi(Ei,"onAnimationEnd"),Oi(Si,"onAnimationIteration"),Oi(Pi,"onAnimationStart"),Oi("dblclick","onDoubleClick"),Oi("focusin","onFocus"),Oi("focusout","onBlur"),Oi(Ti,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ri="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Bi=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ri));function Di(e,t,n){var i=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,i,r,a,s,l,u){if(Ze.apply(this,arguments),Be){if(!Be)throw Error(o(198));var c=De;Be=!1,De=null,ze||(ze=!0,je=c)}}(i,t,void 0,e),e.currentTarget=null}function zi(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var i=e[n],r=i.event;i=i.listeners;e:{var o=void 0;if(t)for(var a=i.length-1;0<=a;a--){var s=i[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&r.isPropagationStopped())break e;Di(r,s,u),o=l}else for(a=0;a<i.length;a++){if(l=(s=i[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&r.isPropagationStopped())break e;Di(r,s,u),o=l}}}if(ze)throw e=je,ze=!1,je=null,e}function ji(e,t){var n=t[mr];void 0===n&&(n=t[mr]=new Set);var i=e+"__bubble";n.has(i)||(Ui(t,e,2,!1),n.add(i))}function Fi(e,t,n){var i=0;t&&(i|=4),Ui(n,e,i,t)}var Zi="_reactListening"+Math.random().toString(36).slice(2);function Wi(e){if(!e[Zi]){e[Zi]=!0,a.forEach((function(t){"selectionchange"!==t&&(Bi.has(t)||Fi(t,!1,e),Fi(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Zi]||(t[Zi]=!0,Fi("selectionchange",!1,t))}}function Ui(e,t,n,i){switch(Jt(t)){case 1:var r=Gt;break;case 4:r=Yt;break;default:r=Vt}n=r.bind(null,t,n,e),r=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(r=!0),i?void 0!==r?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):void 0!==r?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Hi(e,t,n,i,r){var o=i;if(0===(1&t)&&0===(2&t)&&null!==i)e:for(;;){if(null===i)return;var a=i.tag;if(3===a||4===a){var s=i.stateNode.containerInfo;if(s===r||8===s.nodeType&&s.parentNode===r)break;if(4===a)for(a=i.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===r||8===l.nodeType&&l.parentNode===r))return;a=a.return}for(;null!==s;){if(null===(a=yr(s)))return;if(5===(l=a.tag)||6===l){i=o=a;continue e}s=s.parentNode}}i=i.return}Le((function(){var i=o,r=we(n),a=[];e:{var s=Ii.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Sn;break;case"focusin":u="focus",l=vn;break;case"focusout":u="blur",l=vn;break;case"beforeblur":case"afterblur":l=vn;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":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tn;break;case Ei:case Si:case Pi:l=gn;break;case Ti:l=In;break;case"scroll":l=fn;break;case"wheel":l=On;break;case"copy":case"cut":case"paste":l=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Pn}var c=0!==(4&t),h=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var d,p=i;null!==p;){var m=(d=p).stateNode;if(5===d.tag&&null!==m&&(d=m,null!==f&&(null!=(m=Oe(p,f))&&c.push(Gi(p,m,d)))),h)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,r),a.push({event:s,listeners:c}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===be||!(u=n.relatedTarget||n.fromElement)||!yr(u)&&!u[pr])&&(l||s)&&(s=r.window===r?r:(s=r.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=i,null!==(u=(u=n.relatedTarget||n.toElement)?yr(u):null)&&(u!==(h=We(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=i),l!==u)){if(c=pn,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Pn,m="onPointerLeave",f="onPointerEnter",p="pointer"),h=null==l?s:br(l),d=null==u?s:br(u),(s=new c(m,p+"leave",l,n,r)).target=h,s.relatedTarget=d,m=null,yr(r)===i&&((c=new c(f,p+"enter",u,n,r)).target=d,c.relatedTarget=h,m=c),h=m,l&&u)e:{for(f=u,p=0,d=c=l;d;d=Vi(d))p++;for(d=0,m=f;m;m=Vi(m))d++;for(;0<p-d;)c=Vi(c),p--;for(;0<d-p;)f=Vi(f),d--;for(;p--;){if(c===f||null!==f&&c===f.alternate)break e;c=Vi(c),f=Vi(f)}c=null}else c=null;null!==l&&Qi(a,s,l,c,!1),null!==u&&null!==h&&Qi(a,h,u,c,!0)}if("select"===(l=(s=i?br(i):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Jn;else if(Hn(s))if(Kn)v=ai;else{v=ri;var g=ii}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=oi);switch(v&&(v=v(e,i))?Gn(a,v,n,r):(g&&g(e,s,i),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ee(s,"number",s.value)),g=i?br(i):window,e){case"focusin":(Hn(g)||"true"===g.contentEditable)&&(vi=g,gi=i,yi=null);break;case"focusout":yi=gi=vi=null;break;case"mousedown":_i=!0;break;case"contextmenu":case"mouseup":case"dragend":_i=!1,bi(a,n,r);break;case"selectionchange":if(mi)break;case"keydown":case"keyup":bi(a,n,r)}var y;if(Nn)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else Wn?Fn(e,n)&&(_="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(_="onCompositionStart");_&&(Dn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==_?"onCompositionEnd"===_&&Wn&&(y=en()):(Xt="value"in(Kt=r)?Kt.value:Kt.textContent,Wn=!0)),0<(g=Yi(i,_)).length&&(_=new bn(_,e,null,n,r),a.push({event:_,listeners:g}),y?_.data=y:null!==(y=Zn(n))&&(_.data=y))),(y=Bn?function(e,t){switch(e){case"compositionend":return Zn(t);case"keypress":return 32!==t.which?null:(jn=!0,zn);case"textInput":return(e=t.data)===zn&&jn?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!Nn&&Fn(e,t)?(e=en(),$t=Xt=Kt=null,Wn=!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 Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(i=Yi(i,"onBeforeInput")).length&&(r=new bn("onBeforeInput","beforeinput",null,n,r),a.push({event:r,listeners:i}),r.data=y))}zi(a,t)}))}function Gi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yi(e,t){for(var n=t+"Capture",i=[];null!==e;){var r=e,o=r.stateNode;5===r.tag&&null!==o&&(r=o,null!=(o=Oe(e,n))&&i.unshift(Gi(e,o,r)),null!=(o=Oe(e,t))&&i.push(Gi(e,o,r))),e=e.return}return i}function Vi(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Qi(e,t,n,i,r){for(var o=t._reactName,a=[];null!==n&&n!==i;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===i)break;5===s.tag&&null!==u&&(s=u,r?null!=(l=Oe(n,o))&&a.unshift(Gi(n,l,s)):r||null!=(l=Oe(n,o))&&a.push(Gi(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var qi=/\r\n?/g,Ji=/\u0000|\uFFFD/g;function Ki(e){return("string"===typeof e?e:""+e).replace(qi,"\n").replace(Ji,"")}function Xi(e,t,n){if(t=Ki(t),Ki(e)!==t&&n)throw Error(o(425))}function $i(){}var er=null,tr=null;function nr(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ir="function"===typeof setTimeout?setTimeout:void 0,rr="function"===typeof clearTimeout?clearTimeout:void 0,or="function"===typeof Promise?Promise:void 0,ar="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof or?function(e){return or.resolve(null).then(e).catch(sr)}:ir;function sr(e){setTimeout((function(){throw e}))}function lr(e,t){var n=t,i=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===i)return e.removeChild(r),void Wt(t);i--}else"$"!==n&&"$?"!==n&&"$!"!==n||i++;n=r}while(n);Wt(t)}function ur(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function cr(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 hr=Math.random().toString(36).slice(2),fr="__reactFiber$"+hr,dr="__reactProps$"+hr,pr="__reactContainer$"+hr,mr="__reactEvents$"+hr,vr="__reactListeners$"+hr,gr="__reactHandles$"+hr;function yr(e){var t=e[fr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pr]||n[fr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=cr(e);null!==e;){if(n=e[fr])return n;e=cr(e)}return t}n=(e=n).parentNode}return null}function _r(e){return!(e=e[fr]||e[pr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function br(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function wr(e){return e[dr]||null}var kr=[],Ar=-1;function xr(e){return{current:e}}function Cr(e){0>Ar||(e.current=kr[Ar],kr[Ar]=null,Ar--)}function Er(e,t){Ar++,kr[Ar]=e.current,e.current=t}var Sr={},Pr=xr(Sr),Tr=xr(!1),Ir=Sr;function Lr(e,t){var n=e.type.contextTypes;if(!n)return Sr;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r,o={};for(r in n)o[r]=t[r];return i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Or(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Mr(){Cr(Tr),Cr(Pr)}function Nr(e,t,n){if(Pr.current!==Sr)throw Error(o(168));Er(Pr,t),Er(Tr,n)}function Rr(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,"function"!==typeof i.getChildContext)return n;for(var r in i=i.getChildContext())if(!(r in t))throw Error(o(108,U(e)||"Unknown",r));return D({},n,i)}function Br(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Sr,Ir=Pr.current,Er(Pr,e),Er(Tr,Tr.current),!0}function Dr(e,t,n){var i=e.stateNode;if(!i)throw Error(o(169));n?(e=Rr(e,t,Ir),i.__reactInternalMemoizedMergedChildContext=e,Cr(Tr),Cr(Pr),Er(Pr,e)):Cr(Tr),Er(Tr,n)}var zr=null,jr=!1,Fr=!1;function Zr(e){null===zr?zr=[e]:zr.push(e)}function Wr(){if(!Fr&&null!==zr){Fr=!0;var e=0,t=_t;try{var n=zr;for(_t=1;e<n.length;e++){var i=n[e];do{i=i(!0)}while(null!==i)}zr=null,jr=!1}catch(r){throw null!==zr&&(zr=zr.slice(e+1)),Ve($e,Wr),r}finally{_t=t,Fr=!1}}return null}var Ur=[],Hr=0,Gr=null,Yr=0,Vr=[],Qr=0,qr=null,Jr=1,Kr="";function Xr(e,t){Ur[Hr++]=Yr,Ur[Hr++]=Gr,Gr=e,Yr=t}function $r(e,t,n){Vr[Qr++]=Jr,Vr[Qr++]=Kr,Vr[Qr++]=qr,qr=e;var i=Jr;e=Kr;var r=32-at(i)-1;i&=~(1<<r),n+=1;var o=32-at(t)+r;if(30<o){var a=r-r%5;o=(i&(1<<a)-1).toString(32),i>>=a,r-=a,Jr=1<<32-at(t)+r|n<<r|i,Kr=o+e}else Jr=1<<o|n<<r|i,Kr=e}function eo(e){null!==e.return&&(Xr(e,1),$r(e,1,0))}function to(e){for(;e===Gr;)Gr=Ur[--Hr],Ur[Hr]=null,Yr=Ur[--Hr],Ur[Hr]=null;for(;e===qr;)qr=Vr[--Qr],Vr[Qr]=null,Kr=Vr[--Qr],Vr[Qr]=null,Jr=Vr[--Qr],Vr[Qr]=null}var no=null,io=null,ro=!1,oo=null;function ao(e,t){var n=Lu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(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,no=e,io=ur(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,io=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==qr?{id:Jr,overflow:Kr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Lu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,io=null,!0);default:return!1}}function lo(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function uo(e){if(ro){var t=io;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ur(n.nextSibling);var i=no;t&&so(e,t)?ao(i,n):(e.flags=-4097&e.flags|2,ro=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,ro=!1,no=e}}}function co(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function ho(e){if(e!==no)return!1;if(!ro)return co(e),ro=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!nr(e.type,e.memoizedProps)),t&&(t=io)){if(lo(e))throw fo(),Error(o(418));for(;t;)ao(e,t),t=ur(t.nextSibling)}if(co(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){io=ur(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}io=null}}else io=no?ur(e.stateNode.nextSibling):null;return!0}function fo(){for(var e=io;e;)e=ur(e.nextSibling)}function po(){io=no=null,ro=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var vo=b.ReactCurrentBatchConfig;function go(e,t){if(e&&e.defaultProps){for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var yo=xr(null),_o=null,bo=null,wo=null;function ko(){wo=bo=_o=null}function Ao(e){var t=yo.current;Cr(yo),e._currentValue=t}function xo(e,t,n){for(;null!==e;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==i&&(i.childLanes|=t)):null!==i&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Co(e,t){_o=e,wo=bo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Eo(e){var t=e._currentValue;if(wo!==e)if(e={context:e,memoizedValue:t,next:null},null===bo){if(null===_o)throw Error(o(308));bo=e,_o.dependencies={lanes:0,firstContext:e}}else bo=bo.next=e;return t}var So=null;function Po(e){null===So?So=[e]:So.push(e)}function To(e,t,n,i){var r=t.interleaved;return null===r?(n.next=n,Po(t)):(n.next=r.next,r.next=n),t.interleaved=n,Io(e,i)}function Io(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}var Lo=!1;function Oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mo(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 No(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ro(e,t,n){var i=e.updateQueue;if(null===i)return null;if(i=i.shared,0!==(2&Pl)){var r=i.pending;return null===r?t.next=t:(t.next=r.next,r.next=t),i.pending=t,Io(e,n)}return null===(r=i.interleaved)?(t.next=t,Po(i)):(t.next=r.next,r.next=t),i.interleaved=t,Io(e,n)}function Bo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var i=t.lanes;n|=i&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Do(e,t){var n=e.updateQueue,i=e.alternate;if(null!==i&&n===(i=i.updateQueue)){var r=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?r=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?r=o=t:o=o.next=t}else r=o=t;return n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:i.shared,effects:i.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function zo(e,t,n,i){var r=e.updateQueue;Lo=!1;var o=r.firstBaseUpdate,a=r.lastBaseUpdate,s=r.shared.pending;if(null!==s){r.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==o){var h=r.baseState;for(a=0,c=u=l=null,s=o;;){var f=s.lane,d=s.eventTime;if((i&f)===f){null!==c&&(c=c.next={eventTime:d,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(f=t,d=n,m.tag){case 1:if("function"===typeof(p=m.payload)){h=p.call(d,h,f);break e}h=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(f="function"===typeof(p=m.payload)?p.call(d,h,f):p)||void 0===f)break e;h=D({},h,f);break e;case 2:Lo=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=r.effects)?r.effects=[s]:f.push(s))}else d={eventTime:d,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=d,l=h):c=c.next=d,a|=f;if(null===(s=s.next)){if(null===(s=r.shared.pending))break;s=(f=s).next,f.next=null,r.lastBaseUpdate=f,r.shared.pending=null}}if(null===c&&(l=h),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=c,null!==(t=r.shared.interleaved)){r=t;do{a|=r.lane,r=r.next}while(r!==t)}else null===o&&(r.shared.lanes=0);Bl|=a,e.lanes=a,e.memoizedState=h}}function jo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var i=e[t],r=i.callback;if(null!==r){if(i.callback=null,i=n,"function"!==typeof r)throw Error(o(191,r));r.call(i)}}}var Fo=(new i.Component).refs;function Zo(e,t,n,i){n=null===(n=n(i,t=e.memoizedState))||void 0===n?t:D({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Wo={isMounted:function(e){return!!(e=e._reactInternals)&&We(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var i=eu(),r=tu(e),o=No(i,r);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Ro(e,o,r))&&(nu(t,e,r,i),Bo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=eu(),r=tu(e),o=No(i,r);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Ro(e,o,r))&&(nu(t,e,r,i),Bo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),i=tu(e),r=No(n,i);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),null!==(t=Ro(e,r,i))&&(nu(t,e,i,n),Bo(t,e,i))}};function Uo(e,t,n,i,r,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(i,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!li(n,i)||!li(r,o))}function Ho(e,t,n){var i=!1,r=Sr,o=t.contextType;return"object"===typeof o&&null!==o?o=Eo(o):(r=Or(t)?Ir:Pr.current,o=(i=null!==(i=t.contextTypes)&&void 0!==i)?Lr(e,r):Sr),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Wo,e.stateNode=t,t._reactInternals=e,i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=o),t}function Go(e,t,n,i){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,i),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&Wo.enqueueReplaceState(t,t.state,null)}function Yo(e,t,n,i){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=Fo,Oo(e);var o=t.contextType;"object"===typeof o&&null!==o?r.context=Eo(o):(o=Or(t)?Ir:Pr.current,r.context=Lr(e,o)),r.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(Zo(e,t,o,n),r.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof r.getSnapshotBeforeUpdate||"function"!==typeof r.UNSAFE_componentWillMount&&"function"!==typeof r.componentWillMount||(t=r.state,"function"===typeof r.componentWillMount&&r.componentWillMount(),"function"===typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&Wo.enqueueReplaceState(r,r.state,null),zo(e,n,r,i),r.state=e.memoizedState),"function"===typeof r.componentDidMount&&(e.flags|=4194308)}function Vo(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 i=n.stateNode}if(!i)throw Error(o(147,e));var r=i,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=r.refs;t===Fo&&(t=r.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Qo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function qo(e){return(0,e._init)(e._payload)}function Jo(e){function t(t,n){if(e){var i=t.deletions;null===i?(t.deletions=[n],t.flags|=16):i.push(n)}}function n(n,i){if(!e)return null;for(;null!==i;)t(n,i),i=i.sibling;return null}function i(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 r(e,t){return(e=Mu(e,t)).index=0,e.sibling=null,e}function a(t,n,i){return t.index=i,e?null!==(i=t.alternate)?(i=i.index)<n?(t.flags|=2,n):i:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,i){return null===t||6!==t.tag?((t=Du(n,e.mode,i)).return=e,t):((t=r(t,n)).return=e,t)}function u(e,t,n,i){var o=n.type;return o===A?h(e,t,n.props.children,i,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===O&&qo(o)===t.type)?((i=r(t,n.props)).ref=Vo(e,t,n),i.return=e,i):((i=Nu(n.type,n.key,n.props,null,e.mode,i)).ref=Vo(e,t,n),i.return=e,i)}function c(e,t,n,i){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zu(n,e.mode,i)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function h(e,t,n,i,o){return null===t||7!==t.tag?((t=Ru(n,e.mode,i,o)).return=e,t):((t=r(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Du(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Nu(t.type,t.key,t.props,null,e.mode,n)).ref=Vo(e,null,t),n.return=e,n;case k:return(t=zu(t,e.mode,n)).return=e,t;case O:return f(e,(0,t._init)(t._payload),n)}if(te(t)||R(t))return(t=Ru(t,e.mode,n,null)).return=e,t;Qo(e,t)}return null}function d(e,t,n,i){var r=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==r?null:l(e,t,""+n,i);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===r?u(e,t,n,i):null;case k:return n.key===r?c(e,t,n,i):null;case O:return d(e,t,(r=n._init)(n._payload),i)}if(te(n)||R(n))return null!==r?null:h(e,t,n,i,null);Qo(e,n)}return null}function p(e,t,n,i,r){if("string"===typeof i&&""!==i||"number"===typeof i)return l(t,e=e.get(n)||null,""+i,r);if("object"===typeof i&&null!==i){switch(i.$$typeof){case w:return u(t,e=e.get(null===i.key?n:i.key)||null,i,r);case k:return c(t,e=e.get(null===i.key?n:i.key)||null,i,r);case O:return p(e,t,n,(0,i._init)(i._payload),r)}if(te(i)||R(i))return h(t,e=e.get(n)||null,i,r,null);Qo(t,i)}return null}function m(r,o,s,l){for(var u=null,c=null,h=o,m=o=0,v=null;null!==h&&m<s.length;m++){h.index>m?(v=h,h=null):v=h.sibling;var g=d(r,h,s[m],l);if(null===g){null===h&&(h=v);break}e&&h&&null===g.alternate&&t(r,h),o=a(g,o,m),null===c?u=g:c.sibling=g,c=g,h=v}if(m===s.length)return n(r,h),ro&&Xr(r,m),u;if(null===h){for(;m<s.length;m++)null!==(h=f(r,s[m],l))&&(o=a(h,o,m),null===c?u=h:c.sibling=h,c=h);return ro&&Xr(r,m),u}for(h=i(r,h);m<s.length;m++)null!==(v=p(h,r,m,s[m],l))&&(e&&null!==v.alternate&&h.delete(null===v.key?m:v.key),o=a(v,o,m),null===c?u=v:c.sibling=v,c=v);return e&&h.forEach((function(e){return t(r,e)})),ro&&Xr(r,m),u}function v(r,s,l,u){var c=R(l);if("function"!==typeof c)throw Error(o(150));if(null==(l=c.call(l)))throw Error(o(151));for(var h=c=null,m=s,v=s=0,g=null,y=l.next();null!==m&&!y.done;v++,y=l.next()){m.index>v?(g=m,m=null):g=m.sibling;var _=d(r,m,y.value,u);if(null===_){null===m&&(m=g);break}e&&m&&null===_.alternate&&t(r,m),s=a(_,s,v),null===h?c=_:h.sibling=_,h=_,m=g}if(y.done)return n(r,m),ro&&Xr(r,v),c;if(null===m){for(;!y.done;v++,y=l.next())null!==(y=f(r,y.value,u))&&(s=a(y,s,v),null===h?c=y:h.sibling=y,h=y);return ro&&Xr(r,v),c}for(m=i(r,m);!y.done;v++,y=l.next())null!==(y=p(m,r,v,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),s=a(y,s,v),null===h?c=y:h.sibling=y,h=y);return e&&m.forEach((function(e){return t(r,e)})),ro&&Xr(r,v),c}return function e(i,o,a,l){if("object"===typeof a&&null!==a&&a.type===A&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var u=a.key,c=o;null!==c;){if(c.key===u){if((u=a.type)===A){if(7===c.tag){n(i,c.sibling),(o=r(c,a.props.children)).return=i,i=o;break e}}else if(c.elementType===u||"object"===typeof u&&null!==u&&u.$$typeof===O&&qo(u)===c.type){n(i,c.sibling),(o=r(c,a.props)).ref=Vo(i,c,a),o.return=i,i=o;break e}n(i,c);break}t(i,c),c=c.sibling}a.type===A?((o=Ru(a.props.children,i.mode,l,a.key)).return=i,i=o):((l=Nu(a.type,a.key,a.props,null,i.mode,l)).ref=Vo(i,o,a),l.return=i,i=l)}return s(i);case k:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(i,o.sibling),(o=r(o,a.children||[])).return=i,i=o;break e}n(i,o);break}t(i,o),o=o.sibling}(o=zu(a,i.mode,l)).return=i,i=o}return s(i);case O:return e(i,o,(c=a._init)(a._payload),l)}if(te(a))return m(i,o,a,l);if(R(a))return v(i,o,a,l);Qo(i,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(i,o.sibling),(o=r(o,a)).return=i,i=o):(n(i,o),(o=Du(a,i.mode,l)).return=i,i=o),s(i)):n(i,o)}}var Ko=Jo(!0),Xo=Jo(!1),$o={},ea=xr($o),ta=xr($o),na=xr($o);function ia(e){if(e===$o)throw Error(o(174));return e}function ra(e,t){switch(Er(na,t),Er(ta,e),Er(ea,$o),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Cr(ea),Er(ea,t)}function oa(){Cr(ea),Cr(ta),Cr(na)}function aa(e){ia(na.current);var t=ia(ea.current),n=le(t,e.type);t!==n&&(Er(ta,e),Er(ea,n))}function sa(e){ta.current===e&&(Cr(ea),Cr(ta))}var la=xr(0);function ua(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!==(128&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 ca=[];function ha(){for(var e=0;e<ca.length;e++)ca[e]._workInProgressVersionPrimary=null;ca.length=0}var fa=b.ReactCurrentDispatcher,da=b.ReactCurrentBatchConfig,pa=0,ma=null,va=null,ga=null,ya=!1,_a=!1,ba=0,wa=0;function ka(){throw Error(o(321))}function Aa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!si(e[n],t[n]))return!1;return!0}function xa(e,t,n,i,r,a){if(pa=a,ma=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fa.current=null===e||null===e.memoizedState?ss:ls,e=n(i,r),_a){a=0;do{if(_a=!1,ba=0,25<=a)throw Error(o(301));a+=1,ga=va=null,t.updateQueue=null,fa.current=us,e=n(i,r)}while(_a)}if(fa.current=as,t=null!==va&&null!==va.next,pa=0,ga=va=ma=null,ya=!1,t)throw Error(o(300));return e}function Ca(){var e=0!==ba;return ba=0,e}function Ea(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ga?ma.memoizedState=ga=e:ga=ga.next=e,ga}function Sa(){if(null===va){var e=ma.alternate;e=null!==e?e.memoizedState:null}else e=va.next;var t=null===ga?ma.memoizedState:ga.next;if(null!==t)ga=t,va=e;else{if(null===e)throw Error(o(310));e={memoizedState:(va=e).memoizedState,baseState:va.baseState,baseQueue:va.baseQueue,queue:va.queue,next:null},null===ga?ma.memoizedState=ga=e:ga=ga.next=e}return ga}function Pa(e,t){return"function"===typeof t?t(e):t}function Ta(e){var t=Sa(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var i=va,r=i.baseQueue,a=n.pending;if(null!==a){if(null!==r){var s=r.next;r.next=a.next,a.next=s}i.baseQueue=r=a,n.pending=null}if(null!==r){a=r.next,i=i.baseState;var l=s=null,u=null,c=a;do{var h=c.lane;if((pa&h)===h)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),i=c.hasEagerState?c.eagerState:e(i,c.action);else{var f={lane:h,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=i):u=u.next=f,ma.lanes|=h,Bl|=h}c=c.next}while(null!==c&&c!==a);null===u?s=i:u.next=l,si(i,t.memoizedState)||(bs=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=u,n.lastRenderedState=i}if(null!==(e=n.interleaved)){r=e;do{a=r.lane,ma.lanes|=a,Bl|=a,r=r.next}while(r!==e)}else null===r&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ia(e){var t=Sa(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,a=t.memoizedState;if(null!==r){n.pending=null;var s=r=r.next;do{a=e(a,s.action),s=s.next}while(s!==r);si(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,i]}function La(){}function Oa(e,t){var n=ma,i=Sa(),r=t(),a=!si(i.memoizedState,r);if(a&&(i.memoizedState=r,bs=!0),i=i.queue,Ha(Ra.bind(null,n,i,e),[e]),i.getSnapshot!==t||a||null!==ga&&1&ga.memoizedState.tag){if(n.flags|=2048,ja(9,Na.bind(null,n,i,r,t),void 0,null),null===Tl)throw Error(o(349));0!==(30&pa)||Ma(n,t,r)}return r}function Ma(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Na(e,t,n,i){t.value=n,t.getSnapshot=i,Ba(t)&&Da(e)}function Ra(e,t,n){return n((function(){Ba(t)&&Da(e)}))}function Ba(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!si(e,n)}catch(i){return!0}}function Da(e){var t=Io(e,1);null!==t&&nu(t,e,1,-1)}function za(e){var t=Ea();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,ma,e),[t.memoizedState,e]}function ja(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function Fa(){return Sa().memoizedState}function Za(e,t,n,i){var r=Ea();ma.flags|=e,r.memoizedState=ja(1|t,n,void 0,void 0===i?null:i)}function Wa(e,t,n,i){var r=Sa();i=void 0===i?null:i;var o=void 0;if(null!==va){var a=va.memoizedState;if(o=a.destroy,null!==i&&Aa(i,a.deps))return void(r.memoizedState=ja(t,n,o,i))}ma.flags|=e,r.memoizedState=ja(1|t,n,o,i)}function Ua(e,t){return Za(8390656,8,e,t)}function Ha(e,t){return Wa(2048,8,e,t)}function Ga(e,t){return Wa(4,2,e,t)}function Ya(e,t){return Wa(4,4,e,t)}function Va(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 Qa(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Wa(4,4,Va.bind(null,t,e),n)}function qa(){}function Ja(e,t){var n=Sa();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&Aa(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Ka(e,t){var n=Sa();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&Aa(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)}function Xa(e,t,n){return 0===(21&pa)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n):(si(n,t)||(n=mt(),ma.lanes|=n,Bl|=n,e.baseState=!0),t)}function $a(e,t){var n=_t;_t=0!==n&&4>n?n:4,e(!0);var i=da.transition;da.transition={};try{e(!1),t()}finally{_t=n,da.transition=i}}function es(){return Sa().memoizedState}function ts(e,t,n){var i=tu(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},is(e))rs(t,n);else if(null!==(n=To(e,t,n,i))){nu(n,e,i,eu()),os(n,t,i)}}function ns(e,t,n){var i=tu(e),r={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(is(e))rs(t,r);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(r.hasEagerState=!0,r.eagerState=s,si(s,a)){var l=t.interleaved;return null===l?(r.next=r,Po(t)):(r.next=l.next,l.next=r),void(t.interleaved=r)}}catch(u){}null!==(n=To(e,t,r,i))&&(nu(n,e,i,r=eu()),os(n,t,i))}}function is(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function rs(e,t){_a=ya=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function os(e,t,n){if(0!==(4194240&n)){var i=t.lanes;n|=i&=e.pendingLanes,t.lanes=n,yt(e,n)}}var as={readContext:Eo,useCallback:ka,useContext:ka,useEffect:ka,useImperativeHandle:ka,useInsertionEffect:ka,useLayoutEffect:ka,useMemo:ka,useReducer:ka,useRef:ka,useState:ka,useDebugValue:ka,useDeferredValue:ka,useTransition:ka,useMutableSource:ka,useSyncExternalStore:ka,useId:ka,unstable_isNewReconciler:!1},ss={readContext:Eo,useCallback:function(e,t){return Ea().memoizedState=[e,void 0===t?null:t],e},useContext:Eo,useEffect:Ua,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Za(4194308,4,Va.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Za(4194308,4,e,t)},useInsertionEffect:function(e,t){return Za(4,2,e,t)},useMemo:function(e,t){var n=Ea();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=Ea();return t=void 0!==n?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=ts.bind(null,ma,e),[i.memoizedState,e]},useRef:function(e){return e={current:e},Ea().memoizedState=e},useState:za,useDebugValue:qa,useDeferredValue:function(e){return Ea().memoizedState=e},useTransition:function(){var e=za(!1),t=e[0];return e=$a.bind(null,e[1]),Ea().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=ma,r=Ea();if(ro){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Tl)throw Error(o(349));0!==(30&pa)||Ma(i,t,n)}r.memoizedState=n;var a={value:n,getSnapshot:t};return r.queue=a,Ua(Ra.bind(null,i,a,e),[e]),i.flags|=2048,ja(9,Na.bind(null,i,a,n,t),void 0,null),n},useId:function(){var e=Ea(),t=Tl.identifierPrefix;if(ro){var n=Kr;t=":"+t+"R"+(n=(Jr&~(1<<32-at(Jr)-1)).toString(32)+n),0<(n=ba++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:Eo,useCallback:Ja,useContext:Eo,useEffect:Ha,useImperativeHandle:Qa,useInsertionEffect:Ga,useLayoutEffect:Ya,useMemo:Ka,useReducer:Ta,useRef:Fa,useState:function(){return Ta(Pa)},useDebugValue:qa,useDeferredValue:function(e){return Xa(Sa(),va.memoizedState,e)},useTransition:function(){return[Ta(Pa)[0],Sa().memoizedState]},useMutableSource:La,useSyncExternalStore:Oa,useId:es,unstable_isNewReconciler:!1},us={readContext:Eo,useCallback:Ja,useContext:Eo,useEffect:Ha,useImperativeHandle:Qa,useInsertionEffect:Ga,useLayoutEffect:Ya,useMemo:Ka,useReducer:Ia,useRef:Fa,useState:function(){return Ia(Pa)},useDebugValue:qa,useDeferredValue:function(e){var t=Sa();return null===va?t.memoizedState=e:Xa(t,va.memoizedState,e)},useTransition:function(){return[Ia(Pa)[0],Sa().memoizedState]},useMutableSource:La,useSyncExternalStore:Oa,useId:es,unstable_isNewReconciler:!1};function cs(e,t){try{var n="",i=t;do{n+=Z(i),i=i.return}while(i);var r=n}catch(o){r="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:r,digest:null}}function hs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fs(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var ds="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=No(-1,n)).tag=3,n.payload={element:null};var i=t.value;return n.callback=function(){Hl||(Hl=!0,Gl=i),fs(0,t)},n}function ms(e,t,n){(n=No(-1,n)).tag=3;var i=e.type.getDerivedStateFromError;if("function"===typeof i){var r=t.value;n.payload=function(){return i(r)},n.callback=function(){fs(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){fs(0,t),"function"!==typeof i&&(null===Yl?Yl=new Set([this]):Yl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function vs(e,t,n){var i=e.pingCache;if(null===i){i=e.pingCache=new ds;var r=new Set;i.set(t,r)}else void 0===(r=i.get(t))&&(r=new Set,i.set(t,r));r.has(n)||(r.add(n),e=Cu.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,i,r){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=No(-1,1)).tag=2,Ro(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=r,e)}var _s=b.ReactCurrentOwner,bs=!1;function ws(e,t,n,i){t.child=null===e?Xo(t,null,n,i):Ko(t,e.child,n,i)}function ks(e,t,n,i,r){n=n.render;var o=t.ref;return Co(t,r),i=xa(e,t,n,i,o,r),n=Ca(),null===e||bs?(ro&&n&&eo(t),t.flags|=1,ws(e,t,i,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Hs(e,t,r))}function As(e,t,n,i,r){if(null===e){var o=n.type;return"function"!==typeof o||Ou(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nu(n.type,null,i,t,t.mode,r)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,xs(e,t,o,i,r))}if(o=e.child,0===(e.lanes&r)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:li)(a,i)&&e.ref===t.ref)return Hs(e,t,r)}return t.flags|=1,(e=Mu(o,i)).ref=t.ref,e.return=t,t.child=e}function xs(e,t,n,i,r){if(null!==e){var o=e.memoizedProps;if(li(o,i)&&e.ref===t.ref){if(bs=!1,t.pendingProps=i=o,0===(e.lanes&r))return t.lanes=e.lanes,Hs(e,t,r);0!==(131072&e.flags)&&(bs=!0)}}return Ss(e,t,n,i,r)}function Cs(e,t,n){var i=t.pendingProps,r=i.children,o=null!==e?e.memoizedState:null;if("hidden"===i.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Er(Ml,Ol),Ol|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Er(Ml,Ol),Ol|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=null!==o?o.baseLanes:n,Er(Ml,Ol),Ol|=i}else null!==o?(i=o.baseLanes|n,t.memoizedState=null):i=n,Er(Ml,Ol),Ol|=i;return ws(e,t,r,n),t.child}function Es(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ss(e,t,n,i,r){var o=Or(n)?Ir:Pr.current;return o=Lr(t,o),Co(t,r),n=xa(e,t,n,i,o,r),i=Ca(),null===e||bs?(ro&&i&&eo(t),t.flags|=1,ws(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Hs(e,t,r))}function Ps(e,t,n,i,r){if(Or(n)){var o=!0;Br(t)}else o=!1;if(Co(t,r),null===t.stateNode)Us(e,t),Ho(t,n,i),Yo(t,n,i,r),i=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"===typeof u&&null!==u?u=Eo(u):u=Lr(t,u=Or(n)?Ir:Pr.current);var c=n.getDerivedStateFromProps,h="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;h||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==i||l!==u)&&Go(t,a,i,u),Lo=!1;var f=t.memoizedState;a.state=f,zo(t,i,a,r),l=t.memoizedState,s!==i||f!==l||Tr.current||Lo?("function"===typeof c&&(Zo(t,n,c,i),l=t.memoizedState),(s=Lo||Uo(t,n,s,i,f,l,u))?(h||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=l),a.props=i,a.state=l,a.context=u,i=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),i=!1)}else{a=t.stateNode,Mo(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:go(t.type,s),a.props=u,h=t.pendingProps,f=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Eo(l):l=Lr(t,l=Or(n)?Ir:Pr.current);var d=n.getDerivedStateFromProps;(c="function"===typeof d||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==h||f!==l)&&Go(t,a,i,l),Lo=!1,f=t.memoizedState,a.state=f,zo(t,i,a,r);var p=t.memoizedState;s!==h||f!==p||Tr.current||Lo?("function"===typeof d&&(Zo(t,n,d,i),p=t.memoizedState),(u=Lo||Uo(t,n,u,i,f,p,l)||!1)?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(i,p,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(i,p,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=p),a.props=i,a.state=p,a.context=l,i=u):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),i=!1)}return Ts(e,t,n,i,o,r)}function Ts(e,t,n,i,r,o){Es(e,t);var a=0!==(128&t.flags);if(!i&&!a)return r&&Dr(t,n,!1),Hs(e,t,o);i=t.stateNode,_s.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:i.render();return t.flags|=1,null!==e&&a?(t.child=Ko(t,e.child,null,o),t.child=Ko(t,null,s,o)):ws(e,t,s,o),t.memoizedState=i.state,r&&Dr(t,n,!0),t.child}function Is(e){var t=e.stateNode;t.pendingContext?Nr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Nr(0,t.context,!1),ra(e,t.containerInfo)}function Ls(e,t,n,i,r){return po(),mo(r),t.flags|=256,ws(e,t,n,i),t.child}var Os,Ms,Ns,Rs={dehydrated:null,treeContext:null,retryLane:0};function Bs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ds(e,t,n){var i,r=t.pendingProps,a=la.current,s=!1,l=0!==(128&t.flags);if((i=l)||(i=(null===e||null!==e.memoizedState)&&0!==(2&a)),i?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Er(la,1&a),null===e)return uo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=r.children,e=r.fallback,s?(r=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&r)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Bu(l,r,0,null),e=Ru(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Bs(n),t.memoizedState=Rs,e):zs(t,l));if(null!==(a=e.memoizedState)&&null!==(i=a.dehydrated))return function(e,t,n,i,r,a,s){if(n)return 256&t.flags?(t.flags&=-257,js(e,t,s,i=hs(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=i.fallback,r=t.mode,i=Bu({mode:"visible",children:i.children},r,0,null),(a=Ru(a,r,s,null)).flags|=2,i.return=t,a.return=t,i.sibling=a,t.child=i,0!==(1&t.mode)&&Ko(t,e.child,null,s),t.child.memoizedState=Bs(s),t.memoizedState=Rs,a);if(0===(1&t.mode))return js(e,t,s,null);if("$!"===r.data){if(i=r.nextSibling&&r.nextSibling.dataset)var l=i.dgst;return i=l,js(e,t,s,i=hs(a=Error(o(419)),i,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(i=Tl)){switch(s&-s){case 4:r=2;break;case 16:r=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}0!==(r=0!==(r&(i.suspendedLanes|s))?0:r)&&r!==a.retryLane&&(a.retryLane=r,Io(e,r),nu(i,e,r,-1))}return mu(),js(e,t,s,i=hs(Error(o(421))))}return"$?"===r.data?(t.flags|=128,t.child=e.child,t=Su.bind(null,e),r._reactRetry=t,null):(e=a.treeContext,io=ur(r.nextSibling),no=t,ro=!0,oo=null,null!==e&&(Vr[Qr++]=Jr,Vr[Qr++]=Kr,Vr[Qr++]=qr,Jr=e.id,Kr=e.overflow,qr=t),(t=zs(t,i.children)).flags|=4096,t)}(e,t,l,r,i,a,n);if(s){s=r.fallback,l=t.mode,i=(a=e.child).sibling;var u={mode:"hidden",children:r.children};return 0===(1&l)&&t.child!==a?((r=t.child).childLanes=0,r.pendingProps=u,t.deletions=null):(r=Mu(a,u)).subtreeFlags=14680064&a.subtreeFlags,null!==i?s=Mu(i,s):(s=Ru(s,l,n,null)).flags|=2,s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,l=null===(l=e.child.memoizedState)?Bs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Rs,r}return e=(s=e.child).sibling,r=Mu(s,{mode:"visible",children:r.children}),0===(1&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function zs(e,t){return(t=Bu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function js(e,t,n,i){return null!==i&&mo(i),Ko(t,e.child,null,n),(e=zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fs(e,t,n){e.lanes|=t;var i=e.alternate;null!==i&&(i.lanes|=t),xo(e.return,t,n)}function Zs(e,t,n,i,r){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=i,o.tail=n,o.tailMode=r)}function Ws(e,t,n){var i=t.pendingProps,r=i.revealOrder,o=i.tail;if(ws(e,t,i.children,n),0!==(2&(i=la.current)))i=1&i|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fs(e,n,t);else if(19===e.tag)Fs(e,n,t);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}i&=1}if(Er(la,i),0===(1&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===ua(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Zs(t,!1,r,n,o);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===ua(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Zs(t,!0,n,null,o);break;case"together":Zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Us(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Bl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Mu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Mu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Gs(e,t){if(!ro)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 i=null;null!==n;)null!==n.alternate&&(i=n),n=n.sibling;null===i?t||null===e.tail?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Ys(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,i=0;if(t)for(var r=e.child;null!==r;)n|=r.lanes|r.childLanes,i|=14680064&r.subtreeFlags,i|=14680064&r.flags,r.return=e,r=r.sibling;else for(r=e.child;null!==r;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Vs(e,t,n){var i=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ys(t),null;case 1:case 17:return Or(t.type)&&Mr(),Ys(t),null;case 3:return i=t.stateNode,oa(),Cr(Tr),Cr(Pr),ha(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(ho(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(au(oo),oo=null))),Ys(t),null;case 5:sa(t);var r=ia(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Ms(e,t,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(o(166));return Ys(t),null}if(e=ia(ea.current),ho(t)){i=t.stateNode,n=t.type;var a=t.memoizedProps;switch(i[fr]=t,i[dr]=a,e=0!==(1&t.mode),n){case"dialog":ji("cancel",i),ji("close",i);break;case"iframe":case"object":case"embed":ji("load",i);break;case"video":case"audio":for(r=0;r<Ri.length;r++)ji(Ri[r],i);break;case"source":ji("error",i);break;case"img":case"image":case"link":ji("error",i),ji("load",i);break;case"details":ji("toggle",i);break;case"input":J(i,a),ji("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!a.multiple},ji("invalid",i);break;case"textarea":re(i,a),ji("invalid",i)}for(var l in ye(n,a),r=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"===typeof u?i.textContent!==u&&(!0!==a.suppressHydrationWarning&&Xi(i.textContent,u,e),r=["children",u]):"number"===typeof u&&i.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Xi(i.textContent,u,e),r=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&ji("scroll",i)}switch(n){case"input":Y(i),$(i,a,!0);break;case"textarea":Y(i),ae(i);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(i.onclick=$i)}i=r,t.updateQueue=i,null!==i&&(t.flags|=4)}else{l=9===r.nodeType?r:r.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof i.is?e=l.createElement(n,{is:i.is}):(e=l.createElement(n),"select"===n&&(l=e,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):e=l.createElementNS(e,n),e[fr]=t,e[dr]=i,Os(e,t),t.stateNode=e;e:{switch(l=_e(n,i),n){case"dialog":ji("cancel",e),ji("close",e),r=i;break;case"iframe":case"object":case"embed":ji("load",e),r=i;break;case"video":case"audio":for(r=0;r<Ri.length;r++)ji(Ri[r],e);r=i;break;case"source":ji("error",e),r=i;break;case"img":case"image":case"link":ji("error",e),ji("load",e),r=i;break;case"details":ji("toggle",e),r=i;break;case"input":J(e,i),r=q(e,i),ji("invalid",e);break;case"option":default:r=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},r=D({},i,{value:void 0}),ji("invalid",e);break;case"textarea":re(e,i),r=ie(e,i),ji("invalid",e)}for(a in ye(n,r),u=r)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ve(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&he(e,c):"children"===a?"string"===typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"===typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&ji("scroll",e):null!=c&&_(e,a,c,l))}switch(n){case"input":Y(e),$(e,i,!1);break;case"textarea":Y(e),ae(e);break;case"option":null!=i.value&&e.setAttribute("value",""+H(i.value));break;case"select":e.multiple=!!i.multiple,null!=(a=i.value)?ne(e,!!i.multiple,a,!1):null!=i.defaultValue&&ne(e,!!i.multiple,i.defaultValue,!0);break;default:"function"===typeof r.onClick&&(e.onclick=$i)}switch(n){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ys(t),null;case 6:if(e&&null!=t.stateNode)Ns(0,t,e.memoizedProps,i);else{if("string"!==typeof i&&null===t.stateNode)throw Error(o(166));if(n=ia(na.current),ia(ea.current),ho(t)){if(i=t.stateNode,n=t.memoizedProps,i[fr]=t,(a=i.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Xi(i.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xi(i.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(i=(9===n.nodeType?n:n.ownerDocument).createTextNode(i))[fr]=t,t.stateNode=i}return Ys(t),null;case 13:if(Cr(la),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ro&&null!==io&&0!==(1&t.mode)&&0===(128&t.flags))fo(),po(),t.flags|=98560,a=!1;else if(a=ho(t),null!==i&&null!==i.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[fr]=t}else po(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ys(t),a=!1}else null!==oo&&(au(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&la.current)?0===Nl&&(Nl=3):mu())),null!==t.updateQueue&&(t.flags|=4),Ys(t),null);case 4:return oa(),null===e&&Wi(t.stateNode.containerInfo),Ys(t),null;case 10:return Ao(t.type._context),Ys(t),null;case 19:if(Cr(la),null===(a=t.memoizedState))return Ys(t),null;if(i=0!==(128&t.flags),null===(l=a.rendering))if(i)Gs(a,!1);else{if(0!==Nl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ua(e))){for(t.flags|=128,Gs(a,!1),null!==(i=l.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;null!==n;)e=i,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Er(la,1&la.current|2),t.child}e=e.sibling}null!==a.tail&&Ke()>Wl&&(t.flags|=128,i=!0,Gs(a,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=ua(l))){if(t.flags|=128,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Gs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ro)return Ys(t),null}else 2*Ke()-a.renderingStartTime>Wl&&1073741824!==n&&(t.flags|=128,i=!0,Gs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ke(),t.sibling=null,n=la.current,Er(la,i?1&n|2:1&n),t):(Ys(t),null);case 22:case 23:return hu(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&0!==(1&t.mode)?0!==(1073741824&Ol)&&(Ys(t),6&t.subtreeFlags&&(t.flags|=8192)):Ys(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Qs(e,t){switch(to(t),t.tag){case 1:return Or(t.type)&&Mr(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oa(),Cr(Tr),Cr(Pr),ha(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(Cr(la),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Cr(la),null;case 4:return oa(),null;case 10:return Ao(t.type._context),null;case 22:case 23:return hu(),null;default:return null}}Os=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}},Ms=function(e,t,n,i){var r=e.memoizedProps;if(r!==i){e=t.stateNode,ia(ea.current);var o,a=null;switch(n){case"input":r=q(e,r),i=q(e,i),a=[];break;case"select":r=D({},r,{value:void 0}),i=D({},i,{value:void 0}),a=[];break;case"textarea":r=ie(e,r),i=ie(e,i),a=[];break;default:"function"!==typeof r.onClick&&"function"===typeof i.onClick&&(e.onclick=$i)}for(c in ye(n,i),n=null,r)if(!i.hasOwnProperty(c)&&r.hasOwnProperty(c)&&null!=r[c])if("style"===c){var l=r[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in i){var u=i[c];if(l=null!=r?r[c]:void 0,i.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!==typeof u&&"number"!==typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&ji("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Ns=function(e,t,n,i){n!==i&&(t.flags|=4)};var qs=!1,Js=!1,Ks="function"===typeof WeakSet?WeakSet:Set,Xs=null;function $s(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(i){xu(e,t,i)}else n.current=null}function el(e,t,n){try{n()}catch(i){xu(e,t,i)}}var tl=!1;function nl(e,t,n){var i=t.updateQueue;if(null!==(i=null!==i?i.lastEffect:null)){var r=i=i.next;do{if((r.tag&e)===e){var o=r.destroy;r.destroy=void 0,void 0!==o&&el(t,n,o)}r=r.next}while(r!==i)}}function il(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function rl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fr],delete t[dr],delete t[mr],delete t[vr],delete t[gr])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var i=e.tag;if(5===i||6===i)e=e.stateNode,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=$i));else if(4!==i&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var i=e.tag;if(5===i||6===i)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==i&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,hl=!1;function fl(e,t,n){for(n=n.child;null!==n;)dl(e,t,n),n=n.sibling}function dl(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(rt,n)}catch(s){}switch(n.tag){case 5:Js||$s(n,t);case 6:var i=cl,r=hl;cl=null,fl(e,t,n),hl=r,null!==(cl=i)&&(hl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(hl?(e=cl,n=n.stateNode,8===e.nodeType?lr(e.parentNode,n):1===e.nodeType&&lr(e,n),Wt(e)):lr(cl,n.stateNode));break;case 4:i=cl,r=hl,cl=n.stateNode.containerInfo,hl=!0,fl(e,t,n),cl=i,hl=r;break;case 0:case 11:case 14:case 15:if(!Js&&(null!==(i=n.updateQueue)&&null!==(i=i.lastEffect))){r=i=i.next;do{var o=r,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&el(n,t,a),r=r.next}while(r!==i)}fl(e,t,n);break;case 1:if(!Js&&($s(n,t),"function"===typeof(i=n.stateNode).componentWillUnmount))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(s){xu(n,t,s)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Js=(i=Js)||null!==n.memoizedState,fl(e,t,n),Js=i):fl(e,t,n);break;default:fl(e,t,n)}}function pl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ks),t.forEach((function(t){var i=Pu.bind(null,e,t);n.has(t)||(n.add(t),t.then(i,i))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var i=0;i<n.length;i++){var r=n[i];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,hl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,hl=!0;break e}l=l.return}if(null===cl)throw Error(o(160));dl(a,s,r),cl=null,hl=!1;var u=r.alternate;null!==u&&(u.return=null),r.return=null}catch(c){xu(r,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vl(t,e),t=t.sibling}function vl(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),gl(e),4&i){try{nl(3,e,e.return),il(3,e)}catch(v){xu(e,e.return,v)}try{nl(5,e,e.return)}catch(v){xu(e,e.return,v)}}break;case 1:ml(t,e),gl(e),512&i&&null!==n&&$s(n,n.return);break;case 5:if(ml(t,e),gl(e),512&i&&null!==n&&$s(n,n.return),32&e.flags){var r=e.stateNode;try{fe(r,"")}catch(v){xu(e,e.return,v)}}if(4&i&&null!=(r=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&K(r,a),_e(l,s);var c=_e(l,a);for(s=0;s<u.length;s+=2){var h=u[s],f=u[s+1];"style"===h?ve(r,f):"dangerouslySetInnerHTML"===h?he(r,f):"children"===h?fe(r,f):_(r,h,f,c)}switch(l){case"input":X(r,a);break;case"textarea":oe(r,a);break;case"select":var d=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(r,!!a.multiple,p,!1):d!==!!a.multiple&&(null!=a.defaultValue?ne(r,!!a.multiple,a.defaultValue,!0):ne(r,!!a.multiple,a.multiple?[]:"",!1))}r[dr]=a}catch(v){xu(e,e.return,v)}}break;case 6:if(ml(t,e),gl(e),4&i){if(null===e.stateNode)throw Error(o(162));r=e.stateNode,a=e.memoizedProps;try{r.nodeValue=a}catch(v){xu(e,e.return,v)}}break;case 3:if(ml(t,e),gl(e),4&i&&null!==n&&n.memoizedState.isDehydrated)try{Wt(t.containerInfo)}catch(v){xu(e,e.return,v)}break;case 4:default:ml(t,e),gl(e);break;case 13:ml(t,e),gl(e),8192&(r=e.child).flags&&(a=null!==r.memoizedState,r.stateNode.isHidden=a,!a||null!==r.alternate&&null!==r.alternate.memoizedState||(Zl=Ke())),4&i&&pl(e);break;case 22:if(h=null!==n&&null!==n.memoizedState,1&e.mode?(Js=(c=Js)||h,ml(t,e),Js=c):ml(t,e),gl(e),8192&i){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!h&&0!==(1&e.mode))for(Xs=e,h=e.child;null!==h;){for(f=Xs=h;null!==Xs;){switch(p=(d=Xs).child,d.tag){case 0:case 11:case 14:case 15:nl(4,d,d.return);break;case 1:$s(d,d.return);var m=d.stateNode;if("function"===typeof m.componentWillUnmount){i=d,n=d.return;try{t=i,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(v){xu(i,n,v)}}break;case 5:$s(d,d.return);break;case 22:if(null!==d.memoizedState){wl(f);continue}}null!==p?(p.return=d,Xs=p):wl(f)}h=h.sibling}e:for(h=null,f=e;;){if(5===f.tag){if(null===h){h=f;try{r=f.stateNode,c?"function"===typeof(a=r.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=void 0!==(u=f.memoizedProps.style)&&null!==u&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(v){xu(e,e.return,v)}}}else if(6===f.tag){if(null===h)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(v){xu(e,e.return,v)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;h===f&&(h=null),f=f.return}h===f&&(h=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(t,e),gl(e),4&i&&pl(e);case 21:}}function gl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var i=n;break e}n=n.return}throw Error(o(160))}switch(i.tag){case 5:var r=i.stateNode;32&i.flags&&(fe(r,""),i.flags&=-33),ul(e,sl(e),r);break;case 3:case 4:var a=i.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(o(161))}}catch(s){xu(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Xs=e,_l(e,t,n)}function _l(e,t,n){for(var i=0!==(1&e.mode);null!==Xs;){var r=Xs,o=r.child;if(22===r.tag&&i){var a=null!==r.memoizedState||qs;if(!a){var s=r.alternate,l=null!==s&&null!==s.memoizedState||Js;s=qs;var u=Js;if(qs=a,(Js=l)&&!u)for(Xs=r;null!==Xs;)l=(a=Xs).child,22===a.tag&&null!==a.memoizedState?kl(r):null!==l?(l.return=a,Xs=l):kl(r);for(;null!==o;)Xs=o,_l(o,t,n),o=o.sibling;Xs=r,qs=s,Js=u}bl(e)}else 0!==(8772&r.subtreeFlags)&&null!==o?(o.return=r,Xs=o):bl(e)}}function bl(e){for(;null!==Xs;){var t=Xs;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Js||il(5,t);break;case 1:var i=t.stateNode;if(4&t.flags&&!Js)if(null===n)i.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:go(t.type,n.memoizedProps);i.componentDidUpdate(r,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&jo(t,a,i);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}jo(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var h=c.memoizedState;if(null!==h){var f=h.dehydrated;null!==f&&Wt(f)}}}break;default:throw Error(o(163))}Js||512&t.flags&&rl(t)}catch(d){xu(t,t.return,d)}}if(t===e){Xs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Xs=n;break}Xs=t.return}}function wl(e){for(;null!==Xs;){var t=Xs;if(t===e){Xs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xs=n;break}Xs=t.return}}function kl(e){for(;null!==Xs;){var t=Xs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{il(4,t)}catch(l){xu(t,n,l)}break;case 1:var i=t.stateNode;if("function"===typeof i.componentDidMount){var r=t.return;try{i.componentDidMount()}catch(l){xu(t,r,l)}}var o=t.return;try{rl(t)}catch(l){xu(t,o,l)}break;case 5:var a=t.return;try{rl(t)}catch(l){xu(t,a,l)}}}catch(l){xu(t,t.return,l)}if(t===e){Xs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Xs=s;break}Xs=t.return}}var Al,xl=Math.ceil,Cl=b.ReactCurrentDispatcher,El=b.ReactCurrentOwner,Sl=b.ReactCurrentBatchConfig,Pl=0,Tl=null,Il=null,Ll=0,Ol=0,Ml=xr(0),Nl=0,Rl=null,Bl=0,Dl=0,zl=0,jl=null,Fl=null,Zl=0,Wl=1/0,Ul=null,Hl=!1,Gl=null,Yl=null,Vl=!1,Ql=null,ql=0,Jl=0,Kl=null,Xl=-1,$l=0;function eu(){return 0!==(6&Pl)?Ke():-1!==Xl?Xl:Xl=Ke()}function tu(e){return 0===(1&e.mode)?1:0!==(2&Pl)&&0!==Ll?Ll&-Ll:null!==vo.transition?(0===$l&&($l=mt()),$l):0!==(e=_t)?e:e=void 0===(e=window.event)?16:Jt(e.type)}function nu(e,t,n,i){if(50<Jl)throw Jl=0,Kl=null,Error(o(185));gt(e,n,i),0!==(2&Pl)&&e===Tl||(e===Tl&&(0===(2&Pl)&&(Dl|=n),4===Nl&&su(e,Ll)),iu(e,i),1===n&&0===Pl&&0===(1&t.mode)&&(Wl=Ke()+500,jr&&Wr()))}function iu(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,l=r[a];-1===l?0!==(s&n)&&0===(s&i)||(r[a]=dt(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var i=ft(e,e===Tl?Ll:0);if(0===i)null!==n&&Qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(null!=n&&Qe(n),1===t)0===e.tag?function(e){jr=!0,Zr(e)}(lu.bind(null,e)):Zr(lu.bind(null,e)),ar((function(){0===(6&Pl)&&Wr()})),n=null;else{switch(bt(i)){case 1:n=$e;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=it}n=Tu(n,ru.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ru(e,t){if(Xl=-1,$l=0,0!==(6&Pl))throw Error(o(327));var n=e.callbackNode;if(ku()&&e.callbackNode!==n)return null;var i=ft(e,e===Tl?Ll:0);if(0===i)return null;if(0!==(30&i)||0!==(i&e.expiredLanes)||t)t=vu(e,i);else{t=i;var r=Pl;Pl|=2;var a=pu();for(Tl===e&&Ll===t||(Ul=null,Wl=Ke()+500,fu(e,t));;)try{yu();break}catch(l){du(e,l)}ko(),Cl.current=a,Pl=r,null!==Il?t=0:(Tl=null,Ll=0,t=Nl)}if(0!==t){if(2===t&&(0!==(r=pt(e))&&(i=r,t=ou(e,r))),1===t)throw n=Rl,fu(e,0),su(e,i),iu(e,Ke()),n;if(6===t)su(e,i);else{if(r=e.current.alternate,0===(30&i)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var i=0;i<n.length;i++){var r=n[i],o=r.getSnapshot;r=r.value;try{if(!si(o(),r))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(r)&&(2===(t=vu(e,i))&&(0!==(a=pt(e))&&(i=a,t=ou(e,a))),1===t))throw n=Rl,fu(e,0),su(e,i),iu(e,Ke()),n;switch(e.finishedWork=r,e.finishedLanes=i,t){case 0:case 1:throw Error(o(345));case 2:case 5:wu(e,Fl,Ul);break;case 3:if(su(e,i),(130023424&i)===i&&10<(t=Zl+500-Ke())){if(0!==ft(e,0))break;if(((r=e.suspendedLanes)&i)!==i){eu(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=ir(wu.bind(null,e,Fl,Ul),t);break}wu(e,Fl,Ul);break;case 4:if(su(e,i),(4194240&i)===i)break;for(t=e.eventTimes,r=-1;0<i;){var s=31-at(i);a=1<<s,(s=t[s])>r&&(r=s),i&=~a}if(i=r,10<(i=(120>(i=Ke()-i)?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*xl(i/1960))-i)){e.timeoutHandle=ir(wu.bind(null,e,Fl,Ul),i);break}wu(e,Fl,Ul);break;default:throw Error(o(329))}}}return iu(e,Ke()),e.callbackNode===n?ru.bind(null,e):null}function ou(e,t){var n=jl;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=vu(e,t))&&(t=Fl,Fl=n,null!==t&&au(t)),e}function au(e){null===Fl?Fl=e:Fl.push.apply(Fl,e)}function su(e,t){for(t&=~zl,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),i=1<<n;e[n]=-1,t&=~i}}function lu(e){if(0!==(6&Pl))throw Error(o(327));ku();var t=ft(e,0);if(0===(1&t))return iu(e,Ke()),null;var n=vu(e,t);if(0!==e.tag&&2===n){var i=pt(e);0!==i&&(t=i,n=ou(e,i))}if(1===n)throw n=Rl,fu(e,0),su(e,t),iu(e,Ke()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wu(e,Fl,Ul),iu(e,Ke()),null}function uu(e,t){var n=Pl;Pl|=1;try{return e(t)}finally{0===(Pl=n)&&(Wl=Ke()+500,jr&&Wr())}}function cu(e){null!==Ql&&0===Ql.tag&&0===(6&Pl)&&ku();var t=Pl;Pl|=1;var n=Sl.transition,i=_t;try{if(Sl.transition=null,_t=1,e)return e()}finally{_t=i,Sl.transition=n,0===(6&(Pl=t))&&Wr()}}function hu(){Ol=Ml.current,Cr(Ml)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,rr(n)),null!==Il)for(n=Il.return;null!==n;){var i=n;switch(to(i),i.tag){case 1:null!==(i=i.type.childContextTypes)&&void 0!==i&&Mr();break;case 3:oa(),Cr(Tr),Cr(Pr),ha();break;case 5:sa(i);break;case 4:oa();break;case 13:case 19:Cr(la);break;case 10:Ao(i.type._context);break;case 22:case 23:hu()}n=n.return}if(Tl=e,Il=e=Mu(e.current,null),Ll=Ol=t,Nl=0,Rl=null,zl=Dl=Bl=0,Fl=jl=null,null!==So){for(t=0;t<So.length;t++)if(null!==(i=(n=So[t]).interleaved)){n.interleaved=null;var r=i.next,o=n.pending;if(null!==o){var a=o.next;o.next=r,i.next=a}n.pending=i}So=null}return e}function du(e,t){for(;;){var n=Il;try{if(ko(),fa.current=as,ya){for(var i=ma.memoizedState;null!==i;){var r=i.queue;null!==r&&(r.pending=null),i=i.next}ya=!1}if(pa=0,ga=va=ma=null,_a=!1,ba=0,El.current=null,null===n||null===n.return){Nl=1,Rl=t,Il=null;break}e:{var a=e,s=n.return,l=n,u=t;if(t=Ll,l.flags|=32768,null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u,h=l,f=h.tag;if(0===(1&h.mode)&&(0===f||11===f||15===f)){var d=h.alternate;d?(h.updateQueue=d.updateQueue,h.memoizedState=d.memoizedState,h.lanes=d.lanes):(h.updateQueue=null,h.memoizedState=null)}var p=gs(s);if(null!==p){p.flags&=-257,ys(p,s,l,0,t),1&p.mode&&vs(a,c,t),u=c;var m=(t=p).updateQueue;if(null===m){var v=new Set;v.add(u),t.updateQueue=v}else m.add(u);break e}if(0===(1&t)){vs(a,c,t),mu();break e}u=Error(o(426))}else if(ro&&1&l.mode){var g=gs(s);if(null!==g){0===(65536&g.flags)&&(g.flags|=256),ys(g,s,l,0,t),mo(cs(u,l));break e}}a=u=cs(u,l),4!==Nl&&(Nl=2),null===jl?jl=[a]:jl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Do(a,ps(0,u,t));break e;case 1:l=u;var y=a.type,_=a.stateNode;if(0===(128&a.flags)&&("function"===typeof y.getDerivedStateFromError||null!==_&&"function"===typeof _.componentDidCatch&&(null===Yl||!Yl.has(_)))){a.flags|=65536,t&=-t,a.lanes|=t,Do(a,ms(a,l,t));break e}}a=a.return}while(null!==a)}bu(n)}catch(b){t=b,Il===n&&null!==n&&(Il=n=n.return);continue}break}}function pu(){var e=Cl.current;return Cl.current=as,null===e?as:e}function mu(){0!==Nl&&3!==Nl&&2!==Nl||(Nl=4),null===Tl||0===(268435455&Bl)&&0===(268435455&Dl)||su(Tl,Ll)}function vu(e,t){var n=Pl;Pl|=2;var i=pu();for(Tl===e&&Ll===t||(Ul=null,fu(e,t));;)try{gu();break}catch(r){du(e,r)}if(ko(),Pl=n,Cl.current=i,null!==Il)throw Error(o(261));return Tl=null,Ll=0,Nl}function gu(){for(;null!==Il;)_u(Il)}function yu(){for(;null!==Il&&!qe();)_u(Il)}function _u(e){var t=Al(e.alternate,e,Ol);e.memoizedProps=e.pendingProps,null===t?bu(e):Il=t,El.current=null}function bu(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Vs(n,t,Ol)))return void(Il=n)}else{if(null!==(n=Qs(n,t)))return n.flags&=32767,void(Il=n);if(null===e)return Nl=6,void(Il=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Il=t);Il=t=e}while(null!==t);0===Nl&&(Nl=5)}function wu(e,t,n){var i=_t,r=Sl.transition;try{Sl.transition=null,_t=1,function(e,t,n,i){do{ku()}while(null!==Ql);if(0!==(6&Pl))throw Error(o(327));n=e.finishedWork;var r=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0<n;){var r=31-at(n),o=1<<r;t[r]=0,i[r]=-1,e[r]=-1,n&=~o}}(e,a),e===Tl&&(Il=Tl=null,Ll=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Vl||(Vl=!0,Tu(tt,(function(){return ku(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Sl.transition,Sl.transition=null;var s=_t;_t=1;var l=Pl;Pl|=4,El.current=null,function(e,t){if(er=Ht,di(e=fi())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var i=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(i&&0!==i.rangeCount){n=i.anchorNode;var r=i.anchorOffset,a=i.focusNode;i=i.focusOffset;try{n.nodeType,a.nodeType}catch(w){n=null;break e}var s=0,l=-1,u=-1,c=0,h=0,f=e,d=null;t:for(;;){for(var p;f!==n||0!==r&&3!==f.nodeType||(l=s+r),f!==a||0!==i&&3!==f.nodeType||(u=s+i),3===f.nodeType&&(s+=f.nodeValue.length),null!==(p=f.firstChild);)d=f,f=p;for(;;){if(f===e)break t;if(d===n&&++c===r&&(l=s),d===a&&++h===i&&(u=s),null!==(p=f.nextSibling))break;d=(f=d).parentNode}f=p}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(tr={focusedElem:e,selectionRange:n},Ht=!1,Xs=t;null!==Xs;)if(e=(t=Xs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Xs=e;else for(;null!==Xs;){t=Xs;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var v=m.memoizedProps,g=m.memoizedState,y=t.stateNode,_=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:go(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(o(163))}}catch(w){xu(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Xs=e;break}Xs=t.return}m=tl,tl=!1}(e,n),vl(n,e),pi(tr),Ht=!!er,tr=er=null,e.current=n,yl(n,e,r),Je(),Pl=l,_t=s,Sl.transition=a}else e.current=n;if(Vl&&(Vl=!1,Ql=e,ql=r),0===(a=e.pendingLanes)&&(Yl=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(rt,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),iu(e,Ke()),null!==t)for(i=e.onRecoverableError,n=0;n<t.length;n++)i((r=t[n]).value,{componentStack:r.stack,digest:r.digest});if(Hl)throw Hl=!1,e=Gl,Gl=null,e;0!==(1&ql)&&0!==e.tag&&ku(),0!==(1&(a=e.pendingLanes))?e===Kl?Jl++:(Jl=0,Kl=e):Jl=0,Wr()}(e,t,n,i)}finally{Sl.transition=r,_t=i}return null}function ku(){if(null!==Ql){var e=bt(ql),t=Sl.transition,n=_t;try{if(Sl.transition=null,_t=16>e?16:e,null===Ql)var i=!1;else{if(e=Ql,Ql=null,ql=0,0!==(6&Pl))throw Error(o(331));var r=Pl;for(Pl|=4,Xs=e.current;null!==Xs;){var a=Xs,s=a.child;if(0!==(16&Xs.flags)){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Xs=c;null!==Xs;){var h=Xs;switch(h.tag){case 0:case 11:case 15:nl(8,h,a)}var f=h.child;if(null!==f)f.return=h,Xs=f;else for(;null!==Xs;){var d=(h=Xs).sibling,p=h.return;if(ol(h),h===c){Xs=null;break}if(null!==d){d.return=p,Xs=d;break}Xs=p}}}var m=a.alternate;if(null!==m){var v=m.child;if(null!==v){m.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Xs=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Xs=s;else e:for(;null!==Xs;){if(0!==(2048&(a=Xs).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Xs=y;break e}Xs=a.return}}var _=e.current;for(Xs=_;null!==Xs;){var b=(s=Xs).child;if(0!==(2064&s.subtreeFlags)&&null!==b)b.return=s,Xs=b;else e:for(s=_;null!==Xs;){if(0!==(2048&(l=Xs).flags))try{switch(l.tag){case 0:case 11:case 15:il(9,l)}}catch(k){xu(l,l.return,k)}if(l===s){Xs=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Xs=w;break e}Xs=l.return}}if(Pl=r,Wr(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(rt,e)}catch(k){}i=!0}return i}finally{_t=n,Sl.transition=t}}return!1}function Au(e,t,n){e=Ro(e,t=ps(0,t=cs(n,t),1),1),t=eu(),null!==e&&(gt(e,1,t),iu(e,t))}function xu(e,t,n){if(3===e.tag)Au(e,e,n);else for(;null!==t;){if(3===t.tag){Au(t,e,n);break}if(1===t.tag){var i=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof i.componentDidCatch&&(null===Yl||!Yl.has(i))){t=Ro(t,e=ms(t,e=cs(n,e),1),1),e=eu(),null!==t&&(gt(t,1,e),iu(t,e));break}}t=t.return}}function Cu(e,t,n){var i=e.pingCache;null!==i&&i.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Tl===e&&(Ll&n)===n&&(4===Nl||3===Nl&&(130023424&Ll)===Ll&&500>Ke()-Zl?fu(e,0):zl|=n),iu(e,t)}function Eu(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=eu();null!==(e=Io(e,t))&&(gt(e,t,n),iu(e,n))}function Su(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Eu(e,n)}function Pu(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,r=e.memoizedState;null!==r&&(n=r.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(o(314))}null!==i&&i.delete(t),Eu(e,n)}function Tu(e,t){return Ve(e,t)}function Iu(e,t,n,i){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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lu(e,t,n,i){return new Iu(e,t,n,i)}function Ou(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mu(e,t){var n=e.alternate;return null===n?((n=Lu(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.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,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 Nu(e,t,n,i,r,a){var s=2;if(i=e,"function"===typeof e)Ou(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case A:return Ru(n.children,r,a,t);case x:s=8,r|=8;break;case C:return(e=Lu(12,n,t,2|r)).elementType=C,e.lanes=a,e;case T:return(e=Lu(13,n,t,r)).elementType=T,e.lanes=a,e;case I:return(e=Lu(19,n,t,r)).elementType=I,e.lanes=a,e;case M:return Bu(n,r,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case E:s=10;break e;case S:s=9;break e;case P:s=11;break e;case L:s=14;break e;case O:s=16,i=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Lu(s,n,t,r)).elementType=e,t.type=i,t.lanes=a,t}function Ru(e,t,n,i){return(e=Lu(7,e,i,t)).lanes=n,e}function Bu(e,t,n,i){return(e=Lu(22,e,i,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function Du(e,t,n){return(e=Lu(6,e,null,t)).lanes=n,e}function zu(e,t,n){return(t=Lu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ju(e,t,n,i,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=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.identifierPrefix=i,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Fu(e,t,n,i,r,o,a,s,l){return e=new ju(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Lu(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oo(o),e}function Zu(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==i?null:""+i,children:e,containerInfo:t,implementation:n}}function Wu(e){if(!e)return Sr;e:{if(We(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Or(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Or(n))return Rr(e,n,t)}return t}function Uu(e,t,n,i,r,o,a,s,l){return(e=Fu(n,i,!0,e,0,o,0,s,l)).context=Wu(null),n=e.current,(o=No(i=eu(),r=tu(n))).callback=void 0!==t&&null!==t?t:null,Ro(n,o,r),e.current.lanes=r,gt(e,r,i),iu(e,i),e}function Hu(e,t,n,i){var r=t.current,o=eu(),a=tu(r);return n=Wu(n),null===t.context?t.context=n:t.pendingContext=n,(t=No(o,a)).payload={element:e},null!==(i=void 0===i?null:i)&&(t.callback=i),null!==(e=Ro(r,t,a))&&(nu(e,r,a,o),Bo(e,r,a)),a}function Gu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Yu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vu(e,t){Yu(e,t),(e=e.alternate)&&Yu(e,t)}Al=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Tr.current)bs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Is(t),po();break;case 5:aa(t);break;case 1:Or(t.type)&&Br(t);break;case 4:ra(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,r=t.memoizedProps.value;Er(yo,i._currentValue),i._currentValue=r;break;case 13:if(null!==(i=t.memoizedState))return null!==i.dehydrated?(Er(la,1&la.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ds(e,t,n):(Er(la,1&la.current),null!==(e=Hs(e,t,n))?e.sibling:null);Er(la,1&la.current);break;case 19:if(i=0!==(n&t.childLanes),0!==(128&e.flags)){if(i)return Ws(e,t,n);t.flags|=128}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null,r.lastEffect=null),Er(la,la.current),i)break;return null;case 22:case 23:return t.lanes=0,Cs(e,t,n)}return Hs(e,t,n)}(e,t,n);bs=0!==(131072&e.flags)}else bs=!1,ro&&0!==(1048576&t.flags)&&$r(t,Yr,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Us(e,t),e=t.pendingProps;var r=Lr(t,Pr.current);Co(t,n),r=xa(null,t,i,e,r,n);var a=Ca();return t.flags|=1,"object"===typeof r&&null!==r&&"function"===typeof r.render&&void 0===r.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Or(i)?(a=!0,Br(t)):a=!1,t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,Oo(t),r.updater=Wo,t.stateNode=r,r._reactInternals=t,Yo(t,i,e,n),t=Ts(null,t,i,!0,a,n)):(t.tag=0,ro&&a&&eo(t),ws(null,t,r,n),t=t.child),t;case 16:i=t.elementType;e:{switch(Us(e,t),e=t.pendingProps,i=(r=i._init)(i._payload),t.type=i,r=t.tag=function(e){if("function"===typeof e)return Ou(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===P)return 11;if(e===L)return 14}return 2}(i),e=go(i,e),r){case 0:t=Ss(null,t,i,e,n);break e;case 1:t=Ps(null,t,i,e,n);break e;case 11:t=ks(null,t,i,e,n);break e;case 14:t=As(null,t,i,go(i.type,e),n);break e}throw Error(o(306,i,""))}return t;case 0:return i=t.type,r=t.pendingProps,Ss(e,t,i,r=t.elementType===i?r:go(i,r),n);case 1:return i=t.type,r=t.pendingProps,Ps(e,t,i,r=t.elementType===i?r:go(i,r),n);case 3:e:{if(Is(t),null===e)throw Error(o(387));i=t.pendingProps,r=(a=t.memoizedState).element,Mo(e,t),zo(t,i,null,n);var s=t.memoizedState;if(i=s.element,a.isDehydrated){if(a={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ls(e,t,i,n,r=cs(Error(o(423)),t));break e}if(i!==r){t=Ls(e,t,i,n,r=cs(Error(o(424)),t));break e}for(io=ur(t.stateNode.containerInfo.firstChild),no=t,ro=!0,oo=null,n=Xo(t,null,i,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(po(),i===r){t=Hs(e,t,n);break e}ws(e,t,i,n)}t=t.child}return t;case 5:return aa(t),null===e&&uo(t),i=t.type,r=t.pendingProps,a=null!==e?e.memoizedProps:null,s=r.children,nr(i,r)?s=null:null!==a&&nr(i,a)&&(t.flags|=32),Es(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&uo(t),null;case 13:return Ds(e,t,n);case 4:return ra(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=Ko(t,null,i,n):ws(e,t,i,n),t.child;case 11:return i=t.type,r=t.pendingProps,ks(e,t,i,r=t.elementType===i?r:go(i,r),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,r=t.pendingProps,a=t.memoizedProps,s=r.value,Er(yo,i._currentValue),i._currentValue=s,null!==a)if(si(a.value,s)){if(a.children===r.children&&!Tr.current){t=Hs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===i){if(1===a.tag){(u=No(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var h=(c=c.shared).pending;null===h?u.next=u:(u.next=h.next,h.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),xo(a.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),xo(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,i=t.pendingProps.children,Co(t,n),i=i(r=Eo(r)),t.flags|=1,ws(e,t,i,n),t.child;case 14:return r=go(i=t.type,t.pendingProps),As(e,t,i,r=go(i.type,r),n);case 15:return xs(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:go(i,r),Us(e,t),t.tag=1,Or(i)?(e=!0,Br(t)):e=!1,Co(t,n),Ho(t,i,r),Yo(t,i,r,n),Ts(null,t,i,!0,e,n);case 19:return Ws(e,t,n);case 22:return Cs(e,t,n)}throw Error(o(156,t.tag))};var Qu="function"===typeof reportError?reportError:function(e){console.error(e)};function qu(e){this._internalRoot=e}function Ju(e){this._internalRoot=e}function Ku(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function $u(){}function ec(e,t,n,i,r){var o=n._reactRootContainer;if(o){var a=o;if("function"===typeof r){var s=r;r=function(){var e=Gu(a);s.call(e)}}Hu(t,a,e,r)}else a=function(e,t,n,i,r){if(r){if("function"===typeof i){var o=i;i=function(){var e=Gu(a);o.call(e)}}var a=Uu(t,i,e,0,null,!1,0,"",$u);return e._reactRootContainer=a,e[pr]=a.current,Wi(8===e.nodeType?e.parentNode:e),cu(),a}for(;r=e.lastChild;)e.removeChild(r);if("function"===typeof i){var s=i;i=function(){var e=Gu(l);s.call(e)}}var l=Fu(e,0,!1,null,0,!1,0,"",$u);return e._reactRootContainer=l,e[pr]=l.current,Wi(8===e.nodeType?e.parentNode:e),cu((function(){Hu(t,l,n,i)})),l}(n,t,e,r,i);return Gu(a)}Ju.prototype.render=qu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Hu(e,t,null,null)},Ju.prototype.unmount=qu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu((function(){Hu(null,e,null,null)})),t[pr]=null}},Ju.prototype.unstable_scheduleHydration=function(e){if(e){var t=xt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&Dt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ht(t.pendingLanes);0!==n&&(yt(t,1|n),iu(t,Ke()),0===(6&Pl)&&(Wl=Ke()+500,Wr()))}break;case 13:cu((function(){var t=Io(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}})),Vu(e,1)}},kt=function(e){if(13===e.tag){var t=Io(e,134217728);if(null!==t)nu(t,e,134217728,eu());Vu(e,134217728)}},At=function(e){if(13===e.tag){var t=tu(e),n=Io(e,t);if(null!==n)nu(n,e,t,eu());Vu(e,t)}},xt=function(){return _t},Ct=function(e,t){var n=_t;try{return _t=e,t()}finally{_t=n}},ke=function(e,t,n){switch(t){case"input":if(X(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 i=n[t];if(i!==e&&i.form===e.form){var r=wr(i);if(!r)throw Error(o(90));V(i),X(i,r)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Pe=uu,Te=cu;var tc={usingClientEntryPoint:!1,Events:[_r,br,wr,Ee,Se,uu]},nc={findFiberByHostInstance:yr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ic={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ge(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{rt=rc.inject(ic),ot=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ku(t))throw Error(o(200));return Zu(e,t,null,n)},t.createRoot=function(e,t){if(!Ku(e))throw Error(o(299));var n=!1,i="",r=Qu;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onRecoverableError&&(r=t.onRecoverableError)),t=Fu(e,1,!1,null,0,n,0,i,r),e[pr]=t.current,Wi(8===e.nodeType?e.parentNode:e),new qu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=Ge(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Xu(t))throw Error(o(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Ku(e))throw Error(o(405));var i=null!=n&&n.hydratedSources||null,r=!1,a="",s=Qu;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Uu(t,null,e,1,null!=n?n:null,r,0,a,s),e[pr]=t.current,Wi(e),i)for(e=0;e<i.length;e++)r=(r=(n=i[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new Ju(t)},t.render=function(e,t,n){if(!Xu(t))throw Error(o(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xu(e))throw Error(o(40));return!!e._reactRootContainer&&(cu((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[pr]=null}))})),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Xu(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return ec(e,t,n,!1,i)},t.version="18.2.0-next-9e3b772b8-20220608"},1250:function(e,t,n){"use strict";var i=n(4164);t.createRoot=i.createRoot,t.hydrateRoot=i.hydrateRoot},4164: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(4463)},6374:function(e,t,n){"use strict";var i=n(2791),r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var i,o={},u=null,c=null;for(i in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,i)&&!l.hasOwnProperty(i)&&(o[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===o[i]&&(o[i]=t[i]);return{$$typeof:r,type:e,key:u,ref:c,props:o,_owner:s.current}}t.jsx=u,t.jsxs=u},9117:function(e,t){"use strict";var n=Symbol.for("react.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),d=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,v={};function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||p}function y(){}function _(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var b=_.prototype=new y;b.constructor=_,m(b,g.prototype),b.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,A={current:null},x={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,i){var r,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)k.call(t,r)&&!x.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=i;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:A.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var S=/\/+/g;function P(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,r,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case i:l=!0}}if(l)return a=a(l=e),e=""===o?"."+P(l,0):o,w(a)?(r="",null!=e&&(r=e.replace(S,"$&/")+"/"),T(a,t,r,"",(function(e){return e}))):null!=a&&(E(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,r+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(S,"$&/")+"/")+e)),t.push(a)),1;if(l=0,o=""===o?".":o+":",w(e))for(var u=0;u<e.length;u++){var c=o+P(s=e[u],u);l+=T(s,t,r,c,a)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=T(s=s.value,t,r,c=o+P(s,u++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function I(e,t,n){if(null==e)return e;var i=[],r=0;return T(e,i,"","",(function(e){return t.call(n,e,r++)})),i}function L(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O={current:null},M={transition:null},N={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:M,ReactCurrentOwner:A};t.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=r,t.Profiler=a,t.PureComponent=_,t.StrictMode=o,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.cloneElement=function(e,t,i){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=A.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)k.call(t,u)&&!x.hasOwnProperty(u)&&(r[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)r.children=i;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:n,type:e.type,key:o,ref:a,props:r,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.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=E,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:L}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return O.current.useCallback(e,t)},t.useContext=function(e){return O.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return O.current.useDeferredValue(e)},t.useEffect=function(e,t){return O.current.useEffect(e,t)},t.useId=function(){return O.current.useId()},t.useImperativeHandle=function(e,t,n){return O.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return O.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return O.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return O.current.useMemo(e,t)},t.useReducer=function(e,t,n){return O.current.useReducer(e,t,n)},t.useRef=function(e){return O.current.useRef(e)},t.useState=function(e){return O.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return O.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return O.current.useTransition()},t.version="18.2.0"},2791:function(e,t,n){"use strict";e.exports=n(9117)},184:function(e,t,n){"use strict";e.exports=n(6374)},6813:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,r=e[i];if(!(0<o(r,t)))break e;e[i]=t,e[n]=r,n=i}}function i(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,r=e.length,a=r>>>1;i<a;){var s=2*(i+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<r&&0>o(c,l)?(e[i]=c,e[u]=n,i=u):(e[i]=l,e[s]=n,i=s);else{if(!(u<r&&0>o(c,n)))break e;e[i]=c,e[u]=n,i=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],h=1,f=null,d=3,p=!1,m=!1,v=!1,g="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,_="undefined"!==typeof setImmediate?setImmediate:null;function b(e){for(var t=i(c);null!==t;){if(null===t.callback)r(c);else{if(!(t.startTime<=e))break;r(c),t.sortIndex=t.expirationTime,n(u,t)}t=i(c)}}function w(e){if(v=!1,b(e),!m)if(null!==i(u))m=!0,M(k);else{var t=i(c);null!==t&&N(w,t.startTime-e)}}function k(e,n){m=!1,v&&(v=!1,y(E),E=-1),p=!0;var o=d;try{for(b(n),f=i(u);null!==f&&(!(f.expirationTime>n)||e&&!T());){var a=f.callback;if("function"===typeof a){f.callback=null,d=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?f.callback=s:f===i(u)&&r(u),b(n)}else r(u);f=i(u)}if(null!==f)var l=!0;else{var h=i(c);null!==h&&N(w,h.startTime-n),l=!1}return l}finally{f=null,d=o,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var A,x=!1,C=null,E=-1,S=5,P=-1;function T(){return!(t.unstable_now()-P<S)}function I(){if(null!==C){var e=t.unstable_now();P=e;var n=!0;try{n=C(!0,e)}finally{n?A():(x=!1,C=null)}}else x=!1}if("function"===typeof _)A=function(){_(I)};else if("undefined"!==typeof MessageChannel){var L=new MessageChannel,O=L.port2;L.port1.onmessage=I,A=function(){O.postMessage(null)}}else A=function(){g(I,0)};function M(e){C=e,x||(x=!0,A())}function N(e,n){E=g((function(){e(t.unstable_now())}),n)}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(){m||p||(m=!0,M(k))},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"):S=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return d},t.unstable_getFirstCallbackNode=function(){return i(u)},t.unstable_next=function(e){switch(d){case 1:case 2:case 3:var t=3;break;default:t=d}var n=d;d=t;try{return e()}finally{d=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=d;d=e;try{return t()}finally{d=n}},t.unstable_scheduleCallback=function(e,r,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:h++,callback:r,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(c,e),null===i(u)&&e===i(c)&&(v?(y(E),E=-1):v=!0,N(w,o-a))):(e.sortIndex=s,n(u,e),m||p||(m=!0,M(k))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=d;return function(){var n=d;d=t;try{return e.apply(this,arguments)}finally{d=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},5498:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAYAAAAWy4frAAAACXBIWXMAAA7EAAAOxAGVKw4bAAADnWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSfvu78nIGlkPSdXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQnPz4KPHg6eG1wbWV0YSB4bWxuczp4PSdhZG9iZTpuczptZXRhLyc+CjxyZGY6UkRGIHhtbG5zOnJkZj0naHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyc+CgogPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9JycKICB4bWxuczpBdHRyaWI9J2h0dHA6Ly9ucy5hdHRyaWJ1dGlvbi5jb20vYWRzLzEuMC8nPgogIDxBdHRyaWI6QWRzPgogICA8cmRmOlNlcT4KICAgIDxyZGY6bGkgcmRmOnBhcnNlVHlwZT0nUmVzb3VyY2UnPgogICAgIDxBdHRyaWI6Q3JlYXRlZD4yMDIyLTA1LTEwPC9BdHRyaWI6Q3JlYXRlZD4KICAgICA8QXR0cmliOkV4dElkPmQyNmExMmI4LTUxY2QtNDE3MC1iMTBkLTk4Y2ZkOWQ2YjYyODwvQXR0cmliOkV4dElkPgogICAgIDxBdHRyaWI6RmJJZD41MjUyNjU5MTQxNzk1ODA8L0F0dHJpYjpGYklkPgogICAgIDxBdHRyaWI6VG91Y2hUeXBlPjI8L0F0dHJpYjpUb3VjaFR5cGU+CiAgICA8L3JkZjpsaT4KICAgPC9yZGY6U2VxPgogIDwvQXR0cmliOkFkcz4KIDwvcmRmOkRlc2NyaXB0aW9uPgoKIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PScnCiAgeG1sbnM6cGRmPSdodHRwOi8vbnMuYWRvYmUuY29tL3BkZi8xLjMvJz4KICA8cGRmOkF1dGhvcj5XZW5keSBIb3dhcnRoPC9wZGY6QXV0aG9yPgogPC9yZGY6RGVzY3JpcHRpb24+CgogPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9JycKICB4bWxuczp4bXA9J2h0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8nPgogIDx4bXA6Q3JlYXRvclRvb2w+Q2FudmE8L3htcDpDcmVhdG9yVG9vbD4KIDwvcmRmOkRlc2NyaXB0aW9uPgo8L3JkZjpSREY+CjwveDp4bXBtZXRhPgo8P3hwYWNrZXQgZW5kPSdyJz8+djRhqQAAD2RJREFUeJzFm3uwXVV9xz/ftfY5SW5eFUhrkTIKiLTY1kc70g6W6VSHIjfQdmTof7TQ8Q87zlAlQaZ22hmplpsUZVTUUUzUgk1geOVBUSlTQAQBBVEpWBRhgIRASMhNbnLPXuvXP9Za+5z7OOc+gd/MvefM3nut/fuu9Xv/1hFzpZHtcPQRuPATsHFEGI5QB3yVHxA804HjquXgWgiPA6IFsHFWLj3E6BEwS4//4iCcsNwjRZYfMg4vhdrD+rPnxJZm/eSGWyB6MEBRODnMAgjqcUfVfjdwGvBO4BTgJKRlGIYAQ8hGMZ4AHkP8CONelvpHORxAAswTXWjYcgHWrV0kIF+4Ew4eACI4B9F5Ygx4AXYc6G8wzgN+rztrmda6HwJMPW80MALwAOhboK+juJ+6Ah88VStwaBzawPqZwQwGMrIjAUicCJMQEQurkFsH/D3iDT3T1IlHEyAkdUEAMsOwNKkcwufnAT0DXEmn/Tla4wHwaccLmwEuPXceQDZs63JgOIwIgON8jBHgeCQwOmAOc
2M2ckjXgJ1BWDJMyKICIFMFamAB7GLgY8T+8EGCNb5jAVXDJB+YA5IrtXbbAAwHTMohfRFyQh3Uw8wiHydB0jM9ARhpnCBTBAlIr472cpfGfGBNIDhGbhZ1Gb9yUKxu2kyY3MDxGwOwYsHuAC0A1ZgGzVhYdQ2jOIIDuOBkyl0HUaUf5BIfdTcRRhywmqbBG7WYGYrHnngWwX0fcg3gXYjztgjzKU2oeAKYHZJgZUoUZSB3gL6hW/hfLV7okfvldI9tnADKygyw2wixSMwTcDnobZh1M7awXliddOIgJcKQMRphVoA7o/YyObkEOLjzZMEHHw6cngukC+cx2sH3FTBpUUHEd6B1g46AWysqqRQUwCU4PGKwCOsAHieFTbHocfPSc+Dy044RhXSDjBhoC8LgICpcgzkV0MFpJlPJuzURWrJPZhL/eezOBoWdnpAhchnEWpsAzazymbFl7gWzcCdEBlUtOSqcA/4qJrBONRgxiP1sby99rpIAU81/d+IVZgeoVsxwdoC8QtRxTICLcvklAQoCWZdkHYATURlYjubQ6/UAUJ2fJhJrFZC5VYVZh5vNfKxkJCTXPKY+dHlD3vk/6wluQXZZvOrQKNtwKQIr0RpfByrFsqzkDY23y4Phmi6fHUGQZTDWyCgRme4H7QXeD7U7v5XjM/gT4Q2BFNhohM2ldMz4ZjOV/5kEgPgz2eWAXwQnfsQRkZAcwTqPI5i7OxjoCVWNm+4FIprIGqzBeBj6JbDPOvUzoGWqClqATfgP0EYz1YK3slyrAkmOdDKaIlhxYjekNyP4O0+WAw1xI67ThNrC6REMnA48itTOj6ZkpIEpEa0qyTwW2E3ERsAsz8F6E6GlcmKDtAuOhWMbfRnwL7Pcx6iyKg3e/OE7TExyp3o6LHaoUurn8Hpff9UFEO03cZWEKFRDkncBuZmk8G9OuBEoiREPtmmV/FBABWeBIXrwE/DECZ2B6JIOoM4h++kKjh9jJLOm8j1YARZ8AxAhDMdACTH/WsJoi3elWx9JOEIAK4wGO/9u/ZAySHFPjs6ledyZ85JgUG61bm5j58A8MWQ2qcOzH+ABmL2QwMTHbd/kAckTMn/ZedTjEIQ+1O4aUFKXr6mcai/IVH6SLeXoTyFUpBgN8hPXDU4euH4YvnVbykhrRwvEc8M/dyWV9zXJyLy6L/Ht427Hw4oGQGDbLVieeApZyi0GRbArBAyaB7cS4F5OjckkcXRsu7p83cMnZGYiHaB2igblvYDyF8Fmx+6yhQXdnTuV/n13BUStAaVXLjZPyZ+irG81s2eTCjchA5njk2ZRBrjtz0OBElw5D6IDz4PC4eAjYlpOwkBOzqZR8ULGUK3HuWJwDpTg/aYI4Lit4HOi/0zMeMY64K48NvP1NcMk04tQXzDlAp8QBgN2b7zj6m5metJk2xrF5vKoe3UpppyyLT9+Jkq03RjGez+AMxT4DBpC5whrAL0i+q8dk90US8+DV+aKm5iOzp5oYDYtp7llWOyaQ2inSNoHpJdB4d8kHUgG6slxwWcZBFvNu0N9iQd4NEMtouSV4Bw7xb7fNHUgch5LVSMsoUjEzFaSHu0BKXcPYnRl0A5W9K6NDRN5SZJRqdM44Us3FslOOJ+WQJQ6UrPRyl9G/mD+tV7F+2YCbHQse9J68oo6X3wEj22Ya16WR7aS8p0n3/zgvUBgsWc1KjoM9na2FuSxXgPsZMNbjWfuH1qXSJvvrVPZSYPXjaZpP75wZxMbtaXbnIFigjsuB8zKDPvmoaTEYObBH7IbwXK67Wco1LELsPA88kcWvf7kiTeeAiPFexHAK9a0Cg6pOjPajDdsgZD6TZwfvPgS8Gagh17ymo6SfMQedP8T5wzinHKDkupHzEXR/djah76pAbyoKcCXGCsxqTKk4rBqu2DF13Mg2aLWLWLdI+fhbwf6lG34MKC2ViDzhvJ8IRDyqqOh4qOo80L4HfIhUCrI+EyZJTuFEjXgrcD3rLzyLKzYF5FrU1CgaG7eD9zB0Auz7eRraGXdIHlMHWIO4BViFWUjX+yRYiR9StC2Au/JnJArxqZ1QxRw+681gjyFbOrB6aM2kOR+xCnEPxvmI55JbcyJG36ygMHwIhGxhjXcDW0AnQo6GB2ajOSWWHGZPYzoFbKwYC8fSkB47TtCKT4E9kJmMfbdYUrIRIlc5atDpoEcwfRzsuLz/dc9fieF+B+OzwPdRDwhZ/2AxIRHk+rP4Dk5jOOdQgHVn5y3ccCtJvgnAPwKX5/TV9wVTdiaBEVAjSs6+H7gL6SeYHc5FhNXAu8BORypV+FR1F5YN4aACB7lo4YHzga2Ap4qBj56biw/dHAPgNuCTYFUq1A3Y7iajU7JapggWkVYDazFb2yNaZRAYaZGETyGKDQCRx6Qd9sBeot2Zy0ORlCAW5+cBIuMRDtY/An7ciNfMtV1ls2hgWZGt1LU6mHXSpzqYQtrFstO52DDTO1JtIGbAd+DcHuRSDBJCD5B1w0kl2t6zvGXAtmy0+mdrU+BITbEifa+AFlIrfZL6icraqWapB5NZcYLl2VuzN3fsfbxp/vSEI8nVZ0dYYo2q5+brQyoOGo/YC3Z7Dosiq05oHusCkUvKFBy8OPwD4KF8J/asxmtP1uQfYOwEtweUgt3WkuaxLpD150CIUEXPmh0AWxsjIOtf1nw1qSvWhc8tSWhMqEr5/6QHEhVLkEzdTZiOIKokda/DpnTrXA7xS7zuSFUGheJSCk0C4pIH9SYUfw52R96V8LogSX4qZtW9gcAYkRTPxXrCoxOBrB+GsA+CXGozsKVxVHOxYIuEIn8pBmdLqVIAU1rVU5Oo6mho9s3tAHuB1POeIYRYZEoGJvOhe4l6KOVApbs7kaZphtZ5GnMovgTakZx31p3XhpLvUPH6tjVz6vEh+b1JNBXI+rUQRumpN/1HBuCyCXxt4KS3VMB+4HoUU4Hkop9O+/j0+bkfAiPy5H448aj/JvmUlBW+mo3QQqkyGvKXm4DnQI4o46u/O+2Q6YFoCbgaTvw1z5MvA3y9ySmSwr96u1JOQzQFQ77W3HtlFD52zrTDpgey7kxgCJrTA9oK2gtUpDbZq0eykpcLeIB66G5eeRNAZNVQ32EDSj9HwFxWetsN3JJvlNrwqwGntN9yrU2b8WOw8lmPF7RafQf2B7LuHGg3aSlgm3IZxg86E7IgSu+xnPbuwex6Sq33QICPntV36OBiXF2DWaS9GvySu4H7oNj3xfb0VnQjh0hsQdoD8rjaWDG4mjoDENJ2ju/3hCMgbcoWxRbd05d1kaps5jc3qYUifGxwy2IwkMuG4ZUxgBTvhHgD2K4USC6ypy+9mfT9u4iHco0rEvvrRqGZ67xDbZAzJI/TXuA/c/YYe45sLIxSalyqMmBckx2yw788q5bFzEC64UBh+BrKYYIJlxdAooTrHvEEMd6ULX8gHD2rKWbX6DEDlw9Uop8AN+c7YboAbk5kVkxuzLvwFZw/grynIjn4WdAcuPgtGLm61L7eD3w7i1cuI8xbYcrJOQe2l8ipiF2AeKZjfO6vZjXJ7FtvG68GCOzdB6cPfwf4IU38tQAQQM9ubEXaBfJ4M46fWckLzR5IENTL4ajVnnu2Ado8oWQ0X1O
2cigv5iDfX5DagsWb2p7BhLkAuHYY13yC1mRyYXZdEIJ/smfOeWGlYljT622APgglzkT3VjDP00ty6unvPBx+yddFLGNfmVDhmhzb7XUkHLkqrG+CLqZwqx9MeXpkTZ/MwOf9+MwRfOlYnI36MtGTgsahpyUj9QnnMHubB/3snpx4Py5YAAdYPOAYyDc29zx49UEWEw/EEcEO+E6DxB4Op5DQllYWr+YOTYFnbo1HQ7JW80PyszeU3QruVdgWdBvb9bn4NA1sRhcrZR+NXRDsVcRABoQ2XzeI8yySa38mHVgXmIt6Et/tA3yVBKKeG+u9KsXBNiGNfwXEQ4XFD4I/Mi6X5AXFLYGgo1b9Sw+sL2RRPboZMQ41RqIB9GJuzMEbCGal0Ox+W5jVq3ZkwdgBEII5DeOlm4BFSnt319lMpZWTFAcI3kZ5F8rSjodvnxQ7MFwiAeTjowbd9Lupd3S1608dBlkuqwGqMLzU5h2POv6vqpfkDufRseONhKGcMnV0L/CoXvae267o/DChR4A04/QzJES1yZCEHlRYCBGBfG+JSMDxRBzG+3JOrTGxFpHakZb8BcFVTBBxfPr9jUj20MCAfH4Zvvg9Knm32NeBFysHnrqr07oaAHTh3H84JC5GlYwtiAxYKBOCCnbAqppWW243YlHU6nxnpOdCfmv0AVxEjxOAI+fc2C6TFSbo33wgvtHpOT/BTxNCkPnwJR+6h8u9FwHidcrXpjtbOkRa+IwB7WjCaMmxkT4Fd1z2ck/P6rp+8kjpAJ3iUf9+4CLQ4QNathfNeSpqSBOnzFKdX2nnplPbDrB++iV0rSYfzV8zbAU6mxQECsPMYqFr59Kc9grQ1pxyhKYGizzCyHd54wLPmKLrNqIXT4gEhwJjylA6MjanDZErJlx5FK66FpSAf2PXsghzgZFo8IJeeC9U4BCIeh+dBsFtAPtd0P4sdCHDYc8hDe/mivRoWdUeAdgvq34T0QwtAV+Ww5Ek6uo6gJGpLOnBJ/4L0fGhxgfzDn8OSXWAWqCQcd2J8D/Rl2hymwnOUh9Zsj/fOnhZP2wqFGryDujm0cBFod6P4r3T6dp0WQv8PvhNbLgo0OE8AAAAASUVORK5CYII="},4347:function(e,t,n){"use strict";e.exports=n.p+"static/media/blue-shield.7a4f0d8f6e72eb9ea7a9.png"},7712:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAYAAAAWy4frAAAACXBIWXMAAA7EAAAOxAGVKw4bAAADnWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSfvu78nIGlkPSdXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQnPz4KPHg6eG1wbWV0YSB4bWxuczp4PSdhZG9iZTpuczptZXRhLyc+CjxyZGY6UkRGIHhtbG5zOnJkZj0naHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyc+CgogPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9JycKICB4bWxuczpBdHRyaWI9J2h0dHA6Ly9ucy5hdHRyaWJ1dGlvbi5jb20vYWRzLzEuMC8nPgogIDxBdHRyaWI6QWRzPgogICA8cmRmOlNlcT4KICAgIDxyZGY6bGkgcmRmOnBhcnNlVHlwZT0nUmVzb3VyY2UnPgogICAgIDxBdHRyaWI6Q3JlYXRlZD4yMDIyLTA1LTEwPC9BdHRyaWI6Q3JlYXRlZD4KICAgICA8QXR0cmliOkV4dElkPjdjZWYyYjA1LTBiMGQtNGIwMi05NTIxLTQxMjg2OGNlMDY1ZTwvQXR0cmliOkV4dElkPgogICAgIDxBdHRyaWI6RmJJZD41MjUyNjU5MTQxNzk1ODA8L0F0dHJpYjpGYklkPgogICAgIDxBdHRyaWI6VG91Y2hUeXBlPjI8L0F0dHJpYjpUb3VjaFR5cGU+CiAgICA8L3JkZjpsaT4KICAgPC9yZGY6U2VxPgogIDwvQXR0cmliOkFkcz4KIDwvcmRmOkRlc2NyaXB0aW9uPgoKIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PScnCiAgeG1sbnM6cGRmPSdodHRwOi8vbnMuYWRvYmUuY29tL3BkZi8xLjMvJz4KICA8cGRmOkF1dGhvcj5XZW5keSBIb3dhcnRoPC9wZGY6QXV0aG9yPgogPC9yZGY6RGVzY3JpcHRpb24+CgogPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9JycKICB4bWxuczp4bXA9J2h0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8nPgogIDx4bXA6Q3JlYXRvclRvb2w+Q2FudmE8L3htcDpDcmVhdG9yVG9vbD4KIDwvcmRmOkRlc2NyaXB0aW9uPgo8L3JkZjpSREY+CjwveDp4bXBtZXRhPgo8P3hwYWNrZXQgZW5kPSdyJz8+XX2gWgAAEENJREFUeJy9m2uMXdV1x3//vc+dh21sjCFv8KMQIEpiNY8mbZK+SNISmyiV2qZVP6aJ2qjth1ZqK6UfKrUfWinKo0qTVFEebQIND5UAttMQSCsghBQIkKdqasY2BDB+xAbbM3PvOfvfD3ufO3c8c2fu2GOWZc34nLv3Xf+911p7rf9eFiuUrexkjA4RcZquAoRZ3HQQAQgh0KTUMZpMKATqmACoEqTazJ4e00RjG2NmgQlCTDiZI75k7Rs4cuoA+9m9Ir00OoD3ABVgwBKEBpoInCZVE4Q3Cn4deD3wOtBlCLAFGAnsBpgCfiR4xPibU9Q/2MYYCSMUG5omK5b/7GfX6gHZxk6MET3MWAQaAQ28PMAHgT8AXg0gtVM6Y27/bc/9Xv5taIAfAl80+qLg+aO8wEWsi1KnefmG9/DM8VuZYs+5AdnKjvmfVQiyG8Ma4COgD4MvnFOe2jZAAKnsSBmt9vdE2SHlLS6P/TTw0Sl2fXwLO5BCTG6agBCBWWp+ytdXDmQrO5BEq1iiSSGb1ntBHxdsKytc2w5FUyTJtiUtPnf70m4hJoSFqvLkQcOfifDA5NgE093TAllAomH/kN2Jiz3cxg5QaLFG49TlZKyY+Cehj0tstNTDFiJmpTOIvPhDQAy+lAQCEYSC7SSpkXQp8IfgGVx/uzEIAmAh1nMFJ3h8wbThzAdbeS+mmIEp/qCNE2y4H/gTpMamwe5IkoyXVX4opmxgZZOC7cp2nafSP9TJN797+y+QSKnVNS5UOc+1EEjrFwrgZHyhCP8taTvQdQEAuDjwigEsJtn3+6aZJBqsjvHX1q+75LeOnzxEIOTvBabOiGbzlBhwbkFyIlWBzn2S3mK7C4y11n02OzAaoDkXklTb7gBfjcG/P5MCFe6DGQzNfR+5lB1ctPYqpntHWLPmAlKTwOEWwTst9V4MEEDZEVowQVIt2J6sTRV8PUghYUcF1rKd5/nxfCCXcBW95nnAsa57tv03wIeVnbpqI9goIBYGpvZMbJVcOuxLaGCOICkBbzUcAB4RimBHuhwvji/Ip/YEHWZoApAM2wUPS4olmoQlQyoUj+nrbyC18alYQrJzFpPPbcuw5JwDYJqiy7EEr1M+czTNQz7EIaDsyAaupCYRQ5V91/6CpCtLBIlLgcjv2hyknAlSLOBbxQPkZ8qhLhmRP5ONnkV2qYR1A0HZvNcJ1gbCbkkx8TJfzJUcZ28ePM4v8go2BfKp+2vAtyQl20ueCwMrhkQNKie1jwHfBe4FDhXTugz4ZeDNSOuEsdVIjkZmiNkWU+ybte1Z8Hbgf0EhQTrALrSZawmIEDoCnFJzq6T32a4RFdaiNj0fhGqbCvwz4O+MvtSpws/qOmcjZX2pxirqbveloD8F/lKiY1MD1VKBxLaFZNGT3TF8TPAXiGjTdOmgy7iGwIRKind1QI9KGiuKZg0WB0HBUtuugD0JfyASnk2YThVV1ykOJFtU452mnu1mD4GrgX+X2G5TS648ZNEGvrYcnDxj/BrguEAVy
2QEiIsRAIKDrQGNADf08a4EsAuK2amxih+BZciKoum4sevU6nmqMG5OaenY2I5Ir8E9M8yu2H5OoCpiBSLcARbuoDfjlgmsK4iBMiHSYWLOurjpjAO8q9qjss4tvc/HPpij94BS73jfbPQ05LNZRcsI8wX/yAx5lP7vZz25MYN+7jzpQzIlwwvg9tp+TVNkkDUlkW2XKZwDeKeVUtUuFtnJda1YbhR+X2GQrMQRIwdLfFfDbQPcDlaHOAwJT3L7obm7lvaCUtTUdoGf0R4LPWG5wzlYX9csc5FOJpI+Y9CZQyok+ljDCVwObSoQZBqIor4a8K3tCCPcHKRjXIALdoSAAprgd2a2N9GpMQ/Nvxvvbg04aYtL9WgeAK4w2kf1Ngbmt3FZ+NkO1KFjyyQvAf6Rkkh0OE4HEPu5cZjg8wW5qi4ipFGKleBq4o/3+fDIthmTe84mAXqkMYB6QV5afaSklylRRogvc0375S/GKCIMD3MFFTGC7deT7i8mGuUg3VEz2z5e0DwaT+4lBfYfOUOoPm5MJninf6MRy371QjtNrlQL8BHkRFy32zlSj/Fzf6hskMfi3deQRpNbchCOzHYPyAjODSh0FuiMObcf0Fz9kdgcweVFLyTRsBpGLQqFJwXhAgLSFa1eGAljLWA4zCBMmS/hmBHKn/cBMH0i2UGN8qCgYlsBRaCFhvAbY6sJzBcZXDEQ5xwzKc1wO7oASy5tpcQkfKbvg0BbnxlPzP7Sk1GRbfks7RhxlMztHBrGZHVQD7iD4pfLrclGzlS5wsFB5Dsw524+Bacq2DUsVyOG8daPfq6pAFdXUrCcCW/jNZTXYwg7G1KGbF7AB1oJ+p/hoXCrbntOXQ0ZPlwcOEFwT6BKfAe1txwxzeEllnBLwjrpOO5vGjiWFj1RcOp/Ymyfb2IkUW4q0E7IBfAjYAq6ZV1ku+O5c82T5XoxxpqoqgQkJMybCpEjg7xZna9paZJFVGSThAD7W0KxLpNoldE4G2Mp1C8ZuYQdPsJ+oSHLqGHoJXwH8bSmhgubSqsW+u+WQAb7rJpHqJnaZJXQIJFspv/x2oWgHTG7hqjgz07HkVlcE4s2ZAXRj6HRTrhk3cx2XsZM3h5exlR0YsZXNoUl1x7iX8CWC2yStL+VsGJ794lIiVznB0T0lSCXToMu5jqYNurAF+InkCeeSevHqsCBRLiBq2ZXhPuD9wNMGqhiVUhPb7FvCk53YnOr2CAQSfqPgRkk/V0rqahleYKAe8UFIV4GmQTQ0hJmMypdvXsPEmPaDHyy40tBJMz3YJl2VpVrS20GPAX8NflVZ2Xrgb5MSCL3G+BOC77QgQFVh+4ZgaJPVvn98MyhOB4WQgIN8vWVRrgWqSC5aPgL8fSmahkaQdokKdyNDu6oAJ4B7QD+UmAHLZgPwBuDtmYiAlh2ZK2aHIMkokZxsRcP7hW8CYqBp9rVAtvAbQKelgt4Q4KE+B8UytGhG03JRqXBQ1TwN8vvBQbWdye+8c0uAaGfJXFMolNBVgsOAAslPsCfHPhERpIaGaWYfAb5fpkhD43ArOcbkKAbBdnSW2lZPUk9yz3bPdpNfKZZSIBc+yxF2nhd2766CDlch88C9smYBYIo9GNMhxnWMG7ijENTW8INxAZ5Mr/elkugAHVBHUqfwXUXxpXehFeft6DM2wO0pmSal8Coe58lSxA2kI5kOL1rfUVK3Kmcyo4E5H1KqRZPPqGPG3yiv0tP9WnAekIAhvcBpptj1P8DD7QBGvGs8H1LO5das9gSFwyGEAHZDp/+5ftZ2nL2sZxuTTMSNXGngQqF3SUp9Vx3BFFZVWg4om5WAjwB7bYdxau8buIabl+nW9EiklEiYdKvxLFDlkPHiW1cJNC56TtU0d2fd3PTOKCTnAakYx+BOrNQJnceBu8urRsMIgfMohY9NxXNvqYjTkRADkW4b4YvMA3KQPVwYNlI3TahTA3DjHB+bmbkXC0R7N9EGHOBG6Kfs/WjVyoIi6ng6UhIxk0i7gefICeJQvul8iJh3dtw/PhYeXrd2DENqFlnPBUACnVxxKYSoeBT6HE/yi+TrA2dHG/lvmu0mTp7qxkBkqk+BDep9hkxxBw3rB/mmr/T5pvzsvG/LwM5XwAnjm9vmgot526JjFq3PxSlESjUPM7H1Td8inynlIuj8O33Z+bZ2vzVITwcpgHyY+xYdsyiQimm6jNHhjXF26iGAfy274vPt9O3shajG8AU7820buHgor7wokH3cyUtCF+OUcr1yE3CM0ud0Pp0+O7nbbOLBtesm7918+SsxTs9zdOi4odTPsRSA4KAQgsIh4LbyKrm0XawmAGhLwDknN3xp+uQ0B//vqXgK02V26NihQPazizGqvtMbvlg6NiKj06ork1zqtwT1YfDNKVOg6bVaz1N8Y+jQJcm4HjWGtGH9OJMT1b3gB/K9yNyN76qJcxk5cJLfGNBhoRiJ3uvnlxy+JJCaxDRdTjw/G2dm6oFdoc3uV828XNqM+qUD/lJL/Cfgp8t00S0J5CC7eZU2YnKfkdEtoPbCc9nicSVSEuv2JL+rE6qHq9BRwmmZKxtgBJ73Ob9AAEcRIz4G/ioDJrAaobiUxoMde5+vU0Od6nAB4wtams4KyJNlS+d09ucNqTWB1QjFJa8qVaD2zuJbe5gEzcklItWgjMK8kxCJlIJiCIo/BL5WXjXnnH/NhdxUOOrPjaPZDoqRauTZRwKynzt4Cb9KclJyAvjsauVfnh9yjyX8lUyFklQdYmrEe8mRgAAc5R7AzXMc5UP/+OffBL7HOeZfXhhyb4ro2SBFkJv64pHnGuXiEYD1XMEME2xkLH7vru8YGBdci5QyazS8i2iYqFxCSgqFL/1j4GlAa4h+fIn7+jNl5B05wG4+0LmXVAobk24wPCuoCtG2EgxtM+ZA84Hu7AQ/1AlWQ0jTI19crRAIwJd7byUhRxQD4ShwfRuKvUJfycWznHdTGD7TS4FeCuHd3M3sCoPIim37FbyPMeq2Se3Vgu9LGh+4+Blpzgy53+L36BSHfv5iNrGOioB4YpEqcClZ0Y4AdKipcr9ikLQXuKWkFk323eV3pb0LbM8/w6e38jIuoBOnSSs0qrMEcoBdVLxzMCv+VDGvyIi+UjjfNuQeMLqh9No1GzXGgRXuxlkBAZjlW4BTFaOqEB4A7qI0hZWIOnRXSjLictcB8LmATwUcJxGnXJ+NSmcHJDDDMX5C0zShSQngn/v8l5epINtOS1SBj5vUZrnpKsZ48ixaQbJOZyH7uJOLeT1AUzPDDNNfAx4jn0tpaJvSwgPwywH9NBCiSX50xLxqMTkrIACJLrNMUzEZJ1iD4dNzBMXitcoZNUcN/mxOR3Lisxhfdd6B7GcPF+kVmNQkGoyvJ7d8V7DI7WzhRpijeW6JCj+OCqGH0rD/TjGqjJyiLCaTXMok4yRSFJoFJoFrJDUD14+5JURQav1QyuQPGp4yaJbjfoq7zgnIOS3DAXZzPZswFK7YXwCOABWlgxpKcthvdUXA7hDiAyEEJZzWsuGcQMA5AgH4bZ5lEjv3DusQc2xLnzbKvRJYIpSL5k+m1JBSCoFZzrzrOBtZlaL7tezk1PzuiR9JWtOmLfla1Y3zoXmfKt6BjHsiYPadZcgdlHPeEYBTmB5dixCF9gM3lPDU5BxksBnGH3Nt3CP2yI3xqyGrAmSK3Ty18XcxjUtH4adyu4raa6W26fLRQ+y6teFxIDUdxIFV2A04x6g1KJfP1CThqBik8Cz4akmvBZrCjgTDX13AlY8FNsUpnvFFrOdn7F127lFkVXYE4DgVE4yR7EKp8VG73/5RAT84yYnrT3GShrp5HZevOFVfSlYNyBFup+tETZ3ybVd4CLhNEEs68on1bGjWsjaOUXOcE6v11cAqAgFomKXDQRonNbml+ZMl1d/Xpbmhh2lw09DhySUI6bORVQVygG8AWzA0IUSFEP5L8G3gX8aJMx0ULxw/Te883BNVy39kZdIjAB2UeuWJPyB8KKvuZrpew5Mr/E/3o8j/A2UDUPI38OqbAAAAAElFTkSuQmCC"},8888:function(e,t,n){"use strict";e.exports=n.p+"static/media/geo-teacher-headshot-transparent.400ece8ef86905a54ec6.png"},1306:function(e,t,n){"use strict";e.exports=n.p+"static/media/geo-teacher-transparent.3220172e29e925f4d3ed.png"},9228:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAYAAAAWy4frAAAACXBIWXMAAA7EAAAOxAGVKw4bAAADnWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSfvu78nIGlkPSdXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQnPz4KPHg6eG1wbWV0YSB4bWxuczp4PSdhZG9iZTpuczptZXRhLyc+CjxyZGY6UkRGIHhtbG5zOnJkZj0naHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyc+CgogPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9JycKICB4bWxuczpBdHRyaWI9J2h0dHA6Ly9ucy5hdHRyaWJ1dGlvbi5jb20vYWRzLzEuMC8nPgogIDxBdHRyaWI6QWRzPgogICA8cmRmOlNlcT4KICAgIDxyZGY6bGkgcmRmOnBhcnNlVHlwZT0nUmVzb3VyY2UnPgogICAgIDxBdHRyaWI6Q3JlYXRlZD4yMDIyLTA1LTEwPC9BdHRyaWI6Q3JlYXRlZD4KICAgICA8QXR0cmliOkV4dElkPmNkYWI5ZjUyLTQyOTgtNGJiOS1iNDkwLTkyOTQ2MDk5NzM1MjwvQXR0cmliOkV4dElkPgogICAgIDxBdHRyaWI6RmJJZD41MjUyNjU5MTQxNzk1ODA8L0F0dHJpYjpGYklkPgogICAgIDxBdHRyaWI6VG91Y2hUeXBlPjI8L0F0dHJpYjpUb3VjaFR5cGU+CiAgICA8L3JkZjpsaT4KICAgPC9yZGY6U2VxPgogIDwvQXR0cmliOkFkcz4KIDwvcmRmOkRlc2NyaXB0aW9uPgoKI
2DxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PScnCiAgeG1sbnM6cGRmPSdodHRwOi8vbnMuYWRvYmUuY29tL3BkZi8xLjMvJz4KICA8cGRmOkF1dGhvcj5XZW5keSBIb3dhcnRoPC9wZGY6QXV0aG9yPgogPC9yZGY6RGVzY3JpcHRpb24+CgogPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9JycKICB4bWxuczp4bXA9J2h0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8nPgogIDx4bXA6Q3JlYXRvclRvb2w+Q2FudmE8L3htcDpDcmVhdG9yVG9vbD4KIDwvcmRmOkRlc2NyaXB0aW9uPgo8L3JkZjpSREY+CjwveDp4bXBtZXRhPgo8P3hwYWNrZXQgZW5kPSdyJz8+LtqNTgAAD4RJREFUeJzFm2uQpcVZx3//7vec2dmrGLKUkaRACSFCkoKUEq1EILObVDSUWmUKLyWwLPrBSxUf1DKlllQFv6SsGEqTGAmzSyLEXVDAFCg7M2CAkCDhjqFCKkKgXHazl+zC7tzO2/34obvPObN7zpkzswd8tnbOzPv222//+7n08/y7j1ihTDBJgzVs4Dc5zA4J3CIuNIgIcMBrHGA9m9eBGhC9EECIsLiZn5g9yKsYAMYsr7GWTR4snk7DjhBoEZnhmhWNS8M2/DA7cFgeAHLIRSwIOI53awnvF3wAuBA4DzgHNA5mGYgMOwa8ADwPPAk84vDPRiJgCHnDQhmYIabZNhogl7KbitcJiIinQfARgkNE4pkOdzXwCbD3djos3RqgNnx1vS5fC8BjwFcNbnHoaE3A4/xaCAeJjOOG0s5AIBNM4vNADOQxBRQDbPTwJ8AfgE5THjBQZ5NRuiDlmS6Dt4wuCjnAdwF7BfhMwP7OoyDkIzEU+MKYYvvKgWxhktKJYQ6IDiOiK4BPg96Rh9cy5EhtACRklgCc2H/7egZFAkVM/mQYPAV2nXBfP87rrGWD0syIOMB3egLZyk4iVm56IAiNG/YFsKuy+bQM8yAnzJJOThr4QLGl/hNBQdDIZneDo/mXkRaGOUE0IjVr+Tq/dVJf7sQLl/GlNggDbxAidroRHxZ2lVBtKBjWyAM3kFYKgg7wrB05YQ3DaiED/UVk8U5Y5wwi4IRoMt+zr5OA+Gy2Bo4UQTY7eFjoIoNFw7ySJizZ//CRbxAggVkyoSqZn7WEfhWO/ccBXneBEC29lC3sGAxkgh3t8AqKAa0V3Cf0LsNaoGa+bWo788hEyXcwpQFXQAvYegYbdlWID/CgGdAicClfWvJwO2pMMMkmFpnHM56Do+B24FKhRaCpZEYj0UJfNCBDlgOCE6oF7zE0tpezZhzyb2ejzRP4Pne1n3OdDsQsFR78IiLCH4N+RcmpGykSDQeiRCTDLP1ePvPtocBYAVOBIuiTBh8zCHs55qFE1i4gE0wSEDXOGQRLK/Nf59Drc4fLgbAcbSzZu9VK60E0FFOQsJDaWF5QrC+oEqI7nwB8DmydYSEQdYjFpUAcltdtmU9j/bRQMw/GZSfsCaIscpZARsOiIZedtirBIWs1T4oiWCxRz/poqeMz8pac/2yDTwoh5DbSZCJrpQJoMs8Ca12AaHCJ4HKwCPgyK/1AdGmrBlU5KTls8CjwENj+7FfvMOwXgZ8VrM+pSxDyeR7a6cFSMO3JKv78+0b8e0P7GsnmDKCaYAcLRFLsBojXKb0kClX0Uf9SEKpTlLEfCT4F2ungR7GTumCIBkYLO8PQHwF/mhY/aqUJtT6Tpjw2ly3kNINrHboBcCpJZs5qldV7ruDZbFbZLk/WRlmRLUXKGqwC7o3Ydofbp5yGRMyTE68ERKGV0/0I7xb6quB9CYxV1g7rvScu9SVn2AstwgWClsdhuOQjAufS568DTaAus9hLukEogbhrnOqXhfaRZlcRM1HVi7w7QAwihlayAgGV0POgS4CnM4hanQnt+c78bATObeC3VHiSaQrnMcR4sOQuE2WQebXthSSvWQRBZfDYe7n+12ZZRCmlqQPOwJjiSh7k55niWqbYjgFTbDbX1mI8atgvGfww9xUHRMZyK+Q/L8spNiBcBNXMEWmdTiqKINljH98oSORyuL3uGa5HuCq9xBAtpnuk3DNsYwsHiGkAdcp4tRf4qxww2utOHyQ5gRRgF1/Au/ghh4OocSIVBg6dB5zWeah3pMrTEnK/9zr0iEMu4GpheCpm+N0+k5rAFOOMWKvGqOHLoJdAnpw99J7EtmkCnP8s313/Vn4cIVzXjXPyZ+g7CpZGK9C/RiBibj1HMMQerhz0OABTXE1EVHgq8BXMAl/LFWXIpnuSpMlNxRpog8Hbyi2XbgjQmVl5cfACLkjZ7yLwYL4W5tjI9AoIg2muwedwkivAR/Itx8A0poR0a6oLSKXOMz41E6JvFOzu6Zjg1XKtX4QbJIvpbWUA/wPElAWot0o6EkmANxUgjq45Ke60TEpV2tWBaIGIYUOzHd3iy9ylH4egK3kaLAX8hnLBGe1/0Yo+BiRzdFCOOxhzOb5P9Ch2lh9Nxx0F43SVFctIGUO7XOy2x/1d15bpwwCtBZ3duRiHHENHPIFEWhhg54B1p0+DxJFGcTD/bd1AXuxuNFhUZ4e/OE+OaxLYys1Dg5hgEkej0yP6BXUSyUHvzkPWIujl7BJLgHwHmMst6Z8qmPLKD9hvNDA8LixSYTguHcLEJpikCSwQsBTu1xn2iXzbW5/w21ksBdj+SNybWUpzIKuBefQqic6EfoEcsJyJkmzpQy34eCBaymCNishH2DkQRIWIaRFrZPX/HnAWKcdTVyRbInmRLjb8RAM/38AnkwCjgdx4avBodvjQb1ZybCvVGyR2cL1hNe0QHtsFz1IQOzjOJhLVRsOgZfBO4PpsVk6d8NljEttZN8CjkUgg+gpRVdTUVOXBb+TZKSbXq0MlrZjPM/hOj26f5pqPTTAZhBoRaodsK5M44D00eIKACKznqAvIJxD2VqG7hTaWIiuXDz1Lh/xrlT/zYkx0CH2UmwoQA84S9rxgTVqUjF71SLHT7Ct1Igh4GLhCsDetVpKBL/MnsDHGwjwLORfX+4XtEvrpVDAxsB6hU3g5g5cNzlPyaYThWjQR2E9yhDFaL4EeK0h7gwA6lSGGVYmy0QeBpw3+DDgzT0zd9T8kx+RnDH1W8M0OCFXLreZ50mImL6YyCJfI7WsS+gm+hMN5EoPy54IbLIfYQVTo0kqRurCEwFHgQcFzhuaTT7EJ7CLgg2r7Et3mRP+Ja3PLMfHNXAHsBrzDhz1clexNZVwpift30KeASvSto9NrMwuSo0yV6/xIyoEuN7i8y7TaPy1pKLMr7bR9wIQJOgTEYUMPZBeOZe/FlYYGMSAW4UmDZ7LTDKrYOng6UcxZon4yr2UtQ61E8qmVeS1LIAqjSL9KtOsFpq4Vf8bBAYckzErV4QBm2E4APPJNnAFfKw5qfWL6yS+Tymf+X4EaggbQELR5LXVUMETKXEiHdtt/y7mh+zG+1978aacjaRevxDiVIqfKddlQYN4IydZiJD7gsGH3JSDEo5zdbtcGkmpMi0eYY5pt/wU8nm/lEvv/S5Iv5Lm81+EOeJwTWGSs3aoN5H6uoabiNNb4rWnbbTftwqe99/cmQ7CyGVnGuctSrS/DM8NV7bZLMt15KiKKManzToOFRNt0dmbfTCncL+AMvQhuJg1ZwU4oG5YAWcsiQlYR5YnfA83kW4U1eVMlb8lls7I7RJwT0UcMPwjIA1zNOHME5GJat3flW3mn9s1TS5dZldxqV+HUAidvVZ9URB1LDhSzLd6TWcC8+r555pWzgZiiph6p4PHk2opVj9rvpCsVjpTaOudwh4B78q1laKLRibUJzbKG2e4ALIJfwDLJt1ROAjLF1cwxR0waAfinnCBmouKNV0tXWlMZHAW7vawdD/V5pmd9voYxQPEA6zgbux/0eKrvFdW/eByZZI6sUCx3CrdXeCfMLutjFT2BVDQxHJs57l9MD96Sk3azN9jpc11OzooBJpM2IguIB/rwZz2B7OFKlLjcmIzVdoMdzinLG62SUpcLeGwNGx/axLmAxcaAh/pSP8ZGwMwj5xLndfcJqfMboRUjZcQl59s5z2sc5QVfMUY1gDvrC2SGbazj9faRMNCObF4+uePopWxdZ80fMOLtedLiHEe4j2v7PjuQjJtnHaDoWUCEhwTfIqt+9E7fZmXKtO9yuAMO5w2zJusHPj0QyCzjeCKBpjc8Bju6nR4GcsQrEstBt1Mua2euOyxiTHH16oE8zG+zmF5SVvo7wPbR3rYenVKysRZtTHv0uMPJIPohWN
2xlW1QInyKVd3AY+OdRO711yIWSZd8ciESiO4PGUBtIywKZYluZrZIu3Jxr+arr4ilJ3lLLpJ9eWMDf2Ur752HvkFsmQzDvEHCAi0qU5nOgu7JWwqkbl2WmhpgmxW4aIyw0iH4M0RxuiCsxcmMrOzwQQFsN25N4JpRX4lVhOuFEw2Ejng/aJ9ATzNlh/nCofoaDC2zhZgyFI1RsYf0U6In0fPuUzypAcGLI3e3w+1LIlV20TMjtlqGBQBNDbKL2U7wO2M4cLs2WHiwbWhJ3tiSvurmE3M2MM71MyO2WoYFMcyWeI9CZvduAfZYZyZWG4rQIpaMgpIf3OPy3PV6RGA/3OU3aT1agEYhswhGNdJDlkODWvIxFrbBWKZGwc/iAL0QCgeBmuJyDLKwIyIpt+yP8I5HKkaLMuYJnhMa6Nn6G6jNHqEJiPzXNoxf+HBewkXUEjAcGHB/vJSvSSBqAp0UVHTifturuKKHYBhxTWtpH2gvM/oXB57dyMZtY5w/SolpFxrDKZWCSLeksTiR91eKbXcfKl+03tUtnH8F+IOL5ho4DbKLiX7qIt2FlxRoB+DCQyt4oR/wW2DSJ+FhWK5mNseJXwE3gjicTG+dQOvO2YlkVkIqKZ/gulvkvg89lsiDvlwyyLuX1g8rQkZTlCkPxEGfwnyv0jVMCsocruZBzAYVAg5rT7wI9bWmHK1r/BbLsSxb28CvC/leYrzF7Cy+vCgSsEgikLad5PBUt3+QgYJ8vg81bZSeppTDhmeapI/xDOu+F1X34qmFl1UBm2MZbOIahkMxLt4J+kEnvPN5uEGZqL4AGcIeH7zhwUMU1qx/KqQEBeI11tBI36R12HPhivhV1glZSrSFL9KsA3Zh9g6OcvapjUt0yghIvMMEtecvRzhB6Tuh0a9f1ZWugc7zW4B4PHwfUSt9MYGYFeVUvOTV9AhN8BahM4IX2J7alvU60WXUSEpdVdGMAAriK9bjBxyiHkpEU3Zewi4rZ7tMT/y20trMPjwQh7ZHrYWh9KF1vIFiWWBhGTlkjAA1maRBN6ZsJLwG3dR3OYSnbYp+BCsP7MRxhFQfWeskIualdbOV4SSbfBzypznc/oqVvJTz1dsYvfCWn6A5jzwq/ytpPRqIRgI8yS6QRE2tvT5fNVFDIxAKgv32FOcD8LD9FHN3rR9fTMSKLud7L3f5N56tMVoGebTF+a2Acw4cNPLWiCnA5GRmQb7CdJjU1LnrMeezbYHeTzptg2GcbzAbPnG+wSN05vT4SGZ1ugYoGgZqQ7Angxuzl36+x22og5kxgZoij5yuRkQK5j98hpxohHXrRA6RTeV9s4uYbyJ/G26hpjvK1QGfrd2RSkw7vh84it11of96PDMfYz/0j1gbA/wEBgZ04dXJbZQAAAABJRU5ErkJggg=="},8870:function(e,t,n){"use strict";e.exports=n.p+"static/media/purple-shield.c4f8f3ccf94d2bcd334b.png"},4536:function(e,t,n){"use strict";e.exports=n.p+"static/media/rich-moral-headshot-transparent.23bf3aa2b60755c0179d.png"},4797:function(e,t,n){"use strict";e.exports=n.p+"static/media/rich-moral-transparent.d215e067f5b115292b7f.png"},6672:function(e,t,n){"use strict";e.exports=n.p+"static/media/stronggoode-headshot-transparent.a43f13091dab9f8b8975.png"},3481:function(e,t,n){"use strict";e.exports=n.p+"static/media/stronggoode-transparent.4822accdd0a8c3711b3e.png"},7319:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAYAAAAWy4frAAAACXBIWXMAAA7EAAAOxAGVKw4bAAADnWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSfvu78nIGlkPSdXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQnPz4KPHg6eG1wbWV0YSB4bWxuczp4PSdhZG9iZTpuczptZXRhLyc+CjxyZGY6UkRGIHhtbG5zOnJkZj0naHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyc+CgogPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9JycKICB4bWxuczpBdHRyaWI9J2h0dHA6Ly9ucy5hdHRyaWJ1dGlvbi5jb20vYWRzLzEuMC8nPgogIDxBdHRyaWI6QWRzPgogICA8cmRmOlNlcT4KICAgIDxyZGY6bGkgcmRmOnBhcnNlVHlwZT0nUmVzb3VyY2UnPgogICAgIDxBdHRyaWI6Q3JlYXRlZD4yMDIyLTA1LTEwPC9BdHRyaWI6Q3JlYXRlZD4KICAgICA8QXR0cmliOkV4dElkPjk1NmQxMjEyLWJiOTctNDE5MC05Y2QzLTEyZDA2YWQxMWU1NTwvQXR0cmliOkV4dElkPgogICAgIDxBdHRyaWI6RmJJZD41MjUyNjU5MTQxNzk1ODA8L0F0dHJpYjpGYklkPgogICAgIDxBdHRyaWI6VG91Y2hUeXBlPjI8L0F0dHJpYjpUb3VjaFR5cGU+CiAgICA8L3JkZjpsaT4KICAgPC9yZGY6U2VxPgogIDwvQXR0cmliOkFkcz4KIDwvcmRmOkRlc2NyaXB0aW9uPgoKIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PScnCiAgeG1sbnM6cGRmPSdodHRwOi8vbnMuYWRvYmUuY29tL3BkZi8xLjMvJz4KICA8cGRmOkF1dGhvcj5XZW5keSBIb3dhcnRoPC9wZGY6QXV0aG9yPgogPC9yZGY6RGVzY3JpcHRpb24+CgogPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9JycKICB4bWxuczp4bXA9J2h0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8nPgogIDx4bXA6Q3JlYXRvclRvb2w+Q2FudmE8L3htcDpDcmVhdG9yVG9vbD4KIDwvcmRmOkRlc2NyaXB0aW9uPgo8L3JkZjpSREY+CjwveDp4bXBtZXRhPgo8P3hwYWNrZXQgZW5kPSdyJz8+MXXG5AAAD05JREFUeJzFm2uQZVV1x3//fc7px8zwGkZUXoICITEVA1ZiHhqSin4wSiHdzAP8YFJaVCqpVPkhL8tYlSpJPpgU0YpCDIVgkhmme2Z6UAqMD2J4SCCIvAxUTUpB0HGGgYEZmEf3vWf/82Hvc+9tu2/3vTM9ZHV13dv3nrPP/q+19lr/tfZuMaxsnYHTj8B7/w6mPiVEINY1ocgXCPYdhnXjq6GosNMXJTV1Pcfa6jD72+k6gBAgxgKI1AdMdRLEAjZdOdS0NPCV0zPQjvnhSgBMjYB2K1BW78T8GnAJcDHoAsQ4xvlJwn4N2IX0NOZR4AGiniQ4P8QFos7vgQAbJ1YIyPR00lDnUheQAeCzsX4fWI/4JayeEZ3mou6fKP/h5gvXoIfBt0H4MsQDhBpiUVAfqRk/HVpHBgKzNJCtM/l5+dqk1Qg+GfRnwB8jTgPlibrduRbl63ueZBswUgQHTNEdX8+Dr6ea/Udao3VSmOrm4biCq684BiBbd4IieZIBEwmAvRHxGeDc/F0LHJKrCbCQ3Gd8Z8DCMjJYETmCqmQpHgM+Dr6HdoSqELaRQAVs+NAQQKZ3dBQBFFg1aBzijcBHkhbVyj4dsJIfSYOvuQZWAiNwRKoxVf7yOqrxT9E+DFYA0gKNI3DN5QuGCgs+2bEDYmc+aT2YdeD7QR9BamPVyFWeuJPTDQkCkrMigY0UsCvkdnbIv6J1ZCfjp4bkGkpzDa1Fh1oIZA7yQg1ADZyBuB/5UuQ57AK56FiBYwCwAFCjEBmrxAaphfgQhw/+O62R5NrNYty6YxkgU50LBEQCq4CvI/8cVgszkt3KXW2umChP1EjCLkEt8PuoZqeo5mDjtcaCooBtM32A7NgB0XnVhLS4Ilswv4w1h1yB0gUaIv8MDUfN4k5gpBZwFe3qb5n+ZwguaL8GMfYBMgcZRQER7D/FXJEGyiDS9JcH0SRB5x86v9AbRgYHE4FPAO9PSXi8wMxzsQRk+vY0f3XWxcXA3+R1WOQBlwFhp2vs9J42okaOOfe0ses8jjuvg4FpXOULFHE1co0knl/zM0BiC4qYfD9l588gjWC3U3jNA/ZBkLSutK6cI4xcYpdYBVKBVSFlpRCRInZOh14cULrWiAJoAedTh080/s/arlVKAI6+AmNrAyIiLsNcDkRE0V3YixohAzTJAirz+/1YDwH3gfemSXEu5reAX0FakwNenS2ewSyirJRnnDM94D/C8fOgPax+VbjlBGTrTLqYnI3tj2faEEFlfkB/EOn5baDEvAx8mhBvRXqZOgeiZDcoBHV8I/AnyH+OqVJecplC72KWl5ATg0zuehoOH0O6Ln1W1ElPW3ZA6DCei4Ans1s5K2gxazSg1ZkI3AX6KPIecGLINUUnSBgoQ50YtEH8PHAb1jsSR1OZJtzHhZ1dMCXOXcTwixBbhERUQ+IwGQq6qrs2lglO80HcTrn6A+A9JHcVtcyI2rx1bY2oKVzTrpvQXQJPI1+G/HgG0U5UpU8AUCfYROAigt9LyFE2ATFUo7kw8u82t+WF2McaFim6lcDDfO2rVzJ7MA2K2xTZTScm4Fd/GzZMwPrJpOxPThjHNqYk6gD274FfyG4ccZ/12NVsU6/8Tm9UF1MzyutgHXgX1mnITfRaHEjHAyzMbwIPAGWOclBX8OE+lHt6JiXe9PQKaGH9IfKNmcOFrL9+z44pCnIvZ/oydgnWQMBOFM2+GHNapiD9s7cRUp1A6C7kB1L+CW0IMBL6g4BknUCjzFZSaPwXzLMpSi6RW9xwOwN+Oz9hDavTQKEH+QX5te7npr2jpUs8g3O9sq+AEJM7LScbspu5BFEgDoPuyCS0zq67UJSLtfT+JKQzk2dIIX0pkM7OmTwuudC72X4O6d7M9WreNAcbr1oeRCObJqCcbQYFeCCXxrm+6SNNmWyPgM/M1lFoGAV20fF999EI5GIIMK8R+Wnn03bR95b+Y4V0L4D8Q0RM5e+ydKxhjKfkV+Xw2/O7RChv5pwzbDvF/Rw5rh6ufQPA0ZPoMGr0EmiuO/6S0iA9qfmg1yKxxyJLqKRZbBoHjeZJiNu+MjyQ6lA3gprx+c2IJaVBerQLRNlVxN48SBiw2liFdX4HSDg8JApgziT/MuALcrkQl0TSO0fxYn516DBe65kUdh36BY0kBtQGFyi+K7lrDBy8dNEStK9MzaQuY+dR+o38ph5whDn
2Qc1mRvUDCU8ARukP3U4syPQHYhAqgrDn5iaTc23YOBsIRKoNDDWE1qclHcq9lSoZ03V7w7mxNBxSNW9A+8lPwrmy7pQqe3MskAu+B+oPQNg4lihBqmFoCzNQOOuU5rrJFrwWfly2tJZKicmQD8T2sozjk4kQBQghUIxH0UF7wdX/O497qDcz1xGIN0AYKIlC3FwezdQb2rU2Jk0xP5AsRf52DTJiX9BY8uikpDPBQ/rAgtChhFqiaG78DXEuXRCwyYK7aUCKI6EJCvY2Nk+9nakeNVBFCG0czvR0Kw1n74bk3JEOv2x+IKsAt0BuAr2BOBteJQ/WpRruKK/Os7s35JqKI2DpNqngwcB7wNNIYLEUc3TQXeqi87gc2gnfnSlS5B5YZhw1lDe1Gqe9ETGG9baB6JBHGVI/g54jhYuQjAISaQBhPzKkuAT2LeDjfFlG/8CUlkCJXd23kdwOPI/4Sc3YG2+75rXNB9QuYzwL/BXpbtmqZ2NuSvQ3lOh/MNwk+ksiqYcP6fOe2HVCryA/7JOi6rKViyR5Wx9wWqJ0aDoA4gLkX8X2so0khOgV8KfDu5JaAszt1y+mlqkMykALYCEwDBeVszVXX5OZDAOrGXfQ15E+TiqY+dXTHMMlJJGPK1FknYk5BXI65vMe1eubpFBg6a4L+ICCxmBR4C8R+5G+n9a5IrDoQOn1u5oAj8VHQE9mR4wDN6RRLZae85CIVZm4jt7BayK3Uy3Wd10HRowQtQ+7yWuwQxbuJxT5imYhhPdIDZP1kUtgoBatl8B3ZlP17TgvxpC5AMzGpBFWpClQFVMml5oXXQciQM7FU/uurEEF14Knu5k+Yd33T4BR35JRUZkI3IJgTJHJ2K+8Hfz0T5siFXTbTA0QgR+KroMn/Bh7JX8S+FdvrISlKxRyy70JhH4SAMWPdRnYXyNWTEATh5II4AzBNp6hVt13xekq3t5bnqammIqQ8Ald1K9L5+yMjJrE5g9kJnoWmDfr/4F1dKhSwnyFyN1EQVVOPzrt0PpBZpfVQSBT6X9Dd+Zt62chyIiSBiFmJ21MSdEGIaS+xR+YD2TAJWgO1U+UoZ1M2/dfX0yxu6HrDraZo4pbqBVvVC/cQOQAo5mLrTqwX0p7hMhRipcV5+wHAPEAsHyGOpGjlcsHliwCpyNoP4JeQ78y8Ki689gRJ2rZOQSaF2mlCGzSXthY2Ti64ZSGQTVfCq/M86N9ywAqdXHOipctoSswB7G15DpHxg4vesohFgFUh5ZTqx6Bz/wPxCM3ph76MeAUlgaizynYi7U70XU4tpIWyOJAxoAzQOqcgPg/Wl4GUUyyfUKs0TDcVbgBfalIHR09NAWkRWRzIxAS80AJyfRyZBvYDZSeanDCx6LKJhxlt3cepMc1l7EDfuxYHArCuBDDBgeC9QO7ANYv+BIRi55KAJkLqVuYqOBAKWqN9j2/AUkDWT8LYwR5i4luy7xbd81YrLIlsG6nE3ofZljN55PRnYMOGvrf2BwIwuwYgMlpCKO4DHoS8/bVUo/tYxDQ9gpiVN4XYhyigbV45Z8nblwbSHoPWOMy2CmIb4JbcLsrmX0H36vDSzO3QrU3zDUe4ZonNI5YD8uEPwvielAyDIHg70p5MG1Y208+3xrcwj2ClhkOolr19aSAAc6dDLFJhY/Zjb80aa8jcClil2Z7oNN9uThndgdapsGnxkNsrywO55op8OLPxYd+cNVcu110dXNScfiyAXeCdGVhNuW+gEZYHAlC0yB2SAPo+5vasvPq42X1zEMDZwuIm0CyooChBI8uPwTBOXt4Am9/UHA18H/gbpPMqWnIXeHnp7SDux3470h5APHvQ/MUfDDTIYBYB2PzG1FDjMBw685uI76XK7bj4V7NnnzuImgbtIVKgYM47deCBBgdipf65xwtW7wbr1k5N73wgZmgYnQWeT/5wc24pmUMRNg6+Lzk4kE0T8PRc0l6K+VuQ93Saz0Ovlc4RqTqj+Qb4u2ARFBkbbrTBgQBcNApqG6sAvQRs7oRihg3FauhIXmO+MfcsA/E/Yc1gi7xntCFl22aox/KOlS4CP4E0SrMlNvCYJp89KTCP8fwzl/Dms6GqoBZcM9jh/kaGswhAHEsZWArALmB7nljjIoNYpdkLbDqbN3DO+VBWBavK5lzfUDI8kI2T8MOX80I1SJ/P8b/oFkXLSGpKO++t/IgYtqAAUs2LdTp4c8KBALzltBwyJcyDoG+lybnO59z7o0nbCO60QfFNyIewC0YPw5q+d54AIGOCM0hcKDHUL9AcHOh3BrIjnUVeYr2CuTXzqsivPw7rh7cGHCuQiQnY49QgqGo45bXbwY/nU0NL1Cp2Pgiao5z/FfEToGCuMPe865imA8cKBNL+6aExaBcFB9cA3JCXeuM6i7iXets8beCfOtsWEdgwxDGpn5FjB7JhAtYdBIc69QnCZsyP8iS9kLY4B+jOf+lsJ/gpAoFWFRk9vv7fsQOBZJGRlyAdyjwEfDFrPC6gLc0WdYpuAJ9L9TjwckjM4Tjk+IBcfSW85WOkrYgI8CXwizQHn7s2aU5zN7nmTqQHUUh7g2fMLjr8MHJ8QAB+sB3qYAgFaC9wS49VIPdZe/Y5AD6X2G4MVBWLNaWHlZUpujdPQ1k0+eM8rP9BWjXvNLc7RzTup+I9SOn0SPCiTelh5fgtAuk/bKpoHAocnkVsmd+/zbkl1R7X0wLmXHB0mQOtQ8jKtUF2/xjue6g5/vQO4NHUBXHO4irAj7F78hLOugm8Nv1XztXrV+TxK2MRgHsehJJIVMB6HJjuqeub/+v5B948A/H0gnAIwvGvjUZWDsiqCmLoNtrM32dXUlrNfpKjcTOtmErm+uShKsDlZOWAXHEF1BHI3RbxXVLju8kbn2Us1FRKh9PUXrFHw0oCgVTTP3cGmaSAcpiFH+C4BUeAmkLDndoeQFYWyOQknLUPCDVFFPK3Qd9BfJFQHCUUBV5H9yD1ysnKrbZGRvIJuc4Rc30UsTeH4ZryFVi/stYA+D+YEYeKWuHdJAAAAABJRU5ErkJggg=="},4781:function(e,t,n){"use strict";e.exports=n.p+"static/media/teal-shield.cff0c862cd81d2d71d22.png"},1979:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAJYCAYAAAC+ZpjcAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAANHRFWHRDb21tZW50AHhyOmQ6REFFXzgxTDlXU286MTEsajoyNTU2NjU5MzE3OCx0OjIyMDUwNjIwh6RsLgAACuZJREFUeJzs1rENQVEAQNHHACpmsAAxpzE0JjGG4neiFQlL3OSFnDPBLe9qXK6fAYzDazduy3N2Bvy00/kxNvf37AyYan/cjvXsCACAf2OwAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIGawAABiBgsAIPYFAAD//+zWsQAAAADAIH/rSewsigQLAGAmWAAAM8ECAJgJFgDATLAAAGaCBQAwEywAgJlgAQDMBAsAYCZYAAAzwQIAmAkWAMBMsAAAZoIFADATLACAmWABAMwECwBgJlgAADPBAgCYCRYAwEywAABmggUAMBMsAICZYAEAzAQLAGAmWAAAM8ECAJgJFgDATLAAAGaCBQAwEywAgJlgAQDMBAsAYCZYAAAzwQIAmAkWAMBMsAAAZoIFADATLACAmWABAMwECwBgJlgAADPBAgCYCRYAwEywAABmggUAMBMsAICZYAEAzAQLAGAmWAAAM8ECAJgJFgDATLAAAGaCBQAwEywAgJlgAQDMBAsAYCZYAAAzwQIAmAkWAMBMsAAAZoIFADATLACAmWABAMwECwBgJlgAADPBAgCYCRYAwEywAABmggUAMBMsAICZYAEAzAQLAGAmWAAAM8ECAJgJFgDATLAAAGaCBQAwEywAgJlgAQDMBAsAYCZYAAAzwQIAmAkWAMBMsAAAZoIFADATLACAmWABAMwECwBgJlgAADPBAgCYCRYAwEywAABmggUAMBMsAICZYAEAzAQLAGAmWAAAM8ECAJgJFgDATLAAAGaCBQAwEywAgJlgAQDMBAsAYCZYAAAzwQIAmAkWAMBMsAAAZoIFADATLACAmWABAMwECwBgJlgAADPBAgCYCRYAwEywAABmggUAMBMsAICZYAEAzAIAAP//7NaxAAAAAMAgf+tJ7CyKBAsAYCZYAAAzwQIAmAkWAMBMsAAAZoIFADATLACAmWABAMwECwBgJlgAADPBAgCYCRYAwEywAABmggUAMBMsAICZYAEAzAQLAGAmWAAAM8ECAJgJFgDATLAAAGaCBQAwEywAgJlgAQDMBAsAYCZYAAAzwQIAmAkWAMBMsAAAZoIFADATLACAmWABAMwECwBgJlgAADPBAgCYCRYAwEywAABmggUAMBMsAICZYAEAzAQLAGAmWAAAM8ECAJgJFgDATLAAAGaCBQAwEywAgJlgAQDMBAsAYCZYAAAzwQIAmAkWAMBMsAAAZoIFADATLACAmWABAMwECwBgJlgAADPBAgCYCRYAwEywAABmggUAMBMsAICZYAEAzAQLAGAmWAAAM8ECAJgJFgDATLAAAGaCBQAwEywAgJlgAQDMBAsAYCZYAAAzwQIAmAkWAMBMsAAAZoIFADATLACAmWABAMwECwBgJlgAADPBAgCYCRYAwEywAABmggUAMBMsAICZYAEAzAQLAGAmWAAAM8ECAJgJFgDATLAAAGaCBQAwEywAgJlgAQDMBAsAYCZYAAAzwQIAmAkWAMBMsAAAZoIFADATLACAmWABAMwECwBgJlgAADPBAgCYCRYAwEywAABmggUAMBMsAICZYAEAzAQLAGAmWAAAM8ECAJgJFgDATLAAAGaCBQAwEywAgJlgAQDMAgAA///s1rEAAAAAwCB/60nsLIoECwBgJlgAADPBAgCYCRYAwEywAABmggUAMBMsAICZYAEAzAQLAGAmWAAAM8ECAJgJFgDATLAAAGaCBQAwEywAgJlgAQDMBAsAYCZYAAAzwQIAmAkWAMBMsAAAZoIFADATLACAmWABAMwECwBgJlgAADPBAgCYCRYAwEywAABmggUAMBMsAICZYAEAzAQLAGAmWAAAM8ECAJgJFgDATLAAAGaCBQAwEywAgJlgAQDMBAsAYCZYAAAzwQIAmAkWAMBMsAAAZoIFADATLACAmWABAMwECwBgJlgAADPBAgCYCRYAwEywAABmggUAMBMsAICZYAEAzAQLAGAmWAAAM8ECAJgJFgDATLAAAGaCBQAwEywAgJlgAQDMBAsAYCZYAAAzwQIAmAkWAMBMsAAAZoIFADATLACAmWABAMwECwBgJlgAADPBAgCYCRYAwEywAABmggUAMBMsAICZYAEAzAQLAGAmWAAAM8ECAJgJFgDATLAAAGaCBQAwEywAgJlgAQDMBAsAYCZYAAAzwQIAmAkWAMBMsAAAZoIFADATLACAmWABAMwECwBgJlgAADPBAgCYCRYAwEywAABmggUAMBMsAICZYAEAzAQLAGAmWAAAM8ECAJgJFgDATLAAAGaCBQAwEywAgJlgAQDMBAsAYCZYAAAzwQIAmAkWAMBMsAAAZoIFADATLACAmWABAMwCAAD//+3W
2sQAAAADAIH/rSewsigQLAGAmWAAAM8ECAJgJFgDATLAAAGaCBQAwEywAgJlgAQDMBAsAYCZYAAAzwQIAmAkWAMBMsAAAZoIFADATLACAmWABAMwECwBgJlgAADPBAgCYCRYAwEywAABmggUAMBMsAICZYAEAzAQLAGAmWAAAM8ECAJgJFgDATLAAAGaCBQAwEywAgJlgAQDMBAsAYCZYAAAzwQIAmAkWAMBMsAAAZoIFADATLACAmWABAMwECwBgJlgAADPBAgCYCRYAwEywAABmggUAMBMsAICZYAEAzAQLAGAmWAAAM8ECAJgJFgDATLAAAGaCBQAwEywAgJlgAQDMBAsAYCZYAAAzwQIAmAkWAMBMsAAAZoIFADATLACAmWABAMwECwBgJlgAADPBAgCYCRYAwEywAABmggUAMBMsAICZYAEAzAQLAGAmWAAAM8ECAJgJFgDATLAAAGaCBQAwEywAgJlgAQDMBAsAYCZYAAAzwQIAmAkWAMBMsAAAZoIFADATLACAmWABAMwECwBgJlgAADPBAgCYCRYAwEywAABmggUAMBMsAICZYAEAzAQLAGAmWAAAM8ECAJgJFgDATLAAAGaCBQAwEywAgJlgAQDMBAsAYCZYAAAzwQIAmAkWAMBMsAAAZoIFADATLACAmWABAMwECwBgJlgAADPBAgCYCRYAwEywAABmggUAMBMsAICZYAEAzAIVjw8DQakzGAAAAABJRU5ErkJggg=="},5521:function(e,t,n){"use strict";e.exports=n.p+"static/media/three-shields-transparent.3ee82e2c982785e0a9b0.png"}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i].call(o.exports,o,o.exports,n),o.exports}n.m=e,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 i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,i){return n.f[i](e,t),t}),[]))},n.u=function(e){return"static/js/"+e+".17c6f57e.chunk.js"},n.miniCssF=function(e){},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)},function(){var e={},t="project-4:";n.l=function(i,r,o,a){if(e[i])e[i].push(r);else{var s,l;if(void 0!==o)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var h=u[c];if(h.getAttribute("src")==i||h.getAttribute("data-webpack")==t+o){s=h;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+o),s.src=i),e[i]=[r];var f=function(t,n){s.onerror=s.onload=null,clearTimeout(d);var r=e[i];if(delete e[i],s.parentNode&&s.parentNode.removeChild(s),r&&r.forEach((function(e){return e(n)})),t)return t(n)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),l&&document.head.appendChild(s)}}}(),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(){var e={179:0};n.f.j=function(t,i){var r=n.o(e,t)?e[t]:void 0;if(0!==r)if(r)i.push(r[2]);else{var o=new Promise((function(n,i){r=e[t]=[n,i]}));i.push(r[2]=o);var a=n.p+n.u(t),s=new Error;n.l(a,(function(i){if(n.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=i&&("load"===i.type?"missing":i.type),a=i&&i.target&&i.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,r[1](s)}}),"chunk-"+t,t)}};var t=function(t,i){var r,o,a=i[0],s=i[1],l=i[2],u=0;if(a.some((function(t){return 0!==e[t]}))){for(r in s)n.o(s,r)&&(n.m[r]=s[r]);if(l)l(n)}for(t&&t(i);u<a.length;u++)o=a[u],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0},i=self.webpackChunkproject_4=self.webpackChunkproject_4||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))}(),function(){"use strict";var e,t=n(2791),i=n(1250);function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function o(e,t){if(e){if("string"===typeof e)return r(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)?r(e,t):void 0}}function a(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(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 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},s(e)}function l(){l=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",a=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(P){u=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var r=t&&t.prototype instanceof d?t:d,o=Object.create(r.prototype),a=new C(i||[]);return o._invoke=function(e,t,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");
vendor: 3,099 bytes, line 2
2if("completed"===i){if("throw"===r)throw o;return S()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=h(e,t,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(P){return{type:"throw",arg:P}}}e.wrap=c;var f={};function d(){}function p(){}function m(){}var v={};u(v,r,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(E([])));y&&y!==t&&n.call(y,r)&&(v=y);var _=m.prototype=d.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function i(r,o,a,l){var u=h(e[r],e,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==s(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,a,l)}),(function(e){i("throw",e,a,l)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return i("throw",e,a,l)}))}l(u.arg)}var r;this._invoke=function(e,n){function o(){return new t((function(t,r){i(e,n,t,r)}))}return r=r?r.then(o,o):o()}}function k(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var i=h(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var r=i.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function A(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function E(e){if(e){var t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=m,u(_,"constructor",m),u(m,"constructor",p),p.displayName=u(m,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,u(e,a,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}}
2,b(w.prototype),u(w.prototype,o,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var a=new w(c(t,n,i,r),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(_),u(_,a,"Generator"),u(_,r,(function(){return this})),u(_,"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 i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},e.values=E,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},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 t=this;function i(n,i){return a.type="throw",a.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},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),f},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),x(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;x(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function u(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(pn){return void n(pn)}s.done?t(l):Promise.resolve(l).then(i,r)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){u(o,i,r,a,s,"next",e)}function s(e){u(o,i,r,a,s,"throw",e)}a(void 0)}))}}function h(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){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(l){s=!0,r=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||o(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 f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},f.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(e||(e={}));var d=function(e){return e};var p="beforeunload",m="popstate";function v(e){e.preventDefault(),e.returnValue=""}function g(){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)}
2))}}}function y(){return Math.random().toString(36).substr(2,8)}function _(e){var t=e.pathname,n=void 0===t?"/":t,i=e.search,r=void 0===i?"":i,o=e.hash,a=void 0===o?"":o;return r&&"?"!==r&&(n+="?"===r.charAt(0)?r:"?"+r),a&&"#"!==a&&(n+="#"===a.charAt(0)?a:"#"+a),n}function b(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}var w=(0,t.createContext)(null);var k=(0,t.createContext)(null);var A=(0,t.createContext)({outlet:null,matches:[]});function x(e,t){if(!e)throw new Error(t)}function C(e,t,n){void 0===n&&(n="/");var i=M(("string"===typeof t?b(t):t).pathname||"/",n);if(null==i)return null;var r=E(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})))}))}(r);for(var o=null,a=0;null==o&&a<r.length;++a)o=I(r[a],i);return o}function E(e,t,n,i){return void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===i&&(i=""),e.forEach((function(e,r){var o={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};o.relativePath.startsWith("/")&&(o.relativePath.startsWith(i)||x(!1),o.relativePath=o.relativePath.slice(i.length));var a=N([i,o.relativePath]),s=n.concat(o);e.children&&e.children.length>0&&(!0===e.index&&x(!1),E(e.children,t,s,a)),(null!=e.path||e.index)&&t.push({path:a,score:T(a,e.index),routesMeta:s})})),t}var S=/^:\w+$/,P=function(e){return"*"===e};function T(e,t){var n=e.split("/"),i=n.length;return n.some(P)&&(i+=-2),t&&(i+=2),n.filter((function(e){return!P(e)})).reduce((function(e,t){return e+(S.test(t)?3:""===t?1:10)}),i)}function I(e,t){for(var n=e.routesMeta,i={},r="/",o=[],a=0;a<n.length;++a){var s=n[a],l=a===n.length-1,u="/"===r?t:t.slice(r.length)||"/",c=L({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},u);if(!c)return null;
2Object.assign(i,c.params);var h=s.route;o.push({params:i,pathname:N([r,c.pathname]),pathnameBase:R(N([r,c.pathnameBase])),route:h}),"/"!==c.pathnameBase&&(r=N([r,c.pathnameBase]))}return o}function L(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 i=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(function(e,t){return i.push(t),"([^\\/]+)"}));e.endsWith("*")?(i.push("*"),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)";return[new RegExp(r,t?void 0:"i"),i]}(e.path,e.caseSensitive,e.end),i=h(n,2),r=i[0],o=i[1],a=t.match(r);if(!a)return null;var s=a[0],l=s.replace(/(.)\/+$/,"$1"),u=a.slice(1);return{params:o.reduce((function(e,t,n){if("*"===t){var i=u[n]||"";l=s.slice(0,s.length-i.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(pn){return e}}(u[n]||""),e}),{}),pathname:s,pathnameBase:l,pattern:e}}function O(e,t,n){var i,r="string"===typeof e?b(e):e,o=""===e||""===r.pathname?"/":r.pathname;if(null==o)i=n;else{var a=t.length-1;if(o.startsWith("..")){for(var s=o.split("/");".."===s[0];)s.shift(),a-=1;r.pathname=s.join("/")}i=a>=0?t[a]:"/"}var l=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?b(e):e,i=n.pathname,r=n.search,o=void 0===r?"":r,a=n.hash,s=void 0===a?"":a,l=i?i.startsWith("/")?i: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("/"):"/"}(i,t):t;return{pathname:l,search:B(o),hash:D(s)}}(r,i);return o&&"/"!==o&&o.endsWith("/")&&!l.pathname.endsWith("/")&&(l.pathname+="/"),l}function M(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 N=function(e){return e.join("/").replace(/\/\/+/g,"/")},R=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},B=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},D=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""};function z(e){j()||x(!1);var n=(0,t.useContext)(w),i=n.basename,r=n.navigator,o=W(e),a=o.hash,s=o.pathname,l=o.search,u=s;if("/"!==i){var c=function(e){return""===e||""===e.pathname?"/":"string"===typeof e?b(e).pathname:e.pathname}(e),h=null!=c&&c.endsWith("/");u="/"===s?i+(h?"/":""):N([i,s])}return r.createHref({pathname:u,search:l,hash:a})}function j(){return null!=(0,t.useContext)(k)}function F(){return j()||x(!1),(0,t.useContext)(k).location}function Z(){j()||x(!1);var e=(0,t.useContext)(w),n=e.basename,i=e.navigator,r=(0,t.useContext)(A).matches,o=F().pathname,a=JSON.stringify(r.map((function(e){return e.pathnameBase}))),s=(0,t.useRef)(!1);return(0,t.useEffect)((function(){s.current=!0})),(0,t.useCallback)((function(e,t){if(void 0===t&&(t={}),s.current)if("number"!==typeof e){var r=O(e,JSON.parse(a),o);"/"!==n&&(r.pathname=N([n,r.pathname])),(t.replace?i.replace:i.push)(r,t.state)}else i.go(e)}),[n,i,a,o])}function W(e){var n=(0,t.useContext)(A).matches,i=F().pathname,r=JSON.stringify(n.map((function(e){return e.pathnameBase})));return(0,t.useMemo)((function(){return O(e,JSON.parse(r),i)}),[e,r,i])}function U(e,n){return void 0===n&&(n=[]),null==e?null:e.reduceRight((function(i,r,o){return(0,t.createElement)(A.Provider,{children:void 0!==r.route.element?r.route.element:i,value:{outlet:i,matches:n.concat(e.slice(0,o+1))}})}),null)}function H(e){x(!1)}function G(n){var i=n.basename,r=void 0===i?"/":i,o=n.children,a=void 0===o?null:o,s=n.location,l=n.navigationType,u=void 0===l?e.Pop:l,c=n.navigator,h=n.static,f=void 0!==h&&h;j()&&x(!1);var d=R(r),p=(0,t.useMemo)((function(){return{basename:d,navigator:c,static:f}}),[d,c,f]);"string"===typeof s&&(s=b(s));var m=s,v=m.pathname,g=void 0===v?"/":v,y=m.search,_=void 0===y?"":y,A=m.hash,C=void 0===A?"":A,E=m.state,S=void 0===E?null:E,P=m.key,T=void 0===P?"default":P,I=(0,t.useMemo)((function(){var e=M(g,d);return null==e?null:{pathname:e,search:_,hash:C,state:S,key:T}}),[d,g,_,C,S,T]);return null==I?null:(0,t.createElement)(w.Provider,{value:p},(0,t.createElement)(k.Provider,{children:a,value:{location:I,navigationType:u}}))}function Y(e){var n=e.children,i=e.location;
2return function(e,n){j()||x(!1);var i,r=(0,t.useContext)(A).matches,o=r[r.length-1],a=o?o.params:{},s=(o&&o.pathname,o?o.pathnameBase:"/"),l=(o&&o.route,F());if(n){var u,c="string"===typeof n?b(n):n;"/"===s||(null==(u=c.pathname)?void 0:u.startsWith(s))||x(!1),i=c}else i=l;var h=i.pathname||"/",f=C(e,{pathname:"/"===s?h:h.slice(s.length)||"/"});return U(f&&f.map((function(e){return Object.assign({},e,{params:Object.assign({},a,e.params),pathname:N([s,e.pathname]),pathnameBase:"/"===e.pathnameBase?s:N([s,e.pathnameBase])})})),r)}(V(n),i)}function V(e){var n=[];return t.Children.forEach(e,(function(e){if((0,t.isValidElement)(e))if(e.type!==t.Fragment){e.type!==H&&x(!1);var i={caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path};e.props.children&&(i.children=V(e.props.children)),n.push(i)}else n.push.apply(n,V(e.props.children))})),n}function Q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q(e,t){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},q(e,t)}function J(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&&q(e,t)}function K(e){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},K(e)}function X(){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 $(e,t){if(t&&("object"===s(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Q(e)}function ee(e){var t=X();return function(){var n,i=K(e);if(t){var r=K(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return $(this,n)}}function te(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=o(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}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 a,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}function ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ie(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function re(e,t,n){return t&&ie(e.prototype,t),n&&ie(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ae(e,t,n){return ae=X()?Reflect.construct.bind():function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&q(r,n.prototype),r},ae.apply(null,arguments)}function se(e){var t="function"===typeof Map?new Map:void 0;return se=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;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,i)}function i(){return ae(e,arguments,K(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),q(i,e)},se(e)}var le=!1,ue=!1,ce="${JSCORE_VERSION}",he=function(e,t){if(!e)throw fe(t)},fe=function(e){return new Error("Firebase Database ("+ce+") INTERNAL ASSERT FAILED: "+e)},de=function(e){for(var t=[],n=0,i=0;i<e.length;i++){var r=e.charCodeAt(i);r<128?t[n++]=r:r<2048?(t[n++]=r>>6|192,t[n++]=63&r|128):55296===(64512&r)&&i+1<e.length&&56320===(64512&e.charCodeAt(i+1))?(r=65536+((1023&r)<<10)+(1023&e.charCodeAt(++i)),t[
2n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128)}return t},pe={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_,i=[],r=0;r<e.length;r+=3){var o=e[r],a=r+1<e.length,s=a?e[r+1]:0,l=r+2<e.length,u=l?e[r+2]:0,c=o>>2,h=(3&o)<<4|s>>4,f=(15&s)<<2|u>>6,d=63&u;l||(d=64,a||(f=64)),i.push(n[c],n[h],n[f],n[d])}return i.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(de(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){for(var t=[],n=0,i=0;n<e.length;){var r=e[n++];if(r<128)t[i++]=String.fromCharCode(r);else if(r>191&&r<224){var o=e[n++];t[i++]=String.fromCharCode((31&r)<<6|63&o)}else if(r>239&&r<365){var a=((7&r)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[i++]=String.fromCharCode(55296+(a>>10)),t[i++]=String.fromCharCode(56320+(1023&a))}else{var s=e[n++],l=e[n++];t[i++]=String.fromCharCode((15&r)<<12|(63&s)<<6|63&l)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray:function(e,t){this.init_();for(var n=t?this.charToByteMapWebSafe_:this.charToByteMap_,i=[],r=0;r<e.length;){var o=n[e.charAt(r++)],a=r<e.length?n[e.charAt(r)]:0,s=++r<e.length?n[e.charAt(r)]:64,l=++r<e.length?n[e.charAt(r)]:64;if(++r,null==o||null==a||null==s||null==l)throw Error();var u=o<<2|a>>4;if(i.push(u),64!==s){var c=a<<4&240|s>>2;if(i.push(c),64!==l){var h=s<<6&192|l;i.push(h)}}}return i},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)}}},me=function(e){var t=de(e);return pe.encodeByteArray(t,!0)},ve=function(e){return me(e).replace(/\./g,"")},ge=function(e){try{return pe.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function ye(e){return _e(void 0,e)}function _e(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]=_e(e[n],t[n]));return e}var be=function(){function e(){var t=this;ne(this,e),this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))}return re(e,[{key:"wrapCallback",value:function(e){var t=this;return function(n,i){n?t.reject(n):t.resolve(i),"function"===typeof e&&(t.promise.catch((function(){})),1===e.length?e(n):e(n,i))}}}]),e}();function we(){return"undefined"!==typeof navigator&&"string"===typeof navigator.userAgent?navigator.userAgent:""}function ke(){return"undefined"!==typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(we())}function Ae(){return!0===le||!0===ue}var xe=function(e){J(n,e);var t=ee(n);function n(e,i,r){var o;return ne(this,n),(o=t.call(this,i)).code=e,o.customData=r,o.name="FirebaseError",Object.setPrototypeOf(Q(o),n.prototype),Error.captureStackTrace&&Error.captureStackTrace(Q(o),Ce.prototype.create),o}return re(n)}(se(Error)),Ce=function(){function e(t,n,i){ne(this,e),this.service=t,this.serviceName=n,this.errors=i}return re(e,[{key:"create",value:function(e){var t=(arguments.length<=1?void 0:arguments[1])||{},n="".concat(this.service,"/").concat(e),i=this.errors[e],r=i?Ee(i,t):"Error",o="".concat(this.serviceName,": ").concat(r," (").concat(n,")."),a=new xe(n,o,t);return a}}]),e}();function Ee(e,t){return e.replace(Se,(function(e,n){var i=t[n];return null!=i?String(i):"<".concat(n,"?>")}))}var Se=/\{\$([^}]+)}/g;function Pe(e){return JSON.parse(e)}function Te(e){return JSON.stringify(e)}var Ie=function(e){var t={},n={},i={},r="";try{var o=e.split(".");t=Pe(ge(o[0])||""),n=Pe(ge(o[1])||""),r=o[2],i=n.d||{},delete n.d}catch(a){}return{header:t,claims:n,data:i,signature:r}};function Le(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Oe(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}function Me(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function Ne(e,t,n){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(i[r]=t.call(n,e[r],r,e));return i}function Re(e,t){if(e===t)return!0;for(var n=Object.keys(e),i=Object.keys(t),r=0,o=n;r<o.length;r++){var a=o[r];if(!i.includes(a))return!1;var s=e[a],l=t[a];if(Be(s)&&Be(l)){if(!Re(s,l))return!1}else if(s!==l)return!1}for(var u=0,c=i;u<c.length;u++){var h=c[u];if(!n.includes(h))return!1}return!0}function Be(e){return null!==e&&"object"===typeof e}function De(e){for(var t=[],n=function(){var e=h(r[i],2),n=e[0],o=e[1];Array.isArray(o)?o.forEach((function(e){t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))})):t.push(encodeURIComponent(n)+"="+encodeURIComponent(o))},i=0,r=Object.entries(e);i<r.length;i++)n();return t.length?"&"+t.join("&"):""}var ze=function(){function e(){ne(this,e),this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var t=1;t<this.blockSize;++t)this.pad_[t]=0;this.reset()}return re(e,[{key:"reset",value:function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0}},{key:"compress_",value:function(e,t){t||(t=0);var n=this.W_;if("string"===typeof e)for(var i=0;i<16;i++)n[i]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(var r=0;r<16;r++)n[r]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(var o=16;o<80;o++){var a=n[o-3]^n[o-8]^n[o-14]^n[o-16];n[o]=4294967295&(a<<1|a>>>31)}for(var s,l,u=this.chain_[0],c=this.chain_[1],h=this.chain_[2],f=this.chain_[3],d=this.chain_[4],p=0;p<80;p++){p<40?p<20?(s=f^c&(h^f),l=1518500249):(s=c^h^f,l=1859775393):p<60?(s=c&h|f&(c|h),l=2400959708):(s=c^h^f,l=3395469782);var m=(u<<5|u>>>27)+s+d+l+n[p]&4294967295;d=f,f=h,h=4294967295&(c<<30|c>>>2),c=u,u=m}this.chain_[0]=this.chain_[0]+u&4294967295,this.chain_[1]=this.chain_[1]+c&4294967295,this.chain_[2]=this.chain_[2]+h&4294967295,this.chain_[3]=this.chain_[3]+f&4294967295,this.chain_[4]=this.chain_[4]+d&4294967295}},{key:"update",value:function(e,t){if(null!=e){void 0===t&&(t=e.length);for(var n=t-this.blockSize,i=0,r=this.buf_,o=this.inbuf_;i<t;){if(0===o)for(;i<=n;)this.compress_(e,i),i+=this.blockSize;if("string"===typeof e){for(;i<t;)if(r[o]=e.charCodeAt(i),++i,++o===this.blockSize){this.compress_(r),o=0;break}}else for(;i<t;)if(r[o]=e[i],++i,++o===this.blockSize){this.compress_(r),o=0;break}}this.inbuf_=o,this.total_+=t}}},{key:"digest",value:function(){var e=[],t=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var n=this.blockSize-1;n>=56;n--)this.buf_[n]=255&t,t/=256;this.compress_(this.buf_);for(var i=0,r=0;r<5;r++)for(var o=24;o>=0;o-=8)e[i]=this.chain_[r]>>o&255,++i;return e}}]),e}();function je(e,t){return"".concat(e," failed: ").concat(t," argument ")}var Fe=function(e){for(var t=0,n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t++:i<2048?t+=2:i>=55296&&i<=56319?(t+=4,n++):t+=3}return t};function Ze(e){return e&&e._delegate?e._delegate:e}var We=function(){function e(t,n,i){ne(this,e),this.name=t,this.instanceFactory=n,this.type=i,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}return re(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}(),Ue="[DEFAULT]",He=function(){function e(t,n){ne(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 re(e,[{key:"get",value:function(e){var t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){var n=new be;if(this.instancesDeferred.set(t,n),this.isInitialized(t)||this.shouldAutoInitialize())try{var i=this.getOrInitializeService({instanceIdentifier:t});i&&n.resolve(i)}catch(r){}}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),i=null!==(t=null===e||void 0===e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(i)return null;throw Error("Service ".concat(this.name," is not available"))}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(r){if(i)return null;throw r}}},{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:Ue})}catch(l){}var t,n=te(this.instancesDeferred.entries());try{for(n.s();!(t=n.n()).done;){var i=h(t.value,2),r=i[0],o=i[1],a=this.normalizeInstanceIdentifier(r);try{var s=this.getOrInitializeService({instanceIdentifier:a});o.resolve(s)}catch(l){}}}catch(u){n.e(u)}finally{n.f()}}}},{key:"clearInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ue;this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}},{key:"delete",value:function(){var e=c(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Array.from(this.instances.values()),e.next=3,Promise.all([].
2concat(a(t.filter((function(e){return"INTERNAL"in e})).map((function(e){return e.INTERNAL.delete()}))),a(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]:Ue;return this.instances.has(e)}},{key:"getOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ue;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,i=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(i))throw Error("".concat(this.name,"(").concat(i,") has already been initialized"));if(!this.isComponentSet())throw Error("Component ".concat(this.name," has not been registered yet"));var r,o=this.getOrInitializeService({instanceIdentifier:i,options:n}),a=te(this.instancesDeferred.entries());try{for(a.s();!(r=a.n()).done;){var s=h(r.value,2),l=s[0],u=s[1],c=this.normalizeInstanceIdentifier(l);i===c&&u.resolve(o)}}catch(f){a.e(f)}finally{a.f()}return o}},{key:"onInit",value:function(e,t){var n,i=this.normalizeInstanceIdentifier(t),r=null!==(n=this.onInitCallbacks.get(i))&&void 0!==n?n:new Set;r.add(e),this.onInitCallbacks.set(i,r);var o=this.instances.get(i);return o&&e(o,i),function(){r.delete(e)}}},{key:"invokeOnInitCallbacks",value:function(e,t){var n=this.onInitCallbacks.get(t);if(n){var i,r=te(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;try{o(e,t)}catch(a){}}}catch(s){r.e(s)}finally{r.f()}}}},{key:"getOrInitializeService",value:function(e){var t,n=e.instanceIdentifier,i=e.options,r=void 0===i?{}:i,o=this.instances.get(n);if(!o&&this.component&&(o=this.component.instanceFactory(this.container,{instanceIdentifier:(t=n,t===Ue?void 0:t),options:r}),this.instances.set(n,o),this.instancesOptions.set(n,r),this.invokeOnInitCallbacks(o,n),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,n,o)}catch(a){}return o||null}},{key:"normalizeInstanceIdentifier",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ue;return this.component?this.component.multipleInstances?e:Ue:e}},{key:"shouldAutoInitialize",value:function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}]),e}();var Ge,Ye,Ve=function(){function e(t){ne(this,e),this.name=t,this.providers=new Map}return re(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 He(e,this);return this.providers.set(e,t),t}},{key:"getProviders",value:function(){return Array.from(this.providers.values())}}]),e}(),Qe=[];!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"}(Ye||(Ye={}));var qe={debug:Ye.DEBUG,verbose:Ye.VERBOSE,info:Ye.INFO,warn:Ye.WARN,error:Ye.ERROR,silent:Ye.SILENT},Je=Ye.INFO,Ke=(oe(Ge={},Ye.DEBUG,"log"),oe(Ge,Ye.VERBOSE,"log"),oe(Ge,Ye.INFO,"info"),oe(Ge,Ye.WARN,"warn"),oe(Ge,Ye.ERROR,"error"),Ge),Xe=function(e,t){if(!(t<e.logLevel)){var n=(new Date).toISOString(),i=Ke[t];if(!i)throw new Error("Attempted to log a message with an invalid logType (value: ".concat(t,")"));for(var r,o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];(r=console)[i].apply(r,["[".concat(n,"]  ").concat(e.name,":")].concat(a))}},$e=function(){function e(t){ne(this,e),this.name=t,this._logLevel=Je,this._logHandler=Xe,this._userLogHandler=null,Qe.push(this)}return re(e,[{key:"logLevel",get:function(){return this._logLevel},set:function(e){if(!(e in Ye))throw new TypeError('Invalid value "'.concat(e,'" assigned to `logLevel`'));this._logLevel=e}},{key:"setLogLevel",value:function(e){this._logLevel="string"===typeof e?qe[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,Ye.DEBUG].concat(t)),this._logHandler.apply(this,[this,Ye.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,Ye.VERBOSE].concat(t)),this._logHandler.apply(this,[this,Ye.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,Ye.INFO].concat(t)),this._logHandler.apply(this,[this,Ye.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,Ye.WARN].concat(t)),this._logHandler.apply(this,[this,Ye.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];
2this._userLogHandler&&this._userLogHandler.apply(this,[this,Ye.ERROR].concat(t)),this._logHandler.apply(this,[this,Ye.ERROR].concat(t))}}]),e}();function et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?et(Object(n),!0).forEach((function(t){oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nt,it;var rt=new WeakMap,ot=new WeakMap,at=new WeakMap,st=new WeakMap,lt=new WeakMap;var ut={get:function(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return ot.get(e);if("objectStoreNames"===t)return e.objectStoreNames||at.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return ft(e[t])},set:function(e,t,n){return e[t]=n,!0},has:function(e,t){return e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e}};function ct(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(it||(it=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return e.apply(dt(this),n),ft(rt.get(this))}:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return ft(e.apply(dt(this),n))}:function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];var o=e.call.apply(e,[dt(this),t].concat(i));return at.set(o,t.sort?t.sort():[t]),ft(o)}}function ht(e){return"function"===typeof e?ct(e):(e instanceof IDBTransaction&&function(e){if(!ot.has(e)){var t=new Promise((function(t,n){var i=function(){e.removeEventListener("complete",r),e.removeEventListener("error",o),e.removeEventListener("abort",o)},r=function(){t(),i()},o=function(){n(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",r),e.addEventListener("error",o),e.addEventListener("abort",o)}));ot.set(e,t)}}(e),t=e,(nt||(nt=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some((function(e){return t instanceof e}))?new Proxy(e,ut):e);var t}function ft(e){if(e instanceof IDBRequest)return function(e){var t=new Promise((function(t,n){var i=function(){e.removeEventListener("success",r),e.removeEventListener("error",o)},r=function(){t(ft(e.result)),i()},o=function(){n(e.error),i()};e.addEventListener("success",r),e.addEventListener("error",o)}));return t.then((function(t){t instanceof IDBCursor&&rt.set(t,e)})).catch((function(){})),lt.set(t,e),t}(e);if(st.has(e))return st.get(e);var t=ht(e);return t!==e&&(st.set(e,t),lt.set(t,e)),t}var dt=function(e){return lt.get(e)};var pt,mt,vt=["get","getKey","getAll","getAllKeys","count"],gt=["put","add","delete","clear"],yt=new Map;function _t(e,t){if(e instanceof IDBDatabase&&!(t in e)&&"string"===typeof t){if(yt.get(t))return yt.get(t);var n=t.replace(/FromIndex$/,""),i=t!==n,r=gt.includes(n);if(n in(i?IDBIndex:IDBObjectStore).prototype&&(r||vt.includes(n))){var o=function(){var e=c(l().mark((function e(t){var o,a,s,u,c,h,f=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(a=this.transaction(t,r?"readwrite":"readonly"),s=a.store,u=f.length,c=new Array(u>1?u-1:0),h=1;h<u;h++)c[h-1]=f[h];return i&&(s=s.index(c.shift())),e.next=6,Promise.all([(o=s)[n].apply(o,c),r&&a.done]);case 6:return e.abrupt("return",e.sent[0]);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}();return yt.set(t,o),o}}}ut=function(e){return tt(tt({},e),{},{get:function(t,n,i){return _t(t,n)||e.get(t,n,i)},has:function(t,n){return!!_t(t,n)||e.has(t,n)}})}(ut);var bt=function(){function e(t){ne(this,e),this.container=t}return re(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 wt="@firebase/app",kt="0.7.32",At=new $e("@firebase/app"),xt="[DEFAULT]",Ct=(oe(pt={},wt,"fire-core"),oe(pt,"@firebase/app-compat","fire-core-compat"),oe(pt,"@firebase/analytics","fire-analytics"),oe(pt,"@firebase/analytics-compat","fire-analytics-compat"),oe(pt,"@firebase/app-check","fire-app-check"),oe(pt,"@firebase/app-check-compat","fire-app-check-compat"),oe(pt,"@firebase/auth","fire-auth"),oe(pt,"@firebase/auth-compat","fire-auth-compat"),oe(pt,"@firebase/database","fire-rtdb"),oe(pt,"@firebase/database-compat","fire-rtdb-compat"),oe(pt,"@firebase/functions","fire-fn"),oe(pt,"@firebase/functions-compat","fire-fn-compat"),oe(pt,"@firebase/installations","fire-iid"),oe(pt,"@firebase/installations-compat","fire-iid-compat"),oe(pt,"@firebase/messaging","fire-fcm"),oe(pt,"@firebase/messaging-compat","fire-fcm-compat"),oe(pt,"@firebase/performance","fire-perf"),oe(pt,"@firebase/performance-compat","fire-perf-compat"),oe(pt,"@firebase/remote-config","fire-rc"),oe(pt,"@firebase/remote-config-compat","fire-rc-compat"),oe(pt,"@firebase/storage","fire-gcs"),oe(pt,"@firebase/storage-compat","fire-gcs-compat"),oe(pt,"@firebase/firestore","fire-fst"),oe(pt,"@firebase/firestore-compat","fire-fst-compat"),oe(pt,"fire-js","fire-js"),oe(pt,"firebase","fire-js-all"),pt),Et=new Map,St=new Map;function Pt(e,t){try{e.container.addComponent(t)}catch(n){At.debug("Component ".concat(t.name," failed to register with FirebaseApp ").concat(e.name),n)}}function Tt(e){var t=e.name;if(St.has(t))return At.debug("There were multiple attempts to register component ".concat(t,".")),!1;St.set(t,e);var n,i=te(Et.values());try{for(i.s();!(n=i.n()).done;){Pt(n.value,e)}}catch(r){i.e(r)}finally{i.f()}return!0}function It(e,t){var n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}var Lt=(oe(mt={},"no-app","No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()"),oe(mt,"bad-app-name","Illegal App name: '{$appName}"),oe(mt,"duplicate-app","Firebase App named '{$appName}' already exists with different options or config"),oe(mt,"app-deleted","Firebase App named '{$appName}
2' already deleted"),oe(mt,"invalid-app-argument","firebase.{$appName}() takes either no argument or a Firebase App instance."),oe(mt,"invalid-log-argument","First argument to `onLog` must be null or a function."),oe(mt,"idb-open","Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}."),oe(mt,"idb-get","Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}."),oe(mt,"idb-set","Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}."),oe(mt,"idb-delete","Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."),mt),Ot=new Ce("app","Firebase",Lt),Mt=function(){function e(t,n,i){var r=this;ne(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=i,this.container.addComponent(new We("app",(function(){return r}),"PUBLIC"))}return re(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 Ot.create("app-deleted",{appName:this._name})}}]),e}();function Nt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xt,t=Et.get(e);if(!t)throw Ot.create("no-app",{appName:e});return t}function Rt(e,t,n){var i,r=null!==(i=Ct[e])&&void 0!==i?i:e;n&&(r+="-".concat(n));var o=r.match(/\s|\//),a=t.match(/\s|\//);if(o||a){var s=['Unable to register library "'.concat(r,'" with version "').concat(t,'":')];return o&&s.push('library name "'.concat(r,'" contains illegal characters (whitespace or "/")')),o&&a&&s.push("and"),a&&s.push('version name "'.concat(t,'" contains illegal characters (whitespace or "/")')),void At.warn(s.join(" "))}Tt(new We("".concat(r,"-version"),(function(){return{library:r,version:t}}),"VERSION"))}var Bt="firebase-heartbeat-store",Dt=null;function zt(){return Dt||(Dt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.blocked,r=n.upgrade,o=n.blocking,a=n.terminated,s=indexedDB.open(e,t),l=ft(s);return r&&s.addEventListener("upgradeneeded",(function(e){r(ft(s.result),e.oldVersion,e.newVersion,ft(s.transaction))})),i&&s.addEventListener("blocked",(function(){return i()})),l.then((function(e){a&&e.addEventListener("close",(function(){return a()})),o&&e.addEventListener("versionchange",(function(){return o()}))})).catch((function(){})),l}("firebase-heartbeat-database",1,{upgrade:function(e,t){if(0===t)e.createObjectStore(Bt)}}).catch((function(e){throw Ot.create("idb-open",{originalErrorMessage:e.message})}))),Dt}function jt(e){return Ft.apply(this,arguments)}function Ft(){return(Ft=c(l().mark((function e(t){var n,i,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,zt();case 3:return i=e.sent,e.abrupt("return",i.transaction(Bt).objectStore(Bt).get(Ut(t)));case 7:e.prev=7,e.t0=e.catch(0),e.t0 instanceof xe?At.warn(e.t0.message):(r=Ot.create("idb-get",{originalErrorMessage:null===(n=e.t0)||void 0===n?void 0:n.message}),At.warn(r.message));case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}function Zt(e,t){return Wt.apply(this,arguments)}function Wt(){return(Wt=c(l().mark((function e(t,n){var i,r,o,a,s;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,zt();case 3:return r=e.sent,o=r.transaction(Bt,"readwrite"),a=o.objectStore(Bt),e.next=8,a.put(n,Ut(t));case 8:return e.abrupt("return",o.done);case 11:e.prev=11,e.t0=e.catch(0),e.t0 instanceof xe?At.warn(e.t0.message):(s=Ot.create("idb-set",{originalErrorMessage:null===(i=e.t0)||void 0===i?void 0:i.message}),At.warn(s.message));case 14:case"end":return e.stop()}}),e,null,[[0,11]])})))).apply(this,arguments)}function Ut(e){return"".concat(e.name,"!").concat(e.options.appId)}var Ht=function(){function e(t){var n=this;ne(this,e),this.container=t,this._heartbeatsCache=null;var i=this.container.getProvider("app").getImmediate();this._storage=new Qt(i),this._heartbeatsCachePromise=this._storage.read().then((function(e){return n._heartbeatsCache=e,e}))}return re(e,[{key:"triggerHeartbeat",value:function(){var e=c(l().mark((function e(){var t,n,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.container.getProvider("platform-logger").getImmediate(),n=t.getPlatformInfoString(),i=Gt(),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!==i&&!this._heartbeatsCache.heartbeats.some((function(e){return e.date===i}))){e.next=11;break}return e.abrupt("return");case 11:this._heartbeatsCache.heartbeats.push({date:i,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=c(l().mark((function e(){var t,n,i,r,o;return l().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=Gt(),n=Yt(this._heartbeatsCache.heartbeats),i=n.heartbeatsToSend,r=n.unsentEntries,o=ve(JSON.stringify({version:2,heartbeats:i})),this._heartbeatsCache.lastSentHeartbeatDate=t,!(r.length>0)){e.next=15;break}return this._heartbeatsCache.heartbeats=r,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",o);case 18:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}();function Gt(){return(new Date).toISOString().substring(0,10)}function Yt(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1024,i=[],r=e.slice(),o=te(e);try{var a=function(){var e=t.value,o=i.find((function(t){return t.agent===e.agent}));if(o){if(o.dates.push(e.date),qt(i)>n)return o.dates.pop(),"break"}else if(i.push({agent:e.agent,dates:[e.date]}),qt(i)>n)return i.pop(),"break";r=r.slice(1)};for(o.s();!(t=o.n()).done;){var s=a();if("break"===s)break}}catch(l){o.e(l)}finally{o.f()}return{heartbeatsToSend:i,unsentEntries:r}}var Vt,Qt=function(){function e(t){ne(this,e),this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}return re(e,[{key:"runIndexedDBEnvironmentCheck",value:function(){var e=c(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("object"===typeof indexedDB){e.next=4;break}return e.abrupt("return",!1);case 4:return e.abrupt("return",new Promise((function(e,t){try{var n=!0,i="validate-browser-context-for-indexeddb-analytics-module",r=self.indexedDB.open(i);r.onsuccess=function(){r.result.close(),n||self.indexedDB.deleteDatabase(i),e(!0)},r.onupgradeneeded=function(){n=!1},r.onerror=function(){var e;t((null===(e=r.error)||void 0===e?void 0:e.message)||"")}}catch(pn){t(pn)}})).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=c(l().mark((function e(){var t;return l().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,jt(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)}}()}
2,{key:"overwrite",value:function(){var e=c(l().mark((function e(t){var n,i;return l().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 i=e.sent,e.abrupt("return",Zt(this.app,{lastSentHeartbeatDate:null!==(n=t.lastSentHeartbeatDate)&&void 0!==n?n:i.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=c(l().mark((function e(t){var n,i;return l().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 i=e.sent,e.abrupt("return",Zt(this.app,{lastSentHeartbeatDate:null!==(n=t.lastSentHeartbeatDate)&&void 0!==n?n:i.lastSentHeartbeatDate,heartbeats:[].concat(a(i.heartbeats),a(t.heartbeats))}));case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}();function qt(e){return ve(JSON.stringify({version:2,heartbeats:e})).length}Vt="",Tt(new We("platform-logger",(function(e){return new bt(e)}),"PRIVATE")),Tt(new We("heartbeat",(function(e){return new Ht(e)}),"PRIVATE")),Rt(wt,kt,Vt),Rt(wt,kt,"esm2017"),Rt("fire-js","");var Jt="@firebase/database",Kt="0.13.6",Xt="";var $t=function(){function e(t){ne(this,e),this.domStorage_=t,this.prefix_="firebase:"}return re(e,[{key:"set",value:function(e,t){null==t?this.domStorage_.removeItem(this.prefixedName_(e)):this.domStorage_.setItem(this.prefixedName_(e),Te(t))}},{key:"get",value:function(e){var t=this.domStorage_.getItem(this.prefixedName_(e));return null==t?null:Pe(t)}},{key:"remove",value:function(e){this.domStorage_.removeItem(this.prefixedName_(e))}},{key:"prefixedName_",value:function(e){return this.prefix_+e}},{key:"toString",value:function(){return this.domStorage_.toString()}}]),e}(),en=function(){function e(){ne(this,e),this.cache_={},this.isInMemoryStorage=!0}return re(e,[{key:"set",value:function(e,t){null==t?delete this.cache_[e]:this.cache_[e]=t}},{key:"get",value:function(e){return Le(this.cache_,e)?this.cache_[e]:null}},{key:"remove",value:function(e){delete this.cache_[e]}}]),e}(),tn=function(e){try{if("undefined"!==typeof window&&"undefined"!==typeof window[e]){var t=window[e];return t.setItem("firebase:sentinel","cache"),t.removeItem("firebase:sentinel"),new $t(t)}}catch(n){}return new en},nn=tn("localStorage"),rn=tn("sessionStorage"),on=new $e("@firebase/database"),an=function(){var e=1;return function(){return e++}}(),sn=function(e){var t=function(e){for(var t=[],n=0,i=0;i<e.length;i++){var r=e.charCodeAt(i);if(r>=55296&&r<=56319){var o=r-55296;i++,he(i<e.length,"Surrogate pair missing trail surrogate."),r=65536+(o<<10)+(e.charCodeAt(i)-56320)}r<128?t[n++]=r:r<2048?(t[n++]=r>>6|192,t[n++]=63&r|128):r<65536?(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128)}return t}(e),n=new ze;n.update(t);var i=n.digest();return pe.encodeByteArray(i)},ln=function e(){for(var t="",n=0;n<arguments.length;n++){var i=n<0||arguments.length<=n?void 0:arguments[n];Array.isArray(i)||i&&"object"===typeof i&&"number"===typeof i.length?t+=e.apply(null,i):t+="object"===typeof i?Te(i):i,t+=" "}return t},un=null,cn=!0,hn=function(e,t){he(!t||!0===e||!1===e,"Can't turn on custom loggers persistently."),!0===e?(on.logLevel=Ye.VERBOSE,un=on.log.bind(on),t&&rn.set("logging_enabled",!0)):"function"===typeof e?un=e:(un=null,rn.remove("logging_enabled"))},fn=function(){if(!0===cn&&(cn=!1,null===un&&!0===rn.get("logging_enabled")&&hn(!0)),un){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=ln.apply(null,t);un(i)}},dn=function(e){return function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];fn.apply(void 0,[e].concat(n))}},pn=function(){var e="FIREBASE INTERNAL ERROR: "+ln.apply(void 0,arguments);on.error(e)},mn=function(){var e="FIREBASE FATAL ERROR: ".concat(ln.apply(void 0,arguments));throw on.error(e),new Error(e)},vn=function(){var e="FIREBASE WARNING: "+ln.apply(void 0,arguments);on.warn(e)},gn=function(e){return"number"===typeof e&&(e!==e||e===Number.POSITIVE_INFINITY||e===Number.NEGATIVE_INFINITY)},yn="[MIN_NAME]",_n="[MAX_NAME]",bn=function(e,t){if(e===t)return 0;if(e===yn||t===_n)return-1;if(t===yn||e===_n)return 1;var n=In(e),i=In(t);return null!==n?null!==i?n-i===0?e.length-t.length:n-i:-1:null!==i?1:e<t?-1:1},wn=function(e,t){return e===t?0:e<t?-1:1},kn=function(e,t){if(t&&e in t)return t[e];throw new Error("Missing required key ("+e+") in object: "+Te(t))},An=function e(t){if("object"!==typeof t||null===t)return Te(t);var n=[];for(var i in t)n.push(i);n.sort();for(var r="{",o=0;o<n.length;o++)0!==o&&(r+=","),r+=Te(n[o]),r+=":",r+=e(t[n[o]]);return r+="}"},xn=function(e,t){var n=e.length;if(n<=t)return[e];for(var i=[],r=0;r<n;r+=t)r+t>n?i.push(e.substring(r,n)):i.push(e.substring(r,r+t));return i};function Cn(e,t){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])}var En=function(e){he(!gn(e),"Invalid JSON number");var t,n,i,r,o,a=1023;0===e?(n=0,i=0,t=1/e===-1/0?1:0):(t=e<0,(e=Math.abs(e))>=Math.pow(2,-1022)?(n=(r=Math.min(Math.floor(Math.log(e)/Math.LN2),a))+a,i=Math.round(e*Math.pow(2,52-r)-Math.pow(2,52))):(n=0,i=Math.round(e/Math.pow(2,-1074))));var s=[];for(o=52;o;o-=1)s.push(i%2?1:0),i=Math.floor(i/2);for(o=11;o;o-=1)s.push(n%2?1:0),n=Math.floor(n/2);s.push(t?1:0),s.reverse();var l=s.join(""),u="";for(o=0;o<64;o+=8){var c=parseInt(l.substr(o,8),2).toString(16);1===c.length&&(c="0"+c),u+=c}return u.toLowerCase()};var Sn=new RegExp("^-?(0*)\\d{1,10}$"),Pn=-2147483648,Tn=2147483647,In=function(e){if(Sn.test(e)){var t=Number(e);if(t>=Pn&&t<=Tn)return t}return null},Ln=function(e){try{e()}catch(t){setTimeout((function(){var e=t.stack||"";throw vn("Exception was thrown by user callback.",e),t}),Math.floor(0))}},On=function(e,t){var n=setTimeout(e,t);return"number"===typeof n&&"undefined"!==typeof Deno&&Deno.unrefTimer?Deno.unrefTimer(n):"object"===typeof n&&n.unref&&n.unref(),n},Mn=function(){function e(t,n){var i=this;ne(this,e),this.appName_=t,this.appCheckProvider=n,this.appCheck=null===n||void 0===n?void 0:n.getImmediate({optional:!0}),this.appCheck||null===n||void 0===n||n.get().then((function(e){return i.appCheck=e}))}return re(e,[{key:"getToken",value:function(e){var t=this;return this.appCheck?this.appCheck.getToken(e):new Promise((function(n,i){setTimeout((function(){t.appCheck?t.getToken(e).then(n,i):n(null)}),0)}))}},{key:"addTokenChangeListener",value:function(e){var t;null===(t=this.appCheckProvider)||void 0===t||t.get().then((function(t){return t.addTokenListener(e)}))}},{key:"notifyForInvalidToken",value:function(){vn('Provided AppCheck credentials for the app named "'.concat(this.appName_,'" ')+"are invalid. This usually indicates your app was not initialized correctly.")}}]),e}(),Nn=function(){function e(t,n,i){var r=this;ne(this,e),this.appName_=t,this.firebaseOptions_=n,this.authProvider_=i,this.auth_=null,this.auth_=i.getImmediate({optional:!0}),this.auth_||i.onInit((function(e){return r.auth_=e}))}return re(e,[{key:"getToken",value:function(e){var t=this;return this.auth_?this.auth_.getToken(e).catch((function(e){return e&&"auth/token-not-initialized"===e.code?(fn("Got auth/token-not-initialized error.  Treating as null token."),null):Promise.reject(e)})):new Promise((function(n,i){setTimeout((function(){t.auth_?t.getToken(e).then(n,i):n(null)}),0)}))}},{key:"addTokenChangeListener",value:function(e){this.auth_?this.auth_.addAuthTokenListener(e):this.authProvider_.get().then((function(t){return t.addAuthTokenListener(e)}))}},{key:"removeTokenChangeListener",value:function(e){this.authProvider_.get().then((function(t){return t.removeAuthTokenListener(e)}))}},{key:"notifyForInvalidToken",value:function(){var e='Provided authentication credentials for the app named "'+this.appName_+'" are invalid. This usually indicates your app was not initialized correctly. ';"credential"in this.firebaseOptions_?e+='Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.firebaseOptions_?e+='Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':e+='Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',vn(e)}}]),e}(),Rn=function(){function e(t){ne(this,e),this.accessToken=t}return re(e,[{key:"getToken",value:function(e){return Promise.resolve({accessToken:this.accessToken})}},{key:"addTokenChangeListener",value:function(e){e(this.accessToken)}},{key:"removeTokenChangeListener",value:function(e){}},{key:"notifyForInvalidToken",value:function(){}}]),e}();Rn.OWNER="owner";var Bn="5",Dn=/(console\.firebase|firebase-console-\w+\.corp|firebase\.corp)\.google\.com/,zn="websocket",jn="long_polling",Fn=function(){function e(t,n,i,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",s=arguments.length>6&&void 0!==arguments[6]&&arguments[6];ne(this,e),this.secure=n,this.namespace=i,this.webSocketOnly=r,this.nodeAdmin=o,this.persistenceKey=a,this.includeNamespaceInQueryParams=s,this._host=t.toLowerCase(),this._domain=this._host.substr(this._host.indexOf(".")+1),this.internalHost=nn.get("host:"+t)||this._host}return re(e,[{key:"isCacheableHost",value:function(){return"s-"===this.internalHost.substr(0,2)}},{key:"isCustomHost",value:function(){return"firebaseio.com"!==this._domain&&"firebaseio-demo.com"!==this._domain}},{key:"host",get:function(){return this._host},set:function(e){e!==this.internalHost&&(this.internalHost=e,this.isCacheableHost()&&nn.set("host:"+this._host,this.internalHost))}},{key:"toString",value:function(){var e=this.toURLString();return this.persistenceKey&&(e+="<"+this.persistenceKey+">"),e}},{key:"toURLString",value:function(){var e=this.secure?"https://":"http://",t=this.includeNamespaceInQueryParams?"?ns=".concat(this.namespace):"";return"".concat(e).concat(this.host,"/").concat(t)}}]),e}();function Zn(e,t,n){var i;if(he("string"===typeof t,"typeof type must == string"),he("object"===typeof n,"typeof params must == object"),t===zn)i=(e.secure?"wss://":"ws://")+e.internalHost+"/.ws?";else{if(t!==jn)throw new Error("Unknown connection type: "+t);i=(e.secure?"https://":"http://")+e.internalHost+"/.lp?"}(function(e){return e.host!==e.internalHost||e.isCustomHost()||e.includeNamespaceInQueryParams})(e)&&(n.ns=e.namespace);var r=[];return Cn(n,(function(e,t){r.push(e+"="+t)}
2)),i+r.join("&")}var Wn=function(){function e(){ne(this,e),this.counters_={}}return re(e,[{key:"incrementCounter",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;Le(this.counters_,e)||(this.counters_[e]=0),this.counters_[e]+=t}},{key:"get",value:function(){return ye(this.counters_)}}]),e}(),Un={},Hn={};function Gn(e){var t=e.toString();return Un[t]||(Un[t]=new Wn),Un[t]}var Yn=function(){function e(t){ne(this,e),this.onMessage_=t,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}return re(e,[{key:"closeAfter",value:function(e,t){this.closeAfterResponse=e,this.onClose=t,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)}},{key:"handleResponse",value:function(e,t){var n=this;this.pendingResponses[e]=t;for(var i=function(){var e=n.pendingResponses[n.currentResponseNum];delete n.pendingResponses[n.currentResponseNum];for(var t=function(t){e[t]&&Ln((function(){n.onMessage_(e[t])}))},i=0;i<e.length;++i)t(i);if(n.currentResponseNum===n.closeAfterResponse)return n.onClose&&(n.onClose(),n.onClose=null),"break";n.currentResponseNum++};this.pendingResponses[this.currentResponseNum];){if("break"===i())break}}}]),e}(),Vn="start",Qn="close",qn=function(){function e(t,n,i,r,o,a,s){var l=this;ne(this,e),this.connId=t,this.repoInfo=n,this.applicationId=i,this.appCheckToken=r,this.authToken=o,this.transportSessionId=a,this.lastSessionId=s,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=dn(t),this.stats_=Gn(n),this.urlFn=function(e){return l.appCheckToken&&(e.ac=l.appCheckToken),Zn(n,jn,e)}}return re(e,[{key:"open",value:function(e,t){var n=this;this.curSegmentNum=0,this.onDisconnect_=t,this.myPacketOrderer=new Yn(e),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout((function(){n.log_("Timed out trying to connect."),n.onClosed_(),n.connectTimeoutTimer_=null}),Math.floor(3e4)),function(e){if(Ae()||"complete"===document.readyState)e();else{var t=!1,n=function n(){document.body?t||(t=!0,e()):setTimeout(n,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",(function(){"complete"===document.readyState&&n()})),window.attachEvent("onload",n))}}((function(){if(!n.isClosed_){n.scriptTagHolder=new Jn((function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var r=t[0],o=t[1],a=t[2];t[3],t[4];if(n.incrementIncomingBytes_(t),n.scriptTagHolder)if(n.connectTimeoutTimer_&&(clearTimeout(n.connectTimeoutTimer_),n.connectTimeoutTimer_=null),n.everConnected_=!0,r===Vn)n.id=o,n.password=a;else{if(r!==Qn)throw new Error("Unrecognized command received: "+r);o?(n.scriptTagHolder.sendNewPolls=!1,n.myPacketOrderer.closeAfter(o,(function(){n.onClosed_()}))):n.onClosed_()}}),(function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var r=t[0],o=t[1];n.incrementIncomingBytes_(t),n.myPacketOrderer.handleResponse(r,o)}),(function(){n.onClosed_()}),n.urlFn);var e={start:"t"};e.ser=Math.floor(1e8*Math.random()),n.scriptTagHolder.uniqueCallbackIdentifier&&(e.cb=n.scriptTagHolder.uniqueCallbackIdentifier),e.v=Bn,n.transportSessionId&&(e.s=n.transportSessionId),n.lastSessionId&&(e.ls=n.lastSessionId),n.applicationId&&(e.p=n.applicationId),n.appCheckToken&&(e.ac=n.appCheckToken),"undefined"!==typeof location&&location.hostname&&Dn.test(location.hostname)&&(e.r="f");var t=n.urlFn(e);n.log_("Connecting via long-poll to "+t),n.scriptTagHolder.addTag(t,(function(){}))}}))}},{key:"start",value:function(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)}},{key:"markConnectionHealthy",value:function(){}},{key:"shutdown_",value:function(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)}},{key:"onClosed_",value:function(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))}},{key:"close",value:function(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())}},{key:"send",value:function(e){var t=Te(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);
2for(var n=me(t),i=xn(n,1840),r=0;r<i.length;r++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,i.length,i[r]),this.curSegmentNum++}},{key:"addDisconnectPingFrame",value:function(e,t){if(!Ae()){this.myDisconnFrame=document.createElement("iframe");var n={dframe:"t"};n.id=e,n.pw=t,this.myDisconnFrame.src=this.urlFn(n),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}}},{key:"incrementIncomingBytes_",value:function(e){var t=Te(e).length;this.bytesReceived+=t,this.stats_.incrementCounter("bytes_received",t)}}],[{key:"forceAllow",value:function(){e.forceAllow_=!0}},{key:"forceDisallow",value:function(){e.forceDisallow_=!0}},{key:"isAvailable",value:function(){return!Ae()&&(!!e.forceAllow_||!e.forceDisallow_&&"undefined"!==typeof document&&null!=document.createElement&&!("object"===typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href))&&!("object"===typeof Windows&&"object"===typeof Windows.UI))}}]),e}(),Jn=function(){function e(t,n,i,r){if(ne(this,e),this.onDisconnect=i,this.urlFn=r,this.outstandingRequests=new Set,this.pendingSegs=[],this.currentSerial=Math.floor(1e8*Math.random()),this.sendNewPolls=!0,Ae())this.commandCB=t,this.onMessageCB=n;else{this.uniqueCallbackIdentifier=an(),window["pLPCommand"+this.uniqueCallbackIdentifier]=t,window["pRTLPCB"+this.uniqueCallbackIdentifier]=n,this.myIFrame=e.createIFrame_();var o="";if(this.myIFrame.src&&"javascript:"===this.myIFrame.src.substr(0,"javascript:".length))o='<script>document.domain="'+document.domain+'";<\/script>';var a="<html><body>"+o+"</body></html>";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(a),this.myIFrame.doc.close()}catch(s){fn("frame writing exception"),s.stack&&fn(s.stack),fn(s)}}}return re(e,[{key:"close",value:function(){var e=this;this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.innerHTML="",setTimeout((function(){null!==e.myIFrame&&(document.body.removeChild(e.myIFrame),e.myIFrame=null)}),Math.floor(0)));var t=this.onDisconnect;t&&(this.onDisconnect=null,t())}},{key:"startLongPoll",value:function(e,t){for(this.myID=e,this.myPW=t,this.alive=!0;this.newRequest_(););}},{key:"newRequest_",value:function(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;var e={};e.id=this.myID,e.pw=this.myPW,e.ser=this.currentSerial;for(var t=this.urlFn(e),n="",i=0;this.pendingSegs.length>0;){if(!(this.pendingSegs[0].d.length+30+n.length<=1870))break;var r=this.pendingSegs.shift();n=n+"&seg"+i+"="+r.seg+"&ts"+i+"="+r.ts+"&d"+i+"="+r.d,i++}return t+=n,this.addLongPollTag_(t,this.currentSerial),!0}return!1}},{key:"enqueueSegment",value:function(e,t,n){this.pendingSegs.push({seg:e,ts:t,d:n}),this.alive&&this.newRequest_()}},{key:"addLongPollTag_",value:function(e,t){var n=this;this.outstandingRequests.add(t);var i=function(){n.outstandingRequests.delete(t),n.newRequest_()},r=setTimeout(i,Math.floor(25e3));this.addTag(e,(function(){clearTimeout(r),i()}))}},{key:"addTag",value:function(e,t){var n=this;Ae()?this.doNodeLongPoll(e,t):setTimeout((function(){try{if(!n.sendNewPolls)return;var i=n.myIFrame.doc.createElement("script");i.type="text/javascript",i.async=!0,i.src=e,i.onload=i.onreadystatechange=function(){var e=i.readyState;e&&"loaded"!==e&&"complete"!==e||(i.onload=i.onreadystatechange=null,i.parentNode&&i.parentNode.removeChild(i),t())},i.onerror=function(){fn("Long-poll script failed to load: "+e),n.sendNewPolls=!1,n.close()},n.myIFrame.doc.body.appendChild(i)}catch(r){}}),Math.floor(1))}}],[{key:"createIFrame_",value:function(){var e=document.createElement("iframe");if(e.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(e);try{e.contentWindow.document||fn("No IE domain setting required")}catch(n){var t=document.domain;e.src="javascript:void((function(){document.open();document.domain='"+t+"';document.close();})())"}return e.contentDocument?e.doc=e.contentDocument:e.contentWindow?e.doc=e.contentWindow.document:e.document&&(e.doc=e.document),e}}]),e}(),Kn=null;"undefined"!==typeof MozWebSocket?Kn=MozWebSocket:"undefined"!==typeof WebSocket&&(Kn=WebSocket);var Xn=function(){function e(t,n,i,r,o,a,s){ne(this,e),this.connId=t,this.applicationId=i,this.appCheckToken=r,this.authToken=o,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=dn(this.connId),this.stats_=Gn(n),this.connURL=e.connectionURL_(n,a,s,r,i),this.nodeAdmin=n.nodeAdmin}return re(e,[{key:"open",value:function(e,t){var n=this;this.onDisconnect=t,this.onMessage=e,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,nn.set("previous_websocket_failure",!0);try{var i;if(Ae()){var r=this.nodeAdmin?"AdminNode":"Node";i={headers:{"User-Agent":"Firebase/".concat(Bn,"/").concat(Xt,"/").concat(process.platform,"/").concat(r),"X-Firebase-GMPID":this.applicationId||""}},this.authToken&&(i.headers.Authorization="Bearer ".concat(this.authToken)),this.appCheckToken&&(i.headers["X-Firebase-AppCheck"]=this.appCheckToken);var o={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0},a=0===this.connURL.indexOf("wss://")?o.HTTPS_PROXY||o.https_proxy:o.HTTP_PROXY||o.http_proxy;a&&(i.proxy={origin:a})}this.mySock=new Kn(this.connURL,[],i)}catch(l){this.log_("Error instantiating WebSocket.");var s=l.message||l.data;return s&&this.log_(s),void this.onClosed_()}this.mySock.onopen=function(){n.log_("Websocket connected."),n.everConnected_=!0}
2,this.mySock.onclose=function(){n.log_("Websocket connection was disconnected."),n.mySock=null,n.onClosed_()},this.mySock.onmessage=function(e){n.handleIncomingFrame(e)},this.mySock.onerror=function(e){n.log_("WebSocket error.  Closing connection.");var t=e.message||e.data;t&&n.log_(t),n.onClosed_()}}},{key:"start",value:function(){}},{key:"markConnectionHealthy",value:function(){nn.remove("previous_websocket_failure")}},{key:"appendFrame_",value:function(e){if(this.frames.push(e),this.frames.length===this.totalFrames){var t=this.frames.join("");this.frames=null;var n=Pe(t);this.onMessage(n)}}},{key:"handleNewFrameCount_",value:function(e){this.totalFrames=e,this.frames=[]}},{key:"extractFrameCount_",value:function(e){if(he(null===this.frames,"We already have a frame buffer"),e.length<=6){var t=Number(e);if(!isNaN(t))return this.handleNewFrameCount_(t),null}return this.handleNewFrameCount_(1),e}},{key:"handleIncomingFrame",value:function(e){if(null!==this.mySock){var t=e.data;if(this.bytesReceived+=t.length,this.stats_.incrementCounter("bytes_received",t.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(t);else{var n=this.extractFrameCount_(t);null!==n&&this.appendFrame_(n)}}}},{key:"send",value:function(e){this.resetKeepAlive();var t=Te(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);var n=xn(t,16384);n.length>1&&this.sendString_(String(n.length));for(var i=0;i<n.length;i++)this.sendString_(n[i])}},{key:"shutdown_",value:function(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)}},{key:"onClosed_",value:function(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))}},{key:"close",value:function(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())}},{key:"resetKeepAlive",value:function(){var e=this;clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval((function(){e.mySock&&e.sendString_("0"),e.resetKeepAlive()}),Math.floor(45e3))}},{key:"sendString_",value:function(e){try{this.mySock.send(e)}catch(t){this.log_("Exception thrown from WebSocket.send():",t.message||t.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}}}],[{key:"connectionURL_",value:function(e,t,n,i,r){var o={};return o.v=Bn,!Ae()&&"undefined"!==typeof location&&location.hostname&&Dn.test(location.hostname)&&(o.r="f"),t&&(o.s=t),n&&(o.ls=n),i&&(o.ac=i),r&&(o.p=r),Zn(e,zn,o)}},{key:"forceDisallow",value:function(){e.forceDisallow_=!0}},{key:"isAvailable",value:function(){var t=!1;if("undefined"!==typeof navigator&&navigator.userAgent){var n=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);n&&n.length>1&&parseFloat(n[1])<4.4&&(t=!0)}return!t&&null!==Kn&&!e.forceDisallow_}},{key:"previouslyFailed",value:function(){return nn.isInMemoryStorage||!0===nn.get("previous_websocket_failure")}}]),e}();Xn.responsesRequiredToBeHealthy=2,Xn.healthyTimeout=3e4;var $n=function(){function e(t){ne(this,e),this.initTransports_(t)}return re(e,[{key:"initTransports_",value:function(t){var n=Xn&&Xn.isAvailable(),i=n&&!Xn.previouslyFailed();if(t.webSocketOnly&&(n||vn("wss:// URL used, but browser isn't known to support websockets.  Trying anyway."),i=!0),i)this.transports_=[Xn];else{var r,o=this.transports_=[],a=te(e.ALL_TRANSPORTS);try{for(a.s();!(r=a.n()).done;){var s=r.value;s&&s.isAvailable()&&o.push(s)}}catch(l){a.e(l)}finally{a.f()}e.globalTransportInitialized_=!0}}},{key:"initialTransport",value:function(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")}},{key:"upgradeTransport",value:function(){return this.transports_.length>1?this.transports_[1]:null}}],[{key:"ALL_TRANSPORTS",get:function(){return[qn,Xn]}},{key:"IS_TRANSPORT_INITIALIZED",get:function(){return this.globalTransportInitialized_}}]),e}();$n.globalTransportInitialized_=!1;var ei=function(){function e(t,n,i,r,o,a,s,l,u,c){ne(this,e),this.id=t,this.repoInfo_=n,this.applicationId_=i,this.appCheckToken_=r,this.authToken_=o,this.onMessage_=a,this.onReady_=s,this.onDisconnect_=l,this.onKill_=u,this.lastSessionId=c,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=dn("c:"+this.id+":"),this.transportManager_=new $n(n),this.log_("Connection created"),this.start_()}return re(e,[{key:"start_",value:function(){var e=this,t=this.transportManager_.initialTransport();this.conn_=new t(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,null,this.lastSessionId),this.primaryResponsesRequired_=t.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.conn_),i=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout((function(){e.conn_&&e.conn_.open(n,i)}),Math.floor(0));var r=t.healthyTimeout||0;r>0&&(this.healthyTimeout_=On((function(){e.healthyTimeout_=null,e.isHealthy_||(e.conn_&&e.conn_.bytesReceived>
2102400?(e.log_("Connection exceeded healthy timeout but has received "+e.conn_.bytesReceived+" bytes.  Marking connection healthy."),e.isHealthy_=!0,e.conn_.markConnectionHealthy()):e.conn_&&e.conn_.bytesSent>10240?e.log_("Connection exceeded healthy timeout but has sent "+e.conn_.bytesSent+" bytes.  Leaving connection alive."):(e.log_("Closing unhealthy connection after timeout."),e.close()))}),Math.floor(r)))}},{key:"nextTransportId_",value:function(){return"c:"+this.id+":"+this.connectionCount++}},{key:"disconnReceiver_",value:function(e){var t=this;return function(n){e===t.conn_?t.onConnectionLost_(n):e===t.secondaryConn_?(t.log_("Secondary connection lost."),t.onSecondaryConnectionLost_()):t.log_("closing an old connection")}}},{key:"connReceiver_",value:function(e){var t=this;return function(n){2!==t.state_&&(e===t.rx_?t.onPrimaryMessageReceived_(n):e===t.secondaryConn_?t.onSecondaryMessageReceived_(n):t.log_("message on old connection"))}}},{key:"sendRequest",value:function(e){var t={t:"d",d:e};this.sendData_(t)}},{key:"tryCleanupConnection",value:function(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)}},{key:"onSecondaryControl_",value:function(e){if("t"in e){var t=e.t;"a"===t?this.upgradeIfSecondaryHealthy_():"r"===t?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),this.tx_!==this.secondaryConn_&&this.rx_!==this.secondaryConn_||this.close()):"o"===t&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}}},{key:"onSecondaryMessageReceived_",value:function(e){var t=kn("t",e),n=kn("d",e);if("c"===t)this.onSecondaryControl_(n);else{if("d"!==t)throw new Error("Unknown protocol layer: "+t);this.pendingDataMessages.push(n)}}},{key:"upgradeIfSecondaryHealthy_",value:function(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:"p",d:{}}}))}},{key:"proceedWithUpgrade_",value:function(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()}},{key:"onPrimaryMessageReceived_",value:function(e){var t=kn("t",e),n=kn("d",e);"c"===t?this.onControl_(n):"d"===t&&this.onDataMessage_(n)}},{key:"onDataMessage_",value:function(e){this.onPrimaryResponse_(),this.onMessage_(e)}},{key:"onPrimaryResponse_",value:function(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))}},{key:"onControl_",value:function(e){var t=kn("t",e);if("d"in e){var n=e.d;if("h"===t)this.onHandshake_(n);else if("n"===t){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(var i=0;i<this.pendingDataMessages.length;++i)this.onDataMessage_(this.pendingDataMessages[i]);this.pendingDataMessages=[],this.tryCleanupConnection()}else"s"===t?this.onConnectionShutdown_(n):"r"===t?this.onReset_(n):"e"===t?pn("Server Error: "+n):"o"===t?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):pn("Unknown control packet command: "+t)}}},{key:"onHandshake_",value:function(e){var t=e.ts,n=e.v,i=e.h;this.sessionId=e.s,this.repoInfo_.host=i,0===this.state_&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,t),Bn!==n&&vn("Protocol version mismatch detected"),this.tryStartUpgrade_())}},{key:"tryStartUpgrade_",value:function(){var e=this.transportManager_.upgradeTransport();e&&this.startUpgrade_(e)}},{key:"startUpgrade_",value:function(e){var t=this;this.secondaryConn_=new e(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,this.sessionId),this.secondaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.secondaryConn_),i=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(n,i),On((function(){t.secondaryConn_&&(t.log_("Timed out trying to upgrade."),t.secondaryConn_.close())}),Math.floor(6e4))}},{key:"onReset_",value:function(e){this.log_("Reset packet received.  New host: "+e),this.repoInfo_.host=e,1===this.state_?this.close():(this.closeConnections_(),this.start_())}},{key:"onConnectionEstablished_",value:function(e,t){var n=this;this.log_("Realtime connection established."),this.conn_=e,this.state_=1,this.onReady_&&(this.onReady_(t,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):On((function(){n.sendPingOnPrimaryIfNecessary_()}),Math.floor(5e3))}},{key:"sendPingOnPrimaryIfNecessary_",value:function(){this.isHealthy_||1!==this.state_||(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:"p",d:{}}}))}},{key:"onSecondaryConnectionLost_",value:function(){var e=this.secondaryConn_;this.secondaryConn_=null,this.tx_!==e&&this.rx_!==e||this.close()}},{key:"onConnectionLost_",value:function(e){this.conn_=null,e||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(nn.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()}},{key:"onConnectionShutdown_",value:function(e){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(e),this.onKill_=null),this.onDisconnect_=null,this.close()}},{key:"sendData_",value:function(e){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(e)}},{key:"close",value:function(){2!==this.state_&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))}},{key:"closeConnections_",value:function(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)}}]),e}(),ti=function(){function e(){ne(this,e)}return re(e,[{key:"put",value:function(e,t,n,i){}},{key:"merge",value:function(e,t,n,i){}},{key:"refreshAuthToken",value:function(e){}},{key:"refreshAppCheckToken",value:function(e){}},{key:"onDisconnectPut",value:function(e,t,n){}},{key:"onDisconnectMerge",value:function(e,t,n){}},{key:"onDisconnectCancel",value:function(e,t){}},{key:"reportStats",value:function(e){}}]),e}(),ni=function(){function e(t){ne(this,e),this.allowedEvents_=t,this.listeners_={},he(Array.isArray(t)&&t.length>0,"Requires a non-empty array")}return re(e,[{key:"trigger",value:function(e){if(Array.isArray(this.listeners_[e])){for(var t=a(this.listeners_[e]),n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];for(var o=0;o<t.length;o++)t[o].callback.apply(t[o].context,i)}}},{key:"on",value:function(e,t,n){this.validateEventType_(e),this.listeners_[e]=this.listeners_[e]||[],this.listeners_[e].push({callback:t,context:n});var i=this.getInitialEvent(e);i&&t.apply(n,i)}},{key:"off",value:function(e,t,n){this.validateEventType_(e);for(var i=this.listeners_[e]||[],r=0;r<i.length;r++)if(i[r].callback===t&&(!n||n===i[r].context))return void i.splice(r,1)}},{key:"validateEventType_",value:function(e){he(this.allowedEvents_.find((function(t){return t===e})),"Unknown event: "+e)}}]),e}(),ii=function(e){J(n,e);var t=ee(n);function n(){var e;return ne(this,n),(e=t.call(this,["online"])).online_=!0,"undefined"===typeof window||"undefined"===typeof window.addEventListener||ke()||(window.addEventListener("online",(function(){e.online_||(e.online_=!0,e.trigger("online",!0))}),!1),window.addEventListener("offline",(function(){e.online_&&(e.online_=!1,e.trigger("online",!1))}),!1)),e}return re(n,[{key:"getInitialEvent",value:function(e){return he("online"===e,"Unknown event type: "+e),[this.online_]}},{key:"currentlyOnline",value:function(){return this.online_}}],[{key:"getInstance",value:function(){return new n}}]),n}(ni),ri=function(){function e(t,n){if(ne(this,e),void 0===n){this.pieces_=t.split("/");for(var i=0,r=0;r<this.pieces_.length;r++)this.pieces_[r].length>0&&(this.pieces_[i]=this.pieces_[r],i++);this.pieces_.length=i,this.pieceNum_=0}else this.pieces_=t,this.pieceNum_=n}return re(e,[{key:"toString",value:function(){for(var e="",t=this.pieceNum_;t<this.pieces_.length;t++)""!==this.pieces_[t]&&(e+="/"+this.pieces_[t]);return e||"/"}}]),e}();function oi(){return new ri("")}function ai(e){return e.pieceNum_>=e.pieces_.length?null:e.pieces_[e.pieceNum_]}function si(e){return e.pieces_.length-e.pieceNum_}function li(e){var t=e.pieceNum_;return t<e.pieces_.length&&t++,new ri(e.pieces_,t)}function ui(e){return e.pieceNum_<e.pieces_.length?e.pieces_[e.pieces_.length-1]:null}function ci(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.pieces_.slice(e.pieceNum_+t)}function hi(e){if(e.pieceNum_>=e.pieces_.length)return null;for(var t=[],n=e.pieceNum_;n<e.pieces_.length-1;n++)t.push(e.pieces_[n]);return new ri(t,0)}function fi(e,t){for(var n=[],i=e.pieceNum_;i<e.pieces_.length;i++)n.push(e.pieces_[i]);if(t instanceof ri)for(var r=t.pieceNum_;r<t.pieces_.length;r++)n.push(t.pieces_[r]);else for(var o=t.split("/"),a=0;a<o.length;a++)o[a].length>0&&n.push(o[a]);return new ri(n,0)}function di(e){return e.pieceNum_>=e.pieces_.length}function pi(e,t){var n=ai(e),i=ai(t);if(null===n)return t;
2if(n===i)return pi(li(e),li(t));throw new Error("INTERNAL ERROR: innerPath ("+t+") is not within outerPath ("+e+")")}function mi(e,t){if(si(e)!==si(t))return!1;for(var n=e.pieceNum_,i=t.pieceNum_;n<=e.pieces_.length;n++,i++)if(e.pieces_[n]!==t.pieces_[i])return!1;return!0}function vi(e,t){var n=e.pieceNum_,i=t.pieceNum_;if(si(e)>si(t))return!1;for(;n<e.pieces_.length;){if(e.pieces_[n]!==t.pieces_[i])return!1;++n,++i}return!0}var gi=re((function e(t,n){ne(this,e),this.errorPrefix_=n,this.parts_=ci(t,0),this.byteLength_=Math.max(1,this.parts_.length);for(var i=0;i<this.parts_.length;i++)this.byteLength_+=Fe(this.parts_[i]);yi(this)}));function yi(e){if(e.byteLength_>768)throw new Error(e.errorPrefix_+"has a key path longer than 768 bytes ("+e.byteLength_+").");if(e.parts_.length>32)throw new Error(e.errorPrefix_+"path specified exceeds the maximum depth that can be written (32) or object contains a cycle "+_i(e))}function _i(e){return 0===e.parts_.length?"":"in property '"+e.parts_.join(".")+"'"}var bi=function(e){J(n,e);var t=ee(n);function n(){var e,i,r;return ne(this,n),e=t.call(this,["visible"]),"undefined"!==typeof document&&"undefined"!==typeof document.addEventListener&&("undefined"!==typeof document.hidden?(r="visibilitychange",i="hidden"):"undefined"!==typeof document.mozHidden?(r="mozvisibilitychange",i="mozHidden"):"undefined"!==typeof document.msHidden?(r="msvisibilitychange",i="msHidden"):"undefined"!==typeof document.webkitHidden&&(r="webkitvisibilitychange",i="webkitHidden")),e.visible_=!0,r&&document.addEventListener(r,(function(){var t=!document[i];t!==e.visible_&&(e.visible_=t,e.trigger("visible",t))}),!1),e}return re(n,[{key:"getInitialEvent",value:function(e){return he("visible"===e,"Unknown event type: "+e),[this.visible_]}}],[{key:"getInstance",value:function(){return new n}}]),n}(ni),wi=1e3,ki=function(e){J(n,e);var t=ee(n);function n(e,i,r,o,a,s,l,u){var c;if(ne(this,n),(c=t.call(this)).repoInfo_=e,c.applicationId_=i,c.onDataUpdate_=r,c.onConnectStatus_=o,c.onServerInfoUpdate_=a,c.authTokenProvider_=s,c.appCheckTokenProvider_=l,c.authOverride_=u,c.id=n.nextPersistentConnectionId_++,c.log_=dn("p:"+c.id+":"),c.interruptReasons_={},c.listens=new Map,c.outstandingPuts_=[],c.outstandingGets_=[],c.outstandingPutCount_=0,c.outstandingGetCount_=0,c.onDisconnectRequestQueue_=[],c.connected_=!1,c.reconnectDelay_=wi,c.maxReconnectDelay_=3e5,c.securityDebugCallback_=null,c.lastSessionId=null,c.establishConnectionTimer_=null,c.visible_=!1,c.requestCBHash_={},c.requestNumber_=0,c.realtime_=null,c.authToken_=null,c.appCheckToken_=null,c.forceTokenRefresh_=!1,c.invalidAuthTokenCount_=0,c.invalidAppCheckTokenCount_=0,c.firstConnection_=!0,c.lastConnectionAttemptTime_=null,c.lastConnectionEstablishedTime_=null,u&&!Ae())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");return bi.getInstance().on("visible",c.onVisible_,Q(c)),-1===e.host.indexOf("fblocal")&&ii.getInstance().on("online",c.onOnline_,Q(c)),c}return re(n,[{key:"sendRequest",value:function(e,t,n){var i=++this.requestNumber_,r={r:i,a:e,b:t};this.log_(Te(r)),he(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(r),n&&(this.requestCBHash_[i]=n)}},{key:"get",value:function(e){this.initConnection_();var t=new be,n={action:"g",request:{p:e._path.toString(),q:e._queryObject},onComplete:function(e){var n=e.d;"ok"===e.s?t.resolve(n):t.reject(n)}};this.outstandingGets_.push(n),this.outstandingGetCount_++;var i=this.outstandingGets_.length-1;return this.connected_&&this.sendGet_(i),t.promise}},{key:"listen",value:function(e,t,n,i){this.initConnection_();var r=e._queryIdentifier,o=e._path.toString();this.log_("Listen called for "+o+" "+r),this.listens.has(o)||this.listens.set(o,new Map),he(e._queryParams.isDefault()||!e._queryParams.loadsAllData(),"listen() called for non-default but complete query"),he(!this.listens.get(o).has(r),"listen() called twice for same path/queryId.");var a={onComplete:i,hashFn:t,query:e,tag:n};this.listens.get(o).set(r,a),this.connected_&&this.sendListen_(a)}},{key:"sendGet_",value:function(e){var t=this,n=this.outstandingGets_[e];this.sendRequest("g",n.request,(function(i){delete t.outstandingGets_[e],t.outstandingGetCount_--,0===t.outstandingGetCount_&&(t.outstandingGets_=[]),n.onComplete&&n.onComplete(i)}))}},{key:"sendListen_",value:function(e){var t=this,i=e.query,r=i._path.toString(),o=i._queryIdentifier;this.log_("Listen on "+r+" for "+o);var a={p:r};e.tag&&(a.q=i._queryObject,a.t=e.tag),a.h=e.hashFn(),this.sendRequest("q",a,(function(a){var s=a.d,l=a.s;n.warnOnListenWarnings_(s,i),(t.listens.get(r)&&t.listens.get(r).get(o))===e&&(t.log_("listen response",a),"ok"!==l&&t.removeListen_(r,o),e.onComplete&&e.onComplete(l,s))}))}},{key:"refreshAuthToken",value:function(e){this.authToken_=e,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},(function(){})),this.reduceReconnectDelayIfAdminCredential_(e)}},{key:"reduceReconnectDelayIfAdminCredential_",value:function(e){(e&&40===e.length||function(e){var t=Ie(e).claims;return"object"===typeof t&&!0===t.admin}(e))&&(this.log_("Admin auth credential detected.  Reducing max reconnect time."),this.maxReconnectDelay_=3e4)}},{key:"refreshAppCheckToken",value:function(e){this.appCheckToken_=e,this.log_("App check token refreshed"),this.appCheckToken_?this.tryAppCheck():this.connected_&&this.sendRequest("unappeck",{},(function(){}))}},{key:"tryAuth",value:function(){var e=this;if(this.connected_&&this.authToken_){var t=this.authToken_,n=function(e){var t=Ie(e).claims;return!!t&&"object"===typeof t&&t.hasOwnProperty("iat")}(t)?"auth":"gauth",i={cred:t};null===this.authOverride_?i.noauth=!0:"object"===typeof this.authOverride_&&(i.authvar=this.authOverride_),this.sendRequest(n,i,(function(n){var i=n.s,r=n.d||"error";
2e.authToken_===t&&("ok"===i?e.invalidAuthTokenCount_=0:e.onAuthRevoked_(i,r))}))}}},{key:"tryAppCheck",value:function(){var e=this;this.connected_&&this.appCheckToken_&&this.sendRequest("appcheck",{token:this.appCheckToken_},(function(t){var n=t.s,i=t.d||"error";"ok"===n?e.invalidAppCheckTokenCount_=0:e.onAppCheckRevoked_(n,i)}))}},{key:"unlisten",value:function(e,t){var n=e._path.toString(),i=e._queryIdentifier;this.log_("Unlisten called for "+n+" "+i),he(e._queryParams.isDefault()||!e._queryParams.loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(n,i)&&this.connected_&&this.sendUnlisten_(n,i,e._queryObject,t)}},{key:"sendUnlisten_",value:function(e,t,n,i){this.log_("Unlisten on "+e+" for "+t);var r={p:e};i&&(r.q=n,r.t=i),this.sendRequest("n",r)}},{key:"onDisconnectPut",value:function(e,t,n){this.initConnection_(),this.connected_?this.sendOnDisconnect_("o",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"o",data:t,onComplete:n})}},{key:"onDisconnectMerge",value:function(e,t,n){this.initConnection_(),this.connected_?this.sendOnDisconnect_("om",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"om",data:t,onComplete:n})}},{key:"onDisconnectCancel",value:function(e,t){this.initConnection_(),this.connected_?this.sendOnDisconnect_("oc",e,null,t):this.onDisconnectRequestQueue_.push({pathString:e,action:"oc",data:null,onComplete:t})}},{key:"sendOnDisconnect_",value:function(e,t,n,i){var r={p:t,d:n};this.log_("onDisconnect "+e,r),this.sendRequest(e,r,(function(e){i&&setTimeout((function(){i(e.s,e.d)}),Math.floor(0))}))}},{key:"put",value:function(e,t,n,i){this.putInternal("p",e,t,n,i)}},{key:"merge",value:function(e,t,n,i){this.putInternal("m",e,t,n,i)}},{key:"putInternal",value:function(e,t,n,i,r){this.initConnection_();var o={p:t,d:n};void 0!==r&&(o.h=r),this.outstandingPuts_.push({action:e,request:o,onComplete:i}),this.outstandingPutCount_++;var a=this.outstandingPuts_.length-1;this.connected_?this.sendPut_(a):this.log_("Buffering put: "+t)}},{key:"sendPut_",value:function(e){var t=this,n=this.outstandingPuts_[e].action,i=this.outstandingPuts_[e].request,r=this.outstandingPuts_[e].onComplete;this.outstandingPuts_[e].queued=this.connected_,this.sendRequest(n,i,(function(i){t.log_(n+" response",i),delete t.outstandingPuts_[e],t.outstandingPutCount_--,0===t.outstandingPutCount_&&(t.outstandingPuts_=[]),r&&r(i.s,i.d)}))}},{key:"reportStats",value:function(e){var t=this;if(this.connected_){var n={c:e};this.log_("reportStats",n),this.sendRequest("s",n,(function(e){if("ok"!==e.s){var n=e.d;t.log_("reportStats","Error sending stats: "+n)}}))}}},{key:"onDataMessage_",value:function(e){if("r"in e){this.log_("from server: "+Te(e));var t=e.r,n=this.requestCBHash_[t];n&&(delete this.requestCBHash_[t],n(e.b))}else{if("error"in e)throw"A server-side error has occurred: "+e.error;"a"in e&&this.onDataPush_(e.a,e.b)}}},{key:"onDataPush_",value:function(e,t){this.log_("handleServerMessage",e,t),"d"===e?this.onDataUpdate_(t.p,t.d,!1,t.t):"m"===e?this.onDataUpdate_(t.p,t.d,!0,t.t):"c"===e?this.onListenRevoked_(t.p,t.q):"ac"===e?this.onAuthRevoked_(t.s,t.d):"apc"===e?this.onAppCheckRevoked_(t.s,t.d):"sd"===e?this.onSecurityDebugPacket_(t):pn("Unrecognized action received from server: "+Te(e)+"\nAre you using the latest client?")}},{key:"onReady_",value:function(e,t){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(e),this.lastSessionId=t,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)}},{key:"scheduleConnect_",value:function(e){var t=this;he(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout((function(){t.establishConnectionTimer_=null,t.establishConnection_()}),Math.floor(e))}},{key:"initConnection_",value:function(){!this.realtime_&&this.firstConnection_&&this.scheduleConnect_(0)}},{key:"onVisible_",value:function(e){e&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible.  Reducing delay."),this.reconnectDelay_=wi,this.realtime_||this.scheduleConnect_(0)),this.visible_=e}},{key:"onOnline_",value:function(e){e?(this.log_("Browser went online."),this.reconnectDelay_=wi,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline.  Killing connection."),this.realtime_&&this.realtime_.close())}},{key:"onRealtimeDisconnect_",value:function(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){if(this.visible_){if(this.lastConnectionEstablishedTime_){(new Date).getTime()-this.lastConnectionEstablishedTime_>3e4&&(this.reconnectDelay_=wi),this.lastConnectionEstablishedTime_=null}}else this.log_("Window isn't visible.  Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime();var e=(new Date).getTime()-this.lastConnectionAttemptTime_,t=Math.max(0,this.reconnectDelay_-e);
2t=Math.random()*t,this.log_("Trying to reconnect in "+t+"ms"),this.scheduleConnect_(t),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)}},{key:"establishConnection_",value:function(){var e=c(l().mark((function e(){var t,i,r,o,a,s,u,c,f,d,p,m,v,g,y=this;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.shouldReconnect_()){e.next=30;break}return this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null,t=this.onDataMessage_.bind(this),i=this.onReady_.bind(this),r=this.onRealtimeDisconnect_.bind(this),o=this.id+":"+n.nextConnectionId_++,a=this.lastSessionId,s=!1,u=null,c=function(){u?u.close():(s=!0,r())},f=function(e){he(u,"sendRequest call when we're not connected not allowed."),u.sendRequest(e)},this.realtime_={close:c,sendRequest:f},d=this.forceTokenRefresh_,this.forceTokenRefresh_=!1,e.prev=16,e.next=19,Promise.all([this.authTokenProvider_.getToken(d),this.appCheckTokenProvider_.getToken(d)]);case 19:p=e.sent,m=h(p,2),v=m[0],g=m[1],s?fn("getToken() completed but was canceled"):(fn("getToken() completed. Creating connection."),this.authToken_=v&&v.accessToken,this.appCheckToken_=g&&g.token,u=new ei(o,this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,t,i,r,(function(e){vn(e+" ("+y.repoInfo_.toString()+")"),y.interrupt("server_kill")}),a)),e.next=30;break;case 26:e.prev=26,e.t0=e.catch(16),this.log_("Failed to get token: "+e.t0),s||(this.repoInfo_.nodeAdmin&&vn(e.t0),c());case 30:case"end":return e.stop()}}),e,this,[[16,26]])})));return function(){return e.apply(this,arguments)}}()},{key:"interrupt",value:function(e){fn("Interrupting connection for reason: "+e),this.interruptReasons_[e]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())}},{key:"resume",value:function(e){fn("Resuming connection for reason: "+e),delete this.interruptReasons_[e],Me(this.interruptReasons_)&&(this.reconnectDelay_=wi,this.realtime_||this.scheduleConnect_(0))}},{key:"handleTimestamp_",value:function(e){var t=e-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:t})}},{key:"cancelSentTransactions_",value:function(){for(var e=0;e<this.outstandingPuts_.length;e++){var t=this.outstandingPuts_[e];t&&"h"in t.request&&t.queued&&(t.onComplete&&t.onComplete("disconnect"),delete this.outstandingPuts_[e],this.outstandingPutCount_--)}0===this.outstandingPutCount_&&(this.outstandingPuts_=[])}},{key:"onListenRevoked_",value:function(e,t){var n;n=t?t.map((function(e){return An(e)})).join("$"):"default";var i=this.removeListen_(e,n);i&&i.onComplete&&i.onComplete("permission_denied")}},{key:"removeListen_",value:function(e,t){var n,i=new ri(e).toString();if(this.listens.has(i)){var r=this.listens.get(i);n=r.get(t),r.delete(t),0===r.size&&this.listens.delete(i)}else n=void 0;return n}},{key:"onAuthRevoked_",value:function(e,t){fn("Auth token revoked: "+e+"/"+t),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),"invalid_token"!==e&&"permission_denied"!==e||(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))}},{key:"onAppCheckRevoked_",value:function(e,t){fn("App check token revoked: "+e+"/"+t),this.appCheckToken_=null,this.forceTokenRefresh_=!0,"invalid_token"!==e&&"permission_denied"!==e||(this.invalidAppCheckTokenCount_++,this.invalidAppCheckTokenCount_>=3&&this.appCheckTokenProvider_.notifyForInvalidToken())}},{key:"onSecurityDebugPacket_",value:function(e){this.securityDebugCallback_?this.securityDebugCallback_(e):"msg"in e&&console.log("FIREBASE: "+e.msg.replace("\n","\nFIREBASE: "))}},{key:"restoreState_",value:function(){this.tryAuth(),this.tryAppCheck();var e,t=te(this.listens.values());try{for(t.s();!(e=t.n()).done;){var n,i=te(e.value.values());try{for(i.s();!(n=i.n()).done;){var r=n.value;this.sendListen_(r)}}catch(l){i.e(l)}finally{i.f()}}}catch(l){t.e(l)}finally{t.f()}for(var o=0;o<this.outstandingPuts_.length;o++)this.outstandingPuts_[o]&&this.sendPut_(o);for(;this.onDisconnectRequestQueue_.length;){var a=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(a.action,a.pathString,a.data,a.onComplete)}for(var s=0;s<this.outstandingGets_.length;s++)this.outstandingGets_[s]&&this.sendGet_(s)}},{key:"sendConnectStats_",value:function(){var e={},t="js";Ae()&&(t=this.repoInfo_.nodeAdmin?"admin_node":"node"),e["sdk."+t+"."+Xt.replace(/\./g,"-")]=1,ke()?e["framework.cordova"]=1:"object"===typeof navigator&&"ReactNative"===navigator.product&&(e["framework.reactnative"]=1),this.reportStats(e)}},{key:"shouldReconnect_",value:function(){var e=ii.getInstance().currentlyOnline();return Me(this.interruptReasons_)&&e}}],[{key:"warnOnListenWarnings_",value:function(e,t){if(e&&"object"===typeof e&&Le(e,"w")){var n=Oe(e,"w");if(Array.isArray(n)&&~n.indexOf("no_index")){var i='".indexOn": "'+t._queryParams.getIndex().toString()+'"',r=t._path.toString();vn("Using an unspecified index. Your data will be downloaded and "+"filtered on the client. Consider adding ".concat(i," at ")+"".concat(r," to your security rules for better performance."))}}}}]),n}(ti);ki.nextPersistentConnectionId_=0,ki.nextConnectionId_=0;var Ai,xi=function(){function e(t,n){ne(this,e),this.name=t,this.node=n}return re(e,null,[{key:"Wrap",value:function(t,n){return new e(t,n)}}]),e}(),Ci=function(){function e(){ne(this,e)}return re(e,[{key:"getCompare",value:function(){return this.compare.bind(this)}},{key:"indexedValueChanged",value:function(e,t){var n=new xi(yn,e),i=new xi(yn,t);return 0!==this.compare(n,i)}},{key:"minPost",value:function(){return xi.MIN}}]),e}(),Ei=function(e){J(n,e);var t=ee(n);function n(){return ne(this,n),t.apply(this,arguments)}
2return re(n,[{key:"compare",value:function(e,t){return bn(e.name,t.name)}},{key:"isDefinedOn",value:function(e){throw fe("KeyIndex.isDefinedOn not expected to be called.")}},{key:"indexedValueChanged",value:function(e,t){return!1}},{key:"minPost",value:function(){return xi.MIN}},{key:"maxPost",value:function(){return new xi(_n,Ai)}},{key:"makePost",value:function(e,t){return he("string"===typeof e,"KeyIndex indexValue must always be a string."),new xi(e,Ai)}},{key:"toString",value:function(){return".key"}}],[{key:"__EMPTY_NODE",get:function(){return Ai},set:function(e){Ai=e}}]),n}(Ci),Si=new Ei,Pi=function(){function e(t,n,i,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;ne(this,e),this.isReverse_=r,this.resultGenerator_=o,this.nodeStack_=[];for(var a=1;!t.isEmpty();)if(a=n?i(t.key,n):1,r&&(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 re(e,[{key:"getNext",value:function(){if(0===this.nodeStack_.length)return null;var e,t=this.nodeStack_.pop();if(e=this.resultGenerator_?this.resultGenerator_(t.key,t.value):{key:t.key,value:t.value},this.isReverse_)for(t=t.left;!t.isEmpty();)this.nodeStack_.push(t),t=t.right;else for(t=t.right;!t.isEmpty();)this.nodeStack_.push(t),t=t.left;return e}},{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 this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value}}}]),e}(),Ti=function(){function e(t,n,i,r,o){ne(this,e),this.key=t,this.value=n,this.color=null!=i?i:e.RED,this.left=null!=r?r:Oi.EMPTY_NODE,this.right=null!=o?o:Oi.EMPTY_NODE}return re(e,[{key:"copy",value:function(t,n,i,r,o){return new e(null!=t?t:this.key,null!=n?n:this.value,null!=i?i:this.color,null!=r?r:this.left,null!=o?o:this.right)}},{key:"count",value:function(){return this.left.count()+1+this.right.count()}},{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 i=this,r=n(e,i.key);return(i=r<0?i.copy(null,null,null,i.left.insert(e,t,n),null):0===r?i.copy(null,t,null,null,null):i.copy(null,null,null,null,i.right.insert(e,t,n))).fixUp_()}},{key:"removeMin_",value:function(){if(this.left.isEmpty())return Oi.EMPTY_NODE;var e=this;return e.left.isRed_()||e.left.left.isRed_()||(e=e.moveRedLeft_()),(e=e.copy(null,null,null,e.left.removeMin_(),null)).fixUp_()}},{key:"remove",value:function(e,t){var n,i;if(t(e,(n=this).key)<0)n.left.isEmpty()||n.left.isRed_()||n.left.left.isRed_()||(n=n.moveRedLeft_()),n=n.copy(null,null,null,n.left.remove(e,t),null);else{if(n.left.isRed_()&&(n=n.rotateRight_()),n.right.isEmpty()||n.right.isRed_()||n.right.left.isRed_()||(n=n.moveRedRight_()),0===t(e,n.key)){if(n.right.isEmpty())return Oi.EMPTY_NODE;i=n.right.min_(),n=n.copy(i.key,i.value,null,null,n.right.removeMin_())}n=n.copy(null,null,null,null,n.right.remove(e,t))}return n.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.count()+1}},{key:"check_",value:function(){if(this.isRed_()&&this.left.isRed_()
2)throw new Error("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");var e=this.left.check_();if(e!==this.right.check_())throw new Error("Black depths differ");return e+(this.isRed_()?0:1)}}]),e}();Ti.RED=!0,Ti.BLACK=!1;var Ii,Li=function(){function e(){ne(this,e)}return re(e,[{key:"copy",value:function(e,t,n,i,r){return this}},{key:"insert",value:function(e,t,n){return new Ti(e,t,null)}},{key:"remove",value:function(e,t){return this}},{key:"count",value:function(){return 0}},{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:"check_",value:function(){return 0}},{key:"isRed_",value:function(){return!1}}]),e}(),Oi=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.EMPTY_NODE;ne(this,e),this.comparator_=t,this.root_=n}return re(e,[{key:"insert",value:function(t,n){return new e(this.comparator_,this.root_.insert(t,n,this.comparator_).copy(null,null,Ti.BLACK,null,null))}},{key:"remove",value:function(t){return new e(this.comparator_,this.root_.remove(t,this.comparator_).copy(null,null,Ti.BLACK,null,null))}},{key:"get",value:function(e){for(var t,n=this.root_;!n.isEmpty();){if(0===(t=this.comparator_(e,n.key)))return n.value;t<0?n=n.left:t>0&&(n=n.right)}return null}},{key:"getPredecessorKey",value:function(e){for(var t,n=this.root_,i=null;!n.isEmpty();){if(0===(t=this.comparator_(e,n.key))){if(n.left.isEmpty())return i?i.key:null;for(n=n.left;!n.right.isEmpty();)n=n.right;return n.key}t<0?n=n.left:t>0&&(i=n,n=n.right)}throw new Error("Attempted to find predecessor key for a nonexistent key.  What gives?")}},{key:"isEmpty",value:function(){return this.root_.isEmpty()}},{key:"count",value:function(){return this.root_.count()}},{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:"reverseTraversal",value:function(e){return this.root_.reverseTraversal(e)}},{key:"getIterator",value:function(e){return new Pi(this.root_,null,this.comparator_,!1,e)}},{key:"getIteratorFrom",value:function(e,t){return new Pi(this.root_,e,this.comparator_,!1,t)}},{key:"getReverseIteratorFrom",value:function(e,t){return new Pi(this.root_,e,this.comparator_,!0,t)}},{key:"getReverseIterator",value:function(e){return new Pi(this.root_,null,this.comparator_,!0,e)}}]),e}();function Mi(e,t){return bn(e.name,t.name)}function Ni(e,t){return bn(e,t)}Oi.EMPTY_NODE=new Li;var Ri,Bi,Di,zi=function(e){return"number"===typeof e?"number:"+En(e):"string:"+e},ji=function(e){if(e.isLeafNode()){var t=e.val();he("string"===typeof t||"number"===typeof t||"object"===typeof t&&Le(t,".sv"),"Priority must be a string or number.")}else he(e===Ii||e.isEmpty(),"priority of unexpected type.");he(e===Ii||e.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")},Fi=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.__childrenNodeConstructor.EMPTY_NODE;ne(this,e),this.value_=t,this.priorityNode_=n,this.lazyHash_=null,he(void 0!==this.value_&&null!==this.value_,"LeafNode shouldn't be created with null/undefined value."),ji(this.priorityNode_)}return re(e,[{key:"isLeafNode",value:function(){return!0}},{key:"getPriority",value:function(){return this.priorityNode_}},{key:"updatePriority",value:function(t){return new e(this.value_,t)}},{key:"getImmediateChild",value:function(t){return".priority"===t?this.priorityNode_:e.__childrenNodeConstructor.EMPTY_NODE}},{key:"getChild",value:function(t){return di(t)?this:".priority"===ai(t)?this.priorityNode_:e.__childrenNodeConstructor.EMPTY_NODE}},{key:"hasChild",value:function(){return!1}},{key:"getPredecessorChildName",value:function(e,t){return null}},{key:"updateImmediateChild",value:function(t,n){return".priority"===t?this.updatePriority(n):n.isEmpty()&&".priority"!==t?this:e.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(t,n).updatePriority(this.priorityNode_)}},{key:"updateChild",value:function(t,n){var i=ai(t);return null===i?n:n.isEmpty()&&".priority"!==i?this:(he(".priority"!==i||1===si(t),".priority must be the last token in a path"),this.updateImmediateChild(i,e.__childrenNodeConstructor.EMPTY_NODE.updateChild(li(t),n)))}},{key:"isEmpty",value:function(){return!1}},{key:"numChildren",value:function(){return 0}}
2,{key:"forEachChild",value:function(e,t){return!1}},{key:"val",value:function(e){return e&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()}},{key:"hash",value:function(){if(null===this.lazyHash_){var e="";this.priorityNode_.isEmpty()||(e+="priority:"+zi(this.priorityNode_.val())+":");var t=typeof this.value_;e+=t+":",e+="number"===t?En(this.value_):this.value_,this.lazyHash_=sn(e)}return this.lazyHash_}},{key:"getValue",value:function(){return this.value_}},{key:"compareTo",value:function(t){return t===e.__childrenNodeConstructor.EMPTY_NODE?1:t instanceof e.__childrenNodeConstructor?-1:(he(t.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(t))}},{key:"compareToLeafNode_",value:function(t){var n=typeof t.value_,i=typeof this.value_,r=e.VALUE_TYPE_ORDER.indexOf(n),o=e.VALUE_TYPE_ORDER.indexOf(i);return he(r>=0,"Unknown leaf type: "+n),he(o>=0,"Unknown leaf type: "+i),r===o?"object"===i?0:this.value_<t.value_?-1:this.value_===t.value_?0:1:o-r}},{key:"withIndex",value:function(){return this}},{key:"isIndexed",value:function(){return!0}},{key:"equals",value:function(e){if(e===this)return!0;if(e.isLeafNode()){var t=e;return this.value_===t.value_&&this.priorityNode_.equals(t.priorityNode_)}return!1}}],[{key:"__childrenNodeConstructor",get:function(){return Ri},set:function(e){Ri=e}}]),e}();Fi.VALUE_TYPE_ORDER=["object","boolean","number","string"];var Zi,Wi,Ui=function(e){J(n,e);var t=ee(n);function n(){return ne(this,n),t.apply(this,arguments)}return re(n,[{key:"compare",value:function(e,t){var n=e.node.getPriority(),i=t.node.getPriority(),r=n.compareTo(i);return 0===r?bn(e.name,t.name):r}},{key:"isDefinedOn",value:function(e){return!e.getPriority().isEmpty()}},{key:"indexedValueChanged",value:function(e,t){return!e.getPriority().equals(t.getPriority())}},{key:"minPost",value:function(){return xi.MIN}},{key:"maxPost",value:function(){return new xi(_n,new Fi("[PRIORITY-POST]",Di))}},{key:"makePost",value:function(e,t){var n=Bi(e);return new xi(t,new Fi("[PRIORITY-POST]",n))}},{key:"toString",value:function(){return".priority"}}]),n}(Ci),Hi=new Ui,Gi=Math.log(2),Yi=function(){function e(t){ne(this,e);var n;this.count=(n=t+1,parseInt(Math.log(n)/Gi,10)),this.current_=this.count-1;var i,r=(i=this.count,parseInt(Array(i+1).join("1"),2));this.bits_=t+1&r}return re(e,[{key:"nextBitIsOne",value:function(){var e=!(this.bits_&1<<this.current_);return this.current_--,e}}]),e}(),Vi=function(e,t,n,i){e.sort(t);var r=function t(i,r){var o,a,s=r-i;if(0===s)return null;if(1===s)return o=e[i],a=n?n(o):o,new Ti(a,o.node,Ti.BLACK,null,null);var l=parseInt(s/2,10)+i,u=t(i,l),c=t(l+1,r);return o=e[l],a=n?n(o):o,new Ti(a,o.node,Ti.BLACK,u,c)},o=function(t){for(var i=null,o=null,a=e.length,s=function(t,i){var o=a-t,s=a;a-=t;var u=r(o+1,s),c=e[o],h=n?n(c):c;l(new Ti(h,c.node,i,null,u))},l=function(e){i?(i.left=e,i=e):(o=e,i=e)},u=0;u<t.count;++u){var c=t.nextBitIsOne(),h=Math.pow(2,t.count-(u+1));c?s(h,Ti.BLACK):(s(h,Ti.BLACK),s(h,Ti.RED))}return o}(new Yi(e.length));return new Oi(i||t,o)},Qi={},qi=function(){function e(t,n){ne(this,e),this.indexes_=t,this.indexSet_=n}return re(e,[{key:"get",value:function(e){var t=Oe(this.indexes_,e);if(!t)throw new Error("No index defined for "+e);return t instanceof Oi?t:null}},{key:"hasIndex",value:function(e){return Le(this.indexSet_,e.toString())}},{key:"addIndex",value:function(t,n){he(t!==Si,"KeyIndex always exists and isn't meant to be added to the IndexMap.");for(var i,r=[],o=!1,a=n.getIterator(xi.Wrap),s=a.getNext();s;)o=o||t.isDefinedOn(s.node),r.push(s),s=a.getNext();i=o?Vi(r,t.getCompare()):Qi;var l=t.toString(),u=Object.assign({},this.indexSet_);u[l]=t;var c=Object.assign({},this.indexes_);return c[l]=i,new e(c,u)}},{key:"addToIndexes",value:function(t,n){var i=this;return new e(Ne(this.indexes_,(function(e,r){var o=Oe(i.indexSet_,r);if(he(o,"Missing index implementation for "+r),e===Qi){if(o.isDefinedOn(t.node)){for(var a=[],s=n.getIterator(xi.Wrap),l=s.getNext();l;)l.name!==t.name&&a.push(l),l=s.getNext();return a.push(t),Vi(a,o.getCompare())}return Qi}var u=n.get(t.name),c=e;return u&&(c=c.remove(new xi(t.name,u))),c.insert(t,t.node)})),this.indexSet_)}}
2,{key:"removeFromIndexes",value:function(t,n){return new e(Ne(this.indexes_,(function(e){if(e===Qi)return e;var i=n.get(t.name);return i?e.remove(new xi(t.name,i)):e})),this.indexSet_)}}],[{key:"Default",get:function(){return he(Qi&&Hi,"ChildrenNode.ts has not been loaded"),Zi=Zi||new e({".priority":Qi},{".priority":Hi})}}]),e}(),Ji=function(){function e(t,n,i){ne(this,e),this.children_=t,this.priorityNode_=n,this.indexMap_=i,this.lazyHash_=null,this.priorityNode_&&ji(this.priorityNode_),this.children_.isEmpty()&&he(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}return re(e,[{key:"isLeafNode",value:function(){return!1}},{key:"getPriority",value:function(){return this.priorityNode_||Wi}},{key:"updatePriority",value:function(t){return this.children_.isEmpty()?this:new e(this.children_,t,this.indexMap_)}},{key:"getImmediateChild",value:function(e){if(".priority"===e)return this.getPriority();var t=this.children_.get(e);return null===t?Wi:t}},{key:"getChild",value:function(e){var t=ai(e);return null===t?this:this.getImmediateChild(t).getChild(li(e))}},{key:"hasChild",value:function(e){return null!==this.children_.get(e)}},{key:"updateImmediateChild",value:function(t,n){if(he(n,"We should always be passing snapshot nodes"),".priority"===t)return this.updatePriority(n);var i,r,o=new xi(t,n);n.isEmpty()?(i=this.children_.remove(t),r=this.indexMap_.removeFromIndexes(o,this.children_)):(i=this.children_.insert(t,n),r=this.indexMap_.addToIndexes(o,this.children_));var a=i.isEmpty()?Wi:this.priorityNode_;return new e(i,a,r)}},{key:"updateChild",value:function(e,t){var n=ai(e);if(null===n)return t;he(".priority"!==ai(e)||1===si(e),".priority must be the last token in a path");var i=this.getImmediateChild(n).updateChild(li(e),t);return this.updateImmediateChild(n,i)}},{key:"isEmpty",value:function(){return this.children_.isEmpty()}},{key:"numChildren",value:function(){return this.children_.count()}},{key:"val",value:function(t){if(this.isEmpty())return null;var n={},i=0,r=0,o=!0;if(this.forEachChild(Hi,(function(a,s){n[a]=s.val(t),i++,o&&e.INTEGER_REGEXP_.test(a)?r=Math.max(r,Number(a)):o=!1})),!t&&o&&r<2*i){var a=[];for(var s in n)a[s]=n[s];return a}return t&&!this.getPriority().isEmpty()&&(n[".priority"]=this.getPriority().val()),n}},{key:"hash",value:function(){if(null===this.lazyHash_){var e="";this.getPriority().isEmpty()||(e+="priority:"+zi(this.getPriority().val())+":"),this.forEachChild(Hi,(function(t,n){var i=n.hash();""!==i&&(e+=":"+t+":"+i)})),this.lazyHash_=""===e?"":sn(e)}return this.lazyHash_}},{key:"getPredecessorChildName",value:function(e,t,n){var i=this.resolveIndex_(n);if(i){var r=i.getPredecessorKey(new xi(e,t));return r?r.name:null}return this.children_.getPredecessorKey(e)}},{key:"getFirstChildName",value:function(e){var t=this.resolveIndex_(e);if(t){var n=t.minKey();return n&&n.name}return this.children_.minKey()}},{key:"getFirstChild",value:function(e){var t=this.getFirstChildName(e);return t?new xi(t,this.children_.get(t)):null}},{key:"getLastChildName",value:function(e){var t=this.resolveIndex_(e);if(t){var n=t.maxKey();return n&&n.name}return this.children_.maxKey()}},{key:"getLastChild",value:function(e){var t=this.getLastChildName(e);return t?new xi(t,this.children_.get(t)):null}},{key:"forEachChild",value:function(e,t){var n=this.resolveIndex_(e);return n?n.inorderTraversal((function(e){return t(e.name,e.node)})):this.children_.inorderTraversal(t)}},{key:"getIterator",value:function(e){return this.getIteratorFrom(e.minPost(),e)}},{key:"getIteratorFrom",value:function(e,t){var n=this.resolveIndex_(t);if(n)return n.getIteratorFrom(e,(function(e){return e}));for(var i=this.children_.getIteratorFrom(e.name,xi.Wrap),r=i.peek();null!=r&&t.compare(r,e)<0;)i.getNext(),r=i.peek();return i}},{key:"getReverseIterator",value:function(e){return this.getReverseIteratorFrom(e.maxPost(),e)}},{key:"getReverseIteratorFrom",value:function(e,t){var n=this.resolveIndex_(t);if(n)return n.getReverseIteratorFrom(e,(function(e){return e}));for(var i=this.children_.getReverseIteratorFrom(e.name,xi.Wrap),r=i.peek();null!=r&&t.compare(r,e)>0;)i.getNext(),r=i.peek();return i}},{key:"compareTo",value:function(e){return this.isEmpty()?e.isEmpty()?0:-1:e.isLeafNode()||e.isEmpty()?1:e===Ki?-1:0}},{key:"withIndex",value:function(t){if(t===Si||this.indexMap_.hasIndex(t))return this;var n=this.indexMap_.addIndex(t,this.children_);return new e(this.children_,this.priorityNode_,n)}},{key:"isIndexed",value:function(e){return e===Si||this.indexMap_.hasIndex(e)}},{key:"equals",value:function(e){if(e===this)return!0;
2if(e.isLeafNode())return!1;var t=e;if(this.getPriority().equals(t.getPriority())){if(this.children_.count()===t.children_.count()){for(var n=this.getIterator(Hi),i=t.getIterator(Hi),r=n.getNext(),o=i.getNext();r&&o;){if(r.name!==o.name||!r.node.equals(o.node))return!1;r=n.getNext(),o=i.getNext()}return null===r&&null===o}return!1}return!1}},{key:"resolveIndex_",value:function(e){return e===Si?null:this.indexMap_.get(e.toString())}}],[{key:"EMPTY_NODE",get:function(){return Wi||(Wi=new e(new Oi(Ni),null,qi.Default))}}]),e}();Ji.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/;var Ki=new(function(e){J(n,e);var t=ee(n);function n(){return ne(this,n),t.call(this,new Oi(Ni),Ji.EMPTY_NODE,qi.Default)}return re(n,[{key:"compareTo",value:function(e){return e===this?0:1}},{key:"equals",value:function(e){return e===this}},{key:"getPriority",value:function(){return this}},{key:"getImmediateChild",value:function(e){return Ji.EMPTY_NODE}},{key:"isEmpty",value:function(){return!1}}]),n}(Ji));Object.defineProperties(xi,{MIN:{value:new xi(yn,Ji.EMPTY_NODE)},MAX:{value:new xi(_n,Ki)}}),Ei.__EMPTY_NODE=Ji.EMPTY_NODE,Fi.__childrenNodeConstructor=Ji,Ii=Ki,function(e){Di=e}(Ki);function Xi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null===e)return Ji.EMPTY_NODE;if("object"===typeof e&&".priority"in e&&(t=e[".priority"]),he(null===t||"string"===typeof t||"number"===typeof t||"object"===typeof t&&".sv"in t,"Invalid priority type found: "+typeof t),"object"===typeof e&&".value"in e&&null!==e[".value"]&&(e=e[".value"]),"object"!==typeof e||".sv"in e){var n=e;return new Fi(n,Xi(t))}if(e instanceof Array){var i=Ji.EMPTY_NODE;return Cn(e,(function(t,n){if(Le(e,t)&&"."!==t.substring(0,1)){var r=Xi(n);!r.isLeafNode()&&r.isEmpty()||(i=i.updateImmediateChild(t,r))}})),i.updatePriority(Xi(t))}var r=[],o=!1,a=e;if(Cn(a,(function(e,t){if("."!==e.substring(0,1)){var n=Xi(t);n.isEmpty()||(o=o||!n.getPriority().isEmpty(),r.push(new xi(e,n)))}})),0===r.length)return Ji.EMPTY_NODE;var s=Vi(r,Mi,(function(e){return e.name}),Ni);if(o){var l=Vi(r,Hi.getCompare());return new Ji(s,Xi(t),new qi({".priority":l},{".priority":Hi}))}return new Ji(s,Xi(t),qi.Default)}!function(e){Bi=e}(Xi);var $i=function(e){J(n,e);var t=ee(n);function n(e){var i;return ne(this,n),(i=t.call(this)).indexPath_=e,he(!di(e)&&".priority"!==ai(e),"Can't create PathIndex with empty path or .priority key"),i}return re(n,[{key:"extractChild",value:function(e){return e.getChild(this.indexPath_)}},{key:"isDefinedOn",value:function(e){return!e.getChild(this.indexPath_).isEmpty()}},{key:"compare",value:function(e,t){var n=this.extractChild(e.node),i=this.extractChild(t.node),r=n.compareTo(i);return 0===r?bn(e.name,t.name):r}},{key:"makePost",value:function(e,t){var n=Xi(e),i=Ji.EMPTY_NODE.updateChild(this.indexPath_,n);return new xi(t,i)}},{key:"maxPost",value:function(){var e=Ji.EMPTY_NODE.updateChild(this.indexPath_,Ki);return new xi(_n,e)}},{key:"toString",value:function(){return ci(this.indexPath_,0).join("/")}}]),n}(Ci),er=function(e){J(n,e);var t=ee(n);function n(){return ne(this,n),t.apply(this,arguments)}return re(n,[{key:"compare",value:function(e,t){var n=e.node.compareTo(t.node);return 0===n?bn(e.name,t.name):n}},{key:"isDefinedOn",value:function(e){return!0}},{key:"indexedValueChanged",value:function(e,t){return!e.equals(t)}},{key:"minPost",value:function(){return xi.MIN}},{key:"maxPost",value:function(){return xi.MAX}},{key:"makePost",value:function(e,t){var n=Xi(e);return new xi(t,n)}},{key:"toString",value:function(){return".value"}}]),n}(Ci),tr=new er,nr="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz";!function(){var e=0,t=[]}();function ir(e){return{type:"value",snapshotNode:e}}function rr(e,t){return{type:"child_added",snapshotNode:t,childName:e}}function or(e,t){return{type:"child_removed",snapshotNode:t,childName:e}}function ar(e,t,n){return{type:"child_changed",snapshotNode:t,childName:e,oldSnap:n}}var sr=function(){function e(t){ne(this,e),this.index_=t}return re(e,[{key:"updateChild",value:function(e,t,n,i,r,o){he(e.isIndexed(this.index_),"A node must be indexed if only a child is updated");var a=e.getImmediateChild(t);return a.getChild(i).equals(n.getChild(i))&&a.isEmpty()===n.isEmpty()?e:(null!=o&&(n.isEmpty()?e.hasChild(t)?o.trackChildChange(or(t,a)):he(e.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):a.isEmpty()?o.trackChildChange(rr(t,n)):o.trackChildChange(ar(t,n,a))),e.isLeafNode()&&n.isEmpty()?e:e.updateImmediateChild(t,n).withIndex(this.index_))}},{key:"updateFullNode",value:function(e,t,n){return null!=n&&(e.isLeafNode()||e.forEachChild(Hi,(function(e,i){t.hasChild(e)||n.trackChildChange(or(e,i))})),t.isLeafNode()||t.forEachChild(Hi,(function(t,i){if(e.hasChild(t)){var r=e.getImmediateChild(t);r.equals(i)||n.trackChildChange(ar(t,i,r))}else n.trackChildChange(rr(t,i))}
2))),t.withIndex(this.index_)}},{key:"updatePriority",value:function(e,t){return e.isEmpty()?Ji.EMPTY_NODE:e.updatePriority(t)}},{key:"filtersNodes",value:function(){return!1}},{key:"getIndexedFilter",value:function(){return this}},{key:"getIndex",value:function(){return this.index_}}]),e}(),lr=function(){function e(t){ne(this,e),this.indexedFilter_=new sr(t.getIndex()),this.index_=t.getIndex(),this.startPost_=e.getStartPost_(t),this.endPost_=e.getEndPost_(t)}return re(e,[{key:"getStartPost",value:function(){return this.startPost_}},{key:"getEndPost",value:function(){return this.endPost_}},{key:"matches",value:function(e){return this.index_.compare(this.getStartPost(),e)<=0&&this.index_.compare(e,this.getEndPost())<=0}},{key:"updateChild",value:function(e,t,n,i,r,o){return this.matches(new xi(t,n))||(n=Ji.EMPTY_NODE),this.indexedFilter_.updateChild(e,t,n,i,r,o)}},{key:"updateFullNode",value:function(e,t,n){t.isLeafNode()&&(t=Ji.EMPTY_NODE);var i=t.withIndex(this.index_);i=i.updatePriority(Ji.EMPTY_NODE);var r=this;return t.forEachChild(Hi,(function(e,t){r.matches(new xi(e,t))||(i=i.updateImmediateChild(e,Ji.EMPTY_NODE))})),this.indexedFilter_.updateFullNode(e,i,n)}},{key:"updatePriority",value:function(e,t){return e}},{key:"filtersNodes",value:function(){return!0}},{key:"getIndexedFilter",value:function(){return this.indexedFilter_}},{key:"getIndex",value:function(){return this.index_}}],[{key:"getStartPost_",value:function(e){if(e.hasStart()){var t=e.getIndexStartName();return e.getIndex().makePost(e.getIndexStartValue(),t)}return e.getIndex().minPost()}},{key:"getEndPost_",value:function(e){if(e.hasEnd()){var t=e.getIndexEndName();return e.getIndex().makePost(e.getIndexEndValue(),t)}return e.getIndex().maxPost()}}]),e}(),ur=function(){function e(t){ne(this,e),this.rangedFilter_=new lr(t),this.index_=t.getIndex(),this.limit_=t.getLimit(),this.reverse_=!t.isViewFromLeft()}return re(e,[{key:"updateChild",value:function(e,t,n,i,r,o){return this.rangedFilter_.matches(new xi(t,n))||(n=Ji.EMPTY_NODE),e.getImmediateChild(t).equals(n)?e:e.numChildren()<this.limit_?this.rangedFilter_.getIndexedFilter().updateChild(e,t,n,i,r,o):this.fullLimitUpdateChild_(e,t,n,r,o)}},{key:"updateFullNode",value:function(e,t,n){var i;if(t.isLeafNode()||t.isEmpty())i=Ji.EMPTY_NODE.withIndex(this.index_);else if(2*this.limit_<t.numChildren()&&t.isIndexed(this.index_)){var r;i=Ji.EMPTY_NODE.withIndex(this.index_),r=this.reverse_?t.getReverseIteratorFrom(this.rangedFilter_.getEndPost(),this.index_):t.getIteratorFrom(this.rangedFilter_.getStartPost(),this.index_);for(var o=0;r.hasNext()&&o<this.limit_;){var a=r.getNext();if(!(this.reverse_?this.index_.compare(this.rangedFilter_.getStartPost(),a)<=0:this.index_.compare(a,this.rangedFilter_.getEndPost())<=0))break;i=i.updateImmediateChild(a.name,a.node),o++}}else{var s,l,u,c;if(i=(i=t.withIndex(this.index_)).updatePriority(Ji.EMPTY_NODE),this.reverse_){c=i.getReverseIterator(this.index_),s=this.rangedFilter_.getEndPost(),l=this.rangedFilter_.getStartPost();var h=this.index_.getCompare();u=function(e,t){return h(t,e)}}else c=i.getIterator(this.index_),s=this.rangedFilter_.getStartPost(),l=this.rangedFilter_.getEndPost(),u=this.index_.getCompare();for(var f=0,d=!1;c.hasNext();){var p=c.getNext();!d&&u(s,p)<=0&&(d=!0),d&&f<this.limit_&&u(p,l)<=0?f++:i=i.updateImmediateChild(p.name,Ji.EMPTY_NODE)}}return this.rangedFilter_.getIndexedFilter().updateFullNode(e,i,n)}},{key:"updatePriority",value:function(e,t){return e}},{key:"filtersNodes",value:function(){return!0}},{key:"getIndexedFilter",value:function(){return this.rangedFilter_.getIndexedFilter()}},{key:"getIndex",value:function(){return this.index_}},{key:"fullLimitUpdateChild_",value:function(e,t,n,i,r){var o;if(this.reverse_){var a=this.index_.getCompare();o=function(e,t){return a(t,e)}}else o=this.index_.getCompare();var s=e;he(s.numChildren()===this.limit_,"");var l=new xi(t,n),u=this.reverse_?s.getFirstChild(this.index_):s.getLastChild(this.index_),c=this.rangedFilter_.matches(l);if(s.hasChild(t)){for(var h=s.getImmediateChild(t),f=i.getChildAfterChild(this.index_,u,this.reverse_);null!=f&&(f.name===t||s.hasChild(f.name));)f=i.getChildAfterChild(this.index_,f,this.reverse_);var d=null==f?1:o(f,l);if(c&&!n.isEmpty()&&d>=0)return null!=r&&r.trackChildChange(ar(t,n,h)),s.updateImmediateChild(t,n);null!=r&&r.trackChildChange(or(t,h));var p=s.updateImmediateChild(t,Ji.EMPTY_NODE);return null!=f&&this.rangedFilter_.matches(f)?(null!=r&&r.trackChildChange(rr(f.name,f.node)),p.updateImmediateChild(f.name,f.node)):p}return n.isEmpty()?e:c&&o(u,l)>=0?(null!=r&&(r.trackChildChange(or(u.name,u.node)),r.trackChildChange(rr(t,n))),s.updateImmediateChild(t,n).updateImmediateChild(u.name,Ji.EMPTY_NODE)):e}}]),e}(),cr=function(){function e(){ne(this,e),this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.startAfterSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.endBeforeSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=Hi}return re(e,[{key:"hasStart",value:function(){return this.startSet_}},{key:"hasStartAfter",value:function(){return this.startAfterSet_}},{key:"hasEndBefore",value:function(){return this.endBeforeSet_}},{key:"isViewFromLeft",value:function(){return""===this.viewFrom_?this.startSet_:"l"===this.viewFrom_}},{key:"getIndexStartValue",value:function(){return he(this.startSet_,"Only valid if start has been set"),this.indexStartValue_}},{key:"getIndexStartName",value:function(){return he(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:yn}},{key:"hasEnd",value:function(){return this.endSet_}},{key:"getIndexEndValue",value:function(){return he(this.endSet_,"Only valid if end has been set"),this.indexEndValue_}},{key:"getIndexEndName",value:function(){return he(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:_n}},{key:"hasLimit",value:function(){return this.limitSet_}},{key:"hasAnchoredLimit",value:function(){return this.limitSet_&&""!==this.viewFrom_}},{key:"getLimit",value:function(){return he(this.limitSet_,"Only valid if limit has been set"),this.limit_}},{key:"getIndex",value:function(){return this.index_}},{key:"loadsAllData",value:function(){return!(this.startSet_||this.endSet_||this.limitSet_)}},{key:"isDefault",value:function(){return this.loadsAllData()&&this.index_===Hi}},{key:"copy",value:function(){var t=new e;return t.limitSet_=this.limitSet_,t.limit_=this.limit_,t.startSet_=this.startSet_,t.indexStartValue_=this.indexStartValue_,t.startNameSet_=this.startNameSet_,t.indexStartName_=this.indexStartName_,t.endSet_=this.endSet_,t.indexEndValue_=this.indexEndValue_,t.endNameSet_=this.endNameSet_,t.indexEndName_=this.indexEndName_,t.index_
2=this.index_,t.viewFrom_=this.viewFrom_,t}}]),e}();function hr(e){var t,n={};return e.isDefault()||(e.index_===Hi?t="$priority":e.index_===tr?t="$value":e.index_===Si?t="$key":(he(e.index_ instanceof $i,"Unrecognized index type!"),t=e.index_.toString()),n.orderBy=Te(t),e.startSet_&&(n.startAt=Te(e.indexStartValue_),e.startNameSet_&&(n.startAt+=","+Te(e.indexStartName_))),e.endSet_&&(n.endAt=Te(e.indexEndValue_),e.endNameSet_&&(n.endAt+=","+Te(e.indexEndName_))),e.limitSet_&&(e.isViewFromLeft()?n.limitToFirst=e.limit_:n.limitToLast=e.limit_)),n}function fr(e){var t={};if(e.startSet_&&(t.sp=e.indexStartValue_,e.startNameSet_&&(t.sn=e.indexStartName_)),e.endSet_&&(t.ep=e.indexEndValue_,e.endNameSet_&&(t.en=e.indexEndName_)),e.limitSet_){t.l=e.limit_;var n=e.viewFrom_;""===n&&(n=e.isViewFromLeft()?"l":"r"),t.vf=n}return e.index_!==Hi&&(t.i=e.index_.toString()),t}var dr=function(e){J(n,e);var t=ee(n);function n(e,i,r,o){var a;return ne(this,n),(a=t.call(this)).repoInfo_=e,a.onDataUpdate_=i,a.authTokenProvider_=r,a.appCheckTokenProvider_=o,a.log_=dn("p:rest:"),a.listens_={},a}return re(n,[{key:"reportStats",value:function(e){throw new Error("Method not implemented.")}},{key:"listen",value:function(e,t,i,r){var o=this,a=e._path.toString();this.log_("Listen called for "+a+" "+e._queryIdentifier);var s=n.getListenId_(e,i),l={};this.listens_[s]=l;var u=hr(e._queryParams);this.restRequest_(a+".json",u,(function(e,t){var n=t;(404===e&&(n=null,e=null),null===e&&o.onDataUpdate_(a,n,!1,i),Oe(o.listens_,s)===l)&&r(e?401===e?"permission_denied":"rest_error:"+e:"ok",null)}))}},{key:"unlisten",value:function(e,t){var i=n.getListenId_(e,t);delete this.listens_[i]}},{key:"get",value:function(e){var t=this,n=hr(e._queryParams),i=e._path.toString(),r=new be;return this.restRequest_(i+".json",n,(function(e,n){var o=n;404===e&&(o=null,e=null),null===e?(t.onDataUpdate_(i,o,!1,null),r.resolve(o)):r.reject(new Error(o))})),r.promise}},{key:"refreshAuthToken",value:function(e){}},{key:"restRequest_",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;return n.format="export",Promise.all([this.authTokenProvider_.getToken(!1),this.appCheckTokenProvider_.getToken(!1)]).then((function(r){var o=h(r,2),a=o[0],s=o[1];a&&a.accessToken&&(n.auth=a.accessToken),s&&s.token&&(n.ac=s.token);var l=(t.repoInfo_.secure?"https://":"http://")+t.repoInfo_.host+e+"?ns="+t.repoInfo_.namespace+De(n);t.log_("Sending REST request for "+l);var u=new XMLHttpRequest;u.onreadystatechange=function(){if(i&&4===u.readyState){t.log_("REST Response for "+l+" received. status:",u.status,"response:",u.responseText);var e=null;if(u.status>=200&&u.status<300){try{e=Pe(u.responseText)}catch(n){vn("Failed to parse JSON response for "+l+": "+u.responseText)}i(null,e)}else 401!==u.status&&404!==u.status&&vn("Got unsuccessful REST response for "+l+" Status: "+u.status),i(u.status);i=null}},u.open("GET",l,!0),u.send()}))}}],[{key:"getListenId_",value:function(e,t){return void 0!==t?"tag$"+t:(he(e._queryParams.isDefault(),"should have a tag if it's not a default query."),e._path.toString())}}]),n}(ti),pr=function(){function e(){ne(this,e),this.rootNode_=Ji.EMPTY_NODE}return re(e,[{key:"getNode",value:function(e){return this.rootNode_.getChild(e)}},{key:"updateSnapshot",value:function(e,t){this.rootNode_=this.rootNode_.updateChild(e,t)}}]),e}();function mr(){return{value:null,children:new Map}}function vr(e,t,n){if(di(t))e.value=n,e.children.clear();else if(null!==e.value)e.value=e.value.updateChild(t,n);else{var i=ai(t);e.children.has(i)||e.children.set(i,mr()),vr(e.children.get(i),t=li(t),n)}}function gr(e,t,n){null!==e.value?n(t,e.value):function(e,t){e.children.forEach((function(e,n){t(n,e)}))}(e,(function(e,i){gr(i,new ri(t.toString()+"/"+e),n)}))}var yr,_r=function(){function e(t){ne(this,e),this.collection_=t,this.last_=null}return re(e,[{key:"get",value:function(){var e=this.collection_.get(),t=Object.assign({},e);return this.last_&&Cn(this.last_,(function(e,n){t[e]=t[e]-n})),this.last_=e,t}}]),e}(),br=function(){function e(t,n){ne(this,e),this.server_=n,this.statsToReport_={},this.statsListener_=new _r(t);var i=1e4+2e4*Math.random();On(this.reportStats_.bind(this),Math.floor(i))}return re(e,[{key:"reportStats_",value:function(){var e=this,t=this.statsListener_.get(),n={},i=!1;Cn(t,(function(t,r){r>
20&&Le(e.statsToReport_,t)&&(n[t]=r,i=!0)})),i&&this.server_.reportStats(n),On(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))}}]),e}();function wr(e){return{fromUser:!1,fromServer:!0,queryId:e,tagged:!0}}!function(e){e[e.OVERWRITE=0]="OVERWRITE",e[e.MERGE=1]="MERGE",e[e.ACK_USER_WRITE=2]="ACK_USER_WRITE",e[e.LISTEN_COMPLETE=3]="LISTEN_COMPLETE"}(yr||(yr={}));var kr,Ar=function(){function e(t,n,i){ne(this,e),this.path=t,this.affectedTree=n,this.revert=i,this.type=yr.ACK_USER_WRITE,this.source={fromUser:!0,fromServer:!1,queryId:null,tagged:!1}}return re(e,[{key:"operationForChild",value:function(t){if(di(this.path)){if(null!=this.affectedTree.value)return he(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;var n=this.affectedTree.subtree(new ri(t));return new e(oi(),n,this.revert)}return he(ai(this.path)===t,"operationForChild called for unrelated child."),new e(li(this.path),this.affectedTree,this.revert)}}]),e}(),xr=function(){function e(t,n){ne(this,e),this.source=t,this.path=n,this.type=yr.LISTEN_COMPLETE}return re(e,[{key:"operationForChild",value:function(t){return di(this.path)?new e(this.source,oi()):new e(this.source,li(this.path))}}]),e}(),Cr=function(){function e(t,n,i){ne(this,e),this.source=t,this.path=n,this.snap=i,this.type=yr.OVERWRITE}return re(e,[{key:"operationForChild",value:function(t){return di(this.path)?new e(this.source,oi(),this.snap.getImmediateChild(t)):new e(this.source,li(this.path),this.snap)}}]),e}(),Er=function(){function e(t,n,i){ne(this,e),this.source=t,this.path=n,this.children=i,this.type=yr.MERGE}return re(e,[{key:"operationForChild",value:function(t){if(di(this.path)){var n=this.children.subtree(new ri(t));return n.isEmpty()?null:n.value?new Cr(this.source,oi(),n.value):new e(this.source,oi(),n)}return he(ai(this.path)===t,"Can't get a merge for a child not on the path of the operation"),new e(this.source,li(this.path),this.children)}},{key:"toString",value:function(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"}}]),e}(),Sr=function(){function e(t,n,i){ne(this,e),this.node_=t,this.fullyInitialized_=n,this.filtered_=i}return re(e,[{key:"isFullyInitialized",value:function(){return this.fullyInitialized_}},{key:"isFiltered",value:function(){return this.filtered_}},{key:"isCompleteForPath",value:function(e){if(di(e))return this.isFullyInitialized()&&!this.filtered_;var t=ai(e);return this.isCompleteForChild(t)}},{key:"isCompleteForChild",value:function(e){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(e)}},{key:"getNode",value:function(){return this.node_}}]),e}(),Pr=re((function e(t){ne(this,e),this.query_=t,this.index_=this.query_._queryParams.getIndex()}));function Tr(e,t,n,i,r,o){var a=i.filter((function(e){return e.type===n}));a.sort((function(t,n){return function(e,t,n){if(null==t.childName||null==n.childName)throw fe("Should only compare child_ events.");var i=new xi(t.childName,t.snapshotNode),r=new xi(n.childName,n.snapshotNode);return e.index_.compare(i,r)}(e,t,n)})),a.forEach((function(n){var i=function(e,t,n){return"value"===t.type||"child_removed"===t.type||(t.prevName=n.getPredecessorChildName(t.childName,t.snapshotNode,e.index_)),t}(e,n,o);r.forEach((function(r){r.respondsTo(n.type)&&t.push(r.createEvent(i,e.query_))}))}))}function Ir(e,t){return{eventCache:e,serverCache:t}}function Lr(e,t,n,i){return Ir(new Sr(t,n,i),e.serverCache)}function Or(e,t,n,i){return Ir(e.eventCache,new Sr(t,n,i))}function Mr(e){return e.eventCache.isFullyInitialized()?e.eventCache.getNode():null}function Nr(e){return e.serverCache.isFullyInitialized()?e.serverCache.getNode():null}var Rr=function(){return kr||(kr=new Oi(wn)),kr},Br=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rr();ne(this,e),this.value=t,this.children=n}return re(e,[{key:"isEmpty",value:function(){return null===this.value&&this.children.isEmpty()}},{key:"findRootMostMatchingPathAndValue",value:function(e,t){if(null!=this.value&&t(this.value))return{path:oi(),value:this.value};if(di(e))return null;var n=ai(e),i=this.children.get(n);if(null!==i){var r=i.findRootMostMatchingPathAndValue(li(e),t);return null!=r?{path:fi(new ri(n),r.path),value:r.value}:null}return null}},{key:"findRootMostValueAndPath",value:function(e){return this.findRootMostMatchingPathAndValue(e,(function(){return!0}))}},{key:"subtree",value:function(t){if(di(t))return this;var n=ai(t),i=this.children.get(n);return null!==i?i.subtree(li(t)):new e(null)}},{key:"set",value:function(t,n){if(di(t))return new e(n,this.children);var i=ai(t),r=(this.children.get(i)||new e(null)).set(li(t),n),o=this.children.insert(i,r);return new e(this.value,o)}},{key:"remove",value:function(t){if(di(t))return this.children.isEmpty()?new e(null):new e(null,this.children);var n=ai(t),i=this.children.get(n);if(i){var r,o=i.remove(li(t));return r=o.isEmpty()?this.children.remove(n):this.children.insert(n,o),null===this.value&&r.isEmpty()?new e(null):new e(this.value,r)}return this}},{key:"get",value:function(e){if(di(e))return this.value;var t=ai(e),n=this.children.get(t);return n?n.get(li(e)):null}},{key:"setTree",value:function(t,n){if(di(t))return n;var i,r=ai(t),o=(this.children.get(r)||new e(null)).setTree(li(t),n);return i=o.isEmpty()?this.children.remove(r):this.children.insert(r,o),new e(this.value,i)}},{key:"fold",value:function(e){return this.fold_(oi(),e)}},{key:"fold_",value:function(e,t){var n={};return this.children.inorderTraversal((function(i,r){n[i]=r.fold_(fi(e,i),t)}
2)),t(e,this.value,n)}},{key:"findOnPath",value:function(e,t){return this.findOnPath_(e,oi(),t)}},{key:"findOnPath_",value:function(e,t,n){var i=!!this.value&&n(t,this.value);if(i)return i;if(di(e))return null;var r=ai(e),o=this.children.get(r);return o?o.findOnPath_(li(e),fi(t,r),n):null}},{key:"foreachOnPath",value:function(e,t){return this.foreachOnPath_(e,oi(),t)}},{key:"foreachOnPath_",value:function(t,n,i){if(di(t))return this;this.value&&i(n,this.value);var r=ai(t),o=this.children.get(r);return o?o.foreachOnPath_(li(t),fi(n,r),i):new e(null)}},{key:"foreach",value:function(e){this.foreach_(oi(),e)}},{key:"foreach_",value:function(e,t){this.children.inorderTraversal((function(n,i){i.foreach_(fi(e,n),t)})),this.value&&t(e,this.value)}},{key:"foreachChild",value:function(e){this.children.inorderTraversal((function(t,n){n.value&&e(t,n.value)}))}}],[{key:"fromObject",value:function(t){var n=new e(null);return Cn(t,(function(e,t){n=n.set(new ri(e),t)})),n}}]),e}(),Dr=function(){function e(t){ne(this,e),this.writeTree_=t}return re(e,null,[{key:"empty",value:function(){return new e(new Br(null))}}]),e}();function zr(e,t,n){if(di(t))return new Dr(new Br(n));var i=e.writeTree_.findRootMostValueAndPath(t);if(null!=i){var r=i.path,o=i.value,a=pi(r,t);return o=o.updateChild(a,n),new Dr(e.writeTree_.set(r,o))}var s=new Br(n),l=e.writeTree_.setTree(t,s);return new Dr(l)}function jr(e,t,n){var i=e;return Cn(n,(function(e,n){i=zr(i,fi(t,e),n)})),i}function Fr(e,t){if(di(t))return Dr.empty();var n=e.writeTree_.setTree(t,new Br(null));return new Dr(n)}function Zr(e,t){return null!=Wr(e,t)}function Wr(e,t){var n=e.writeTree_.findRootMostValueAndPath(t);return null!=n?e.writeTree_.get(n.path).getChild(pi(n.path,t)):null}function Ur(e){var t=[],n=e.writeTree_.value;return null!=n?n.isLeafNode()||n.forEachChild(Hi,(function(e,n){t.push(new xi(e,n))}
2)):e.writeTree_.children.inorderTraversal((function(e,n){null!=n.value&&t.push(new xi(e,n.value))})),t}function Hr(e,t){if(di(t))return e;var n=Wr(e,t);return new Dr(null!=n?new Br(n):e.writeTree_.subtree(t))}function Gr(e){return e.writeTree_.isEmpty()}function Yr(e,t){return Vr(oi(),e.writeTree_,t)}function Vr(e,t,n){if(null!=t.value)return n.updateChild(e,t.value);var i=null;return t.children.inorderTraversal((function(t,r){".priority"===t?(he(null!==r.value,"Priority writes must always be leaf nodes"),i=r.value):n=Vr(fi(e,t),r,n)})),n.getChild(e).isEmpty()||null===i||(n=n.updateChild(fi(e,".priority"),i)),n}function Qr(e,t){return lo(t,e)}function qr(e,t){for(var n=0;n<e.allWrites.length;n++){var i=e.allWrites[n];if(i.writeId===t)return i}return null}function Jr(e,t){var n=e.allWrites.findIndex((function(e){return e.writeId===t}));he(n>=0,"removeWrite called with nonexistent writeId.");var i=e.allWrites[n];e.allWrites.splice(n,1);for(var r=i.visible,o=!1,a=e.allWrites.length-1;r&&a>=0;){var s=e.allWrites[a];s.visible&&(a>=n&&Kr(s,i.path)?r=!1:vi(i.path,s.path)&&(o=!0)),a--}if(r){if(o)return function(e){e.visibleWrites=$r(e.allWrites,Xr,oi()),e.allWrites.length>0?e.lastWriteId=e.allWrites[e.allWrites.length-1].writeId:e.lastWriteId=-1}(e),!0;i.snap?e.visibleWrites=Fr(e.visibleWrites,i.path):Cn(i.children,(function(t){e.visibleWrites=Fr(e.visibleWrites,fi(i.path,t))}));return!0}return!1}function Kr(e,t){if(e.snap)return vi(e.path,t);for(var n in e.children)if(e.children.hasOwnProperty(n)&&vi(fi(e.path,n),t))return!0;return!1}function Xr(e){return e.visible}function $r(e,t,n){for(var i=Dr.empty(),r=0;r<e.length;++r){var o=e[r];if(t(o)){var a=o.path,s=void 0;if(o.snap)vi(n,a)?i=zr(i,s=pi(n,a),o.snap):vi(a,n)&&(s=pi(a,n),i=zr(i,oi(),o.snap.getChild(s)));else{if(!o.children)throw fe("WriteRecord should have .snap or .children");if(vi(n,a))i=jr(i,s=pi(n,a),o.children);else if(vi(a,n))if(di(s=pi(a,n)))i=jr(i,oi(),o.children);else{var l=Oe(o.children,ai(s));if(l){var u=l.getChild(li(s));i=zr(i,oi(),u)}}}}}return i}function eo(e,t,n,i,r){if(i||r){var o=Hr(e.visibleWrites,t);if(!r&&Gr(o))return n;if(r||null!=n||Zr(o,oi())){return Yr($r(e.allWrites,(function(e){return(e.visible||r)&&(!i||!~i.indexOf(e.writeId))&&(vi(e.path,t)||vi(t,e.path))}),t),n||Ji.EMPTY_NODE)}return null}var a=Wr(e.visibleWrites,t);if(null!=a)return a;var s=Hr(e.visibleWrites,t);return Gr(s)?n:null!=n||Zr(s,oi())?Yr(s,n||Ji.EMPTY_NODE):null}function to(e,t,n,i){return eo(e.writeTree,e.treePath,t,n,i)}function no(e,t){return function(e,t,n){var i=Ji.EMPTY_NODE,r=Wr(e.visibleWrites,t);if(r)return r.isLeafNode()||r.forEachChild(Hi,(function(e,t){i=i.updateImmediateChild(e,t)})),i;if(n){var o=Hr(e.visibleWrites,t);return n.forEachChild(Hi,(function(e,t){var n=Yr(Hr(o,new ri(e)),t);i=i.updateImmediateChild(e,n)})),Ur(o).forEach((function(e){i=i.updateImmediateChild(e.name,e.node)})),i}
2return Ur(Hr(e.visibleWrites,t)).forEach((function(e){i=i.updateImmediateChild(e.name,e.node)})),i}(e.writeTree,e.treePath,t)}function io(e,t,n,i){return function(e,t,n,i,r){he(i||r,"Either existingEventSnap or existingServerSnap must exist");var o=fi(t,n);if(Zr(e.visibleWrites,o))return null;var a=Hr(e.visibleWrites,o);return Gr(a)?r.getChild(n):Yr(a,r.getChild(n))}(e.writeTree,e.treePath,t,n,i)}function ro(e,t){return function(e,t){return Wr(e.visibleWrites,t)}(e.writeTree,fi(e.treePath,t))}function oo(e,t,n,i,r,o){return function(e,t,n,i,r,o,a){var s,l=Hr(e.visibleWrites,t),u=Wr(l,oi());if(null!=u)s=u;else{if(null==n)return[];s=Yr(l,n)}if((s=s.withIndex(a)).isEmpty()||s.isLeafNode())return[];for(var c=[],h=a.getCompare(),f=o?s.getReverseIteratorFrom(i,a):s.getIteratorFrom(i,a),d=f.getNext();d&&c.length<r;)0!==h(d,i)&&c.push(d),d=f.getNext();return c}(e.writeTree,e.treePath,t,n,i,r,o)}function ao(e,t,n){return function(e,t,n,i){var r=fi(t,n),o=Wr(e.visibleWrites,r);return null!=o?o:i.isCompleteForChild(n)?Yr(Hr(e.visibleWrites,r),i.getNode().getImmediateChild(n)):null}(e.writeTree,e.treePath,t,n)}function so(e,t){return lo(fi(e.treePath,t),e.writeTree)}function lo(e,t){return{treePath:e,writeTree:t}}var uo=function(){function e(){ne(this,e),this.changeMap=new Map}return re(e,[{key:"trackChildChange",value:function(e){var t=e.type,n=e.childName;he("child_added"===t||"child_changed"===t||"child_removed"===t,"Only child changes supported for tracking"),he(".priority"!==n,"Only non-priority child changes can be tracked.");var i=this.changeMap.get(n);if(i){var r=i.type;if("child_added"===t&&"child_removed"===r)this.changeMap.set(n,ar(n,e.snapshotNode,i.snapshotNode));else if("child_removed"===t&&"child_added"===r)this.changeMap.delete(n);else if("child_removed"===t&&"child_changed"===r)this.changeMap.set(n,or(n,i.oldSnap));else if("child_changed"===t&&"child_added"===r)this.changeMap.set(n,rr(n,e.snapshotNode));else{if("child_changed"!==t||"child_changed"!==r)throw fe("Illegal combination of changes: "+e+" occurred after "+i);this.changeMap.set(n,ar(n,e.snapshotNode,i.oldSnap))}}else this.changeMap.set(n,e)}},{key:"getChanges",value:function(){return Array.from(this.changeMap.values())}}]),e}(),co=new(function(){function e(){ne(this,e)}return re(e,[{key:"getCompleteChild",value:function(e){return null}},{key:"getChildAfterChild",value:function(e,t,n){return null}}]),e}()),ho=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;ne(this,e),this.writes_=t,this.viewCache_=n,this.optCompleteServerCache_=i}return re(e,[{key:"getCompleteChild",value:function(e){var t=this.viewCache_.eventCache;if(t.isCompleteForChild(e))return t.getNode().getImmediateChild(e);var n=null!=this.optCompleteServerCache_?new Sr(this.optCompleteServerCache_,!0,!1):this.viewCache_.serverCache;return ao(this.writes_,e,n)}},{key:"getChildAfterChild",value:function(e,t,n){var i=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:Nr(this.viewCache_),r=oo(this.writes_,i,t,1,n,e);return 0===r.length?null:r[0]}}]),e}();function fo(e,t,n,i,r){var o,a,s=new uo;if(n.type===yr.OVERWRITE){var l=n;l.source.fromUser?o=vo(e,t,l.path,l.snap,i,r,s):(he(l.source.fromServer,"Unknown source."),a=l.source.tagged||t.serverCache.isFiltered()&&!di(l.path),o=mo(e,t,l.path,l.snap,i,r,a,s))}else if(n.type===yr.MERGE){var u=n;u.source.fromUser?o=function(e,t,n,i,r,o,a){var s=t;return i.foreach((function(i,l){var u=fi(n,i);go(t,ai(u))&&(s=vo(e,s,u,l,r,o,a))})),i.foreach((function(i,l){var u=fi(n,i);go(t,ai(u))||(s=vo(e,s,u,l,r,o,a))})),s}(e,t,u.path,u.children,i,r,s):(he(u.source.fromServer,"Unknown source."),a=u.source.tagged||t.serverCache.isFiltered(),o=_o(e,t,u.path,u.children,i,r,a,s))}else if(n.type===yr.ACK_USER_WRITE){var c=n;o=c.revert?function(e,t,n,i,r,o){var a;if(null!=ro(i,n))return t;var s,l=new ho(i,t,r),u=t.eventCache.getNode();if(di(n)||".priority"===ai(n)){var c;if(t.serverCache.isFullyInitialized())c=to(i,Nr(t));else{var h=t.serverCache.getNode();he(h instanceof Ji,"serverChildren would be complete if leaf node"),c=no(i,h)}s=e.filter.updateFullNode(u,c,o)}else{var f=ai(n),d=ao(i,f,t.serverCache);null==d&&t.serverCache.isCompleteForChild(f)&&(d=u.getImmediateChild(f)),(s=null!=d?e.filter.updateChild(u,f,d,li(n),l,o):t.eventCache.getNode().hasChild(f)?e.filter.updateChild(u,f,Ji.EMPTY_NODE,li(n),l,o):u).isEmpty()&&t.serverCache.isFullyInitialized()&&(a=to(i,Nr(t))).isLeafNode()&&(s=e.filter.updateFullNode(s,a,o))}return a=t.serverCache.isFullyInitialized()||null!=ro(i,oi()),Lr(t,s,a,e.filter.filtersNodes())}(e,t,c.path,i,r,s):function(e,t,n,i,r,o,a){if(null!=ro(r,n))return t;var s=t.serverCache.isFiltered(),l=t.serverCache;if(null!=i.value){if(di(n)&&l.isFullyInitialized()||l.isCompleteForPath(n))return mo(e,t,n,l.getNode().getChild(n),r,o,s,a);if(di(n)){var u=new Br(null);
2return l.getNode().forEachChild(Si,(function(e,t){u=u.set(new ri(e),t)})),_o(e,t,n,u,r,o,s,a)}return t}var c=new Br(null);return i.foreach((function(e,t){var i=fi(n,e);l.isCompleteForPath(i)&&(c=c.set(e,l.getNode().getChild(i)))})),_o(e,t,n,c,r,o,s,a)}(e,t,c.path,c.affectedTree,i,r,s)}else{if(n.type!==yr.LISTEN_COMPLETE)throw fe("Unknown operation type: "+n.type);o=function(e,t,n,i,r){var o=t.serverCache,a=Or(t,o.getNode(),o.isFullyInitialized()||di(n),o.isFiltered());return po(e,a,n,i,co,r)}(e,t,n.path,i,s)}var h=s.getChanges();return function(e,t,n){var i=t.eventCache;if(i.isFullyInitialized()){var r=i.getNode().isLeafNode()||i.getNode().isEmpty(),o=Mr(e);(n.length>0||!e.eventCache.isFullyInitialized()||r&&!i.getNode().equals(o)||!i.getNode().getPriority().equals(o.getPriority()))&&n.push(ir(Mr(t)))}}(t,o,h),{viewCache:o,changes:h}}function po(e,t,n,i,r,o){var a,s,l=t.eventCache;if(null!=ro(i,n))return t;if(di(n))if(he(t.serverCache.isFullyInitialized(),"If change path is empty, we must have complete server data"),t.serverCache.isFiltered()){var u=Nr(t),c=no(i,u instanceof Ji?u:Ji.EMPTY_NODE);a=e.filter.updateFullNode(t.eventCache.getNode(),c,o)}else{var h=to(i,Nr(t));a=e.filter.updateFullNode(t.eventCache.getNode(),h,o)}else{var f=ai(n);if(".priority"===f){he(1===si(n),"Can't have a priority with additional path components");var d=l.getNode(),p=io(i,n,d,s=t.serverCache.getNode());a=null!=p?e.filter.updatePriority(d,p):l.getNode()}else{var m,v=li(n);if(l.isCompleteForChild(f)){s=t.serverCache.getNode();var g=io(i,n,l.getNode(),s);m=null!=g?l.getNode().getImmediateChild(f).updateChild(v,g):l.getNode().getImmediateChild(f)}else m=ao(i,f,t.serverCache);a=null!=m?e.filter.updateChild(l.getNode(),f,m,v,r,o):l.getNode()}}return Lr(t,a,l.isFullyInitialized()||di(n),e.filter.filtersNodes())}function mo(e,t,n,i,r,o,a,s){var l,u=t.serverCache,c=a?e.filter:e.filter.getIndexedFilter();if(di(n))l=c.updateFullNode(u.getNode(),i,null);else if(c.filtersNodes()&&!u.isFiltered()){var h=u.getNode().updateChild(n,i);l=c.updateFullNode(u.getNode(),h,null)}else{var f=ai(n);if(!u.isCompleteForPath(n)&&si(n)>1)return t;var d=li(n),p=u.getNode().getImmediateChild(f).updateChild(d,i);l=".priority"===f?c.updatePriority(u.getNode(),p):c.updateChild(u.getNode(),f,p,d,co,null)}var m=Or(t,l,u.isFullyInitialized()||di(n),c.filtersNodes());return po(e,m,n,r,new ho(r,m,o),s)}function vo(e,t,n,i,r,o,a){var s,l,u=t.eventCache,c=new ho(r,t,o);if(di(n))l=e.filter.updateFullNode(t.eventCache.getNode(),i,a),s=Lr(t,l,!0,e.filter.filtersNodes());else{var h=ai(n);if(".priority"===h)l=e.filter.updatePriority(t.eventCache.getNode(),i),s=Lr(t,l,u.isFullyInitialized(),u.isFiltered());else{var f,d=li(n),p=u.getNode().getImmediateChild(h);if(di(d))f=i;else{var m=c.getCompleteChild(h);f=null!=m?".priority"===ui(d)&&m.getChild(hi(d)).isEmpty()?m:m.updateChild(d,i):Ji.EMPTY_NODE}if(p.equals(f))s=t;else s=Lr(t,e.filter.updateChild(u.getNode(),h,f,d,c,a),u.isFullyInitialized(),e.filter.filtersNodes())}}return s}function go(e,t){return e.eventCache.isCompleteForChild(t)}function yo(e,t,n){return n.foreach((function(e,n){t=t.updateChild(e,n)})),t}function _o(e,t,n,i,r,o,a,s){if(t.serverCache.getNode().isEmpty()&&!t.serverCache.isFullyInitialized())return t;var l,u=t;l=di(n)?i:new Br(null).setTree(n,i);var c=t.serverCache.getNode();return l.children.inorderTraversal((function(n,i){if(c.hasChild(n)){var l=yo(0,t.serverCache.getNode().getImmediateChild(n),i);u=mo(e,u,new ri(n),l,r,o,a,s)}})),l.children.inorderTraversal((function(n,i){var l=!t.serverCache.isCompleteForChild(n)&&null===i.value;if(!c.hasChild(n)&&!l){var h=yo(0,t.serverCache.getNode().getImmediateChild(n),i);u=mo(e,u,new ri(n),h,r,o,a,s)}})),u}var bo,wo=function(){function e(t,n){ne(this,e),this.query_=t,this.eventRegistrations_=[];var i,r=this.query_._queryParams,o=new sr(r.getIndex()),a=(i=r).loadsAllData()?new sr(i.getIndex()):i.hasLimit()?new ur(i):new lr(i);this.processor_=function(e){return{filter:e}}(a);var s=n.serverCache,l=n.eventCache,u=o.updateFullNode(Ji.EMPTY_NODE,s.getNode(),null),c=a.updateFullNode(Ji.EMPTY_NODE,l.getNode(),null),h=new Sr(u,s.isFullyInitialized(),o.filtersNodes()),f=new Sr(c,l.isFullyInitialized(),a.filtersNodes());this.viewCache_=Ir(f,h),this.eventGenerator_=new Pr(this.query_)}return re(e,[{key:"query",get:function(){return this.query_}}]),e}();function ko(e,t){var n=Nr(e.viewCache_);return n&&(e.query._queryParams.loadsAllData()||!di(t)&&!n.getImmediateChild(ai(t)).isEmpty())?n.getChild(t):null}function Ao(e){return 0===e.eventRegistrations_.length}
2function xo(e,t,n){var i=[];if(n){he(null==t,"A cancel should cancel all event registrations.");var r=e.query._path;e.eventRegistrations_.forEach((function(e){var t=e.createCancelEvent(n,r);t&&i.push(t)}))}if(t){for(var o=[],a=0;a<e.eventRegistrations_.length;++a){var s=e.eventRegistrations_[a];if(s.matches(t)){if(t.hasAnyCallback()){o=o.concat(e.eventRegistrations_.slice(a+1));break}}else o.push(s)}e.eventRegistrations_=o}else e.eventRegistrations_=[];return i}function Co(e,t,n,i){t.type===yr.MERGE&&null!==t.source.queryId&&(he(Nr(e.viewCache_),"We should always have a full cache before handling merges"),he(Mr(e.viewCache_),"Missing event cache, even though we have a server cache"));var r,o,a=e.viewCache_,s=fo(e.processor_,a,t,n,i);return r=e.processor_,o=s.viewCache,he(o.eventCache.getNode().isIndexed(r.filter.getIndex()),"Event snap not indexed"),he(o.serverCache.getNode().isIndexed(r.filter.getIndex()),"Server snap not indexed"),he(s.viewCache.serverCache.isFullyInitialized()||!a.serverCache.isFullyInitialized(),"Once a server snap is complete, it should never go back"),e.viewCache_=s.viewCache,Eo(e,s.changes,s.viewCache.eventCache.getNode(),null)}function Eo(e,t,n,i){var r=i?[i]:e.eventRegistrations_;return function(e,t,n,i){var r=[],o=[];return t.forEach((function(t){var n;"child_changed"===t.type&&e.index_.indexedValueChanged(t.oldSnap,t.snapshotNode)&&o.push((n=t.childName,{type:"child_moved",snapshotNode:t.snapshotNode,childName:n}))})),Tr(e,r,"child_removed",t,i,n),Tr(e,r,"child_added",t,i,n),Tr(e,r,"child_moved",o,i,n),Tr(e,r,"child_changed",t,i,n),Tr(e,r,"value",t,i,n),r}(e.eventGenerator_,t,n,r)}var So,Po=re((function e(){ne(this,e),this.views=new Map}));function To(e){return 0===e.views.size}function Io(e,t,n,i){var r=t.source.queryId;if(null!==r){var o=e.views.get(r);return he(null!=o,"SyncTree gave us an op for an invalid query."),Co(o,t,n,i)}var a,s=[],l=te(e.views.values());try{for(l.s();!(a=l.n()).done;){var u=a.value;s=s.concat(Co(u,t,n,i))}}catch(c){l.e(c)}finally{l.f()}return s}function Lo(e,t,n,i,r){var o=t._queryIdentifier,a=e.views.get(o);if(!a){var s=to(n,r?i:null),l=!1;s?l=!0:i instanceof Ji?(s=no(n,i),l=!1):(s=Ji.EMPTY_NODE,l=!1);var u=Ir(new Sr(s,l,!1),new Sr(i,r,!1));return new wo(t,u)}return a}function Oo(e,t,n,i,r,o){var a=Lo(e,t,i,r,o);return e.views.has(t._queryIdentifier)||e.views.set(t._queryIdentifier,a),function(e,t){e.eventRegistrations_.push(t)}(a,n),function(e,t){var n=e.viewCache_.eventCache,i=[];return n.getNode().isLeafNode()||n.getNode().forEachChild(Hi,(function(e,t){i.push(rr(e,t))})),n.isFullyInitialized()&&i.push(ir(n.getNode())),Eo(e,i,n.getNode(),t)}(a,n)}function Mo(e,t,n,i){var r=t._queryIdentifier,o=[],a=[],s=zo(e);if("default"===r){var l,u=te(e.views.entries());try{for(u.s();!(l=u.n()).done;){var c=h(l.value,2),f=c[0],d=c[1];a=a.concat(xo(d,n,i)),Ao(d)&&(e.views.delete(f),d.query._queryParams.loadsAllData()||o.push(d.query))}}catch(m){u.e(m)}finally{u.f()}}else{var p=e.views.get(r);p&&(a=a.concat(xo(p,n,i)),Ao(p)&&(e.views.delete(r),p.query._queryParams.loadsAllData()||o.push(p.query)))}return s&&!zo(e)&&o.push(new(he(bo,"Reference.ts has not been loaded"),bo)(t._repo,t._path)),{removed:o,events:a}}function No(e){var t,n=[],i=te(e.views.values());try{for(i.s();!(t=i.n()).done;){var r=t.value;r.query._queryParams.loadsAllData()||n.push(r)}}catch(o){i.e(o)}finally{i.f()}return n}function Ro(e,t){var n,i=null,r=te(e.views.values());try{for(r.s();!(n=r.n()).done;){var o=n.value;i=i||ko(o,t)}}catch(a){r.e(a)}finally{r.f()}return i}function Bo(e,t){if(t._queryParams.loadsAllData())return jo(e);var n=t._queryIdentifier;return e.views.get(n)}function Do(e,t){return null!=Bo(e,t)}function zo(e){return null!=jo(e)}function jo(e){var t,n=te(e.views.values());try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i.query._queryParams.loadsAllData())return i}}catch(r){n.e(r)}finally{n.f()}return null}var Fo=1,Zo=re((function e(t){ne(this,e),this.listenProvider_=t,this.syncPointTree_=new Br(null),this.pendingWriteTree_={visibleWrites:Dr.empty(),allWrites:[],lastWriteId:-1},this.tagToQueryMap=new Map,this.queryToTagMap=new Map}));function Wo(e,t,n,i,r){return function(e,t,n,i,r){he(i>e.lastWriteId,"Stacking an older write on top of newer ones"),void 0===r&&(r=!0),e.allWrites.push({path:t,snap:n,writeId:i,visible:r}),r&&(e.visibleWrites=zr(e.visibleWrites,t,n)),e.lastWriteId=i}(e.pendingWriteTree_,t,n,i,r),r?Jo(e,new Cr({fromUser:!0,fromServer:!1,queryId:null,tagged:!1},t,n)):[]}function Uo(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=qr(e.pendingWriteTree_,t),r=Jr(e.pendingWriteTree_,t);if(r){var o=new Br(null);return null!=i.snap?o=o.set(oi(),!0):Cn(i.children,(function(e){o=o.set(new ri(e),
2!0)})),Jo(e,new Ar(i.path,o,n))}return[]}function Ho(e,t,n){return Jo(e,new Cr({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},t,n))}function Go(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=t._path,a=e.syncPointTree_.get(o),s=[];if(a&&("default"===t._queryIdentifier||Do(a,t))){var l=Mo(a,t,n,i);To(a)&&(e.syncPointTree_=e.syncPointTree_.remove(o));var u=l.removed;if(s=l.events,!r){var c=-1!==u.findIndex((function(e){return e._queryParams.loadsAllData()})),h=e.syncPointTree_.findOnPath(o,(function(e,t){return zo(t)}));if(c&&!h){var f=e.syncPointTree_.subtree(o);if(!f.isEmpty())for(var d=oa(f),p=0;p<d.length;++p){var m=d[p],v=m.query,g=$o(e,m);e.listenProvider_.startListening(aa(v),ea(e,v),g.hashFn,g.onComplete)}}if(!h&&u.length>0&&!i)if(c){var y=null;e.listenProvider_.stopListening(aa(t),y)}else u.forEach((function(t){var n=e.queryToTagMap.get(ta(t));e.listenProvider_.stopListening(aa(t),n)}))}sa(e,u)}return s}function Yo(e,t,n,i){var r=na(e,i);if(null!=r){var o=ia(r),a=o.path,s=o.queryId,l=pi(a,t);return ra(e,a,new Cr(wr(s),l,n))}return[]}function Vo(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=t._path,o=null,a=!1;e.syncPointTree_.foreachOnPath(r,(function(e,t){var n=pi(e,r);o=o||Ro(t,n),a=a||zo(t)}));var s,l=e.syncPointTree_.get(r);if(l?(a=a||zo(l),o=o||Ro(l,oi())):(l=new Po,e.syncPointTree_=e.syncPointTree_.set(r,l)),null!=o)s=!0;else{s=!1,o=Ji.EMPTY_NODE;var u=e.syncPointTree_.subtree(r);u.foreachChild((function(e,t){var n=Ro(t,oi());n&&(o=o.updateImmediateChild(e,n))}))}var c=Do(l,t);if(!c&&!t._queryParams.loadsAllData()){var h=ta(t);he(!e.queryToTagMap.has(h),"View does not exist, but we have a tag");var f=la();e.queryToTagMap.set(h,f),e.tagToQueryMap.set(f,h)}var d=Qr(e.pendingWriteTree_,r),p=Oo(l,t,n,d,o,s);if(!c&&!a&&!i){var m=Bo(l,t);p=p.concat(ua(e,t,m))}return p}function Qo(e,t,n){var i=e.pendingWriteTree_,r=e.syncPointTree_.findOnPath(t,(function(e,n){var i=Ro(n,pi(e,t));if(i)return i}));return eo(i,t,r,n,!0)}function qo(e,t){var n=t._path,i=null;e.syncPointTree_.foreachOnPath(n,(function(e,t){var r=pi(e,n);i=i||Ro(t,r)}));var r=e.syncPointTree_.get(n);r?i=i||Ro(r,oi()):(r=new Po,e.syncPointTree_=e.syncPointTree_.set(n,r));var o=null!=i,a=o?new Sr(i,!0,!1):null;return function(e){return Mr(e.viewCache_)}(Lo(r,t,Qr(e.pendingWriteTree_,t._path),o?a.getNode():Ji.EMPTY_NODE,o))}function Jo(e,t){return Ko(t,e.syncPointTree_,null,Qr(e.pendingWriteTree_,oi()))}function Ko(e,t,n,i){if(di(e.path))return Xo(e,t,n,i);var r=t.get(oi());null==n&&null!=r&&(n=Ro(r,oi()));var o=[],a=ai(e.path),s=e.operationForChild(a),l=t.children.get(a);if(l&&s){var u=n?n.getImmediateChild(a):null,c=so(i,a);o=o.concat(Ko(s,l,u,c))}return r&&(o=o.concat(Io(r,e,i,n))),o}function Xo(e,t,n,i){var r=t.get(oi());null==n&&null!=r&&(n=Ro(r,oi()));var o=[];return t.children.inorderTraversal((function(t,r){var a=n?n.getImmediateChild(t):null,s=so(i,t),l=e.operationForChild(t);l&&(o=o.concat(Xo(l,r,a,s)))})),r&&(o=o.concat(Io(r,e,i,n))),o}function $o(e,t){var n=t.query,i=ea(e,n);return{hashFn:function(){var e=function(e){return e.viewCache_.serverCache.getNode()}(t)||Ji.EMPTY_NODE;return e.hash()},onComplete:function(t){if("ok"===t)return i?function(e,t,n){var i=na(e,n);if(i){var r=ia(i),o=r.path,a=r.queryId,s=pi(o,t);return ra(e,o,new xr(wr(a),s))}return[]}(e,n._path,i):function(e,t){return Jo(e,new xr({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},t))}(e,n._path);var r=function(e,t){var n="Unknown Error";"too_big"===e?n="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"===e?n="Client doesn't have permission to access the desired data.":"unavailable"===e&&(n="The service is unavailable");var i=new Error(e+" at "+t._path.toString()+": "+n);return i.code=e.toUpperCase(),i}(t,n);return Go(e,n,null,r)}}}function ea(e,t){var n=ta(t);return e.queryToTagMap.get(n)}function ta(e){return e._path.toString()+"$"+e._queryIdentifier}function na(e,t){return e.tagToQueryMap.get(t)}function ia(e){var t=e.indexOf("$");return he(-1!==t&&t<e.length-1,"Bad queryKey."),{queryId:e.substr(t+1),path:new ri(e.substr(0,t))}}function ra(e,t,n){var i=e.syncPointTree_.get(t);return he(i,"Missing sync point for query tag that we're tracking"),Io(i,n,Qr(e.pendingWriteTree_,t),null)}function oa(e){return e.fold((function(e,t,n){if(t&&zo(t))return[jo(t)];var i=[];return t&&(i=No(t)),Cn(n,(function(e,t){i=i.concat(t)})),i}))}
2function aa(e){return e._queryParams.loadsAllData()&&!e._queryParams.isDefault()?new(he(So,"Reference.ts has not been loaded"),So)(e._repo,e._path):e}function sa(e,t){for(var n=0;n<t.length;++n){var i=t[n];if(!i._queryParams.loadsAllData()){var r=ta(i),o=e.queryToTagMap.get(r);e.queryToTagMap.delete(r),e.tagToQueryMap.delete(o)}}}function la(){return Fo++}function ua(e,t,n){var i=t._path,r=ea(e,t),o=$o(e,n),a=e.listenProvider_.startListening(aa(t),r,o.hashFn,o.onComplete),s=e.syncPointTree_.subtree(i);if(r)he(!zo(s.value),"If we're adding a query, it shouldn't be shadowed");else for(var l=s.fold((function(e,t,n){if(!di(e)&&t&&zo(t))return[jo(t).query];var i=[];return t&&(i=i.concat(No(t).map((function(e){return e.query})))),Cn(n,(function(e,t){i=i.concat(t)})),i})),u=0;u<l.length;++u){var c=l[u];e.listenProvider_.stopListening(aa(c),ea(e,c))}return a}var ca=function(){function e(t){ne(this,e),this.node_=t}return re(e,[{key:"getImmediateChild",value:function(t){return new e(this.node_.getImmediateChild(t))}},{key:"node",value:function(){return this.node_}}]),e}(),ha=function(){function e(t,n){ne(this,e),this.syncTree_=t,this.path_=n}return re(e,[{key:"getImmediateChild",value:function(t){var n=fi(this.path_,t);return new e(this.syncTree_,n)}},{key:"node",value:function(){return Qo(this.syncTree_,this.path_)}}]),e}(),fa=function(e,t,n){return e&&"object"===typeof e?(he(".sv"in e,"Unexpected leaf node or priority contents"),"string"===typeof e[".sv"]?da(e[".sv"],t,n):"object"===typeof e[".sv"]?pa(e[".sv"],t):void he(!1,"Unexpected server value: "+JSON.stringify(e,null,2))):e},da=function(e,t,n){if("timestamp"===e)return n.timestamp;he(!1,"Unexpected server value: "+e)},pa=function(e,t,n){e.hasOwnProperty("increment")||he(!1,"Unexpected server value: "+JSON.stringify(e,null,2));var i=e.increment;"number"!==typeof i&&he(!1,"Unexpected increment value: "+i);var r=t.node();if(he(null!==r&&"undefined"!==typeof r,"Expected ChildrenNode.EMPTY_NODE for nulls"),!r.isLeafNode())return i;var o=r.getValue();return"number"!==typeof o?i:o+i},ma=function(e,t,n,i){return ga(t,new ha(n,e),i)},va=function(e,t,n){return ga(e,new ca(t),n)};function ga(e,t,n){var i,r=e.getPriority().val(),o=fa(r,t.getImmediateChild(".priority"),n);if(e.isLeafNode()){var a=e,s=fa(a.getValue(),t,n);return s!==a.getValue()||o!==a.getPriority().val()?new Fi(s,Xi(o)):e}var l=e;return i=l,o!==l.getPriority().val()&&(i=i.updatePriority(new Fi(o))),l.forEachChild(Hi,(function(e,r){var o=ga(r,t.getImmediateChild(e),n);o!==r&&(i=i.updateImmediateChild(e,o))})),i}var ya=re((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{children:{},childCount:0};ne(this,e),this.name=t,this.parent=n,this.node=i}));function _a(e,t){for(var n=t instanceof ri?t:new ri(t),i=e,r=ai(n);null!==r;){var o=Oe(i.node.children,r)||{children:{},childCount:0};i=new ya(r,i,o),r=ai(n=li(n))}return i}function ba(e){return e.node.value}function wa(e,t){e.node.value=t,Ea(e)}function ka(e){return e.node.childCount>0}function Aa(e,t){Cn(e.node.children,(function(n,i){t(new ya(n,e,i))}))}function xa(e,t,n,i){n&&!i&&t(e),Aa(e,(function(e){xa(e,t,!0,i)})),n&&i&&t(e)}function Ca(e){return new ri(null===e.parent?e.name:Ca(e.parent)+"/"+e.name)}function Ea(e){null!==e.parent&&function(e,t,n){var i=function(e){return void 0===ba(e)&&!ka(e)}(n),r=Le(e.node.children,t);i&&r?(delete e.node.children[t],e.node.childCount--,Ea(e)):i||r||(e.node.children[t]=n.node,e.node.childCount++,Ea(e))}(e.parent,e.name,e)}var Sa=/[\[\].#$\/\u0000-\u001F\u007F]/,Pa=/[\[\].#$\u0000-\u001F\u007F]/,Ta=10485760,Ia=function(e){return"string"===typeof e&&0!==e.length&&!Sa.test(e)},La=function(e){return"string"===typeof e&&0!==e.length&&!Pa.test(e)},Oa=function(e,t,n,i){i&&void 0===t||Ma(je(e,"value"),t,n)},Ma=function e(t,n,i){var r=i instanceof ri?new gi(i,t):i;if(void 0===n)throw new Error(t+"contains undefined "+_i(r));if("function"===typeof n)throw new Error(t+"contains a function "+_i(r)+" with contents = "+n.toString());if(gn(n))throw new Error(t+"contains "+n.toString()+" "+_i(r));if("string"===typeof n&&n.length>Ta/3&&Fe(n)>Ta)throw new Error(t+"contains a string greater than "+"10485760 utf8 bytes "+_i(r)+" ('"+n.substring(0,50)+"...')");if(n&&"object"===typeof n){var o=!1,a=!1;
2if(Cn(n,(function(n,i){if(".value"===n)o=!0;else if(".priority"!==n&&".sv"!==n&&(a=!0,!Ia(n)))throw new Error(t+" contains an invalid key ("+n+") "+_i(r)+'.  Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');var s,l;l=n,(s=r).parts_.length>0&&(s.byteLength_+=1),s.parts_.push(l),s.byteLength_+=Fe(l),yi(s),e(t,i,r),function(e){var t=e.parts_.pop();e.byteLength_-=Fe(t),e.parts_.length>0&&(e.byteLength_-=1)}(r)})),o&&a)throw new Error(t+' contains ".value" child '+_i(r)+" in addition to actual children.")}},Na=function(e,t,n,i){if((!i||void 0!==n)&&!La(n))throw new Error(je(e,t)+'was an invalid path = "'+n+'". Paths must be non-empty strings and can\'t contain ".", "#", "$", "[", or "]"')},Ra=function(e,t){if(".info"===ai(t))throw new Error(e+" failed = Can't modify data under /.info/")},Ba=function(e,t){var n=t.path.toString();if("string"!==typeof t.repoInfo.host||0===t.repoInfo.host.length||!Ia(t.repoInfo.namespace)&&"localhost"!==t.repoInfo.host.split(":")[0]||0!==n.length&&!function(e){return e&&(e=e.replace(/^\/*\.info(\/|$)/,"/")),La(e)}(n))throw new Error(je(e,"url")+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".')},Da=re((function e(){ne(this,e),this.eventLists_=[],this.recursionDepth_=0}));function za(e,t){for(var n=null,i=0;i<t.length;i++){var r=t[i],o=r.getPath();null===n||mi(o,n.path)||(e.eventLists_.push(n),n=null),null===n&&(n={events:[],path:o}),n.events.push(r)}n&&e.eventLists_.push(n)}function ja(e,t,n){za(e,n),Fa(e,(function(e){return vi(e,t)||vi(t,e)}))}function Fa(e,t){e.recursionDepth_++;for(var n=!0,i=0;i<e.eventLists_.length;i++){var r=e.eventLists_[i];if(r)t(r.path)?(Za(e.eventLists_[i]),e.eventLists_[i]=null):n=!1}n&&(e.eventLists_=[]),e.recursionDepth_--}function Za(e){for(var t=0;t<e.events.length;t++){var n=e.events[t];if(null!==n){e.events[t]=null;var i=n.getEventRunner();un&&fn("event: "+n.toString()),Ln(i)}}}var Wa="repo_interrupt",Ua=function(){function e(t,n,i,r){ne(this,e),this.repoInfo_=t,this.forceRestClient_=n,this.authTokenProvider_=i,this.appCheckProvider_=r,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new Da,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=mr(),this.transactionQueueTree_=new ya,this.persistentConnection_=null,this.key=this.repoInfo_.toURLString()}return re(e,[{key:"toString",value:function(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host}}]),e}();function Ha(e,t,n){if(e.stats_=Gn(e.repoInfo_),e.forceRestClient_||("object"===typeof window&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0)e.server_=new dr(e.repoInfo_,(function(t,n,i,r){Va(e,t,n,i,r)}),e.authTokenProvider_,e.appCheckProvider_),setTimeout((function(){return Qa(e,!0)}),0);else{if("undefined"!==typeof n&&null!==n){if("object"!==typeof n)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{Te(n)}catch(i){throw new Error("Invalid authOverride provided: "+i)}}e.persistentConnection_=new ki(e.repoInfo_,t,(function(t,n,i,r){Va(e,t,n,i,r)}),(function(t){Qa(e,t)}),(function(t){!function(e,t){Cn(t,(function(t,n){qa(e,t,n)}))}(e,t)}),e.authTokenProvider_,e.appCheckProvider_,n),e.server_=e.persistentConnection_}e.authTokenProvider_.addTokenChangeListener((function(t){e.server_.refreshAuthToken(t)})),e.appCheckProvider_.addTokenChangeListener((function(t){e.server_.refreshAppCheckToken(t.token)})),e.statsReporter_=function(e,t){var n=e.toString();return Hn[n]||(Hn[n]=t()),Hn[n]}(e.repoInfo_,(function(){return new br(e.stats_,e.server_)})),e.infoData_=new pr,e.infoSyncTree_=new Zo({startListening:function(t,n,i,r){var o=[],a=e.infoData_.getNode(t._path);return a.isEmpty()||(o=Ho(e.infoSyncTree_,t._path,a),setTimeout((function(){r("ok")}),0)),o},stopListening:function(){}}),qa(e,"connected",!1),e.serverSyncTree_=new Zo({startListening:function(t,n,i,r){return e.server_.listen(t,i,n,(function(n,i){var o=r(n,i);ja(e.eventQueue_,t._path,o)})),[]},stopListening:function(t,n){e.server_.unlisten(t,n)}})}function Ga(e){var t=e.infoData_.getNode(new ri(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+t}function Ya(e){return(t=(t={timestamp:Ga(e)})||{}).timestamp=t.timestamp||(new Date).getTime(),t;var t}function Va(e,t,n,i,r){e.dataUpdateCount++;var o=new ri(t);n=e.interceptServerDataCallback_?e.interceptServerDataCallback_(t,n):n;var a=[];if(r)if(i){var s=Ne(n,(function(e){return Xi(e)}));a=function(e,t,n,i){var r=na(e,i);if(r){var o=ia(r),a=o.path,s=o.queryId,l=pi(a,t),u=Br.fromObject(n);return ra(e,a,new Er(wr(s),l,u))}return[]}(e.serverSyncTree_,o,s,r)}else{var l=Xi(n);a=Yo(e.serverSyncTree_,o,l,r)}else if(i){var u=Ne(n,(function(e){return Xi(e)}));a=function(e,t,n){var i=Br.fromObject(n);return Jo(e,new Er({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},t,i))}(e.serverSyncTree_,o,u)}else{var c=Xi(n);a=Ho(e.serverSyncTree_,o,c)}var h=o;a.length>0&&(h=rs(e,o)),ja(e.eventQueue_,h,a)}function Qa(e,t){qa(e,"connected",t),!1===t&&function(e){$a(e,"onDisconnectEvents");var t=Ya(e),n=mr();gr(e.onDisconnect_,oi(),(function(i,r){var o=ma(i,r,e.serverSyncTree_,t);vr(n,i,o)}));var i=[];gr(n,oi(),(function(t,n){i=i.concat(Ho(e.serverSyncTree_,t,n));var r=us(e,t);rs(e,r)})),e.onDisconnect_=mr(),ja(e.eventQueue_,oi(),i)}(e)}function qa(e,t,n){var i=new ri("/.info/"+t),r=Xi(n);e.infoData_.updateSnapshot(i,r);var o=Ho(e.infoSyncTree_,i,r);ja(e.eventQueue_,i,o)}function Ja(e){return e.nextWriteId_++}function Ka(e,t,n,i,r){$a(e,"set",{path:t.toString(),value:n,priority:i});var o=Ya(e),a=Xi(n,i),s=Qo(e.serverSyncTree_,t),l=va(a,s,o),u=Ja(e),c=Wo(e.serverSyncTree_,t,l,u,!0);za(e.eventQueue_,c),e.server_.put(t.toString(),a.val(!0),(function(n,i){var o="ok"===n;o||vn("set at "+t+" failed: "+n);var a=Uo(e.serverSyncTree_,u,!o);ja(e.eventQueue_,t,a),es(e,r,n,i)}));var h=us(e,t);rs(e,h),ja(e.eventQueue_,h,[])}function Xa(e){e.persistentConnection_&&e.persistentConnection_.interrupt(Wa)}function $a(e){var t="";e.persistentConnection_&&(t=e.persistentConnection_.id+":");for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];fn.apply(void 0,[t].concat(i))}function es(e,t,n,i){t&&Ln((function(){if("ok"===n)t(null);else{var e=(n||"error").toUpperCase(),r=e;i&&(r+=": "+i);var o=new Error(r);o.code=e,t(o)}}))}function ts(e,t,n){return Qo(e.serverSyncTree_,t,n)||Ji.EMPTY_NODE}function ns(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.transactionQueueTree_;if(t||ls(e,t),ba(t)){var n=as(e,t);he(n.length>0,"Sending zero length transaction queue");var i=n.every((function(e){return 0===e.status}));i&&is(e,Ca(t),n)}else ka(t)&&Aa(t,(function(t){ns(e,t)}))}function is(e,t,n){for(var i=n.map((function(e){return e.currentWriteId})),r=ts(e,t,i),o=r,a=r.hash(),s=0;s<n.length;s++){var l=n[s];he(0===l.status,"tryToSendTransactionQueue_: items in queue should all be run."),l.status=1,l.retryCount++;var u=pi(t,l.path);o=o.updateChild(u,l.currentOutputSnapshotRaw)}var c=o.val(!0),h=t;e.server_.put(h.toString(),c,(function(i){$a(e,"transaction put response",{path:h.toString(),status:i});var r=[];if("ok"===i){for(var o=[],a=function(t){n[t].status=2,r=r.concat(Uo(e.serverSyncTree_,n[t].currentWriteId)),n[t].onComplete&&o.push((function(){return n[t].onComplete(null,!0,n[t].currentOutputSnapshotResolved)})),n[t].unwatcher()},s=0;s<n.length;s++)a(s);ls(e,_a(e.transactionQueueTree_,t)),ns(e,e.transactionQueueTree_),ja(e.eventQueue_,t,r);for(var l=0;l<o.length;l++)Ln(o[l])}else{if("datastale"===i)for(var u=0;u<n.length;u++)3===n[u].status?n[u].status=4:n[u].status=0;else{vn("transaction at "+h.toString()+" failed: "+i);for(var c=0;c<n.length;c++)n[c].status=4,n[c].abortReason=i}rs(e,t)}}),a)}function rs(e,t){var n=os(e,t),i=Ca(n);return function(e,t,n){if(0===t.length)return;for(var i=[],r=[],o=t.filter((function(e){return 0===e.status})).map((function(e){return e.currentWriteId})),a=function(a){var s,l=t[a],u=pi(n,l.path),c=!1,h=void 0;if(he(null!==u,"rerunTransactionsUnderNode_: relativePath should not be null."),4===l.status)c=!0,h=l.abortReason,r=r.concat(Uo(e.serverSyncTree_,l.currentWriteId,!0));else if(0===l.status)if(l.retryCount>=25)c=!0,h="maxretry",r=r.concat(Uo(e.serverSyncTree_,l.currentWriteId,!0));else{var f=ts(e,l.path,o);l.currentInputSnapshot=f;var d=t[a].update(f.val());if(void 0!==d){Ma("transaction failed: Data returned ",d,l.path);var p=Xi(d);"object"===typeof d&&null!=d&&Le(d,".priority")||(p=p.updatePriority(f.getPriority()));var m=l.currentWriteId,v=Ya(e),g=va(p,f,v);l.currentOutputSnapshotRaw=p,l.currentOutputSnapshotResolved=g,l.currentWriteId=Ja(e),o.splice(o.indexOf(m),1),r=(r=r.concat(Wo(e.serverSyncTree_,l.path,g,l.currentWriteId,l.applyLocally))).concat(Uo(e.serverSyncTree_,m,!0))}else c=!0,h="nodata",r=r.concat(Uo(e.serverSyncTree_,l.currentWriteId,!0))}
2ja(e.eventQueue_,n,r),r=[],c&&(t[a].status=2,s=t[a].unwatcher,setTimeout(s,Math.floor(0)),t[a].onComplete&&("nodata"===h?i.push((function(){return t[a].onComplete(null,!1,t[a].currentInputSnapshot)})):i.push((function(){return t[a].onComplete(new Error(h),!1,null)}))))},s=0;s<t.length;s++)a(s);ls(e,e.transactionQueueTree_);for(var l=0;l<i.length;l++)Ln(i[l]);ns(e,e.transactionQueueTree_)}(e,as(e,n),i),i}function os(e,t){var n,i=e.transactionQueueTree_;for(n=ai(t);null!==n&&void 0===ba(i);)i=_a(i,n),n=ai(t=li(t));return i}function as(e,t){var n=[];return ss(e,t,n),n.sort((function(e,t){return e.order-t.order})),n}function ss(e,t,n){var i=ba(t);if(i)for(var r=0;r<i.length;r++)n.push(i[r]);Aa(t,(function(t){ss(e,t,n)}))}function ls(e,t){var n=ba(t);if(n){for(var i=0,r=0;r<n.length;r++)2!==n[r].status&&(n[i]=n[r],i++);n.length=i,wa(t,n.length>0?n:void 0)}Aa(t,(function(t){ls(e,t)}))}function us(e,t){var n=Ca(os(e,t)),i=_a(e.transactionQueueTree_,t);return function(e,t,n){for(var i=n?e:e.parent;null!==i;){if(t(i))return!0;i=i.parent}}(i,(function(t){cs(e,t)})),cs(e,i),xa(i,(function(t){cs(e,t)})),n}function cs(e,t){var n=ba(t);if(n){for(var i=[],r=[],o=-1,a=0;a<n.length;a++)3===n[a].status||(1===n[a].status?(he(o===a-1,"All SENT items should be at beginning of queue."),o=a,n[a].status=3,n[a].abortReason="set"):(he(0===n[a].status,"Unexpected transaction status in abort"),n[a].unwatcher(),r=r.concat(Uo(e.serverSyncTree_,n[a].currentWriteId,!0)),n[a].onComplete&&i.push(n[a].onComplete.bind(null,new Error("set"),!1,null))));-1===o?wa(t,void 0):n.length=o+1,ja(e.eventQueue_,Ca(t),r);for(var s=0;s<i.length;s++)Ln(i[s])}}var hs=function(e,t){var n=fs(e),i=n.namespace;"firebase.com"===n.domain&&mn(n.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),i&&"undefined"!==i||"localhost"===n.domain||mn("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),n.secure||"undefined"!==typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&vn("Insecure Firebase access from a secure page. Please use https in calls to new Firebase().");var r="ws"===n.scheme||"wss"===n.scheme;return{repoInfo:new Fn(n.host,n.secure,i,r,t,"",i!==n.subdomain),path:new ri(n.pathString)}},fs=function(e){var t="",n="",i="",r="",o="",a=!0,s="https",l=443;if("string"===typeof e){var u=e.indexOf("//");u>=0&&(s=e.substring(0,u-1),e=e.substring(u+2));var c=e.indexOf("/");-1===c&&(c=e.length);var h=e.indexOf("?");-1===h&&(h=e.length),t=e.substring(0,Math.min(c,h)),c<h&&(r=function(e){for(var t="",n=e.split("/"),i=0;i<n.length;i++)if(n[i].length>0){var r=n[i];try{r=decodeURIComponent(r.replace(/\+/g," "))}catch(o){}t+="/"+r}return t}(e.substring(c,h)));var f=function(e){var t={};"?"===e.charAt(0)&&(e=e.substring(1));var n,i=te(e.split("&"));try{for(i.s();!(n=i.n()).done;){var r=n.value;if(0!==r.length){var o=r.split("=");2===o.length?t[decodeURIComponent(o[0])]=decodeURIComponent(o[1]):vn("Invalid query segment '".concat(r,"' in query '").concat(e,"'"))}}}catch(a){i.e(a)}finally{i.f()}return t}(e.substring(Math.min(e.length,h)));(u=t.indexOf(":"))>=0?(a="https"===s||"wss"===s,l=parseInt(t.substring(u+1),10)):u=t.length;var d=t.slice(0,u);if("localhost"===d.toLowerCase())n="localhost";else if(d.split(".").length<=2)n=d;else{var p=t.indexOf(".");i=t.substring(0,p).toLowerCase(),n=t.substring(p+1),o=i}"ns"in f&&(o=f.ns)}return{host:t,port:l,domain:n,subdomain:i,secure:a,scheme:s,pathString:r,namespace:o}},ds=function(){function e(t,n,i,r){ne(this,e),this.eventType=t,this.eventRegistration=n,this.snapshot=i,this.prevName=r}return re(e,[{key:"getPath",value:function(){var e=this.snapshot.ref;return"value"===this.eventType?e._path:e.parent._path}},{key:"getEventType",value:function(){return this.eventType}},{key:"getEventRunner",value:function(){return this.eventRegistration.getEventRunner(this)}},{key:"toString",value:function(){return this.getPath().toString()+":"+this.eventType+":"+Te(this.snapshot.exportVal())}}]),e}(),ps=function(){function e(t,n,i){ne(this,e),this.eventRegistration=t,this.error=n,this.path=i}return re(e,[{key:"getPath",value:function(){return this.path}},{key:"getEventType",value:function(){return"cancel"}},{key:"getEventRunner",value:function(){return this.eventRegistration.getEventRunner(this)}},{key:"toString",value:function(){return this.path.toString()+":cancel"}}]),e}(),ms=function(){function e(t,n){ne(this,e),this.snapshotCallback=t,this.cancelCallback=n}return re(e,[{key:"onValue",value:function(e,t){this.snapshotCallback.call(null,e,t)}},{key:"onCancel",value:function(e){return he(this.hasCancelCallback,"Raising a cancel event on a listener with no cancel callback"),this.cancelCallback.call(null,e)}},{key:"hasCancelCallback",get:function(){return!!this.cancelCallback}},{key:"matches",value:function(e){return this.snapshotCallback===e.snapshotCallback||void 0!==this.snapshotCallback.userCallback&&this.snapshotCallback.userCallback===e.snapshotCallback.userCallback&&this.snapshotCallback.context===e.snapshotCallback.context}}]),e}(),vs=function(){function e(t,n,i,r){ne(this,e),this._repo=t,this._path=n,this._queryParams=i,this._orderByCalled=r}return re(e,[{key:"key",get:function(){return di(this._path)?null:ui(this._path)}},{key:"ref",get:function(){return new gs(this._repo,this._path)}},{key:"_queryIdentifier",get:function(){var e=fr(this._queryParams),t=An(e);return"{}"===t?"default":t}},{key:"_queryObject",get:function(){return fr(this._queryParams)}},{key:"isEqual",value:function(t){if(!((t=Ze(t))instanceof e))return!1;var n=this._repo===t._repo,i=mi(this._path,t._path),r=this._queryIdentifier===t._queryIdentifier;return n&&i&&r}},{key:"toJSON",value:function(){return this.toString()}},{key:"toString",value:function(){return this._repo.toString()+function(e){for(var t="",n=e.pieceNum_;n<e.pieces_.length;n++)""!==e.pieces_[n]&&(t+="/"+encodeURIComponent(String(e.pieces_[n])));return t||"/"}(this._path)}}]),e}();var gs=function(e){J(n,e);var t=ee(n);function n(e,i){return ne(this,n),t.call(this,e,i,new cr,!1)}return re(n,[{key:"parent",get:function(){var e=hi(this._path);return null===e?null:new n(this._repo,e)}},{key:"root",get:function(){for(var e=this;null!==e.parent;)e=e.parent;return e}}]),n}(vs),ys=function(){function e(t,n,i){ne(this,e),this._node=t,this.ref=n,this._index=i}return re(e,[{key:"priority",get:function(){return this._node.getPriority().val()}},{key:"key",get:function(){return this.ref.key}},{key:"size",get:function(){return this._node.numChildren()}},{key:"child",value:function(t){var n=new ri(t),i=bs(this.ref,t);return new e(this._node.getChild(n),i,Hi)}},{key:"exists",value:function(){return!this._node.isEmpty()}},{key:"exportVal",value:function(){return this._node.val(!0)}}
2,{key:"forEach",value:function(t){var n=this;return!this._node.isLeafNode()&&!!this._node.forEachChild(this._index,(function(i,r){return t(new e(r,bs(n.ref,i),Hi))}))}},{key:"hasChild",value:function(e){var t=new ri(e);return!this._node.getChild(t).isEmpty()}},{key:"hasChildren",value:function(){return!this._node.isLeafNode()&&!this._node.isEmpty()}},{key:"toJSON",value:function(){return this.exportVal()}},{key:"val",value:function(){return this._node.val()}}]),e}();function _s(e,t){return(e=Ze(e))._checkNotDeleted("ref"),void 0!==t?bs(e._root,t):e._root}function bs(e,t){var n,i,r,o;return null===ai((e=Ze(e))._path)?(n="child",i="path",o=!1,(r=t)&&(r=r.replace(/^\/*\.info(\/|$)/,"/")),Na(n,i,r,o)):Na("child","path",t,!1),new gs(e._repo,fi(e._path,t))}function ws(e,t){e=Ze(e),Ra("set",e._path),Oa("set",t,e._path,!1);var n=new be;return Ka(e._repo,e._path,t,null,n.wrapCallback((function(){}))),n.promise}function ks(e){e=Ze(e);var t=new ms((function(){})),n=new As(t);return function(e,t,n){var i=qo(e.serverSyncTree_,t);return null!=i?Promise.resolve(i):e.server_.get(t).then((function(i){var r,o=Xi(i).withIndex(t._queryParams.getIndex());if(Vo(e.serverSyncTree_,t,n,!0),t._queryParams.loadsAllData())r=Ho(e.serverSyncTree_,t._path,o);else{var a=ea(e.serverSyncTree_,t);r=Yo(e.serverSyncTree_,t._path,o,a)}return ja(e.eventQueue_,t._path,r),Go(e.serverSyncTree_,t,n,null,!0),o}),(function(n){return $a(e,"get for query "+Te(t)+" failed: "+n),Promise.reject(new Error(n))}))}(e._repo,e,n).then((function(t){return new ys(t,new gs(e._repo,e._path),e._queryParams.getIndex())}))}var As=function(){function e(t){ne(this,e),this.callbackContext=t}return re(e,[{key:"respondsTo",value:function(e){return"value"===e}},{key:"createEvent",value:function(e,t){var n=t._queryParams.getIndex();return new ds("value",this,new ys(e.snapshotNode,new gs(t._repo,t._path),n))}},{key:"getEventRunner",value:function(e){var t=this;return"cancel"===e.getEventType()?function(){return t.callbackContext.onCancel(e.error)}:function(){return t.callbackContext.onValue(e.snapshot,null)}}},{key:"createCancelEvent",value:function(e,t){return this.callbackContext.hasCancelCallback?new ps(this,e,t):null}},{key:"matches",value:function(t){return t instanceof e&&(!t.callbackContext||!this.callbackContext||t.callbackContext.matches(this.callbackContext))}},{key:"hasAnyCallback",value:function(){return null!==this.callbackContext}}]),e}();!function(e){he(!bo,"__referenceConstructor has already been defined"),bo=e}(gs),function(e){he(!So,"__referenceConstructor has already been defined"),So=e}(gs);var xs={},Cs=!1;function Es(e,t,n,i,r){var o=i||e.options.databaseURL;void 0===o&&(e.options.projectId||mn("Can't determine Firebase Database URL. Be sure to include  a Project ID when calling firebase.initializeApp()."),fn("Using default host for project ",e.options.projectId),o="".concat(e.options.projectId,"-default-rtdb.firebaseio.com"));var a,s=hs(o,r),l=s.repoInfo,u=void 0;"undefined"!==typeof process&&(u={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.FIREBASE_DATABASE_EMULATOR_HOST),u?(a=!0,o="http://".concat(u,"?ns=").concat(l.namespace),l=(s=hs(o,r)).repoInfo):a=!s.repoInfo.secure;var c=r&&a?new Rn(Rn.OWNER):new Nn(e.name,e.options,t);Ba("Invalid Firebase Database URL",s),di(s.path)||mn("Database URL must point to the root of a Firebase Database (not including a child path).");var h=function(e,t,n,i){var r=xs[t.name];r||(r={},xs[t.name]=r);var o=r[e.toURLString()];o&&mn("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call.");return o=new Ua(e,Cs,n,i),r[e.toURLString()]=o,o}(l,e,c,new Mn(e.name,n));return new Ss(h,e)}var Ss=function(){function e(t,n){ne(this,e),this._repoInternal=t,this.app=n,this.type="database",this._instanceStarted=!1}return re(e,[{key:"_repo",get:function(){return this._instanceStarted||(Ha(this._repoInternal,this.app.options.appId,this.app.options.databaseAuthVariableOverride),this._instanceStarted=!0),this._repoInternal}},{key:"_root",get:function(){return this._rootInternal||(this._rootInternal=new gs(this._repo,oi())),this._rootInternal}},{key:"_delete",value:function(){return null!==this._rootInternal&&(!function(e,t){var n=xs[t];n&&n[e.key]===e||mn("Database ".concat(t,"(").concat(e.repoInfo_,") has already been deleted.")),Xa(e),delete n[e.key]}(this._repo,this.app.name),this._repoInternal=null,this._rootInternal=null),Promise.resolve()}},{key:"_checkNotDeleted",value:function(e){null===this._rootInternal&&mn("Cannot call "+e+" on a deleted database.")}}]),e}();function Ps(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Nt(),t=arguments.length>1?arguments[1]:void 0;return It(e,"database").getImmediate({identifier:t})}ki.prototype.simpleListen=function(e,t){this.sendRequest("q",{p:e},t)},ki.prototype.echo=function(e,t){this.sendRequest("echo",{d:e},t)};!function(e){!function(e){Xt=e}("9.9.4"),Tt(new We("database",(function(e,t){var n=t.instanceIdentifier;return Es(e.getProvider("app").getImmediate(),e.getProvider("auth-internal"),e.getProvider("app-check-internal"),n)}),"PUBLIC").setMultipleInstances(!0)),Rt(Jt,Kt,e),Rt(Jt,Kt,"esm2017")}();var Ts=n(4569),Is=n.n(Ts);Rt("firebase","9.9.4","app");var Ls=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"!==typeof t){var n=t;t={name:n}}var i=Object.assign({name:xt,automaticDataCollectionEnabled:!1},t),r=i.name;if("string"!==typeof r||!r)throw Ot.create("bad-app-name",{appName:String(r)});var o=Et.get(r);if(o){if(Re(e,o.options)&&Re(i,o.config))return o;throw Ot.create("duplicate-app",{appName:r})}var a,s=new Ve(r),l=te(St.values());try{for(l.s();!(a=l.n()).done;){var u=a.value;s.addComponent(u)}}catch(h){l.e(h)}finally{l.f()}var c=new Mt(e,i,s);return Et.set(r,c),c}({apiKey:"AIzaSyAeqwIEXQZZl5eWoXejhlqm_VrRoaBlikA",authDomain:"project-4-earthquake-heros.firebaseapp.com",projectId:"project-4-earthquake-heros",storageBucket:"project-4-earthquake-heros.appspot.com",messagingSenderId:"1069381726964",appId:"1:1069381726964:web:e42f25edc178a4c6bfe4a1"}),Os=Ls;function Ms(){return Ms=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ms.apply(this,arguments)}function Ns(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}var Rs=["onClick","reloadDocument","replace","state","target","to"];function Bs(n){var i=n.basename,r=n.children,o=n.window,a=(0,t.useRef)();null==a.current&&(a.current=function(t){void 0===t&&(t={});
2var n=t.window,i=void 0===n?document.defaultView:n,r=i.history;function o(){var e=i.location,t=e.pathname,n=e.search,o=e.hash,a=r.state||{};return[a.idx,d({pathname:t,search:n,hash:o,state:a.usr||null,key:a.key||"default"})]}var a=null;i.addEventListener(m,(function(){if(a)w.call(a),a=null;else{var t=e.Pop,n=o(),i=n[0],r=n[1];if(w.length){if(null!=i){var s=u-i;s&&(a={action:t,location:r,retry:function(){S(-1*s)}},S(s))}}else E(t)}}));var s=e.Pop,l=o(),u=l[0],c=l[1],h=g(),w=g();function k(e){return"string"===typeof e?e:_(e)}function A(e,t){return void 0===t&&(t=null),d(f({pathname:c.pathname,hash:"",search:""},"string"===typeof e?b(e):e,{state:t,key:y()}))}function x(e,t){return[{usr:e.state,key:e.key,idx:t},k(e)]}function C(e,t,n){return!w.length||(w.call({action:e,location:t,retry:n}),!1)}function E(e){s=e;var t=o();u=t[0],c=t[1],h.call({action:s,location:c})}function S(e){r.go(e)}null==u&&(u=0,r.replaceState(f({},r.state,{idx:u}),""));var P={get action(){return s},get location(){return c},createHref:k,push:function t(n,o){var a=e.Push,s=A(n,o);if(C(a,s,(function(){t(n,o)}))){var l=x(s,u+1),c=l[0],h=l[1];try{r.pushState(c,"",h)}catch(pn){i.location.assign(h)}E(a)}},replace:function t(n,i){var o=e.Replace,a=A(n,i);if(C(o,a,(function(){t(n,i)}))){var s=x(a,u),l=s[0],c=s[1];r.replaceState(l,"",c),E(o)}},go:S,back:function(){S(-1)},forward:function(){S(1)},listen:function(e){return h.push(e)},block:function(e){var t=w.push(e);return 1===w.length&&i.addEventListener(p,v),function(){t(),w.length||i.removeEventListener(p,v)}}};return P}({window:o}));var s=a.current,l=h((0,t.useState)({action:s.action,location:s.location}),2),u=l[0],c=l[1];return(0,t.useLayoutEffect)((function(){return s.listen(c)}),[s]),(0,t.createElement)(G,{basename:i,children:r,location:u.location,navigationType:u.action,navigator:s})}var Ds=(0,t.forwardRef)((function(e,n){var i=e.onClick,r=e.reloadDocument,o=e.replace,a=void 0!==o&&o,s=e.state,l=e.target,u=e.to,c=Ns(e,Rs),h=z(u),f=function(e,n){var i=void 0===n?{}:n,r=i.target,o=i.replace,a=i.state,s=Z(),l=F(),u=W(e);return(0,t.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=!!o||_(l)===_(u);s(e,{replace:n,state:a})}}),[l,s,u,o,a,r,e])}(u,{replace:a,state:s,target:l});return(0,t.createElement)("a",Ms({},c,{href:h,onClick:function(e){i&&i(e),e.defaultPrevented||r||f(e)},ref:n,target:l}))}));var zs=n.p+"static/media/homepage-three-shields.6056904db944da52a7e6.png",js=n(184),Fs=function(){return(0,js.jsx)("div",{className:"home-page",children:(0,js.jsxs)("div",{className:"wrapper",children:[(0,js.jsxs)("h1",{children:[(0,js.jsx)("span",{className:"left-align",children:"the"}),(0,js.jsx)("span",{className:"title",children:"extraordinary collective of superheroes"}),(0,js.jsx)("span",{className:"right-align",children:"are here to help"})]}),(0,js.jsx)("div",{children:(0,js.jsx)("img",{src:zs,alt:"Home page three shields"})}),(0,js.jsx)(Ds,{to:"/questionspage",className:"btn",children:"Learn what we do"}),(0,js.jsxs)("footer",{children:["Created by",(0,js.jsx)("a",{href:"https://www.nicolebeckles.dev/",target:"_blank",rel:"noopener noreferrer",children:" Nicole Beckles | "}),(0,js.jsx)("a",{href:"https://www.royalbai.com",target:"_blank",rel:"noopener noreferrer",children:"Royal Bai | "}),(0,js.jsx)("a",{href:"https://www.gabrielwright.ca",target:"_blank",rel:"noopener noreferrer",children:"Gabriel Wright | "}),(0,js.jsx)("a",{href:"https://www.ellegassner.com/",target:"_blank",rel:"noopener noreferrer",children:"Elle Gassner "})," at",(0,js.jsx)("a",{href:"https://junocollege.com/",target:"_blank",rel:"noopener noreferrer",children:" Juno College of Technology"})]})]})})};function Zs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Ws(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Zs(Object(n),!0).forEach((function(t){Gs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Us(e){return Us="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},Us(e)}function Hs(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Gs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ys(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 i,r,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(l){s=!0,r=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(e,t)||Qs(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 Vs(e){return function(e){if(Array.isArray(e))return qs(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Qs(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 Qs(e,t){if(e){if("string"===typeof e)return qs(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)?qs(e,t):void 0}}function qs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Js=function(){},Ks={},Xs={},$s=null,el={mark:Js,measure:Js};try{"undefined"!==typeof window&&(Ks=window),"undefined"!==typeof document&&(Xs=document),"undefined"!==typeof MutationObserver&&($s=MutationObserver),"undefined"!==typeof performance&&(el=performance)}catch(tf){}var tl,nl,il,rl,ol,al=(Ks.navigator||{}).userAgent,sl=void 0===al?"":al,ll=Ks,ul=Xs,cl=$s,hl=el,fl=(ll.document,!!ul.documentElement&&!!ul.head&&"function"===typeof ul.addEventListener&&"function"===typeof ul.createElement),dl=~sl.indexOf("MSIE")||~sl.indexOf("Trident/"),pl="svg-inline--fa",ml="data-fa-i2svg",vl="data-fa-pseudo-element",gl="data-prefix",yl="data-icon",_l="fontawesome-i2svg",bl=["HTML","HEAD","STYLE","SCRIPT"],wl=function(){try{return!0}catch(tf){return!1}}(),kl="classic",Al="sharp",xl=[kl,Al];function Cl(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e.classic}})}var El=Cl((Gs(tl={},kl,{fa:"solid",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"}),Gs(tl,Al,{fa:"solid",fass:"solid","fa-solid":"solid"}),tl)),Sl=Cl((Gs(nl={},kl,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),Gs(nl,Al,{solid:"fass"}),nl)),Pl=Cl((Gs(il={},kl,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),Gs(il,Al,{fass:"fa-solid"}),il)),Tl=Cl((Gs(rl={},kl,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),Gs(rl,Al,{"fa-solid":"fass"}),rl)),Il=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,Ll="fa-layers-text",Ol=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Ml=Cl((Gs(ol={},kl,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),Gs(ol,Al,{900:"fass"}),ol)),Nl=[1,2,3,4,5,6,7,8,9,10],Rl=Nl.concat([11,12,13,14,15,16,17,18,19,20]),Bl=["class","data-
2prefix","data-icon","data-fa-transform","data-fa-mask"],Dl="duotone-group",zl="swap-opacity",jl="primary",Fl="secondary",Zl=new Set;Object.keys(Sl.classic).map(Zl.add.bind(Zl)),Object.keys(Sl.sharp).map(Zl.add.bind(Zl));var Wl=[].concat(xl,Vs(Zl),["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",Dl,zl,jl,Fl]).concat(Nl.map((function(e){return"".concat(e,"x")}))).concat(Rl.map((function(e){return"w-".concat(e)}))),Ul=ll.FontAwesomeConfig||{};if(ul&&"function"===typeof ul.querySelector){[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["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=Ys(e,2),n=t[0],i=t[1],r=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=ul.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));void 0!==r&&null!==r&&(Ul[i]=r)}))}var Hl={styleDefault:"solid",familyDefault:"classic",cssPrefix:"fa",replacementClass:pl,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ul.familyPrefix&&(Ul.cssPrefix=Ul.familyPrefix);var Gl=Ws(Ws({},Hl),Ul);Gl.autoReplaceSvg||(Gl.observeMutations=!1);var Yl={};Object.keys(Hl).forEach((function(e){Object.defineProperty(Yl,e,{enumerable:!0,set:function(t){Gl[e]=t,Vl.forEach((function(e){return e(Yl)}))},get:function(){return Gl[e]}})})),Object.defineProperty(Yl,"familyPrefix",{enumerable:!0,set:function(e){Gl.cssPrefix=e,Vl.forEach((function(e){return e(Yl)}))},get:function(){return Gl.cssPrefix}}),ll.FontAwesomeConfig=Yl;var Vl=[];var Ql=16,ql={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Jl(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function Kl(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Xl(e){return e.classList?Kl(e.classList):(e.getAttribute("class")||"").split(" ").filter((function(e){return e}))}function $l(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function eu(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")}),"")}function tu(e){return e.size!==ql.size||e.x!==ql.x||e.y!==ql.y||e.rotate!==ql.rotate||e.flipX||e.flipY}function nu(){var e="fa",t=pl,n=Yl.cssPrefix,i=Yl.replacementClass,r=':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-sharp-solid: normal 9
vendor: 12,367 bytes, line 2
200 1em/1 "Font Awesome 6 Sharp";\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, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\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, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\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, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\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, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\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, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\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, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\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, 0s);\n          animation-delay: var(--fa-animation-delay, 0s);\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    
2transition-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}
2\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||i!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");r=r.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(i))}return r}var iu=!1;function ru(){Yl.autoAddCss&&!iu&&(!function(e){if(e&&fl){var t=ul.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=ul.head.childNodes,i=null,r=n.length-1;r>-1;r--){var o=n[r],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(i=o)}ul.head.insertBefore(t,i)}}(nu()),iu=!0)}var ou={mixout:function(){return{dom:{css:nu,insertCss:ru}}},hooks:function(){return{beforeDOMElementCreation:function(){ru()},beforeI2svg:function(){ru()}}}},au=ll||{};au.___FONT_AWESOME___||(au.___FONT_AWESOME___={}),au.___FONT_AWESOME___.styles||(au.___FONT_AWESOME___.styles={}),au.___FONT_AWESOME___.hooks||(au.___FONT_AWESOME___.hooks={}),au.___FONT_AWESOME___.shims||(au.___FONT_AWESOME___.shims=[]);var su=au.___FONT_AWESOME___,lu=[],uu=!1;function cu(e){fl&&(uu?setTimeout(e,0):lu.push(e))}function hu(e){var t=e.tag,n=e.attributes,i=void 0===n?{}:n,r=e.children,o=void 0===r?[]:r;return"string"===typeof e?$l(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat($l(e[n]),'" ')}),"").trim()}(i),">").concat(o.map(hu).join(""),"</").concat(t,">")}function fu(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}fl&&((uu=(ul.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(ul.readyState))||ul.addEventListener("DOMContentLoaded",(function e(){ul.removeEventListener("DOMContentLoaded",e),uu=1,lu.map((function(e){return e()}))})));var du=function(e,t,n,i){var r,o,a,s=Object.keys(e),l=s.length,u=void 0!==i?function(e,t){return function(n,i,r,o){return e.call(t,n,i,r,o)}}(t,i):t;for(void 0===n?(r=1,a=e[s[0]]):(r=0,a=n);r<l;r++)a=u(a,e[o=s[r]],o,e);return a};function pu(e){var t=function(e){for(var t=[],n=0,i=e.length;n<i;){var r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&r)<<10)+(1023&o)+65536):(t.push(r),n--)}else t.push(r)}return t}(e);return 1===t.length?t[0].toString(16):null}function mu(e){return Object.keys(e).reduce((function(t,n){var i=e[n];return!!i.icon?t[i.iconName]=i.icon:t[n]=i,t}),{})}function vu(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.skipHooks,r=void 0!==i&&i,o=mu(t);"function"!==typeof su.hooks.addPack||r?su.styles[e]=Ws(Ws({},su.styles[e]||{}),o):su.hooks.addPack(e,mu(t)),"fas"===e&&vu("fa",t)}var gu,yu,_u,bu=su.styles,wu=su.shims,ku=(Gs(gu={},kl,Object.values(Pl.classic)),Gs(gu,Al,Object.values(Pl.sharp)),gu),Au=null,xu={},Cu={},Eu={},Su={},Pu={},Tu=(Gs(yu={},kl,Object.keys(El.classic)),Gs(yu,Al,Object.keys(El.sharp)),yu);function Iu(e,t){var n,i=t.split("-"),r=i[0],o=i.slice(1).join("-");return r!==e||""===o||(n=o,~Wl.indexOf(n))?null:o}var Lu,Ou=function(){var e=function(e){return du(bu,(function(t,n,i){return t[i]=du(n,e,{}),t}),{})};xu=e((function(e,t,n){(t[3]&&(e[t[3]]=n),t[2])&&t[2].filter((function(e){return"number"===typeof e}
2)).forEach((function(t){e[t.toString(16)]=n}));return e})),Cu=e((function(e,t,n){(e[n]=n,t[2])&&t[2].filter((function(e){return"string"===typeof e})).forEach((function(t){e[t]=n}));return e})),Pu=e((function(e,t,n){var i=t[2];return e[n]=n,i.forEach((function(t){e[t]=n})),e}));var t="far"in bu||Yl.autoFetchSvg,n=du(wu,(function(e,n){var i=n[0],r=n[1],o=n[2];return"far"!==r||t||(r="fas"),"string"===typeof i&&(e.names[i]={prefix:r,iconName:o}),"number"===typeof i&&(e.unicodes[i.toString(16)]={prefix:r,iconName:o}),e}),{names:{},unicodes:{}});Eu=n.names,Su=n.unicodes,Au=Du(Yl.styleDefault,{family:Yl.familyDefault})};function Mu(e,t){return(xu[e]||{})[t]}function Nu(e,t){return(Pu[e]||{})[t]}function Ru(e){return Eu[e]||{prefix:null,iconName:null}}function Bu(){return Au}Lu=function(e){Au=Du(e.styleDefault,{family:Yl.familyDefault})},Vl.push(Lu),Ou();function Du(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.family,i=void 0===n?kl:n,r=El[i][e],o=Sl[i][e]||Sl[i][r],a=e in su.styles?e:null;return o||a||null}var zu=(Gs(_u={},kl,Object.keys(Pl.classic)),Gs(_u,Al,Object.keys(Pl.sharp)),_u);function ju(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.skipLookups,r=void 0!==i&&i,o=(Gs(t={},kl,"".concat(Yl.cssPrefix,"-").concat(kl)),Gs(t,Al,"".concat(Yl.cssPrefix,"-").concat(Al)),t),a=null,s=kl;(e.includes(o.classic)||e.some((function(e){return zu.classic.includes(e)})))&&(s=kl),(e.includes(o.sharp)||e.some((function(e){return zu.sharp.includes(e)})))&&(s=Al);var l=e.reduce((function(e,t){var n=Iu(Yl.cssPrefix,t);if(bu[t]?(t=ku[s].includes(t)?Tl[s][t]:t,a=t,e.prefix=t):Tu[s].indexOf(t)>-1?(a=t,e.prefix=Du(t,{family:s})):n?e.iconName=n:t!==Yl.replacementClass&&t!==o.classic&&t!==o.sharp&&e.rest.push(t),!r&&e.prefix&&e.iconName){var i="fa"===a?Ru(e.iconName):{},l=Nu(e.prefix,e.iconName);i.prefix&&(a=null),e.iconName=i.iconName||l||e.iconName,e.prefix=i.prefix||e.prefix,"far"!==e.prefix||bu.far||!bu.fas||Yl.autoFetchSvg||(e.prefix="fas")}return e}),{prefix:null,iconName:null,rest:[]}
2);return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),l.prefix||s!==Al||!bu.fass&&!Yl.autoFetchSvg||(l.prefix="fass",l.iconName=Nu(l.prefix,l.iconName)||l.iconName),"fa"!==l.prefix&&"fa"!==a||(l.prefix=Bu()||"fas"),l}var Fu=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,i;return t=e,n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=n.reduce(this._pullDefinitions,{});Object.keys(r).forEach((function(t){e.definitions[t]=Ws(Ws({},e.definitions[t]||{}),r[t]),vu(t,r[t]);var n=Pl.classic[t];n&&vu(n,r[t]),Ou()}))}},{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 i=n[t],r=i.prefix,o=i.iconName,a=i.icon,s=a[2];e[r]||(e[r]={}),s.length>0&&s.forEach((function(t){"string"===typeof t&&(e[r][t]=a)})),e[r][o]=a})),e}}],n&&Hs(t.prototype,n),i&&Hs(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Zu=[],Wu={},Uu={},Hu=Object.keys(Uu);function Gu(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];var o=Wu[e]||[];return o.forEach((function(e){t=e.apply(null,[t].concat(i))})),t}function Yu(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=Wu[e]||[];r.forEach((function(e){e.apply(null,n)}))}function Vu(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Uu[e]?Uu[e].apply(null,t):void 0}function Qu(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||Bu();if(t)return t=Nu(n,t)||t,fu(qu.definitions,n,t)||fu(su.styles,n,t)}var qu=new Fu,Ju={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return fl?(Yu("beforeI2svg",e),Vu("pseudoElements2svg",e),Vu("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===Yl.autoReplaceSvg&&(Yl.autoReplaceSvg=!0),Yl.observeMutations=!0,cu((function(){$u({autoReplaceSvgRoot:t}),Yu("watch",e)}))}},Ku={icon:function(e){if(null===e)return null;if("object"===Us(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Nu(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=Du(e[0]);return{prefix:n,iconName:Nu(n,t)||t}}if("string"===typeof e&&(e.indexOf("".concat(Yl.cssPrefix,"-"))>-1||e.match(Il))){var i=ju(e.split(" "),{skipLookups:!0});return{prefix:i.prefix||Bu(),iconName:Nu(i.prefix,i.iconName)||i.iconName}}if("string"===typeof e){var r=Bu();return{prefix:r,iconName:Nu(r,e)||e}}}},Xu={noAuto:function(){Yl.autoReplaceSvg=!1,Yl.observeMutations=!1,Yu("noAuto")},config:Yl,dom:Ju,parse:Ku,library:qu,findIconDefinition:Qu,toHtml:hu},$u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot,n=void 0===t?ul:t;(Object.keys(su.styles).length>0||Yl.autoFetchSvg)&&fl&&Yl.autoReplaceSvg&&Xu.dom.i2svg({node:n})};function ec(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return hu(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(fl){var t=ul.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function tc(e){var t=e.icons,n=t.main,i=t.mask,r=e.prefix,o=e.iconName,a=e.transform,s=e.symbol,l=e.title,u=e.maskId,c=e.titleId,h=e.extra,f=e.watchable,d=void 0!==f&&f,p=i.found?i:n,m=p.width,v=p.height,g="fak"===r,y=[Yl.replacementClass,o?"".concat(Yl.cssPrefix,"-").concat(o):""].filter((function(e){return-1===h.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(h.classes).join(" "),_={children:[],attributes:Ws(Ws({},h.attributes),{},{"data-prefix":r,"data-icon":o,class:y,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(v)})},b=g&&!~h.classes.indexOf("fa-fw")?{width:"".concat(m/v*16*.0625,"em")}:{};d&&(_.attributes[ml]=""),l&&(_.children.push({tag:"title",attributes:{id:_.attributes["aria-labelledby"]||"title-".concat(c||Jl())},children:[l]}),delete _.attributes.title);var w=Ws(Ws({},_),{},{prefix:r,iconName:o,main:n,mask:i,maskId:u,transform:a,symbol:s,styles:Ws(Ws({},b),h.styles)}),k=i.found&&n.found?Vu("generateAbstractMask",w)||{children:[],attributes:{}}:Vu("generateAbstractIcon",w)||{children:[],attributes:{}},A=k.children,x=k.attributes;return w.children=A,w.attributes=x,s?function(e){var t=e.prefix,n=e.iconName,i=e.children,r=e.attributes,o=e.symbol,a=!0===o?"".concat(t,"-").concat(Yl.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Ws(Ws({},r),{},{id:a}),children:i}]}]}(w):function(e){var t=e.children,n=e.main,i=e.mask,r=e.attributes,o=e.styles,a=e.transform;if(tu(a)&&n.found&&!i.found){var s={x:n.width/n.height/2,y:.5};r.style=eu(Ws(Ws({},o),{},{"transform-origin":"".concat(s.x+a.x/16,"em ").concat(s.y+a.y/16,"em")}))}return[{tag:"svg",attributes:r,children:t}]}(w)}
2function nc(e){var t=e.content,n=e.width,i=e.height,r=e.transform,o=e.title,a=e.extra,s=e.watchable,l=void 0!==s&&s,u=Ws(Ws(Ws({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});l&&(u[ml]="");var c=Ws({},a.styles);tu(r)&&(c.transform=function(e){var t=e.transform,n=e.width,i=void 0===n?16:n,r=e.height,o=void 0===r?16:r,a=e.startCentered,s=void 0!==a&&a,l="";return l+=s&&dl?"translate(".concat(t.x/Ql-i/2,"em, ").concat(t.y/Ql-o/2,"em) "):s?"translate(calc(-50% + ".concat(t.x/Ql,"em), calc(-50% + ").concat(t.y/Ql,"em)) "):"translate(".concat(t.x/Ql,"em, ").concat(t.y/Ql,"em) "),l+="scale(".concat(t.size/Ql*(t.flipX?-1:1),", ").concat(t.size/Ql*(t.flipY?-1:1),") "),l+"rotate(".concat(t.rotate,"deg) ")}({transform:r,startCentered:!0,width:n,height:i}),c["-webkit-transform"]=c.transform);var h=eu(c);h.length>0&&(u.style=h);var f=[];return f.push({tag:"span",attributes:u,children:[t]}),o&&f.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),f}function ic(e){var t=e.content,n=e.title,i=e.extra,r=Ws(Ws(Ws({},i.attributes),n?{title:n}:{}),{},{class:i.classes.join(" ")}),o=eu(i.styles);o.length>0&&(r.style=o);var a=[];return a.push({tag:"span",attributes:r,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}var rc=su.styles;function oc(e){var t=e[0],n=e[1],i=Ys(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(i)?{tag:"g",attributes:{class:"".concat(Yl.cssPrefix,"-").concat(Dl)},children:[{tag:"path",attributes:{class:"".concat(Yl.cssPrefix,"-").concat(Fl),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(Yl.cssPrefix,"-").concat(jl),fill:"currentColor",d:i[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:i}}}}var ac={found:!1,width:512,height:512};function sc(e,t){var n=t;return"fa"===t&&null!==Yl.styleDefault&&(t=Bu()),new Promise((function(i,r){Vu("missingIconAbstract");if("fa"===n){var o=Ru(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&rc[t]&&rc[t][e])return i(oc(rc[t][e]));!function(e,t){wl||Yl.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),i(Ws(Ws({},ac),{},{icon:Yl.showMissingIcons&&e&&Vu("missingIconAbstract")||{}}))}))}var lc=function(){},uc=Yl.measurePerformance&&hl&&hl.mark&&hl.measure?hl:{mark:lc,measure:lc},cc='FA "6.2.0"',hc=function(e){uc.mark("".concat(cc," ").concat(e," ends")),uc.measure("".concat(cc," ").concat(e),"".concat(cc," ").concat(e," begins"),"".concat(cc," ").concat(e," ends"))},fc=function(e){return uc.mark("".concat(cc," ").concat(e," begins")),function(){return hc(e)}},dc=function(){};function pc(e){return"string"===typeof(e.getAttribute?e.getAttribute(ml):null)}function mc(e){return ul.createElementNS("http://www.w3.org/2000/svg",e)}function vc(e){return ul.createElement(e)}function gc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.ceFn,i=void 0===n?"svg"===e.tag?mc:vc:n;if("string"===typeof e)return ul.createTextNode(e);var r=i(e.tag);Object.keys(e.attributes||[]).forEach((function(t){r.setAttribute(t,e.attributes[t])}));var o=e.children||[];return o.forEach((function(e){r.appendChild(gc(e,{ceFn:i}))})),r}var yc={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach((function(e){t.parentNode.insertBefore(gc(e),t)})),null===t.getAttribute(ml)&&Yl.keepOriginalSource){var n=ul.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(~Xl(t).indexOf(Yl.replacementClass))return yc.replace(e);var i=new RegExp("".concat(Yl.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var r=n[0].attributes.class.split(" ").reduce((function(e,t){return t===Yl.replacementClass||t.match(i)?e.toSvg.push(t):e.toNode.push(t),e}),{toNode:[],toSvg:[]});n[0].attributes.class=r.toSvg.join(" "),0===r.toNode.length?t.removeAttribute("class"):t.setAttribute("class",r.toNode.join(" "))}var o=n.map((function(e){return hu(e)})).join("\n");t.setAttribute(ml,""),t.innerHTML=o}};function _c(e){e()}function bc(e,t){var n="function"===typeof t?t:dc;if(0===e.length)n();else{var i=_c;
2"async"===Yl.mutateApproach&&(i=ll.requestAnimationFrame||_c),i((function(){var t=!0===Yl.autoReplaceSvg?yc.replace:yc[Yl.autoReplaceSvg]||yc.replace,i=fc("mutate");e.map(t),i(),n()}))}}var wc=!1;function kc(){wc=!0}function Ac(){wc=!1}var xc=null;function Cc(e){if(cl&&Yl.observeMutations){var t=e.treeCallback,n=void 0===t?dc:t,i=e.nodeCallback,r=void 0===i?dc:i,o=e.pseudoElementsCallback,a=void 0===o?dc:o,s=e.observeMutationsRoot,l=void 0===s?ul:s;xc=new cl((function(e){if(!wc){var t=Bu();Kl(e).forEach((function(e){if("childList"===e.type&&e.addedNodes.length>0&&!pc(e.addedNodes[0])&&(Yl.searchPseudoElements&&a(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&Yl.searchPseudoElements&&a(e.target.parentNode),"attributes"===e.type&&pc(e.target)&&~Bl.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(gl):null,n=e.getAttribute?e.getAttribute(yl):null;return t&&n}(e.target)){var i=ju(Xl(e.target)),o=i.prefix,s=i.iconName;e.target.setAttribute(gl,o||t),s&&e.target.setAttribute(yl,s)}else(l=e.target)&&l.classList&&l.classList.contains&&l.classList.contains(Yl.replacementClass)&&r(e.target);var l}))}})),fl&&xc.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Ec(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce((function(e,t){var n=t.split(":"),i=n[0],r=n.slice(1);return i&&r.length>0&&(e[i]=r.join(":").trim()),e}),{})),n}function Sc(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),i=void 0!==e.innerText?e.innerText.trim():"",r=ju(Xl(e));return r.prefix||(r.prefix=Bu()),t&&n&&(r.prefix=t,r.iconName=n),r.iconName&&r.prefix||(r.prefix&&i.length>0&&(r.iconName=function(e,t){return(Cu[e]||{})[t]}(r.prefix,e.innerText)||Mu(r.prefix,pu(e.innerText))),!r.iconName&&Yl.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(r.iconName=e.firstChild.data)),r}function Pc(e){var t=Kl(e.attributes).reduce((function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e}),{}),n=e.getAttribute("title"),i=e.getAttribute("data-fa-title-id");return Yl.autoA11y&&(n?t["aria-labelledby"]="".concat(Yl.replacementClass,"-title-").concat(i||Jl()):(t["aria-hidden"]="true",t.focusable="false")),t}function Tc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=Sc(e),i=n.iconName,r=n.prefix,o=n.rest,a=Pc(e),s=Gu("parseNodeAttributes",{},e),l=t.styleParser?Ec(e):[];return Ws({iconName:i,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:ql,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:a}},s)}var Ic=su.styles;function Lc(e){var t="nest"===Yl.autoReplaceSvg?Tc(e,{styleParser:!1}):Tc(e);return~t.extra.classes.indexOf(Ll)?Vu("generateLayersText",e,t):Vu("generateSvgReplacementMutation",e,t)}var Oc=new Set;function Mc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!fl)return Promise.resolve();var n=ul.documentElement.classList,i=function(e){return n.add("".concat(_l,"-").concat(e))},r=function(e){return n.remove("".concat(_l,"-").concat(e))},o=Yl.autoFetchSvg?Oc:xl.map((function(e){return"fa-".concat(e)})).concat(Object.keys(Ic));o.includes("fa")||o.push("fa");var a=[".".concat(Ll,":not([").concat(ml,"])")].concat(o.map((function(e){return".".concat(e,":not([").concat(ml,"])")}))).join(", ");if(0===a.length)return Promise.resolve();var s=[];try{s=Kl(e.querySelectorAll(a))}catch(tf){}if(!(s.length>0))return Promise.resolve();i("pending"),r("complete");var l=fc("onTree"),u=s.reduce((function(e,t){try{var n=Lc(t);n&&e.push(n)}catch(tf){wl||"MissingIcon"===tf.name&&console.error(tf)}return e}),[]);return new Promise((function(e,n){Promise.all(u).then((function(n){bc(n,(function(){i("active"),i("complete"),r("pending"),"function"===typeof t&&t(),l(),e()}))})).catch((function(e){l(),n(e)}))}))}function Nc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Lc(e).then((function(e){e&&bc([e],t)}))}xl.map((function(e){Oc.add("fa-".concat(e))})),Object.keys(El.classic).map(Oc.add.bind(Oc)),Object.keys(El.sharp).map(Oc.add.bind(Oc)),Oc=Vs(Oc);var Rc=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,i=void 0===n?ql:n,r=t.symbol,o=void 0!==r&&r,a=t.mask,s=void 0===a?null:a,l=t.maskId,u=void 0===l?null:l,c=t.t
2itle,h=void 0===c?null:c,f=t.titleId,d=void 0===f?null:f,p=t.classes,m=void 0===p?[]:p,v=t.attributes,g=void 0===v?{}:v,y=t.styles,_=void 0===y?{}:y;if(e){var b=e.prefix,w=e.iconName,k=e.icon;return ec(Ws({type:"icon"},e),(function(){return Yu("beforeDOMElementCreation",{iconDefinition:e,params:t}),Yl.autoA11y&&(h?g["aria-labelledby"]="".concat(Yl.replacementClass,"-title-").concat(d||Jl()):(g["aria-hidden"]="true",g.focusable="false")),tc({icons:{main:oc(k),mask:s?oc(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:b,iconName:w,transform:Ws(Ws({},ql),i),symbol:o,title:h,maskId:u,titleId:d,extra:{attributes:g,styles:_,classes:m}})}))}},Bc={mixout:function(){return{icon:(e=Rc,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(t||{}).icon?t:Qu(t||{}),r=n.mask;return r&&(r=(r||{}).icon?r:Qu(r||{})),e(i,Ws(Ws({},n),{},{mask:r}))})};var e},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Mc,e.nodeCallback=Nc,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?ul:t,i=e.callback;return Mc(n,void 0===i?function(){}:i)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,i=t.title,r=t.titleId,o=t.prefix,a=t.transform,s=t.symbol,l=t.mask,u=t.maskId,c=t.extra;return new Promise((function(t,h){Promise.all([sc(n,o),l.iconName?sc(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(l){var h=Ys(l,2),f=h[0],d=h[1];t([e,tc({icons:{main:f,mask:d},prefix:o,iconName:n,transform:a,symbol:s,maskId:u,title:i,titleId:r,extra:c,watchable:!0})])})).catch(h)}))},e.generateAbstractIcon=function(e){var t,n=e.children,i=e.attributes,r=e.main,o=e.transform,a=eu(e.styles);return a.length>0&&(i.style=a),tu(o)&&(t=Vu("generateAbstractTransformGrouping",{main:r,transform:o,containerWidth:r.width,iconWidth:r.width})),n.push(t||r.icon),{children:n,attributes:i}}}},Dc={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,i=void 0===n?[]:n;return ec({type:"layer"},(function(){Yu("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(Yl.cssPrefix,"-layers")].concat(Vs(i)).join(" ")},children:n}]}))}}}},zc={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.title,i=void 0===n?null:n,r=t.classes,o=void 0===r?[]:r,a=t.attributes,s=void 0===a?{}:a,l=t.styles,u=void 0===l?{}:l;return ec({type:"counter",content:e},(function(){return Yu("beforeDOMElementCreation",{content:e,params:t}),ic({content:e.toString(),title:i,extra:{attributes:s,styles:u,classes:["".concat(Yl.cssPrefix,"-layers-counter")].concat(Vs(o))}})}))}}}},jc={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,i=void 0===n?ql:n,r=t.title,o=void 0===r?null:r,a=t.classes,s=void 0===a?[]:a,l=t.attributes,u=void 0===l?{}:l,c=t.styles,h=void 0===c?{}:c;return ec({type:"text",content:e},(function(){return Yu("beforeDOMElementCreation",{content:e,params:t}),nc({content:e,transform:Ws(Ws({},ql),i),title:o,extra:{attributes:u,styles:h,classes:["".concat(Yl.cssPrefix,"-layers-text")].concat(Vs(s))}})}))}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,i=t.transform,r=t.extra,o=null,a=null;if(dl){var s=parseInt(getComputedStyle(e).fontSize,10),l=e.getBoundingClientRect();o=l.width/s,a=l.height/s}return Yl.autoA11y&&!n&&(r.attributes["aria-hidden"]="true"),Promise.resolve([e,nc({content:e.innerHTML,width:o,height:a,transform:i,title:n,extra:r,watchable:!0})])}}},Fc=new RegExp('"',"ug"),Zc=[1105920,1112319];function Wc(e,t){var n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise((function(i,r){if(null!==e.getAttribute(n))return i();var o=Kl(e.children).filter((function(e){return e.getAttribute(vl)===t}))[0],a=ll.getComputedStyle(e,t),s=a.getPropertyValue("font-family").match(Ol),l=a.getPropertyValue("font-weight"),u=a.getPropertyValue("content");
2if(o&&!s)return e.removeChild(o),i();if(s&&"none"!==u&&""!==u){var c=a.getPropertyValue("content"),h=~["Sharp"].indexOf(s[2])?Al:kl,f=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?Sl[h][s[2].toLowerCase()]:Ml[h][l],d=function(e){var t=e.replace(Fc,""),n=function(e,t){var n,i=e.length,r=e.charCodeAt(t);return r>=55296&&r<=56319&&i>t+1&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?1024*(r-55296)+n-56320+65536:r}(t,0),i=n>=Zc[0]&&n<=Zc[1],r=2===t.length&&t[0]===t[1];return{value:pu(r?t[0]:t),isSecondary:i||r}}(c),p=d.value,m=d.isSecondary,v=s[0].startsWith("FontAwesome"),g=Mu(f,p),y=g;if(v){var _=function(e){var t=Su[e],n=Mu("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(p);_.iconName&&_.prefix&&(g=_.iconName,f=_.prefix)}if(!g||m||o&&o.getAttribute(gl)===f&&o.getAttribute(yl)===y)i();else{e.setAttribute(n,y),o&&e.removeChild(o);var b={iconName:null,title:null,titleId:null,prefix:null,transform:ql,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},w=b.extra;w.attributes[vl]=t,sc(g,f).then((function(r){var o=tc(Ws(Ws({},b),{},{icons:{main:r,mask:{prefix:null,iconName:null,rest:[]}},prefix:f,iconName:y,extra:w,watchable:!0})),a=ul.createElement("svg");"::before"===t?e.insertBefore(a,e.firstChild):e.appendChild(a),a.outerHTML=o.map((function(e){return hu(e)})).join("\n"),e.removeAttribute(n),i()})).catch(r)}}else i()}))}function Uc(e){return Promise.all([Wc(e,"::before"),Wc(e,"::after")])}function Hc(e){return e.parentNode!==document.head&&!~bl.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(vl)&&(!e.parentNode||"svg"!==e.parentNode.tagName)}function Gc(e){if(fl)return new Promise((function(t,n){var i=Kl(e.querySelectorAll("*")).filter(Hc).map(Uc),r=fc("searchPseudoElements");kc(),Promise.all(i).then((function(){r(),Ac(),t()})).catch((function(){r(),Ac(),n()}))}))}var Yc=!1,Vc=function(e){return e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),i=n[0],r=n.slice(1).join("-");if(i&&"h"===r)return e.flipX=!0,e;if(i&&"v"===r)return e.flipY=!0,e;if(r=parseFloat(r),isNaN(r))return e;switch(i){case"grow":e.size=e.size+r;break;case"shrink":e.size=e.size-r;break;case"left":e.x=e.x-r;break;case"right":e.x=e.x+r;break;case"up":e.y=e.y-r;break;case"down":e.y=e.y+r;break;case"rotate":e.rotate=e.rotate+r}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Qc={mixout:function(){return{parse:{transform:function(e){return Vc(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=Vc(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,i=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(i/2," 256)")},a="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),") "),l="rotate(".concat(n.rotate," 0 0)"),u={outer:o,inner:{transform:"".concat(a," ").concat(s," ").concat(l)},path:{transform:"translate(".concat(r/2*-1," -256)")}};return{tag:"g",attributes:Ws({},u.outer),children:[{tag:"g",attributes:Ws({},u.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:Ws(Ws({},t.icon.attributes),u.path)}]}]}}}},qc={x:0,y:0,width:"100%",height:"100%"};function Jc(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 Kc={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),i=n?ju(n.split(" ").map((function(e){return e.trim()}))):{prefix:null,iconName:null,rest:[]};return i.prefix||(i.prefix=Bu()),e.mask=i,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t,n=e.children,i=e.attributes,r=e.main,o=e.mask,a=e.maskId,s=e.transform,l=r.width,u=r.icon,c=o.width,h=o.icon,f=function(e){var t=e.transform,n=e.containerWidth,i=e.iconWidth,r={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="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:r,inner:{transform:"".concat(o," ").concat(a," ").concat(s)},path:{transform:"translate(".concat(i/2*-1," -256)")}}}({transform:s,containerWidth:c,iconWidth:l}),d={tag:"rect",attributes:Ws(Ws({},qc),{},{fill:"white"})},p=u.children?{children:u.children.map(Jc)}:{},m={tag:"g",attributes:Ws({},f.inner),children:[Jc(Ws({tag:u.tag,attributes:Ws(Ws({},u.attributes),f.path)},p))]},v={tag:"g",attributes:Ws({},f.outer),children:[m]},g="mask-".concat(a||Jl()),y="clip-".concat(a||Jl()),_={tag:"mask",attributes:Ws(Ws({},qc),{},{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[d,v]},b={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(t=h,"g"===t.tag?t.children:[t])},_]};
2return n.push(b,{tag:"rect",attributes:Ws({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(g,")")},qc)}),{children:n,attributes:i}}}},Xc={provides:function(e){var t=!1;ll.matchMedia&&(t=ll.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:Ws(Ws({},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 r=Ws(Ws({},i),{},{attributeName:"opacity"}),o={tag:"circle",attributes:Ws(Ws({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.children.push({tag:"animate",attributes:Ws(Ws({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Ws(Ws({},r),{},{values:"1;0;1;1;0;1;"})}),e.push(o),e.push({tag:"path",attributes:Ws(Ws({},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:Ws(Ws({},r),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:Ws(Ws({},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:Ws(Ws({},r),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){var n=t.mixoutsTo;Zu=e,Wu={},Object.keys(Uu).forEach((function(e){-1===Hu.indexOf(e)&&delete Uu[e]})),Zu.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"===Us(t[e])&&Object.keys(t[e]).forEach((function(i){n[e]||(n[e]={}),n[e][i]=t[e][i]}))})),e.hooks){var i=e.hooks();
2Object.keys(i).forEach((function(e){Wu[e]||(Wu[e]=[]),Wu[e].push(i[e])}))}e.provides&&e.provides(Uu)}))}([ou,Bc,Dc,zc,jc,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=Gc,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?ul:t;Yl.searchPseudoElements&&Gc(n)}}},{mixout:function(){return{dom:{unwatch:function(){kc(),Yc=!0}}}},hooks:function(){return{bootstrap:function(){Cc(Gu("mutationObserverCallbacks",{}))},noAuto:function(){xc&&xc.disconnect()},watch:function(e){var t=e.observeMutationsRoot;Yc?Ac():Cc(Gu("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},Qc,Kc,Xc,{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol"),i=null!==n&&(""===n||n);return e.symbol=i,e}}}}],{mixoutsTo:Xu});var $c=Xu.parse,eh=Xu.icon,th=n(2007),nh=n.n(th);function ih(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function rh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ih(Object(n),!0).forEach((function(t){ah(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ih(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oh(e){return oh="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},oh(e)}function ah(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sh(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lh(e){return function(e){if(Array.isArray(e))return uh(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 uh(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 uh(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 uh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function ch(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 hh=["style"];function fh(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n=t.indexOf(":"),i=ch(t.slice(0,n)),r=t.slice(n+1).trim();return i.startsWith("webkit")?e[function(e){return e.charAt(0).toUpperCase()+e.slice(1)}(i)]=r:e[i]=r,e}),{})}var dh=!1;try{dh=!0}catch(tf){}function ph(e){return e&&"object"===oh(e)&&e.prefix&&e.iconName&&e.icon?e:$c.icon?$c.icon(e):null===e?null:e&&"object"===oh(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 mh(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?ah({},e,t):{}}var vh=["forwardedRef"];function gh(e){var t=e.forwardedRef,n=sh(e,vh),i=n.icon,r=n.mask,o=n.symbol,a=n.className,s=n.title,l=n.titleId,u=n.maskId,c=ph(i),h=mh("classes",[].concat(lh(function(e){var t,n=e.beat,i=e.fade,r=e.beatFade,o=e.bounce,a=e.shake,s=e.flash,l=e.spin,u=e.spinPulse,c=e.spinReverse,h=e.pulse,f=e.fixedWidth,d=e.inverse,p=e.border,m=e.listItem,v=e.flip,g=e.size,y=e.rotation,_=e.pull,b=(ah(t={"fa-beat":n,"fa-fade":i,"fa-beat-fade":r,"fa-bounce":o,"fa-shake":a,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":c,"fa-spin-pulse":u,"fa-pulse":h,"fa-fw":f,"fa-inverse":d,"fa-border":p,"fa-li":m,"fa-flip":!0===v,"fa-flip-horizontal":"horizontal"===v||"both"===v,"fa-flip-vert
2ical":"vertical"===v||"both"===v},"fa-".concat(g),"undefined"!==typeof g&&null!==g),ah(t,"fa-rotate-".concat(y),"undefined"!==typeof y&&null!==y&&0!==y),ah(t,"fa-pull-".concat(_),"undefined"!==typeof _&&null!==_),ah(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(b).map((function(e){return b[e]?e:null})).filter((function(e){return e}))}(n)),lh(a.split(" ")))),f=mh("transform","string"===typeof n.transform?$c.transform(n.transform):n.transform),d=mh("mask",ph(r)),p=eh(c,rh(rh(rh(rh({},h),f),d),{},{symbol:o,title:s,titleId:l,maskId:u}));if(!p)return function(){var e;!dh&&console&&"function"===typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",c),null;var m=p.abstract,v={ref:t};return Object.keys(n).forEach((function(e){gh.defaultProps.hasOwnProperty(e)||(v[e]=n[e])})),yh(m[0],v)}gh.displayName="FontAwesomeIcon",gh.propTypes={beat:nh().bool,border:nh().bool,beatFade:nh().bool,bounce:nh().bool,className:nh().string,fade:nh().bool,flash:nh().bool,mask:nh().oneOfType([nh().object,nh().array,nh().string]),maskId:nh().string,fixedWidth:nh().bool,inverse:nh().bool,flip:nh().oneOf([!0,!1,"horizontal","vertical","both"]),icon:nh().oneOfType([nh().object,nh().array,nh().string]),listItem:nh().bool,pull:nh().oneOf(["right","left"]),pulse:nh().bool,rotation:nh().oneOf([0,90,180,270]),shake:nh().bool,size:nh().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:nh().bool,spinPulse:nh().bool,spinReverse:nh().bool,symbol:nh().oneOfType([nh().bool,nh().string]),title:nh().string,titleId:nh().string,transform:nh().oneOfType([nh().string,nh().object]),swapOpacity:nh().bool},gh.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var yh=function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"===typeof n)return n;var r=(n.children||[]).map((function(n){return e(t,n)})),o=Object.keys(n.attributes||{}).reduce((function(e,t){var i=n.attributes[t];switch(t){case"class":e.attrs.className=i,delete n.attributes.class;break;case"style":e.attrs.style=fh(i);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=i:e.attrs[ch(t)]=i}return e}),{attrs:{}}),a=i.style,s=void 0===a?{}:a,l=sh(i,hh);return o.attrs.style=rh(rh({},o.attrs.style),s),t.apply(void 0,[n.tag,rh(rh({},o.attrs),l)].concat(lh(r)))}.bind(null,t.createElement),_h={prefix:"fas",iconName:"house",icon:[576,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M575.8 255.5c0 18-15 32.1-32 32.1h-32l.7 160.2c0 2.7-.2 5.4-.5 8.1V472c0 22.1-17.9 40-40 40H456c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1H416 392c-22.1 0-40-17.9-40-40V448 384c0-17.7-14.3-32-32-32H256c-17.7 0-32 14.3-32 32v64 24c0 22.1-17.9 40-40 40H160 128.1c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2H104c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9 .1-2.8V287.6H32c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"]},bh={prefix:"fas",iconName:"xmark",icon:[320,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z"]},wh=function(){return(0,js.jsx)("div",{className:"questions-page",children:(0,js.jsxs)("div",{className:"wrapper",children:[(0,js.jsx)("nav",{children:(0,js.jsx)(Ds,{to:"/",children:(0,js.jsx)(gh,{icon:_h})})}),(0,js.jsx)("div",{className:"img-container",children:(0,js.jsx)("img",{src:zs,alt:"Questions page three shields"})}),(0,js.jsx)("h2",{children:"Extraordinary collective of superheroes"}),(0,js.jsx)("p",{children:"When an earthquake occurs, we are the superheroes that answer the call! Depending on the magnitude of the earthquake, we select the hero with the right expertise for the job."}),(0,js.jsx)("p",{children:"This app allows us to keep track of each hero's workload, log each incident that they attend, and display their vacation days accrued in their hero profiles."}),(0,js.jsx)("h3",{children:"How to use this App"}),(0,js.jsxs)("ul",{children:[(0,js.jsxs)("li",{children:[(0,js.jsx)("span",{children:"1. "}),'Click on "Find Earthquakes" to view incidents that have happened within 24 hours']}),(0,js.jsxs)("li",{children:[(0,js.jsx)("span",{children:"2. "}),"To see total amount of incidents attended to by each superhero, click on their portrait"]})]}),(0,js.jsx)(Ds,{to:"/mappage",className:"btn",children:"Find Earthquakes"}),(0,js.jsxs)("footer",{children:["Created by",(0,js.jsxs)("a",{href:"https://www.nicolebe
2ckles.dev/",target:"_blank",rel:"noopener noreferrer",children:[" ","Nicole Beckles |"," "]}),(0,js.jsxs)("a",{href:"https://www.royalbai.com",target:"_blank",rel:"noopener noreferrer",children:["Royal Bai |"," "]}),(0,js.jsxs)("a",{href:"https://www.gabrielwright.ca",target:"_blank",rel:"noopener noreferrer",children:["Gabriel Wright |"," "]}),(0,js.jsxs)("a",{href:"https://www.ellegassner.com/",target:"_blank",rel:"noopener noreferrer",children:["Elle Gassner"," "]})," ","at",(0,js.jsxs)("a",{href:"https://junocollege.com/",target:"_blank",rel:"noopener noreferrer",children:[" ","Juno College of Technology"]})]})]})})};function kh(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Ah=(0,t.createContext)(null),xh=Ah.Provider;function Ch(){var e=(0,t.useContext)(Ah);if(null==e)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}var Eh=n(8559),Sh=["bounds","boundsOptions","center","children","className","id","placeholder","style","whenReady","zoom"];function Ph(){return Ph=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ph.apply(this,arguments)}function Th(e,n){var i=e.bounds,r=e.boundsOptions,o=e.center,a=e.children,s=e.className,l=e.id,u=e.placeholder,c=e.style,f=e.whenReady,d=e.zoom,p=kh(e,Sh),m=h((0,t.useState)({className:s,id:l,style:c}),1)[0],v=h((0,t.useState)(null),2),g=v[0],y=v[1];(0,t.useImperativeHandle)(n,(function(){var e;return null!==(e=null===g||void 0===g?void 0:g.map)&&void 0!==e?e:null}),[g]);var _=(0,t.useCallback)((function(e){if(null!==e&&null===g){var t=new Eh.Map(e,p);null!=o&&null!=d?t.setView(o,d):null!=i&&t.fitBounds(i,r),null!=f&&t.whenReady(f),y(function(e){return Object.freeze({__version:1,map:e})}(t))}}),[]);(0,t.useEffect)((function(){return function(){null===g||void 0===g||g.map.remove()}}),[g]);var b=g?t.createElement(xh,{value:g},a):null!==u&&void 0!==u?u:null;return t.createElement("div",Ph({},m,{ref:_}),b)}var Ih=(0,t.forwardRef)(Th),Lh=n(4164);function Oh(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function Mh(e,n){return null==n?function(n,i){var r=(0,t.useRef)();return r.current||(r.current=e(n,i)),r}:function(i,r){var o=(0,t.useRef)();o.current||(o.current=e(i,r));var a=(0,t.useRef)(i),s=o.current.instance;return(0,t.useEffect)((function(){a.current!==i&&(n(s,i,a.current),a.current=i)}),[s,i,r]),o}}function Nh(e,n){var i=(0,t.useRef)(n);(0,t.useEffect)((function(){n!==i.current&&null!=e.attributionControl&&(null!=i.current&&e.attributionControl.removeAttribution(i.current),null!=n&&e.attributionControl.addAttribution(n)),i.current=n}),[e,n])}function Rh(e,n){var i=(0,t.useRef)();(0,t.useEffect)((function(){return null!=n&&e.instance.on(n),i.current=n,function(){null!=i.current&&e.instance.off(i.current),i.current=null}}),[e,n])}function Bh(e,t){var n,i=null!==(n=e.pane)&&void 0!==n?n:t.pane;return i?tt(tt({},e),{},{pane:i}):e}function Dh(e){return function(n){var i=Ch(),r=e(Bh(n,i),i);return Nh(i.map,n.attribution),Rh(r.current,n.eventHandlers),function(e,n){(0,t.useEffect)((function(){var t;return(null!==(t=n.layerContainer)&&void 0!==t?t:n.map).addLayer(e.instance),function(){var t;null===(t=n.layerContainer)||void 0===t||t.removeLayer(e.instance),n.map.removeLayer(e.instance)}}),[n,e])}(r.current,i),r}}var zh=["url"],jh=function(e,n){return function(e){function n(n,i){var r=e(n).current.instance;return(0,t.useImperativeHandle)(i,(function(){return r})),null}return(0,t.forwardRef)(n)}(Dh(Mh(e,n)))}((function(e,t){var n=e.url,i=kh(e,zh);return Oh(new Eh.TileLayer(n,Bh(i,t)),t)}),(function(e,t,n){var i=t.opacity,r=t.zIndex;null!=i&&i!==n.opacity&&e.setOpacity(i),null!=r&&r!==n.zIndex&&e.setZIndex(r)})),Fh=["position"],Zh=function(e,n){return function(e){function n(n,i){var r=e(n).current,o=r.instance,a=r.context;return(0,t.useImperativeHandle)(i,(function(){return o}
2)),null==n.children?null:t.createElement(xh,{value:a},n.children)}return(0,t.forwardRef)(n)}(Dh(Mh(e,n)))}((function(e,t){var n,i,r=e.position,o=kh(e,Fh),a=new Eh.Marker(r,o);return Oh(a,(n=t,i={overlayContainer:a},Object.freeze(tt(tt({},n),i))))}),(function(e,t,n){t.position!==n.position&&e.setLatLng(t.position),null!=t.icon&&t.icon!==n.icon&&e.setIcon(t.icon),null!=t.zIndexOffset&&t.zIndexOffset!==n.zIndexOffset&&e.setZIndexOffset(t.zIndexOffset),null!=t.opacity&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),null!=e.dragging&&t.draggable!==n.draggable&&(!0===t.draggable?e.dragging.enable():e.dragging.disable())})),Wh=function(e,n){var i=function(e,t){return function(n,i){var r=Ch(),o=e(Bh(n,r),r);return Nh(r.map,n.attribution),Rh(o.current,n.eventHandlers),t(o.current,r,n,i),o}}(Mh(e),n);return function(e){function n(n,i){var r=h((0,t.useState)(!1),2),o=r[0],a=r[1],s=e(n,a).current.instance;(0,t.useImperativeHandle)(i,(function(){return s})),(0,t.useEffect)((function(){o&&s.update()}),[s,o,n.children]);var l=s._contentNode;return l?(0,Lh.createPortal)(n.children,l):null}return(0,t.forwardRef)(n)}(i)}((function(e,t){return Oh(new Eh.Popup(e,t.overlayContainer),t)}),(function(e,n,i,r){var o=i.position;(0,t.useEffect)((function(){var t=e.instance;function i(e){e.popup===t&&(t.update(),r(!0))}function a(e){e.popup===t&&r(!1)}return n.map.on({popupopen:i,popupclose:a}),null==n.overlayContainer?(null!=o&&t.setLatLng(o),t.openOn(n.map)):n.overlayContainer.bindPopup(t),function(){var e;n.map.off({popupopen:i,popupclose:a}),null===(e=n.overlayContainer)||void 0===e||e.unbindPopup(),n.map.removeLayer(t)}}),[e,n,r,o])})),Uh=function(e){var i=e.lat,r=e.lon,o=e.magnitude,a=e.place,s=e.hero,l=Eh.Icon.extend({options:{iconSize:[21,40],iconAnchor:[10,0],popupAnchor:[0,-5]}}),u=new l({iconUrl:n(7319)}),c=new l({iconUrl:n(5498)}),f=new l({iconUrl:n(9228)}),d=new l({iconUrl:n(7712)}),p=h((0,t.useState)(c),2),m=p[0],v=p[1];return(0,t.useEffect)((function(){!function(e){v("General Geology Teacher"===e?function(e){return u}:"Rich Moral"===e?function(e){return c}:"StrongGoode"===e?function(e){return f}:function(e){return d})}(s)}),[]),(0,js.jsx)(Zh,{position:[i,r],icon:m,children:(0,js.jsxs)(Wh,{children:["Magnitude: ",o,(0,js.jsx)("br",{}),"Place: ",a,(0,js.jsx)("br",{}),"Hero: ",s]})})},Hh=function(e){var t=e.earthquakesData;return(0,js.jsxs)(Ih,{className:"map",center:[12.97229395161727,-12.825540370374128],zoom:1.5,scrollWheelZoom:!0,children:[(0,js.jsx)(jh,{attribution:'\xa9 <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),t.map((function(e){var t=e.geometry.coordinates[0],n=e.geometry.coordinates[1],i=e.id,r=e.properties.mag,o=e.properties.place,a=function(e){return e>=0&&e<3.5?"General Geology Teacher":e>=3.5&&e<6?"Rich Moral":e>=6&&e<7?"StrongGoode":"All"}(r);return(0,js.jsx)(Uh,{lat:n,lon:t,magnitude:r,place:o,hero:a},i)}))]})},Gh=function(e){var t=e.hero,n=e.total,i=e.bio,r=e.fullImage,o=e.shieldImage,a=e.icon,s=e.color,l={hero:t,bio:i,total:n,fullImage:r,shieldImage:o,color:s};return(0,js.jsx)("li",{children:(0,js.jsxs)(Ds,{to:"/heroprofile",state:l,className:"hero-total",children:[(0,js.jsx)("div",{className:"legend ".concat(s,"-background")}),(0,js.jsx)("div",{children:(0,js.jsx)("img",{src:a.src,alt:a.alt})}),(0,js.jsx)("p",{children:n})]})})},Yh=function(e){var t=e.heroesSummary,n=e.firstIncidentDate;return(0,js.jsxs)("div",{className:"total-display",children:[(0,js.jsxs)("h2",{children:["Total earthquake incidents since:",(0,js.jsx)("span",{children:n})]}),(0,js.jsx)("ul",{children:t.map((function(e){return(0,js.jsx)(Gh,{hero:e.name,total:e.totalIncidents,bio:e.bio,fullImage:e.fullImage,shieldImage:e.shieldImage,icon:e.icon,color:e.color},e.name)}))})]})},Vh=function(e){var t=e.total,n=e.color;return(0,js.jsx)("li",{className:"today-total",children:(0,js.jsxs)("div",{className:"legendBottom ".concat(n,"-background"),children:[" ",(0,js.jsx)("p",{children:t})]})})},Qh=function(e){var t=e.heroesSummary;return(0,js.jsxs)("div",{className:"todays-display",children:[(0,js.jsx)("h2",{children:"Incidents W
2ithin 24-Hours"}),(0,js.jsx)("ul",{children:t.map((function(e){return(0,js.jsx)(Vh,{hero:e.name,total:e.incidentsOver24Hrs,color:e.color},e.name)}))})]})},qh=function(){return(0,js.jsxs)("div",{className:"mag-legend",children:[(0,js.jsx)("h3",{children:"Magnitudes legend (Mw)"}),(0,js.jsxs)("div",{className:"legend-details",children:[(0,js.jsxs)("ul",{className:"teal-legend-details",children:[(0,js.jsx)("li",{className:"teal-background"}),(0,js.jsxs)("li",{children:[(0,js.jsx)("span",{children:"<"})," 3.5"]})]}),(0,js.jsxs)("ul",{className:"blue-legend-details",children:[(0,js.jsx)("li",{className:"blue-background"}),(0,js.jsx)("li",{children:"3.5-6"})]}),(0,js.jsxs)("ul",{className:"blue-legend-details",children:[(0,js.jsx)("li",{className:"purple-background"}),(0,js.jsx)("li",{children:"6-7"})]}),(0,js.jsxs)("ul",{className:"dark-purple-legend-details",children:[(0,js.jsx)("li",{className:"dark-purple-background"}),(0,js.jsxs)("li",{children:[(0,js.jsx)("span",{children:">"})," 7 "]})]})]})]})},Jh=function(e){var t=e.todaysEarthquakeData,n=e.heroesSummary,i=e.firstIncidentDate;return(0,js.jsx)("div",{className:"outer-map-page wrapper",children:(0,js.jsxs)("div",{children:[(0,js.jsx)("div",{className:"home-icon-map-page",children:(0,js.jsx)("nav",{children:(0,js.jsx)(Ds,{to:"/",children:(0,js.jsx)(gh,{icon:_h})})})}),(0,js.jsxs)("div",{className:"map-page",children:[(0,js.jsxs)("div",{className:"map-container",children:[(0,js.jsxs)("div",{className:"map-title-legend",children:[(0,js.jsxs)("div",{className:"map-title-container",children:[(0,js.jsxs)("h1",{children:["Earthquakes ",(0,js.jsx)("span",{children:"(Past 24 hrs)"})]}),(0,js.jsx)("p",{children:"Click on the map markers to learn about the incidents."})]}),(0,js.jsx)(qh,{})]}),(0,js.jsx)(Hh,{earthquakesData:t}),(0,js.jsx)(Ds,{to:"/questionspage",className:"btn",children:"Questions?"})]}),(0,js.jsxs)("div",{className:"legend-container",children:[(0,js.jsx)(Yh,{heroesSummary:n,firstIncidentDate:i}),(0,js.jsx)(Qh,{heroesSummary:n})]})]}),(0,js.jsxs)("footer",{children:["Created by",(0,js.jsxs)("a",{href:"https://www.nicolebeckles.dev/",target:"_blank",rel:"noopener noreferrer",children:[" ","Nicole Beckles |"," "]}),(0,js.jsxs)("a",{href:"https://www.royalbai.com",target:"_blank",rel:"noopener noreferrer",children:["Royal Bai |"," "]}),(0,js.jsxs)("a",{href:"https://www.gabrielwright.ca",target:"_blank",rel:"noopener noreferrer",children:["Gabriel Wright |"," "]}),(0,js.jsxs)("a",{href:"https://www.ellegassner.com/",target:"_blank",rel:"noopener noreferrer",children:["Elle Gassner"," "]})," ","at",(0,js.jsxs)("a",{href:"https://junocollege.com/",target:"_blank",rel:"noopener noreferrer",children:[" ","Juno College of Technology"]})]})]})})},Kh=function(){var e=F().state,t=Math.floor(e.total/30);return(0,js.jsx)("div",{className:"hero-profile-page",children:(0,js.jsxs)("div",{className:"wrapper",children:[(0,js.jsx)(Ds,{to:"/mappage",className:"close-btn",children:(0,js.jsx)(gh,{icon:bh})}),(0,js.jsx)("div",{className:"profile-full-img",children:(0,js.jsx)("img",{src:e.fullImage.src,alt:""})}),(0,js.jsx)("div",{className:"profile-shield ".concat(e.color,"-background"),children:(0,js.jsx)("img",{src:e.shieldImage.src,alt:""})}),(0,js.jsxs)("div",{className:"profile-bio",children:[(0,js.jsx)("h1",{children:e.hero}),(0,js.jsx)("h2",{children:"Successfully Deployed"}),(0,js.jsxs)("div",{children:[(0,js.jsx)("p",{children:e.bio}),(0,js.jsxs)("p",{children:["Total earthquakes attended: ",e.total]}),(0,js.jsxs)("p",{children:["Vacation days accrued: ",t]})]})]})]})})},Xh=function(){return(0,js.jsxs)("div",{children:[(0,js.jsx)("h2",{children:"Oops! There's nothing here!"}),(0,js.jsx)("h3",{children:(0,js.jsx)(Ds,{to:"/",children:"Click here to go back to the Home Page"})})]})};var $h=function(){var e="Building app...",i=h((0,t.useState)(),2),r=i[0],o=i[1],s=h((0,t.useState)(),2),u=s[0],f=s[1],d=h((0,t.useState)([]),2),p=d[0],m=d[1],v=h((0,t.useState)([]),2),g=v[0],y=v[1],_=h((0,t.useState)("fade-in"),2),b=_[0],w=_[1],k=h((0,t.useState)(!0),2),A=k[0],x=k[1],C=h((0,t.useState)("Fetching data..."),2),E=C[0],S=C[1];(0,t.useEffect)((function(){Is()({url:"https://earthquake.usgs.gov/fdsnws/event/1/query",method:"GET",dataResponse:"json",params:{format:"geojson",starttime:"2022-05-05",eventtype:"earthquake",minmagnitude:0,orderby:"time",limit:2e4}}).then((function(e){if(200!==e.status)throw new Error("Problem fetching from USGS API");var t=e.data.features,n=new Date(t[t.length-1].properties.time).toDateString();y(n),P(t)}
2)).catch((function(e){alert("Please hard refresh your browser with CTRL/CMD + SHIFT + R. Error message: ".concat(e.message))}))}),[]),(0,t.useEffect)((function(){if(u&&r){var e=L(u),t=L(r);I(t,e),x(!1)}}),[u,r]),(0,t.useEffect)((function(){E===e&&w("fade-out")}),[E]);var P=function(){var t=c(l().mark((function t(n){var i,r;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=Ps(Os),r=_s(i,"/incidents/2022-05-05"),t.prev=2,S(e),t.next=6,ws(r,n);case 6:return t.next=8,T(r);case 8:o(n),t.next=14;break;case 11:t.prev=11,t.t0=t.catch(2),alert("Firebase data has failed to load. Please refresh your browser.");case 14:case"end":return t.stop()}}),t,null,[[2,11]])})));return function(e){return t.apply(this,arguments)}}(),T=function(){var e=c(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{ks(t).then((function(e){var t=a(e.val()),n=O(),i=t.filter((function(e){var t=e.properties.time;return n<=t}));f(i)}))}catch(pn){alert("Firebase data has failed to load. Please refresh your browser.")}case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),I=function(){var e=c(l().mark((function e(t,i){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[{name:"general geology-teacher",totalIncidents:t.geoTeacher,incidentsOver24Hrs:i.geoTeacher,bio:"The geology teacher has been sent to educate the neighbourhood on earthquake tendencies and how to prepare for any larger event.",fullImage:{src:n(1306),alt:"A geo teacher flying through the air."},shieldImage:{src:n(4781),alt:"A teal shield."},icon:{src:n(8888),alt:"headshot of geo teacher"},color:"teal"},{name:"rich moral",totalIncidents:t.richMoral,incidentsOver24Hrs:i.richMoral,bio:"With their flashy technology, Rich Moral will be able to reassure the public with earthquakes that have a higher magnitude.",fullImage:{src:n(4797),alt:"The superhero Rich Moral kneeling on the ground."},shieldImage:{src:n(4347),alt:"A blue shield."},icon:{src:n(4536),alt:"headshot of rich moral"},color:"blue"},{name:"stronggoode",totalIncidents:t.strongGoode,incidentsOver24Hrs:i.strongGoode,bio:"With unnatural lifting abilities, StrongGood will be able to handle any crisis and will reassure the public there is nothing to fear.",fullImage:{src:n(3481),alt:"The superhero, StrongGoode running fast."},shieldImage:{src:n(8870),alt:"A purple shield."},icon:{src:n(6672),alt:"headshot of stronggoode"},color:"purple"},{name:"all",totalIncidents:t.allTeam,incidentsOver24Hrs:i.allTeam,bio:"With the strongest earthquakes, we send our entire team of superheroes to ensure safety and peace of mind to the public.",fullImage:{src:n(5521),alt:"Three shields, a teal one, a blue one and a purple one."},shieldImage:{src:n(1979),alt:"Teal, Blue and Purple stripes."},icon:{src:n(5521),alt:"Three shields, a teal one, a blue one and a purple one."},color:"dark-purple"}],m(r);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),L=function(e){var t=a(e),n=t.filter((function(e){var t=e.properties.mag;if(t<3.5)return t})),i=t.filter((function(e){var t=e.properties.mag;if(t>=3.5&&t<6)return t})),r=t.filter((function(e){var t=e.properties.mag;if(t>=6&&t<7)return t})),o=t.filter((function(e){var t=e.properties.mag;if(t>=7)return t}));return{geoTeacher:n.length,richMoral:i.length,strongGoode:r.length,allTeam:o.length}},O=function(){var e=new Date;return new Date(e.getTime()-864e5).getTime()};return(0,js.jsx)("div",{className:"App",children:A?(0,js.jsxs)("div",{className:"loader-container",children:[(0,js.jsx)("p",{className:b,children:E}),(0,js.jsx)("div",{className:"loader"})]}):(0,js.jsxs)(Y,{children:[(0,js.jsx)(H,{path:"/",element:(0,js.jsx)(Fs,{})}),(0,js.jsx)(H,{path:"/questionspage",element:(0,js.jsx)(wh,{})}),(0,js.jsx)(H,{path:"/mappage",element:(0,js.jsx)(Jh,{todaysEarthquakeData:u,heroesSummary:p,firstIncidentDate:g})}),(0,js.jsx)(H,{path:"/heroprofile/",element:(0,js.jsx)(Kh,{})}),(0,js.jsx)(H,{path:"/*",element:(0,js.jsx)(Xh,{})})]})})},ef=function(e){e&&e instanceof Function&&n.e(787).then(n.bind(n,787)).then((function(t){var n=t.getCLS,i=t.getFID,r=t.getFCP,o=t.getLCP,a=t.getTTFB;n(e),i(e),r(e),o(e),a(e)}))};i.createRoot(document.getElementById("root")).render((0,js.jsx)(t.StrictMode,{children:(0,js.jsx)(Bs,{children:(0,js.jsx)($h,{})})})),ef()}()}();
3//# sourceMappingURL=main.06f65c1b.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.